Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp638200pxv; Thu, 15 Jul 2021 12:09:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylvj/bYAs1spj2PIXAGIThh/KZu/bjFEfIWfvbJ8i26Mzhrv7unEPndrGvkZM4jU04Qoco X-Received: by 2002:a17:906:eb99:: with SMTP id mh25mr7138800ejb.330.1626376166190; Thu, 15 Jul 2021 12:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626376166; cv=none; d=google.com; s=arc-20160816; b=nx4/oW1AxRl9sLxH0aspM1puRTLT9WrvosdPD3cMUkX2NqjtXwdgidCxjCCXb7PYeB evQAf4apYobW4JgBDKADMIGOuof5tDQM+6kkqOMn7ZFVd0gD53VlU6eFIcsr8tnxTh0Y +/VqFDpFxjMw/Mq+/G1eeAoGuqpeASdcjcEjj3MuGmKbRbFGqsBt5nbO1vTPYbyw8Kpq tvG/OcGkGNcjP/CY8F3f17Mo5OXkI9O8jH4sfQkisxO1rVwf73JT2/b3dy3zRY98xPiR tT8dcGAg/uY5sPldyoYaXEsUZVjNtccZZNu0MYZYazSKqUa0DLBV+VVKjSCyLrPbmZzz BxbA== 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=+up4O9Jg1Qnbohh+K0BqQkD1b4dTwZGOssmiJXm3d5E=; b=NIFUxfm+phE8/XuHPY6sDtLAlDVscS6SKnI7RhtQkl1Nao+4JnIVfDcGDLq+v146k2 Clpb+d0fdGzu0ngS9J6U0SUO6CcCe69HT9BgtN5LQrtgbCJVD3evce/XZtJ2KOJCDH6f 550zZcCv9gg9oi+NdYexF7EoITz3zlJF1TXD5g9BY0BFaUO8AtlxDgYZwefYpxobsaZJ Y8i8eMmoxIcv/PBSN778d/5B2Sd/M2oddhK1XNxC4j8pyJ130jZ/PWa5ZE4Cd20nnGZe ZMsFyRNHBHZPA/IEMETPvt77/pWoU/P0WLOYVRL3V/ePj9nqvzLzCXATwll7OUR8mMBA 7UsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="D3Y8m/Xa"; 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 t2si876246edq.529.2021.07.15.12.09.03; Thu, 15 Jul 2021 12:09:26 -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=@linuxfoundation.org header.s=korg header.b="D3Y8m/Xa"; 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 S243431AbhGOTJu (ORCPT + 99 others); Thu, 15 Jul 2021 15:09:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:35104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241038AbhGOS6t (ORCPT ); Thu, 15 Jul 2021 14:58:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4C643613F2; Thu, 15 Jul 2021 18:55:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375347; bh=jkuEZkfL7lr8mk1AeV04Qf6U6eKhfHJ7PJkPe7AUo14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D3Y8m/XaBEN3TkirE/xX0KEMKIlKDD4nt1ppACU1g0hE1wVlpQ9QZUYkSelVtWb7c S1//tDRZj1QIeT17Appznd9m2HTilptzrtll9GmR4Nly815tvDnYekQxzTMXzV6IOO PSONt6KKFSebs77EBp0kx0XobIGRUVc55IoqGlbg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Cercueil , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.12 048/242] MIPS: cpu-probe: Fix FPU detection on Ingenic JZ4760(B) Date: Thu, 15 Jul 2021 20:36:50 +0200 Message-Id: <20210715182600.651035607@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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: Paul Cercueil [ Upstream commit fc52f92a653215fbd6bc522ac5311857b335e589 ] Ingenic JZ4760 and JZ4760B do have a FPU, but the config registers don't report it. Force the FPU detection in case the processor ID match the JZ4760(B) one. Signed-off-by: Paul Cercueil Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/kernel/cpu-probe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 0ef240adefb5..630fcb4cb30e 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -1840,6 +1840,11 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu) */ case PRID_COMP_INGENIC_D0: c->isa_level &= ~MIPS_CPU_ISA_M32R2; + + /* FPU is not properly detected on JZ4760(B). */ + if (c->processor_id == 0x2ed0024f) + c->options |= MIPS_CPU_FPU; + fallthrough; /* -- 2.30.2