qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] ppc: deprecate 'prep' machine
@ 2018-08-09 20:40 Hervé Poussineau
  2018-08-09 20:40 ` [Qemu-devel] [PATCH 1/2] hw/ppc: on 40p machine, change default firmware to OpenBIOS Hervé Poussineau
  2018-08-09 20:40 ` [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p' Hervé Poussineau
  0 siblings, 2 replies; 10+ messages in thread
From: Hervé Poussineau @ 2018-08-09 20:40 UTC (permalink / raw)
  To: qemu-devel
  Cc: Mark Cave-Ayland, David Gibson, Alexander Graf, qemu-ppc,
	Hervé Poussineau

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 443 bytes --]

Hello,

These two small patches deprecate the PPC 'prep' machine in favor of the
'40p' machine.

This is already flagged as 'Future candidate' for removal in
https://wiki.qemu.org/Features/LegacyRemoval

HervÃ

Hervé Poussineau (2):
  hw/ppc: on 40p machine, change default firmware to OpenBIOS
  hw/ppc: deprecate the machine type 'prep', replaced by '40p'

 hw/ppc/prep.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.11.0

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

* [Qemu-devel] [PATCH 1/2] hw/ppc: on 40p machine, change default firmware to OpenBIOS
  2018-08-09 20:40 [Qemu-devel] [PATCH 0/2] ppc: deprecate 'prep' machine Hervé Poussineau
@ 2018-08-09 20:40 ` Hervé Poussineau
  2018-08-10  1:04   ` David Gibson
  2018-08-09 20:40 ` [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p' Hervé Poussineau
  1 sibling, 1 reply; 10+ messages in thread
From: Hervé Poussineau @ 2018-08-09 20:40 UTC (permalink / raw)
  To: qemu-devel
  Cc: Mark Cave-Ayland, David Gibson, Alexander Graf, qemu-ppc,
	Hervé Poussineau

OpenBIOS gained 40p support in 5b20e4cacecb62fb2bdc6867c11d44cddd77c4ff
Use it, instead of relying on the presence of a proprietary firmware.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/ppc/prep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index 3401570d98..1558855247 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -736,7 +736,7 @@ static void ibm_40p_init(MachineState *machine)
     /* PCI host */
     dev = qdev_create(NULL, "raven-pcihost");
     if (!bios_name) {
-        bios_name = BIOS_FILENAME;
+        bios_name = "openbios-ppc";
     }
     qdev_prop_set_string(dev, "bios-name", bios_name);
     qdev_prop_set_uint32(dev, "elf-machine", PPC_ELF_MACHINE);
-- 
2.11.0

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

* [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p'
  2018-08-09 20:40 [Qemu-devel] [PATCH 0/2] ppc: deprecate 'prep' machine Hervé Poussineau
  2018-08-09 20:40 ` [Qemu-devel] [PATCH 1/2] hw/ppc: on 40p machine, change default firmware to OpenBIOS Hervé Poussineau
