Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1658346ioo; Sun, 22 May 2022 23:19:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhkIpLNdEQfLpij++27IxM2x35OyyKPI79AH5xRy6rLDMQZsgkJto+xUTD1pQUUVc/vjRV X-Received: by 2002:a17:90b:4f8e:b0:1e0:2916:daae with SMTP id qe14-20020a17090b4f8e00b001e02916daaemr9648833pjb.140.1653286770350; Sun, 22 May 2022 23:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653286770; cv=none; d=google.com; s=arc-20160816; b=uho6VzepWYchka0V9YSXP8+RIgxhBuqgRH7IO8P5e+uqJlcw6rLxD0tDpFMgGKsOou 3MlDsRMmzegUH0KH8ky1grqk5jyAfOjh7faUWbhtLN5qwLtUn5AQBrZ8qfgU8HNio1ps 7aBCOuWU6au5LRZHPFJ5Hh+hrfUKkBwgZDGaIZuLDisaO9L9l8JjfDTWOqJFTPrWD0Su meXnIBOruqWyHG2/oI8UIj8wNf2uOMyxSw8Zl7OzPQ7FPBGuD33zf/aqCyBUQ5NSaCHa w8Di3en0k/Wg0JRtkRtHgiffIz2xOpyYe3WbdsII2k+akT+NjvwES0cu0R9K3m6mOYc3 geVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=h+FMIaMbYBHmr462sNYgkwt/IvmyaI0IcvD2SRf4XwY=; b=svC4ZFQ+2qipvQmzvUCtU6uh+FxQKoNXA3/jx3/NRg/CQqIQBcKUIjlWeqNEgldIm4 0gxbXjob780P7FjwHBQQrx9ypCvn52/rpEBtv0/FaJprzxyNaXwA5g2QQqUjblfIBgn7 TPi838wLShDysgMjQ83T1eKoZUmZQyPl1Xu9nf2Kr05G0vG+63OhswPGsTnzRL7cLjCN OPtwQmGaFBqp5dk7MIIxwGgBzhO/e2FbTEqFHdxnEz5GKg3LaYODxgLmfAd7VbNBiOzC J0pr4pp5h8hqAHmESCVoWNsP4RMpj577iWAfXKQzvvWeUH39+FRHvKbY1XF99kySvoKp WWbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=trRjO9Rk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bw13-20020a056a00408d00b00518724edb0bsi10140346pfb.229.2022.05.22.23.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:19:30 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=trRjO9Rk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2715E41FB6; Sun, 22 May 2022 23:03:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348024AbiETP5j (ORCPT + 99 others); Fri, 20 May 2022 11:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237537AbiETP5i (ORCPT ); Fri, 20 May 2022 11:57:38 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97992A7768 for ; Fri, 20 May 2022 08:57:37 -0700 (PDT) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24KDhpfS012784; Fri, 20 May 2022 15:57:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=h+FMIaMbYBHmr462sNYgkwt/IvmyaI0IcvD2SRf4XwY=; b=trRjO9RkedfAEozyJ/l90fCrha7/oKs0gGqNWq68RlVgyBPahqrblSI6dPWjNJuJnKiC PFcoSRxfK3ilsxy5fiw/Gy2qGOIjpboPifsQUYFKIbjLXTW6dI38OgVb3Upr3QTImKyd okDUg/Nv3e3Y0RfvCH9qB8fWe8BBmHDZ1qCSwDpJccKVlaA2zLmjvoW7MbuZ8cqghcLT HUs4EbNvW9uOz0ZnwztraiL0rnDA+fgj135fMAilnoi7WVg3gxK8Pme68bmeePqPcz1I YBboF7jiQxznwGutDfTLIaJLTBpdr1r5BFbBIUXA0djT9+C3bDDX0nK73kNd0TwVi8IB aw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g6c4835mm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 May 2022 15:57:29 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24KFUdZ3017013; Fri, 20 May 2022 15:57:29 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g6c4835m2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 May 2022 15:57:28 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24KFs9YN025089; Fri, 20 May 2022 15:57:27 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma04ams.nl.ibm.com with ESMTP id 3g2429h2wf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 May 2022 15:57:27 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24KFvNwL20840808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 May 2022 15:57:23 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D33C9AE055; Fri, 20 May 2022 15:57:23 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8526AAE04D; Fri, 20 May 2022 15:57:23 +0000 (GMT) Received: from localhost.localdomain (unknown [9.145.68.37]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 20 May 2022 15:57:23 +0000 (GMT) From: Laurent Dufour To: mpe@ellerman.id.au, npiggin@gmail.com Cc: aneesh.kumar@linux.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/64s: Don't read H_BLOCK_REMOVE characteristics in radix mode Date: Fri, 20 May 2022 17:57:21 +0200 Message-Id: <20220520155721.10211-1-ldufour@linux.ibm.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: LNzXv5lovOiCpHs6gGL84tbuLKGxxBaX X-Proofpoint-ORIG-GUID: 9FE4Q_Y2SokTdK3DT22wtauNZjiRzOL2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-20_04,2022-05-20_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 spamscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 adultscore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205200105 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to read the H_BLOCK_REMOVE characteristics when running in Radix mode because this hcall is never called. Signed-off-by: Laurent Dufour --- arch/powerpc/platforms/pseries/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index c9fcc30a0365..654d2b999c25 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c @@ -803,7 +803,8 @@ static void __init pSeries_setup_arch(void) pseries_setup_security_mitigations(); #ifdef CONFIG_PPC_64S_HASH_MMU - pseries_lpar_read_hblkrm_characteristics(); + if (!radix_enabled()) + pseries_lpar_read_hblkrm_characteristics(); #endif /* By default, only probe PCI (can be overridden by rtas_pci) */ -- 2.36.1