Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2321309rdb; Thu, 21 Sep 2023 15:25:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6Vtmr2iDNyQ0Xg/8ZkrzyGNslA+oqIWxuJuHvYKOBS/rD+o89Z780geXT1PrcNiQf3tjt X-Received: by 2002:a05:6a20:7fa1:b0:140:324c:124c with SMTP id d33-20020a056a207fa100b00140324c124cmr8834154pzj.62.1695335125891; Thu, 21 Sep 2023 15:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695335125; cv=none; d=google.com; s=arc-20160816; b=VxsNzJ8dxb3dVZRTr/o2s9BfopjWOnQoSCtZuInQ6TY1llZB7oteH5EiwJAXNyghC3 qEmQiSj3CLt2jdUW3qdoFo6b6WzZH2HCYYiJMm0CqRe/NmautCTr2WPq2MkQtsgvDRbn 4z1hajKQ/Ol6Tdar1ZGKn5jPMk3b4r0YXxAFyI7APqFZjowm/EMZXMRrVsPuaHy6TXJG h7G1d7tc7k0Rn2pkAZ6sBRJuBO0HO4/9+x0ywpCg3bjvz5g6Ognm3pjuFTXcrB3PxNzu khAtttVWTQFgal0VFpxXhCcJtADWN+acHFrktLkkJgLH2Tc5gEWrBq0UkR012uCPIsGE 1gmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2ZV2krVInMonBF1GwL4RKQQ0+mR4fiWQNKXmAkYj02U=; fh=JkUY+xDt/VgmsPf19kDRBaMgNMkkIDC05zHVneTsRbI=; b=rblJLu5SL6AZKlfD4L57Yz3Os27cCg/zEycx5PCF6OsIlYSlVUz72UW7d7Ki/kaCnJ x5x80C8Wnt0YcYnbTX232+pCVBDTC90jVuquslUxqpxbs11dwMw4DuZvpRTtiXOWRjcR FB1NJARqSxWK9yepDFt8StSC2TU9lGXukNem2jsg/VmldS2D+YoSyIStZGe/ME0bnV1n T3nsDfwhBdvTU8rf7TqIwX4iNJPdH7L37VVqibqmUo1ULg+8X1rz80aHnrYV0GiFrhjp dOupiMHDFF9N0vj/F4ZchAThuMhK4VhxcvJSLCY9ZsZfwaCXhtPYTLo2yNZpyWThErRl RRWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dDCs0y4l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id me15-20020a17090b17cf00b00276b87c8b8esi2859616pjb.59.2023.09.21.15.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 15:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dDCs0y4l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DE65C81DC61D; Thu, 21 Sep 2023 15:11:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232901AbjIUWL3 (ORCPT + 99 others); Thu, 21 Sep 2023 18:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbjIUWLC (ORCPT ); Thu, 21 Sep 2023 18:11:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D5085D39 for ; Thu, 21 Sep 2023 10:37:52 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75009C4E683; Thu, 21 Sep 2023 13:09:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695301757; bh=yAwCJjSMFMlMIBKVIk7qYPpTeU00hSIhJXw0KgaQv2s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dDCs0y4leKCNNse29XK/7s764dl4ZcWvG6Hb8WhFv6KK7PYG+DZuqnEguLf+latrX KAW2BXC56oalCI/mEqVzwtPZzvZXWIhUc0+57ynKi0y3ynxddV4MBI6GOkJG2KNLj4 Cirhtpzbm8OKfKqUKtE0CHvJSyJCsYn8uE7cO8LXPcHcGrQ3RhxC8OHOmYS52C/L9e dess+NkUw3Fsn6mnBkRX8UPAuoouxnAD3syS2qgtRwDMxGZYw14PFj8WvyWgDz3BLO I9SyfuoeL5eGVrRI3/v799+c4Z2UkqfRpe14Vcv8jMVhYuiOCddweVn7V+wcfBxe04 3ef/huaSztenQ== Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-503012f4e71so2472744e87.0; Thu, 21 Sep 2023 06:09:17 -0700 (PDT) X-Gm-Message-State: AOJu0YxMTwmOpkebywUITTo0vhyqJ4tTzamplGpSHOgSJxnAHfJ0/XU5 hpoUBpWt85Ey2ioXu+U0a+Rl8TpvoJ8iJnErplU= X-Received: by 2002:a05:6512:239c:b0:4fe:13c9:2071 with SMTP id c28-20020a056512239c00b004fe13c92071mr3278684lfv.2.1695301755687; Thu, 21 Sep 2023 06:09:15 -0700 (PDT) MIME-Version: 1.0 References: <12299447.O9o76ZdvQC@kreacher> In-Reply-To: <12299447.O9o76ZdvQC@kreacher> From: Ard Biesheuvel Date: Thu, 21 Sep 2023 13:09:04 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] ACPI: processor: Provide empty stub of acpi_proc_quirk_mwait_check() To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , Michal Wilczynski , Guenter Roeck , Frank Scheiner Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 21 Sep 2023 15:11:37 -0700 (PDT) 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? > --- > 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) {} > > >