Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3109985rdh; Mon, 27 Nov 2023 06:44:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAErQIB5QQ60QLpt6ZLe/6LKzuxGdRIxDu7K752OhnUuGTa+3KocOw+zrlHo7B4WgRnSnz X-Received: by 2002:a05:6a20:918e:b0:18b:57e1:dbfc with SMTP id v14-20020a056a20918e00b0018b57e1dbfcmr13452056pzd.0.1701096277859; Mon, 27 Nov 2023 06:44:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701096277; cv=none; d=google.com; s=arc-20160816; b=y3sZHZ/C7W+/YhgJOyRmvaPZCtawy511o3oQxtH3lX5P1zHZKI0GBFgH7tAmPHn3e+ d6epJmQ/tUj7Z2exN/UL7k3fFSAASOAWiwjMCLLZdU4UMpQL7Uk8ZlIXwbbmyF7X8LF1 P1AL2rXLK2FV0CYEzYdSGBMKMoQtYdCkDUamfXKU46Q+DbdO0yQif5TiI8MoFYp+pu+K LOb0jQhbs3qy3G1mDqve65oZ9uwn5aoGWX9guBv7xQFbO/sOMfES1JMo2lMGRPXdi5Ic cG6dgzD1Nh5Xs7W2n+3ahGDqXyGfUp8hfMPuciLLQGX2GXoAqvX3qy0bFxm8bhy2AT/d Jq5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/EIUmcxqSgQwR4h8SpanHMweNQIyGH/GNtp1VB6r9BU=; fh=r6K49SIFTZmy4oMa05q9KMlcfiotNgGaoqzeUlU9HyE=; b=jv/042lT6pJHE/sgptzMCjQvejlJ6bbxj0x09hBOCj2YWNgczPTqHQzHM8K7KUouyA YZvs7Fyl6NY1asDgDRXtELCxE6EoJiR/04xZ9M7AJcrlYIaGslRzht779vKzTFAVyWOI xLIt8YdMSkW2wvOkxl5zGMyheJOYMLXAoGIRXabee1x1cVlPFD0JW/psdvbZqZmHpCnm bG7m5NRNvEGGoRHzd+N+XY11oUX3zGZXg6hEZqjSdOqhbTcJi2A9VIKck9lVtrQ2dy5B HXSlDTm3aRucwT7xhySZ3+2EKBjtwM9/Wx0noZkP8+wy6a1pIyVZFOC9Gooe8dNGi7eE OtWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="Wi/9CQiV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x67-20020a636346000000b005bdbeb537bcsi9460751pgb.37.2023.11.27.06.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 06:44:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="Wi/9CQiV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 452F88087FD9; Mon, 27 Nov 2023 06:44:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233861AbjK0OoG (ORCPT + 99 others); Mon, 27 Nov 2023 09:44:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233809AbjK0OoD (ORCPT ); Mon, 27 Nov 2023 09:44:03 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC409A3; Mon, 27 Nov 2023 06:44:09 -0800 (PST) Received: from relay2.suse.de (unknown [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 2F22A1FD66; Mon, 27 Nov 2023 14:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1701096247; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/EIUmcxqSgQwR4h8SpanHMweNQIyGH/GNtp1VB6r9BU=; b=Wi/9CQiV+1JjyObULZrfGvMIUo08Fe24MCed3hduQTi9M1+j2YbDl7R/VBbhjm6AOrnDnX Pjb3F66pw9WOH5HBSlg1Y70VR+D+atS5eU4h7JRDPQjE/c9DjBHh5C44OvWz07QVHzmGuB q1btyyvK0QLgIcK9VEcp3W6nfXLwgvU= Received: from suse.cz (pmladek.udp.ovpn2.prg.suse.de [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 6F0962C16B; Mon, 27 Nov 2023 14:44:04 +0000 (UTC) Date: Mon, 27 Nov 2023 15:44:03 +0100 From: Petr Mladek To: Mihai Carabas Cc: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, pbonzini@redhat.com, wanpengli@tencent.com, vkuznets@redhat.com, rafael@kernel.org, daniel.lezcano@linaro.org, akpm@linux-foundation.org, peterz@infradead.org, dianders@chromium.org, npiggin@gmail.com, rick.p.edgecombe@intel.com, joao.m.martins@oracle.com, juerg.haefliger@canonical.com, mic@digikod.net, arnd@arndb.de, ankur.a.arora@oracle.com Subject: Re: [PATCH 1/7] x86: Move ARCH_HAS_CPU_RELAX to arch Message-ID: References: <1700488898-12431-1-git-send-email-mihai.carabas@oracle.com> <1700488898-12431-2-git-send-email-mihai.carabas@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1700488898-12431-2-git-send-email-mihai.carabas@oracle.com> X-Spamd-Bar: +++++++++++++++++++++ X-Spam-Score: 21.50 X-Rspamd-Server: rspamd1 Authentication-Results: smtp-out2.suse.de; dkim=none; spf=fail (smtp-out2.suse.de: domain of pmladek@suse.com does not designate 149.44.160.134 as permitted sender) smtp.mailfrom=pmladek@suse.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.com (policy=quarantine) X-Rspamd-Queue-Id: 2F22A1FD66 X-Spamd-Result: default: False [21.50 / 50.00]; RDNS_NONE(1.00)[]; SPAMHAUS_XBL(0.00)[149.44.160.134:from]; TO_DN_SOME(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[149.44.160.134:from]; HFILTER_HELO_IP_A(1.00)[relay2.suse.de]; HFILTER_HELO_NORES_A_OR_MX(0.30)[relay2.suse.de]; R_RATELIMIT(0.00)[ip(RLkk1mdgxgu4i4849a6y),rip(RLa6h5sh378tcam5q78u)]; MX_GOOD(-0.01)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; BAYES_HAM(-0.00)[13.92%]; RDNS_DNSFAIL(0.00)[]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; FROM_HAS_DN(0.00)[]; DMARC_POLICY_QUARANTINE(1.50)[suse.com : No valid SPF, No valid DKIM,quarantine]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_SHORT(3.00)[1.000]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; VIOLATED_DIRECT_SPF(3.50)[]; NEURAL_SPAM_LONG(3.50)[1.000]; RCPT_COUNT_TWELVE(0.00)[27]; FUZZY_BLOCKED(0.00)[rspamd.com]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_CC(0.00)[lists.infradead.org,vger.kernel.org,arm.com,kernel.org,linutronix.de,redhat.com,alien8.de,zytor.com,tencent.com,linaro.org,linux-foundation.org,infradead.org,chromium.org,gmail.com,intel.com,oracle.com,canonical.com,digikod.net,arndb.de]; RCVD_COUNT_TWO(0.00)[2]; HFILTER_HOSTNAME_UNKNOWN(2.50)[] X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 06:44:35 -0800 (PST) On Mon 2023-11-20 16:01:32, Mihai Carabas wrote: > From: Joao Martins > > ARM64 is going to use it for haltpoll support (for poll-state) > so move the definition to be arch-agnostic and allow architectures > to override it. This says that the definition is moved. > diff --git a/arch/Kconfig b/arch/Kconfig > index 4a85a10b12fd..92af0e9bc35e 100644 > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -1371,6 +1371,9 @@ config RELR > config ARCH_HAS_MEM_ENCRYPT > bool > > +config ARCH_HAS_CPU_RELAX > + bool > + > config ARCH_HAS_CC_PLATFORM > bool > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index d1c362f479d9..0c77670d020e 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -73,6 +73,7 @@ config X86 > select ARCH_HAS_CACHE_LINE_SIZE > select ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION > select ARCH_HAS_CPU_FINALIZE_INIT > + select ARCH_HAS_CPU_RELAX > select ARCH_HAS_CURRENT_STACK_POINTER > select ARCH_HAS_DEBUG_VIRTUAL > select ARCH_HAS_DEBUG_VM_PGTABLE if !X86_PAE But the definion is only added here. I would expect that the patch also removes the original definion. Best Regards, Petr