Skip to content

Add missing SPARC support

Eric Snowberg grub-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15sparc64: fix OF path names for sun4v systemsgrub-core/osdep/linux/ofpath.c+160 -20 replies
2/15sparc64: Add blocklist GPT support for SPARCgrub-core/osdep/linux/blocklist.c util/setup.c+14 -35 replies
3/15grub-install: fix memory leakutil/grub-install.c+1 -00 replies
4/15sparc64: Use the correct disk name in core.imginclude/grub/emu/getroot.h util/grub-install.c util/probe.c+16 -10 replies
5/15ieee1275: fix segfault in grub-ofpathnameutil/ieee1275/grub-ofpathname.c+3 -10 replies
6/15ieee1275: add nvme support within ofpathgrub-core/osdep/linux/ofpath.c+46 -00 replies
7/15ofdisk: memory corruption fixgrub-core/disk/ieee1275/ofdisk.c+13 -170 replies
8/15ofdisk: move open logicgrub-core/disk/ieee1275/ofdisk.c+14 -150 replies
9/15ieee1275: ofdisk - don't continue to query block-size after we have itgrub-core/disk/ieee1275/ofdisk.c+13 -130 replies
10/15ofdisk: refactor open logicgrub-core/disk/ieee1275/ofdisk.c+29 -180 replies
11/15sparc64: boot performance improvementsgrub-core/disk/ieee1275/ofdisk.c grub-core/kern/ieee1275/cmain.c include/grub/ieee1275/ieee1275.h+22 -10 replies
12/15ofdisk: only add aliases that existgrub-core/disk/ieee1275/ofdisk.c grub-core/kern/ieee1275/cmain.c grub-core/kern/ieee1275/ieee1275.c +3 more+440 -00 replies
13/15sparc64: add disks that don't have a devalias to the device listgrub-core/disk/ieee1275/ofdisk.c+144 -00 replies
14/15parser: Remove escape from the state transitionsgrub-core/kern/parser.c+0 -10 replies
15/15sparc64: ignore hypervisor reboot memory block devicegrub-core/disk/ieee1275/ofdisk.c grub-core/kern/ieee1275/cmain.c include/grub/ieee1275/ieee1275.h+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/15] Add missing SPARC support

First set of patches to add sun4v SPARC support to grub.

Major additions include:

* Properly scan for both SAS and SCSI disks
* Increasing boot performance
* GPT support
* NVMe support
* Various bug fixes

Before this patch, there isn’t a single SAS HBA that was enumerated correctly on SPARC. I went back 10 years and believe I have added every HBA with OF support.

Without these patches, on larger systems, it took 15+ minutes to get to the grub menu. Now it takes about a second.

This code has been tested on T1, T2, T4, T5, and T7 hardware.

Eric Snowberg (15):
sparc64: fix OF path names for sun4v systems
sparc64: Add blocklist GPT support for SPARC
grub-install: fix memory leak
sparc64: Use the correct disk name in core.img
ieee1275: fix segfault in grub-ofpathname
ieee1275: add nvme support within ofpath
ofdisk: memory corruption fix
ofdisk: move open logic
ieee1275: ofdisk - don't continue to query block-size after we have
it
ofdisk: refactor open logic
sparc64: boot performance improvements
ofdisk: only add aliases that exist
sparc64: add disks that don't have a devalias to the device list
parser: Remove escape from the state transitions
sparc64: ignore hypervisor reboot memory block device

 grub-core/disk/ieee1275/ofdisk.c           |  499 +++++++++++++++++++++++++---
 grub-core/kern/ieee1275/cmain.c            |    8 +
 grub-core/kern/ieee1275/ieee1275.c         |   88 +++++
 grub-core/kern/parser.c                    |    1 -
 grub-core/kern/sparc64/ieee1275/ieee1275.c |  111 ++++++
 grub-core/osdep/linux/blocklist.c          |    5 +
 grub-core/osdep/linux/ofpath.c             |  208 ++++++++++++-
 include/grub/emu/getroot.h                 |    2 +
 include/grub/ieee1275/ieee1275.h           |   13 +
 include/grub/sparc64/ieee1275/ieee1275.h   |    4 +
 util/grub-install.c                        |   14 +
 util/ieee1275/grub-ofpathname.c            |    4 +-
 util/probe.c                               |    2 +-
 util/setup.c                               |   12 +-
 14 files changed, 910 insertions(+), 61 deletions(-)