All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH V4 00/12] SD save/load support, SD qomification and bug fixes
@ 2012-07-27 19:29 Igor Mitsyanko
  2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 01/12] hw/sd.c: convert wp_groups in SDState to bitfield Igor Mitsyanko
                   ` (12 more replies)
  0 siblings, 13 replies; 45+ messages in thread
From: Igor Mitsyanko @ 2012-07-27 19:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: kwolf, peter.maydell, benoit.canet, wdongxu, stefanha,
	e.voevodin, armbru, andrew.zaborowski, kyungmin.park, pbonzini

v3->v4
PATCH11: "spi" property now can be set until SD card is not attached to BlockDriverState,
not when card in idle state;
PATCH12: "device-id" property renamed to "drive", few code movements;
PATCH13 droped, its functionality is available in BlockDriverState;

v2->v3
Patchset modified in such a way that all existing SD card model users are left intact.
PATCH10 modifies hw/omap_mmc.c, hw/pl181.c and hw/pxa2xx_mmci.c but I'm not sure about
its necessity.

 - don't use BITS_TO_LONGS when operating with bitfields;
 - added wrapper for trnslating SD card addres to wp group number (new PATCH3);
 - made sd_wp_addr() to receive uint64_t address argument  (new PATCH2);
 - fix SD card erase function (new PATCH4)
 - introduced wrapper inline functions to left SD card users intact after SD qomification;
 - drop "image" property patch and introduce "device-id" SD card property instead. Property
   ties SD card with BlockDriverState of the same name (BlockDriverState must already exist).
 - introduce SD card "eject" property, it can be used to detach BlockDriverState from SD card.
 - droped patch which makes SD card a child of host controllers, I think it shoul be done  

v1->v2
PATCH1: use bitmap.h heder for bit operations.
PATCH6: use wrappers to call SDClass methods
Added 4 new patches:
PATCH7 and PATCH8 drope passing arguments to SDClass::init functions and replace them with
SD card object properties. SDClass::init is trivialized to realize().
PATCH10 adds "image" property to SD card objects. This property can be used for
hot-insertion/hot-cardchange in virtual SD card slot.

PATCH1 converts wp_groups member of SDState to bitfield significantly reducing
memory consumption.
PATCH2-4 convert binary variables to bool type.
PATCH5 adds save/load support for SDState, intermediate variable introduced in SDState
to hold size of wp_groups array.
PATCH6 converts SD state to QOM object. QOMified implementation doesn't have any
advantages over current one but it gives us enormous possibilities for further
improvements.

Igor Mitsyanko (12):
  hw/sd.c: convert wp_groups in SDState to bitfield
  hw/sd.c: make sd_wp_addr() accept 64 bit address argument
  hw/sd.c: introduce wrapper for conversion address to wp group
  hw/sd.c: favour SD card type (SDSC or SDHC) when performing erase
  hw/sd.c: convert binary variables to bool
  hw/sd.c: make sd_dataready() return bool
  hw/sd.c: make sd_wp_addr() return bool
  hw/sd.c: add SD card save/load support
  hw/sd.c: convert SD state to QOM object
  SD card users: optimize access to SDClass methods
  SD card: introduce "spi" property for SD card objects
  hw/sd.c: introduce SD card "drive" property

 hw/omap_mmc.c    |    9 +-
 hw/pl181.c       |    7 +-
 hw/pxa2xx_mmci.c |    6 +-
 hw/sd.c          |  307 +++++++++++++++++++++++++++++++++++++++++-------------
 hw/sd.h          |   74 ++++++++++++--
 5 files changed, 312 insertions(+), 91 deletions(-)

-- 
1.7.5.4

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

end of thread, other threads:[~2012-10-25 18:46 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-27 19:29 [Qemu-devel] [PATCH V4 00/12] SD save/load support, SD qomification and bug fixes Igor Mitsyanko
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 01/12] hw/sd.c: convert wp_groups in SDState to bitfield Igor Mitsyanko
2012-07-31 14:25   ` Peter Maydell
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 02/12] hw/sd.c: make sd_wp_addr() accept 64 bit address argument Igor Mitsyanko
2012-07-31 14:25   ` Peter Maydell
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 03/12] hw/sd.c: introduce wrapper for conversion address to wp group Igor Mitsyanko
2012-07-31 14:27   ` Peter Maydell
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 04/12] hw/sd.c: favour SD card type (SDSC or SDHC) when performing erase Igor Mitsyanko
2012-07-31  9:29   ` Markus Armbruster
2012-07-31 10:19     ` Igor Mitsyanko
2012-07-31 14:34   ` Peter Maydell
2012-07-31 15:13     ` Igor Mitsyanko
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 05/12] hw/sd.c: convert binary variables to bool Igor Mitsyanko
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 06/12] hw/sd.c: make sd_dataready() return bool Igor Mitsyanko
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 07/12] hw/sd.c: make sd_wp_addr() " Igor Mitsyanko
2012-07-31 14:39   ` Peter Maydell
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 08/12] hw/sd.c: add SD card save/load support Igor Mitsyanko
2012-07-31  9:33   ` Markus Armbruster
2012-07-31 10:27     ` Igor Mitsyanko
2012-07-31 14:56   ` Peter Maydell
2012-07-31 18:18     ` Igor Mitsyanko
2012-08-08 15:56       ` Peter Maydell
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 09/12] hw/sd.c: convert SD state to QOM object Igor Mitsyanko
2012-07-31  9:45   ` Markus Armbruster
2012-07-31  9:59     ` Peter Maydell
2012-07-31 14:48     ` Igor Mitsyanko
2012-07-31 15:29       ` Markus Armbruster
2012-07-31 16:17         ` Peter Maydell
2012-07-31 17:09           ` Igor Mitsyanko
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 10/12] SD card users: optimize access to SDClass methods Igor Mitsyanko
2012-07-31 15:43   ` Peter Maydell
2012-07-31 17:33     ` Igor Mitsyanko
2012-07-31 17:47       ` Peter Maydell
2012-07-31 18:03         ` Igor Mitsyanko
2012-07-31 18:15       ` Anthony Liguori
2012-07-31 18:33         ` Igor Mitsyanko
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 11/12] SD card: introduce "spi" property for SD card objects Igor Mitsyanko
2012-07-31  9:54   ` Markus Armbruster
2012-07-31 12:19     ` Andreas Färber
2012-07-31 12:53       ` Paolo Bonzini
2012-07-27 19:29 ` [Qemu-devel] [PATCH V4 12/12] hw/sd.c: introduce SD card "drive" property Igor Mitsyanko
2012-08-10 15:06 ` [Qemu-devel] [PATCH V4 00/12] SD save/load support, SD qomification and bug fixes Peter Maydell
2012-08-10 16:23   ` Igor Mitsyanko
2012-10-25 15:47     ` Peter Maydell
2012-10-25 18:46       ` Igor Mitsyanko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.