[Qemu-devel] [PATCH 0/7] mac: generate correct fw paths for macio IDE and virtio-blk-pci devices

Mark Cave-Ayland posted 7 patches 7 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180829165911.30106-1-mark.cave-ayland@ilande.co.uk
Test docker-clang@ubuntu failed
Test checkpatch passed
hw/ide/macio.c                 |  2 ++
hw/misc/macio/macio.c          | 42 ++++++++++++++++++++++--------
hw/pci-host/grackle.c          | 17 ++++++++++++
hw/pci-host/uninorth.c         | 16 ++++++++++++
hw/ppc/mac.h                   | 26 -------------------
hw/ppc/mac_newworld.c          | 59 +++++++++++++++++++++++++++++++++++++++++-
hw/ppc/mac_oldworld.c          | 59 +++++++++++++++++++++++++++++++++++++++++-
include/hw/misc/macio/macio.h  | 37 ++++++++++++++++++++++++++
include/hw/pci-host/uninorth.h |  1 +
9 files changed, 220 insertions(+), 39 deletions(-)
[Qemu-devel] [PATCH 0/7] mac: generate correct fw paths for macio IDE and virtio-blk-pci devices
Posted by Mark Cave-Ayland 7 years, 2 months ago
This patchset is the QEMU counterpart to the patches posted on the OpenBIOS
list at https://mail.coreboot.org/pipermail/openbios/2018-August/010422.html
which generate correct fw paths for the Mac Old World and New World machines.

With these patches applied QEMU generates the correct fw paths for both the
in-built macio IDE and virtio-blk-pci devices enabling support for bootindex
and most importantly with an updated OpenBIOS, allowing boot from
virtio-pci-blk devices.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


Mark Cave-Ayland (7):
  macio: move MACIOIDEState type declarations to macio.h
  macio: add macio bus to help with fw path generation
  macio: add addr property to macio IDE object
  grackle: set device fw_name and address for correct fw path generation
  mac_oldworld: implement custom FWPathProvider
  uninorth: add ofw-addr property to allow correct fw path generation
  mac_newworld: implement custom FWPathProvider

 hw/ide/macio.c                 |  2 ++
 hw/misc/macio/macio.c          | 42 ++++++++++++++++++++++--------
 hw/pci-host/grackle.c          | 17 ++++++++++++
 hw/pci-host/uninorth.c         | 16 ++++++++++++
 hw/ppc/mac.h                   | 26 -------------------
 hw/ppc/mac_newworld.c          | 59 +++++++++++++++++++++++++++++++++++++++++-
 hw/ppc/mac_oldworld.c          | 59 +++++++++++++++++++++++++++++++++++++++++-
 include/hw/misc/macio/macio.h  | 37 ++++++++++++++++++++++++++
 include/hw/pci-host/uninorth.h |  1 +
 9 files changed, 220 insertions(+), 39 deletions(-)

-- 
2.11.0


Re: [Qemu-devel] [PATCH 0/7] mac: generate correct fw paths for macio IDE and virtio-blk-pci devices
Posted by David Gibson 7 years, 2 months ago
On Wed, Aug 29, 2018 at 05:59:04PM +0100, Mark Cave-Ayland wrote:
1;5202;0c> This patchset is the QEMU counterpart to the patches posted on the OpenBIOS
> list at https://mail.coreboot.org/pipermail/openbios/2018-August/010422.html
> which generate correct fw paths for the Mac Old World and New World machines.
> 
> With these patches applied QEMU generates the correct fw paths for both the
> in-built macio IDE and virtio-blk-pci devices enabling support for bootindex
> and most importantly with an updated OpenBIOS, allowing boot from
> virtio-pci-blk devices.
> 
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

Applied to ppc-for-3.1, thanks.


> 
> 
> Mark Cave-Ayland (7):
>   macio: move MACIOIDEState type declarations to macio.h
>   macio: add macio bus to help with fw path generation
>   macio: add addr property to macio IDE object
>   grackle: set device fw_name and address for correct fw path generation
>   mac_oldworld: implement custom FWPathProvider
>   uninorth: add ofw-addr property to allow correct fw path generation
>   mac_newworld: implement custom FWPathProvider
> 
>  hw/ide/macio.c                 |  2 ++
>  hw/misc/macio/macio.c          | 42 ++++++++++++++++++++++--------
>  hw/pci-host/grackle.c          | 17 ++++++++++++
>  hw/pci-host/uninorth.c         | 16 ++++++++++++
>  hw/ppc/mac.h                   | 26 -------------------
>  hw/ppc/mac_newworld.c          | 59 +++++++++++++++++++++++++++++++++++++++++-
>  hw/ppc/mac_oldworld.c          | 59 +++++++++++++++++++++++++++++++++++++++++-
>  include/hw/misc/macio/macio.h  | 37 ++++++++++++++++++++++++++
>  include/hw/pci-host/uninorth.h |  1 +
>  9 files changed, 220 insertions(+), 39 deletions(-)
> 

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson