From patchwork Thu Oct 5 07:20:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 148874 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp412024vqb; Thu, 5 Oct 2023 09:19:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7sR4yZwbWtGNqfIuJ2uS0t4symFNolmh2HmjEpXNIbS9QPx6OW6YcIvgPAbGN3jphreUW X-Received: by 2002:a17:902:d342:b0:1c5:b1cc:fe0e with SMTP id l2-20020a170902d34200b001c5b1ccfe0emr5224365plk.53.1696522746400; Thu, 05 Oct 2023 09:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696522746; cv=none; d=google.com; s=arc-20160816; b=XhYyF4czorgit/DBkD0w6IZvUnct56cBsHMjeeqaVXETjyPN+dUJlHl5dthTszXKfi 3qjV8jkfXsCsyfe+7WmxmqRC707A6M4glahG2gSMKq6vs8O5Knkhm9SMa5Yjrz7UW/8c uq2ngIblCITzyUXnT+++xf9VsKmYncny/xzDyIhNQ87bB9avUyO97aE85TJd0nYdmSJB JZVIwP1UcHIrkjLkzxYeQ1aZQ5OYuBDtZX76gY3wn5LzLldRcCP8Pi5Nt6hdYnT3bf5h TlianLXzhO6uRxZgPFMI1Vn+Jcey1izWunP5xaJcF9RSwKgkpkxaSxipE1+66cWsZsOC MIhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=gTTaaaHUArHDIckU4VjtEm1/89+COnB9H9apqfgESMg=; fh=K6ZmXmk1pk3l5LoEWZxLc1Qi5x+7x+xlzncOmK5ivrE=; b=NN2ow0cZNyxuaqS/YoaRxSqL4hLxexdwQRZW7Fceerw2MKrLyUxPvJjVZ8b8MfVCrV DdO1SdYz/Ba4a5S6VwV3As89Es1PR51zhhFUztSfrt18+8FnDc104AN4ZlbWB7ziPXjq pcnXu33eCpXyYdmo5PTdp1u2pLcqUgPlpRqm1UQ2lsxSyV+Ld7mWtmgmOt9t6L2/ZiLs OrHYYEuF+ITwLHAkPosN8FkMaswka9XBQrSmbk8feha/PGwrQcZO68pF7RHVk0eGYzIM pKY34+C/DfK8lrSnKA0VhIE9ERpHnp7yb1EDRh6fFaDjgjjr+fV1BfCEaJe4Vvwn7Trx qLww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LHoilc1N; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b4-20020a170902ed0400b001c6189eaaebsi1684198pld.186.2023.10.05.09.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LHoilc1N; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8ED948319220; Thu, 5 Oct 2023 09:19:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242633AbjJEQSc (ORCPT + 19 others); Thu, 5 Oct 2023 12:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241463AbjJEQO2 (ORCPT ); Thu, 5 Oct 2023 12:14:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51A1D7A88; Thu, 5 Oct 2023 00:20:21 -0700 (PDT) Date: Thu, 05 Oct 2023 07:20:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696490418; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gTTaaaHUArHDIckU4VjtEm1/89+COnB9H9apqfgESMg=; b=LHoilc1NEVEyzWv2dAp99zCSgkT5FDatf1kPASupwJya2U1ecXsG2mv+Xm1zeGJgHXld0L hZ8tZKfA3Bzr5py0I9asKc14QiRFkrtBebcbKI0t+S024DeA2EbKpDOsatN8tFM3lst0rj bsLCmojiIr2skLUO+50pNYfds3iyIAKyDj7i1X6yven7s1fx52GQkHcMGXcma5WuBQadKj rGcmX3u7NbnfTTSed3kAlIPB+NgANGc2SXOqrd/eQc5p8Igzsuwz/zvkYxm0xDQ3+U7vJV ZmYQmEZoSdDtVluHCLKS/uy3YFbsRu31lqVb8MShIT9G7+v0wTWb7lEi+dwvwA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696490418; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gTTaaaHUArHDIckU4VjtEm1/89+COnB9H9apqfgESMg=; b=dUcnnAkk+dSBMVDqDyF+Bw+bMgw4Trfl+s8413XpT92kBhhyFWQmmlAkT1TQjHjPD+ghyR nnB9SxZBVOgivJDg== From: "tip-bot2 for Uros Bizjak" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/percpu] x86/percpu: Enable named address spaces with known compiler version Cc: Uros Bizjak , Ingo Molnar , Andy Lutomirski , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231004145137.86537-3-ubizjak@gmail.com> References: <20231004145137.86537-3-ubizjak@gmail.com> MIME-Version: 1.0 Message-ID: <169649041819.3135.15323683986344973215.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:19:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778836965268316315 X-GMAIL-MSGID: 1778933035622042660 The following commit has been merged into the x86/percpu branch of tip: Commit-ID: 1ca3683cc6d2c2ce4204df519c4e4730d037905a Gitweb: https://git.kernel.org/tip/1ca3683cc6d2c2ce4204df519c4e4730d037905a Author: Uros Bizjak AuthorDate: Wed, 04 Oct 2023 16:49:42 +02:00 Committer: Ingo Molnar CommitterDate: Thu, 05 Oct 2023 09:01:52 +02:00 x86/percpu: Enable named address spaces with known compiler version Enable named address spaces with known compiler versions (GCC 12.1 and later) in order to avoid possible issues with named address spaces with older compilers. Set CC_HAS_NAMED_AS when the compiler satisfies version requirements and set USE_X86_SEG_SUPPORT to signal when segment qualifiers could be used. Signed-off-by: Uros Bizjak Signed-off-by: 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 Link: https://lore.kernel.org/r/20231004145137.86537-3-ubizjak@gmail.com --- arch/x86/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 982b777..ecb2569 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2388,6 +2388,13 @@ source "kernel/livepatch/Kconfig" endmenu +config CC_HAS_NAMED_AS + def_bool CC_IS_GCC && GCC_VERSION >= 120100 + +config USE_X86_SEG_SUPPORT + def_bool y + depends on CC_HAS_NAMED_AS && SMP + config CC_HAS_SLS def_bool $(cc-option,-mharden-sls=all)