[PATCH] ns8250: Fix incorrect usage of access_size

2023-05-08 Thread Benjamin Herrenschmidt
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

[PATCH 2/6] ieee1275/powerpc: enables device mapper discovery

2023-05-08 Thread Avnish Chouhan
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-*

[PATCH 4/6] ieee1275: change the logic of ieee1275_get_devargs()

2023-05-08 Thread Avnish Chouhan
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

[PATCH 6/6] ieee1275: ofpath enable NVMeoF logical device translate

2023-05-08 Thread Avnish Chouhan
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

[PATCH 3/6] ieee1275: implement FCP methods for WWPN and LUNs

2023-05-08 Thread Avnish Chouhan
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

[PATCH 5/6] ieee1275: add support for NVMeoFC

2023-05-08 Thread Avnish Chouhan
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

[PATCH 0/6] NVMeoFC support on Grub

2023-05-08 Thread Avnish Chouhan
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

[PATCH 1/6] ieee1275/powerpc: implements fibre channel discovery for ofpathname

2023-05-08 Thread Avnish Chouhan
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 ---

Re: [PATCH] lib/relocator: always enforce the requested alignment in malloc_in_range()

2023-05-08 Thread Roger Pau Monné via Grub-devel
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 >