@ 2018-08-09 20:40 ` Hervé Poussineau
  2018-08-10  1:06   ` David Gibson
  2018-08-10 16:20   ` Daniel P. Berrangé
  1 sibling, 2 replies; 10+ messages in thread
From: Hervé Poussineau @ 2018-08-09 20:40 UTC (permalink / raw)
  To: qemu-devel
  Cc: Mark Cave-Ayland, David Gibson, Alexander Graf, qemu-ppc,
	Hervé Poussineau

- prep machine is a fictional machine, so has no specifications. Which
  devices can be changed/added/removed without impact? Are interrupts
  correctly mapped?
- prep firmware (OHW) has support only for IDE drives (no SCSI).
  Booting from IDE has been broken approximatively 3 years ago, and nobody complained.
- OHW is limited on IDE boot to a specific set of OS loaders.
  These operating systems are of the 2004 time frame.
- OHW can use -kernel. Linux kernel freezes a long time after PS/2 mouse
  detection, and then screen becomes garbage. This was already broken in
  QEMU v2.7, 2 years ago, and nobody complained.

On the other side:
- 40p is a real machine, so emulation can be checked against
  hardware specifications
- OpenBIOS has support for SCSI block devices, including 40p LSI adapter
- OpenBIOS can start mostly all Linux kernels (including recent ones)
  and recent operating system (like NetBSD 7.1.2)

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/ppc/prep.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index 1558855247..fbcaebabc0 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -676,6 +676,7 @@ static void ppc_prep_init(MachineState *machine)
 
 static void prep_machine_init(MachineClass *mc)
 {
+    mc->deprecation_reason = "use 40p machine type instead";
     mc->desc = "PowerPC PREP platform";
     mc->init = ppc_prep_init;
     mc->block_default_type = IF_IDE;
-- 
2.11.0

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

* Re: [Qemu-devel] [PATCH 1/2] hw/ppc: on 40p machine, change default firmware to OpenBIOS
  2018-08-09 20:40 ` [Qemu-devel] [PATCH 1/2] hw/ppc: on 40p machine, change default firmware to OpenBIOS Hervé Poussineau
@ 2018-08-10  1:04   ` David Gibson
  2018-08-10  5:38     ` Hervé Poussineau
  0 siblings, 1 reply; 10+ messages in thread
From: David Gibson @ 2018-08-10  1:04 UTC (permalink / raw)
  To: Hervé Poussineau
  Cc: qemu-devel, Mark Cave-Ayland, Alexander Graf, qemu-ppc

[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]

On Thu, Aug 09, 2018 at 10:40:09PM +0200, Hervé Poussineau wrote:
> OpenBIOS gained 40p support in 5b20e4cacecb62fb2bdc6867c11d44cddd77c4ff
> Use it, instead of relying on the presence of a proprietary
> firmware.

Uh..  openhackware might be, well, a hack, but I don't think it's
propietary.  Replacing it with openbios might well be a good idea, but
we want an accurrate reason for doing so.

> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> ---
>  hw/ppc/prep.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
> index 3401570d98..1558855247 100644
> --- a/hw/ppc/prep.c
> +++ b/hw/ppc/prep.c
> @@ -736,7 +736,7 @@ static void ibm_40p_init(MachineState *machine)
>      /* PCI host */
>      dev = qdev_create(NULL, "raven-pcihost");
>      if (!bios_name) {
> -        bios_name = BIOS_FILENAME;
> +        bios_name = "openbios-ppc";
>      }
>      qdev_prop_set_string(dev, "bios-name", bios_name);
>      qdev_prop_set_uint32(dev, "elf-machine", PPC_ELF_MACHINE);

