Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp344714pxk; Thu, 24 Sep 2020 07:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwbj5vwkEvPHlcF8TmBBltC1Ujr0vAgYD2Sm8wFm3xsx9C+xwNzgL5cXE1GfGLb4kb1hQY X-Received: by 2002:a17:906:556:: with SMTP id k22mr701eja.369.1600956217759; Thu, 24 Sep 2020 07:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600956217; cv=none; d=google.com; s=arc-20160816; b=DyqE5o3mVKAt6n1/K7od57gkmMkTYiY9K13LWXANSzWmIcsPzWZTOOgFGC8opNh/pU 8wGaNX5g3HK07om3V3Cx0l39ItJUJOo5MBlq5vv5dNcDGme3E/OXv/SGqSt7VhmCcQHW vMTmdpRKcwWVd7JOw8DPp405uTIG1cYn+oAf5lxQ/Bg2gwBLSdKdLKB8jI0GjPpXL6dx akZrDHqpXVpwnpxoNdAGCEE4iA2K3UejAHJqNEXz1CRD6W0UKICz/qsfLCo7KE0dU++c d7pllDvksu8w+qc+hJeWhYLzm/IdBXvptR26NMdF+uPzrqW3Qfj62EqeCHAhJU/QVq2B B4Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=afU6kZtJqwn+BU5yo3pLSjvVGuOKtrbdayJn4j3+leM=; b=JTkGa0zCDdb8ASy68NHhCUlZGEfgpIhDk1/MOyDMt3eUs/FcGXaFdMJEJJ0JcUmSt+ 3NU5MJikvJXxxVUNQW2ngIw/g/F7m808AQcBTRay1mdG9FCuysnWojtqTJ+x3GSGGOC1 CcI9TSRMNg4f3yaDAzRhGonP47RJgH8sVZUbD383E5qNyl5EJ9TSSlFVM6FLO1hucTHn t2PRjFTyw+7snrO/fTIZFhKjSa6O4N/R8zrhiE7qkyAIbJwgPxAxF6IMudLxESArjI2g 6q0g2HMgC9YxqusUntcvVtg9/tZkthx2hw6vziIoM46sFzy/LJ9bgUVKda0CofwAEX80 8xyA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx9si2193371edb.231.2020.09.24.07.03.07; Thu, 24 Sep 2020 07:03:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728258AbgIXN7t (ORCPT + 99 others); Thu, 24 Sep 2020 09:59:49 -0400 Received: from elvis.franken.de ([193.175.24.41]:55144 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728188AbgIXN70 (ORCPT ); Thu, 24 Sep 2020 09:59:26 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kLRmK-0005vQ-02; Thu, 24 Sep 2020 15:59:20 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 3CD9EC101A; Thu, 24 Sep 2020 15:54:29 +0200 (CEST) Date: Thu, 24 Sep 2020 15:54:29 +0200 From: Thomas Bogendoerfer To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: Greg Kroah-Hartman , Guenter Roeck , open list , stable@vger.kernel.org, Paul Burton , Huacai Chen , Jiaxun Yang , "open list:BROADCOM NVRAM DRIVER" Subject: Re: [PATCH 4.19 66/81] MIPS: Disable Loongson MMI instructions for kernel build Message-ID: <20200924135429.GC13973@alpha.franken.de> References: <20191016214805.727399379@linuxfoundation.org> <20191016214845.344235056@linuxfoundation.org> <20200826210628.GA173536@roeck-us.net> <20200903092621.GB2220117@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 07, 2020 at 05:35:26AM +0200, Philippe Mathieu-Daudé wrote: > On Thu, Sep 3, 2020 at 11:28 AM Greg Kroah-Hartman > wrote: > > > > On Wed, Aug 26, 2020 at 02:06:28PM -0700, Guenter Roeck wrote: > > > Hi, > > > > > > On Wed, Oct 16, 2019 at 02:51:17PM -0700, Greg Kroah-Hartman wrote: > > > > From: Paul Burton > > > > > > > > commit 2f2b4fd674cadd8c6b40eb629e140a14db4068fd upstream. > > > > > > > > GCC 9.x automatically enables support for Loongson MMI instructions when > > > > using some -march= flags, and then errors out when -msoft-float is > > > > specified with: > > > > > > > > cc1: error: ‘-mloongson-mmi’ must be used with ‘-mhard-float’ > > > > > > > > The kernel shouldn't be using these MMI instructions anyway, just as it > > > > doesn't use floating point instructions. Explicitly disable them in > > > > order to fix the build with GCC 9.x. > > > > > > > > > > I still see this problem when trying to compile fuloong2e_defconfig with > > > gcc 9.x or later. Reason seems to be that the patch was applied to > > > arch/mips/loongson64/Platform, but fuloong2e_defconfig uses > > > arch/mips/loongson2ef/Platform. > > > > > > Am I missing something ? > > > > I don't know, sorry, that would be something that Paul understands. > > > > Paul? > > Cc'ing Thomas who now maintains this. I've queued a patch to fix this in mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]