[PATCH 0/8] PALcode fixes required to run NetBSD/alpha.

Jason Thorpe posted 8 patches 2 years, 9 months ago
Failed in applying to current master (apply log)
hwrpb.h       | 54 +++++++++++++++++++++++++++++++
init.c        | 88 +++++++++++++++++++++++++++++++++++++++------------
memcpy.c      |  2 +-
memset.c      |  2 +-
pal.S         | 15 ++++++---
pci.c         | 31 +++++++++++++-----
pci.h         |  5 +++
printf.c      |  4 +--
protos.h      | 30 +++++++++++++++---
sys-clipper.h | 27 ++++++++++++++++
vgaio.c       |  2 ++
11 files changed, 218 insertions(+), 42 deletions(-)
[PATCH 0/8] PALcode fixes required to run NetBSD/alpha.
Posted by Jason Thorpe 2 years, 9 months ago
Included here are a set of patches that fix issues in qemu-palcode needed
to run NetBSD/alpha under Qemu.  Some fix garden-variety bugs, some fix
deviations from the architecture specification or behavior of the SRM
console on real Alpha hardware.

Two of the changes (patch 6 and patch 7) also require other fixes in
Qemu itself, which will be submitted separately.  However, the changes
are fully compatible with existing Qemu alpha VMs because Linux does
not use the the SRM PCI interrupt mapping information (it has its own
tables for the system variations it supports) or the Console Terminal
Block in the HWRPB.

Jason Thorpe (8):
  Make qemu-palcode build environment standalone. NFC.
  Fix delivery of unaligned access exceptions.
  Fix initialization of the hwrpb.hwrpb.cpuid field.
  Make some PCI macros available to other files.  NFC.
  Fix incorrect initialization of PCI BARs.
  Provide interrupt mapping information in PCI config registers.
  Provide a Console Terminal Block in the HWRPB.
  Fixes for seconday CPU start-up.

 hwrpb.h       | 54 +++++++++++++++++++++++++++++++
 init.c        | 88 +++++++++++++++++++++++++++++++++++++++------------
 memcpy.c      |  2 +-
 memset.c      |  2 +-
 pal.S         | 15 ++++++---
 pci.c         | 31 +++++++++++++-----
 pci.h         |  5 +++
 printf.c      |  4 +--
 protos.h      | 30 +++++++++++++++---
 sys-clipper.h | 27 ++++++++++++++++
 vgaio.c       |  2 ++
 11 files changed, 218 insertions(+), 42 deletions(-)

-- 
2.30.2


Re: [PATCH 0/8] PALcode fixes required to run NetBSD/alpha.
Posted by Philippe Mathieu-Daudé 2 years, 9 months ago
Cc'ing Richard & Emilio.

On 6/3/21 5:53 AM, Jason Thorpe wrote:
> Included here are a set of patches that fix issues in qemu-palcode needed
> to run NetBSD/alpha under Qemu.  Some fix garden-variety bugs, some fix
> deviations from the architecture specification or behavior of the SRM
> console on real Alpha hardware.
> 
> Two of the changes (patch 6 and patch 7) also require other fixes in
> Qemu itself, which will be submitted separately.  However, the changes
> are fully compatible with existing Qemu alpha VMs because Linux does
> not use the the SRM PCI interrupt mapping information (it has its own
> tables for the system variations it supports) or the Console Terminal
> Block in the HWRPB.
> 
> Jason Thorpe (8):
>   Make qemu-palcode build environment standalone. NFC.
>   Fix delivery of unaligned access exceptions.
>   Fix initialization of the hwrpb.hwrpb.cpuid field.
>   Make some PCI macros available to other files.  NFC.
>   Fix incorrect initialization of PCI BARs.
>   Provide interrupt mapping information in PCI config registers.
>   Provide a Console Terminal Block in the HWRPB.
>   Fixes for seconday CPU start-up.
> 
>  hwrpb.h       | 54 +++++++++++++++++++++++++++++++
>  init.c        | 88 +++++++++++++++++++++++++++++++++++++++------------
>  memcpy.c      |  2 +-
>  memset.c      |  2 +-
>  pal.S         | 15 ++++++---
>  pci.c         | 31 +++++++++++++-----
>  pci.h         |  5 +++
>  printf.c      |  4 +--
>  protos.h      | 30 +++++++++++++++---
>  sys-clipper.h | 27 ++++++++++++++++
>  vgaio.c       |  2 ++
>  11 files changed, 218 insertions(+), 42 deletions(-)
> 


Re: [PATCH 0/8] PALcode fixes required to run NetBSD/alpha.
Posted by Richard Henderson 2 years, 9 months ago
On 6/2/21 8:53 PM, Jason Thorpe wrote:
> Jason Thorpe (8):
>    Make qemu-palcode build environment standalone. NFC.
>    Fix delivery of unaligned access exceptions.
>    Fix initialization of the hwrpb.hwrpb.cpuid field.
>    Make some PCI macros available to other files.  NFC.
>    Fix incorrect initialization of PCI BARs.
>    Provide interrupt mapping information in PCI config registers.
>    Provide a Console Terminal Block in the HWRPB.
>    Fixes for seconday CPU start-up.

Thanks.  Applied all but the Console Terminal Block patch, and pushed to my 
upstream github repo.

I'll wait for an update on the ctb patch before refreshing the image in the 
qemu repo.


r~