-- 
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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p'
  2018-08-09 20:40 ` [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p' Hervé Poussineau
@ 2018-08-10  1:06   ` David Gibson
  2018-08-10 16:20   ` Daniel P. Berrangé
  1 sibling, 0 replies; 10+ messages in thread
From: David Gibson @ 2018-08-10  1:06 UTC (permalink / raw)
  To: Hervé Poussineau
  Cc: qemu-devel, Mark Cave-Ayland, Alexander Graf, qemu-ppc

[-- Attachment #1: Type: text/plain, Size: 1849 bytes --]

On Thu, Aug 09, 2018 at 10:40:10PM +0200, Hervé Poussineau wrote:
> - prep machine is a fictional machine, so has no specifications. Which
>   devices can be changed/added/removed without impact? Are interrupts
>   correctly mapped?
> - prep firmware (OHW) has support only for IDE drives (no SCSI).
>   Booting from IDE has been broken approximatively 3 years ago, and nobody complained.
> - OHW is limited on IDE boot to a specific set of OS loaders.
>   These operating systems are of the 2004 time frame.
> - OHW can use -kernel. Linux kernel freezes a long time after PS/2 mouse
>   detection, and then screen becomes garbage. This was already broken in
>   QEMU v2.7, 2 years ago, and nobody complained.
> 
> On the other side:
> - 40p is a real machine, so emulation can be checked against
>   hardware specifications
> - OpenBIOS has support for SCSI block devices, including 40p LSI adapter
> - OpenBIOS can start mostly all Linux kernels (including recent ones)
>   and recent operating system (like NetBSD 7.1.2)
> 
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>

Applied to ppc-for-3.1.

> ---
>  hw/ppc/prep.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
> index 1558855247..fbcaebabc0 100644
> --- a/hw/ppc/prep.c
> +++ b/hw/ppc/prep.c
> @@ -676,6 +676,7 @@ static void ppc_prep_init(MachineState *machine)
>  
>  static void prep_machine_init(MachineClass *mc)
>  {
> +    mc->deprecation_reason = "use 40p machine type instead";
>      mc->desc = "PowerPC PREP platform";
>      mc->init = ppc_prep_init;
>      mc->block_default_type = IF_IDE;

-- 
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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [Qemu-devel] [PATCH 1/2] hw/ppc: on 40p machine, change default firmware to OpenBIOS
  2018-08-10  1:04   ` David Gibson
