Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1340990rwb; Thu, 6 Oct 2022 11:34:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xIMPTttfpjHFenx83kc+pUGlZCT/X3Q49XEXRhlzNhDcjpgDQj9mois7PvRADc2oba2Ra X-Received: by 2002:a17:90b:2395:b0:20a:ddd6:d4f2 with SMTP id mr21-20020a17090b239500b0020addd6d4f2mr1088886pjb.158.1665081258684; Thu, 06 Oct 2022 11:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665081258; cv=none; d=google.com; s=arc-20160816; b=rb+YezIz95kdqlItHuK0v7Za40uVA1ijZcyRuz/vDUuig+J8eTqhrTdrynfzE3fEMX 3x6zvyIVzq5klu8SKrqOrlX0sKD2rIat1DVaWmkpZ58PdSPNKllZGr6zv+HRtwvaQrN2 IsC5qnM/gBZogGaaQDo/iWXpfFLfTqFJm1MBb6sPfQG1x6s0PUqnm1jvtgfQbDswhFY1 8Y29ZdihTYjEB3X6fNMqp08zpR4hQ9bRXKIk7KUYErDpZdJ/tG1SJXB0O2YfuljUsw/S dmN9EJAH8qEme8vrvXuOOBZupS9DLC12qj0mL7HZx0GC+wcMi7er8lkPUKtp2vJmjWEJ TwiA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Tr99s5pwpun0KMY+7IxtJIvuTnQFWuWZgy9r6+syFCo=; b=wqOgkXRCPw0Pk8afefWJARf2BYxL064/328Vr/vrZwXXm6s72KZUZvVaxcrRY8K8mT yV6FTyN7sbGpqHA9HaNPXHVVphTOiJdkbULy4lTrN5Y7/AdTIoWK0EziqCSqHhxOnv3l w4ZTnUyb+ALp/wCJyHyJZoYId9W91ThuyKv2COdfIBJVQqpWg9XF2HsvAc+2vetTO6Xa rH0eCiJC8laNq54VoxePsCpf3eo8tLlK5uoBPaKJuIH0KvzDy+ikpQAtls6okzRXrsxn sSdQximAg8841QzgYQGPwyFETNC6a1c7NOtWvDKfBcblCekNCA+jvC+Gjs55gTDNKNww e8fA== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a170902f69100b001768b832a41si9974430plg.584.2022.10.06.11.33.47; Thu, 06 Oct 2022 11:34:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231552AbiJFSHZ (ORCPT + 99 others); Thu, 6 Oct 2022 14:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230503AbiJFSHX (ORCPT ); Thu, 6 Oct 2022 14:07:23 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F68CFF235 for ; Thu, 6 Oct 2022 11:07:20 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ogVH2-0001pm-1s; Thu, 06 Oct 2022 20:07:08 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Palmer Dabbelt , Nathan Chancellor , Nick Desaulniers , Conor Dooley Cc: Tom Rix , Conor Dooley , Dao Lu , Guo Ren , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH 2/2] riscv: fix detection of toolchain Zihintpause support Date: Thu, 06 Oct 2022 20:07:07 +0200 Message-ID: <2599561.BddDVKsqQX@diego> In-Reply-To: <20221006173520.1785507-3-conor@kernel.org> References: <20221006173520.1785507-1-conor@kernel.org> <20221006173520.1785507-3-conor@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR 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 Am Donnerstag, 6. Oktober 2022, 19:35:21 CEST schrieb Conor Dooley: > From: Conor Dooley > > It is not sufficient to check if a toolchain supports a particular > extension without checking if the linker supports that extension > too. For example, Clang 15 supports Zihintpause but GNU bintutils > 2.35.2 does not, leading build errors like so: > > riscv64-linux-gnu-ld: -march=rv64i2p0_m2p0_a2p0_c2p0_zihintpause2p0: Invalid or unknown z ISA extension: 'zihintpause' > > Add a TOOLCHAIN_HAS_ZIHINTPAUSE which checks if each of the compiler, > assembler and linker support the extension. Replace the ifdef in the > vdso with one depending on this new symbol. > > Fixes: 8eb060e10185 ("arch/riscv: add Zihintpause support") > Signed-off-by: Conor Dooley Reviewed-by: Heiko Stuebner