Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9097060pxu; Mon, 28 Dec 2020 06:34:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfosCJpOSrqk0xfYe31JoWBkCWOGD4nMPBTEFJO+zeb6jKNpVtz2GLtCA4tBvkBUR6ilQl X-Received: by 2002:a17:906:118c:: with SMTP id n12mr42726460eja.167.1609166043488; Mon, 28 Dec 2020 06:34:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609166043; cv=none; d=google.com; s=arc-20160816; b=Fg0SfOyZgP2CgLBwEiG184RYUdbGMiMFfiuXLAWoVIPgGBwznDFBuXcBD5GytGcvcX +ljYn+jtWX4Kn2kQ1Ae8wxyIb7D3PwtIWgYmomFCHEHd91xqjNJCET/zOyt4nGaFMabr ZnupUgcWCE4yNpPhXNIMZdqC9wDE32HV9QmF5lPik4ppWQQxqYbqUbUucm5GJlKMGt7B QF3ZTpdqjghkWU+Bc64g1pNCNRuLiyMrmvnbXB/IcqicADFrlhTDtltIbk4CyOERCadJ BHSxcj9d5X8ANsjzPYfgbm2uZnfcibekIXApPPiZqfnUJW6pCFw+JoCjm4usWflHPA9x qouA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jFLnWzSc4lREHAdD/FbQAVpQCHBQniJLSFPg5Cczn1I=; b=rK3eyhSuD1piNA82XmaVl2paLkpVqYRUJe4Q4+7SoUPwyDhECH/kcPxBvRhIiNLibZ 1IQmY9HkC8mhJxHWD+cFJLMx44G0G42h4uwhMuEDAvGkAy1I6trmLQAZz0FP1GEDrT8Q SkeU01f9QjviQQ2L6VjajQr5oG09IFld6K3f0B/rYkE67vj2DsfIBkjNEmW9xg1Qvqxy /hC4sRoCW9Be//UZz3/rGZ5DkqWjqbJE5zidzDfigZQxzajzvJLTDA7VxJhmmD03x824 QKodo14WrYUI2dnI4wVn1agR/SueFOqaMwkYm5CW7lWHeDbBu2pDwpdgA2jFHRneqaHz CMpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G5Wm05W2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si10742982ejt.403.2020.12.28.06.33.39; Mon, 28 Dec 2020 06:34:03 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G5Wm05W2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503601AbgL1OaK (ORCPT + 99 others); Mon, 28 Dec 2020 09:30:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:38076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503498AbgL1O37 (ORCPT ); Mon, 28 Dec 2020 09:29:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D119520731; Mon, 28 Dec 2020 14:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165759; bh=vFPyLfDPH6Ev0LuAJ5FVdAVsKR+J70aSxKEyxcdBivE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G5Wm05W2NnNOHscUdI6qrMC5ppPsMBFIsfGsCu3JD478ncoeYYQpPqDX+tdcYwXKC vvzGmRwruc1okyVZkXcH+hX9jPmWMHcHpSEOAX6bnEm3e7yo63VS3KYRWkaEqsVvYW kZBBIKaoaUSWglJ2KLBizJBJZIwq0znB2xZHAu5c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Michael Ellerman Subject: [PATCH 5.10 614/717] powerpc/mm: Fix verification of MMU_FTR_TYPE_44x Date: Mon, 28 Dec 2020 13:50:12 +0100 Message-Id: <20201228125050.334345593@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy commit 17179aeb9d34cc81e1a4ae3f85e5b12b13a1f8d0 upstream. 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 Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/ceede82fadf37f3b8275e61fcf8cf29a3e2ec7fe.1602351011.git.christophe.leroy@csgroup.eu Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/mm/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -532,7 +532,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);