Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4292777yba; Tue, 7 May 2019 15:45:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4J0r+0sOt8EVX/gHc+JJkFT2ftJRr8FSPH1qhI812mqhDnzQgqKDJXCxooZ1CAyk1mvLY X-Received: by 2002:a17:902:7594:: with SMTP id j20mr25086588pll.78.1557269129793; Tue, 07 May 2019 15:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557269129; cv=none; d=google.com; s=arc-20160816; b=sOfVN2J8GSTwTog9d4kjT9cpHqjEc6Hc2lJZU7qKY8T3oKKHAZOQ90SrMH2FLlDOSy zcCOz4TqEftokzr80n/mvnMB7roMLPGspGuq+qgLIUZmIUGXJS2OjeeZ/KcmzFQtJVxX /0WWYJu9cZ8pJX3AUVJ1GHOh/v1qjzKWIh+HFHoH851eZYIU0Aq+QLPlsXrE0jNa5nzZ AgFo4kGeqJ00+dkbGwDv3ns/U5MMGwqd1dSyIWpW5lNOmwMeuOZy/lnzNKQVDBPaAr8T /OMe+iOjhj3pCZWuVbIFhB03inCqIY3JpIc2ON5ESVfTJNWqCAzePh5/1YqfH8gIFRd3 pyOw== 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=eFU2eTkf+brbMeSQB+txh2lG96YUt9akc3uqFs2EylM=; b=bnt2UnXH/VTdp/DQW5DRfb7iC5uO94Cgvvi1iofIktcOIWgPyEbECQbZho4Qxlev+D eRhbdcE3CAE+PpOGlI6gFxwud5c1sw5devipldffPQLEzMDa47jYvOgaEsLJ5Ety8YEX NQFtBOuOYYPXU+/DeDqQGrFo3TQhFm6iDTv5WIw+6Bflof2tm3REFo2RBfYDSOoX8sHx 2l6TX9aD7H53a3ETZ7Iqq1I35D55KyB9EbT6crzr0wiP6shdE7jTWUHHlD3NhmUInUQ6 SuXCYm708UvseL0VQvpk9GcnL+jApLS2O2qf2xyCBSIfuS93JQ677070QWTEZlxr7kkb bbTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=MH+KXfIh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z7si21531615pgk.476.2019.05.07.15.45.13; Tue, 07 May 2019 15:45:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=MH+KXfIh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726486AbfEGWo0 (ORCPT + 99 others); Tue, 7 May 2019 18:44:26 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:58468 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfEGWoY (ORCPT ); Tue, 7 May 2019 18:44:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1557269062; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eFU2eTkf+brbMeSQB+txh2lG96YUt9akc3uqFs2EylM=; b=MH+KXfIhzF4WYTBwz6U53xf9y+q58MvwTHBlqNFgbw+6mBOq2w9bQ5JJlKbtC29wpoNnp7 YtJRxxhiMUz/rp9U4udOdkj8BWBoqQE/ElBefl47rnjvpl/PQQHvRKQZSPSSw9sbxAUZVs /AuH4alH0tbjh6BNBHNULVPaC69hVoc= From: Paul Cercueil To: Ralf Baechle , Paul Burton , James Hogan Cc: od@zcrc.me, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH 2/2] MIPS: Decode config3 register on Ingenic SoCs Date: Wed, 8 May 2019 00:43:57 +0200 Message-Id: <20190507224357.23778-2-paul@crapouillou.net> In-Reply-To: <20190507224357.23778-1-paul@crapouillou.net> References: <20190507224357.23778-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org XBurst misses a config2 register, so config3 decode was skipped in decode_configs(). Signed-off-by: Paul Cercueil --- arch/mips/kernel/cpu-probe.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index fdb73c1b0cd7..ed240cdfef46 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -1960,9 +1960,17 @@ static inline void cpu_probe_loongson(struct cpuinfo_mips *c, unsigned int cpu) static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu) { decode_configs(c); + + /* + * XBurst misses a config2 register, so config3 decode was skipped in + * decode_configs(). + */ + decode_config3(c); + /* XBurst does not implement the CP0 counter. */ c->options &= ~MIPS_CPU_COUNTER; BUG_ON(!__builtin_constant_p(cpu_has_counter) || cpu_has_counter); + switch (c->processor_id & PRID_IMP_MASK) { case PRID_IMP_XBURST: c->cputype = CPU_XBURST; -- 2.21.0.593.g511ec345e18