Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-05-05 Thread Daniel P . Berrangé
On Mon, May 04, 2026 at 11:48:57AM +0200, Cédric Le Goater wrote:
> Hello Glenn,
> 
> 
> On 4/30/26 17:43, Miles Glenn wrote:
> > On Thu, 2026-04-30 at 17:15 +0200, Philippe Mathieu-Daudé wrote:
> > > Hi Harsh,
> > > 
> > > On 30/4/26 08:54, Harsh Prateek Bora wrote:
> > > > Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)
> > > > 
> > > > Glenn,
> > > > Please take a look and let us know your thoughts.
> > > 
> > > Glenn can have a look, but I think we are good to remove them now,
> > > they have been deprecated for more than 1 year, enough time for
> > > any reaction ;) Otherwise that'd defeat the point of deprecating
> > > and the pain for us to schedule and wait for months.
> > 
> > Philippe,
> > 
> > Sorry, I thought it had been made clear back in August of last year
> > that we would need the PPC405 CPU to hang around.  The topic was
> > brought up by Cedric when I added support for the PPE42 processor.  Is
> > there some formal process I need to go through to have it removed from
> > the deprecated list?
> 
> I don't know of any un-deprecation process. I suggest sending a patch
> to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit
> log should mention the PPE42 processor which is a stripped down version
> of the IBM PowerPC 405 processor.

Yes, that's exactly the process - just remove the text from deprecated.rst
and warning messages printed by the code (if any)

Daniel




Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-05-04 Thread Miles Glenn
Philippe,

Regarding the MAINTAINERS file, do we really need a new entry in there?
We already have an entry for the PPE42 CPU with myself as maintainer
and I believe the rest is covered by the "PowerPC TCG CPUs" entry. 
Were there any files in particular that you had in mind?

Thanks,

Glenn 

  
On Mon, 2026-05-04 at 09:59 -0500, Miles Glenn wrote:
> Ok, thanks.  I'll go forward with these suggestions.
> 
> Glenn
> 
> On Mon, 2026-05-04 at 14:32 +0200, Philippe Mathieu-Daudé wrote:
> > Cc'ing Daniel and Thomas, our deprecation experts.
> > 
> > On 4/5/26 11:48, Cédric Le Goater wrote:
> > > Hello Glenn,
> > > 
> > > 
> > > On 4/30/26 17:43, Miles Glenn wrote:
> > > > On Thu, 2026-04-30 at 17:15 +0200, Philippe Mathieu-Daudé wrote:
> > > > > Hi Harsh,
> > > > > 
> > > > > On 30/4/26 08:54, Harsh Prateek Bora wrote:
> > > > > > Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)
> > > > > > 
> > > > > > Glenn,
> > > > > > Please take a look and let us know your thoughts.
> > > > > 
> > > > > Glenn can have a look, but I think we are good to remove them now,
> > > > > they have been deprecated for more than 1 year, enough time for
> > > > > any reaction ;) Otherwise that'd defeat the point of deprecating
> > > > > and the pain for us to schedule and wait for months.
> > > > 
> > > > Philippe,
> > > > 
> > > > Sorry, I thought it had been made clear back in August of last year
> > > > that we would need the PPC405 CPU to hang around.  The topic was
> > > > brought up by Cedric when I added support for the PPE42 processor.  Is
> > > > there some formal process I need to go through to have it removed from
> > > > the deprecated list?
> > > 
> > > I don't know of any un-deprecation process. I suggest sending a patch
> > > to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit
> > > log should mention the PPE42 processor which is a stripped down version
> > > of the IBM PowerPC 405 processor.
> > 
> > That, and updating MAINTAINERS for these CPUs (likely adding a new entry
> > including at least Glenn).
> > 
> > > Thanks,
> > > 
> > > C.
> > > 
> > > https://lore.kernel.org/all/[email protected]/
> > > 




Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-05-04 Thread Miles Glenn
Ok, thanks.  I'll go forward with these suggestions.

Glenn

