Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp338854lqj; Wed, 10 Apr 2024 11:57:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFHj4xLZ0hpszjsTMuV0kxJi2kaRqdE8MpgcGQkFYEKKA4VePMZMpYBb8+j5VRrBNqkRgl2gvy/UOPA57gfr8Mlk2UgaGRG5WTh6GooQ== X-Google-Smtp-Source: AGHT+IFqqYqQZlzrv8h9Z/f5lT0j1DcnTw90RhSwI/58rG+9FTgaNkpkzNzgv50RP3FzURX4OQlN X-Received: by 2002:a05:6a20:2d13:b0:1a7:5676:f5ac with SMTP id g19-20020a056a202d1300b001a75676f5acmr5243973pzl.52.1712775428871; Wed, 10 Apr 2024 11:57:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712775428; cv=pass; d=google.com; s=arc-20160816; b=Ljb4qAkYo2Lj0UraC26Id1Jaa8AIlqRXrkwzj6+xXV2dN1u8QrywfSC4AuqiDVd4lS LnCFvWmmxZeKFpalq0mCPNw6yV18zTY8228V7NWGvuVzY700m4mIy8puFmrrbKLIurNF 5bIzj6KMPKq7reRsQQtjS7SGiYGXZO2JJyxEGEzh/Lc4MXlOlyOxuDNKIGdZ2mVyRrhi qbSfDowaHSHhmJghaB7MN9hORoYAiMNnJ8bO5uAlEWPeQhIGa7SpZAFYdZOtZTkZkTxY ruIXmmjvnR/SameDwP5Ery/axqaILTSCXxy1iMRIFHeDGRTWXdBX0YdXQ9OAL26okL7o 13Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=U8bqg6vv1xN246qvsvrQZYNVGTMrjTXzu9x/4q0URWY=; fh=+ODUIt4VnAeK/nkCHAGa8GofO0JrYydBV5TxZEqgJOY=; b=UUzUhFbX/L10pGmgJaCGYtSpvR9nzT62ehvTtJYbbyvqERH6Syi62fJ/DIpc0RfF3H cHuEsDDsqeiGMNVFqfhLzVBo9TNsBXh7zognXkFPIhVLOLImg8/VxFFjVr3jCobUOTLQ yTqqismrUdufD3GVnNEANftrr7M6/l4Y/d1kXxLhwzXzZN2XQZc/X2rRl571ENsMUEaK 2Zs5tRhDGnOa0BlNt65GXUkDTnPaGOLvnuG/zc9RvX8ITVrLMtLLY/zFi/pW7zJTTNqP i2PpRd9Nj/VDcMeCZ5MkpwqmF4caAN+t1ntKqAM5ZlRnxz9d9SzeHVZDD0b+OUjuyqb1 jpZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Eih04ugn; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-139228-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k3-20020a170902f28300b001defe4aec44si10464412plc.483.2024.04.10.11.57.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 11:57:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139228-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Eih04ugn; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-139228-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4AC8F2846D5 for ; Wed, 10 Apr 2024 18:56:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F5AA1802B7; Wed, 10 Apr 2024 18:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="Eih04ugn" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 EC05363E; Wed, 10 Apr 2024 18:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712775384; cv=none; b=IiBzD55Heu7H98dBYWYWUST0kQzuuMlYsRxxUc0LalVslUqg70HcKCbhgMz22U+o7RMCuGB3KcwpDo/d3CAHFCOjJsCAiHYvB7dyNqZZlGCUW+k+w/eYrHiMSOfP0xKF9jDC+WLiHzS5K/Ul0aEZFDYuJuRodkrMpFf/EIM9DrI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712775384; c=relaxed/simple; bh=z8uL29ol4D/VzeVxNrLkekTvpm9qYZqbPbEmZ0BnNKc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DMqUGRhpYI+3ScR7JZ6Xvhy/jp+0JxEQMskHzRXSrAgjbBgMYYwc2w2wGtp2JDd8iYxfO3KBqS/2mG06IlEvdWHFQeMEnMgWkWrbhCEcAwqvhLBmWJTLVxSR6nrdMFyuRPYsHCspfCsZbhV2xH5viXAlAeMlB+gMCy0apeEDIcE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=Eih04ugn; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=U8bqg6vv1xN246qvsvrQZYNVGTMrjTXzu9x/4q0URWY=; b=Eih04ugnqStfjTGj8LCSTHRa8I JVKC9gkRyoCXJUkvOs3gxMIVb6pp3NE4PiFgKq38B/dWSfl77kt3RXU5fC9mMMM6OCB3O8hcgUx2S Iv1Pl/+4KblR/zsHS7r1cSKoeP4zO0tKaJGaX6F+EpE3lDTPTujdhDVlzVNGQN9/rLbNsvowxTg2K CWuVQR8+MaNkHOw8BqdKVjxzsNgCldrupd7faINLxt+omBYy9HAtuQW8d1cgHLKwfslwkV2lecqX8 goWQIWe7kLglAMnYY1F9r7DLY0WiKdfvrjCoo58dPUxqUlo+NqnwAQtfmvkjDxde80Y5aYlKd0JtS qpMjAr0Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:38784) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rud77-0008Nd-2R; Wed, 10 Apr 2024 19:56:05 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rud73-0006BQ-2Q; Wed, 10 Apr 2024 19:56:01 +0100 Date: Wed, 10 Apr 2024 19:56:00 +0100 From: "Russell King (Oracle)" To: Jonathan Cameron 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 Subject: Re: [PATCH RFC v4 02/15] ACPI: processor: Register all CPUs from acpi_processor_get_info() Message-ID: References: <20240322185327.00002416@Huawei.com> <20240410134318.0000193c@huawei.com> <20240410145005.00003050@Huawei.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240410145005.00003050@Huawei.com> Sender: Russell King (Oracle) On Wed, Apr 10, 2024 at 02:50:05PM +0100, Jonathan Cameron wrote: > If we get rid of this catch all, solution would be to move the > !acpi_disabled check into the arm64 version of arch_cpu_register() > because we would only want the delayed registration path to be > used on ACPI cases where the question of CPU availability can't > yet be resolved. Aren't we then needing two arch_register_cpu() implementations? I'm assuming that you're suggesting that the !acpi_disabled, then do nothing check is moved into arch_register_cpu() - or to put it another way, arch_register_cpu() does nothing if ACPI is enabled. If arch_register_cpu() does nothing if ACPI is enabled, how do CPUs get registered (and sysfs files get created to control them) on ACPI systems? ACPI wouldn't be able to call arch_register_cpu(), so I suspect you'll need an ACPI-specific version of this function. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!