Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp625199pxv; Thu, 15 Jul 2021 11:51:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysQo9ptFVHgfzkfrm8IeQPpEqAgcibGD2ZETmDo1XwJTzQ3KJV1auFmzImGXzLu/m6ROj/ X-Received: by 2002:a92:d07:: with SMTP id 7mr3509157iln.114.1626375085757; Thu, 15 Jul 2021 11:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375085; cv=none; d=google.com; s=arc-20160816; b=1D/RL3tMnro2ilc6twVMIqVZmqAkWnuXqel6Nktt+32WfxBh/DV5gtUWwUdzG2ye4b OI9JONCDAMbi0xQPZfcVvGkLnZjju+KHs5EvAEw11uQAu+2lkZ8hMRYxuZ9+Yj7pHAnV 566ZfbUzxsKW/eJZAVcDknbOoHKJ1CHHPZjuE7veSkYxLBGZJ+DSAUlnvKOXrJmutST8 6aWs3Bvvh/2NFZNMhSejM1PufbX0CSeRPVtX8G26ROrpnq/xyDoEYQdwwSFG6aWoYgzV Q/0WV4+0227dqcmvYwbbGIHbehJdiwrUpPp1huHcI7NwWRCeGDjGFlVJrNPGSl0rr64c XKxQ== 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=gEcP7vThQU9s2JgYUwloPNgl6Kwwntbmq2JFBXL+rgg=; b=R+cEmWx6bNlDkyArNs7oBzrhmv9ZHF3R1SOUJtgjETfcoFBy8eTWqxgpU4QZlPlVyD xXgmuT7dAkznoUE8JM/FKaQccYdDy0O28RzKLK7w5PhMfmtCucYSNi9MZ2axQf/bBzYx 1YfkYPP+ijFIqbYlKuP6XR72DjJndhCKs1iHTyA7V/x3ezHG+1od0EhBpDz94l23qa/t Qt01tWSSvMjAd16OIBHiPVNMceX2KmPG9+H5u22Vxu5ENWmS9oobxqlj8ch01jBOdjsA ISuCubp4ADy3P6B5lUf9CjO1G3nY+JeZWauk0lIe4kJeT/ShgvUMwp9DvZkHDl/KhA9r Ko2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mu1LPB2x; 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 w3si7840937ilh.113.2021.07.15.11.51.12; Thu, 15 Jul 2021 11:51:25 -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=Mu1LPB2x; 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 S240918AbhGOSxj (ORCPT + 99 others); Thu, 15 Jul 2021 14:53:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:53050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240300AbhGOSuU (ORCPT ); Thu, 15 Jul 2021 14:50:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2FFD2613E7; Thu, 15 Jul 2021 18:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626374833; bh=oiT+BAiA3TGhR/aJnvoJoBMTK3loyU8sH31J4fwOSCc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mu1LPB2xOhyph4iXj36yrrwkU/oZ/aTwQYRM21zlwt49BbG2/YQLViFwDM8vB4Yfk 2Q+SbLv762NhcqBNDSrbZB5EUw04vwsZqhBt23ZSi7Gwt/PW5T6Bn+WkyIwN1QZGut nct4dbjMoQVVWqe/CMLUq906w40DacvaUN98FWd0= 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.10 045/215] MIPS: cpu-probe: Fix FPU detection on Ingenic JZ4760(B) Date: Thu, 15 Jul 2021 20:36:57 +0200 Message-Id: <20210715182607.315223946@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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 e6ae2bcdbeda..067cb3eb1614 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -1827,6 +1827,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