Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2931352lqo; Tue, 21 May 2024 01:18:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZ/Z2Hipx1QzjfRgDACSboNc3Jp0k9vFYoGWPqRpqQeAjTm13n3qNlW8q4gOHR8OCX58Tl0hiRcjjXa2MQNhGPvfxQcUIVjaE4QvSbGQ== X-Google-Smtp-Source: AGHT+IFEr6m/G8LRea/ZtcL2YAMyaj139RFIK/qrE+YBIaq67xJsDhRvOoafSpv5ZwklpdjZ9xHj X-Received: by 2002:a05:6214:3d08:b0:6a9:69ce:bd7f with SMTP id 6a1803df08f44-6a969cec00bmr102450446d6.13.1716279520302; Tue, 21 May 2024 01:18:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716279520; cv=pass; d=google.com; s=arc-20160816; b=A+Z2hBA55PBvX/1pSJJApXQ2I0fhklDyzfBXqZJ7EOsTsuyYg5+v+RuAvwyJ23m3wZ M4QuKjgJh+fjzqd10yp/AQg+BEmzzUoZ7ARHuKL8w2kQaYxW4IN5WHWH3UrJbjgRFtJh JwQB/ZNYisVtm2gdq2FJoB1/62mXpofpZTDcE7c7d9V2T0np2FrwWmXMhKzctagJMJeb Md9peNsv1haty8IE+b3FQXUufxJ6lY9V+QKKr40JkjO9C4bX8cEDtSqmE8LPyJ70Cupp DcxmC2hY2LCmfutskvByVAZV7v9zW1w151cL5V7M9lWZ1A3/AoE+tKEKqoz1/hNujurK wAcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=sNToKk98k1H7Spnqg2uOPUCXlDMEsg6fOLbiC3/CZak=; fh=l+2PEQAnfhgKtelzKD0p4jlEo3JoDT6R4OBTzo0/+ks=; b=ecel+WuZOc4CE8py6C+VCbPokEb2fJROdPms/uRM5XXqGM1h1hyj1+OtoW5XdO2bne PG8anN468F0kjkWOtCuiFkB4yn8133jo3qj67IXTLyrmoO1Di444ucAeL/zmyibNRFYH +XfDfiTwttb+uTv32OgsQfcfXH6cYoHeuoMCCOs6gZeDlqoMcL4a6zUpWnEw4SNy+opc N1/C8gOQF/sy4PxSbB32KaK71ZRf8db9BuHitWDcdo7Z1PDbeJJn2ZmZCS8mBmABc4PV TGDQOQFcBTP/JTbbRU/KK7VBnAQ4N07HpTDZMXzHjqZbk6luzmsiFJm8OGQttu/EujXE eUpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UZ8VP87F; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-184630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a92d479c4fsi63502566d6.193.2024.05.21.01.18.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 01:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UZ8VP87F; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-184630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F265B1C20DE7 for ; Tue, 21 May 2024 08:18:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4561E548E0; Tue, 21 May 2024 08:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UZ8VP87F" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D12DD51C4F for ; Tue, 21 May 2024 08:18:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716279514; cv=none; b=sLAPou+fbg+hjdp2buIYhKIUNVs1l/2pW2BrA/qpor0t4/AoyeI0M1l+Rvo5ivt1l2aA1URe4AEWp9gfb/V65oW4I52E/uUynZoDpXZncOrR93L8PImesA2G4QHYu3lQverS14JI8k35cGSYNBr6F7Cs1uFKaH92PJg0AiBCcIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716279514; c=relaxed/simple; bh=iVc81OSdxb5pERXF6+iUCUmWh0yhsTTa7HTkE+s0Rgs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lu6/sEszAm0wO5smi1qFkyR7P/dWpbs981Fy8pEGYaoATNGL5daEw1UWb8sj0ndpZjfsyF2ggXtT9InR9T9YvbLuYkXuBeQecyr6GJOH+jmpbimtON8UthIFknJNx9kX3lrjRLuVuwT6b18729PoT3eVgBqYRJ0bc2Qo+2F8hHA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UZ8VP87F; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-57825ff689bso198763a12.3 for ; Tue, 21 May 2024 01:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716279511; x=1716884311; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=sNToKk98k1H7Spnqg2uOPUCXlDMEsg6fOLbiC3/CZak=; b=UZ8VP87FQkI8R+/RkJzzJsCRf02zqORd9TroTYHbY8fbTXlQLc4UteyWwarmoH/sHr CH/+5wV8Qr6rF2TYYiTlw4Vt4M5mfF3cQWlfyvJY6zCnPNWRqbFJ/Woc2pQqrZQLRZEK PYk6tkQMPF6Yy5XGnAnX3yL9D5MS/n5Ia/7uY5VXnm42n2MDtaW3W+u/KLqDOxFL3L31 XYbkbDypUD5HejERbja4tmSshJVJSVT5NzFKGkX0Ra6yujecCafvgdXakHrRCzoa10sk mtIi76ru+2NKPXMIf2CqknNgXsSHyPx/8CCbWuGpma4L0FIHpp/F8j3KU4G15eGokGQM MkfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716279511; x=1716884311; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sNToKk98k1H7Spnqg2uOPUCXlDMEsg6fOLbiC3/CZak=; b=OkP2gw0I1trHYrh2iTIoE23zg/vfolm8CRHTfQWG9IBPLMtJ+K1qOLI4gPaUNpNFv+ OgPGjLvznYDr9DfEYHgA+XnDe0jtzrT+DnSmwd1ii9MOqYkAddamYzLZ1pyieYR3tp3J VV0Y5knFCPCpr23wY1I3V0jSXstKjUemfYPLu40N7nZEVsObMi7+GET+YR7tn4/O6No/ JcuJoYlx2gka0L428ZivLPUqGqddVm6GPWvuztvMpRfkoLrtWfR2XQ7VZ/pftiNYsJyf /v9Nsqk8K4O5RKA7uYnYGNlbuK16eJ7oaemWt0yarF89plGSTphI7/3OCcnx5ZbYCR6l qyJQ== X-Gm-Message-State: AOJu0YyqN7GAIEtl2yoYhfNEwMuQSenc1gDVHkXqd5UXAqpw17/qxID/ KJzDhQcjdAQEJZeamxaWVOMoNqGHvb9QA+jK0p2nLt940YuR2wVtjBQQybKM X-Received: by 2002:a50:bac4:0:b0:572:9f40:514d with SMTP id 4fb4d7f45d1cf-5734d67aadbmr19405007a12.29.1716279510748; Tue, 21 May 2024 01:18:30 -0700 (PDT) Received: from gmail.com (1F2EF63D.unconfigured.pool.telekom.hu. [31.46.246.61]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733becfbd3sm16764046a12.44.2024.05.21.01.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 01:18:29 -0700 (PDT) Sender: Ingo Molnar Date: Tue, 21 May 2024 10:18:27 +0200 From: Ingo Molnar To: Uros Bizjak Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Andy Lutomirski , Brian Gerst , Denys Vlasenko , "H . Peter Anvin" , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf Subject: Re: [PATCH] x86/percpu: Enable named address spaces for all capable GCC versions Message-ID: References: <20240520082134.121320-1-ubizjak@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240520082134.121320-1-ubizjak@gmail.com> * Uros Bizjak wrote: > Enable named address spaces also for GCC 6, GCC 7 and GCC 8 > releases. These compilers all produce kernel images that boot > without problems. > > Use compile-time test to detect compiler support for named > address spaces. The test passes with GCC 6 as the earliest > compiler version where the support for named address spaces > was introduced. > > Signed-off-by: Uros Bizjak > Cc: Ingo Molnar > Cc: Andy Lutomirski > Cc: Brian Gerst > Cc: Denys Vlasenko > Cc: H. Peter Anvin > Cc: Linus Torvalds > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: Josh Poimboeuf > --- > arch/x86/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 9d16fee6bdb8..c9e0a54f469e 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -2430,7 +2430,8 @@ source "kernel/livepatch/Kconfig" > endmenu > > config CC_HAS_NAMED_AS > - def_bool CC_IS_GCC && GCC_VERSION >= 90100 > + def_bool $(success,echo 'int __seg_fs fs; int __seg_gs gs;' | $(CC) -x c - -S -o /dev/null) > + depends on CC_IS_GCC So ... will this test also trigger on Clang, which might have a __seg_fs/__seg_gs work-alike definition? Thanks, Ingo