Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5117379ybv; Mon, 17 Feb 2020 12:38:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyukbTP/iHhrWEwgpduDLqs0YDBCs+kuPGHoBfMgJdkN4ghFKDz4dcvwPN/MgX+VTxe//TZ X-Received: by 2002:a05:6830:1149:: with SMTP id x9mr13770161otq.156.1581971890271; Mon, 17 Feb 2020 12:38:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581971890; cv=none; d=google.com; s=arc-20160816; b=BCr0ZIePTjaGrBCIiLi4l+xsM26xJG6VltZXW8Tu3f6A4BixDXFUXu108J74jBmvZl Q2tJ/JaVSveUtB1fepeC6lQ9xV6gMCcE3zfoYN4y7ZYX2+bg/wEcLEtE9EqxkesY5X/P RJCXocl1jBX5+pFkYZb2EeJoom3ewnP6BLp0J/vQFKAxkYvnqGNApL5xR7FIHs4balz9 GKnjy2UGhWZjMdok/qlLsV8Q+xHMnHrP/EZE9T0n2pBo9ckgSIaPYCPAj8n6AvsYRfqR EBWDMWPI1Qol5pLWIRX9sYioIfrQpQHPYLxhexA3Kz9kRU5oYbDCaBuxTLfKbTG7wwcb 0skg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=V+uAmUYToA1wkND/XfcGhHFSPKJNMIn2R8VFQZafH1c=; b=P8UFnUeoFg+RGuub5p/vKGYzhbuLXrbk0mStMw45mHwMJZ1v/9P3uqEOAJB781m6or QN7CuOD8aMyIh0pyeUmb5vrALu/Z3GogZ05y3dDFLCiUbIr1CONUxjhSBTdtRtsAoC35 tVMYPt6zYznYLJ7cwMi5bkka37t/hY6KhYfynzjnrIWHAWjJF9x0T7w05YNHl3iSNLZa ZOamxugnOk/H4V+Y1QqSvMQ42kTK9xDOUfxhzOM29lr4bnNowNmqbtdG2/aWZN39N1a7 mYzzrRDJynoFjW5khcA2swvrlvUsylUseuKvmi9mCYOzEQi5XAXQxU+mtPmdFTpMRAa+ CbUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20si6463154oic.113.2020.02.17.12.37.57; Mon, 17 Feb 2020 12:38:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728991AbgBQUdX (ORCPT + 99 others); Mon, 17 Feb 2020 15:33:23 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:11384 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726704AbgBQUdW (ORCPT ); Mon, 17 Feb 2020 15:33:22 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01HKUCgs037248; Mon, 17 Feb 2020 15:32:41 -0500 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 2y6dnt08fx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Feb 2020 15:32:41 -0500 Received: from m0098414.ppops.net (m0098414.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 01HKUJ43038101; Mon, 17 Feb 2020 15:32:41 -0500 Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0b-001b2d01.pphosted.com with ESMTP id 2y6dnt08fc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Feb 2020 15:32:41 -0500 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01HKPSse024151; Mon, 17 Feb 2020 20:32:40 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma03wdc.us.ibm.com with ESMTP id 2y68964j7v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Feb 2020 20:32:40 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01HKWeOV7406178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Feb 2020 20:32:40 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1A311AE05C; Mon, 17 Feb 2020 20:32:40 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0A18AAE05F; Mon, 17 Feb 2020 20:32:37 +0000 (GMT) Received: from leobras.br.ibm.com (unknown [9.18.235.152]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 17 Feb 2020 20:32:36 +0000 (GMT) Message-ID: Subject: Re: [PATCH v6 03/11] powerpc/mm: Adds arch-specificic functions to track lockless pgtable walks From: Leonardo Bras To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Arnd Bergmann , Andrew Morton , "Aneesh Kumar K.V" , Nicholas Piggin , Steven Price , Robin Murphy , Mahesh Salgaonkar , Balbir Singh , Reza Arbab , Thomas Gleixner , Allison Randal , Greg Kroah-Hartman , Mike Rapoport , Michal Suchanek Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Date: Mon, 17 Feb 2020 17:32:33 -0300 In-Reply-To: References: <20200206030900.147032-1-leonardo@linux.ibm.com> <20200206030900.147032-4-leonardo@linux.ibm.com> <1311ce1c-7e5a-f7c4-2ab2-c03e124ca1c1@c-s.fr> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-rjDDfaEpQyTkTpCEQ2uL" User-Agent: Evolution 3.34.3 (3.34.3-1.fc31) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-17_12:2020-02-17,2020-02-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 clxscore=1015 malwarescore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002170168 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-rjDDfaEpQyTkTpCEQ2uL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2020-02-07 at 01:38 -0300, Leonardo Bras wrote: > > Why not make them static inline just like the generic ones ? > >=20 >=20 > Sure, can be done. It would save some function calls. > For that I will define the per-cpu variable in .c and declare it in .h > All new function can be moved to .h, while changing adding the inline > modifier. Just tried doing that, but percpu stuff relies in paca definitions, and this ends up creating some cyclic dependencies. I could try to change that, but the amount of change is big and probably should be dealt in another patchset. --=-rjDDfaEpQyTkTpCEQ2uL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEMdeUgIzgjf6YmUyOlQYWtz9SttQFAl5K+GEACgkQlQYWtz9S ttRsOg//QbdkYtnYqYavQzv828W7A3KiHEHqK77HtlTbJXOE5Vj9aU05HPZJp9XT ck/HXYupAIcMq+qJ8tNQKbu0zHCHxQ4dk7BPRM8RP4dp/bDOGGXqmvJG0toVtumX mTiJKUSaq7JeacS8xsx7hNZvLvHea/zagFha49BvLj6QajY+GU+CrpMJoaX1o/pc 2mWKJfpLvacLQBQGfKC+t81VKHZC2K2BWpGyS7/MLEw120/n+KQHqaekMcgSaqVU lngRVDm4dHEZUZbOXjM3tyceMCTp5xTNv9+pS2friqkfXTomMS5ZuSW1O0i/A28m 0TBWXC+kcQq+Bi1IxIqEPYQ3xab6/Xoba11GWD1qzBiUwd/3Xg30bAB9LYJXMwiD outVyh5BO6w8oSp1q5iHmt3raJLNTYYlG/SZzZCsCKXHr3EALNZvByETJ2j/oGdJ dbpPDOxmE2jbWMtIBhdjRFBmfmAGCTgRLpCq0hngNPm2sdQTmr9+B5UcWNzJjuks j1lDiMHOle78bT7GTYifJjVZrgBiB/JuToqBVzBIEgOBcGXiUXGUaDHgpNjKtH9d MtbmDODl9st9czyK/edN39eHlz4jfK+Z87ZJQVZz93bEjaRI6pRbqgiTVudWGdMN TISNtFVMgBbLWmgi8HOfs0zz4naMfcorqOhsTIi95qM8ygfs98s= =rEX5 -----END PGP SIGNATURE----- --=-rjDDfaEpQyTkTpCEQ2uL--