Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp822910pxb; Wed, 16 Feb 2022 05:18:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3Hxjh06S4SXsSP65zu84WzTWn2rAs2acidlKsbfl7SDv1NdHfuXGLfu3Qzr6x+g2VFXDI X-Received: by 2002:a05:6402:35d2:b0:410:a01c:3931 with SMTP id z18-20020a05640235d200b00410a01c3931mr2968816edc.63.1645017509191; Wed, 16 Feb 2022 05:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645017509; cv=none; d=google.com; s=arc-20160816; b=cIlZi0Q72cmBJDl8P8t5l2Bsv0Ig9qZRrZR38sJ0/G1FrT8QdwsKMN6ZoIYL73iqjx qCJ06zT4UH0Uu9i9vv3R55iEYwUfz9oq6p3UgqdHd5TqwoWlsGHLl2PVvjT4tRiliFqq 0FA7w+MVI522JCFwqsXFMRKPW40WuPmy1oHizvtefjjR2umCBYD4+fgnryCXlnCKKo7b EzwVl65ujIej7BIyMJSNfHCN1Lj9YVGULlukbKaQs5Cn+uwJrPV8NoFr6QS3ZV6P1n48 /IaA0vUwDJeRwAvgq0KkPQJr7+YI8dnbstoFBSPx6M0ePp/AsmMyTrzpcp/dzZqfKQod V78Q== 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:date :message-id:subject:references:in-reply-to:cc:to:from; bh=5Y6+PygHP0OwT2sxuuYZt+K21GEc6O9+BICCkBs+BH8=; b=wk+IW29sHnfpaklZo4QVjPSbtJYhSP7rBAFFroY+YvftTNzyYaQFHWO1xPoQICQut1 D79b0O2XUBaCHy2XS9LPksaGEDGp8mAPys5rHzVQDrBbvcousnR0bzilHY3wp58Srhx8 9DcBhgWl3JAFskra35WJcNn+V1YPjqMxOm7NzXXf6BSDj1gjyP/j9f9tTjqC8oF6vldc dt9M6GETwFdMprU97yCIl2mv3Ju+kY9t+w5Zaw540jMob1nQWdClw1LfDz3J80RFDiyy Gl+cjJIR3WTer71OovDrjcYMGIIKwATyylM7pUEP8Y0yMk/ozf+Ell1rU0H8FwHLPyt5 ML/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20si21980681ejj.643.2022.02.16.05.18.05; Wed, 16 Feb 2022 05:18:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233222AbiBPMa3 (ORCPT + 99 others); Wed, 16 Feb 2022 07:30:29 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230100AbiBPMaZ (ORCPT ); Wed, 16 Feb 2022 07:30:25 -0500 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00CD82A4145 for ; Wed, 16 Feb 2022 04:30:12 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4JzHNM292zz4xml; Wed, 16 Feb 2022 23:30:11 +1100 (AEDT) From: Michael Ellerman To: Benjamin Herrenschmidt , Christophe Leroy , Michael Ellerman , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <6c608fd4795e2d8ea1a0a449405a0087f76d8bb3.1642752375.git.christophe.leroy@csgroup.eu> References: <6c608fd4795e2d8ea1a0a449405a0087f76d8bb3.1642752375.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH 1/3] powerpc/lib/sstep: Use l1_dcache_bytes() instead of opencoding Message-Id: <164501435210.521186.7862995446067984760.b4-ty@ellerman.id.au> Date: Wed, 16 Feb 2022 23:25:52 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, 21 Jan 2022 08:06:27 +0000, Christophe Leroy wrote: > Don't opencode dcache size retrieval based on whether that's ppc32 or ppc64. > > Use l1_dcache_bytes() > > Applied to powerpc/next. [1/3] powerpc/lib/sstep: Use l1_dcache_bytes() instead of opencoding https://git.kernel.org/powerpc/c/67484e0de9c93b4a9187bb49f45dfdaa8dc03c0b [2/3] powerpc/lib/sstep: Remove unneeded #ifdef __powerpc64__ https://git.kernel.org/powerpc/c/7c3bba91999075f4cfcab0542e4eb74d2d63554b [3/3] powerpc/lib/sstep: use truncate_if_32bit() https://git.kernel.org/powerpc/c/6836f099039e6c72fb548bf527345aa4345c3308 cheers