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

2024-08-30 Thread Avnish Chouhan
This patch adds 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 v4 4/5] ieee1275: add support for NVMeoFC

2024-08-30 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 v4 3/5] ieee1275: change the logic of ieee1275_get_devargs()

2024-08-30 Thread Avnish Chouhan
-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/kern/ieee1275/openfw.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/grub-core/kern/ieee1275/openfw.c b/grub-core/kern/ieee1275/openfw.c index 0278054..b97104c 100644 --- a/grub-core/kern/ieee127

[PATCH v4 2/5] ieee1275: implement FCP methods for WWPN and LUNs

2024-08-30 Thread Avnish Chouhan
called by searchfs.uuid tool. Signed-off-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/disk/ieee1275/ofdisk.c | 111 ++- 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/grub-core/disk/ieee1275/ofdisk.c b/grub

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

2024-08-30 Thread Avnish Chouhan
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 Signed-off-by: Avnish Chouhan ---

[PATCH v4 0/5] NVMeoFC support on Grub

2024-08-30 Thread Avnish Chouhan
he functions to scan and discovery of NVMeoFC. Patch 5/5(0005-ieee1275-ofpath-enable-NVMeoF-logical-device-transla.patch): This patch add code to enable the translation of logical devices to the of NVMeoFC paths. Avnish Chouhan (4): ieee1275: implement FCP methods for WWPN and LUNs ieee1275: chan

[PATCH] ieee1275: support added for multiple nvme bootpaths

2024-08-21 Thread Avnish Chouhan
This patch sets mupltiple NVMe boot-devices for more robust boot. Scenario where NVMe multipaths are available, all the available bootpaths (Max 5) will be added as the boot-device. Signed-off-by: Avnish Chouhan --- grub-core/osdep/unix/platform.c | 66

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

2024-06-06 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 v3 5/6] ieee1275: add support for NVMeoFC

2024-06-06 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 v3 4/6] ieee1275: change the logic of ieee1275_get_devargs()

2024-06-06 Thread Avnish Chouhan
-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/kern/ieee1275/openfw.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/grub-core/kern/ieee1275/openfw.c b/grub-core/kern/ieee1275/openfw.c index 0278054..b97104c 100644 --- a/grub-core/kern/ieee127

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

2024-06-06 Thread Avnish Chouhan
called by searchfs.uuid tool. Signed-off-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/disk/ieee1275/ofdisk.c | 111 ++- 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/grub-core/disk/ieee1275/ofdisk.c b/grub

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

2024-06-06 Thread Avnish Chouhan
recursively inside slaves directory to find the root disk. Signed-off-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/osdep/linux/ofpath.c | 64 +- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/grub-core/osdep/linux/ofpath.c b

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

2024-06-06 Thread Avnish Chouhan
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 Signed-off-by: Avnish Chouhan ---

[PATCH v3 0/6] NVMeoFC support on Grub

2024-06-06 Thread Avnish Chouhan
devices to the of NVMeoFC paths. Avnish Chouhan (4): ieee1275: implement FCP methods for WWPN and LUNs ieee1275: change the logic of ieee1275_get_devargs() ieee1275: add support for NVMeoFC ieee1275: ofpath enable NVMeoF logical device translate Diego Domingos (2): ieee1275/powerpc: i

[PATCH] Mandatory install device check for PowerPC

2024-05-27 Thread Avnish Chouhan
This patch adds a check on install_device while installing grub for PowerPC. If install_device is not mentioned in grub2-install, the error will be thrown. Running grub2-install on PowerPC without the install_device may result in boot corruption. Signed-off-by: Avnish Chouhan --- util/grub

[PATCH v2] ieee1275 radix support added for KVM on power

2024-05-23 Thread Avnish Chouhan
This patch adds support for Radix, Xive and Radix_gtse in Options vector5 which is required for KVM LPARs. KVM LPARs ONLY support Radix and not the Hash. Not enabling Radix on any PowerVM KVM LPARs will result in boot failure. Signed-off-by: Avnish Chouhan Reviewed-by: Daniel Kiper --- grub

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

2024-05-10 Thread Avnish Chouhan
From: 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

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

2024-05-10 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 --- grub-core/osdep

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

2024-05-10 Thread Avnish Chouhan
From: 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 f

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

2024-05-10 Thread Avnish Chouhan
From: 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

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

2024-05-10 Thread Avnish Chouhan
From: 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

[PATCH 0/6] NVMeoFC support on Grub

2024-05-10 Thread Avnish Chouhan
From: 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 v2 2/6] ieee1275/powerpc: enables device mapper discovery

2024-05-10 Thread Avnish Chouhan
recursively inside slaves directory to find the root disk. Signed-off-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/osdep/linux/ofpath.c | 64 +- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/grub-core/osdep/linux/ofpath.c b

[PATCH] ieee1275 radix support added for KVM on power

2023-12-18 Thread Avnish Chouhan
This patch adds support for Radix, Xive and Radix_gtse in Options vector5 which is required for KVM LPARs. KVM LPARs ONLY support Radix and not the Hash. Not enabling Radix on any PowerVM KVM LPARs will result in boot failure. Signed-off-by: Avnish Chouhan --- grub-core/kern/ieee1275/init.c

[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-* de

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

2023-05-08 Thread Avnish Chouhan
-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/kern/ieee1275/openfw.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/grub-core/kern/ieee1275/openfw.c b/grub-core/kern/ieee1275/openfw.c index 0278054..b97104c 100644 --- a/grub-core/kern/ieee127

[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
called by searchfs.uuid tool. Signed-off-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/disk/ieee1275/ofdisk.c | 111 ++- 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/grub-core/disk/ieee1275/ofdisk.c b/grub

[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
devices to the of NVMeoFC paths. Avnish Chouhan (4): ieee1275: implement FCP methods for WWPN and LUNs ieee1275: change the logic of ieee1275_get_devargs() ieee1275: add support for NVMeoFC ieee1275: ofpath enable NVMeoF logical device translate Diego Domingos (2): ieee1275/powerpc: i

[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 --- grub-core/osdep

[PATCH v2 1/2] ieee1275 : Converting plain numbers to constants in Vec5

2023-03-26 Thread Avnish Chouhan
maximum number of CPUs supported. Signed-off-by: Avnish Chouhan --- Change log: V2 - Split the patch as suggested by Daniel Kiper. - Converted existing plain numbers to constants. --- grub-core/kern/ieee1275/init.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/grub-core

[PATCH v2 2/2] ieee1275 : extended support in options vector5

2023-03-26 Thread Avnish Chouhan
” property in the “ibm,dynamic-reconfiguration-memory” node and it may be presented in the device tree. 20. DRC_INFO : Client program supports the “ibm,drc-info” property definition and it may be presented in the device tree. Signed-off-by: Avnish Chouhan --- Change log: V2 - Split the

[PATCH] ieee1275 : extended support in options vector5

2023-03-17 Thread Avnish Chouhan
This patch enables the multiple options in Options Vector5. Signed-off-by: Avnish Chouhan Reviewed-by: Brian King --- grub-core/kern/ieee1275/init.c | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/grub-core/kern/ieee1275/init.c b