Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp146382rdd; Wed, 22 Nov 2023 11:39:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsF9ikG1HsLStAABAHDgnhe0fy7xylvGNpcdvFdLuPqH5Ts/eVOEiAvP8ix7JhRm5PqKE1 X-Received: by 2002:a05:6a20:431d:b0:187:7761:6155 with SMTP id h29-20020a056a20431d00b0018777616155mr4089458pzk.55.1700681993755; Wed, 22 Nov 2023 11:39:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700681993; cv=none; d=google.com; s=arc-20160816; b=iGSHqFTNxAaOu+VL7YS9GBIvaNSPBrR/liu8e+KC9drQkiI0md1WrCF8mjNBXBjARV +qeWcJCs5w/CyUjRsXDuotuA1x40GmUTO5X3fPS12UfsNAWDGG320ITRzgiBmLwpHzJV sdckgM+7bQHyzdkS6dY6PxKD0P1lXM74ehP0DsOvpujTsS5hC9OKEJv0nr4rcfXbTkQT NQb7XR7DoDNNu1BZvDPXQi4yt6+8QANfygZp0QSCltXt5BHbMb7ln7vgct3L4k0IutpV Z0SPoQ+v5Pr+nLsZOht0b9Elrdo2KE++oraWQ3DDgbRc9uQS7V0jqY/F0Y5VrjlP9GbZ IVXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=dWrLnj4o0ScD64pbEsYD4/XeWkc/6RjfjSj2OeEZXjo=; fh=FAggYCqQ0Qcp9qlvC1nSf5TZjvp8INjgtamn1hmzwwI=; b=KVKHxXBYqL8VnSB3efvxdE2OJvsg7p0Eb28BIPKuZG6gmiAiNQ/dUkH0nRa9JX3+Ev 4+0DC2AyYW1aWpb2Z1Fgp9GjArjt8nT3wgZeBcI8gtvL/AtdSFrFkCzD0uA/c4kuNuLW Tx+b/vcgdmNuUNt7Ds3vCmNWyEkAxhuAuO+aVbf2xV6RL9X3HX1STefzVyh19NRJaJGn KGCPcUuQvuVPtebYyqe/+1unQ08LjNI26dXDXiDmAwbjhPn11RLAEYKqAALjo9ZzcgYO 1s3eQkDKaj66efGBAOt6B8zQzB0GREJfddfNuQlUG9hc/2GwvneHdVPZ7spgsYpQvv4a mtlg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i2-20020a625402000000b006c2cb9a884fsi159711pfb.293.2023.11.22.11.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 11:39:53 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E67558271759; Wed, 22 Nov 2023 11:39:49 -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 S1344385AbjKVTjh convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Nov 2023 14:39:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343687AbjKVTjg (ORCPT ); Wed, 22 Nov 2023 14:39:36 -0500 Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D8091A8; Wed, 22 Nov 2023 11:39:32 -0800 (PST) Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-5841a3ffd50so17382eaf.1; Wed, 22 Nov 2023 11:39:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700681971; x=1701286771; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JrGYRaQuwaRR+IXDug9hdvAmme5SWIRdj6QFrDzBe8c=; b=GXhRiJYmTV74Y0flUuOH89405jOaMEckYpmOKMaiH5HfqXoB+H0AKa/AqIMqIIAmpC ipKYMNmFF/7zzxPxpg6QVcVeoDJqYarmmQ+9aEWaGOyRgCns7TFnZIvhxFqyA9pnQPJb eKYCV0tPG4l61TuN9h+BGMS0WBuHDWuzsfKILMs5dAtnQEeGRaGgCrPrZWUoCoGUoO5p ftjlqPp3rGf7Hkx342Z/QLYHPoeZm8XjVtEEyzIxu2GZVN9jp2zdrD1w25iBq/t6tlkF 81IrYkx+Oip5C5A46KWTK3JOkXvBJ3f9G1El/NIKqnIjsNOPIgKXVrB7wK0Y7AZxPjgt TcEg== X-Gm-Message-State: AOJu0YyorhX57RoLsm+s/XfhL7/B0HghGpJt5D4xbw9NhPPBbBg5uZaM bhb972rxCQFMMIm5NZrAql/MlIKZdF+K59ga3RJmTHCn X-Received: by 2002:a05:6820:706:b0:58c:ec4c:fcac with SMTP id q6-20020a056820070600b0058cec4cfcacmr3707814oow.0.1700681971570; Wed, 22 Nov 2023 11:39:31 -0800 (PST) MIME-Version: 1.0 References: <12299447.O9o76ZdvQC@kreacher> <5724231.DvuYhMxLoT@kreacher> In-Reply-To: <5724231.DvuYhMxLoT@kreacher> From: "Rafael J. Wysocki" Date: Wed, 22 Nov 2023 20:39:20 +0100 Message-ID: Subject: Re: [PATCH v1] ACPI: processor: Provide empty stub of acpi_proc_quirk_mwait_check() To: "Rafael J. Wysocki" Cc: Ard Biesheuvel , Linux ACPI , LKML , Michal Wilczynski , Guenter Roeck , Frank Scheiner , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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]); Wed, 22 Nov 2023 11:39:50 -0800 (PST) On Thu, Sep 21, 2023 at 4:00 PM Rafael J. Wysocki wrote: > > 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). And ia64 is gone now, so applied.