Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp663801pxb; Tue, 5 Apr 2022 17:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSC8a9mTFWl4MHwrudKImfpWSu0ZpHc5y4V7mMVC1V85EzrPDvqynnkw3xD3oH5t0ps9W1 X-Received: by 2002:a05:6402:3586:b0:419:6059:f016 with SMTP id y6-20020a056402358600b004196059f016mr6257342edc.402.1649206306589; Tue, 05 Apr 2022 17:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649206306; cv=none; d=google.com; s=arc-20160816; b=lwnShmgAxgHB/M+BmlvGolRkMUg4cmzOeKe9oWwWAJiFynWRBWgZzh1DdYqjT7qjY9 7n2oGeUCcZU4VyF/8T7sgdMCXWEVNKJQXWcuFO744mRJglRZhrzaRIDQOv6LJ+iet00z Ikc5r8Q14Bg60uzlbB/UY5xXbXNajcXvS/TnbrpZoNxvZ262PbkensdCJUrJx6/UaEcl mrNxbpUYulUNBzwtmaM1NfiLPQx3NmxTXD5fOcASbd74LCl8EL6CmeEpNb+veSH4a7fg lHSx7VeYzThItvz6GSYFakE9EAwx/da1IUF23GultbSTeEnrDbywktyJ0oOU/cnRSU+P oWgQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vrvcr9DXVUlWZPnMqgh6I8kql6VzwIfpGe+NDqe2Z3Y=; b=VKP3+XEudDjOZpfoDBkLWFdmRYY7C3DjjO8CrQmh7hw+Nfdt/3orqtE0V24dSbvelQ 3iWFxly6IGER5fJ8TBfWjfizJZPdEtICN/uqChS3QloVm9ZmX9QUPA0PLuvDKZSUiXzE LUEZTWN/h8SdRDVaS8O12D03cpR9e/kKXinmd1rbXRAwG9r36hOhO6jqzCobYLtsyPXA RtkkndwdQi9RcNvZbrU/XOfxu3UkE2v01E+1NgxfRZhf65yYYt4hdlb+MPMwoMtd3LQI 7UePbtJ+DD4AiUEztIqlsDWy4kme5f0mpGeNuHcAMkYEBAOZDeKZte3SnrF1fOFZj6Iw eLfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V0Su4jU1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020a170906841400b006e7ee87d5fbsi5939656ejx.35.2022.04.05.17.51.21; Tue, 05 Apr 2022 17:51:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V0Su4jU1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240893AbiDEJGq (ORCPT + 99 others); Tue, 5 Apr 2022 05:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239007AbiDEITn (ORCPT ); Tue, 5 Apr 2022 04:19:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A0775E48; Tue, 5 Apr 2022 01:09:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8D54FB81A32; Tue, 5 Apr 2022 08:09:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E71B2C385A0; Tue, 5 Apr 2022 08:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649146196; bh=GFaQBGiyHR7R9an96UR5qCvcpxgJaPDYRvgatno0VlQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V0Su4jU1fdW8e07F4LawMHr5lBp3eS1csO0CQAJ8fY+CGQbU2LOcvbnTdu8fCzKFQ 7pJePPV+mvk1zkoyV7Ju0mWj5VCzoRXkok+52ky6Urox2ZOfn8yn7vekR+BK6c3sC5 RyO0AHyYL7rmAVHOMUyB+WF30BGZ9ILj5oyDLcJU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Paul Burton , Thomas Bogendoerfer , "Maciej W. Rozycki" , linux-mips@vger.kernel.org, Sasha Levin Subject: [PATCH 5.17 0638/1126] mips: DEC: honor CONFIG_MIPS_FP_SUPPORT=n Date: Tue, 5 Apr 2022 09:23:05 +0200 Message-Id: <20220405070426.362237614@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Randy Dunlap [ Upstream commit 97bf0395c226907e1a9b908511a35192bf1e09bb ] Include the DECstation interrupt handler in opting out of FPU support. Fixes a linker error: mips-linux-ld: arch/mips/dec/int-handler.o: in function `fpu': (.text+0x148): undefined reference to `handle_fpe_int' Fixes: 183b40f992c8 ("MIPS: Allow FP support to be disabled") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Paul Burton Cc: Thomas Bogendoerfer Cc: Maciej W. Rozycki Cc: linux-mips@vger.kernel.org Acked-by: Maciej W. Rozycki Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/dec/int-handler.S | 6 +++--- arch/mips/dec/setup.c | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/mips/dec/int-handler.S b/arch/mips/dec/int-handler.S index ea5b5a83f1e1..011d1d678840 100644 --- a/arch/mips/dec/int-handler.S +++ b/arch/mips/dec/int-handler.S @@ -131,7 +131,7 @@ */ mfc0 t0,CP0_CAUSE # get pending interrupts mfc0 t1,CP0_STATUS -#ifdef CONFIG_32BIT +#if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT) lw t2,cpu_fpu_mask #endif andi t0,ST0_IM # CAUSE.CE may be non-zero! @@ -139,7 +139,7 @@ beqz t0,spurious -#ifdef CONFIG_32BIT +#if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT) and t2,t0 bnez t2,fpu # handle FPU immediately #endif @@ -280,7 +280,7 @@ handle_it: j dec_irq_dispatch nop -#ifdef CONFIG_32BIT +#if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT) fpu: lw t0,fpu_kstat_irq nop diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c index a8a30bb1dee8..82b00e45ce50 100644 --- a/arch/mips/dec/setup.c +++ b/arch/mips/dec/setup.c @@ -746,7 +746,8 @@ void __init arch_init_irq(void) dec_interrupt[DEC_IRQ_HALT] = -1; /* Register board interrupts: FPU and cascade. */ - if (dec_interrupt[DEC_IRQ_FPU] >= 0 && cpu_has_fpu) { + if (IS_ENABLED(CONFIG_MIPS_FP_SUPPORT) && + dec_interrupt[DEC_IRQ_FPU] >= 0 && cpu_has_fpu) { struct irq_desc *desc_fpu; int irq_fpu; -- 2.34.1