Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1847817rbb; Tue, 27 Feb 2024 03:14:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVg80QP4jQOLbx8FDyXRLPnOVHij8CXE6Vy5PTz9Cyp2impLh31XWt2hFRD0xsUgTPfMpE1XBJbefrqdExdHzI0kgJdme/3fDKjK+7iLw== X-Google-Smtp-Source: AGHT+IEobODA2kUuSrewyTD0THkSQ88bKZk9zcLSNjDP3Do9hhHvMBSKl2+vJU3EMhPz1L092Jvt X-Received: by 2002:a05:6402:1a5b:b0:564:5c90:f521 with SMTP id bf27-20020a0564021a5b00b005645c90f521mr6135503edb.14.1709032453372; Tue, 27 Feb 2024 03:14:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709032453; cv=pass; d=google.com; s=arc-20160816; b=DFbWeAb24Sv9Cm+dRVRg90807lo4P1oJT7Yx9vMhrFRrVvjENkWI85f7W4udIzXiZ5 fBGlaq4q6a+1nMSXEGxzTf65hEu1LUrwZ+SYX/K5gHZr7bBTVosH3SUOsA+LwY/cUKV/ 5tlQ/2WIzrnSX8GPeeYyWOvH+jzttYL+QDNG1Skk3nlBEOqM5FouEhZ/kbudFUx5vTa+ h69Kw5MAVdkalSF8tFvbXCJm4ui/nZI0cYf+KAO9/e17xXKEfsI6t4LrrlrLfkTgqK4s Z+2qaXnR740aRiSuTOfwwyTDRDTvGE35pikePM4aRMEBFFCzhpYPKu2XEZE7gRrFDqmw b11Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=MVXIRlrBqlDw6Ivndp/P8xBINKY02FK42546s1P+zn4=; fh=KgvLKamvvvvp7iX8rd5WYSfYJCfPqywJ59gyKaOwhYw=; b=cJpR98P1WQ2JstskRqPIs2v56F/uiUQFBtRSN95sNmEbXcI4MpTfXl+7Ujobq9S6EI yKiwqpL+IXgHbKn3mF6zuiCUhr/EafWfUvTINq9QSWOSusX5GnBEubepWZBPpZad31xd zsz8oWdT9VZnUgscwAKph4M4IItlVaEF1NNe3/iYp/6Nuxf9eJbk4y0EZxizQgbBQjc2 VxThqYWKKAdZBZDGgACqN1JxCHPXBOZYxc6BCgp78UvkSmPT3c+Da09vM7tdaju6n79j 31vsMtF4xRASepWbwaJI6mc9Y3f9fUwmC74q81VaP2TAYPo12e0nceGNT/cH/Iz3zu3j allQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n18-20020a056402061200b00565fa6bbb36si635229edv.441.2024.02.27.03.14.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 03:14:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EB2D41F26E2A for ; Tue, 27 Feb 2024 11:14:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1391139585; Tue, 27 Feb 2024 11:14:05 +0000 (UTC) Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAC02137C38; Tue, 27 Feb 2024 11:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709032445; cv=none; b=gSgMORBhfbBBn5DsFsFSPFG6MJ7OIZz5rRPsxZYwTuEy4s+53U0uwJhmMEV7kwFhNlJaQWUtMHLmjnPhOb+WzE1Cx3G4fIZA9DseXEyrroC2d7AELnTkVGL6dVUXFPcL/2BDx+1/qDmDCeVqTwhvk5BmeAafGevUYZ7gTLjwITc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709032445; c=relaxed/simple; bh=MVXIRlrBqlDw6Ivndp/P8xBINKY02FK42546s1P+zn4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=D3WksnEuuElTihBnCpIxcn5jxfM32Z782vjaEzb9RjXxs2vj0SNEeOPNMfP+4f02FlCLiZSyG9GXA728P2D7UD9LmojEr3XIVTb4A2z/c9uW55LkTcsdNwITJcbbUTUqpoxJmzVJsHFvGDqzCBZPiFIDc0p1YDCfWaSMI+cSzOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.161.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-5a0b0a2819cso121604eaf.0; Tue, 27 Feb 2024 03:14:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709032443; x=1709637243; 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=MVXIRlrBqlDw6Ivndp/P8xBINKY02FK42546s1P+zn4=; b=r3blyjUfU3/AKmYMUKaeiGrmtDMFQ6nhk48NTQtFksHnVEsMoUwpWY1wRD3EB/zZGm 4X99UzkR/ceZfH1C98BD5+pY2ysQKkQKMY9nFUP3XJmJsPj7jilt3FAkC7npG31VoIR8 wB3sa2QlumYSD5FSw+Gu6FoGPgllIfROkQtgNIG5Hw/4qMo2wPeKSh/kTpxHv5Rxmdzv dX1PdrGBj61FiQPJ8Vuz4qiFAFH6k1GRtBsZ1UwZvXajLeZKNji3ruinK1fM/29UNBNj bgtIzVo4mdwUsw1GV2vE/HDHSLwewggR+YREQWzwF6I2fLbnXV2c5gvP7uaGXF5gn2hZ x3yA== X-Forwarded-Encrypted: i=1; AJvYcCUYd9lNGbOlBLCp6Nq6XBxOQR5VKM5JmKc7apHvyJQiYUQfpfDfeH50Ur/nz27zu1L7SaOdNmxHTHe/Qsllpbxljye39ZRpzxp/WapDpBBvStBnszZEfYFdBOS/GWE2WnQL+yMLWC4EZw== X-Gm-Message-State: AOJu0YwXPsTbHbu54MoSb28lXiF9KqMSxWJLQRWbXCsNDqdnw0zMBB8S WzfA+Y2+cEcNxEveFU2bMOOHJwqIUSoCA6t5xKMgLpu+3sQYD7/ouYtVc6g4CPF98WKkKbcrOOc v/QUIB1fUJ3lNSwmUmy8/Usq3Ovc= X-Received: by 2002:a4a:d996:0:b0:5a0:4216:c5f0 with SMTP id k22-20020a4ad996000000b005a04216c5f0mr8840444oou.0.1709032442924; Tue, 27 Feb 2024 03:14:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <6021126.lOV4Wx5bFT@kreacher> <3283809.44csPzL39Z@kreacher> <20240227092844.00006d49@Huawei.com> In-Reply-To: <20240227092844.00006d49@Huawei.com> From: "Rafael J. Wysocki" Date: Tue, 27 Feb 2024 12:13:50 +0100 Message-ID: Subject: Re: [PATCH v2 3/5] ACPI: scan: Make acpi_processor_add() check the device enabled bit To: Jonathan Cameron Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Mika Westerberg , "Rafael J. Wysocki" , "Russell King (Oracle)" , kangkang.shen@futurewei.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 10:28=E2=80=AFAM Jonathan Cameron wrote: > > On Mon, 26 Feb 2024 17:40:52 +0100 > "Rafael J. Wysocki" wrote: > > > From: Rafael J. Wysocki > > > > Modify acpi_processor_add() return an error if _STA returns the enabled > > bit clear for the given processor device, so as to avoid using processo= rs > > that don't decode their resources, as per the ACPI specification. [1] > > > > Link: https://uefi.org/specs/ACPI/6.5/06_Device_Configuration.html#sta-= device-status # [1] > > Signed-off-by: Rafael J. Wysocki > > Sorry for lack of reply on discussion. No worries. > Your follow up mails never reached my inbox for some reason /me blames spam filters somewhere. > so I just caught up on lore. I'll keep an eye on > the archives to make sure I don't miss further discussion. Thanks! > Agreed that functional isn't relevant here so this patch is correct. > Also agree that it would be nice to clarify the spec as you mentioned > to say that bit 1 is reserved if bit 0 of _STA result is clear. > Depending on interpretation it's either a clarification or a relaxation > of current statements, so should be uncontroversial (famous last words ;) Right. > +CC kangkang so this is on his radar as an ACPI cleanup suggestion. > For his reference, discussion is here: > https://lore.kernel.org/linux-acpi/CAJZ5v0jjD=3DKN0pOuWZZ8DT5yHdu03KgOSHY= e3wB7h2vafNa44w@mail.gmail.com/ > > Reviewed-by: Jonathan Cameron Thanks for all of the reviews!