Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6662125rwl; Wed, 22 Mar 2023 13:44:57 -0700 (PDT) X-Google-Smtp-Source: AK7set9nBclWtlldxxsAa5EZGUkJKqrCnX7rSx4i3tG94kjcQnItR+H3nsltx7XLFSoGiIWDdh8i X-Received: by 2002:a17:906:1b15:b0:8b1:7ae9:647 with SMTP id o21-20020a1709061b1500b008b17ae90647mr7383283ejg.76.1679517897170; Wed, 22 Mar 2023 13:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679517897; cv=none; d=google.com; s=arc-20160816; b=FkaevdQTieJgbHroeKVzNvrrI3IFzOszffKHi4JfO2YE3qH4Ovnv7zskeRU9CC81+N N4ligriqJ3GBuYDIS1QE493KAsJ5LWomfQLfrVntObk5/FQ68+TkuU/z8Q5uzomcAyxp Uwtfv3oak/mVcyubcBaC85oADEnRBiFTKgj8glTFivJc38ZSmCmw5yIY10TjTV5HUu4c yLwMBaxtFKly0Q8Gg6eg3ftnoW7K9DIfD843Z565wlYwASTIBJxTdj0WkOjd60FgYfGv 4q2Bz8X6qysWhTi5yglGHQTByzAyCCDNFw1WXiSTn6t5lNyu4k8OexdIHySYi66lSzQr C64Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=z5+SwuPswYL3502uLq6hayJyZoDC1sf3E/Ormc16ROU=; b=tawMyRbKfZbT2vVrm+Pkm5zzYPHQZscoslYsW69L/aTDF0gVGrRyMC9BGCajhLMJeX Ozfx3XIcJ+Y9X1/+r39beqn/19tboCQw/GiMo4Qk4eZErHNuDmPOrOaX8ev+v0sICLUR w8VoJcwIdkFwpP8Y0687gDmNS/Jii2LlE6FylKPOMxd8cOIBF2YCdqVvcy9cpyCyMJEu a/Sa7tRuCxcemrq+h3JHVuW5OZRxdw22pIiZMK9r5xXdFf6QLn7u8v3gN9rWq2rh/mZJ 8xW0tMti+1rm01kLIWp3/aGf0LDnDeYNuSdExEPPGEk+z9xcRp1vaWE3gX4MelriWX6+ iBvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=PIpcYJJX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020aa7c387000000b004c0e614f887si16161416edq.94.2023.03.22.13.44.32; Wed, 22 Mar 2023 13:44:57 -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=@zx2c4.com header.s=20210105 header.b=PIpcYJJX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232246AbjCVUan (ORCPT + 99 others); Wed, 22 Mar 2023 16:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjCVUa3 (ORCPT ); Wed, 22 Mar 2023 16:30:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFAE89AFCF; Wed, 22 Mar 2023 13:21:14 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 97B7A622B1; Wed, 22 Mar 2023 20:20:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D548C4339C; Wed, 22 Mar 2023 20:20:09 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="PIpcYJJX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1679516405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z5+SwuPswYL3502uLq6hayJyZoDC1sf3E/Ormc16ROU=; b=PIpcYJJX9hptjh826y5Zn1hijTEsvDVh/1kxhA5t7yY8jKbnkGW/3rbZoRKDCRTbCTys4P 3QZp7sJr5kpsH2zTiTTlMjtJqloSLUXN+PQif21I15YKfofGKoVtnBSR+AkwAO7vyKxz9L MfjhDwRthXZ3JvuQdpcHb0/LNa2VkB8= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 0ebc3581 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 22 Mar 2023 20:20:05 +0000 (UTC) Received: by mail-yb1-f176.google.com with SMTP id x198so12782054ybe.9; Wed, 22 Mar 2023 13:20:04 -0700 (PDT) X-Gm-Message-State: AAQBX9djBjCx14eZKEtWsV3hhRjPdd0gj18vCqaem6DxT20O9wZ7LhB9 4RxkkLy2BwwoWnhuzMNf1/S0bd57viisYcINlbI= X-Received: by 2002:a05:6902:1081:b0:b21:a3b8:45cd with SMTP id v1-20020a056902108100b00b21a3b845cdmr765321ybu.0.1679516401893; Wed, 22 Mar 2023 13:20:01 -0700 (PDT) MIME-Version: 1.0 References: <20230322120907.2968494-1-Jason@zx2c4.com> <20230322124631.7p67thzeblrawsqj@orel> <1884bd96-2783-4556-bc57-8b733758baff@spud> <20230322192610.sad42xau33ye5ayn@orel> <2a3b08ce-5ab1-41b6-ad58-edbeff7b1acb@spud> In-Reply-To: From: "Jason A. Donenfeld" Date: Wed, 22 Mar 2023 21:19:50 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: require alternatives framework when selecting FPU support To: Conor Dooley Cc: Andrew Jones , Jisheng Zhang , Palmer Dabbelt , Paul Walmsley , Albert Ou , Anup Patel , Atish Patra , Heiko Stuebner , Conor Dooley , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, regressions@leemhuis.info, regressions@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 On Wed, Mar 22, 2023 at 9:05=E2=80=AFPM Conor Dooley wro= te: > > On Wed, Mar 22, 2023 at 07:44:13PM +0000, Conor Dooley wrote: > > On Wed, Mar 22, 2023 at 08:26:10PM +0100, Andrew Jones wrote: > > > On Wed, Mar 22, 2023 at 03:17:13PM +0000, Conor Dooley wrote: > > > > On Wed, Mar 22, 2023 at 01:46:31PM +0100, Andrew Jones wrote: > > > > > > > (It's tempting to just select RISCV_ALTERNATIVE from RISCV, but m= aybe we > > > > > can defer that wedding a bit longer.) > > > > > > > > At that point, the config option should just go away entirely, no? > > > > > > Ah, yes, and that makes the idea even more attractive, as we could re= move > > > several ifdefs. > > > > I went and did the cursory check, it's not compatible with XIP_KERNEL s= o > > dropping the option entirely probably isn't a possibility :/ > > What I said is only now sinking in. We're now going to be disabling FPU > support on XIP kernels with this patch. > Well, technically not this patch since it wouldn't have built without > Jason's changes, but that doesn't seem like the right thing to do... I suppose you could have riscv_has_extension_*() fall back to something that doesn't use alternatives on XIP kernels.