Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp963041iob; Fri, 13 May 2022 17:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4MNajSeVdvERPMwe18DPcrJBpUN3vMUGYNRxhDepEUfHcCacb9g/bQddB2ySJc7GJnTwy X-Received: by 2002:a05:600c:34c8:b0:394:92b4:f63c with SMTP id d8-20020a05600c34c800b0039492b4f63cmr17380462wmq.58.1652489576466; Fri, 13 May 2022 17:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652489576; cv=none; d=google.com; s=arc-20160816; b=pMzCNx3nV2LMp6B/d5Cq2ZD+xX4Q5aVDMFbhe2QialNoPEE9fle/Ch45pAv2kOIIfY cyz9F5qStMQNx7BLfTuvy3oQK5iOkq8xy7iEiqnYKDpuEO3+7MS4THR3vTkd2qxvLIeM K8nKlEBoMqlmeXclttWL4ejnnfrVJ1Y17nLArBQwGeRE7GmpSj8NFeIq9mB4Uh3UOT4z O0zIaDAXvQGeFmJ95lcyFdJg/ciXYsNSsChqRdJuUWwojafIhLp21kinTRwhn44NV5OF c/OrCsgALXo4uK4irp2nqwf60qbzR51x9g0IG+MUukpR34MmPQ5o8E0sUlW1Ui7Zkadh hVcw== 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:ironport-hdrordr:ironport-data:ironport-sdr; bh=vRO8zsUxhvlcy5ANsyc+HCcbQb6w5PeDut9ND8Jmu2A=; b=nTB5YRomZ2O5qiYieHXhb8H5vjVqO8Riax2zoVHit/uPszbkLwl88sAr6j7/ucqraS bBnGxB1DQEE/G5UFu0ykTNroQ45E9+eIV1iG5i/chKuW6SkRb3xk3RHKWGO0um+wsfKK 6YMRI5Gxl/47kzFe8g2RpuaOOOBSnewlndjAwOgbbKg4UwO9uiKNGtBfVPPb9Rkb7sd0 kMgN2pn7C8uKSrlgwPEokshmO4DQoKHMWT+DcR05hGDRkd9WSujfN/xLyiajxOvkUkoe ygaSvmOHRiztNGTmA0QebcC12G0UGfFMz9zgmYuUAQB3uLDVMfhLPuqUym7Ty/gkv5qb 8cHA== 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 r10-20020a5d52ca000000b0020619196f0dsi3484210wrv.720.2022.05.13.17.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:52:56 -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 E955534A722; Fri, 13 May 2022 16:29:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358885AbiELX02 (ORCPT + 99 others); Thu, 12 May 2022 19:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354801AbiELX00 (ORCPT ); Thu, 12 May 2022 19:26:26 -0400 X-Greylist: delayed 185 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 12 May 2022 16:26:22 PDT Received: from hfcrelay.icp-osb-irony-out6.external.iinet.net.au (hfcrelay.icp-osb-irony-out6.external.iinet.net.au [203.59.1.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C35D1EAC2 for ; Thu, 12 May 2022 16:26:20 -0700 (PDT) IronPort-SDR: 6ED5Nm2L9KnP/3fOBxfIkd6wEWdTDOcmkgDiNW+dcYpVa+dZGr46kt9pDtiFEYr3ZcG7bQdZCQ QzzNDaA6Tw9DP1VjljiTbvGjzAnxQ2WtdNCwFvHhlcvJJdVhyHl13PzWZT/lCvamUVlUjyXZOL PHI/bK6GftBf2S8amzlq9+Dyp2+jlUdAmGQmp3gn3bE75wnoVFRZGwlB2SiAlEn6vS/dNWrjDP 3xwER9pjucNUN3cns+PcV+MOdQyVYGaAVrndhLOr+P4wDfiCxKe+Mw7cei40Hhqk0yZXhb5uvj j3w= X-SMTP-MATCH: 0 X-IPAS-Result: =?us-ascii?q?A2BqAAAaln1i/0gv8TwNTR0BAQEBCQESAQUFAUAJgTQGA?= =?us-ascii?q?QsBhHWETpELA4skhHeCB4pCgXwLAQEBAQEBAQEBSwQBAYIOgnQChT8mNgcOA?= =?us-ascii?q?QIEAQEBAQMCAwEBBwEBAQUBAQEBAQEGAwGBHIUvhwkBAQEDIxVBEAsSBgICJ?= =?us-ascii?q?gICSQ4GDQYCAQGCea8feoExgQGIGYFlgRAsjmBDfYEQgTwMgnc+hAuED4JlB?= =?us-ascii?q?IFok3QoBA8DHTiBBhKBIXEBCgYDAwcKBTIGAgwYFAQCFRFTHgITBQcKHA4UH?= =?us-ascii?q?CQZDA8DEgMRAQcCCxIIFSwIAwIDCAMCAyMLAgMYCQcKAx0IChwSEBQCBBMfC?= =?us-ascii?q?wgDGh8tCQIEDgNDCAsKAxEEAxMYCxYIEAQGAwkvDSgLAxQPAQYDBgIFBQEDI?= =?us-ascii?q?AMUAwUnBwMhBwsmDQ0EHAcdAwMFJgMCAhsHAgIDAgYXBgICcgooDQgECAQcH?= =?us-ascii?q?iYTBQIHMQUELwIeBAUGEQkCFgIGBAUCBAQWAgISCAIIJxsHFhkdGQEFXgYLC?= =?us-ascii?q?SMcCiQNBgUGF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+zEl9v5a9858QJTsaDJ2Ilz0JaTpz5XcGIDWurKBJca ah2g== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="5.91,221,1647273600"; d="scan'208";a="363217664" Received: from 60-241-47-72.tpgi.com.au (HELO [192.168.0.22]) ([60.241.47.72]) by icp-osb-irony-out6.iinet.net.au with ESMTP; 13 May 2022 07:23:14 +0800 Message-ID: Date: Fri, 13 May 2022 09:23:11 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] m68k: math-emu: Fix dependencies of math emulation support Content-Language: en-US To: Geert Uytterhoeven Cc: linux-m68k , Linux Kernel Mailing List , kernel test robot References: From: Greg Ungerer In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Geert, On 11/5/22 22:54, Geert Uytterhoeven wrote: > On Wed, May 11, 2022 at 11:48 AM Geert Uytterhoeven > wrote: >> If CONFIG_M54xx=y, CONFIG_MMU=y, and CONFIG_M68KFPU_EMU=y: >> >> {standard input}:272: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `sub.b %d1,%d3' ignored >> {standard input}:609: Error: invalid instruction for this architecture; needs 68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060]) -- statement `bfextu 4(%a1){%d0,#8},%d0' ignored >> {standard input}:752: Error: operands mismatch -- statement `mulu.l 4(%a0),%d3:%d0' ignored >> {standard input}:1155: Error: operands mismatch -- statement `divu.l %d0,%d3:%d7' ignored >> >> The math emulation support code is intended for 68020 and higher, and >> uses several instructions or instruction modes not available on coldfire >> or 68000. >> >> Originally, the dependency of M68KFPU_EMU on MMU was fine, as MMU >> support was only available on 68020 or higher. But this assumption >> was broken by the introduction of MMU support for M547x and M548x. >> >> Drop the dependency on MMU, as the code should work fine on 68020 and up >> without MMU (which are not yet supported by Linux, though). >> Add dependencies on M68K_CLASSIC (to rule out Coldfire) and FPU (to rule >> out 68xxx below 68020). >> >> Fixes: 1f7034b9616e6f14 ("m68k: allow ColdFire 547x and 548x CPUs to be built with MMU enabled") >> Reported-by: kernel test robot >> Signed-off-by: Geert Uytterhoeven >> --- >> To be queued in the m68k for-v5.19 branch. >> >> arch/m68k/Kconfig.cpu | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/m68k/Kconfig.cpu b/arch/m68k/Kconfig.cpu >> index 16ea9a67723c09dc..9abddbbee819f1d3 100644 >> --- a/arch/m68k/Kconfig.cpu >> +++ b/arch/m68k/Kconfig.cpu >> @@ -327,7 +327,7 @@ comment "Processor Specific Options" >> >> config M68KFPU_EMU >> bool "Math emulation support" >> - depends on MMU >> + depends on M68K_CLASSIC && FPU > ^^^^^^^^^^^^ > Whoops, that's a silly typo... Are you going to resend, or are you thinking of changing the way this is done? I had thought that CONFIG_FPU enabled meant you had some type of floating point support in the kernel - be it hardware or software emulated. So I don't have a problem with this "as is". Regards Greg