From patchwork Tue Sep 29 11:02:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 263224 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 853D5C47423 for ; Tue, 29 Sep 2020 11:50:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 380B6206F7 for ; Tue, 29 Sep 2020 11:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601380247; bh=QhpylXSovAr803ccce08lA6goq2bd3jxBCSOdP7ETj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=RjidPRjrPlXpjY9/hMnLzcie2MUYbhCfxxx7jdPob4OJ5jjeeiCi3pB9divyEWm/k OW2o/NoQ1FxFrQdHTOWX3PYxWBR/fZqZKAnZ9UDb3NKx4Wz8XtfjBVpYeatnfv3Fjx MRJjmhn4QNZuzv5z6Ul80in1IewJ7ZFkL74Ynvn0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731135AbgI2Lu2 (ORCPT ); Tue, 29 Sep 2020 07:50:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:53070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731238AbgI2Ltg (ORCPT ); Tue, 29 Sep 2020 07:49:36 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D37D0206F7; Tue, 29 Sep 2020 11:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601380175; bh=QhpylXSovAr803ccce08lA6goq2bd3jxBCSOdP7ETj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1gdhzx97zi+7o9+RE7vkoVfRL0xZRUT4URnp459iyuwZLtD3Y4O9lfrWuhp4vLek8 GLQfu9LwVk5b67Dxd9Z7oVAw0kltDgtgEHvxzksPTXVCvpKAvOI2nJnMV/h+uKDe0M /QQKXgcPQ6LCKKsaNoOIFarM8qJB1e3ukcJ+ea/I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiaxun Yang , Thomas Bogendoerfer Subject: [PATCH 5.8 89/99] MIPS: Loongson2ef: Disable Loongson MMI instructions Date: Tue, 29 Sep 2020 13:02:12 +0200 Message-Id: <20200929105934.120324540@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929105929.719230296@linuxfoundation.org> References: <20200929105929.719230296@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jiaxun Yang commit b13812ddea615b6507beef24f76540c0c1143c5c upstream. 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+ Signed-off-by: Thomas Bogendoerfer Signed-off-by: Greg Kroah-Hartman --- arch/mips/loongson2ef/Platform | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/mips/loongson2ef/Platform +++ b/arch/mips/loongson2ef/Platform @@ -22,6 +22,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 #