Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp887294ybz; Wed, 22 Apr 2020 09:41:06 -0700 (PDT) X-Google-Smtp-Source: APiQypKrxHQrpfcw0Cz6jP6G94m4IMNBXnzw1V6kv6zRqHXpWoNMaZJC6O2BMzKgZE1sLgXBluR8 X-Received: by 2002:a17:906:680b:: with SMTP id k11mr26992381ejr.46.1587573665761; Wed, 22 Apr 2020 09:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587573665; cv=none; d=google.com; s=arc-20160816; b=Ci1YzUsF/YqFqvBVc4V9jeNamx6BbGsiclajBuWUmGsQOZFJ1+wPbIPle3B22JkLcq 6pOy9Lu+3IBVYG3PSBAplhfLyHZeVzidCjOxVrU3Pp+9a61Gtj0c4MCqLulexRXLQCEI 1z6+U7YdJipRTTM+253mxhzRTBV2uyU+SWDPCEluit/Tc8JSNRNdmwMKOiPKysi7OGem TrYV9uciWLuWLoF6eozcSVlheB6tmXq8oSBqK9Q2nxBImZ1DPin33UfXmyjEFnYkrIU7 VVkxq7yjLZAg6YOzyHb87W2Rzg8xKyFGaZu2CzwM+kxW1Z35Y3jbhzCdshDq1K3sqAvT HLpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cvWobKdpz5yLo5xmbq4pZI4GJbJveXVdGZHqLrOQStc=; b=SAvyWRjWuxAVDuTzh7RsmlZvlnlXNtcJ/kXd++FQGsNsBnax7ijBstO1e7Id3wUOvV tYa1FDfZ3E3ee8BCk5XQOw52DJuMiofm6qoCWugzhm9wYnCNU2sESC+Yzhv1SqC29zYT 9R/1Oj6eEUp/8wUdQlMS2A2FZMVvpAoC/yIOb77YYoWPzAe/UudxMGuBgpmfKB/OEx1m 6in0nOjqupSsr/McoMokY1dACUF8xCuxvv17X2ngsKXwwupbUfdBqvVaHnSWk95uOr9W dgItJ33iYeWFOxP++vQgYEC6OqALWtmNW+Q9CSwJOBIH9OIMOQYF9B3HJmgv1DQwzofK RFVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IDdy+xsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si3392021ejr.67.2020.04.22.09.40.37; Wed, 22 Apr 2020 09:41:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IDdy+xsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726234AbgDVQja (ORCPT + 99 others); Wed, 22 Apr 2020 12:39:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:46370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbgDVQja (ORCPT ); Wed, 22 Apr 2020 12:39:30 -0400 Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 37F3721473; Wed, 22 Apr 2020 16:39:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587573569; bh=2rmDWww6rHau1JQr0OtwOsytcBhyKnLhZgMaxwDb5pk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IDdy+xsDxWGQDq0yE5KuRWhZLri9WYXQm5wMtacNPEfeTJVbqvsyJa4Z6tIQpURno LEQLMMHaMdO9C85oQhOYCV1F+Rj4+wBrIp4m6jtOLH+0ivmx/Qk19CUqc3QXZ2N649 QA19N8U8TVbIdywAO21NstaMQ1l7XYQj8hKFMJDo= Received: by mail-il1-f178.google.com with SMTP id q10so2579104ile.0; Wed, 22 Apr 2020 09:39:29 -0700 (PDT) X-Gm-Message-State: AGi0PuY9facAuOQkNzrp1akIl0roEFnbGLQpvR0hGo0JqM6CAoSwpYMV H+P+yXoHDCuvxedRnHjDGDRl2fHnENLtuhIRvYE= X-Received: by 2002:a92:aa0f:: with SMTP id j15mr27302801ili.211.1587573568568; Wed, 22 Apr 2020 09:39:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Wed, 22 Apr 2020 18:39:17 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v4 PATCH 0/3] Add UEFI support for RISC-V To: Palmer Dabbelt Cc: Atish Patra , Linux Kernel Mailing List , linux-efi , linux-riscv , Masahiro Yamada , Heinrich Schuchardt Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Apr 2020 at 22:59, Palmer Dabbelt wrote: > > On Tue, 21 Apr 2020 00:24:04 PDT (-0700), ardb@kernel.org wrote: > > On Tue, 21 Apr 2020 at 05:34, Atish Patra wrote: > >> > >> This series adds UEFI support for RISC-V. Currently, only boot time > >> services have been added. Runtime services will be added in a separate > >> series. This series depends on some core EFI patches > >> present in current in efi-next and following other patches. > >> > >> U-Boot: Adds the boot hartid under chosen node. > >> https://lists.denx.de/pipermail/u-boot/2020-April/405726.html > >> > >> Linux kernel: 5.7-rc1 > >> > >> OpenSBI: master > >> > >> Patch 1 just moves arm-stub code to a generic code so that it can be used > >> across different architecture. > >> > >> Patch 3 adds fixmap bindings so that CONFIG_EFI can be compiled and we do not > >> have create separate config to enable boot time services. > >> As runtime services are not enabled at this time, full generic early ioremap > >> support is also not added in this series. > >> > >> Patch 4 and 5 adds the PE/COFF header and EFI stub code support for RISC-V > >> respectively. > >> > >> The patches can also be found in following git repo. > >> > >> https://github.com/atishp04/linux/tree/wip_uefi_riscv_v4 > >> > >> The patches have been verified on Qemu using bootefi command in U-Boot. > >> > >> Changes from v3->v4: > >> 1. Rebased on top of efi-next. > >> 2. Dropped patch 1 & 2 from this series as it is already queued in efi-next. > >> Changes from v2->v3: > >> 3. Improved handle_kernel_image() for RISC-V. > >> > > > > Thanks Atish. This looks nice and simple now. > > > > I will need an ack from the RISC-V maintainers on these, and it is up > > to them to consider whether the changes to core kconfigs and makefiles > > are likely to cause trouble or not. If so, I am happy to work out a > > way to merge this via a shared stable branch. > > Sorry it took me a while to get around to these, but they're essentially good > with me. There's some comments about needing ISA_C/c.li, but that's pretty > trivial. In terms of mechanics: I don't really ever understand how to do these > multi-tree merges. In an ideal world I'd like to have the arch/riscv/ stuff > stay in riscv/for-next, both because I don't want to deal with merge conflicts > and because that's where the RISC-V autobuilders look. > > The best I can come up with is to split #3 up such that drivers/firmware/efi/ > is its own patch and then send that up along with the PE header definitions > into an RC. It'd be unused code at that point, but at least it'd break the > dependency between the trees and it'll be getting tested in riscv/for-next so > it won't rot. We can ARMSTUB->GENERIC_STUB by just having the RISC-V support > select woth ARMSTUB and GENERIC_STUB, with a cleanup going in after everything > is merged. > > That said, I'm happy if there's a better way to do this... > I'll reshuffle the code a bit, and send out an updated series. If we are all happy with that, I will stick the first 2 patches on a shared tag that you can pull into your branch, and you can apply the remaining 4 patches on top of that. Are you ok with a tag based on v5.7-rc2?