diff mbox

ppc: Add MacOS VGA driver ROM

Message ID 1469608053.5978.132.camel@kernel.crashing.org
State New
Headers show

Commit Message

Benjamin Herrenschmidt July 27, 2016, 8:27 a.m. UTC
The project is at https://github.com/ozbenh/QemuMacDrivers

This adds a native MacOS driver in ROM (which can be picked up
by MacOS once OpenBIOS has been updated if Mark accepts
the patches I sent him) which allows MacOS classic
(tested 9.2.1) and MacOS X (tested 10.1.4 and 10.4)
to properly use QEMU std VGA (10.1.x doesn't work at all
without it, the others get the ability to change resolution
and color depth).

Building the ROM is tricky and requires CodeWarrior for MacOS
so I include a pre-built binary.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 hw/ppc/mac_newworld.c |   8 ++++++++
 pc-bios/qemu_vga.ndrv | Bin 0 -> 12808 bytes
 2 files changed, 8 insertions(+)
 create mode 100644 pc-bios/qemu_vga.ndrv

diff --git a/pc-bios/qemu_vga.ndrv b/pc-bios/qemu_vga.ndrv
new file mode 100644
index 0000000000000000000000000000000000000000..0b1549d1c5978f87aed2b6e496a23fbaf18dbea4
GIT binary patch
literal 12808
zcmcIq4RBl4mA;amWZ5{0p=Q^?KY3{!Mof&y6hj}_b>&0>89PD20;gS=wQRj4+L0xV
zBqz%95<NR9O=j7tGYM^grZ^3-VJ6FXrqIG9-~>W<nW0&j9d^hpKcNAdodrr4*ph_g
z?RW0GlAmOWm~N}lnRo8F=bn4+x#ym9-+lMC_~yk4b=|tero=E~%=Yhxe^QO-%+JB>
zR50)}iOt&?%Yh@oB*{`&<z_4g9%i#y>vAIPp8(S(v=cuYx=rNd=boq|hHn5+&(H?K
znEe$|<~jk-{m^gzcSRm!%n3YK_e~4k0eqe)UsFV{p)xwS8E^~WZvYX%7QlAELx4ko
z!+?JSd;mCSXSVr(s{uCxdI2GT2H4F<0K<^n+pbuCtM0hPrvJoSrT@{pP+#C(=1WF4
zs>yyexiK=Vrurg7Y;|Zvy+d6eNu`sUsT^3*Lyx;6VKr{$TM>#4tI=R&L`||lJ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0!y7a6*A-YTrwMnY$aE}>_nO_(dSDlM{n;X~i
zP)Ze%s#pM|$KX@A7hGJkDjqI05!A)xBymf-R29*1<2n*sUmyr0nZ@0|DUu%EFpCWN
ztJO>zSHbBncL|MnstJUWp^+4pJhSVF?Wd5UWZ-KNdqAUfg;dFLmlw||<X9a~#2o%a
z+5Gu>`U5?G+vEGr(zf=DeAlX#tG=@|EUy}>Vt2+;rcWX=_xR++RZI+9PO0fM21tQ9
z!~a!mbv!Mvi;u>_h}?1%OH5uYkEXyRht+i<MDf-tCK8~$@w(QwHpu7IX}SY1r{i)e
zGBO&4JIZ%0?*sGdxNKIX%<J{C=k|Vit^D0<T8Kf8p}!=*Xs^OIz)yjPx-(-|Yb!{w
zxlGoz>KRI<BI}WBt__(94lA>}JJ8o6ifnoJ9ms9p%J2?y%ry3V#YhAq(2=#7oDlcm
S3pms9xI7eDPqe?>@BaW(s=rMD

literal 0
HcmV?d00001

Comments

David Gibson July 28, 2016, 5:51 a.m. UTC | #1
On Wed, Jul 27, 2016 at 06:27:33PM +1000, Benjamin Herrenschmidt wrote:
> The project is at https://github.com/ozbenh/QemuMacDrivers
> 
> This adds a native MacOS driver in ROM (which can be picked up
> by MacOS once OpenBIOS has been updated if Mark accepts
> the patches I sent him) which allows MacOS classic
> (tested 9.2.1) and MacOS X (tested 10.1.4 and 10.4)
> to properly use QEMU std VGA (10.1.x doesn't work at all
> without it, the others get the ability to change resolution
> and color depth).
> 
> Building the ROM is tricky and requires CodeWarrior for MacOS
> so I include a pre-built binary.

So, I believe qemu convention is to include the ROM source via a
submodule - even though it won't typically be built from there and the
prebuilt blob will be used instead.

Not sure who the right person to talk to about that would be.

> 
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>  hw/ppc/mac_newworld.c |   8 ++++++++
>  pc-bios/qemu_vga.ndrv | Bin 0 -> 12808 bytes
>  2 files changed, 8 insertions(+)
>  create mode 100644 pc-bios/qemu_vga.ndrv
> 
> diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
> index 7d25106..5029345 100644
> --- a/hw/ppc/mac_newworld.c
> +++ b/hw/ppc/mac_newworld.c
> @@ -511,6 +511,13 @@ static int core99_kvm_type(const char *arg)
>      return 2;
>  }
>  
> +#define MAC_CORE99_COMPAT                               \
> +    {                                                   \
> +        .driver   = "pci-vga",                          \
> +        .property = "romfile",                          \
> +        .value    = "qemu_vga.ndrv",                    \
> +    },
> +
>  static void core99_machine_class_init(ObjectClass *oc, void *data)
>  {
>      MachineClass *mc = MACHINE_CLASS(oc);
> @@ -520,6 +527,7 @@ static void core99_machine_class_init(ObjectClass *oc, void *data)
>      mc->max_cpus = MAX_CPUS;
>      mc->default_boot_order = "cd";
>      mc->kvm_type = core99_kvm_type;
> +    SET_MACHINE_COMPAT(mc, MAC_CORE99_COMPAT);
>  }
>  
>  static const TypeInfo core99_machine_info = {
> diff --git a/pc-bios/qemu_vga.ndrv b/pc-bios/qemu_vga.ndrv
> new file mode 100644
> index 0000000000000000000000000000000000000000..0b1549d1c5978f87aed2b6e496a23fbaf18dbea4
> GIT binary patch
> literal 12808
> zcmcIq4RBl4mA;amWZ5{0p=Q^?KY3{!Mof&y6hj}_b>&0>89PD20;gS=wQRj4+L0xV
> zBqz%95<NR9O=j7tGYM^grZ^3-VJ6FXrqIG9-~>W<nW0&j9d^hpKcNAdodrr4*ph_g
> z?RW0GlAmOWm~N}lnRo8F=bn4+x#ym9-+lMC_~yk4b=|tero=E~%=Yhxe^QO-%+JB>
> zR50)}iOt&?%Yh@oB*{`&<z_4g9%i#y>vAIPp8(S(v=cuYx=rNd=boq|hHn5+&(H?K
> znEe$|<~jk-{m^gzcSRm!%n3YK_e~4k0eqe)UsFV{p)xwS8E^~WZvYX%7QlAELx4ko
> z!+?JSd;mCSXSVr(s{uCxdI2GT2H4F<0K<^n+pbuCtM0hPrvJoSrT@{pP+#C(=1WF4
> zs>yyexiK=Vrurg7Y;|Zvy+d6eNu`sUsT^3*Lyx;6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q#keCc@4usYhazY_!
> zxw(*0O%q?C{v@)P5nh{!C(|iEmfxmOQe82cOvRH0vLOE}YJJJjrmv_*pM|x=-w)TE
> zHHQ4{*@Di|zH|k&qRYy~%(H0V3&c0!y7a6*A-YTrwMnY$aE}>_nO_(dSDlM{n;X~i
> zP)Ze%s#pM|$KX@A7hGJkDjqI05!A)xBymf-R29*1<2n*sUmyr0nZ@0|DUu%EFpCWN
> ztJO>zSHbBncL|MnstJUWp^+4pJhSVF?Wd5UWZ-KNdqAUfg;dFLmlw||<X9a~#2o%a
> z+5Gu>`U5?G+vEGr(zf=DeAlX#tG=@|EUy}>Vt2+;rcWX=_xR++RZI+9PO0fM21tQ9
> z!~a!mbv!Mvi;u>_h}?1%OH5uYkEXyRht+i<MDf-tCK8~$@w(QwHpu7IX}SY1r{i)e
> zGBO&4JIZ%0?*sGdxNKIX%<J{C=k|Vit^D0<T8Kf8p}!=*Xs^OIz)yjPx-(-|Yb!{w
> zxlGoz>KRI<BI}WBt__(94lA>}JJ8o6ifnoJ9ms9p%J2?y%ry3V#YhAq(2=#7oDlcm
> S3pms9xI7eDPqe?>@BaW(s=rMD
> 
> literal 0
> HcmV?d00001
> 
>
Alexander Graf July 28, 2016, 7:04 a.m. UTC | #2
On 07/28/2016 07:51 AM, David Gibson wrote:
> On Wed, Jul 27, 2016 at 06:27:33PM +1000, Benjamin Herrenschmidt wrote:
>> The project is at https://github.com/ozbenh/QemuMacDrivers
>>
>> This adds a native MacOS driver in ROM (which can be picked up
>> by MacOS once OpenBIOS has been updated if Mark accepts
>> the patches I sent him) which allows MacOS classic
>> (tested 9.2.1) and MacOS X (tested 10.1.4 and 10.4)
>> to properly use QEMU std VGA (10.1.x doesn't work at all
>> without it, the others get the ability to change resolution
>> and color depth).
>>
>> Building the ROM is tricky and requires CodeWarrior for MacOS
>> so I include a pre-built binary.
> So, I believe qemu convention is to include the ROM source via a
> submodule - even though it won't typically be built from there and the
> prebuilt blob will be used instead.
>
> Not sure who the right person to talk to about that would be.

I think Stefan handles the logistics there now. CC'ed him.


The reason for the submodule is so that on tar releases, the source gets 
included automatically. That way we can ensure that we always include 
all GPL sources that we deliver binaries for.


Alex
Stefan Hajnoczi July 28, 2016, 8:28 a.m. UTC | #3
On Thu, Jul 28, 2016 at 09:04:25AM +0200, Alexander Graf wrote:
> On 07/28/2016 07:51 AM, David Gibson wrote:
> > On Wed, Jul 27, 2016 at 06:27:33PM +1000, Benjamin Herrenschmidt wrote:
> > > The project is at https://github.com/ozbenh/QemuMacDrivers
> > > 
> > > This adds a native MacOS driver in ROM (which can be picked up
> > > by MacOS once OpenBIOS has been updated if Mark accepts
> > > the patches I sent him) which allows MacOS classic
> > > (tested 9.2.1) and MacOS X (tested 10.1.4 and 10.4)
> > > to properly use QEMU std VGA (10.1.x doesn't work at all
> > > without it, the others get the ability to change resolution
> > > and color depth).
> > > 
> > > Building the ROM is tricky and requires CodeWarrior for MacOS
> > > so I include a pre-built binary.
> > So, I believe qemu convention is to include the ROM source via a
> > submodule - even though it won't typically be built from there and the
> > prebuilt blob will be used instead.
> > 
> > Not sure who the right person to talk to about that would be.
> 
> I think Stefan handles the logistics there now. CC'ed him.
> 
> 
> The reason for the submodule is so that on tar releases, the source gets
> included automatically. That way we can ensure that we always include all
> GPL sources that we deliver binaries for.

Jeff Cody now admins the qemu-project.org server, including the git
repos.

Jeff, please create a mirror git repo for
https://github.com/ozbenh/QemuMacDrivers at
git://git.qemu-project.org/QemuMacDrivers.git with nightly mirroring.

Once Jeff has set up the mirror repo, please send a new revision of this
patch that makes roms/QemuMacDrivers a git-submodule(1) pointing to
git://git.qemu-project.org/QemuMacDrivers.git.

Please double-check that the binary ROM included in the patch
corresponds to the QemuMacDrivers commit referenced by the
git-submodule(1) before sending the patch.

Thanks,
Stefan
Benjamin Herrenschmidt July 28, 2016, 12:41 p.m. UTC | #4
On Thu, 2016-07-28 at 15:51 +1000, David Gibson wrote:
> So, I believe qemu convention is to include the ROM source via a
> submodule - even though it won't typically be built from there and the
> prebuilt blob will be used instead.
> 
> Not sure who the right person to talk to about that would be.

Probably Peter, and that git repo will eventually grow more ROMs as I
add virtio drivers for MacOS :-)

But for now, let's first agree (or not) with Mark how we deal with
this on the openbios side.

My preference is to rework the PCI stack there and add proper f-code
support, so I can package the drivers using f-code. But that will
probably take a while, in the meantime, the raw PEF which is what I
added here is I think a reasonable compromise.

In fact I wouldn't be completely against doing the virtio driers in
forth ;-)

But he might have other ideas.

Cheers
,Ben.
Benjamin Herrenschmidt July 28, 2016, 12:44 p.m. UTC | #5
On Thu, 2016-07-28 at 09:28 +0100, Stefan Hajnoczi wrote:
> 
> Jeff, please create a mirror git repo for
> https://github.com/ozbenh/QemuMacDrivers at
> git://git.qemu-project.org/QemuMacDrivers.git with nightly mirroring.
> 
> Once Jeff has set up the mirror repo, please send a new revision of
> this
> patch that makes roms/QemuMacDrivers a git-submodule(1) pointing to
> git://git.qemu-project.org/QemuMacDrivers.git.
> 
> Please double-check that the binary ROM included in the patch
> corresponds to the QemuMacDrivers commit referenced by the
> git-submodule(1) before sending the patch.

Ok, we don't yet need to do all of this though as there are still
some open questions about how we expose the ROM to MacOS via
OpenBIOS as a consequence the format of the ROM file.

You can still mirror the git repo, any change will be done there,
but let's not include the submodule and/or apply the patch before
Mark and I have sorted the OpenBIOS side.

Cheers,
Ben.
Gerd Hoffmann Aug. 2, 2016, 5:25 a.m. UTC | #6
On Di, 2016-08-02 at 07:24 +1000, Benjamin Herrenschmidt wrote:
> On Mon, 2016-08-01 at 21:38 +0200, Gerd Hoffmann wrote:
> >   Hi,
> > 
> > > So, I believe qemu convention is to include the ROM source via a
> > > submodule - even though it won't typically be built from there and
> > the
> > > prebuilt blob will be used instead.
> > 
> > Correct.  Also rules in roms/Makefile to build the thing, to document
> > the build process and to simplify the maintainer's job on updates.
> 
> That's the part we cannot provide unfortunately. There is sadly no
> toolchain that can produce a MacOS PEF binary other than hosted in
> MacOS itself. In fact I don't think Apple XCode can either, which
> leaves us with CodeWarrior (commercial) or MPW (which I think at some
> point became free but I didn't find it and it doesn't work on OS X
> afaik).

Firmware builds often have specific requirements, such as only working
on $arch due to firmware not being cross-buildable (thats why there are
the prebuilt binaries in the first place).  So if those makefile rules
work only on macos with CodeWarrior installed that is perfectly fine.

cheers,
  Gerd
Benjamin Herrenschmidt Aug. 2, 2016, 5:35 a.m. UTC | #7
On Tue, 2016-08-02 at 07:25 +0200, Gerd Hoffmann wrote:
> > That's the part we cannot provide unfortunately. There is sadly no
> > toolchain that can produce a MacOS PEF binary other than hosted in
> > MacOS itself. In fact I don't think Apple XCode can either, which
> > leaves us with CodeWarrior (commercial) or MPW (which I think at some
> > point became free but I didn't find it and it doesn't work on OS X
> > afaik).
> 
> Firmware builds often have specific requirements, such as only working
> on $arch due to firmware not being cross-buildable (thats why there are
> the prebuilt binaries in the first place).  So if those makefile rules
> work only on macos with CodeWarrior installed that is perfectly fine.

Right though in that case it's not a Makefile, it's a CodeWarrior
project in .xml form ;-) It is included in the git repo.

CodeWarrior for MacOS X does come with command line versions of the
tools, I plan to look into doing a Makefile once I've sorted out the
various arguments for these things at least.

Cheers,
Ben.
Gerd Hoffmann Aug. 2, 2016, 8:55 a.m. UTC | #8
On Di, 2016-08-02 at 15:35 +1000, Benjamin Herrenschmidt wrote:
> On Tue, 2016-08-02 at 07:25 +0200, Gerd Hoffmann wrote:
> > > That's the part we cannot provide unfortunately. There is sadly no
> > > toolchain that can produce a MacOS PEF binary other than hosted in
> > > MacOS itself. In fact I don't think Apple XCode can either, which
> > > leaves us with CodeWarrior (commercial) or MPW (which I think at some
> > > point became free but I didn't find it and it doesn't work on OS X
> > > afaik).
> > 
> > Firmware builds often have specific requirements, such as only working
> > on $arch due to firmware not being cross-buildable (thats why there are
> > the prebuilt binaries in the first place).  So if those makefile rules
> > work only on macos with CodeWarrior installed that is perfectly fine.
> 
> Right though in that case it's not a Makefile, it's a CodeWarrior
> project in .xml form ;-) It is included in the git repo.

Good, that simplifies the makesfile rules to something like:

macosdrivers:
	(cd $submodule: cw-build-tool $args $project.xml)
	cp -v $submodule/$binary ../pc-bios

> CodeWarrior for MacOS X does come with command line versions of the
> tools, I plan to look into doing a Makefile once I've sorted out the
> various arguments for these things at least.

Yes, you do that once, put it into roms/Makefile, and the next time you
just do "make -C roms macosdrivers" instead of sorting out the various
arguments *again*.

Bonus: Any possible contributers will have an easier start too.

cheers,
  Gerd
Benjamin Herrenschmidt Aug. 2, 2016, 9:17 a.m. UTC | #9
On Tue, 2016-08-02 at 10:55 +0200, Gerd Hoffmann wrote:
> > CodeWarrior for MacOS X does come with command line versions of the
> > tools, I plan to look into doing a Makefile once I've sorted out the
> > various arguments for these things at least.
> 
> Yes, you do that once, put it into roms/Makefile, and the next time you
> just do "make -C roms macosdrivers" instead of sorting out the various
> arguments *again*.
> 
> Bonus: Any possible contributers will have an easier start too.

I did notice that having Makefiles in the roms directory make
git submodule barf ... I had to remove them for it to be able
to clone the submodules.

Cheers,
Ben.
Gerd Hoffmann Aug. 2, 2016, 10:53 a.m. UTC | #10
On Di, 2016-08-02 at 19:17 +1000, Benjamin Herrenschmidt wrote:
> On Tue, 2016-08-02 at 10:55 +0200, Gerd Hoffmann wrote:
> > > CodeWarrior for MacOS X does come with command line versions of the
> > > tools, I plan to look into doing a Makefile once I've sorted out the
> > > various arguments for these things at least.
> > 
> > Yes, you do that once, put it into roms/Makefile, and the next time you
> > just do "make -C roms macosdrivers" instead of sorting out the various
> > arguments *again*.
> > 
> > Bonus: Any possible contributers will have an easier start too.
> 
> I did notice that having Makefiles in the roms directory make
> git submodule barf ... I had to remove them for it to be able
> to clone the submodules.

I mean roms/Makefile, not roms/$submodule/Makefile

cheers,
  Gerd
Benjamin Herrenschmidt Aug. 2, 2016, 1:17 p.m. UTC | #11
On Tue, 2016-08-02 at 12:53 +0200, Gerd Hoffmann wrote:
> > I did notice that having Makefiles in the roms directory make
> > git submodule barf ... I had to remove them for it to be able
> > to clone the submodules.
> 
> I mean roms/Makefile, not roms/$submodule/Makefile

I see, ok well, we'll see when I get a chance to look at doing
Makefiles for OS X... right now I build this using an IDE so
it won't do that much good.

Anyway, not terribly urgent. I'm reworking a whole pile of the
Mac emulation, trying to bring it to a more decent state, so that's
only part of the picture.

Cheers,
Ben.
diff mbox

Patch

diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
index 7d25106..5029345 100644
--- a/hw/ppc/mac_newworld.c
+++ b/hw/ppc/mac_newworld.c
@@ -511,6 +511,13 @@  static int core99_kvm_type(const char *arg)
     return 2;
 }
 
+#define MAC_CORE99_COMPAT                               \
+    {                                                   \
+        .driver   = "pci-vga",                          \
+        .property = "romfile",                          \
+        .value    = "qemu_vga.ndrv",                    \
+    },
+
 static void core99_machine_class_init(ObjectClass *oc, void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
@@ -520,6 +527,7 @@  static void core99_machine_class_init(ObjectClass *oc, void *data)
     mc->max_cpus = MAX_CPUS;
     mc->default_boot_order = "cd";
     mc->kvm_type = core99_kvm_type;
+    SET_MACHINE_COMPAT(mc, MAC_CORE99_COMPAT);
 }
 
 static const TypeInfo core99_machine_info = {