Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2058071ioo; Mon, 23 May 2022 09:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI+OUeTL2YhJ/spnfv92IaTthwDl36vzQVu5CPu/UCE/Is/hX+1bP2o+pvJ5jri2hOd4nV X-Received: by 2002:a05:6a00:170a:b0:50d:3e40:9e0 with SMTP id h10-20020a056a00170a00b0050d3e4009e0mr24002000pfc.48.1653322221035; Mon, 23 May 2022 09:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653322221; cv=none; d=google.com; s=arc-20160816; b=LMo7kKVXgatFwHH06lsspiyHLjtoRP0B7YjEQIbC01map3yp1GZZHiz73TTmC6qWkp ajLo/rO1R9VjGHs8l4dc3IsTV3y1aWxU3CRNpqVF7iDFsltX0xxtrOlXgIj13mpOdSkq SACRTtQN0laTD6f+gOTFF0TEJq94NeVWG8grYm16uK7zVz3IPey4I8Egyb9pyIp/Jcm4 RJSkikzIcwsipAg8w9SOuio8JcHy3+VDU+PrBWFdHIo5Ma5T76qNWyujLiUARgMY0s/1 ZS8kAqZ3NmWaN+01PJRHsIrF1esmidD9ma+01sxEIYj/dedXgd5EkaT4TfuT1H5Za69d 3lxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GWi2svyv4xiTKuEkdoZOSj7G+LZzUVwd+iYBidPDUGU=; b=eOvsjbEAMzBT8a+rBRJVkKlGu9qJ923sla5ym/M6tWcZTsXREGdz14Aj+gTiEQWDX1 TysAMfFhOJ7VuG4sXtNW7VHMjFvd2CeO7vCMNC+0FafzLg9HJ6po2Od21m0/V9S62phv ljbDE5B8lLNg/s35JoMjWlu0QnB0KGqg4UCa3p/iRN66P3E66TyuD5nzMxV0VjME7rTd pHoXHPaEJHfhY4S+E2FbzuqRBrxd6ql1b/RyHsomBwPDMDwJqDzSlUCs/ocF8UDhr+Pc mwtdnzgSXgIXSGiTI9qfJIxdfubtIZqyMxe4vwSDGtchGrxrDmJB39FX4YPiVOA3krou yJlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ZD0yAXI3; 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 b6-20020a633406000000b003822f3c78cfsi11171489pga.683.2022.05.23.09.10.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 09:10:21 -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=ZD0yAXI3; 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 4274C64BC5; Mon, 23 May 2022 09:10:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238586AbiEWQKG (ORCPT + 99 others); Mon, 23 May 2022 12:10:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238589AbiEWQKC (ORCPT ); Mon, 23 May 2022 12:10:02 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2C1363507 for ; Mon, 23 May 2022 09:10:00 -0700 (PDT) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24NFUGXH022928; Mon, 23 May 2022 16:09:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=GWi2svyv4xiTKuEkdoZOSj7G+LZzUVwd+iYBidPDUGU=; b=ZD0yAXI3NDFafBxw9P2NRSMwV30PmEiX2qNRVPao1IPEKL5HM+tjLqJmnGFvvMR9EaPd CXDdak0pB010MbHT/VSBoXefgESh2dhsBhtm4QTrWk2dltXOccnJYafppEHKEzyvU/Ps AYyifKRXC+6tERA5yq8uMaSaVAvDs/oWhY18ZT9+MCXy/jlOONMm+6cMcHG2ZaBK/mq+ QDkE0CsL3ymm6H6SALO+YctA1TzlwK9X65/Vjtu1W6Wg2FSZBfBeqn3SIS8isnrppuX6 BanEtEAfv/7gR1oq6kjA1ZC/T3KAieFmiIC6hZbolKUj+fWqbaSTga2PCcKzQiFw/1MK Lg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g8axj3x24-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 May 2022 16:09:46 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24NG9jvN005804; Mon, 23 May 2022 16:09:46 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g8axj3x16-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 May 2022 16:09:46 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24NFwRmS028633; Mon, 23 May 2022 16:09:43 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma03ams.nl.ibm.com with ESMTP id 3g6qq933jn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 May 2022 16:09:43 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24NG9fO246531026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 May 2022 16:09:41 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 74A30A4051; Mon, 23 May 2022 16:09:41 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 32C01A404D; Mon, 23 May 2022 16:09:41 +0000 (GMT) Received: from [9.101.4.33] (unknown [9.101.4.33]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 23 May 2022 16:09:41 +0000 (GMT) Message-ID: <913bcf4d-dc78-dacb-4891-43a882f50017@linux.ibm.com> Date: Mon, 23 May 2022 18:09:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] powerpc/64s: Don't read H_BLOCK_REMOVE characteristics in radix mode Content-Language: en-US To: Christophe Leroy , "mpe@ellerman.id.au" , "npiggin@gmail.com" Cc: "aneesh.kumar@linux.ibm.com" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" References: <20220520155721.10211-1-ldufour@linux.ibm.com> From: Laurent Dufour In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: bWbvRjAI3Z_YOw8z6DsLYMrMT_ea3MZk X-Proofpoint-GUID: xMHkeSi2CqnMpaGYbyj0Zg262cyz_h7v 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-23_06,2022-05-23_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 mlxscore=0 impostorscore=0 spamscore=0 phishscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205230087 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/05/2022, 18:15:39, Christophe Leroy wrote: > > > Le 20/05/2022 à 17:57, Laurent Dufour a écrit : >> 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 > > As far as I can see the function always exists so the #ifdef can be removed. You're right, I'll do that in the v2 >> >> /* By default, only probe PCI (can be overridden by rtas_pci) */