Received: by 10.192.165.148 with SMTP id m20csp4028729imm; Tue, 8 May 2018 01:29:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpTAfK7punmSaaDNkSIRSe3GCE1so7tujJ7IeglGm9uDJtryQ7/peQDNLCbF3zzq59uelaR X-Received: by 2002:a65:4784:: with SMTP id e4-v6mr31484064pgs.196.1525768154037; Tue, 08 May 2018 01:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525768154; cv=none; d=google.com; s=arc-20160816; b=Q/a6KDyCEewpcDf1xo45ovS8GQpwQnihnZrUGMngQvCYTqTZak4/D/hEvUVEnVmBXJ KSdBtExFkDqR/TFfZfrYjZr/6pwx3ZTYNpG+wVcE18eSkgLyyeXWWLG9za+YxXkmmj6o ZIqODVxI679EvFDgrQAFGpiaHH0nF4SDh3m0Lu3IiNkhtC+a9WmqovFQJ4G5YJfVy5+Q fOjAHkROqWupd5OstWKThzpvroA7/seGFe2xMtXyzOAFjv0/kkdnrhGs6InTeQo7hXQC 8TQNnVCsKR4lo9ZAgT/YhEJK2l130S27Tm+yqFLWalZ2V0X42OzVbRoUEePqHkyVZtbm b5Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=FPdq5fkCVVKu4+KtkhuDeUXYuLwy4TYj1nPy1DLH1L8=; b=ehBt66jIHH+TVFrVBk6Q3T+lc+FDGTeNGK2pEP/HCvpogDxDv1EtciFNMOfUFUZSfu 0FwJ8h1nZvpuHcXjFJJh9rG8YNKs4bJmu1hUt2+FpSk9zixPK9AqPwIAN+jy3MFaDxkZ J/SSwS/F/i+qGQ8rrWbtTzIzoMTAfD5RYTJ5xy8xuIrNIBHS2WnynB7P9aEhvoqPw1Qh QvsvQFsRa4VUIFG8XzJV2jHJetI5P0L0Igx12ahjkTRlRT7irUIF/4cqPDu01xyXLhUv +TzBO80mSw0CRj3JbmX5I+rBgMtsTYnFqjCGhrzSu8UFx0ZBBZk7TMnyg5Uubvv4xI4z x87g== 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 v24si24088473pfj.292.2018.05.08.01.28.59; Tue, 08 May 2018 01:29:14 -0700 (PDT) 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 S1754829AbeEHI1H (ORCPT + 99 others); Tue, 8 May 2018 04:27:07 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52812 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754816AbeEHI1F (ORCPT ); Tue, 8 May 2018 04:27:05 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w488JLIQ078384 for ; Tue, 8 May 2018 04:27:05 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hu7bwtrrr-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 08 May 2018 04:27:04 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 8 May 2018 09:27:03 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 8 May 2018 09:27:01 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w488R1mJ54919194; Tue, 8 May 2018 08:27:01 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C1F464C052; Tue, 8 May 2018 09:19:02 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B0B784C040; Tue, 8 May 2018 09:19:01 +0100 (BST) Received: from skywalker (unknown [9.124.35.160]) by d06av22.portsmouth.uk.ibm.com (Postfix) with SMTP; Tue, 8 May 2018 09:19:01 +0100 (BST) Received: (nullmailer pid 25821 invoked by uid 1000); Tue, 08 May 2018 08:26:59 -0000 From: "Aneesh Kumar K.V" To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/17] powerpc/nohash: remove _PAGE_BUSY In-Reply-To: <7332568467307f9fc79eeef47507909ddc423c4b.1525435203.git.christophe.leroy@c-s.fr> References: <7332568467307f9fc79eeef47507909ddc423c4b.1525435203.git.christophe.leroy@c-s.fr> Date: Tue, 08 May 2018 13:56:59 +0530 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 18050808-0008-0000-0000-000004F44293 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050808-0009-0000-0000-00001E8882AB Message-Id: <87o9hqsgbw.fsf@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-08_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805080083 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > _PAGE_BUSY is always 0, remove it > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/nohash/64/pgtable.h | 10 +++------- > arch/powerpc/include/asm/nohash/pte-book3e.h | 5 ----- > 2 files changed, 3 insertions(+), 12 deletions(-) > > diff --git a/arch/powerpc/include/asm/nohash/64/pgtable.h b/arch/powerpc/include/asm/nohash/64/pgtable.h > index 4f6f5a27bfb5..c3559d7a94fb 100644 > --- a/arch/powerpc/include/asm/nohash/64/pgtable.h > +++ b/arch/powerpc/include/asm/nohash/64/pgtable.h > @@ -186,14 +186,12 @@ static inline unsigned long pte_update(struct mm_struct *mm, > > __asm__ __volatile__( > "1: ldarx %0,0,%3 # pte_update\n\ > - andi. %1,%0,%6\n\ > - bne- 1b \n\ > andc %1,%0,%4 \n\ > - or %1,%1,%7\n\ > + or %1,%1,%6\n\ > stdcx. %1,0,%3 \n\ > bne- 1b" > : "=&r" (old), "=&r" (tmp), "=m" (*ptep) > - : "r" (ptep), "r" (clr), "m" (*ptep), "i" (_PAGE_BUSY), "r" (set) > + : "r" (ptep), "r" (clr), "m" (*ptep), "r" (set) > : "cc" ); > #else > unsigned long old = pte_val(*ptep); > @@ -290,13 +288,11 @@ static inline void __ptep_set_access_flags(struct mm_struct *mm, > > __asm__ __volatile__( > "1: ldarx %0,0,%4\n\ > - andi. %1,%0,%6\n\ > - bne- 1b \n\ > or %0,%3,%0\n\ > stdcx. %0,0,%4\n\ > bne- 1b" > :"=&r" (old), "=&r" (tmp), "=m" (*ptep) > - :"r" (bits), "r" (ptep), "m" (*ptep), "i" (_PAGE_BUSY) > + :"r" (bits), "r" (ptep), "m" (*ptep) > :"cc"); > #else > unsigned long old = pte_val(*ptep); > diff --git a/arch/powerpc/include/asm/nohash/pte-book3e.h b/arch/powerpc/include/asm/nohash/pte-book3e.h > index 9ff51b4c0cac..12730b81cd98 100644 > --- a/arch/powerpc/include/asm/nohash/pte-book3e.h > +++ b/arch/powerpc/include/asm/nohash/pte-book3e.h > @@ -57,13 +57,8 @@ > #define _PAGE_USER (_PAGE_BAP_UR | _PAGE_BAP_SR) /* Can be read */ > #define _PAGE_PRIVILEGED (_PAGE_BAP_SR) > > -#define _PAGE_BUSY 0 > - > #define _PAGE_SPECIAL _PAGE_SW0 > > -/* Flags to be preserved on PTE modifications */ > -#define _PAGE_HPTEFLAGS _PAGE_BUSY > - > /* Base page size */ > #ifdef CONFIG_PPC_64K_PAGES > #define _PAGE_PSIZE _PAGE_PSIZE_64K > -- > 2.13.3