On Mon, 2026-05-04 at 14:32 +0200, Philippe Mathieu-Daudé wrote:
> Cc'ing Daniel and Thomas, our deprecation experts.
> 
> On 4/5/26 11:48, Cédric Le Goater wrote:
> > Hello Glenn,
> > 
> > 
> > On 4/30/26 17:43, Miles Glenn wrote:
> > > On Thu, 2026-04-30 at 17:15 +0200, Philippe Mathieu-Daudé wrote:
> > > > Hi Harsh,
> > > > 
> > > > On 30/4/26 08:54, Harsh Prateek Bora wrote:
> > > > > Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)
> > > > > 
> > > > > Glenn,
> > > > > Please take a look and let us know your thoughts.
> > > > 
> > > > Glenn can have a look, but I think we are good to remove them now,
> > > > they have been deprecated for more than 1 year, enough time for
> > > > any reaction ;) Otherwise that'd defeat the point of deprecating
> > > > and the pain for us to schedule and wait for months.
> > > 
> > > Philippe,
> > > 
> > > Sorry, I thought it had been made clear back in August of last year
> > > that we would need the PPC405 CPU to hang around.  The topic was
> > > brought up by Cedric when I added support for the PPE42 processor.  Is
> > > there some formal process I need to go through to have it removed from
> > > the deprecated list?
> > 
> > I don't know of any un-deprecation process. I suggest sending a patch
> > to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit
> > log should mention the PPE42 processor which is a stripped down version
> > of the IBM PowerPC 405 processor.
> 
> That, and updating MAINTAINERS for these CPUs (likely adding a new entry
> including at least Glenn).
> 
> > Thanks,
> > 
> > C.
> > 
> > https://lore.kernel.org/all/[email protected]/
> > 




Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-05-04 Thread Philippe Mathieu-Daudé

Cc'ing Daniel and Thomas, our deprecation experts.

On 4/5/26 11:48, Cédric Le Goater wrote:

Hello Glenn,


On 4/30/26 17:43, Miles Glenn wrote:

On Thu, 2026-04-30 at 17:15 +0200, Philippe Mathieu-Daudé wrote:

Hi Harsh,

On 30/4/26 08:54, Harsh Prateek Bora wrote:

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Glenn,
Please take a look and let us know your thoughts.


Glenn can have a look, but I think we are good to remove them now,
they have been deprecated for more than 1 year, enough time for
any reaction ;) Otherwise that'd defeat the point of deprecating
and the pain for us to schedule and wait for months.


Philippe,

Sorry, I thought it had been made clear back in August of last year
that we would need the PPC405 CPU to hang around.  The topic was
brought up by Cedric when I added support for the PPE42 processor.  Is
there some formal process I need to go through to have it removed from
the deprecated list?


I don't know of any un-deprecation process. I suggest sending a patch
to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit
log should mention the PPE42 processor which is a stripped down version
of the IBM PowerPC 405 processor.


That, and updating MAINTAINERS for these CPUs (likely adding a new entry
including at least Glenn).



Thanks,

C.

https://lore.kernel.org/all/[email protected]/






Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-05-04 Thread Cédric Le Goater

Hello Glenn,


On 4/30/26 17:43, Miles Glenn wrote:

On Thu, 2026-04-30 at 17:15 +0200, Philippe Mathieu-Daudé wrote:

Hi Harsh,

On 30/4/26 08:54, Harsh Prateek Bora wrote:

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Glenn,
Please take a look and let us know your thoughts.


Glenn can have a look, but I think we are good to remove them now,
they have been deprecated for more than 1 year, enough time for
any reaction ;) Otherwise that'd defeat the point of deprecating
and the pain for us to schedule and wait for months.


Philippe,

Sorry, I thought it had been made clear back in August of last year
that we would need the PPC405 CPU to hang around.  The topic was
brought up by Cedric when I added support for the PPE42 processor.  Is
there some formal process I need to go through to have it removed from
the deprecated list?


I don't know of any un-deprecation process. I suggest sending a patch
to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit
log should mention the PPE42 processor which is a stripped down version
of the IBM PowerPC 405 processor.

Thanks,

C.

https://lore.kernel.org/all/[email protected]/




Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-04-30 Thread Miles Glenn
On Thu, 2026-04-30 at 17:15 +0200, Philippe Mathieu-Daudé wrote:
> Hi Harsh,
> 
> On 30/4/26 08:54, Harsh Prateek Bora wrote:
> > Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)
> > 
> > Glenn,
> > Please take a look and let us know your thoughts.
> 
> Glenn can have a look, but I think we are good to remove them now,
> they have been deprecated for more than 1 year, enough time for
> any reaction ;) Otherwise that'd defeat the point of deprecating
> and the pain for us to schedule and wait for months.

Philippe,

Sorry, I thought it had been made clear back in August of last year
that we would need the PPC405 CPU to hang around.  The topic was
brought up by Cedric when I added support for the PPE42 processor.  Is
there some formal process I need to go through to have it removed from
the deprecated list?

