Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2351634rdd; Fri, 12 Jan 2024 07:04:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGub+9/Fx8OBSM99eS/Mh5N0V7yW7mZujZYcT/t3JUf5xjSXHm/g9JC+isWUraX9VRAJajh X-Received: by 2002:a17:906:449:b0:a28:b74b:27ec with SMTP id e9-20020a170906044900b00a28b74b27ecmr672467eja.111.1705071858409; Fri, 12 Jan 2024 07:04:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705071858; cv=none; d=google.com; s=arc-20160816; b=ogOMCFVhx2h4E9bHd/gQ9BROlx/Pc4x/t0HoxpnoBFORpAo2EJYKs2DMt1IDQjVkJR 4LgNhdJ9MUFwL18dwzQ14wHFDJRH1ph1TMIisRPItxS6rwcxlsZP49vwl2poG8RnDxMl lNq4btix1vpfQpdj8Nl4ko8L+LLt1Oek5Mg35SBQMrGQqZ5Euxy/UrLhehcccXKci/jO /lpqtXBna1AAxz8g0eQ72+4QfJOrAHpjPzK13e2ks4gkQd8ukQAoyY6ooFmBKjIi0rY+ iZuOuhwGYsuIQ0/uX6Ydxc1XBQ8PU+Ox9c9q/DalZ84l+27Fo8y/xzHpJaEr5MGyAnNu nfVg== 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=cz0hATPILpKRe5ibqis90j5yhNavArNI+8eWSKP4m7Y=; fh=sdn7ROngUL/GzkfPsrvmh0L8562GMN7QL0MdFKiDWPs=; b=tZMEjHDBpgCqFdl0UHM5dFar4aq8E3siCrJLl39QrirnVFojmD4mlHrRHQzBLxAcdb NvZvLq35WqWauOjA9jF5ugsHPv3Q2OsXuW2bN6+V3MKtxY4D+puvSTp21M6YdTstHwEN oakDgExNnsxMlv549YwuRNOt/vwv12OMDKaLHTbcVEnOlky9ZJoEyWEf5TAyi1YUoLe8 4HtvBUiHqPhA0zSOwOoq7KJVljnHAgTrE0ZoK0OPvxI03fvbEAVn8nv19WWv806y4HF3 pDjaFlOKVEhw8YVBduIgxkmVoXrDhsevUix+C5GB0zJfJGlQOWlMlcUtUmBE01Y8I6GN UUOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24783-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t13-20020a17090605cd00b00a2c34d90a16si1452877ejt.662.2024.01.12.07.04.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 07:04:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24783-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 2B4941F218E1 for ; Fri, 12 Jan 2024 15:04:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDE186EB51; Fri, 12 Jan 2024 15:04:06 +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 04BA26E2C5; Fri, 12 Jan 2024 15:04:03 +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.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TBPrs1VcSz6FGMn; Fri, 12 Jan 2024 23:02:05 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 445D41400CB; Fri, 12 Jan 2024 23:04:01 +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 15:04:00 +0000 Date: Fri, 12 Jan 2024 15:03:59 +0000 From: Jonathan Cameron To: "Rafael J. Wysocki" CC: "Russell King (Oracle)" , , , , , , , , , , , , , , , 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: <20240112150359.0000733f@Huawei.com> In-Reply-To: References: <20240111175908.00002f46@Huawei.com> <20240112092520.00001278@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 Fri, 12 Jan 2024 16:01:40 +0100 "Rafael J. Wysocki" wrote: > On Fri, Jan 12, 2024 at 10:25=E2=80=AFAM Jonathan Cameron > wrote: > > > > On Thu, 11 Jan 2024 18:46:47 +0000 > > "Russell King (Oracle)" wrote: > > =20 > > > On Thu, Jan 11, 2024 at 05:59:08PM +0000, Jonathan Cameron wrote: =20 > > > > 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 > > > > > > > > Done some digging + machine faking. This is mid stage results at b= est. > > > > > > > > Summary: I don't think this patch is necessary. If anyone happens = to be in > > > > the mood for testing on various platforms, can you drop this patch = and > > > > see if everything still works. > > > > > > > > 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. > > > > > > > > Maybe it's a left over from earlier approaches to some of this? =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 nev= er > > > come. > > > =20 > > > > Both cases are covered by the existing handling without this. > > > > > > > > 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 > > > > > > 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. > > > > > > 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. > > > > > > Does that sound like a good way forward? > > > > > > 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_c= ore.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? =20 >=20 > There have been changes, but I can't recall when exactly without some > git history research. >=20 > In any case, it is always better to work on top of the current > mainline code IMO. Absolutely - just in this case the series has been rebased for=20 a few years because the standards discussions took far far too long! Jonathan