@ 2018-08-10  5:38     ` Hervé Poussineau
  0 siblings, 0 replies; 10+ messages in thread
From: Hervé Poussineau @ 2018-08-10  5:38 UTC (permalink / raw)
  To: David Gibson; +Cc: qemu-devel, Mark Cave-Ayland, Alexander Graf, qemu-ppc

Le 10/08/2018 à 03:04, David Gibson a écrit :
> On Thu, Aug 09, 2018 at 10:40:09PM +0200, Hervé Poussineau wrote:
>> OpenBIOS gained 40p support in 5b20e4cacecb62fb2bdc6867c11d44cddd77c4ff
>> Use it, instead of relying on the presence of a proprietary
>> firmware.
> 
> Uh..  openhackware might be, well, a hack, but I don't think it's
> propietary.  Replacing it with openbios might well be a good idea, but
> we want an accurrate reason for doing so.

Oops, you're right. That's what happens when you try to change/expand
your commit messages just before sending the patch. I will resend.

> 
>> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
>> ---
>>   hw/ppc/prep.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
>> index 3401570d98..1558855247 100644
>> --- a/hw/ppc/prep.c
>> +++ b/hw/ppc/prep.c
>> @@ -736,7 +736,7 @@ static void ibm_40p_init(MachineState *machine)
>>       /* PCI host */
>>       dev = qdev_create(NULL, "raven-pcihost");
>>       if (!bios_name) {
>> -        bios_name = BIOS_FILENAME;
>> +        bios_name = "openbios-ppc";
>>       }
>>       qdev_prop_set_string(dev, "bios-name", bios_name);
>>       qdev_prop_set_uint32(dev, "elf-machine", PPC_ELF_MACHINE);
> 

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

* Re: [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p'
       [not found] <mailman.21049.1533850544.1289.qemu-devel@nongnu.org>
@ 2018-08-10 16:17 ` Programmingkid
  2018-08-10 19:50   ` Hervé Poussineau
  0 siblings, 1 reply; 10+ messages in thread
From: Programmingkid @ 2018-08-10 16:17 UTC (permalink / raw)
  To: Herv? Poussineau
  Cc: QEMU Developers, Mark Cave-Ayland, David Gibson, Alexander Graf,
	list@suse.de:PowerPC list:PowerPC


> On Aug 9, 2018, at 5:35 PM, qemu-devel-request@nongnu.org wrote:
> 
> Date: Thu,  9 Aug 2018 22:40:10 +0200
> From: Herv? Poussineau <hpoussin@reactos.org>
> To: qemu-devel@nongnu.org
> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,	David Gibson
> 	<david@gibson.dropbear.id.au>, Alexander Graf <agraf@suse.de>,
> 	qemu-ppc@nongnu.org, Herv? Poussineau <hpoussin@reactos.org>
> Subject: [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type
> 	'prep', replaced by '40p'
> Message-ID: <20180809204010.3579-3-hpoussin@reactos.org>
> Content-Type: text/plain; charset=UTF-8
> 
> - prep machine is a fictional machine, so has no specifications. Which
>  devices can be changed/added/removed without impact? Are interrupts
>  correctly mapped?
> - prep firmware (OHW) has support only for IDE drives (no SCSI).
>  Booting from IDE has been broken approximatively 3 years ago, and nobody complained.
> - OHW is limited on IDE boot to a specific set of OS loaders.
>  These operating systems are of the 2004 time frame.
> - OHW can use -kernel. Linux kernel freezes a long time after PS/2 mouse
>  detection, and then screen becomes garbage. This was already broken in
>  QEMU v2.7, 2 years ago, and nobody complained.
> 
> On the other side:
> - 40p is a real machine, so emulation can be checked against
>  hardware specifications
> - OpenBIOS has support for SCSI block devices, including 40p LSI adapter
> - OpenBIOS can start mostly all Linux kernels (including recent ones)
>  and recent operating system (like NetBSD 7.1.2)
> 
> Signed-off-by: Herv? Poussineau <hpoussin@reactos.org>
> ---
> hw/ppc/prep.c | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
> index 1558855247..fbcaebabc0 100644
> --- a/hw/ppc/prep.c
> +++ b/hw/ppc/prep.c
> @@ -676,6 +676,7 @@ static void ppc_prep_init(MachineState *machine)
> 
> static void prep_machine_init(MachineClass *mc)
> {
> +    mc->deprecation_reason = "use 40p machine type instead";
>     mc->desc = "PowerPC PREP platform";
>     mc->init = ppc_prep_init;
>     mc->block_default_type = IF_IDE;
> -- 
> 2.11.0

Can a real 40p machine boot Windows NT 4.0 PowerPC?

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

* Re: [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p'
  2018-08-09 20:40 ` [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p' Hervé Poussineau
  2018-08-10  1:06   ` David Gibson
@ 2018-08-10 16:20   ` Daniel P. Berrangé
  1 sibling, 0 replies; 10+ messages in thread
From: Daniel P. Berrangé @ 2018-08-10 16:20 UTC (permalink / raw)
  To: Hervé Poussineau
  Cc: qemu-devel, qemu-ppc, Mark Cave-Ayland, Alexander Graf,
	David Gibson

On Thu, Aug 09, 2018 at 10:40:10PM +0200, Hervé Poussineau wrote:
> - prep machine is a fictional machine, so has no specifications. Which
>   devices can be changed/added/removed without impact? Are interrupts
>   correctly mapped?
> - prep firmware (OHW) has support only for IDE drives (no SCSI).
>   Booting from IDE has been broken approximatively 3 years ago, and nobody complained.
> - OHW is limited on IDE boot to a specific set of OS loaders.
>   These operating systems are of the 2004 time frame.
> - OHW can use -kernel. Linux kernel freezes a long time after PS/2 mouse
>   detection, and then screen becomes garbage. This was already broken in
>   QEMU v2.7, 2 years ago, and nobody complained.
> 
> On the other side:
> - 40p is a real machine, so emulation can be checked against
>   hardware specifications
> - OpenBIOS has support for SCSI block devices, including 40p LSI adapter
> - OpenBIOS can start mostly all Linux kernels (including recent ones)
>   and recent operating system (like NetBSD 7.1.2)
> 
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> ---
>  hw/ppc/prep.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
> index 1558855247..fbcaebabc0 100644
> --- a/hw/ppc/prep.c
> +++ b/hw/ppc/prep.c
> @@ -676,6 +676,7 @@ static void ppc_prep_init(MachineState *machine)
>  
>  static void prep_machine_init(MachineClass *mc)
>  {
> +    mc->deprecation_reason = "use 40p machine type instead";
>      mc->desc = "PowerPC PREP platform";
>      mc->init = ppc_prep_init;
>      mc->block_default_type = IF_IDE;

A deprecation needs to be listed in qemu-deprecated.texi for it to
be official.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

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

* Re: [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p'
  2018-08-10 16:17 ` Programmingkid
@ 2018-08-10 19:50   ` Hervé Poussineau
  0 siblings, 0 replies; 10+ messages in thread
From: Hervé Poussineau @ 2018-08-10 19:50 UTC (permalink / raw)
  To: Programmingkid
  Cc: QEMU Developers, Mark Cave-Ayland, David Gibson, Alexander Graf,
	list@suse.de:PowerPC list:PowerPC

Hello,

Le 10/08/2018 à 18:17, Programmingkid a écrit :
> 
> Can a real 40p machine boot Windows NT 4.0 PowerPC?
> 
> 

Yes.

A real 40p machine is able to run (at least):
- Windows NT (up to 4.0 SP1)
- AIX (up to 4.3.3)
- the beta of OS/2 PowerPC
- Solaris
- Linux
- NetBSD/PReP

However, Windows NT emulation doesn't work so well. OpenBIOS doesn't support (yet)
booting from the floppy drive.

Hervé

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

* Re: [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p'
       [not found] <mailman.20056.1533966041.1290.qemu-devel@nongnu.org>
@ 2018-08-11 14:48 ` Programmingkid
  0 siblings, 0 replies; 10+ messages in thread
From: Programmingkid @ 2018-08-11 14:48 UTC (permalink / raw)
  To: Herv? Poussineau
  Cc: QEMU Developers, Mark Cave-Ayland, David Gibson, Alexander Graf,
	list@suse.de:PowerPC list:PowerPC


> On Aug 11, 2018, at 1:40 AM, qemu-devel-request@nongnu.org wrote:
> 
> 
> Hello,
> 
> Le 10/08/2018 ? 18:17, Programmingkid a ?crit?:
>> 
>> Can a real 40p machine boot Windows NT 4.0 PowerPC?
>> 
>> 
> 
> Yes.
> 
> A real 40p machine is able to run (at least):
> - Windows NT (up to 4.0 SP1)
> - AIX (up to 4.3.3)
> - the beta of OS/2 PowerPC
> - Solaris
> - Linux
> - NetBSD/PReP
> 
> However, Windows NT emulation doesn't work so well. OpenBIOS doesn't support (yet)
> booting from the floppy drive.

I don't think floppy drive usage is necessary for Windows NT 4.0. I have installed the x86 version many times without having to use a floppy drive or a floppy image file. 

https://www.youtube.com/watch?v=XpAOCJFqImM
This video shows someone installing Windows NT 4.0 on a Motorola PowerStack 2 (PReP?) with only the CD-ROM drive.

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

end of thread, other threads:[~2018-08-11 14:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-09 20:40 [Qemu-devel] [PATCH 0/2] ppc: deprecate 'prep' machine Hervé Poussineau
2018-08-09 20:40 ` [Qemu-devel] [PATCH 1/2] hw/ppc: on 40p machine, change default firmware to OpenBIOS Hervé Poussineau
2018-08-10  1:04   ` David Gibson
2018-08-10  5:38     ` Hervé Poussineau
2018-08-09 20:40 ` [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p' Hervé Poussineau
2018-08-10  1:06   ` David Gibson
2018-08-10 16:20   ` Daniel P. Berrangé
     [not found] <mailman.21049.1533850544.1289.qemu-devel@nongnu.org>
2018-08-10 16:17 ` Programmingkid
2018-08-10 19:50   ` Hervé Poussineau
     [not found] <mailman.20056.1533966041.1290.qemu-devel@nongnu.org>
2018-08-11 14:48 ` Programmingkid

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).