Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2176073rdd; Fri, 12 Jan 2024 01:25:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNBY4t1LIpyL/NPhwFyOFMtyVBpQdt7wpEFRVgj29enDO4CpbhwkF9khMLAAAIMWuXDe4S X-Received: by 2002:aa7:ca41:0:b0:557:c2b5:1e4f with SMTP id j1-20020aa7ca41000000b00557c2b51e4fmr501931edt.67.1705051548250; Fri, 12 Jan 2024 01:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705051548; cv=none; d=google.com; s=arc-20160816; b=xs/v+7zsDan/lypS8JKu/uQAO+kOgpsjq4YraLHE+BhmFbOzux9MTybf47d+b0BlsU QaJxSRqQotAtMa4is/F20CWgvxWNhD93/c1pPEquHZJA2+yPLnGTuUmmWcDEOUVpsaIC 6Eg7IjEnKtOWgYtrFGLvPYJxfd4gOLEwqjSVT/XBksk/fwNFk/MjXGU828LxBOJ4uAKM hvTD/fURlcbuMOxHQ1ZFaHD+VCvDCw14pSAMQBu6n3XzIPEncbtMDjSv9rY6fNUuvtqC AAHgcvbdlocKZsHp6CRQ3Cn6eOMTPXB1CZWEjPpoWlATvHtLeP8wSmVj31NVdjXEUcJ2 uKWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=UDfnGeNSUQKXa/0HnoOzNjhG3r79vxIUBCBNr0aIMqc=; fh=Znsn6mtEq8jmuIJgUo/xbgu3B+TeYmx4q5iWwbda34A=; b=blU0q0+K2lT1VZRkgdBdfBZNwpaYrrlks3EhJgWRFcdQVtjviB/SXHNaE7j8URMLbd p3kmUBd30TyU/DukSfHqMDXcyC3/Ml48GoHD2qQplyBuymK3B5rbtoWNSnbxLjqlyjRZ 2FRrmwc9aLcwV9/5uP0xK9kGVya1eEp8g72eqMxN1GhY+WkuI62iWQLUO8b39HIPTF2K LsVn4Zr1RZr87JTR3NvxdoGVc7tMN1phxBjrqufJeqFyQJV4CpZkPAmODV0J7DpkWfo8 +cMiolZYySRSK3SbSgb1LaS+PCXuTJ8lJ2CrYZNYTiMbKwIqTI1bKgq61GPYGnq0KL0P iquA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24471-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f14-20020a056402194e00b005579deda8e4si1276420edz.143.2024.01.12.01.25.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:25:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24471-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; spf=pass (google.com: domain of linux-kernel+bounces-24471-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 077041F25D84 for ; Fri, 12 Jan 2024 09:25:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 169AB57302; Fri, 12 Jan 2024 09:25:27 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 565C029D19; Fri, 12 Jan 2024 09:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TBGL62L2Wz6J69M; Fri, 12 Jan 2024 17:23:26 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 9A8B6140A36; Fri, 12 Jan 2024 17:25:21 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 12 Jan 2024 09:25:20 +0000 Date: Fri, 12 Jan 2024 09:25:20 +0000 From: Jonathan Cameron To: "Russell King (Oracle)" CC: "Rafael J. Wysocki" , , , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse Subject: Re: [PATCH RFC v3 02/21] ACPI: processor: Add support for processors described as container packages Message-ID: <20240112092520.00001278@Huawei.com> In-Reply-To: References: <20240111175908.00002f46@Huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: lhrpeml500005.china.huawei.com (7.191.163.240) To lhrpeml500005.china.huawei.com (7.191.163.240) On Thu, 11 Jan 2024 18:46:47 +0000 "Russell King (Oracle)" wrote: > On Thu, Jan 11, 2024 at 05:59:08PM +0000, Jonathan Cameron wrote: > > On Mon, 18 Dec 2023 21:17:34 +0100 > > "Rafael J. Wysocki" wrote: > > =20 > > > On Wed, Dec 13, 2023 at 1:49=E2=80=AFPM Russell King wrote: =20 > > > > > > > > From: James Morse =20 > >=20 > > Done some digging + machine faking. This is mid stage results at best. > >=20 > > Summary: I don't think this patch is necessary. If anyone happens to b= e in > > the mood for testing on various platforms, can you drop this patch and > > see if everything still works. > >=20 > > With this patch in place, and a processor container containing > > Processor() objects acpi_process_add is called twice - once via > > the path added here and once via acpi_bus_attach etc. > >=20 > > Maybe it's a left over from earlier approaches to some of this? =20 >=20 > From what you're saying, it seems that way. It would be really good to > get a reply from James to see whether he agrees - or at least get the > reason why this patch is in the series... but I suspect that will never > come. >=20 > > Both cases are covered by the existing handling without this. > >=20 > > I'm far from clear on why we need this patch. Presumably > > it's the reference in the description on it breaking for > > Processor Package containing Processor() objects that matters > > after a move... I'm struggling to find that move though! =20 >=20 > I do know that James did a lot of testing, so maybe he found some > corner case somewhere which made this necessary - but without input > from James, we can't know that. >=20 > So, maybe the right way forward on this is to re-test the series > with this patch dropped, and see whether there's any ill effects. > It should be possible to resurect the patch if it does turn out to > be necessary. >=20 > Does that sound like a good way forward? >=20 > Thanks. >=20 Yes that sounds like the best plan. Note this patch can only make a difference on non arm64 arches because it's a firmware bug to combine Processor() with a GICC entry in APIC/MADT. To even test on ARM64 you have to skip the bug check. https://elixir.bootlin.com/linux/latest/source/drivers/acpi/processor_core.= c#L101 /* device_declaration means Device object in DSDT, in the * GIC interrupt model, logical processors are required to * have a Processor Device object in the DSDT, so we should * check device_declaration here */ // if (device_declaration && (gicc->uid =3D=3D acpi_id)) { if (gicc->uid =3D=3D acpi_id) { *mpidr =3D gicc->arm_mpidr; return 0; } Only alternative is probably to go history diving and try and find another change that would have required this and is now gone. The ACPI scanning code has had a lot of changes whilst this work has been underway. More than possible that this was papering over some issue that has long since been fixed. I can't find any deliberate functional changes, but there is some code generalization that 'might' have side effects in this area. Rafael, any expectation that anything changed in how scanning processor containers works? Jonathan