From nobody Thu Apr 18 03:34:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=n621.de Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1642956278428494.534561237993; Sun, 23 Jan 2022 08:44:38 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 3092D16E3E02; Sun, 23 Jan 2022 16:44:34 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 462C616E3D24 for ; Sun, 23 Jan 2022 16:44:23 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by nyx.n621.de (Postfix) with ESMTP id 281FAE0017B; Sun, 23 Jan 2022 17:44:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=n621.de; s=dkim; t=1642956262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=PI0Uj6tgIh3aFQ+GESqB/tK59sDfeHm30qAcWOI3Xv4=; b=bNzdR8Iezavzmx5Q4YIJLjheOh5Ge6vm5uTrqTeFFMaUZoDqpg06UiY7dMt8hG3jUzASm/ AV5hQ5cGXI7/eVbqYmqolpSPztTYD1CiFmAafPCOUFmIjQ5vXD4LMnsi4/NNlstS/xdEfe BKOh/9qP0nQiTzGEIa31j/Hg44WU2Vo= From: Florian Larysch To: seabios@seabios.org Date: Sun, 23 Jan 2022 17:43:57 +0100 Message-Id: <20220123164357.23695-1-fl@n621.de> MIME-Version: 1.0 X-Spam-Level: ** Message-ID-Hash: XXW7VZZJFXVKYMWJOLR3XQLCW74CBBYE X-Message-ID-Hash: XXW7VZZJFXVKYMWJOLR3XQLCW74CBBYE X-MailFrom: fl@n621.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Florian Larysch X-Mailman-Version: 3.3.5rc1 Precedence: list Subject: [SeaBIOS] [PATCH] nvme: fix LBA format data structure List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: / X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1642956280978100001 Content-Type: text/plain; charset="utf-8" The LBA Format Data structure is dword-sized, but struct nvme_lba_format erroneously contains an additional member, misaligning all LBAF descriptors after the first and causing them to be misinterpreted. Remove it. Signed-off-by: Florian Larysch --- src/hw/nvme-int.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hw/nvme-int.h b/src/hw/nvme-int.h index a4c1555..5779203 100644 --- a/src/hw/nvme-int.h +++ b/src/hw/nvme-int.h @@ -156,7 +156,6 @@ struct nvme_lba_format { u16 ms; u8 lbads; u8 rp; - u8 res; }; =20 struct nvme_identify_ns { --=20 2.34.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org