Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp992576ybt; Fri, 19 Jun 2020 20:52:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOCvHUFWwOoVt7/KZ/ncJdFHu7Er1bEK+3JlPuC0N+UCvXWvNq4srB05R/AmSrAi9+UnwD X-Received: by 2002:a17:906:5c0a:: with SMTP id e10mr6612963ejq.389.1592625160241; Fri, 19 Jun 2020 20:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592625160; cv=none; d=google.com; s=arc-20160816; b=QlXMUFl2BIiW3UuICBjpXlAQpHAQbYIEb4sGZ4SivXx9uGc5nOeK/CkqjVv7dq5N5L Q59F9NQgq0Us2jjqnR3+U96gYrwk7i4VonlESYU7AC0e/bfsdAEptviB8Hdkj6Wit73n /PPfOgzCGZFResJVEnZpfAOJnljPs8NS1LWsFqHEulJCmFHObtlyxBxEsmh7SZwJ6pqN EC+QPje4VXLCgAklPmJWGr7eADL2zwXdmFGkdX8MiGC6O7RYHSEQS1jOYR4LPEQD1SMh Q/fNg3M/ezMzOWR2q5z1udh/1oD1cOqSJcd5UBfoCWjYqlCPmCKMGVXjDtrzwe7RIVys qjYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8lBh1zkcmb+9058lwOecL/fwivDHrsKSijSU/uNtyq8=; b=KyRI1gixsLHHH6Qt1EMA8oYUPMLkBzRzz/Xu6qCT4trNOgBoqN15mVcTLYmiqw/yQa c6yvs0uTRuRkKbpLZgtjyXgW0Crwr81kzpuHvZMKurI7XliKuNcsE4CFDYCQTvVvjK3V tUYzCTT6Bx5A5bZaVxg2lNRpI+tN4XbpOwBfZfmK5H5PjvloQAolroR0lkWOuznM80VV /zOZIicKUENJT8E0FYwOBnI4fRd3DD1sc2eHdUQ+hoc+E+WRioE8V7c9odq5ctpvPBQM uJ24ZDRI9zQhMDVxiWTsrPTFmgcOsfXmvsBO2+iK7Lz9knCN9WcfeA3FAQDPbtr+TTac a5eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0ZtIocqD; 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 dd12si5093701ejb.59.2020.06.19.20.52.18; Fri, 19 Jun 2020 20:52:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=0ZtIocqD; 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 S2390870AbgFSQRN (ORCPT + 99 others); Fri, 19 Jun 2020 12:17:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:59300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390869AbgFSPCk (ORCPT ); Fri, 19 Jun 2020 11:02:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E4C5320776; Fri, 19 Jun 2020 15:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592578960; bh=E+hxlt/8bwCfl9Fxp6Mg/WFa2VcQaQImvBC/GbPUrOU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0ZtIocqDJyZAm/ohjrpPVeZyNyoHMeY+1yoFPzFDfhoSyH8ICakcdblbEAOTpAy1V hA/LJmVNWzSuT6eqbnBpCrH0efO+ymQKGziAR+KjGv8kgxa8AC98DjzH/1cU1PRi2D inbcp7JEG9sgIow3e+kh331RztYA42a5L7Vkzffg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lichao Liu , Jiaxun Yang , Thomas Bogendoerfer Subject: [PATCH 4.19 192/267] MIPS: CPU_LOONGSON2EF need software to maintain cache consistency Date: Fri, 19 Jun 2020 16:32:57 +0200 Message-Id: <20200619141657.954170501@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141648.840376470@linuxfoundation.org> References: <20200619141648.840376470@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lichao Liu commit a202bf71f08b3ef15356db30535e30b03cf23aec upstream. CPU_LOONGSON2EF need software to maintain cache consistency, so modify the 'cpu_needs_post_dma_flush' function to return true when the cpu type is CPU_LOONGSON2EF. Cc: stable@vger.kernel.org Signed-off-by: Lichao Liu Reviewed-by: Jiaxun Yang Signed-off-by: Thomas Bogendoerfer Signed-off-by: Greg Kroah-Hartman --- arch/mips/mm/dma-noncoherent.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/mips/mm/dma-noncoherent.c +++ b/arch/mips/mm/dma-noncoherent.c @@ -56,6 +56,7 @@ static inline bool cpu_needs_post_dma_fl case CPU_R10000: case CPU_R12000: case CPU_BMIPS5000: + case CPU_LOONGSON2EF: return true; default: /*