Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp143521rwl; Thu, 23 Mar 2023 13:56:53 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIK4TaZH02Q+3T6KSBeLCfPpCxgDFfQ1leQPjft8POR8IuPEDQJfkjYgfefjRsr+w8s/AG X-Received: by 2002:a17:902:da82:b0:1a1:a996:feb3 with SMTP id j2-20020a170902da8200b001a1a996feb3mr267182plx.26.1679605013218; Thu, 23 Mar 2023 13:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679605013; cv=none; d=google.com; s=arc-20160816; b=cUId2nKzt/kH0H+NdjqDePchTlo6o2BjRpVz1Suf6JrWeozMTOZSuIT4uu4oIHBHUC KhI71Tc7tr8njTUrC/sPT+qb3rb+dmWyvn0aJkcBZQuKpz9XS6iuHGLYJ3cy3kCwhEKY qYa5tep0bviYJ+jBTEM3KwSgJCdLXNhzFag/e9VltYkupTpqnNY2tZVeJKTbgbNGSySc eDVMLdh32Q7JojyJq+Eux/ba8fzw3y4YGUg886P4L7ZhEs/jZm9hg/066n0/x8dTGJWu XXjYrbyPiM4r0AfRa5ojE0FWzKXbqSwlUm4wYZfZ0QOJ/hlwtOuh34XPC0ARlzJnZpHt nAVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:date:message-id:subject:references:in-reply-to :dkim-signature; bh=M1Uul858JFOc4slgtlzEor7kzW5IkLa0my4yRuVlvyQ=; b=z/arL5hby6NmomEVAfG0g3hTsO9G/LGqfSF1k0usAOJ4w75ah/HjiBB/V2Of6KBGah yv5Oj7ZYTe1h6hdn/q0HAl+p/0wKhWLLwyAwXRTsUNNMsmU4QGX5n5cCLFe//WlxfWPt DB/QVLdAdTLAVFzDmOVztSoRmChcyxF4FuvonRQKO8CDFa5QqPeE5mAeAOm9gSUv2WQI L4E/kUa/oV2Sf3HgbWjwOoBra6vlbHfYmclhRoJw81RjLUKB+AHFHK9wLVOKKcNRVdh4 NDJu4MVKWACBi/Ra6BogHIP+6NQBl5KCMHi9Cdze22TyUVVJnhIji+tkAq+BC55sXPT4 lG+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=ZCCwxjID; 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 b27-20020a630c1b000000b0050bcfe66805si18724824pgl.240.2023.03.23.13.56.39; Thu, 23 Mar 2023 13:56:53 -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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=ZCCwxjID; 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 S231135AbjCWUt7 (ORCPT + 99 others); Thu, 23 Mar 2023 16:49:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjCWUt6 (ORCPT ); Thu, 23 Mar 2023 16:49:58 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B9978E for ; Thu, 23 Mar 2023 13:49:57 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso3314343pjb.2 for ; Thu, 23 Mar 2023 13:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1679604597; h=to:from:cc:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:from:to:cc:subject:date:message-id :reply-to; bh=M1Uul858JFOc4slgtlzEor7kzW5IkLa0my4yRuVlvyQ=; b=ZCCwxjIDJyAzWKJ4Dm7q8drS9iIvM0hjIlFZuu891sZNYdObjxpAQMuckoUN5NAbod YfsEbbaDONhPM7Gqjse5lp2T7AWHg/UwjE0efOKZ4M7QsxrkVdTLfGl+nkQQ24U00u7b AhurTzPzIu3NZmfHmSWY4/Lmk6XJR0rEqc1iG0IwRBBoYzIIv0bSfHVeo9kRvaHE2r35 WwHqt2/1RqKrwGMlkg1jn2UTCxtk2tgjsliotC+l2fhl9KYskZlkSf4gmIvuROsrdi+6 XJGvqHr0+DRJST5E/4OLo1B3GMd6YPsqe31xigKppOA4tAqZcwQo6K5v34F/DmvscknR zJWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679604597; h=to:from:cc:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M1Uul858JFOc4slgtlzEor7kzW5IkLa0my4yRuVlvyQ=; b=Gk8I/49rAfkAUu3mnQeHr4oMy6urE25U6TgKlhJMgmwcSjtvKN9Wi2HnG4n+42GqnL CpEtwTcM9ShHuPgYXITC14MbRdR77Sl9Hur8NOdfb7/+cSkJYu3AKGBMmLextkjrhI8e pW2gpJloP4rYOH/v14E9Mi+BkSJoGcbkTAytK3R0dBjqn+2Ff0UN8k91QwNgNiHmTQ5H l8twzbUgFRrn5WdHFmePYHwBKcKYAH7eleEw/8ES8aYsfc090jCxGuyq2io5xI8jE53D WEuLSz8VtvuM4wOEXbccwY0mStNjVMYYP/R6WL+LelAUHmG+HLUejFATPJ2Ok/p37+XG fTXg== X-Gm-Message-State: AAQBX9dTWRLNPFV5hi+Khy3WkUad2ey1aUG9qlFC99vTLEHFN6iK+2hY cyIKcBeAiznotm9JIZqF1zkiUw== X-Received: by 2002:a17:90b:4d81:b0:23b:3422:e78a with SMTP id oj1-20020a17090b4d8100b0023b3422e78amr372422pjb.6.1679604597027; Thu, 23 Mar 2023 13:49:57 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id q18-20020a170902789200b00185402cfedesm12757133pll.246.2023.03.23.13.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 13:49:56 -0700 (PDT) In-Reply-To: <20230313-riscv-zicsr-zifencei-fiasco-v1-1-dd1b7840a551@kernel.org> References: <20230313-riscv-zicsr-zifencei-fiasco-v1-1-dd1b7840a551@kernel.org> Subject: Re: [PATCH] riscv: Handle zicsr/zifencei issues between clang and binutils Message-Id: <167960451913.18089.10045388605224266027.b4-ty@rivosinc.com> Date: Thu, 23 Mar 2023 13:48:39 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-901c5 Cc: ndesaulniers@google.com, trix@redhat.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, stable@vger.kernel.org From: Palmer Dabbelt To: Paul Walmsley , Palmer Dabbelt , aou@eecs.berkeley.edu, Conor Dooley , Nathan Chancellor X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Mon, 13 Mar 2023 16:00:23 -0700, Nathan Chancellor wrote: > There are two related issues that appear in certain combinations with > clang and GNU binutils. > > The first occurs when a version of clang that supports zicsr or zifencei > via '-march=' [1] (i.e, >= 17.x) is used in combination with a version > of GNU binutils that do not recognize zicsr and zifencei in the > '-march=' value (i.e., < 2.36): > > [...] Applied, thanks! [1/1] riscv: Handle zicsr/zifencei issues between clang and binutils https://git.kernel.org/palmer/c/e89c2e815e76 Best regards, -- Palmer Dabbelt