Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp419497rdd; Tue, 9 Jan 2024 08:05:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHO+iKkRPZq+1i9ebui/C7j0wJyxeIt62FmFPz9n9JZQb90tzAqX5YqS7BpQzqNuM5jl2ad X-Received: by 2002:a50:9e0f:0:b0:555:bb88:cba3 with SMTP id z15-20020a509e0f000000b00555bb88cba3mr3298285ede.27.1704816341062; Tue, 09 Jan 2024 08:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704816341; cv=none; d=google.com; s=arc-20160816; b=pYCvzknCBj/dzS/vTDyDBmZ940E2IRzQwvl3b/ZVtzwtPaA27IsQuanrEY45Z48DOw Q4dgLYdoK68RYIyTpARTqvwyUPFlhSsRNM6I+Lv6cp2OxZqN8vE+0RAnO/62HHT0ult2 BMftWos/kwr6kDA1dtV4uPgZO4p2Ae81f8OmSv1sF1uEGO6qDLBLbVcara0q8kRjKAYl ZPiUDychoGID+1Or8nqjev91LYFKRYrd5mTXYSOwYSL8W2oRC+3GDo21zV6TraLcMOiC 6hq1K8xsjazt2zQqOvdA6i+eyHTmQKc5w7MOqyt/yjHMYK46YueNkB4zGHo7MinVrqO/ BJEw== ARC-Message-Signature: i=1; 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=TTP9EiyEeva0GUJp/wJKIwTcNHCIZPpR3j0J43X6b+g=; fh=FRFDODWODXQ9U6YPjI3WST5B/am/FhoaHsYhpiN2zIo=; b=uR1XXDR1ZheR5pTHVS4k+UlS0y8a5oBS0BBI28XGWOtVW2m5/GsqJuMVpzD3eAm3M6 FtQOvE+XRGimKBNcRJSvBoFkeG+kn4CgyR/jQvvMuUVHJHlndD87ndKsWgA03OzkguT3 DqFjxjo57f9VLofFc7NDqBbiv1OgkgYw25B5CYwr2a5/tg/8hPLV4oQD3ZYdILouEW6A LPIj2cBOVrpLAkoXATzwURB0Y9tlvT7fCUz2UJPDeUTXqfqPL0L0iWVRGpVhH6sSFr1e VCyLdfRPxOjdy3I81N2XqpIEAJS3yKNHI75yPMYEmKNSuQypMuFUHRS7YZViwJcMDbM1 HwGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21089-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21089-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 17-20020a508e11000000b0055355392427si856512edw.17.2024.01.09.08.05.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 08:05:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21089-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-21089-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21089-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 C8E7D1F250FE for ; Tue, 9 Jan 2024 16:05:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A44703A1BF; Tue, 9 Jan 2024 16:05:29 +0000 (UTC) Received: from mail-oo1-f44.google.com (mail-oo1-f44.google.com [209.85.161.44]) (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 C043F38DC1; Tue, 9 Jan 2024 16:05:27 +0000 (UTC) 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-f44.google.com with SMTP id 006d021491bc7-5958b9cda7aso99270eaf.0; Tue, 09 Jan 2024 08:05:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704816327; x=1705421127; 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=TTP9EiyEeva0GUJp/wJKIwTcNHCIZPpR3j0J43X6b+g=; b=nxWnuh45KgkIE081cfLsGH5hj6NpGc+NaDu+eKB87d8LKa3hjPtZ4KvZPUpgpdj7xC 7ZQiO87BccZkoBUKabImwdG6lh01VlUM+GMhYBIxKVmZLNfy5xeAaBt0LKLMCu0FUlI7 aDia4Gp9x991h9tNw3RhsSZnWYUHDOd01ADtuHQvtC0WGfl6y4aviZMteJruWpjJv0ZA kssQiU5/WU0Ij98pOWqozDfZ1XHP6cCFtfmmXZA6vCwYjGUPaL/YdISciconI+Y9PLnk hNA79xCd1MRRzoleQv7LWvmHs5IGaPwE9k4C3mZP+yn9ukFmMOgcf0Q234npRDC278ls 52IQ== X-Gm-Message-State: AOJu0YzX1nmipWVKmckDWLkNZxGMYx2Tgs5hZ1TtPGqKhVGjl/d/yC/n ElEnKY1qyJKKDGDvgTT3EN+bKe877N8Gi4H0D1w= X-Received: by 2002:a05:6820:d0a:b0:598:8d98:286d with SMTP id ej10-20020a0568200d0a00b005988d98286dmr696771oob.0.1704816326785; Tue, 09 Jan 2024 08:05:26 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 9 Jan 2024 17:05:15 +0100 Message-ID: Subject: Re: [PATCH RFC v3 02/21] ACPI: processor: Add support for processors described as container packages To: "Russell King (Oracle)" Cc: "Rafael J. Wysocki" , linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, acpica-devel@lists.linuxfoundation.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 9, 2024 at 4:49=E2=80=AFPM Russell King (Oracle) wrote: > > On Mon, Dec 18, 2023 at 09:17:34PM +0100, Rafael J. Wysocki wrote: > > On Wed, Dec 13, 2023 at 1:49=E2=80=AFPM Russell King wrote: > > > > > > From: James Morse > > > > > > ACPI has two ways of describing processors in the DSDT. From ACPI v6.= 5, > > > 5.2.12: > > > > > > "Starting with ACPI Specification 6.3, the use of the Processor() obj= ect > > > was deprecated. Only legacy systems should continue with this usage. = On > > > the Itanium architecture only, a _UID is provided for the Processor() > > > that is a string object. This usage of _UID is also deprecated since = it > > > can preclude an OSPM from being able to match a processor to a > > > non-enumerable device, such as those defined in the MADT. From ACPI > > > Specification 6.3 onward, all processor objects for all architectures > > > except Itanium must now use Device() objects with an _HID of ACPI0007= , > > > and use only integer _UID values." > > > > > > Also see https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_a= nd_Control.html#declaring-processors > > > > > > Duplicate descriptions are not allowed, the ACPI processor driver alr= eady > > > parses the UID from both devices and containers. acpi_processor_get_i= nfo() > > > returns an error if the UID exists twice in the DSDT. > > > > I'm not really sure how the above is related to the actual patch. > > > > > The missing probe for CPUs described as packages > > > > It is unclear what exactly is meant by "CPUs described as packages". > > > > From the patch, it looks like those would be Processor() objects > > defined under a processor container device. > > > > > creates a problem for > > > moving the cpu_register() calls into the acpi_processor driver, as CP= Us > > > described like this don't get registered, leading to errors from othe= r > > > subsystems when they try to add new sysfs entries to the CPU node. > > > (e.g. topology_sysfs_init()'s use of topology_add_dev() via cpuhp) > > > > > > To fix this, parse the processor container and call acpi_processor_ad= d() > > > for each processor that is discovered like this. > > > > Discovered like what? > > > > > The processor container > > > handler is added with acpi_scan_add_handler(), so no detach call will > > > arrive. > > > > The above requires clarification too. > > The above comments... yea. As I didn't write the commit description, but > James did, and James has basically vanished, I don't think these can be > answered, short of rewriting the entire commit message, with me spending > a lot of time with the ACPI specification trying to get the terminology > right - because at lot of the above on the face of it seems to be things > to do with wrong terminology being used. > > I wasn't expecting this level of issues with this patch set, and I now > feel completely out of my depth with this series. I'm wondering whether > I should even continue with it, since I don't have the ACPI knowledge > to address a lot of these comments. Well, sorry about this. I met James at the LPC last year, so he seems to be still around, in some way at least..