Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp301437pxk; Wed, 23 Sep 2020 03:42:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws3Szac8krymx70Tmn2Qqlzjl0ogZw/DKlxoLJn6TcSSWH/b9Bgqp0Rav+1BG0dtr9NhJw X-Received: by 2002:a50:ce09:: with SMTP id y9mr8758105edi.91.1600857763451; Wed, 23 Sep 2020 03:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600857763; cv=none; d=google.com; s=arc-20160816; b=n6T6yqh670wZZ5crTOsAUkAS/FrLca7XQlm10taechcWV/tzuB9JZ/RVr64bUHXrZm oPeJb849qzPaF2LIJX9OZvXzGECMJKghCWHQEPZKCR8qUo2NbdPEkExBcyrKSViCgWDN 7WDv2aox7HMACs/g2yO3zLC0FnMLr4XR2DnlpRiekdEenFqnkVYuMRNi+JwPdoPHhmZd LYbrmOSfEVL1Gos7fM6qsCBx8XJ7DVuzmlVnkogG24ksiC+zYEKPowTRUgQWxqwJaUAE izOuZK6WfsfPXn4Qw+mPFlbyd63N8PaDIEDBd0DBHJTiQs8CuDW1Pe/Xu9le33NMeYc9 +NKw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=YOYlCT9D88aubn+lfNoGCQ/oEQRdksu7CUiOu3ZUONM=; b=sHPCFkacOtm0lrgvdIzHiWSwDpPZVxoUFKHNUXafaWE5kyUdWzUassTVz8Z9asp193 cFRtLsqTumfF0eLasGN1cCcrbZSZN+fucNgbWajyb7TLOEWDkyVEIdVpDGHq2HM4s32W wVCMLtO3XS/PM92bj3vqT8po7c0c4eCYsllNs78WXgohdidbtpaNp6EW/ON06g9DtsjI P6r70/uAVOt2G8352cAFjy8wQuR8NFNl6u6prZU8bO8cDzt/jxKyJ6NhyzKdnef4BWmC joU1GuN2fMk6sN0n2XjH3zVk79r91s4BO2m8Uc4o3vEVYlfeno6G1X+Z+potvh0FsolU TFjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=YTrRJynw; 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=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b43si14512844edf.15.2020.09.23.03.42.19; Wed, 23 Sep 2020 03:42:43 -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=@flygoat.com header.s=vultr header.b=YTrRJynw; 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=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbgIWKlV (ORCPT + 99 others); Wed, 23 Sep 2020 06:41:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgIWKlV (ORCPT ); Wed, 23 Sep 2020 06:41:21 -0400 X-Greylist: delayed 471 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 23 Sep 2020 03:41:20 PDT Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1195C0613CE; Wed, 23 Sep 2020 03:41:20 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 41176200E0; Wed, 23 Sep 2020 10:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1600857208; bh=uHQfasNA1XFcYr/xwx522TWpQM1A3Ga0OYLOoxt3Xtg=; h=From:To:Cc:Subject:Date:From; b=YTrRJynwsyCkysTLzOEc9Yel/jb6x1d+bGYDmLgh3Wde6G9y4A8TFyxvQGZoRyluR dnyW9OL0nB/f2rVMXGbFaHCRVGd1ypcjiAv66JyG35nIMgISMguuxPx+Jh2Qsf+c+e Pkfs6P5HQdCBjFY1YGlPbNLVGKBOcQST2983E/6mjbPJW+JIM7nEjQTgS/NmnRW6pc CZCYLXgtTUOXJX7WOJm2LWK2djLCxkyVK6Cd72kFDiyo+fse5EO9LBJUo4fKdKbNYE 7cFPO5E4wiOY4ihU3afW2z1T4Od+XVnDyz463NrB0F44HxsPdNcKwInAmF9TMK9z2I FI2B7a1iK0L4w== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Thomas Bogendoerfer , stable@vger.kernel.org, Paul Burton , linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Loongson2ef: Disable Loongson MMI instructions Date: Wed, 23 Sep 2020 18:33:12 +0800 Message-Id: <20200923103312.55507-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It was missed when I was forking Loongson2ef from Loongson64 but should be applied to Loongson2ef as march=loongson2f will also enable Loongson MMI in GCC-9+. Signed-off-by: Jiaxun Yang Fixes: 71e2f4dd5a65 ("MIPS: Fork loongson2ef from loongson64") Reported-by: Thomas Bogendoerfer Cc: stable@vger.kernel.org # v5.8+ --- arch/mips/loongson2ef/Platform | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/loongson2ef/Platform b/arch/mips/loongson2ef/Platform index 4ab55f1123a0..ae023b9a1c51 100644 --- a/arch/mips/loongson2ef/Platform +++ b/arch/mips/loongson2ef/Platform @@ -44,6 +44,10 @@ ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS endif endif +# Some -march= flags enable MMI instructions, and GCC complains about that +# support being enabled alongside -msoft-float. Thus explicitly disable MMI. +cflags-y += $(call cc-option,-mno-loongson-mmi) + # # Loongson Machines' Support # -- 2.28.0