All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mukesh Kumar Chaurasiya <mchauras@linux.ibm.com>
To: Daniel Kiper <dkiper@net-space.pl>,
	The development of GNU GRUB <grub-devel@gnu.org>
Cc: meghanaprakash@in.ibm.com, avnish@linux.vnet.ibm.com,
	brking@linux.vnet.ibm.com, mamatha4@linux.vnet.ibm.com,
	mchauras@linux.vnet.ibm.com
Subject: Re: [PATCH V2] ieee1275/ofdisk: vscsi lun handling on lun len
Date: Wed, 17 Jan 2024 12:39:06 +0530	[thread overview]
Message-ID: <698e73b3-e792-4e4d-86f7-e038a094df46@linux.ibm.com> (raw)
In-Reply-To: <20231129191529.tomo3qz2gtvboser@tomti.i.net-space.pl>


On 11/30/23 00:45, Daniel Kiper wrote:
> On Mon, Nov 27, 2023 at 06:07:42PM +0530, Mukesh Kumar Chaurasiya wrote:
>> Signed-off-by: Mukesh Kumar Chaurasiya <mchauras@linux.ibm.com>
>> ---
>>   grub-core/disk/ieee1275/ofdisk.c | 11 ++++++++---
>>   1 file changed, 8 insertions(+), 3 deletions(-)
>>
>> diff --git a/grub-core/disk/ieee1275/ofdisk.c b/grub-core/disk/ieee1275/ofdisk.c
>> index c6cba0c8a..9cd8898f1 100644
>> --- a/grub-core/disk/ieee1275/ofdisk.c
>> +++ b/grub-core/disk/ieee1275/ofdisk.c
>> @@ -222,8 +222,12 @@ dev_iterate (const struct grub_ieee1275_devalias *alias)
>>   	grub_ieee1275_cell_t table;
>>         }
>>         args;
>> +      struct lun_buf {
>> +	grub_uint64_t *buf_addr;
> This will not work on 32-bit architectures.

Umm...

  well i checked this and the definition for 32bit and 64bit are same. 
So the structure part should be fine.

+ ptr =(grub_uint64_t*)(grub_addr_t) tbl[i].buf_addr;
and this should handle the 32bit arch in terms of address.
for rest i'll send out a new version of patch
Regards,
Mukesh

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  reply	other threads:[~2024-01-17  7:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-27 12:37 [PATCH V2] ieee1275/ofdisk: vscsi lun handling on lun len Mukesh Kumar Chaurasiya
2023-11-29 19:15 ` Daniel Kiper
2024-01-17  7:09   ` Mukesh Kumar Chaurasiya [this message]
2024-01-23 18:02     ` Daniel Kiper
2024-01-24 17:11       ` Mukesh Kumar Chaurasiya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=698e73b3-e792-4e4d-86f7-e038a094df46@linux.ibm.com \
    --to=mchauras@linux.ibm.com \
    --cc=avnish@linux.vnet.ibm.com \
    --cc=brking@linux.vnet.ibm.com \
    --cc=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    --cc=mamatha4@linux.vnet.ibm.com \
    --cc=mchauras@linux.vnet.ibm.com \
    --cc=meghanaprakash@in.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.