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 X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0629EC433EF for ; Tue, 7 Sep 2021 15:26:30 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 721FF60C3E for ; Tue, 7 Sep 2021 15:26:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 721FF60C3E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:47156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNczU-0007M5-Kx for qemu-devel@archiver.kernel.org; Tue, 07 Sep 2021 11:26:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNcwh-0003B7-B5 for qemu-devel@nongnu.org; Tue, 07 Sep 2021 11:23:37 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:35345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNcwe-0008Hw-MS for qemu-devel@nongnu.org; Tue, 07 Sep 2021 11:23:35 -0400 Received: by mail-wr1-x430.google.com with SMTP id i28so3785295wrb.2 for ; Tue, 07 Sep 2021 08:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xjozTuRI+B8ZpWfwKIFoZg4RP89Sc+j7Y6/a7eL6uc0=; b=vFBpabDOkpyETIqUXEiVGIHiIMqzbVs8IzaBMo4L5ToIdK3miOrQgtgutzLBGq4qXh FgO87oOOfYc88dnCWI8Z603tB25rzJz6jF3/QgjeClW/wO+gxZqbg4iU4mX6HZ+wctON +Z7zUUy0ikjCnUOSSTL/H7vrMuNt3VcdKURlgzz6rTmXtVFQP2MC/rF4x+HlH99nOPGZ fMPQpgTNP0W4PEXB8IJqoogWWcdYZpQPg/os+WoLZhh9umnDb2eOt9DP0OaLG6afMYLv 5diM2EKHRZg1lht2Winuu/tdxINrZ1/zKvD2H6o3sNbSDLJYzA1vn2nq+I8/tfXrI2tn Uz1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xjozTuRI+B8ZpWfwKIFoZg4RP89Sc+j7Y6/a7eL6uc0=; b=TJFz8BU+VVN/9V6Xtog8FxO9xYEqKfsGicN52ifL5gMgV7l/P5Bf311QzZK9i1UM4M Xmnqo0YDt1oI+CPtvgflcLprufh4dOmT17eNhyhsCMUsjYPZjGH+IurZi3b4ZWp+vWYH 95iQp03UnRhuJD742w6MdX3JzT9cxLT2w+6A+y1yWP5E48xT4ChcJV2YknaPsuNRDJ4v oGcyXf09vN/yIIA5ugI/I71GvR3ZhTiZK7JnbYfAHP+KiBiUgM3o0asmXsl0hfwCwZza 3LfZ5EY43J3QxUTQKMOsVVABEhk7REhOr5p4BSii2rNQ7bFkcOuyzJd4BFNFhhxBD9TR fSDw== X-Gm-Message-State: AOAM533jvpWfKp0c/yLriTTOBkHbdaqdqg/4GlJYSbypW1V6SyNEbAnt k9aGj6wamdE1WX2vBZqH/I2eQUEwVS+fHK0I5zP/Cg== X-Google-Smtp-Source: ABdhPJzbOd1q18f1i5scNPITP9gTjhsGPhgizn2L32W+ZtUwvVZOG48wr4UGcxtJPQ+awIfyhgoy3UP9gYYwb6nCCrs= X-Received: by 2002:a5d:4647:: with SMTP id j7mr19685402wrs.149.1631028211149; Tue, 07 Sep 2021 08:23:31 -0700 (PDT) MIME-Version: 1.0 References: <20210823174924.201669-1-tong.ho@xilinx.com> <20210823174924.201669-10-tong.ho@xilinx.com> In-Reply-To: <20210823174924.201669-10-tong.ho@xilinx.com> From: Peter Maydell Date: Tue, 7 Sep 2021 16:22:42 +0100 Message-ID: Subject: Re: [PATCH v2 9/9] docs/system/arm: xlnx-versal-virt: BBRAM and eFUSE Usage To: Tong Ho Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_QUOTING=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Edgar E. Iglesias" , qemu-arm , QEMU Developers , Alistair Francis Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon, 23 Aug 2021 at 18:49, Tong Ho wrote: > > Add BBRAM and eFUSE usage to the Xilinx Versal Virt board > document. > > Signed-off-by: Tong Ho > --- > docs/system/arm/xlnx-versal-virt.rst | 49 ++++++++++++++++++++++++++++ > 1 file changed, 49 insertions(+) > > diff --git a/docs/system/arm/xlnx-versal-virt.rst b/docs/system/arm/xlnx-versal-virt.rst > index 27f73500d9..84afac3734 100644 > --- a/docs/system/arm/xlnx-versal-virt.rst > +++ b/docs/system/arm/xlnx-versal-virt.rst > @@ -32,6 +32,8 @@ Implemented devices: > - OCM (256KB of On Chip Memory) > - XRAM (4MB of on chip Accelerator RAM) > - DDR memory > +- BBRAM (36 bytes of Battery-backed RAM) > +- eFUSE (3072 bytes of one-time field-programmable bit array) > > QEMU does not yet model any other devices, including the PL and the AI Engine. > > @@ -175,3 +177,50 @@ Run the following at the U-Boot prompt: > fdt set /chosen/dom0 reg <0x00000000 0x40000000 0x0 0x03100000> > booti 30000000 - 20000000 > > +BBRAM File Backend > +"""""""""""""""""" > +BBRAM can have an optional file backend, which must a seekable "must be" > +binary file with a size of 36 bytes or larger. A file with all > +binary 0s is a 'blank'. > + > +To add a file-backend for the BBRAM: > + > +.. code-block:: bash > + > + -drive if=pflash,index=0,file=versal-bbram.bin,format=raw > + > +To use a different index value, N, from default of 0, add: > + > +.. code-block:: bash > + > + -global xlnx,bbram-ctrl.drive-index=N > + > +eFUSE File Backend > +"""""""""""""""""" > +eFUSE can have an optional file backend, which must a seekable "must be" > +binary file with a size of 3072 bytes or larger. A file with all > +binary 0s is a 'blank'. > + > +To add a file-backend for the eFUSE: > + > +.. code-block:: bash > + > + -drive if=pflash,index=1,file=versal-efuse.bin,format=raw > + > +To use a different index value, N, from default of 1, add: > + > +.. code-block:: bash > + > + -global xlnx,efuse.drive-index=N > + > +.. warning:: > + In actual physical Versal, BBRAM and eFUSE contain sensitive data. > + The QEMU device models do **not** encrypt nor obfuscate any data > + when holding them in models' memory or when writing them to their > + file backends. > + > + Thus, a file backend should be used with caution, and 'format=luks' > + is highly recommended (albeit with usage complexity). > + > + Better yet, do not use actual product data when running guest image > + on this Xilinx Versal Virt board. | Stray '|' at the end of the line. -- PMM