From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fb.mail.gandi.net (spool8.mail.gandi.net [217.70.178.217]) by nmboxes7-ms7.sd4.0x35.net (Postfix) with ESMTPS id EA79361930 for ; Tue, 16 Jan 2024 05:26:34 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by fb.mail.gandi.net (Postfix) with ESMTPS id 778F060376 for ; Tue, 16 Jan 2024 05:26:34 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=wqTLGQz5UMGTbMr9h4ZvXSID7aUU5WTEkpM3unprnA4=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1705382793; v=1; b=M+MwIF+0ANrKoscdv08ppkN1ovHXd87gpZ9aOwRpKhMTxZrq1Lo3ldAA/SmpyHg78kWnDrtI FZ5MvxzP+iJMu02KQRn0Q+43+i3xC1SMDWOZKqbw9VV1g/iEhWygc8obNFKcp6tyatw8w5PTrX+ +h1mbY9j7dr32Qwmu/MyxKkU= X-Received: by 127.0.0.2 with SMTP id UEoUYY7687511xDoul1KDurb; Mon, 15 Jan 2024 21:26:33 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.85162.1705334393085457117 for ; Mon, 15 Jan 2024 07:59:53 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-626-9GqL9rXfNXWqOJwcIQIe0w-1; Mon, 15 Jan 2024 10:59:50 -0500 X-MC-Unique: 9GqL9rXfNXWqOJwcIQIe0w-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 15069863061 for ; Mon, 15 Jan 2024 15:59:50 +0000 (UTC) X-Received: from dobby.home.kraxel.org (unknown [10.39.193.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D8570C185A0; Mon, 15 Jan 2024 15:59:49 +0000 (UTC) X-Received: by dobby.home.kraxel.org (Postfix, from userid 1000) id D00E5AC982; Mon, 15 Jan 2024 16:59:48 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: oliver@redhat.com, Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 0/6] OvmfPkg/VirtNorFlashDxe: fix corruption + misc small improvements Date: Mon, 15 Jan 2024 16:59:42 +0100 Message-ID: <20240115155948.136499-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: PVi9Tw8fZ84ECJleXxua496mx7686176AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: fb.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=M+MwIF+0; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (fb.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This is a little series containing the flash corruption fix sent yesterday with an slightly improved commit message and some small improvements on top of this. v2: - drop broken bugfix, fix the bug when introducing Start+End variables instead. - add patch with UINTN and UINT32 casts. - add patch splitting the DoErase code path into a new function. - add the diagram sent by Laszlo. Gerd Hoffmann (6): OvmfPkg/VirtNorFlashDxe: add casts to UINTN and UINT32 OvmfPkg/VirtNorFlashDxe: clarify block write logic & fix shadowbuffer reads OvmfPkg/VirtNorFlashDxe: add a loop for NorFlashWriteBuffer calls. OvmfPkg/VirtNorFlashDxe: allow larger writes without block erase OvmfPkg/VirtNorFlashDxe: ValidateFvHeader: unwritten state is EOL too OvmfPkg/VirtNorFlashDxe: move DoErase code block into new function OvmfPkg/VirtNorFlashDxe/VirtNorFlash.h | 2 +- OvmfPkg/VirtNorFlashDxe/VirtNorFlash.c | 144 ++++++++++++++-------- OvmfPkg/VirtNorFlashDxe/VirtNorFlashFvb.c | 5 + 3 files changed, 99 insertions(+), 52 deletions(-) -- 2.43.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113827): https://edk2.groups.io/g/devel/message/113827 Mute This Topic: https://groups.io/mt/103741661/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-