From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3AADEC433EF for ; Wed, 26 Jan 2022 23:24:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8A82F8349B; Thu, 27 Jan 2022 00:24:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="Z51X5363"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77D93805F9; Wed, 26 Jan 2022 12:06:26 +0100 (CET) Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3CAD78002A for ; Wed, 26 Jan 2022 12:06:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sunilvl@ventanamicro.com Received: by mail-pf1-x42f.google.com with SMTP id e28so17894714pfj.5 for ; Wed, 26 Jan 2022 03:06:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8pkKI9Jr8kU1v5JcxYcNsyqX+/MoD514yL0sjxkRszs=; b=Z51X5363DXzstVwjQP8yeTn2GJf/U+oJql+bGwxSruFJd/itpQrMj2T3P6o1U6YnXS SmV334gV7DqUDDknjmN1Jdr9xyePt2+Us5kf9hDn2bt2C0x11CVnRpJK9rla7K7EmNvJ IGIjjdfHbx892KoGhgFr52Uof8HTQJLPcdh3fRf+gW0HyZnlWGvjTNuwR7goF/yisMKx VuM5L3npIiteEFr7Rj79a7Jwtwvqsra6qDVLRmDlbG5txEtiCNa796bR4R/HECIPcoBP j97e75pd4PSZ1ppysB0oncIZPb0lQNS12fMU9JgdXXpNxZkitpQ0u5821VMH8J+tdQak 92tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8pkKI9Jr8kU1v5JcxYcNsyqX+/MoD514yL0sjxkRszs=; b=bz6/HXfpFITgwaGTDJjgxUH36vkd7XqFpLeb2G6eBmvfRRQty+rQLYlMTAGoaKT8LS 373CIGBAnLfmG+BmeMwN/gBzibzdaB6JiEEaXeZunLIxF2IFPYMaEV6/M5b4tmJwXVwy OGD7TZGRw82U49NPp1Ky8+vyPe0288cmspFOKXOX7WuPVWLAmU3WwXiS7d55I9PbB1sI d22+AIlnGRw4DryjO5K/BpNHMIzusZCBheXTpAmqPxAEUK1c4xPaOxCziacZmiEybaBX auUcK+HbBzmmJDWDzDpY5zbhEWQRg40gTXddsGgJWNK5l8Ktcr3vaVsPNnMjvW8VLAea XKsA== X-Gm-Message-State: AOAM531WEoYjCN336fwN44fV9mLCAPIxOzH+NytQODCUmIzoB44KlnUA R6qQrziP9EeNiXVsaS31N/EYAQ== X-Google-Smtp-Source: ABdhPJyzG3aeRWmULmTaWenxIk2HL00XaRQBy3SRr5PVgIGkDZaTL61uklnyeFK8OM/ZWalKxsPBPQ== X-Received: by 2002:a63:7e0a:: with SMTP id z10mr18449157pgc.567.1643195181532; Wed, 26 Jan 2022 03:06:21 -0800 (PST) Received: from sunil-ThinkPad-T490.dc1.ventanamicro.com ([49.206.3.187]) by smtp.gmail.com with ESMTPSA id u16sm1871866pfg.192.2022.01.26.03.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 03:06:21 -0800 (PST) From: Sunil V L To: Heinrich Schuchardt Cc: u-boot@lists.denx.de, Ard Biesheuvel , Anup Patel , Atish Patra , Abner Chang , Jessica Clarke , Sunil V L Subject: [RFC PATCH 0/1] RISCV_EFI_BOOT_PROTOCOL support in U-boot Date: Wed, 26 Jan 2022 16:36:10 +0530 Message-Id: <20220126110611.33325-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 27 Jan 2022 00:24:06 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This patch adds the support in u-boot for new RISCV_EFI_BOOT_PROTOCOL for RISC-V UEFI platforms. This protocol is required to communicate the boot hart ID to the bootloader/kernel which need to follow the EFI calling conventions. The latest draft spec of this new protocol is available at https://github.com/riscv-non-isa/riscv-uefi/releases/download/1.0-rc2/RISCV_UEFI_PROTOCOL-spec.pdf This u-boot patch can be found in: riscv_boot_protocol_rfc_v1 branch at https://github.com/vlsunil/u-boot.git This patch is tested in qemu. To fully test the feature, we need Linux changes which consume this protocol. The linux patch can be found in: riscv_boot_protocol_rfc_v1 branch at https://github.com/vlsunil/linux.git Sunil V L (1): efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support include/efi_api.h | 4 +++ include/efi_loader.h | 2 ++ include/efi_riscv.h | 16 +++++++++ lib/efi_loader/Kconfig | 7 ++++ lib/efi_loader/Makefile | 1 + lib/efi_loader/efi_riscv.c | 69 ++++++++++++++++++++++++++++++++++++++ lib/efi_loader/efi_setup.c | 6 ++++ 7 files changed, 105 insertions(+) create mode 100644 include/efi_riscv.h create mode 100644 lib/efi_loader/efi_riscv.c -- 2.25.1