Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2084923ioo; Mon, 23 May 2022 09:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5/GGhFbJXss+2qCqqpkXsd1Tjad8IaXHcBVsjfk0azA9nfT6du3CjzbyA43lQ6bTw70VX X-Received: by 2002:a17:902:f70a:b0:153:88c7:774 with SMTP id h10-20020a170902f70a00b0015388c70774mr23640601plo.166.1653324273704; Mon, 23 May 2022 09:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653324273; cv=none; d=google.com; s=arc-20160816; b=ktHr4XZrS8natOJXiwklaFWU+1bY042bqS+hZ0pI7UwVX/uqVNCAV5o6a53XV2meSy yfOWM3Eni0Sb8gqvxeklrV5Wrmtn+SFjpLTqaOXDF4kwGIjtG4JwMWTtDFMXfECMYCeo M8f91X3CxOVvSp8+3R22Zwi258JqvwsHtZA6xu2JuodKafu00qSDus8M2g6Thn0YMHUC lNgEoH4UpVWljw0cy31ev+nFYOE47TohGFp4QAoKV7I8qsce5kB8IDQkCipgKWlAwLFr 1Asr2zEPFzcKlNsBHDPWMZhJRN0D8jEJeEQ5+swLA3WvxnBNV2JTRj95vPiTg+bsLHNr ykyA== 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=hQs6HdHaGQ9xJxDqN/JgrkPqNQmO7g/Rx36Tvzd8OUo=; b=cNpGkL/9oztbNXP2KBLAyDOoKHjHW+lr6mrl47eu1VWGQqcGE4DGZO1PFRxORmwfoF YzYTy763WSv7FXzXMCLKGyCIN1weRNyBhZRYSr+HiHahtGmP1kBgBKc7DFcy8HE4H+1A hyQZQNnBMY/gf8aZn5V5wjiiPn0kn7kuonPfIEvvctn+pAh841OOxPcT35l/+/ldFUeH zaJ3rOT0Qwol7ZXKJKkQ8feE2WR0KPXiXR9XWuYyUi4vYUXyEg0cS+QboAhp5IywzgAo v7TfeBJ+of2grJlBEoE59ARSlXzyr+YJxzfkimM8z0IGGTp/tBtihZA/m04aPaTXYhoz iVKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=n9EKCo5n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ip9-20020a17090b314900b001e02d8b314dsi9850653pjb.177.2022.05.23.09.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 09:44:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=n9EKCo5n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 44C806929F; Mon, 23 May 2022 09:44:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239036AbiEWQoR (ORCPT + 99 others); Mon, 23 May 2022 12:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239051AbiEWQoP (ORCPT ); Mon, 23 May 2022 12:44:15 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F72C1E3FB for ; Mon, 23 May 2022 09:44:09 -0700 (PDT) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24NG1kNZ018791; Mon, 23 May 2022 16:44:00 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=hQs6HdHaGQ9xJxDqN/JgrkPqNQmO7g/Rx36Tvzd8OUo=; b=n9EKCo5nAPWKF1nkfg7uwvyIXTlJgdYkmUaLOtvVKIEhI9FCJeEuRjFs6RkbHCToPAhA OuZxHbYZ9n+ll/ebqr+HkqyUQzCzaua59xHghigPWb0158aJaQl1njWF+md3chDB81o5 MSSaWN/uoa6ajyzFIeAfsWFVh9W/dPPmqZz+jecc7eRwMVxBJUj2g+HWD0UPlyy7mrMf SKLS5Xd0OnJ0BloA5yqV2fMiNA2qUwY+J2ePAehIgF8hcsArx4J34pU7ZKWyXYNLj6lD 89N/4V24T4urmmNEKXxiQ6b1j50b+/yHDQNGLvJqRV0po8PE4E+vx1FZeS5bo2qWJzIy tQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g8de50ya7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 May 2022 16:43:59 +0000 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24NGWl9G016951; Mon, 23 May 2022 16:43:59 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g8de50y9m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 May 2022 16:43:59 +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 24NGgKdZ003859; Mon, 23 May 2022 16:43:57 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma04ams.nl.ibm.com with ESMTP id 3g6qq9b4kf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 May 2022 16:43:57 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24NGhseI23331084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 May 2022 16:43:54 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D074211C054; Mon, 23 May 2022 16:43:53 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 74F4811C04A; Mon, 23 May 2022 16:43:53 +0000 (GMT) Received: from pomme.tlslab.ibm.com (unknown [9.101.4.33]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 23 May 2022 16:43:53 +0000 (GMT) From: Laurent Dufour To: mpe@ellerman.id.au Cc: aneesh.kumar@linux.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nicholas Piggin , Christophe Leroy Subject: [PATCH v2] powerpc/64s: Don't read H_BLOCK_REMOVE characteristics in radix mode Date: Mon, 23 May 2022 18:43:53 +0200 Message-Id: <20220523164353.26441-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-ORIG-GUID: IlaSBM60L9SjZKQIA0dg-ihfSA7YM-Ge X-Proofpoint-GUID: W5DuWoKCczzLlKutUvNUK0MUIQevas9w 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_07,2022-05-23_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205230093 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. Furthermore since the commit 387e220a2e5e ("powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU") define pseries_lpar_read_hblkrm_characteristics as un empty function if CONFIG_PPC_64S_HASH_MMU is not set, the #ifdef block can be removed. Cc: Nicholas Piggin Cc: Christophe Leroy Signed-off-by: Laurent Dufour --- arch/powerpc/platforms/pseries/setup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index c9fcc30a0365..6d7d31d8099d 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c @@ -802,9 +802,8 @@ static void __init pSeries_setup_arch(void) fwnmi_init(); pseries_setup_security_mitigations(); -#ifdef CONFIG_PPC_64S_HASH_MMU - pseries_lpar_read_hblkrm_characteristics(); -#endif + if (!radix_enabled()) + pseries_lpar_read_hblkrm_characteristics(); /* By default, only probe PCI (can be overridden by rtas_pci) */ pci_add_flags(PCI_PROBE_ONLY); -- 2.36.1