Re: [PATCH] loader/efi/chainloader: Add efidriver command (Nikita Travkin)

2024-09-24 Thread avnish
_command ("chainloader", grub_cmd_chainloader, + 0, N_("Load another boot loader.")); + cmd_efidriver = grub_register_command ("efidriver", grub_cmd_efidriver, +0, N_("Load a efi driver."

[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

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

2024-07-01 Thread avnish
On 2024-07-01 13:04, Michael Chang wrote: On Thu, Jun 06, 2024 at 06:07:24PM GMT, Avnish Chouhan wrote: 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

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

2024-06-25 Thread avnish
On 2024-06-25 10:01, Michael Chang wrote: On Thu, Jun 20, 2024 at 03:14:59PM GMT, avnish wrote: Hi Vladimir, We have implemented this code to enable the ieee1275 hint for grub. We had scenarios (in SLES) like the disk had PReP partition followed by an LVM and, inside this LVM , the boot

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

2024-06-20 Thread avnish
(name_buf); if (realname) { free (name_buf); name_buf = realname; } #endif Please suggest us. Thank you so much! Regards, Avnish Chouhan On 2024-06-07 15:05, grub-devel-requ...@gnu.org wrote: Send Grub-devel mailing list submissions to grub-devel@gnu.org

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

2024-06-07 Thread avnish
quired functions has been implemented to handle this kind of case. We have done changes based on the requirement that will look into /sys/block/dm-* devices and search slave devices recursively inside slaves directory to find the root disk. Regards, Avnish Chouhan Le jeu. 6 juin 2024, 14:4

[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

Re: [PATCH] Mandatory install device check for PowerPC

2024-05-29 Thread avnish
le on the machine. And corruption probably due to wrong PReP picked up by installer. And as the installer picked the valid PReP available, we don't get any errors. Thank you! Regards, Avnish Chouhan On 2024-05-27 19:44, Michal Suchánek wrote: Hello, On Mon, May 27, 2024 at 07:07:

[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

Re: [PATCH v2 2/3] multiboot2: Add PE load support

2024-04-01 Thread avnish
(reloc_base->size > context->reloc_dir->size)) +{ + grub_error (GRUB_ERR_BAD_ARGUMENT, + "Reloc %d block size %d is invalid\n", n, + reloc_base->size); + ret = GRUB_ERR_BAD_ARGUMENT; + goto

[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

Re: [PATCH 0/6] NVMeoFC support on Grub

2023-06-06 Thread avnish
On 2023-05-10 17:57, Daniel Kiper wrote: On Mon, May 08, 2023 at 07:28:34PM +0530, Avnish Chouhan wrote: 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

[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

Re: [PATCH v3 4/6] ieee1275: implement vec5 for cas negotiation

2023-02-03 Thread avnish
On 2023-02-01 21:31, Robbie Harwood wrote: Stefan Berger writes: +.vec5_size = 1 + sizeof (struct option_vector5) - 2, +.vec5 = { + 0, 0, 0, 0, 0, 0, 0, 0, 256 +} Hi Stefan and Diego, are you able to speak to vec5 setting? I have been talking with Avnish Chouhan (CC&#