From nobody Mon Feb 9 05:41:14 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58421+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58421+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1588238826; cv=none; d=zohomail.com; s=zohoarc; b=kpF9b322C/c+1kRyGUU75VQtmMtqqS9cf0g2/Ntv3CjLnhAQrmvSdxuFvgtXbovxfKHV1l6x6SW2Pm1g+ek4z1jOxw4yObdAI8893nlxqkV4Ihouv//6e/I+LTjmro/rVXMFw53hdjVJYZGipLs/Zm0mZ88kAQu/bWB7/eJJc/o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588238826; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=HXkWyVLW4gUSzc8u958mUSP866Jol+4wYriSxpTV7MQ=; b=JXzZ0q+iFOkcGqhnD6v41V3aemPehJXuv6iEEnMoFe7eThkZSUcjA9IuEIamZJTYatCGjlihDOdjDzLSTp3e3t+aWQk2tqD1sGCixV0d2tRYSwkQCNI7+T+PxbZh5xwr2Zw9+rmoIRzfX2lZknRWP2ezcbtF51phoBpwnV0CMeU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58421+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588238826496181.2655510615656; Thu, 30 Apr 2020 02:27:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id u6naYY1788612xEjqLx8i8kV; Thu, 30 Apr 2020 02:27:06 -0700 X-Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by mx.groups.io with SMTP id smtpd.web10.3782.1588238825626628595 for ; Thu, 30 Apr 2020 02:27:05 -0700 X-Received: by mail-qk1-f195.google.com with SMTP id i136so872115qke.10 for ; Thu, 30 Apr 2020 02:27:05 -0700 (PDT) X-Gm-Message-State: Ve9KrPQreaMDSKg19Z8J47gBx1787277AA= X-Google-Smtp-Source: APiQypJu+5/LHjQJ7Hm5RIl3T30k2ehITTpp8x/xMnz5pU5OASJiXYthu+gGOofE4isF8lzc0eFWRA== X-Received: by 2002:ae9:e509:: with SMTP id w9mr2624640qkf.252.1588238824617; Thu, 30 Apr 2020 02:27:04 -0700 (PDT) X-Received: from localhost.localdomain (c-98-214-99-181.hsd1.il.comcast.net. [98.214.99.181]) by smtp.gmail.com with ESMTPSA id i5sm1430355qki.42.2020.04.30.02.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 02:27:04 -0700 (PDT) From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, pete@akeo.ie, philmd@redhat.com Subject: [edk2-devel] [edk2-platforms][PATCH 2/4] RPi: fix MmcTransferBlock (writes) regression for eMMC Date: Thu, 30 Apr 2020 02:26:50 -0700 Message-Id: <20200430092652.54526-3-andrey.warkentin@gmail.com> In-Reply-To: <20200430092652.54526-1-andrey.warkentin@gmail.com> References: <20200430092652.54526-1-andrey.warkentin@gmail.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: <27952.devel.edk2.groups.io> Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,andrey.warkentin@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588238826; bh=vsDQZw4JmWzx4v2/tWEQrHcEpuY76qkGDUdhTZvuAQk=; h=Cc:Date:From:Reply-To:Subject:To; b=VDj+vvUlmtfV1Oi3zOLn6XLALqUgKvz8ZxPbYtT3ovmsuq8UPqUqWLMl8B0Hykj0pt5 gaM8+JuCXvUMGD85EqgioMhyet9kd+huxB6D06mGU/m6J4CzPfO7chhvdv9s16czGM7y5 Z/by0Oz6HzODQH0JgLf9eW3OIDGHyjaXHQU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Way back when I added write block validation (https://github.com/andreiw/Ra= spberryPiPkg/commit/bdea35dc3f1652bf7b17505a20a5f52f7fde9707), I had screwed the logic up breaking eMMC. This starts to matter on the CM3, which has eMMC. Signed-off-by: Andrei Warkentin --- Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c b/Platform/Ra= spberryPi/Drivers/MmcDxe/MmcBlockIo.c index 29a9fd7d..8a2f7f42 100644 --- a/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c +++ b/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c @@ -47,6 +47,7 @@ ValidateWrittenBlockCount ( /* * Not on MMC. */ + *TransferredBlocks =3D Count; return EFI_SUCCESS; } =20 --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#58421): https://edk2.groups.io/g/devel/message/58421 Mute This Topic: https://groups.io/mt/73371877/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-