[PATCH 0/9] target/hppa qemu v8.2 regression fixes

deller@kernel.org posted 9 patches 10 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240104183628.101366-1-deller@kernel.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Helge Deller <deller@gmx.de>
There is a newer version of this series
hw/hppa/machine.c         |  33 ++++++++++++++++++++-------------
hw/pci-host/astro.c       |  26 +++++++++++++++++++++++---
pc-bios/hppa-firmware.img | Bin 681388 -> 163316 bytes
roms/seabios-hppa         |   2 +-
target/hppa/cpu.c         |   2 +-
target/hppa/mem_helper.c  |   4 ++--
target/hppa/op_helper.c   |   2 +-
7 files changed, 48 insertions(+), 21 deletions(-)
[PATCH 0/9] target/hppa qemu v8.2 regression fixes
Posted by deller@kernel.org 10 months, 3 weeks ago
From: Helge Deller <deller@gmx.de>

There were some regressions introduced with Qemu v8.2 on the hppa/hppa64
target, e.g.:

- 32-bit HP-UX crashes on B160L (32-bit) machine
- NetBSD boot failure due to power button in page zero
- NetBSD FPU detection failure

This small patch series fixes those known regressions and
additionally:

- allows usage of the max. 3840MB of memory (instead of 3GB),
- adds support for the qemu --nodefaults option (to debug other devices)

I tried to keep the patches small to make backporting easier.

This patch set will not fix those known (non-regression) bugs:
- HP-UX and NetBSD still fail to boot on the new 64-bit C3700 machine
- Linux kernel will still fail to boot on C3700 as long as kernel modules are used.

The whole series can be pulled from the "hppa-fixes-8.2" branch from:
https://github.com/hdeller/qemu-hppa.git        hppa-fixes-8.2

Please test and review.

Helge

Helge Deller (9):
  hw/hppa/machine: Allow up to 3840 MB total memory
  hw/hppa/machine: Disable default devices with --nodefaults option
  hw/pci-host/astro: Add missing astro & elroy registers for NetBSD
  target/hppa: Fix PDC address translation on PA2.0 with PSW.W=0
  target/hppa: Strip upper 32-bits of IOR on error in probe
  target/hppa: Strip upper 32-bits of IOR on unaligned access error
  hw/hppa: Move software power button address back into PDC
  target/hppa: Avoid accessing %gr0 when raising exception
  target/hppa: Update SeaBIOS-hppa to version 14

 hw/hppa/machine.c         |  33 ++++++++++++++++++++-------------
 hw/pci-host/astro.c       |  26 +++++++++++++++++++++++---
 pc-bios/hppa-firmware.img | Bin 681388 -> 163316 bytes
 roms/seabios-hppa         |   2 +-
 target/hppa/cpu.c         |   2 +-
 target/hppa/mem_helper.c  |   4 ++--
 target/hppa/op_helper.c   |   2 +-
 7 files changed, 48 insertions(+), 21 deletions(-)

-- 
2.43.0
Re: [PATCH 0/9] target/hppa qemu v8.2 regression fixes
Posted by Michael Tokarev 10 months, 3 weeks ago
04.01.2024 21:36, deller@kernel.org пишет:
> From: Helge Deller <deller@gmx.de>
> 
> There were some regressions introduced with Qemu v8.2 on the hppa/hppa64
> target, e.g.:
> 
> - 32-bit HP-UX crashes on B160L (32-bit) machine
> - NetBSD boot failure due to power button in page zero
> - NetBSD FPU detection failure
> 
> This small patch series fixes those known regressions and
> additionally:
> 
> - allows usage of the max. 3840MB of memory (instead of 3GB),
> - adds support for the qemu --nodefaults option (to debug other devices)
> 
> I tried to keep the patches small to make backporting easier.
> 
> This patch set will not fix those known (non-regression) bugs:
> - HP-UX and NetBSD still fail to boot on the new 64-bit C3700 machine
> - Linux kernel will still fail to boot on C3700 as long as kernel modules are used.
> 
> The whole series can be pulled from the "hppa-fixes-8.2" branch from:
> https://github.com/hdeller/qemu-hppa.git        hppa-fixes-8.2
> 
> Please test and review.

I just pushed whole thing to debian, let's see...

/mjt

Re: [PATCH 0/9] target/hppa qemu v8.2 regression fixes
Posted by Michael Tokarev 10 months, 3 weeks ago
04.01.2024 21:36, deller@kernel.org:
...

Not commenting on anything yet, but this one just draw my attention:

>   pc-bios/hppa-firmware.img | Bin 681388 -> 163316 bytes

This is quite a significant reduction in size, - more than 4 times.
Is that right?

/mjt
Re: [PATCH 0/9] target/hppa qemu v8.2 regression fixes
Posted by Helge Deller 10 months, 3 weeks ago
On 1/4/24 19:46, Michael Tokarev wrote:
> 04.01.2024 21:36, deller@kernel.org:
> ...
>
> Not commenting on anything yet, but this one just draw my attention:
>
>>   pc-bios/hppa-firmware.img | Bin 681388 -> 163316 bytes
>
> This is quite a significant reduction in size, - more than 4 times.
> Is that right?

Yes. I stripped the firmware binary to keep the mail overhead small.
The symbols are not needed as long as you don't do debugging, and
if you want to debug you better build the firmware yourself anyway.

Helge