Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2122477pxm; Fri, 4 Mar 2022 09:46:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwy3pELDb2a9psSu5I3Efw94h0uj4uMZdWGqEYa8Q7cF/2JMQ22Wwx42YRXoXxjXRl/gkCx X-Received: by 2002:a63:2204:0:b0:378:9f08:206d with SMTP id i4-20020a632204000000b003789f08206dmr22985688pgi.3.1646416002125; Fri, 04 Mar 2022 09:46:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646416002; cv=none; d=google.com; s=arc-20160816; b=dua5G8/gLVEWWXKDWlJF5MoBDzdXZpUeg4YtUrzLgar56jWu+gUTIcIuVzmWvlKtKj lPYJtSFcC7rtBE+qP9IS0yHZpXxCD/Iw734/iPz4YAmTiLDHRDJoWhX6b5/0awirG6di KNwOeXlphQ50Iw4aZZfnflaozn3kADDzSDoo2NXUBm0/FnuD92/YdLUdk7nNIYf0+qIK YXrkNNkEheH3iBA6bIwk2ozqLcDqi+TjWy9Igkhw49xCJRU7+tDSfXu+8heQlSO5FKTC VGVRntCqGaFYBHdvoDo/4HKg4sDK4GcqPy57gbYF+0LeeMgdOPJZ+SPYbaKs7HEhG3U8 MX8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ubLlEfmdj3+lValUSSewOjSLCKn7kcAuaUUkJai8gxc=; b=fXVcD9BvGN9t19/a9K1NR74aoaVTpcD7pDUx2/6A2xlTACwF9eXllBHtQ5Zp+GqIV5 ro/JU3ee3Tnqh2o8Zb6t6OjJdkLpzodj88qsRsd3qVL177DMUo0/3vDlFha1vB1jQr40 ioDpelQ0YG5S9GpsJonZ9/shMKCILjaCIbihOJ0VHlAgyMrjs/VnHqQbtGmQT+5yUumV QiTpFoLVaTt6UUCd+BoR604z80bk3VbKgj6okDT9hgmMdYtx2SwTIIQTLzMRlUGmQwR0 hiXLfjG//TltdXXJ359GTImbnWGZbRXDp1S0vM5nojHHJwY0Z6h4BNf+FUWauhLdqLPS i6Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="Zk/phiCw"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a170903120400b001514606ffddsi5433546plh.491.2022.03.04.09.46.13; Fri, 04 Mar 2022 09:46:42 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b="Zk/phiCw"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240352AbiCDPfj (ORCPT + 99 others); Fri, 4 Mar 2022 10:35:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240368AbiCDPfh (ORCPT ); Fri, 4 Mar 2022 10:35:37 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C547E1C60D1; Fri, 4 Mar 2022 07:34:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=ubLlEfmdj3+lValUSSewOjSLCKn7kcAuaUUkJai8gxc=; b=Zk/phiCwCX9G3kDNmxco1uesZd TvJDDNOl920cxwrzer0hKvEe2Ydls/uVorr5Ivsj1CgM7/leWb/aSoR3RFRx5ih8LTcRa6DifQMJh ywxZknnLh9j2FqFJPbO6SPakFRow4DUnH/fffwsfGcb4Ftv1pdpVdNHcvL3Muo9hwKkM7T6KsXdEZ PSeI+JKPtKNwHvIITvBN4fL5B8EZNWGCMk9JMXtgAV4HYRyHlbJrr7SRyL0cH76FzytoRvNmsEWQx Vev0D3Xeh9WOtQcHn2YLqNrR/3dYjuvKRbUkdhvFhd5dtrdUGOQuL5Tf2gxiX8eb1bd5eAHl9D5zA 34WnwBHA==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ9x9-00CkLw-Jd; Fri, 04 Mar 2022 15:34:47 +0000 Message-ID: <05328af0-9b08-8de3-e88a-06f67758c197@infradead.org> Date: Fri, 4 Mar 2022 07:34:44 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] mips: DEC: honor CONFIG_MIPS_FP_SUPPORT=n Content-Language: en-US To: "Maciej W. Rozycki" Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, kernel test robot , Paul Burton , Thomas Bogendoerfer , linux-mips@vger.kernel.org References: <20220304011328.27459-1-rdunlap@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 On 3/4/22 01:07, Maciej W. Rozycki wrote: > On Thu, 3 Mar 2022, Randy Dunlap wrote: > >> 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 >> --- >> This builds OK. Is it enough for runtime interrupt handling? > > There's: > > #ifdef CONFIG_32BIT > lw t2,cpu_fpu_mask > #endif > > earlier on that needs to go too, and code in arch/mips/dec/setup.c below: > > /* Register board interrupts: FPU and cascade. */ > > (we don't want an unhandled interrupt unmasked). Are you happy to do such > an update or shall I? > > I cannot verify that change at run time, because any program that does FP > will then crash. Maybe init(8) and sulogin(8) won't. I can check that. > > Thanks for doing this stuff! I'll update the patch and send v2. thanks. -- ~Randy