Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4630382rdb; Tue, 12 Dec 2023 05:17:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbGnzV6DhA50v8Hf6ymC8e4DbtQy87uMpxLObo7iH1szIo1v+yjp1zplSvo5t6nAx2UWlE X-Received: by 2002:a05:6a00:844:b0:6ce:4ed9:bd21 with SMTP id q4-20020a056a00084400b006ce4ed9bd21mr3664506pfk.9.1702387065782; Tue, 12 Dec 2023 05:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702387065; cv=none; d=google.com; s=arc-20160816; b=f9lsmcO4rQkhauElvV5nDhlGJTClXq8dECCQT9HYSvVE4g2g7AK5Ope98Jj0GvpdSY vLkTpynMptg83/5BcAZBiTxg/5zJy1sK9byRo4c7tDpeFlECi64Yf7RH66F6Xuw6I+HN SJk+niekBYPy2J7J6aw6l5FJWKK70CpCnOcaqhCUjeIrtX7TdlZSdXhhA9pXLx6b7Ymp 7YC0aRL56JT24oRs6zP/NtBh80MUjviCELFRBUhtxA6JWwNHLGFDi0vioGmB3QPSYX9n IQ9WBPlSOxVbrANaDigMNt2rqdiGbPB7ZXEBQv+7xLxWrR53DbEXrwdYYDyvvrC9zDFl Q92Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=NfwJX8jdFkXQS6TY8YQ+mO9O6uB2ELGayDESZnMSE+c=; fh=PDcpEji2UoQq3JRLSZorYyCKodHPADNcChO5C6bXaPM=; b=W4ZyRGW8aBdcvG46cZrySJcXHJvmmXsxY5Hn41Hdfd1Rx0Aa3RpUHqfM+kZmPDWe+4 VgU3ifZedMC3LPLGzEIBrL5tpmIOOBXst7J/1GJ1zzWEj4pCtGCrMD3K6d74s7gaPZzV unymQxFFKVV+XAaF/oUxKkm+XA7faJvpciPwtuO5NaW1aGO1vE/Q+yoY98/c6EEWueiu dHvi/PdrU4TaD6ZzZwSlUL8mHzouz3ZKfxAyp4Q2PQA+QJ+RzInoMXO3RbX/cHYpbJ/J bBrR1oTxlBT4DC4F/VINgyQEK8aNVKvUHkZ2oP/UCSa1UIuEXk54Rxpi0ws2mIvix3g4 y5Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fzi.de Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e20-20020a62aa14000000b006cef6a69f9esi5275006pff.320.2023.12.12.05.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 05:17:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fzi.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 58BD28056996; Tue, 12 Dec 2023 05:17:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376638AbjLLNRW (ORCPT + 99 others); Tue, 12 Dec 2023 08:17:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376616AbjLLNRS (ORCPT ); Tue, 12 Dec 2023 08:17:18 -0500 Received: from fzi-msx-e-02.fzi.de (fzi-msx-e-02.fzi.de [141.21.8.250]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE2A710D for ; Tue, 12 Dec 2023 05:17:18 -0800 (PST) From: Frederik Haxel CC: Vitaly Wool , Frederik Haxel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andy Chiu , Heiko Stuebner , Greentime Hu , Conor Dooley , "Sami Tolvanen" , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Nam Cao , Guo Ren , Alexandre Ghiti , Andrew Jones , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Baoquan He , Chen Jiahao , , Subject: [PATCH 2/3] riscv: Fixed wrong register in XIP_FIXUP_FLASH_OFFSET macro Date: Tue, 12 Dec 2023 14:01:13 +0100 Message-ID: <20231212130116.848530-3-haxel@fzi.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231212130116.848530-1-haxel@fzi.de> References: <20231212130116.848530-1-haxel@fzi.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [141.21.46.139] X-ClientProxiedBy: fzi-msx-05.fzi.de (2001:67c:2acc:8:141:21:17:45) To fzi-msx-05.fzi.de (2001:67c:2acc:8:141:21:17:45) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 groat.vger.email To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Dec 2023 05:17:39 -0800 (PST) During the refactoring, a bug was introduced in the rarly used XIP_FIXUP_FLASH_OFFSET macro. Fixes: bee7fbc38579 ("RISC-V CPU Idle Support") Fixes: e7681beba992 ("RISC-V: Split out the XIP fixups into their own file") Signed-off-by: Frederik Haxel --- arch/riscv/include/asm/xip_fixup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/xip_fixup.h b/arch/riscv/include/asm/xip_fixup.h index d4ffc3c37649..b65bf6306f69 100644 --- a/arch/riscv/include/asm/xip_fixup.h +++ b/arch/riscv/include/asm/xip_fixup.h @@ -13,7 +13,7 @@ add \reg, \reg, t0 .endm .macro XIP_FIXUP_FLASH_OFFSET reg - la t1, __data_loc + la t0, __data_loc REG_L t1, _xip_phys_offset sub \reg, \reg, t1 add \reg, \reg, t0 -- 2.34.1