Thanks,

Glenn

> 
> My 'Should we proceed' was more of a polite ping than a question ;)
> 
> > regards,
> > Harsh
> > 
> > On 30/04/26 11:00 am, Philippe Mathieu-Daudé wrote:
> > > On 14/1/25 08:47, Cédric Le Goater wrote:
> > > > On 1/14/25 08:11, Nicholas Piggin wrote:
> > > > > On Sat Jan 11, 2025 at 2:25 AM AEST, Richard Henderson wrote:
> > > > > > On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:
> > > > > > > Hi Cédric,
> > > > > > > 
> > > > > > > Cc'ing Laurent & Richard for user emulation.
> > > > > > > 
> > > > > > ...
> > > > > > > The deprecation message (see previous patch) was about the
> > > > > > > "ppc ``ref405ep`` machine". Is that OK we remove these CPUs
> > > > > > > for user emulation?
> > > > > > > 
> > > > > > > $ qemu-ppc -cpu help|fgrep 405
> > > > > > > PowerPC 405d2PVR 2001
> > > > > > > PowerPC 405gpa   PVR 4011
> > > > > > > PowerPC 405gpb   PVR 40110040
> > > > > > > PowerPC 405cra   PVR 40110041
> > > > > > > PowerPC 405gpc   PVR 40110082
> > > > > > > PowerPC 405gpd   PVR 401100c4
> > > > > > > PowerPC 405gp(alias for 405gpd)
> > > > > > > PowerPC 405crb   PVR 401100c5
> > > > > > > PowerPC 405crc   PVR 40110145
> > > > > > > PowerPC 405cr(alias for 405crc)
> > > > > > > PowerPC 405gpe   (alias for 405crc)
> > > > > > > PowerPC npe405h  PVR 414100c0
> > > > > > > PowerPC npe405h2 PVR 41410140
> > > > > > > PowerPC 405ezPVR 41511460
> > > > > > > PowerPC npe405l  PVR 416100c0
> > > > > > > PowerPC 405d4PVR 4181
> > > > > > > PowerPC 405  (alias for 405d4)
> > > > > > > PowerPC 405lpPVR 41f1
> > > > > > > PowerPC 405gpr   PVR 50910951
> > > > > > > PowerPC 405epPVR 51210950
> > > > > > 
> > > > > > Up to the ppc maintainers.  I don't know of anything interesting at 
> > > > > > the user-only level
> > > > > > wrt these cpus.
> > > > > 
> > > > > Just getting back to things after the break...
> > > > > 
> > > > > We are looking at modeling some microcontrollers on the POWER
> > > > > chips. There is an OCC power management controller which is a 405
> > > > > and some other weird cut down 405 derivatives, we're not up to
> > > > > those yet but we want to model them.
> > > > > 
> > > > > We should be able to remove a bunch of boards and CPUs, I just
> > > > > haven't started looking, so might be easier to wait for a bit.
> > > > > If it's not causing others too much problem, could we leave this
> > > > > in for the time being?
> > > > 
> > > > Sure. We will need a new SoC for the OCC and a firmware image. I think
> > > > these can be built from https://github.com/open-power/occ or, if not,
> > > > they should be made available.
> > > 
> > > Should we proceed with this removal now than v11.0.0 is released?
> > > 
> > 
> > 




Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-04-30 Thread Miles Glenn
Please do not remove the PowerPC 405 CPU.  We are currently using the
PPE42 CPU which is heavily based on the PowerPC 405 and we will be
using the PowerPC 405 CPU in the near future (probably within a year). 
I do not have a problem with the removal of any boards as long as we
keep at least one for regression testing of the PPC405 CPU.

Thank you,

Glenn Miles

