Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp714466pxv; Thu, 15 Jul 2021 14:14:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyohwW0LBuskH4j5ssTzz6Nh6swl0tiZpTU1FIQ9lVyIH9yubrn6ymngYrhOWxuNT1WdRnq X-Received: by 2002:aa7:c857:: with SMTP id g23mr9747764edt.100.1626383644203; Thu, 15 Jul 2021 14:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383644; cv=none; d=google.com; s=arc-20160816; b=ZmFSmdIeGluwB3qAOBZ7pkv11rwVVPQb0HxrBA0Avq/UvndWXc/X2CYaxFzEv9n/n3 9FnKftwr3K+6o4Yz4goK2wO0WUaVSx+OH4S//vH4BVCvNIgMVaptgzQK6pocZOdIJb2N k1c9JvDlXUhmbc0lOLIA1v+uLpWzsUBvkmftTaQ5bJhmdOxgtmvTnwcfS/NDEsz3hYQq 4ckSYGsxytRQTBjONX5kvnXcGIRwO11MBMHXemhBWvjoq2zyH+Ur8YTLSJaV7ieM6SPP e/F/Y5kFFekVfBRCYTK49AWca7G74ZX35NlsbUmdaj9LchE31eFFhdMsTFE+P/lp7nAO kRDg== 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=qaOCk2Z5wUSiLjXRqEuNmwxOfsDvZDnN4qi2YoKNUCRZRkJSdsAQNlbOGOLFPyENrW 7tsG15/3eJJ2qrwAUHCNGZv/xFSc7UA8aa3d5eEA8YBoYIK8BxubP4SjGkI6TNhJ3BK6 T77dOMmuKJbr3Pae21aC8kj2hjI67f0uLBDRR4a+Q9s6KV26pXj7zR/qQz3d6UPCqK48 jXlXBOfc4R1IZJAV4HadASpvxKYrD6Ac5T+jSpAnqfGmN5ZABD1BiK8pXiZrDy6I6XMy BUS+LEq/Gq7lNh7wE0RbfWNHMclOOtKYWDbHKNNRnkeWcBtyoQl9UErEYyyIiZfSfVQ3 2s1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ErFpI2YP; 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 18si8719130ejj.568.2021.07.15.14.13.41; Thu, 15 Jul 2021 14:14:04 -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=ErFpI2YP; 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 S244619AbhGOTbN (ORCPT + 99 others); Thu, 15 Jul 2021 15:31:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:45622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243490AbhGOTJx (ORCPT ); Thu, 15 Jul 2021 15:09:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C99261158; Thu, 15 Jul 2021 19:05:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375942; bh=jkuEZkfL7lr8mk1AeV04Qf6U6eKhfHJ7PJkPe7AUo14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ErFpI2YPXNa5yAEOs+7/u11TBgTkiHglM5GxIH2fpfhayZD9Kd24fus6hK3H+t38y p5v94GFegpVWJGGj5JKWPlCmgMe4a3MBkGM06vQYkDX7V2GM40xC+M8949ZYDpoylE /XjE/7GzwTjrwFYX+p27XSF/EYMCrBVIgkQ6nJXs= 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.13 058/266] MIPS: cpu-probe: Fix FPU detection on Ingenic JZ4760(B) Date: Thu, 15 Jul 2021 20:36:53 +0200 Message-Id: <20210715182624.443104202@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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