Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp385520rdf; Fri, 3 Nov 2023 03:57:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAU9Jr5m7SJ5+RcS5xe3HXdrhOOk4Ze0Z/9W4WPLjc/7ghuEcFhOOo27ZZc/6La/zbg4er X-Received: by 2002:a17:90a:fd01:b0:27f:ebfa:1112 with SMTP id cv1-20020a17090afd0100b0027febfa1112mr17741139pjb.5.1699009072609; Fri, 03 Nov 2023 03:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699009072; cv=none; d=google.com; s=arc-20160816; b=VfS4impazqyBDUaOSC+JdMAYaHOJKJsQ5hrkWi2INuU6/xwGSOwIrKn87a3ZnBlpsq SighVEHuSeIimWZr7bgaavSaUPLpA97l7GSOQ6UvQJahspcgt/6YogANAnCB1zDtAQQ5 lJXEdNrJ+4FETK4a+7+T5Cy/ZZcWOMNKiip9GCNZLHudaAwG3XFOgemATocyEapTI86k Kf4WCeydzm1IM9XolvdN1lgBex0TtqeImLjk75cei96g0dGypQ36XoU8L6ufzfQs041l yk1zxEIW2hPdC/33NZeMGKI/4Zxekc9YuCW56DNbDgPJoYq04K4hQ7KK4Tjz8drmVJIV o2MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=o8sTPKBWvFBC0Aptf11FbR8YSjSZdMGSDFlY4xWXWaI=; fh=pMMXRxvWGXnCYrOd/QiVGHprxE+V02PkCqS+pzvn+p8=; b=FWplb99CHu7XD+5E2DKvhc8HPhQSwdRxLMIqpdNCofxeIVNqx0VCYidTFmRnarmo72 SJZjiIYZldu2+VtVHjzmiA5ERZtNluvg3pLQBUPgE7B1MYa94Toe19ZAuIJ2y3iEclYS jUyz6DZ9EzV/dqDBUT3cLj8nPgAwC/q82qk6i3b32c54BiwyiT91X6BtQldYNa+erBg3 3AZ4HV14gsnjQtcXPkHXII2bB/pV1fkK8CUrCCO9cATCadaFLzs73oRX9eAxVLDf74IE 3TmaMOAlEzxgcCDbiD22D8UaABl3MgmQ2NysXOKzPmmsHKS2PTRqTdPmSXqtQ2rLMvPE t1Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Sj2cjVoT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s8-20020a17090ad48800b00280414d7a6bsi1353738pju.190.2023.11.03.03.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 03:57:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Sj2cjVoT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 024118023E3B; Fri, 3 Nov 2023 03:57:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377145AbjKCK5W (ORCPT + 99 others); Fri, 3 Nov 2023 06:57:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230435AbjKCK5V (ORCPT ); Fri, 3 Nov 2023 06:57:21 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7DC123; Fri, 3 Nov 2023 03:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=o8sTPKBWvFBC0Aptf11FbR8YSjSZdMGSDFlY4xWXWaI=; b=Sj2cjVoT9t+IOEoqQJ53YxE07G ErC9itrvBOY3rqkJZRzR3n9bWZmyCAlY+FA8WFuA/L5AFNiXzVY2H+HphKII4xZNCSjqPbge8eN8U J51d33/f8Adj2ntImyjj3U5WsYbrID7xiuHjsgFHB6RGN8a+KnsnT1A1RAVykm5QwogyLIMRL2+ND KHZj5MNv1iC3JSpkpSZEIJmdryDiAAgMYVFq74uos+pcX3pukJEsDJGJcSZNDUa713nqdVfJiPMTW syuWouFnbkMouLpsBe6bht6umC+OeFMdVqURYoVtihs2GWzplgJBOcdfBihzbT2eu9HXbFY53GUiI vVSNNROg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:37210) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qyrrR-0005Sc-2Y; Fri, 03 Nov 2023 10:57:09 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qyrrT-0008L2-Er; Fri, 03 Nov 2023 10:57:11 +0000 Date: Fri, 3 Nov 2023 10:57:11 +0000 From: "Russell King (Oracle)" To: Jonathan Cameron Cc: James Morse , 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, Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com Subject: Re: [RFC PATCH v2 15/35] ACPI: processor: Add support for processors described as container packages Message-ID: References: <20230913163823.7880-1-james.morse@arm.com> <20230913163823.7880-16-james.morse@arm.com> <20230914145353.000072e2@Huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 03 Nov 2023 03:57:50 -0700 (PDT) On Fri, Nov 03, 2023 at 10:43:15AM +0000, Russell King (Oracle) wrote: > On Thu, Sep 14, 2023 at 02:53:53PM +0100, Jonathan Cameron wrote: > > On Wed, 13 Sep 2023 16:38:03 +0000 > > James Morse wrote: > > > > > ACPI has two ways of describing processors in the DSDT. Either as a device > > > object with HID ACPI0007, or as a type 'C' package inside a Processor > > > Container. The ACPI processor driver probes CPUs described as devices, but > > > not those described as packages. > > > > > > > Specification reference needed... > > > > Terminology wise, I'd just refer to Processor() objects as I think they > > are named objects rather than data terms like a package (Which include > > a PkgLength etc) > > I'm not sure what kind of reference you want for the above. Looking in > ACPI 6.5, I've found in 5.2.12: > > "Starting with ACPI Specification 6.3, the use of the Processor() object > 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, there is: > > https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html#declaring-processors > > Unfortunately, using the search facility on that site to try and find > Processor() doesn't work - it appears to strip the "()" characters from > the search (which is completely dumb, why do search facilities do that?) > > > > The missing probe for CPUs described as packages creates a problem for > > > moving the cpu_register() calls into the acpi_processor driver, as CPUs > > > described like this don't get registered, leading to errors from other > > > 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_add() > > > for each processor that is discovered like this. The processor container > > > handler is added with acpi_scan_add_handler(), so no detach call will > > > arrive. > > > > > > Qemu TCG describes CPUs using packages in a processor container. > > > > processor terms in a processor container. > > Are you wanting this to be: > > "Qemu TCG describes CPUs using processor terms in a processor > container." > > ? Searching the ACPI spec for "processor terms" (with or without quotes) > only brings up results for "terms" - yet another reason to hate site- > provided search facilities, I don't know why sites bother. :( Given what https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html#processor-container-device says, and what QEMU does (as I detailed in my reply to Gavin), I think this should be: "Qemu TCG describes CPUs using processor devices in a processor container." which uses the same terminology as the ACPI specification. Maybe also including a reference to the above URL would be a good idea too? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!