On Thu, 2026-04-30 at 12:24 +0530, Harsh Prateek Bora wrote:
> Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)
> 
> Glenn,
> Please take a look and let us know your thoughts.
> 
> regards,
> Harsh
> 
> On 30/04/26 11:00 am, Philippe Mathieu-Daudé wrote:
> > On 14/1/25 08:47, Cédric Le Goater wrote:
> > > On 1/14/25 08:11, Nicholas Piggin wrote:
> > > > On Sat Jan 11, 2025 at 2:25 AM AEST, Richard Henderson wrote:
> > > > > On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:
> > > > > > Hi Cédric,
> > > > > > 
> > > > > > Cc'ing Laurent & Richard for user emulation.
> > > > > > 
> > > > > ...
> > > > > > The deprecation message (see previous patch) was about the
> > > > > > "ppc ``ref405ep`` machine". Is that OK we remove these CPUs
> > > > > > for user emulation?
> > > > > > 
> > > > > > $ qemu-ppc -cpu help|fgrep 405
> > > > > > PowerPC 405d2PVR 2001
> > > > > > PowerPC 405gpa   PVR 4011
> > > > > > PowerPC 405gpb   PVR 40110040
> > > > > > PowerPC 405cra   PVR 40110041
> > > > > > PowerPC 405gpc   PVR 40110082
> > > > > > PowerPC 405gpd   PVR 401100c4
> > > > > > PowerPC 405gp(alias for 405gpd)
> > > > > > PowerPC 405crb   PVR 401100c5
> > > > > > PowerPC 405crc   PVR 40110145
> > > > > > PowerPC 405cr(alias for 405crc)
> > > > > > PowerPC 405gpe   (alias for 405crc)
> > > > > > PowerPC npe405h  PVR 414100c0
> > > > > > PowerPC npe405h2 PVR 41410140
> > > > > > PowerPC 405ezPVR 41511460
> > > > > > PowerPC npe405l  PVR 416100c0
> > > > > > PowerPC 405d4PVR 4181
> > > > > > PowerPC 405  (alias for 405d4)
> > > > > > PowerPC 405lpPVR 41f1
> > > > > > PowerPC 405gpr   PVR 50910951
> > > > > > PowerPC 405epPVR 51210950
> > > > > 
> > > > > Up to the ppc maintainers.  I don't know of anything interesting at 
> > > > > the user-only level
> > > > > wrt these cpus.
> > > > 
> > > > Just getting back to things after the break...
> > > > 
> > > > We are looking at modeling some microcontrollers on the POWER
> > > > chips. There is an OCC power management controller which is a 405
> > > > and some other weird cut down 405 derivatives, we're not up to
> > > > those yet but we want to model them.
> > > > 
> > > > We should be able to remove a bunch of boards and CPUs, I just
> > > > haven't started looking, so might be easier to wait for a bit.
> > > > If it's not causing others too much problem, could we leave this
> > > > in for the time being?
> > > 
> > > Sure. We will need a new SoC for the OCC and a firmware image. I think
> > > these can be built from https://github.com/open-power/occ or, if not,
> > > they should be made available.
> > 
> > Should we proceed with this removal now than v11.0.0 is released?
> > 
> 
> 




Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-04-30 Thread Philippe Mathieu-Daudé

Hi Harsh,

On 30/4/26 08:54, Harsh Prateek Bora wrote:

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Glenn,
Please take a look and let us know your thoughts.


Glenn can have a look, but I think we are good to remove them now,
they have been deprecated for more than 1 year, enough time for
any reaction ;) Otherwise that'd defeat the point of deprecating
and the pain for us to schedule and wait for months.

My 'Should we proceed' was more of a polite ping than a question ;)


regards,
Harsh

On 30/04/26 11:00 am, Philippe Mathieu-Daudé wrote:

On 14/1/25 08:47, Cédric Le Goater wrote:

On 1/14/25 08:11, Nicholas Piggin wrote:

On Sat Jan 11, 2025 at 2:25 AM AEST, Richard Henderson wrote:

On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.


...

The deprecation message (see previous patch) was about the
"ppc ``ref405ep`` machine". Is that OK we remove these CPUs
for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2    PVR 2001
PowerPC 405gpa   PVR 4011
PowerPC 405gpb   PVR 40110040
PowerPC 405cra   PVR 40110041
PowerPC 405gpc   PVR 40110082
PowerPC 405gpd   PVR 401100c4
PowerPC 405gp    (alias for 405gpd)
PowerPC 405crb   PVR 401100c5
PowerPC 405crc   PVR 40110145
PowerPC 405cr    (alias for 405crc)
PowerPC 405gpe   (alias for 405crc)
PowerPC npe405h  PVR 414100c0
PowerPC npe405h2 PVR 41410140
PowerPC 405ez    PVR 41511460
PowerPC npe405l  PVR 416100c0
PowerPC 405d4    PVR 4181
PowerPC 405  (alias for 405d4)
PowerPC 405lp    PVR 41f1
PowerPC 405gpr   PVR 50910951
PowerPC 405ep    PVR 51210950


Up to the ppc maintainers.  I don't know of anything interesting at 
the user-only level

