From patchwork Wed Mar 30 14:36:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 12795888 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B7B7C433F5 for ; Wed, 30 Mar 2022 14:39:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347026AbiC3OlY (ORCPT ); Wed, 30 Mar 2022 10:41:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243859AbiC3OlX (ORCPT ); Wed, 30 Mar 2022 10:41:23 -0400 Received: from cmx-mtlrgo001.bell.net (mta-mtl-005.bell.net [209.71.208.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D85553E2A for ; Wed, 30 Mar 2022 07:39:25 -0700 (PDT) X-RG-CM-BuS: 0 X-RG-CM-SC: 0 X-RG-CM: Clean X-Originating-IP: [70.50.7.94] X-RG-Env-Sender: dave.anglin@bell.net X-RG-Rigid: 6243249C0021DA0A X-CM-Envelope: MS4xfPWb97lPoliU7pAZq/A4vxpiSKAueEgKN3FY6AG3/bBrYVailBamNHHAe/fX5+WkdkA78UjcS9TjaFkIlUUxYUJUMUUafEr97VRgqbCgtyKzl3OTlDYs 5bPMWywfm2xTY/Zb68drtMRrcLII4kZdX9y4uAXl8uHAZy+r7HHdPbl+4iEJLyPP/PZPtGBeEmQbY7SLAQhamn1jDZ4VQA1aCav7zE8W4LOwI8deAPERznRJ INNxvha9rqV5I7WzLfjdLx0+Zjv4SpCNDA2IezMJi4nSvxGvG5JDREk+CAJrCEb5aUT7rDoGX/Xihrz6sNIaXlPAp6xWqhvhQcth7sJVBiHxxrfiHNQF4O+a m/D5Bljjg5fOsb2ksIc4LazHko7codI6l2xHzt4leeU2x9kdkDlIEtbsdRWFKqnehWoCovHeEkuL6vr4vkBxit2XpjnSre9nJ5/MBgKERpvhwlOstkgEki7q dFpkg6tU1BEJUn5QU64wh0SifSHxO3dy0QATYaLlHvGSnCxx0utEo+KgxlohJsqaZp7zWxl9vL8pkYnvPftpe5t6AEX3h/b2aUOyDAxMub40HduYi8E0KxIL BDDsjWm9VYbDeqfxNEoybsA46o4pldaCdGh652TS3/FL9Q== X-CM-Analysis: v=2.4 cv=YYreWydf c=1 sm=1 tr=0 ts=62446ad7 a=9k1bCY7nR7m1ZFzoCuQ56g==:117 a=9k1bCY7nR7m1ZFzoCuQ56g==:17 a=o8Y5sQTvuykA:10 a=FBHGMhGWAAAA:8 a=A9HHB92PKj38awnmFOAA:9 a=CjuIK1q_8ugA:10 a=6dC2SKYju5Z_YjFVazYA:9 a=FfaGCDsud1wA:10 a=9gvnlMMaQFpL9xblJ6ne:22 Received: from mx3210.localdomain (70.50.7.94) by cmx-mtlrgo001.bell.net (5.8.807) (authenticated as dave.anglin@bell.net) id 6243249C0021DA0A; Wed, 30 Mar 2022 10:36:07 -0400 Received: by mx3210.localdomain (Postfix, from userid 1000) id 475BB220116; Wed, 30 Mar 2022 14:36:06 +0000 (UTC) Date: Wed, 30 Mar 2022 14:36:05 +0000 From: John David Anglin To: linux-parisc@vger.kernel.org Cc: Helge Deller , Deller , James Bottomley Subject: [PATCH] parisc: In flush_cache_page, always flush tlb if pfn is valid Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org The purpose of this change is to inhibit move-in whenever we flush or purge. Signed-off-by: John David Anglin diff --git a/arch/parisc/kernel/cache.c b/arch/parisc/kernel/cache.c index 23348199f3f8..91d218953b5c 100644 --- a/arch/parisc/kernel/cache.c +++ b/arch/parisc/kernel/cache.c @@ -611,8 +611,8 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long pfn) { if (pfn_valid(pfn)) { + flush_tlb_page(vma, vmaddr); if (likely(vma->vm_mm->context.space_id)) { - flush_tlb_page(vma, vmaddr); __flush_cache_page(vma, vmaddr, PFN_PHYS(pfn)); } else { __purge_cache_page(vma, vmaddr, PFN_PHYS(pfn));