Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp212487iob; Mon, 2 May 2022 17:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPrv7WvwYjrVu8w7vGwyLexAP+BZ8Ugwsu9lK/lWpoNNKnmROZUVcO2pW8LujrZpiKOmhE X-Received: by 2002:a17:902:c408:b0:15d:1234:3434 with SMTP id k8-20020a170902c40800b0015d12343434mr14403271plk.67.1651537349850; Mon, 02 May 2022 17:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651537349; cv=none; d=google.com; s=arc-20160816; b=GzERRXyJ3sMD6rhWdoDKzYjwPK5mkZkZpZ1zwvhY3wkyBIFY8pDuEW5qZgmpGXpxTo b6OaqVfMZ5PJpgowkwgVVDWA6Koxj5b5TxTuEccmAB0Ssb7GOVIA2D5GP47LxiV5HC3n QjJAbxcvJhjwyh6g7sAOhw9sXfZwKN0JOqcGBW6RzF4zJYy9qJfXTgr6Nq92k2uRWqaF Rnpyu0xmdXAPl433SF5YPsi94vSEc96+401iHKgnAksbS0g/maRBqhlH5eDpQd+XGXxx dMNsGn+t4CcCIfVpB+IE/JI+I+Kmw9B/GRAoc/lXvF/BQUZb+CVlYPERygU6RuQjkn0F l2Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=BsQ9TpoXH6IIZzExOTwtYn8kipIJC3XTx6mU5Gg2vMU=; b=NZYv/VXjl8WNWHmOte47+TkgwgoXmHT/oQoCPEVSjerySKw8j9aT+cXQmATXgwHKRp T9eYNYqqgOlUBR+rWqt4z/0ptX1eJLo9D8MMfQ7ufXsWDuHPw1tXl2qE1rWPGivvZMHb E9X1Smfygcc0kAxIvm11uYI+tmD7CVG53ql2Lu811Anai0BH24Sm5Oc4yUchnzTNzxAe FamQUD8WPMj/dnfd6x3VePp9IiYwP12ZssakUIuMrgflXulcWdIEeyFKH3BeNtNxIU7B swfDSVOh7y0tbPGcDZTrVwhADFXvpHsr/8KRYqOBEbrC2np6SdrdDoSdfVL5wc+cg3j7 jPJw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b3-20020a170903228300b0015d17ba5b87si2117995plh.20.2022.05.02.17.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:22:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2B4213BBC8; Mon, 2 May 2022 17:18:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378821AbiEAWR5 (ORCPT + 99 others); Sun, 1 May 2022 18:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378175AbiEAWRw (ORCPT ); Sun, 1 May 2022 18:17:52 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7F8D42DFC; Sun, 1 May 2022 15:14:23 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id C187592009E; Mon, 2 May 2022 00:14:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id BB3CB92009B; Sun, 1 May 2022 23:14:22 +0100 (BST) Date: Sun, 1 May 2022 23:14:22 +0100 (BST) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer cc: Joshua Kinard , Stephen Zhang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v3 2/2] MIPS: IP30: Remove incorrect `cpu_has_fpu' override In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unsupported forcing of `cpu_has_fpu' to 1, which makes the `nofpu' kernel parameter non-functional, and also causes a link error: ld: arch/mips/kernel/traps.o: in function `trap_init': ./arch/mips/include/asm/msa.h:(.init.text+0x348): undefined reference to `handle_fpe' ld: ./arch/mips/include/asm/msa.h:(.init.text+0x354): undefined reference to `handle_fpe' ld: ./arch/mips/include/asm/msa.h:(.init.text+0x360): undefined reference to `handle_fpe' where the CONFIG_MIPS_FP_SUPPORT configuration option has been disabled. Signed-off-by: Maciej W. Rozycki Reported-by: Stephen Zhang Fixes: 7505576d1c1a ("MIPS: add support for SGI Octane (IP30)") Cc: stable@vger.kernel.org # v5.5+ --- Changes from v2: - Give credit to Stephen for reporting the issue. Changes from v1: - s/chosen/disabled/ in the change description. --- arch/mips/include/asm/mach-ip30/cpu-feature-overrides.h | 1 - 1 file changed, 1 deletion(-) linux-mips-ip30-cpu-has-fpu.diff Index: linux-macro/arch/mips/include/asm/mach-ip30/cpu-feature-overrides.h =================================================================== --- linux-macro.orig/arch/mips/include/asm/mach-ip30/cpu-feature-overrides.h +++ linux-macro/arch/mips/include/asm/mach-ip30/cpu-feature-overrides.h @@ -28,7 +28,6 @@ #define cpu_has_4kex 1 #define cpu_has_3k_cache 0 #define cpu_has_4k_cache 1 -#define cpu_has_fpu 1 #define cpu_has_nofpuex 0 #define cpu_has_32fpr 1 #define cpu_has_counter 1