From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 519D1C6377B for ; Thu, 22 Jul 2021 02:39:20 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B2B9061279 for ; Thu, 22 Jul 2021 02:39:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B2B9061279 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GVc923QFXz3dTj for ; Thu, 22 Jul 2021 12:39:18 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=201602 header.b=kjiIq3c1; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2401:3900:2:1::2; helo=ozlabs.org; envelope-from=dgibson@ozlabs.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=201602 header.b=kjiIq3c1; dkim-atps=neutral Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GVc6J47csz2yMm for ; Thu, 22 Jul 2021 12:36:55 +1000 (AEST) Received: by ozlabs.org (Postfix, from userid 1007) id 4GVc6D1fd9z9sWw; Thu, 22 Jul 2021 12:36:52 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1626921412; bh=gRKScw021b5bPLoTgPEqBg1fXYuljqZjOWZkEkHsEQo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kjiIq3c1kt+U/MSvhfjl7Xf2qlP8M8lYXOgzAOE5fFBtHtl2l/5u5dFtuz4yJJ75k 05pN7c74Krnk3Yy5JeyiZXKwlh+6fi6njYWew0Lq4xsatC1IwZvgg6MNYcUTH0kCbQ jfkey9E7SCbvnVdsTJOKuAOeqytNAyVzBo2dNG1Q= Date: Thu, 22 Jul 2021 10:59:09 +1000 From: David Gibson To: "Aneesh Kumar K.V" Subject: Re: [PATCH v5 2/6] powerpc/pseries: rename distance_ref_points_depth to max_associativity_domain_index Message-ID: References: <20210628151117.545935-1-aneesh.kumar@linux.ibm.com> <20210628151117.545935-3-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1WzdsKMtWeERLia7" Content-Disposition: inline In-Reply-To: <20210628151117.545935-3-aneesh.kumar@linux.ibm.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nathan Lynch , Daniel Henrique Barboza , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" --1WzdsKMtWeERLia7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 28, 2021 at 08:41:13PM +0530, Aneesh Kumar K.V wrote: > No functional change in this patch >=20 > Signed-off-by: Aneesh Kumar K.V Reviewed-by: David Gibson > --- > arch/powerpc/mm/numa.c | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) >=20 > diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c > index 8365b298ec48..132813dd1a6c 100644 > --- a/arch/powerpc/mm/numa.c > +++ b/arch/powerpc/mm/numa.c > @@ -56,7 +56,7 @@ static int n_mem_addr_cells, n_mem_size_cells; > static int form1_affinity; > =20 > #define MAX_DISTANCE_REF_POINTS 4 > -static int distance_ref_points_depth; > +static int max_associativity_domain_index; > static const __be32 *distance_ref_points; > static int distance_lookup_table[MAX_NUMNODES][MAX_DISTANCE_REF_POINTS]; > =20 > @@ -169,7 +169,7 @@ int cpu_distance(__be32 *cpu1_assoc, __be32 *cpu2_ass= oc) > =20 > int i, index; > =20 > - for (i =3D 0; i < distance_ref_points_depth; i++) { > + for (i =3D 0; i < max_associativity_domain_index; i++) { > index =3D be32_to_cpu(distance_ref_points[i]); > if (cpu1_assoc[index] =3D=3D cpu2_assoc[index]) > break; > @@ -193,7 +193,7 @@ int __node_distance(int a, int b) > if (!form1_affinity) > return ((a =3D=3D b) ? LOCAL_DISTANCE : REMOTE_DISTANCE); > =20 > - for (i =3D 0; i < distance_ref_points_depth; i++) { > + for (i =3D 0; i < max_associativity_domain_index; i++) { > if (distance_lookup_table[a][i] =3D=3D distance_lookup_table[b][i]) > break; > =20 > @@ -213,7 +213,7 @@ static void initialize_distance_lookup_table(int nid, > if (!form1_affinity) > return; > =20 > - for (i =3D 0; i < distance_ref_points_depth; i++) { > + for (i =3D 0; i < max_associativity_domain_index; i++) { > const __be32 *entry; > =20 > entry =3D &associativity[be32_to_cpu(distance_ref_points[i]) - 1]; > @@ -240,7 +240,7 @@ static int associativity_to_nid(const __be32 *associa= tivity) > nid =3D NUMA_NO_NODE; > =20 > if (nid > 0 && > - of_read_number(associativity, 1) >=3D distance_ref_points_depth) { > + of_read_number(associativity, 1) >=3D max_associativity_domain_index) { > /* > * Skip the length field and send start of associativity array > */ > @@ -310,14 +310,14 @@ static int __init find_primary_domain_index(void) > */ > distance_ref_points =3D of_get_property(root, > "ibm,associativity-reference-points", > - &distance_ref_points_depth); > + &max_associativity_domain_index); > =20 > if (!distance_ref_points) { > dbg("NUMA: ibm,associativity-reference-points not found.\n"); > goto err; > } > =20 > - distance_ref_points_depth /=3D sizeof(int); > + max_associativity_domain_index /=3D sizeof(int); > =20 > if (firmware_has_feature(FW_FEATURE_OPAL) || > firmware_has_feature(FW_FEATURE_TYPE1_AFFINITY)) { > @@ -328,7 +328,7 @@ static int __init find_primary_domain_index(void) > if (form1_affinity) { > index =3D of_read_number(distance_ref_points, 1); > } else { > - if (distance_ref_points_depth < 2) { > + if (max_associativity_domain_index < 2) { > printk(KERN_WARNING "NUMA: " > "short ibm,associativity-reference-points\n"); > goto err; > @@ -341,10 +341,10 @@ static int __init find_primary_domain_index(void) > * Warn and cap if the hardware supports more than > * MAX_DISTANCE_REF_POINTS domains. > */ > - if (distance_ref_points_depth > MAX_DISTANCE_REF_POINTS) { > + if (max_associativity_domain_index > MAX_DISTANCE_REF_POINTS) { > printk(KERN_WARNING "NUMA: distance array capped at " > "%d entries\n", MAX_DISTANCE_REF_POINTS); > - distance_ref_points_depth =3D MAX_DISTANCE_REF_POINTS; > + max_associativity_domain_index =3D MAX_DISTANCE_REF_POINTS; > } > =20 > of_node_put(root); --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --1WzdsKMtWeERLia7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAmD4wtoACgkQbDjKyiDZ s5K/Mg//ZbsPfcEt1546MNBkQ9y0HwgMbcgqWdxl80MUGGyxHepq8WUMq7VuPK1m fbYVcbyISzqjqktwfxb5pTsKGxtrZlEI7GYIC7rKdUSX+FRfL1434opmY+5JxZjY kuZHT/IpdAJ5aHKXwH6wi1iMHkxGuRNLZ8ZtMJTg+B/cPIVPfrOqZ1Dt9SKgG/Fo NzrgCFNlgTyeETMpJl9TlNpFJrtmkzLNdfKqEkwl2y0TxX2KPo7f0ur0PXLoCdXm JCEW34fLECiXMAi09qjBMzmBs89b7BVnZz5Mja/FRKTHtSTYIhGp2ayhxUoUBIHd UZT/ll9kZx13gGwc/lD0e2AIa15ZzRLSH2SuyCbi7uSH1lXenE309yXHOEiP+++Y EFw8iPNSG13hD0SowBMiM6VVBQoKPoNtCJmAPI3vvqcCn1mlpkZFwCqdgLVOPWKb W8YLD3OZiHATrWM1GaEcv4SjWkxHgh7CDT0L2xU8syRi7gWszTa9MiJXk3xUGJNU sQTs00f8n+kiR69kluyQ0VBWZeXnqwlLc5DK4Wwq3yMjL1ieW/qsxe7iBUC67Ux9 UooHtaWsnpyXpBPU+s/SrD3tHF/a3MxTF3Bftj0+U6V67m51koKGKyyt1p/z/LSj VCw2LFISFHU+XMXE5jUUUnnmBTiTo4UCdYx/DuQKcduXL58/p50= =11HY -----END PGP SIGNATURE----- --1WzdsKMtWeERLia7--