sparc64: fix OF path names for sun4v systems
authorEric Snowberg <eric.snowberg@oracle.com>
Wed, 31 Jan 2018 04:49:48 +0000 (20:49 -0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 14 Feb 2018 16:49:10 +0000 (17:49 +0100)
commitd85c76b501edda038b68bc23eee946e6cc600513
tree777a1339f4b5a28fb2677b5e50dea8fe60ecd9da
parent69e0a67bfb419a8d6c905fb23330a8afc2435de6
sparc64: fix OF path names for sun4v systems

Fix the Open Firmware (OF) path property for sun4v SPARC systems.
These platforms do not have a /sas/ within their path. Over time
different OF addressing schemes have been supported. There
is no generic addressing scheme that works across every HBA.

It looks that this functionality will not work if you try to cross-install
SPARC GRUB2 binary using e.g. x86 grub-install. By default it should work.
However, we will also have other issues here, like lack of access to OF
firmware/paths, which make such configs unusable anyway. So, let's leave
this patch as is for time being. If somebody cares then he/she should fix
the issue(s) at some point.

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/osdep/linux/ofpath.c