Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2299010rdb; Thu, 21 Sep 2023 14:36:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9BU4Y7x3NzEl40+b3Z6rYRfIM9KL7W80OpA0RPhDGxrg8/NqyswHGTOUJR5N2RL86o1K+ X-Received: by 2002:a17:90a:4944:b0:274:9200:3973 with SMTP id c62-20020a17090a494400b0027492003973mr6739115pjh.36.1695332166195; Thu, 21 Sep 2023 14:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695332166; cv=none; d=google.com; s=arc-20160816; b=fuqslMkTkRNCp6/eaWjLeFJlE5033U3E6gpnHUAFOcwE01yLOeBl9eCFHgTiyvc5fh 34axAD8H8qjqWnKdT6g+iga5Zd+G+VWlw3D+Y7fK6DQsACyhrC25YH4G4L/eI+lNXF/T IEizXKMLeRkr5bv8ZPV9QqU1Qy4zqa8jLecH34L/6V8OrVAn64TUTClqeyyz+nqRWMXI 6JbLrZUvBL3vjQxjw6mxQ7nEhXy8Xi/gYS/xOfbGsSidIPwZ8s0lTKkyzhRqDwEkGerf AczGw00sNZwNHQsIPeI3TiyE4WOV0Y4ODKLYFQ5O9XybZhpxfHyzhFMzk6TwGCExlMjv R4eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=osAQ5mgXRvK0YhHwcfc6UYiDFnlUmLMcwWdOnT8mvv8=; fh=66+YoVE6aeH+gP2AlT9fjOzrQKYCbkuu4soTljKb7xg=; b=ipLzz+Q9AlnBDBqRe/JyNnjQDG7VQkdMUSTtQECZqnEg98G9JF9Hi00g8s04V/ZZGc dGJeliWjgPLmDB9smfn4ZXvSFZFITNHsPqRDuuZxbQfqBp39ly7TF2mU2p3vqtupt9km wDtEcLQsPK0al07j/ljc4Gd0Zs8YHwlybuITXLhKiDWLezJZzuxOSqzK+H0VmUdNHp+e 9SJ2LcR/nDNBzBbtmGdA+vJVxL7HjzFFasxRYZXzejViQtuXfwPpvfUyxmOuQ/XHrgM/ HXVyPVoTMFPDHWp5ndOKLAd9tOyuFtRH1HMAY9sy9a86PjZX/+JudRi0RgXD6Emjn13N 5Piw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cu9-20020a17090afa8900b002764d977cb8si2400791pjb.1.2023.09.21.14.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 14:36:06 -0700 (PDT) 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; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 61F068287896; Thu, 21 Sep 2023 14:12:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231955AbjIUVMR (ORCPT + 99 others); Thu, 21 Sep 2023 17:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbjIUVK6 (ORCPT ); Thu, 21 Sep 2023 17:10:58 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05A52A6B77; Thu, 21 Sep 2023 11:00:29 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id af288fc4f0608954; Thu, 21 Sep 2023 16:00:28 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id BA3E1664E61; Thu, 21 Sep 2023 16:00:27 +0200 (CEST) From: "Rafael J. Wysocki" To: Ard Biesheuvel Cc: Linux ACPI , LKML , Michal Wilczynski , Guenter Roeck , Frank Scheiner , "Rafael J. Wysocki" Subject: Re: [PATCH v1] ACPI: processor: Provide empty stub of acpi_proc_quirk_mwait_check() Date: Thu, 21 Sep 2023 16:00:27 +0200 Message-ID: <5724231.DvuYhMxLoT@kreacher> In-Reply-To: References: <12299447.O9o76ZdvQC@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrudekiedgjedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepfeduudeutdeugfelffduieegiedtueefledvjeegffdttefhhffhtefhleejgfetnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeejpdhrtghpthhtoheprghruggssehkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehmihgthhgrlhdrfihilhgtiiihnhhskhhisehi nhhtvghlrdgtohhmpdhrtghpthhtoheplhhinhhugiesrhhovggtkhdquhhsrdhnvghtpdhrtghpthhtohepfhhrrghnkhdrshgthhgvihhnvghrseifvggsrdguvg X-DCC--Metrics: v370.home.net.pl 1024; Body=7 Fuz1=7 Fuz2=7 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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]); Thu, 21 Sep 2023 14:12:33 -0700 (PDT) On Thursday, September 21, 2023 3:09:04 PM CEST Ard Biesheuvel wrote: > On Thu, 21 Sept 2023 at 13:04, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > Commit 0a0e2ea642f6 ("ACPI: processor: Move MWAIT quirk out of > > acpi_processor.c") added acpi_proc_quirk_mwait_check() that is > > only defined for x86 and is unlikely to be defined for any other > > architectures, so put it under #ifdef CONFIG_X86 and provide > > an empty stub implementation of it for the other cases. > > > > Link: https://lore.kernel.org/lkml/c7a05a44-c0be-46c2-a21d-b242524d482b@roeck-us.net > > Link: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?h=remove-ia64&id=a0334bf78b95532cec54f56b53e8ae1bfe7e1ca1 > > Fixes: 0a0e2ea642f6 ("ACPI: processor: Move MWAIT quirk out of acpi_processor.c") > > Reported-by: Guenter Roeck > > Reported-by: Frank Scheiner > > Signed-off-by: Rafael J. Wysocki > > --- > > > > This is kind of orthogonal to > > > > https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?h=remove-ia64&id=a0334bf78b95532cec54f56b53e8ae1bfe7e1ca1 > > > > because if any architectures other than x86 and ia64 decide to use the > > processor _OSC, they will see the reported build error. > > > > You mean when other arches #define CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC too, right? > > In any case, this is going to conflict with my change, which is > already in linux-next (you were cc'ed on the PR to asm-generic). What > do you propose here? IIUC, the conflict is that the empty stub will be defined twice if this is applied before removing ia64. But if it is applied on top of the ia64 removal, all should be fine, so that's what I would do (and tell the -stable people to ignore it). > > --- > > drivers/acpi/internal.h | 14 ++++---------- > > 1 file changed, 4 insertions(+), 10 deletions(-) > > > > Index: linux-pm/drivers/acpi/internal.h > > =================================================================== > > --- linux-pm.orig/drivers/acpi/internal.h > > +++ linux-pm/drivers/acpi/internal.h > > @@ -148,8 +148,11 @@ int acpi_wakeup_device_init(void); > > #ifdef CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC > > void acpi_early_processor_control_setup(void); > > void acpi_early_processor_set_pdc(void); > > - > > +#ifdef CONFIG_X86 > > void acpi_proc_quirk_mwait_check(void); > > +#else > > +static inline void acpi_proc_quirk_mwait_check(void) {} > > +#endif > > bool processor_physically_present(acpi_handle handle); > > #else > > static inline void acpi_early_processor_control_setup(void) {} > > > > > > >