wrt these cpus.


Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER
chips. There is an OCC power management controller which is a 405
and some other weird cut down 405 derivatives, we're not up to
those yet but we want to model them.

We should be able to remove a bunch of boards and CPUs, I just
haven't started looking, so might be easier to wait for a bit.
If it's not causing others too much problem, could we leave this
in for the time being?


Sure. We will need a new SoC for the OCC and a firmware image. I think
these can be built from https://github.com/open-power/occ or, if not,
they should be made available.


Should we proceed with this removal now than v11.0.0 is released?










Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-04-29 Thread Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Glenn,
Please take a look and let us know your thoughts.

regards,
Harsh

On 30/04/26 11:00 am, Philippe Mathieu-Daudé wrote:

On 14/1/25 08:47, Cédric Le Goater wrote:

On 1/14/25 08:11, Nicholas Piggin wrote:

On Sat Jan 11, 2025 at 2:25 AM AEST, Richard Henderson wrote:

On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.


...

The deprecation message (see previous patch) was about the
"ppc ``ref405ep`` machine". Is that OK we remove these CPUs
for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2    PVR 2001
PowerPC 405gpa   PVR 4011
PowerPC 405gpb   PVR 40110040
PowerPC 405cra   PVR 40110041
PowerPC 405gpc   PVR 40110082
PowerPC 405gpd   PVR 401100c4
PowerPC 405gp    (alias for 405gpd)
PowerPC 405crb   PVR 401100c5
PowerPC 405crc   PVR 40110145
PowerPC 405cr    (alias for 405crc)
PowerPC 405gpe   (alias for 405crc)
PowerPC npe405h  PVR 414100c0
PowerPC npe405h2 PVR 41410140
PowerPC 405ez    PVR 41511460
PowerPC npe405l  PVR 416100c0
PowerPC 405d4    PVR 4181
PowerPC 405  (alias for 405d4)
PowerPC 405lp    PVR 41f1
PowerPC 405gpr   PVR 50910951
PowerPC 405ep    PVR 51210950


Up to the ppc maintainers.  I don't know of anything interesting at 
the user-only level

wrt these cpus.


Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER
chips. There is an OCC power management controller which is a 405
and some other weird cut down 405 derivatives, we're not up to
those yet but we want to model them.

We should be able to remove a bunch of boards and CPUs, I just
haven't started looking, so might be easier to wait for a bit.
If it's not causing others too much problem, could we leave this
in for the time being?


Sure. We will need a new SoC for the OCC and a firmware image. I think
these can be built from https://github.com/open-power/occ or, if not,
they should be made available.


Should we proceed with this removal now than v11.0.0 is released?








Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2026-04-29 Thread Philippe Mathieu-Daudé

On 14/1/25 08:47, Cédric Le Goater wrote:

On 1/14/25 08:11, Nicholas Piggin wrote:

On Sat Jan 11, 2025 at 2:25 AM AEST, Richard Henderson wrote:

On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.


...

The deprecation message (see previous patch) was about the
"ppc ``ref405ep`` machine". Is that OK we remove these CPUs
for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2    PVR 2001
PowerPC 405gpa   PVR 4011
PowerPC 405gpb   PVR 40110040
PowerPC 405cra   PVR 40110041
PowerPC 405gpc   PVR 40110082
PowerPC 405gpd   PVR 401100c4
PowerPC 405gp    (alias for 405gpd)
PowerPC 405crb   PVR 401100c5
PowerPC 405crc   PVR 40110145
PowerPC 405cr    (alias for 405crc)
PowerPC 405gpe   (alias for 405crc)
PowerPC npe405h  PVR 414100c0
PowerPC npe405h2 PVR 41410140
PowerPC 405ez    PVR 41511460
PowerPC npe405l  PVR 416100c0
PowerPC 405d4    PVR 4181
PowerPC 405  (alias for 405d4)
PowerPC 405lp    PVR 41f1
PowerPC 405gpr   PVR 50910951
PowerPC 405ep    PVR 51210950


Up to the ppc maintainers.  I don't know of anything interesting at 
the user-only level

wrt these cpus.


Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER
chips. There is an OCC power management controller which is a 405
and some other weird cut down 405 derivatives, we're not up to
those yet but we want to model them.

We should be able to remove a bunch of boards and CPUs, I just
haven't started looking, so might be easier to wait for a bit.
If it's not causing others too much problem, could we leave this
in for the time being?


