Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp238445iob; Mon, 2 May 2022 18:09:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/dCnvRI/pCKlcC7hxpktgCPBT3CXJP0CPWcX8TodRt27m32OG94F44UZRHPuepWKhEH/9 X-Received: by 2002:a17:903:2002:b0:15c:686f:da1a with SMTP id s2-20020a170903200200b0015c686fda1amr14458757pla.30.1651540151837; Mon, 02 May 2022 18:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540151; cv=none; d=google.com; s=arc-20160816; b=ao4qHfP70p8yYA2vXhvEcdHDztYkP/DASsNigMf1eXYhf512cczJgL5Jl7kGcILEWq k3ooTeQeBqQY+4UY60ORzmpm/+TwJ2ZujVo254gcBiuTv+gwblqo2/8+2CD+kUm7KVhs 3Cr32zDjtEW4+ZipkgiQkUZu/ashVUMXswJcI1mQ9Rfd5ItMUVDd29EA9YWr1RwnqT6g GDqC96KLPoWna4d+Laf2KN1dQFJ/NF6JYQENoNT60Q2Q0M0O6K9XWOsViVY/YgRKTzmd XnPbXI+HSWD76piTicF9NJUkhuIWiLO+uLk+rtIhlNw5HRuMl8kMBoCrAubQrUMddCH3 TChg== 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=xCqm2JDcDa0hOJoqfS4x4nlUzkK0tmfRj+YRPCE2RtU=; b=DhVolYDkHNUqrSELc4hsXOh2tcisnn6Fjf2xQHe3XeRuiDVbr404F8mWjYVnHJr2T7 S6cE97XP1Fyb9PCqUVcP/bZ3bqCQGjyFdijfQFrmO+jY0ow9/Cyd47ZKUy95mSSK5APe Zy96sqsv4dEVtBm4APayCmOiYXhuEYXmggiKrEiVgXhM38eo+Fyta0pQ/Iqt1SxJsVf3 wXV/VpT/uV3FhfvcpifGQxXQ/ovlyQsTilLhdhi/YlTXQzpeZ+orLdMdsBM3lJX4URXA ddFRnvda0BP+K8PTwRhVtq6sjNGojkLUgSMcIt6FtEGL9U7/6e7hcRLZtv/Q5rAL5Ci1 OmYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d17-20020a637351000000b003816043f118si15540197pgn.781.2022.05.02.18.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 232DB5A2F5; Mon, 2 May 2022 17:51:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356631AbiEAWRs (ORCPT + 99 others); Sun, 1 May 2022 18:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354760AbiEAWRn (ORCPT ); Sun, 1 May 2022 18:17:43 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 335F42DFC; Sun, 1 May 2022 15:14:17 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 8073492009D; Mon, 2 May 2022 00:14:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 7CDC292009B; Sun, 1 May 2022 23:14:16 +0100 (BST) Date: Sun, 1 May 2022 23:14:16 +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 1/2] MIPS: IP27: 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: 0ebb2f4159af ("MIPS: IP27: Update/restructure CPU overrides") Cc: stable@vger.kernel.org # v4.2+ --- 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-ip27/cpu-feature-overrides.h | 1 - 1 file changed, 1 deletion(-) linux-mips-ip27-cpu-has-fpu.diff Index: linux-macro/arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h =================================================================== --- linux-macro.orig/arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h +++ linux-macro/arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h @@ -25,7 +25,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