Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4630204rdb; Tue, 12 Dec 2023 05:17:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGmWXBfM5TDjkuqrAHFcNbChxwwiedCeh87YqP7sqOaU42+vn8yC27bZjbFxNVCALgQNjI X-Received: by 2002:a17:902:eb8c:b0:1d3:3e61:eec6 with SMTP id q12-20020a170902eb8c00b001d33e61eec6mr771782plg.18.1702387050076; Tue, 12 Dec 2023 05:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702387050; cv=none; d=google.com; s=arc-20160816; b=DygAQcqxBuGJHX1LTR2VNKP5HdpUtmR5GFfOuvpGXVftxS7JEKH3eqeG1PlnUu4lWc J0CeQDsgXQDP+3qcnQrfKEhpwrM8t/9R44TT0qRBZjSZmgPMN49z1/b6OJG8a8EZVFd0 DUMN+5J9QYQ6C/CCrmiRPtif/l2gWSZkH1cixmSg7k5ekm6IF80gB3GqfwvnzFEkM3Dx CjdpzPL0Xj6Lrh/k+y63B2ki3rD5JgBx2wSVyQCZDLxjU2oSSe9UWbSsZsEyGVOynLU7 z4xF6P74qVHdpicGYeqHs1lMKFyzHixU+qaMLF7W05+cTo6JP/SJsHcRXNb3uyeab71L Yycw== 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 :message-id:date:subject:cc:from; bh=xKOOa9Z2zKZydFsPNSme0sixitNtYnrVY+/ZaKbH8ks=; fh=Udk3qTjdwhCxvqCMu7dMN0ASaME9Dj9jVjC7kP3eyGk=; b=p1oW6+7beHFNt/frQZTbG5+IZsEw1M+aYZVaco4KHJ54RpkFZpxaLNS1tMqYgSANqH xAwalauFfke0iL9g2XB4xvNdKFizoffhaXBeRWXNoVWIPQk4ccwhH5hY/aI+Wh2OvYAn 1k0YtgA+TGqvk4AZUD788Az0DMl82EsPWCWrh1ViMAQcagBsq4SDQx7hCEsHjgOv8lqq JfG1Hg9ldUkp5te0MLL7wYn4owRRJiwMKhtvJmoiLN5TiuZOQyr+TjQiKCD+4zxU2arr nhxdMfokW8SnVHugnX9iDqnkPZtV1HWhFM6PnQO5YhX3rJfNfuMCebakdqw7gmleXMaH B1aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id z3-20020a1709028f8300b001d0b2230dbfsi7609724plo.266.2023.12.12.05.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 05:17:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 643518027A4C; Tue, 12 Dec 2023 05:17:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376605AbjLLNRJ (ORCPT + 99 others); Tue, 12 Dec 2023 08:17:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376610AbjLLNRH (ORCPT ); Tue, 12 Dec 2023 08:17:07 -0500 X-Greylist: delayed 902 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 12 Dec 2023 05:17:12 PST Received: from fzi-msx-e-01.fzi.de (fzi-msx-e-01.fzi.de [141.21.8.251]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B864109 for ; Tue, 12 Dec 2023 05:17:12 -0800 (PST) From: Frederik Haxel CC: Vitaly Wool , Frederik Haxel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Greentime Hu , Andy Chiu , Heiko Stuebner , Conor Dooley , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Sami Tolvanen , Masahiro Yamada , Guo Ren , Nam Cao , Alexandre Ghiti , Andrew Morton , "Anup Patel" , Baoquan He , Chen Jiahao , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , , Subject: [PATCH 0/3] Fix XIP boot and make XIP testable in QEMU Date: Tue, 12 Dec 2023 14:01:11 +0100 Message-ID: <20231212130116.848530-1-haxel@fzi.de> X-Mailer: git-send-email 2.34.1 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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 05:17:27 -0800 (PST) XIP boot seems to be broken for some time now. A likely reason why no one seems to have noticed this is that XIP is more difficult to test, as it is currently not easily testable with QEMU. These patches fix the XIP boot and allow an XIP build without BUILTIN_DTB, which in turn makes it easier to test an image with the QEMU virt machine. Frederik Haxel (3): riscv: Make XIP bootable again riscv: Fixed wrong register in XIP_FIXUP_FLASH_OFFSET macro riscv: Allow disabling of BUILTIN_DTB for XIP arch/riscv/Kconfig | 6 +++--- arch/riscv/include/asm/xip_fixup.h | 2 +- arch/riscv/kernel/head.S | 5 ++++- arch/riscv/mm/init.c | 8 ++++++-- 4 files changed, 14 insertions(+), 7 deletions(-) -- 2.34.1