Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp499962ybl; Thu, 15 Aug 2019 22:43:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdA/RfvnksLVZb1E/2nCMKoz6uYjzyH8zfAOF2XLzgHAIpxfm3evd5IkMQfB0HJAwsUVqC X-Received: by 2002:a62:1b0c:: with SMTP id b12mr8988621pfb.17.1565934193669; Thu, 15 Aug 2019 22:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565934193; cv=none; d=google.com; s=arc-20160816; b=YseM2lLqjfAOivUX0HGO1fSgvfW1q0zIXL6IOwUAqBbBSd5u9S8vLd2zDOCQFEv6go uQw4jkNzMbT9PlmfrETRG04qEqL1AEJJYEJN++sXArSkUWj/b0tRMCEuvFvhOuBJ9MIc mrcqN+H4oZYNvw2Jb/5f+kdXPZllqL4VkkI0sCUufdw1H3mwZAx9q6jgJOlxlQERKTt3 +LdC7bJq76YD8yfgxkwTOOXjt9f1JpOp3PLSMcbilwNfaxzOPV7pAXGJkVvGJG5znW/V 7b7M5YB9y8nnJvrGQ8ilYxmdHum1DxCczvZXd0rN8vbe3s+q8vHRkC68GdMkXSXEwBsY rwEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=7s8jVKSKP+mpm0O7YdWUQnf6EkvBTK/qKccC9rAQ2FE=; b=FRXwKNOd8bEvni/IsnsBd6myIf6YXL3B+1yO5pd9AMDhF9Sr7ADdXmNfQ1gdcdqF2+ yi5IBDBvaL81hcLCGO0OKs60Jg57h6nDEzyAwtWX+5I8zRvOLLTwSDODYxtQmI1d1IdR QxnSGeG51Ua8iI+6dBlbd2oLiBUAZOhHYEu98hWY+aPspuOCicd4OJ5KmanUrl3dlu6c PElbXZRcT3EGNs6RapbSj3r6gBrEtOR7VC/MSEhkeHKW+xSwZUJFat2qPu+Yc2G2evLG OURXmoJR+QM1BOUuwbRN2oxPXNBmPOYLsihTlvMJSoYvGGVb3fsmb8xzyfQPw/y4rblh I2mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="Ss7r/3Um"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go1si3323387plb.63.2019.08.15.22.42.45; Thu, 15 Aug 2019 22:43:13 -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; dkim=pass header.i=@c-s.fr header.s=mail header.b="Ss7r/3Um"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbfHPFlq (ORCPT + 99 others); Fri, 16 Aug 2019 01:41:46 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:5748 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbfHPFlp (ORCPT ); Fri, 16 Aug 2019 01:41:45 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 468sdM5YMtz9tyNF; Fri, 16 Aug 2019 07:41:43 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=Ss7r/3Um; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id IZ7b_pcq_bh4; Fri, 16 Aug 2019 07:41:43 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 468sdM4X3mz9tyN5; Fri, 16 Aug 2019 07:41:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1565934103; bh=7s8jVKSKP+mpm0O7YdWUQnf6EkvBTK/qKccC9rAQ2FE=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=Ss7r/3Umd+bYpvjlI+83xh4kVSSwYr/4zlkScCXPj7YvYvp7DVe3mAovOTns4UXzS GBg40LwJu4RHCtKaWFogE/Q4it+6+MghzkgrpNVKdtY+B1sjJ6KFFxsTGJoiYAUu6f iIP8sgpPGj/KMjKs+5OQDmnQLN7CDr4KC9F43RvQ= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 902438B776; Fri, 16 Aug 2019 07:41:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id BMt9LnyIvktb; Fri, 16 Aug 2019 07:41:44 +0200 (CEST) Received: from pc17473vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.101]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 776468B754; Fri, 16 Aug 2019 07:41:44 +0200 (CEST) Received: by pc17473vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 6A67C6B6CC; Fri, 16 Aug 2019 05:41:44 +0000 (UTC) Message-Id: <6133e0f115d955fac4061536dab0fa7480a1c433.1565933217.git.christophe.leroy@c-s.fr> In-Reply-To: <668aba4db6b9af6d8a151174e11a4289f1a6bbcd.1565933217.git.christophe.leroy@c-s.fr> References: <668aba4db6b9af6d8a151174e11a4289f1a6bbcd.1565933217.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH 5/5] powerpc/mm: ppc 603 doesn't need update_mmu_cache() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 16 Aug 2019 05:41:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On powerpc 603, there is no hash table so get out of update_mmu_cache() early. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/book3s32/mmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/mm/book3s32/mmu.c b/arch/powerpc/mm/book3s32/mmu.c index 3a62bf99f93f..c20269be79ec 100644 --- a/arch/powerpc/mm/book3s32/mmu.c +++ b/arch/powerpc/mm/book3s32/mmu.c @@ -319,6 +319,8 @@ void hash_preload(struct mm_struct *mm, unsigned long ea) void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep) { + if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) + return; /* * We don't need to worry about _PAGE_PRESENT here because we are * called with either mm->page_table_lock held or ptl lock held -- 2.13.3