From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXZxK-0002Hk-LE for qemu-devel@nongnu.org; Sat, 19 Oct 2013 13:04:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXZxD-0005tf-BC for qemu-devel@nongnu.org; Sat, 19 Oct 2013 13:04:50 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:64235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXZxD-0005tV-4z for qemu-devel@nongnu.org; Sat, 19 Oct 2013 13:04:43 -0400 Received: by mail-pb0-f53.google.com with SMTP id up15so5176905pbc.12 for ; Sat, 19 Oct 2013 10:04:41 -0700 (PDT) From: Roy Franz Date: Sat, 19 Oct 2013 10:04:32 -0700 Message-Id: <1382202274-8190-1-git-send-email-roy.franz@linaro.org> In-Reply-To: References: Subject: [Qemu-devel] [PATCH 0/2 v3] block, arm: Fix buffered flash writes on VExpress List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kwolf@redhat.com, stefanha@redhat.com Cc: Roy Franz , peter.maydell@linaro.org, patches@linaro.org Here is my updated patch to fix buffered flash writes on the VExpress platform. Buffered writes should now work properly on platforms whose flash interface width is different from the device width. The default is for the device-width to be set to the interface width, so platforms that can benefit from this change will need to be updated. This patchset updates the configuration for the VExpress platform which requires it. UEFI firmware uses buffered writes for persistent variable storage, and this patchset enables this usage on QEMU. Changes from v2: (All changes in patch 2/2, 1/1 unchanged.) * Set flash invariant properties directly in VExpress specific flash init routine rather than passing long argument list. * Fix typo in comment. Changes from v1: * Add device-width property and use this to mask write length instead of devices mas write length * Update vexpress init code to set device-width to proper value. Roy Franz (2): Add device-width property to pflash_cfi01 Set proper device-width for vexpress flash hw/arm/vexpress.c | 43 +++++++++++++++++++++++++++++++++---------- hw/block/pflash_cfi01.c | 21 +++++++++++++-------- 2 files changed, 46 insertions(+), 18 deletions(-) -- 1.7.10.4