public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	Adrian Hunter <ext-adrian.hunter@nokia.com>
Subject: Re: [RFC] [PATCH] [MTD] Update internal API to support 64-bit device size
Date: Fri, 14 Nov 2008 14:05:06 +0200	[thread overview]
Message-ID: <1226664306.16925.96.camel@sauron> (raw)
In-Reply-To: <4912EE49.4070202@nokia.com>

On Thu, 2008-11-06 at 15:16 +0200, Adrian Hunter wrote:
> MTD internal API presently uses 32-bit values to represent
> device size.  This patch updates them to 64-bits but leaves
> the external API unchanged.  Extending the external API
> is a separate issue for several reasons.  First, no one
> needs it at the moment.  Secondly, whether the implementation
> is done with IOCTLs, sysfs or both is still debated.  Thirdly
> external API changes require the internal API to be accepted
> first.
> 
> Note that although the MTD API will be able to support 64-bit
> device sizes, existing drivers do not and are not required
> to do so, although NAND base has been updated.
> 
> In general, changing from 32-bit to 64-bit values cause little
> or no changes to the majority of the code with the following
> exceptions:
> 	- printk message formats
> 	- division and modulus of 64-bit values
> 	- NAND base support
> 	- 32-bit local variables used by mtdpart and mtdconcat
> 	- naughtily assuming one structure maps to another
> 	in MEMERASE ioctl
> 
> Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>

Except of the minor issues (well, this is _RFC_), I support this patch.
I think it is a very good step towards 64-bit MTD support.

David, could you please look at this rather earlier than later, so we
would have time to fix and test this, because the patch touches
(slightly though) a lot of files.

I've included this and other nandsim patches to ubifs-2.6.git so that we
would test the patch more.

Adrian ran UBIFS on 8GiB nandsim device (backed to a file) and it works
fine.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

      parent reply	other threads:[~2008-11-14 12:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-06 13:16 [RFC] [PATCH] [MTD] Update internal API to support 64-bit device size Adrian Hunter
2008-11-14 11:54 ` Artem Bityutskiy
2008-11-14 13:27   ` Adrian Hunter
2008-11-14 12:05 ` Artem Bityutskiy [this message]

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=1226664306.16925.96.camel@sauron \
    --to=dedekind@infradead.org \
    --cc=dwmw2@infradead.org \
    --cc=ext-adrian.hunter@nokia.com \
    --cc=linux-mtd@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox