Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6802652rdb; Fri, 15 Dec 2023 08:40:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJSxYslgcypo4JvadRK/u6NOZA8IH/rHViYZWA3DGMsjNaLKjZTtg6H8dFk9be6F4rHtHo X-Received: by 2002:a17:907:940b:b0:a19:a19a:eac4 with SMTP id dk11-20020a170907940b00b00a19a19aeac4mr6910899ejc.125.1702658449045; Fri, 15 Dec 2023 08:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702658449; cv=none; d=google.com; s=arc-20160816; b=qtG4BVqW4WYfCfX05ZcQcN6916sgL3FXMHyHdyVuAJ+Qd1V2TIjxPfRvqCY5AVr9Xw uiHYaiwW8DtaIJKFoHdet4wdz12DFKhw7qGE83VZDABNoHUKhxu4EFwSX/E4GcOFHu+B A2ru/ciR4GLGhajaV162C9IIuZCZCT33RS3bOqiRLyV28ZmVxDlBIpNHYKyjQSH2d5cO uJlDjsc7OOTIvOMmBKRIxoYwuy79j4JZKXGX7fedCEvZYEJPDyFVmRH2nncPAEFa9uyG F2sSmdjWlzs+G+f3Grv8bkUDedU5L9gXfzdo6GguLiRdXPDsxFdItpt0U7F9hY+IN4Kx fCBg== 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=TLvZRG6lIBuItN1o5bXgJrSXvqi0+iI6287CisJ1u4k=; fh=4iHbZ733mqZc4Bx83AV0konbWC9aXbRvmPAEmCiuGYk=; b=E7Un/tzI4EYzgOH6CCIGjghZf05l6eMqT8dQ+RzxhMKTVmAdJ/vFcblJPAmxxLtG61 E+dlLMBFLwjbsbg8w2HEQZ/TWil0joW78HCOyZwF9dHyz9X/NuYbY3uPr50S9YdwM5Cq HFYAT7huYdEytGKult1zeyvbyccH1biR1ckGm4Vzia/6DlHgljcdoT5n3/e19ud2Kp5N bsdur+h6By+W5SznNOj66tA9Qq3rp51uQGrKWz+fuG9Z2oH2anCf4pfCKL+8eXzsvtqG NKQgqlyF8yRWs9Uc5ndqsCNv0QX/rB0cC+bPuNQjlR/Xofj0HPp+JSHCaattaSKOd5XX SUzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1316-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1316-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 x22-20020a1709060a5600b00a2313949d62si1242786ejf.255.2023.12.15.08.40.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 08:40:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1316-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-1316-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1316-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 C8A031F24CC9 for ; Fri, 15 Dec 2023 16:40:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 515D83EA71; Fri, 15 Dec 2023 16:40:33 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 2B1FE1DFCB; Fri, 15 Dec 2023 16:40:31 +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 4SsFK22kSLz6K8mZ; Sat, 16 Dec 2023 00:38:30 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 403DB140133; Sat, 16 Dec 2023 00:40:29 +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, 15 Dec 2023 16:40:28 +0000 Date: Fri, 15 Dec 2023 16:40:27 +0000 From: Jonathan Cameron To: "Russell King (Oracle)" CC: , , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse Subject: Re: [PATCH RFC v3 16/21] arm64: psci: Ignore DENIED CPUs Message-ID: <20231215164027.00003609@Huawei.com> In-Reply-To: References: 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="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100001.china.huawei.com (7.191.160.183) To lhrpeml500005.china.huawei.com (7.191.163.240) On Wed, 13 Dec 2023 12:50:33 +0000 Russell King (Oracle) wrote: > From: Jean-Philippe Brucker > > When a CPU is marked as disabled, but online capable in the MADT, PSCI > applies some firmware policy to control when it can be brought online. > PSCI returns DENIED to a CPU_ON request if this is not currently > permitted. The OS can learn the current policy from the _STA enabled bit. > > Handle the PSCI DENIED return code gracefully instead of printing an > error. > > See https://developer.arm.com/documentation/den0022/f/?lang=en page 58. > > Signed-off-by: Jean-Philippe Brucker > [ morse: Rewrote commit message ] > Signed-off-by: James Morse > Tested-by: Miguel Luis > Tested-by: Vishnu Pajjuri > Tested-by: Jianyong Wu > Signed-off-by: Russell King (Oracle) Reviewed-by: Jonathan Cameron