Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3014222pxu; Sat, 10 Oct 2020 16:08:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMyhxvvleyrptFtIRnioBWlxlx2LW9PcUI2ekyXl2skg+i/2XJi5di6ca2iEuvwCL0fZUp X-Received: by 2002:a05:6402:1012:: with SMTP id c18mr6414488edu.77.1602371312443; Sat, 10 Oct 2020 16:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602371312; cv=none; d=google.com; s=arc-20160816; b=djCm1J+PMu4K0CfJM0AcVn4R8IpUtNRzv9jmUDHrc2CoXiNu4oJfe/C6tdPSyHIJKW PhZ5P96yAa9FEI4fuODIq+ljD6Y8EkYguV4QmU6te1AFy+hrKNxhFleInnTWy/RbB+kO EByzh+NV6hEjwyxj27BM9jYlNj+kTQJSn8ztiDKyG1IgRkYY+sjTKvPe/1p1JHmkcoD9 oxOVNQ1q085zx5yH5rNMC+nl8nfhHkzq9nOYwFFok3NMf+Zr7vRF0lRwJw44HeQxuBHX opd5+2edtjXxWfk/x4GHuv3TzKjOt33R1/Ofa4CVyBuxG3xXOMNEjeS3zKjIp/3Lxa0g B71w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:message-id; bh=M59N5VupNnplshJ424UeIlZjiJ+RoCet1qxlr3hBu1s=; b=jiipBRpTSYsRS7opwMQ8EhmFxsc+Ca9plaR41pa8ppYKK98QvtxwkPxJg6G6OEOiAE 3ZxXcWhNO6i1NWby2hMjBrNvbs7Na67AeMWCE4Cx+fJaUS6M2Cc0QIheDfliRa55m2// nQoxpjgp5tG12FiC/O11oVRxl4xwLn/UCAD6sZigKXOf7adxM1bO3DRRdeYrx9TshBbq cW7yXLCb3qCcQxXHrsWo69+6Bh33mMBfchGajDllquonqWK5xjcqjMGRyIvFM2vxT2V/ RcAxl8CVShJAF3VH5u/27iwwYw/brtYq4w3z5q+VfP6QWKWd/3flp7+Kh2v+0nYz/GlV JJMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si8924104eds.287.2020.10.10.16.08.09; Sat, 10 Oct 2020 16:08:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390605AbgJJW6B (ORCPT + 99 others); Sat, 10 Oct 2020 18:58:01 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:14003 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730620AbgJJTvz (ORCPT ); Sat, 10 Oct 2020 15:51:55 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4C7sRQ6nGwzB09ZY; Sat, 10 Oct 2020 19:30:58 +0200 (CEST) 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 M0OXNRI91eu1; Sat, 10 Oct 2020 19:30:58 +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 4C7sRQ3vnkzB09ZX; Sat, 10 Oct 2020 19:30:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 75A7F8B77D; Sat, 10 Oct 2020 19:31:00 +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 QlNDzOYQ_dmU; Sat, 10 Oct 2020 19:31:00 +0200 (CEST) Received: from po17688vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3FF4F8B75B; Sat, 10 Oct 2020 19:31:00 +0200 (CEST) Received: by po17688vm.idsi0.si.c-s.fr (Postfix, from userid 0) id F3B5C663C6; Sat, 10 Oct 2020 17:30:59 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH] powerpc/mm: Fix verification of MMU_FTR_TYPE_44x To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Alastair D'Silva Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Sat, 10 Oct 2020 17:30:59 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MMU_FTR_TYPE_44x cannot be checked by cpu_has_feature() Use mmu_has_feature() instead Fixes: 23eb7f560a2a ("powerpc: Convert flush_icache_range & friends to C") Cc: stable@vger.kernel.org Signed-off-by: Christophe Leroy --- arch/powerpc/mm/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index ddc32cc1b6cf..b7586d8c835b 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -530,7 +530,7 @@ void __flush_dcache_icache(void *p) * space occurs, before returning to user space. */ - if (cpu_has_feature(MMU_FTR_TYPE_44x)) + if (mmu_has_feature(MMU_FTR_TYPE_44x)) return; invalidate_icache_range(addr, addr + PAGE_SIZE); -- 2.25.0