Sure. We will need a new SoC for the OCC and a firmware image. I think
these can be built from https://github.com/open-power/occ or, if not,
they should be made available.


Should we proceed with this removal now than v11.0.0 is released?



Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2025-01-16 Thread Daniel Henrique Barboza




On 1/14/25 4:11 AM, Nicholas Piggin wrote:

On Sat Jan 11, 2025 at 2:25 AM AEST, Richard Henderson wrote:

On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.


...

The deprecation message (see previous patch) was about the
"ppc ``ref405ep`` machine". Is that OK we remove these CPUs
for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2    PVR 2001
PowerPC 405gpa   PVR 4011
PowerPC 405gpb   PVR 40110040
PowerPC 405cra   PVR 40110041
PowerPC 405gpc   PVR 40110082
PowerPC 405gpd   PVR 401100c4
PowerPC 405gp    (alias for 405gpd)
PowerPC 405crb   PVR 401100c5
PowerPC 405crc   PVR 40110145
PowerPC 405cr    (alias for 405crc)
PowerPC 405gpe   (alias for 405crc)
PowerPC npe405h  PVR 414100c0
PowerPC npe405h2 PVR 41410140
PowerPC 405ez    PVR 41511460
PowerPC npe405l  PVR 416100c0
PowerPC 405d4    PVR 4181
PowerPC 405  (alias for 405d4)
PowerPC 405lp    PVR 41f1
PowerPC 405gpr   PVR 50910951
PowerPC 405ep    PVR 51210950


Up to the ppc maintainers.  I don't know of anything interesting at the 
user-only level
wrt these cpus.


Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER
chips. There is an OCC power management controller which is a 405
and some other weird cut down 405 derivatives, we're not up to
those yet but we want to model them.

We should be able to remove a bunch of boards and CPUs, I just
haven't started looking, so might be easier to wait for a bit.
If it's not causing others too much problem, could we leave this
in for the time being?



That's fine, but then we need to at least mark you as a maintainer here:

PowerPC Machines

405 (ref405ep)
L: [email protected]
S: Orphan  <
F: hw/ppc/ppc405*
F: tests/functional/test_ppc_405.py

Either with "S: Odd Fixes" or "S: Maintained" (or S: Supported, if that's 
really the
case). And perhaps re-visit the deprecation notice too.

I'm being petty here because, right now, all 405 code is marked for 
deprecation, has no
firmware images and Linux support and etc like Cedric mentioned, and it fits 
exactly
the criteria everyone else uses for removal. If we want to keep it around we'll 
need
at least MAINTAINER changes to indicate it.


Thanks,

Daniel




Thanks,
Nick





Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2025-01-13 Thread Cédric Le Goater

On 1/14/25 08:11, Nicholas Piggin wrote:

On Sat Jan 11, 2025 at 2:25 AM AEST, Richard Henderson wrote:

On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.


...

The deprecation message (see previous patch) was about the
"ppc ``ref405ep`` machine". Is that OK we remove these CPUs
for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2    PVR 2001
PowerPC 405gpa   PVR 4011
PowerPC 405gpb   PVR 40110040
PowerPC 405cra   PVR 40110041
PowerPC 405gpc   PVR 40110082
PowerPC 405gpd   PVR 401100c4
PowerPC 405gp    (alias for 405gpd)
PowerPC 405crb   PVR 401100c5
PowerPC 405crc   PVR 40110145
PowerPC 405cr    (alias for 405crc)
PowerPC 405gpe   (alias for 405crc)
PowerPC npe405h  PVR 414100c0
PowerPC npe405h2 PVR 41410140
PowerPC 405ez    PVR 41511460
PowerPC npe405l  PVR 416100c0
PowerPC 405d4    PVR 4181
PowerPC 405  (alias for 405d4)
PowerPC 405lp    PVR 41f1
PowerPC 405gpr   PVR 50910951
PowerPC 405ep    PVR 51210950


Up to the ppc maintainers.  I don't know of anything interesting at the 
user-only level
wrt these cpus.


Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER
chips. There is an OCC power management controller which is a 405
and some other weird cut down 405 derivatives, we're not up to
those yet but we want to model them.

We should be able to remove a bunch of boards and CPUs, I just
haven't started looking, so might be easier to wait for a bit.
If it's not causing others too much problem, could we leave this
in for the time being?


Sure. We will need a new SoC for the OCC and a firmware image. I think
these can be built from https://github.com/open-power/occ or, if not,
they should be made available.

