Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6289666rwr; Tue, 9 May 2023 13:00:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ljU+kFkzkvR/U8bagmOn35V+leQKJ5pNYlRvAm4VdPUdzs2MPJOAnn4orqBupg3VmQM5l X-Received: by 2002:a05:6a00:1596:b0:643:8610:1023 with SMTP id u22-20020a056a00159600b0064386101023mr20917486pfk.17.1683662454741; Tue, 09 May 2023 13:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683662454; cv=none; d=google.com; s=arc-20160816; b=mmuSEK914/tO5/NYnpBFXM7tGJn1OJJEne/oDHUJ81vk3OLpIV72pnhYOe1QqKTozM 1SAsj2/WZ4cNMykMS39lv4Zi6qwRmexxp5Sxg1XcTzNtCn2sntCGokjC8OWtP0jy4VlN HGbQCpK5qSvzX+xl11lLKqgHIQrTWmzxnbrXGTdn2HgzUCiE+TSSgdFptM2MMY1kCdbs Kg8o0dF1gFm8VCj/f4BSa1hn2l8ibc/QAK17WEBtnhZL9Gr8FxEdnU4FGZLQYhTMXkzZ vAt2l3g00bEr0U74i/2KsT7UN+JHPl6hDE8q5jKFyaM6Woa0K/Vddsl/1oFeM9Vl56/l iKyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=xVDPpQYBPGiLM3lIyZq8RkIRb9iuB9JTOLheniI/nCI=; b=v7NBaqT9NfBJxzhlWufH2iPOPog5oWB+pqwb7KZSgEIvWmgSm90TjGJSmpOYy7cB4/ LLmdeTot5THxYSntG7Bbv3qLgcIqbhDvHmsjTVNN1ThouCXMLqF4wZVNfgl82rfRZpPG pANLGcLlYLx0HXLW6lml63B0gnmh7T5XvLwgw0kLu6TuFJrKQji7/xSMRhWMR6eR703p FsNN2My+3+5fXKT3IjSyEhTlYJx2ZoerM9xV1RFVmOsiQAmjtI2z5cSZDD3Rh/k8NYFs EwMBmXz0qFkpJjEo/9RKEQMBGF63kLJjZr+WjHiyF9nFGvRYBw/6plINAP9eK4Vu8Zfh POiQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t185-20020a6381c2000000b00524eef20da6si2162472pgd.642.2023.05.09.13.00.39; Tue, 09 May 2023 13:00:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230310AbjEIT4A (ORCPT + 99 others); Tue, 9 May 2023 15:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjEITz7 (ORCPT ); Tue, 9 May 2023 15:55:59 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE9F3AA4 for ; Tue, 9 May 2023 12:55:58 -0700 (PDT) Received: (Authenticated sender: alex@ghiti.fr) by mail.gandi.net (Postfix) with ESMTPSA id 70DFB60005; Tue, 9 May 2023 19:55:53 +0000 (UTC) Message-ID: <4adb27d2-325d-3ce0-23b1-ec69a973b4bf@ghiti.fr> Date: Tue, 9 May 2023 21:55:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v8 1/3] riscv: Introduce CONFIG_RELOCATABLE Content-Language: en-US To: Andreas Schwab , Alexandre Ghiti Cc: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <20230215143626.453491-1-alexghiti@rivosinc.com> <20230215143626.453491-2-alexghiti@rivosinc.com> <87wn1h5nne.fsf@igel.home> From: Alexandre Ghiti In-Reply-To: <87wn1h5nne.fsf@igel.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 5/9/23 21:07, Andreas Schwab wrote: > That does not work with UEFI booting: > > Loading Linux 6.4.0-rc1-1.g668187d-default ... > Loading initial ramdisk ... > Unhandled exception: Instruction access fault > EPC: ffffffff80016d56 RA: 000000008020334e TVAL: 0000007f80016d56 > EPC: ffffffff002d1d56 RA: 00000000004be34e reloc adjusted > Unhandled exception: Load access fault > EPC: 00000000fff462d4 RA: 00000000fff462d0 TVAL: ffffffff80016d56 > EPC: 00000000802012d4 RA: 00000000802012d0 reloc adjusted > > Code: c825 8e0d 05b3 40b4 d0ef 0636 7493 ffe4 (d783 0004) > UEFI image [0x00000000fe65e000:0x00000000fe6e3fff] '/efi\boot\bootriscv64.efi' > UEFI image [0x00000000daa82000:0x00000000dcc2afff] > I need more details please, as I have a UEFI bootflow and it works great (KASLR is based on a relocatable kernel and works fine in UEFI too). Thanks, Alex