From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 9l/yJYu9oWf+6yMAWB0awg (envelope-from ) for ; Tue, 04 Feb 2025 02:11:07 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=PIGIA7i1; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9179E1E105; Tue, 4 Feb 2025 02:11:07 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0353E1E05C for ; Tue, 4 Feb 2025 02:11:07 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A6E7C3858C60 for ; Tue, 4 Feb 2025 07:11:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6E7C3858C60 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=PIGIA7i1 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 71D1D3858D26 for ; Tue, 4 Feb 2025 07:06:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 71D1D3858D26 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 71D1D3858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::634 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738652789; cv=none; b=AreECtCkKALioBJMGAT0ZwLCrtk5F3mG1SWA9JB+6pl62ntCDKhvNWaCXC1Wi8njQNGbphHNwP8WD8nTxj9bH/789HKh8IP7x9aSVqYPTJHFVabtgnAD0MKeLwjphmI/qPkFt7XRGSnHo0rsawLjx8iCCN6xZRls674n7I/4vKE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738652789; c=relaxed/simple; bh=r42zpLDx4xh5+/y6tzt/z36enOJSOPoMHKdopHEG0Uc=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=VSaHdnmheIrYlwve8LUMzmnu1GJr913+XaQhG6DIq9w/Q8Kiyt3TTqaWnpJ9PR0A5lDnDpNP0m9Jgp3FBjFClKhTLym6ncfPYzXJzY6TA9nfILFQYPs15sjBTLft16dG54lrVXW+UJfykVd2Q1TOVe8xjUjYS/UDIBk92GbvLmI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71D1D3858D26 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-aaf0f1adef8so983978166b.3 for ; Mon, 03 Feb 2025 23:06:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1738652783; x=1739257583; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=2IczM8N93d5IvwHF8fJBHsn+WzYcUtRUGU+okiyHYKM=; b=PIGIA7i1NOvJg/bvWIzSDy1EnJ5fHzxLAkSMjjjMPCkQoopdXUY7MkqtZG2KVaYiE6 ZgfZCG3cgPkKmIdfF3Gmot8YvxwPMmd3u2Bm/2Pb1g/tkCDzZlQt9cX+ejmOWNtTwIQl BAQdkJ0sOU+lJMuYWSffqsugAzUsHbkKEb41mukoFsJXP4gFs1839L3Cz1jUe2fZHFTK lMy2kzKuh3xbMuvWlTs/oS5sdplruFsELlpfcFyJ55XAvBHC7+rlvXcs8wydvPUds6EX Y0NeYuZgYMzG+nDJEIlOF4gpMohTq6TjIM+zf8+akiKGKMLZt0E0bGDDoEk7I3qljQ5J vvAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738652783; x=1739257583; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2IczM8N93d5IvwHF8fJBHsn+WzYcUtRUGU+okiyHYKM=; b=FbvK5Oend5EH86WNqvi5MuYnP1X/aZqPkDCB3Y4I21pOzNUQAl6tRqc3ydtqetICEV Hq8/zWiC8kvDu24fBwT0uKfpbdFJ5cGTBwLs2gtWsAx6fcsaGgpGj9BY54p6ZrVtVj+q bLvFC83Pquv/oV+lOGu7OSncwOVwyR//+KQytZeDvFhFFL/9xAIySgGc1dSzygMXRuZW occvy7LKvLRbX652on/KveAnWdEyO+XGwwyVghDlpPcIGJHgFjMiKpdLkqf+HqeAw0PE FtcanexnCHQsrRkGn8gLTvLppGwx1QiTaSo5TwzbDTL/zAcM+koChuj2CKAciQ2B6Jpt 2RDw== X-Forwarded-Encrypted: i=1; AJvYcCV3/DG6ITXwgBgaY8nwI6AErLmIJUGu+n7Fnwg1On6IpK1K796+nMQ1AhHW0nMY2/9VJWi0E0PtQjQ98Q==@sourceware.org X-Gm-Message-State: AOJu0YzJ3WBdGc1YYS3bLiVw79kKwYylKj2ieAxvW0oUJhelTPsJnw28 urozdzwj2t2nP6iliHUm8Df/ZOgIPTjidBBPBCPxtlkc7fnWqogOI2iPG/i+k3ubhNYVnLHKyYg = X-Gm-Gg: ASbGnctotpyBEInu1gErQVtMHu2tPrnyHpIFOJicMYlUmTITM1kfsBRqTnCCgropmF8 +Dz5Fa/9XprDYj7jU7bB0bMZJiLjyM1WAdcYEHiaI5UelNO2f+wiQ50yWpPhYaxOwZX8IoUikB4 rMOhRq7VZkXQ7Sj2vYWzrxpej/H1aPsW+ukE7XshDEWQTeZcG7jQ2CzxjaxBRmbP6knl36cy60L Ly2PnncZOgmIcMI9HcbN5ngCoLR0AhuYj/NbLcQ2w+JWz2d/V8gFpHM4sAmOCW8Ft2wKb9YY0ZI e0KwH0tTfMiOyIjMGh12pi/J/Neo1yq/jtHfuUp52KUFxxsByMh1+M2d9vOlqnDcyyo6WX+hxPW w X-Google-Smtp-Source: AGHT+IGCCuln0UWYb3r2Jvdx5YhpZWb883MPVnLFJHQ3Gb+M6gWGYbvOaPmx8sjpW7bI+OesBm+jhw== X-Received: by 2002:a17:907:6d26:b0:aac:4324:977e with SMTP id a640c23a62f3a-ab6cfd076admr3244280866b.27.1738652782891; Mon, 03 Feb 2025 23:06:22 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab6e4a5635bsm863123566b.164.2025.02.03.23.06.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Feb 2025 23:06:22 -0800 (PST) Message-ID: <83f9de3d-8da0-4c7b-946d-d9c84e24c964@suse.com> Date: Tue, 4 Feb 2025 08:06:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 01/47] gdb, intelgt: add intelgt as a basic machine To: "Aktemur, Tankut Baris" Cc: "Metzger, Markus T" , "config-patches@gnu.org" , "gdb-patches@sourceware.org" , "binutils@sourceware.org" References: <20241213-upstream-intelgt-mvp-v2-0-5c4caeb7b33d@intel.com> <20241213-upstream-intelgt-mvp-v2-1-5c4caeb7b33d@intel.com> <38254b32-ce1c-461b-a43a-2ea534f7ba6e@suse.com> Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 03.02.2025 18:17, Aktemur, Tankut Baris wrote: > Hello Jan, > > On Friday, December 20, 2024 10:55 AM, Aktemur, Tankut Baris wrote: >> Hi, >> >> On Wednesday, December 18, 2024 8:20 AM, Jan Beulich wrote: >>> On 17.12.2024 19:48, Aktemur, Tankut Baris wrote: >>>> On Monday, December 16, 2024 8:54 AM, Jan Beulich wrote: >>>>> On 13.12.2024 16:59, Tankut Baris Aktemur wrote: >>>>>> Add 'intelgt' as a basic machine to config.sub. >>>>>> >>>>>> To: >>>>>> To: >>>>>> --- >>>>>> config.sub | 1 + >>>>>> 1 file changed, 1 insertion(+) >>>>>> >>>>>> diff --git a/config.sub b/config.sub >>>>>> index >>> 2c6a07ab3c34eabed8318ec0a37c0cc23b77a63f..63ff958ec125e543674e9b261d5e5bb2fa749c4e >>>>> 100755 >>>>>> --- a/config.sub >>>>>> +++ b/config.sub >>>>>> @@ -1205,6 +1205,7 @@ case $cpu-$vendor in >>>>>> | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ >>>>>> | hexagon \ >>>>>> | i370 | i*86 | i860 | i960 | ia16 | ia64 \ >>>>>> + | intelgt \ >>>>>> | ip2k | iq2000 \ >>>>>> | k1om \ >>>>>> | kvx \ >>>>>> >>>>> >>>>> Patch 3 enables ld, but I can't spot any gas enabling (sadly the cover letter >>>>> wasn't Cc-ed to the binutils list). >>>> >>>> Sorry, this is my bad. I'll Cc binutils in the next revision submission. >>>> For the time being, the link to the cover letter is >>>> >>>> https://sourceware.org/pipermail/gdb-patches/2024-December/214029.html >>>> >>>>> Don't you further need to exclude gas from >>>>> attempts of configuring? >>>>> >>>>> I'm also puzzled by that difference: The series supposedly is about enabling >>>>> gdb. Why enable ld there? Just because it's (seemingly) easy? >>>>> >>>>> Jan >>>> >>>> Without enabling ld, when configured as >>>> >>>> /configure --enable-targets="intelgt-elf" >>>> >>>> 'make' gives >>>> >>>> *** ld does not support target intelgt-unknown-elf >>>> *** see ld/configure.tgt for supported targets >>> >>> Like I think I said for gas, that imo wants dealing with by a top level >>> configure change, adding ld to noconfigtargets for intelgt. >> >> Our overall goal at this step is to enable GDB. >> >> A GPU workload executes by being submitted to the device from a >> host/native process. Therefore, although enabling GDB only for the >> GPU target is possible, in general it needs to be enabled in addition >> to the native target. That is, it makes sense that a x86-64 target is >> the primary one whereas the intelgt target is enabled as a secondary >> target, so that GDB is able to debug native processes as usual, plus >> the GPU workloads. >> >> The $noconfigdirs approach works for the primary target only. Hence, >> we cannot use it for an 'enabled-targets' target. >> >> Another approach we can take is to not touch ld and let it fail. The >> expectation would be then: >> >> 1. either configure GDB with "--disable-ld --disable-gas ..." and >> then use "make" to build it, or >> >> 2. configure without disabling components but then use "make >> all-gdb" to build. >> >> Our case is in fact similar to AMD GPU (ROCm) debug support in GDB. >> The online documentation at >> >> https://rocm.docs.amd.com/projects/ROCgdb/en/latest/install/installation.html#build >> >> suggests using "--disable-ld --disable-gas ...". Otherwise ld would >> fail with >> >> *** ld does not support target amdgcn-amd-amdhsa >> *** see ld/configure.tgt for supported targets > > Any further comments? No; as you copy pre-existing behavior, I'm okay(ish). Jan