Thanks,

C.




Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2025-01-13 Thread Nicholas Piggin
On Sat Jan 11, 2025 at 2:25 AM AEST, Richard Henderson wrote:
> On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:
> > Hi Cédric,
> > 
> > Cc'ing Laurent & Richard for user emulation.
> > 
> ...
> > The deprecation message (see previous patch) was about the
> > "ppc ``ref405ep`` machine". Is that OK we remove these CPUs
> > for user emulation?
> > 
> > $ qemu-ppc -cpu help|fgrep 405
> > PowerPC 405d2    PVR 2001
> > PowerPC 405gpa   PVR 4011
> > PowerPC 405gpb   PVR 40110040
> > PowerPC 405cra   PVR 40110041
> > PowerPC 405gpc   PVR 40110082
> > PowerPC 405gpd   PVR 401100c4
> > PowerPC 405gp    (alias for 405gpd)
> > PowerPC 405crb   PVR 401100c5
> > PowerPC 405crc   PVR 40110145
> > PowerPC 405cr    (alias for 405crc)
> > PowerPC 405gpe   (alias for 405crc)
> > PowerPC npe405h  PVR 414100c0
> > PowerPC npe405h2 PVR 41410140
> > PowerPC 405ez    PVR 41511460
> > PowerPC npe405l  PVR 416100c0
> > PowerPC 405d4    PVR 4181
> > PowerPC 405  (alias for 405d4)
> > PowerPC 405lp    PVR 41f1
> > PowerPC 405gpr   PVR 50910951
> > PowerPC 405ep    PVR 51210950
>
> Up to the ppc maintainers.  I don't know of anything interesting at the 
> user-only level 
> wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER
chips. There is an OCC power management controller which is a 405
and some other weird cut down 405 derivatives, we're not up to
those yet but we want to model them.

We should be able to remove a bunch of boards and CPUs, I just
haven't started looking, so might be easier to wait for a bit.
If it's not causing others too much problem, could we leave this
in for the time being?

Thanks,
Nick



Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2025-01-10 Thread Richard Henderson

On 1/10/25 08:15, Philippe Mathieu-Daudé wrote:

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.


...

The deprecation message (see previous patch) was about the
"ppc ``ref405ep`` machine". Is that OK we remove these CPUs
for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2    PVR 2001
PowerPC 405gpa   PVR 4011
PowerPC 405gpb   PVR 40110040
PowerPC 405cra   PVR 40110041
PowerPC 405gpc   PVR 40110082
PowerPC 405gpd   PVR 401100c4
PowerPC 405gp    (alias for 405gpd)
PowerPC 405crb   PVR 401100c5
PowerPC 405crc   PVR 40110145
PowerPC 405cr    (alias for 405crc)
PowerPC 405gpe   (alias for 405crc)
PowerPC npe405h  PVR 414100c0
PowerPC npe405h2 PVR 41410140
PowerPC 405ez    PVR 41511460
PowerPC npe405l  PVR 416100c0
PowerPC 405d4    PVR 4181
PowerPC 405  (alias for 405d4)
PowerPC 405lp    PVR 41f1
PowerPC 405gpr   PVR 50910951
PowerPC 405ep    PVR 51210950


Up to the ppc maintainers.  I don't know of anything interesting at the user-only level 
wrt these cpus.



r~



Re: [PATCH 3/9] ppc/ppc405: Remove CPU

2025-01-10 Thread Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

On 10/1/25 15:17, Cédric Le Goater wrote:

Remove the 405 CPU family and all SPR definitions that don't have
specific read/write handlers.

Signed-off-by: Cédric Le Goater 
---
  target/ppc/cpu-models.h |  30 -
  target/ppc/cpu.h|   9 --
  target/ppc/cpu-models.c |  57 --
  target/ppc/cpu_init.c   | 246 
  4 files changed, 342 deletions(-)

