qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4 v4] block, arm: Fix buffered flash writes on VExpress
@ 2013-10-22 16:35 Roy Franz
  2013-10-22 16:35 ` [Qemu-devel] [PATCH 1/4 v4] block: rename pflash_t member width to bank_width Roy Franz
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Roy Franz @ 2013-10-22 16:35 UTC (permalink / raw)
  To: qemu-devel, kwolf, stefanha; +Cc: Roy Franz, peter.maydell, patches

This patchset fixes 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 v3:
* Broke out width->bank_width name change into separate patch.
* Added patch that returns status for each device in bank.
* Reviewed code for other uses of device_width.  The one remaining place
  this should be used is in the handling of returning the device ID.  The
  existing code looks a bit suspect, as it is combining 16 bit values by
  shifting 8 bits and oring them.  I have no good way to test various
  flash configurations, so I am reluctant to make major changes to that code.
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 (4):
  rename pflash_t member width to bank_width
  Add device-width property to pflash_cfi01
  return status for each device
  Set proper device-width for vexpress flash

 hw/arm/vexpress.c       |   43 +++++++++++++++++++++++++++++++++----------
 hw/block/pflash_cfi01.c |   37 +++++++++++++++++++++++++++----------
 2 files changed, 60 insertions(+), 20 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-12-03 20:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-22 16:35 [Qemu-devel] [PATCH 0/4 v4] block, arm: Fix buffered flash writes on VExpress Roy Franz
2013-10-22 16:35 ` [Qemu-devel] [PATCH 1/4 v4] block: rename pflash_t member width to bank_width Roy Franz
2013-11-28 19:06   ` Peter Maydell
2013-10-22 16:35 ` [Qemu-devel] [PATCH 2/4 v5] block: Add device-width property to pflash_cfi01 Roy Franz
2013-11-28 19:03   ` Peter Maydell
2013-12-03 20:12     ` Roy Franz
2013-12-03 20:27       ` Peter Maydell
2013-12-03 20:36         ` Roy Franz
2013-10-22 16:35 ` [Qemu-devel] [PATCH 3/4 v4] block: return status for each device Roy Franz
2013-11-28 19:10   ` Peter Maydell
2013-12-03  2:27     ` Roy Franz
2013-10-22 16:35 ` [Qemu-devel] [PATCH 4/4 v4] block: Set proper device-width for vexpress flash Roy Franz
2013-11-28 19:12   ` Peter Maydell
2013-11-20  2:06 ` [Qemu-devel] [PATCH 0/4 v4] block, arm: Fix buffered flash writes on VExpress Roy Franz
2013-11-20  9:22 ` Stefan Hajnoczi
2013-11-20  9:27   ` Peter Maydell
2013-11-20 14:25     ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).