Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10186710rwl; Wed, 11 Jan 2023 16:05:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXv9+Q3dw/5lXYwtZZ5z+ENgn6AiDq79K9U65Q7QZXQRH76TB1M55GOFXlz/5YshWmazuo/W X-Received: by 2002:a17:907:86a6:b0:7c0:fd1a:79f0 with SMTP id qa38-20020a17090786a600b007c0fd1a79f0mr88599835ejc.21.1673481925527; Wed, 11 Jan 2023 16:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673481925; cv=none; d=google.com; s=arc-20160816; b=jmNgoVcjEPWH91oxRwMM//MfEbHtRTC5YhcdF0WtfcC6M3zdgaVquX92JwIo/+0jHP QnP53d+e4NySEfyLC4KprTmI4uafMlYBJ13CqzU1l+Da1AF/pL1UdU0g3s+ND98ohaIK FaNaqu6U0JRwiD4nPv3akOw4tCBYu24cwVOe2eJVSuedTj+b872+M6Rv3UKtIulzeJPM Mt9zCv2MQY2Hbty5sfrPgI2qzH2TS2OviFxBaHR105PmRzxn6vIFiA2vh1O97I2RmsZp cMwoV8f0FK0bL3/kFQFDLGBbW+4MdCUkc70zN9BxnzBQBCXOopjA7r73mKMvHjOb//cA 5SVA== 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=ucDoA/NyYSnqscH4JBANTyYQ2XLAIkxxFeYMzWRRAaw=; b=ffAzwF1kUXYJ6cbVPZYRZSinJfE8iX/1ZNDQ1XAcG5hCZsWRq/8tk7xf8+KK+jsmTU 0GufLl3nd2X9i6zhZbc3hASWoNNkuqIiuBPpWufVcZ9541vna6/T5uRyRNh1H4dvcrtb j/crnACCFTvSijUBcSeXSiJKbO492zqKbHdtE36wYLCJ4dcEGbIFItDVrAovEDE26IOS 3lYFElhyAoM0mu9XSRk03EiFVM9tDHjbLUSe9GstkIxCk/qC0TXBko6uGE15Nfo7yEfY Bh8zSe6OgdWvrMVgpE9ZxG28WE890iPQpDFci1UA5O9qA/p8Ej+T5uEDohqxn8G6Mrzn P95A== 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 u3-20020a170906654300b007c19a5b7697si3125699ejn.233.2023.01.11.16.05.13; Wed, 11 Jan 2023 16:05:25 -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; 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 S235511AbjAKXcJ (ORCPT + 50 others); Wed, 11 Jan 2023 18:32:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231620AbjAKXcF (ORCPT ); Wed, 11 Jan 2023 18:32:05 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97BEF3590F; Wed, 11 Jan 2023 15:32:03 -0800 (PST) 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 1pFkZb-0001Ac-W2; Thu, 12 Jan 2023 00:32:00 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Jisheng Zhang Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Subject: Re: [PATCH v3 01/13] riscv: fix jal offsets in patched alternatives Date: Thu, 12 Jan 2023 00:31:59 +0100 Message-ID: <3268358.687JKscXgg@diego> In-Reply-To: <20230111171027.2392-2-jszhang@kernel.org> References: <20230111171027.2392-1-jszhang@kernel.org> <20230111171027.2392-2-jszhang@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 Mittwoch, 11. Januar 2023, 18:10:15 CET schrieb Jisheng Zhang: > Alternatives live in a different section, so offsets used by jal > instruction will point to wrong locations after the patch got applied. > > Similar to arm64, adjust the location to consider that offset. > > Co-developed-by: Heiko Stuebner > Signed-off-by: Heiko Stuebner > Signed-off-by: Jisheng Zhang looks good, thanks for fixing the issues Andrew and Conor pointed out in the variant in my zbb series. I've now switched over to this one. I guess as you said, we really should separate this out into a single patch [or if Palmer is fine with that, just pick this one patch to apply until the rest is ready] Heiko