On Fri, Apr 28, 2023 at 04:15:24PM +0200, Daniel Kiper wrote:
> On Thu, Apr 27, 2023 at 05:06:54PM +0200, Roger Pau Monne via Grub-devel
> wrote:
> > On failure to allocate from grub_relocator_firmware_alloc_region() in
> > malloc_in_range() the function would stop enforcing the alignment, and
> >
This patch series adds support of NVMeoFC on grub. It consists of six
patches.
Patch 1/6 (0001-ieee1275-powerpc-implements-fibre-channel-discovery-.patch):
grub-ofpathname doesn't work with fibre channel because there is no
function currently implemented for it.
This patch enables it by prividing
From: Diego Domingos
grub-ofpathname doesn't work with fibre channel because there is no
function currently implemented for it.
This patch enables it by prividing a function that looks for the port
name, building the entire path for OF devices.
Signed-off-by: Diego Domingos
---
grub-core/osdep
This patch implements the functions to scan and discovery of NVMeoFC.
Signed-off-by: Diego Domingos
Signed-off-by: Avnish Chouhan
---
grub-core/disk/ieee1275/ofdisk.c | 390
+--
1 file changed, 296 insertions(+), 94 deletions(-)
diff --git a
This patch enables the fcp-targets and fcp-luns methods which are
responsible to get WWPNs and LUNs for fibre channel devices.
Those methods are specially necessary if the boot directory and grub
installation are in different FCP disks, allowing the dev_iterate()
to find the WWPNs and LUNs when ca
This patch add code to enable the translation of logical devices to the of
NVMeoFC paths.
Signed-off-by: Diego Domingos
Signed-off-by: Avnish Chouhan
---
grub-core/osdep/linux/ofpath.c | 371
+--
include/grub/util/ofpath.h | 28 +
Usually grub will parse the PFW arguments by searching for the first occurence
of the character ':'.
However, we can have this char more than once on NQN.
This patch changes the logic to find the last occurence of this char so we can
get the proper values
for NVMeoFC
Signed-off-by: Diego Domingo
From: Diego Domingos
This patch enables the device mapper discovery on ofpath.c. Currently,
when we are dealing with a device like /dev/dm-* the ofpath returns null
since there is no function implemented to handle this case.
This patch implements a function that will look into /sys/block/dm-*
de
access_size is part of a union, so doesn't technically exist for a
PIO port (ie, not MMIO), but we set it anyways.
This doesn't cause a bug today because the other leg of the union
doesn't have anything overlapping with it now, but it's bad, I will
punish myself for writing it that way :-) In the