Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp59526pxa; Tue, 11 Aug 2020 17:16:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywG86CAnP0qTWTR3alT9iqQ5+ecIeMTPuO/vPRlrjrzOONTI06WOA6ZM+hTqzZDsoTG9u1 X-Received: by 2002:aa7:da87:: with SMTP id q7mr27740137eds.166.1597191417780; Tue, 11 Aug 2020 17:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597191417; cv=none; d=google.com; s=arc-20160816; b=MX8Cx+tPnJteOf4fuSBY1PgFCEO04tLP7DXieXY3MRiZpTk7CKeEgLj9Zp8GwalKeR SFg9thkRFwsdSoAPPjZvf/P+sfOiF+vWjLfMFS97TzHSSwKVqk573g4Ww0ZXZ1Y+HJwK WO1sEK/F741QDsmdfPmiv2sjqGgBt2FKYx+Xn4bkcU2oNh4+Hz4Pz9tkwlFPWEPsM3BF tmwayutL6s0P/9ExoAksiJ1/Pni+CX8iBla5BhcQhG/2SmgqX6E9K9Ndc1XoX52eC53Z Jqo0aFcwI+3x0WlNR7az7HhZprxgihf7QXKra91GXpJPp9T4X9rpepICLQNIaMNQ6JbG +cfQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pt8p3JbXCqcEqLRf3DbRywhJovJJbdtfREHZyN3CiLQ=; b=1A30oEWnDe5o7C1p2ewwVEcgwOnbTXiiSvax6gBwcoGXOzHn+54QoiyUGPhU5knn25 N9GPUSWiRbg5mSFdg2UlZRxI3SEhMvMePYN7gG3qJyqMKLkzAGUH94AwqhQ7knF+Ilx7 oIvH19XVtiR6EQsrCYxHqH2zggK4x84zG9kFW+xnhLLwgIOYDmmn4ombfQjo1iK8ANbi gfNt4UKElh1LD8hDM6PWG0acMe4howtDe8oqHPqgsVlYbxRz7E6kZqJeUNGrAGCOMTpA D3J3ah2JNnsw77MzAJttL7fAvu15OeaRS6KLNh3QY/ws0hWyzFQKj9ctFjIKJ0kCAADv 4xxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=TXH7v6iX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm26si210051edb.345.2020.08.11.17.16.34; Tue, 11 Aug 2020 17:16:57 -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=fail header.i=@crapouillou.net header.s=mail header.b=TXH7v6iX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726604AbgHLAPg (ORCPT + 99 others); Tue, 11 Aug 2020 20:15:36 -0400 Received: from crapouillou.net ([89.234.176.41]:52098 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgHLAPf (ORCPT ); Tue, 11 Aug 2020 20:15:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1597191320; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pt8p3JbXCqcEqLRf3DbRywhJovJJbdtfREHZyN3CiLQ=; b=TXH7v6iXAewBTFUWOQzcW5zBt6JhETACEaxewP0Sl6idGcVxy5mlhTKcBJsC0gQrd0Nlwm 2OJCHEQovubg7/zWXNNgvVPzUHKfr5SJh91DIp1udMzKqzGZaqtpu/BqVnNiAzuF8C688x LPdEdDtXPG+Sy2jksOUajtjdcCW+GS8= From: Paul Cercueil To: Thomas Bogendoerfer Cc: Paul Burton , Krzysztof Kozlowski , =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0?= , od@zcrc.me, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Paul Cercueil Subject: [PATCH v2 02/13] MIPS: cpu-probe: Mark XBurst CPU as having vtagged caches Date: Wed, 12 Aug 2020 02:14:59 +0200 Message-Id: <20200812001510.460382-3-paul@crapouillou.net> In-Reply-To: <20200812001510.460382-1-paul@crapouillou.net> References: <20200812001510.460382-1-paul@crapouillou.net> 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 XBurst CPUs present in Ingenic SoCs have virtually tagged caches, according to the header. Add that information to cpu_probe_ingenic(). Signed-off-by: Paul Cercueil --- Notes: v2: No change arch/mips/kernel/cpu-probe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index a18f3611fa5e..a07e66a6e063 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -2125,6 +2125,9 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu) c->options &= ~MIPS_CPU_COUNTER; BUG_ON(!__builtin_constant_p(cpu_has_counter) || cpu_has_counter); + /* XBurst has virtually tagged icache */ + c->icache.flags |= MIPS_CACHE_VTAG; + switch (c->processor_id & PRID_IMP_MASK) { /* XBurst®1 with MXU1.0/MXU1.1 SIMD ISA */ -- 2.28.0