diff --git a/target/ppc/cpu-models.h b/target/ppc/cpu-models.h
index 72ad31ba50d7..f23cb383d683 100644
--- a/target/ppc/cpu-models.h
+++ b/target/ppc/cpu-models.h
@@ -39,36 +39,6 @@ extern PowerPCCPUAlias ppc_cpu_aliases[];
  /* PVR definitions for most known PowerPC
*/
  enum {
  /* IBM Processor for Network Resources */
-CPU_POWERPC_COBRA  = 0x1010, /* XXX: 405 ? */
-/* PowerPC 405 family */
-/* PowerPC 405 cores */
-CPU_POWERPC_405D2  = 0x2001,
-CPU_POWERPC_405D4  = 0x4181,
-/* PowerPC 405 microcontrollers */
-/* XXX: missing 0x200108a0 */
-CPU_POWERPC_405CRa = 0x40110041,
-CPU_POWERPC_405CRb = 0x401100C5,
-CPU_POWERPC_405CRc = 0x40110145,
-CPU_POWERPC_405EP  = 0x51210950,
-CPU_POWERPC_405EZ  = 0x41511460, /* 0x51210950 ? */
-CPU_POWERPC_405GPa = 0x4011,
-CPU_POWERPC_405GPb = 0x40110040,
-CPU_POWERPC_405GPc = 0x40110082,
-CPU_POWERPC_405GPd = 0x401100C4,
-CPU_POWERPC_405GPR = 0x50910951,
-CPU_POWERPC_405LP  = 0x41F1,
-/* IBM network processors */
-CPU_POWERPC_NPE405H= 0x414100C0,
-CPU_POWERPC_NPE405H2   = 0x41410140,
-CPU_POWERPC_NPE405L= 0x416100C0,
-CPU_POWERPC_NPE4GS3= 0x40B1,
-/* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
-CPU_POWERPC_STB03  = 0x4031, /* 0x4013 ? */
-CPU_POWERPC_STB04  = 0x4181,
-CPU_POWERPC_STB25  = 0x51510950,
-/* Xilinx cores */
-CPU_POWERPC_X2VP4  = 0x20010820,
-CPU_POWERPC_X2VP20 = 0x20010860,
  /* PowerPC 440 family */




diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c
index ece348178188..9d8f479fae70 100644
--- a/target/ppc/cpu-models.c
+++ b/target/ppc/cpu-models.c
@@ -67,56 +67,6 @@
  POWERPC_DEF_SVR(_name, _desc, _pvr, POWERPC_SVR_NONE, _type)
  
  /* Embedded PowerPC  */

-/* PowerPC 405 family*/
-/* PowerPC 405 cores */
-POWERPC_DEF("405d2", CPU_POWERPC_405D2,  405,
-"PowerPC 405 D2")
-POWERPC_DEF("405d4", CPU_POWERPC_405D4,  405,
-"PowerPC 405 D4")
-/* PowerPC 405 microcontrollers  */
-POWERPC_DEF("405cra",CPU_POWERPC_405CRa, 405,
-"PowerPC 405 CRa")
-POWERPC_DEF("405crb",CPU_POWERPC_405CRb, 405,
-"PowerPC 405 CRb")
-POWERPC_DEF("405crc",CPU_POWERPC_405CRc, 405,
-"PowerPC 405 CRc")
-POWERPC_DEF("405ep", CPU_POWERPC_405EP,  405,
-"PowerPC 405 EP")
-POWERPC_DEF("405ez", CPU_POWERPC_405EZ,  405,
-"PowerPC 405 EZ")
-POWERPC_DEF("405gpa",CPU_POWERPC_405GPa, 405,
-"PowerPC 405 GPa")
-POWERPC_DEF("405gpb",CPU_POWERPC_405GPb, 405,
-"PowerPC 405 GPb")
-POWERPC_DEF("405gpc",CPU_POWERPC_405GPc, 405,
-"PowerPC 405 GPc")
-POWERPC_DEF("405gpd",CPU_POWERPC_405GPd, 405,
-"PowerPC 405 GPd")
-POWERPC_DEF("405gpr",CPU_POWERPC_405GPR, 405,
-"PowerPC 405 GPR")
-POWERPC_DEF("405lp", CPU_POWERPC_405LP,  405,
-"PowerPC 405 LP")
-POWERPC_DEF("npe405h",   CPU_POWERPC_NPE405H,405,
-"Npe405 H")
-POWERPC_DEF("npe405h2",  CPU_POWERPC_NPE405H2,   405,
-"Npe405 H2")
-POWERPC_DEF("npe405l",   CPU_POWERPC_NPE405L,405,
-"Npe405 L")
-POWERPC_DEF("npe4gs3",   CPU_POWERPC_NPE4GS3,405,
-"Npe4GS3")
-/* PowerPC 401/403/405 based set-top-box microcontrollers*/
-POWERPC_DEF("stb03", CPU_POWERPC_STB03,  405,
-"STB03xx")
-POWERPC_DEF("stb04", CPU_POWERPC_STB04,