MMC updates for 2.6.27-rc1
Linus, please pull from
git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc.git for-linus
to receive the following updates:
drivers/mmc/host/au1xmmc.c | 54 ++++++++++++++++++++++++++++++++++--------- drivers/mmc/host/pxamci.c | 2 +- drivers/mmc/host/s3cmci.c | 50 +++++++++++++++++++++++++--------------- 3 files changed, 74 insertions(+), 32 deletions(-)
Ben Dooks (2):
s3cmci: fixes for section mismatch warnings
s3cmci: ensure host stopped on machine shutdown
Karl Beldan (1):
pxamci: trivial fix of DMA alignment register bit clearing
Manuel Lauss (1):
au1xmmc: suspend/resume implementation
Signature · 9 lines
-- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.
Quoted 4 lines · On Sat, 19 Jul 2008 01:59:11 +0200 Pierre Ossman <[email protected]> wrote:
Linus, please pull from
git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc.gitfor-linus
Since you haven't pulled yet, I've updated the list of patches to the following set:
MAINTAINERS | 5 +- drivers/mmc/card/mmc_test.c | 225 ++++++++++++++++++++++++++++++++++++++++++- drivers/mmc/card/queue.c | 97 ++++++------------- drivers/mmc/host/au1xmmc.c | 54 ++++++++--- drivers/mmc/host/pxamci.c | 2 +- drivers/mmc/host/s3cmci.c | 50 ++++++---- drivers/mmc/host/sdhci.c | 167 ++++++++++++++------------------ drivers/mmc/host/sdhci.h | 7 +- include/linux/scatterlist.h | 38 +++++++ lib/scatterlist.c | 176 +++++++++++++++++++++++++--------- 10 files changed, 573 insertions(+), 248 deletions(-)
Ben Dooks (2):
s3cmci: fixes for section mismatch warnings
s3cmci: ensure host stopped on machine shutdown
Karl Beldan (1):
pxamci: trivial fix of DMA alignment register bit clearing
Manuel Lauss (1):
au1xmmc: suspend/resume implementation
Pierre Ossman (8):
mmc_test: highmem tests
mmc_test: test oversized sg lists
sdhci: add warnings for bad buffers in ADMA path
sdhci: fix bad warning from commit c8b3e02
mmc_block: bounce buffer highmem support
mmc: Remove Russell as primecell mci maintainer
mmc_test: print message when attaching to card
sdhci: highmem capable PIO routines
Tejun Heo (1):
sg: reimplement sg mapping iterator
Signature · 9 lines
-- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.
Quoted 6 lines · Pierre Ossman
include/linux/scatterlist.h | 38 +++++++ lib/scatterlist.c | 176 +++++++++++++++++++++++++---------Tejun Heo (1):
sg: reimplement sg mapping iterator
I'd really have been a lot happier about this one if it had had a few Acked-by's from people like Jens and James.
But I pulled, and pushed out. I think Jens is on vacation, but I'm adding him to the cc anyway.
Linus
Quoted 6 lines · Linus Torvalds
Quoted 4 lines · Pierre Ossman
include/linux/scatterlist.h | 38 +++++++ lib/scatterlist.c | 176 +++++++++++++++++++++++++---------
Quoted 8 lines
Quoted 2 lines
Tejun Heo (1):
sg: reimplement sg mapping iteratorI'd really have been a lot happier about this one if it had had a few Acked-by's from people like Jens and James.
But I pulled, and pushed out. I think Jens is on vacation, but I'm adding him to the cc anyway.
I was on the cc list, just not really paying attention. Anyway, I've copied tomo who did the previous scatterlist work. It actually looks fine to me other than a technical API violation: kunmap_atomic is supposed to be called on the page virtual address without offset. I think this is irrelevant since all implementations look to mask out the offset bits anyway.
James
---
Quoted 1 line
From
137d3edb48425f82a6a4226b664f90ed5e42eea5Mon Sep 17 00:00:00 2001
From: Tejun Heo <[email protected]>
Date: Sat, 19 Jul 2008 23:03:35 +0900
Subject: sg: reimplement sg mapping iterator
This is alternative implementation of sg content iterator introduced by commit 83e7d317... from Pierre Ossman in next-20080716. As there's already an sg iterator which iterates over sg entries themselves, name this sg_mapping_iterator.
Slightly edited description from the original implementation follows.
Iteration over a sg list is not that trivial when you take into account that memory pages might have to be mapped before being used. Unfortunately, that means that some parts of the kernel restrict themselves to directly accesible memory just to not have to deal with the mess.
This patch adds a simple iterator system that allows any code to easily traverse an sg list and not have to deal with all the details. The user can decide to consume part of the iteration. Also, iteration can be stopped and resumed later if releasing the kmap between iteration steps is necessary. These features are useful to implement piecemeal sg copying for interrupt drive PIO for example.
--- include/linux/scatterlist.h | 38 +++++++++ lib/scatterlist.c | 176 +++++++++++++++++++++++++++++++----------- 2 files changed, 168 insertions(+), 46 deletions(-)
include/linux/scatterlist.h +38 -0
@@ -224,4 +224,42 @@ size_t sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents,*/ #define SG_MAX_SINGLE_ALLOC (PAGE_SIZE / sizeof(struct scatterlist)) + +/* +* Mapping sg iterator +* +* Iterates over sg entries mapping page-by-page. On each successful +* iteration, @miter->page points to the mapped page and +* @miter->length bytes of data can be accessed at @miter->addr. As +* long as an interation is enclosed between start and stop, the user +* is free to choose control structure and when to stop. +* +* @miter->consumed is set to @miter->length on each iteration. It +* can be adjusted if the user can't consume all the bytes in one go. +* Also, a stopped iteration can be resumed by calling next on it. +* This is useful when iteration needs to release all resources and +* continue later (e.g. at the next interrupt). +*/ + +#define SG_MITER_ATOMIC (1 << 0)/* use kmap_atomic */ + +struct sg_mapping_iter { +/* the following three fields can be accessed directly */ +struct page *page;/* currently mapped page */ +void *addr;/* pointer to the mapped area */ +size_t length;/* length of the mapped area */ +size_t consumed;/* number of consumed bytes */ + +/* these are internal states, keep away */ +struct scatterlist *__sg;/* current entry */ +unsigned int __nents;/* nr of remaining entries */ +unsigned int __offset;/* offset within sg */ +unsigned int __flags; +}; + +void sg_miter_start (struct sg_mapping_iter *miter,struct scatterlist *sgl, +unsigned int nents,unsigned int flags); +bool sg_miter_next (struct sg_mapping_iter *miter); +void sg_miter_stop (struct sg_mapping_iter *miter); +#endif /* _LINUX_SCATTERLIST_H */
lib/scatterlist.c +130 -46
192 lines not on this page · raw message
Signature · 1 line
1.5.5.1
Quoted 7 lines · On Wed, 23 Jul 2008 12:08:01 -0700 (PDT) Linus Torvalds…
Quoted 4 lines · Pierre Ossman
include/linux/scatterlist.h | 38 +++++++ lib/scatterlist.c | 176 +++++++++++++++++++++++++---------
Quoted 8 lines
Quoted 2 lines
Tejun Heo (1):
sg: reimplement sg mapping iteratorI'd really have been a lot happier about this one if it had had a few Acked-by's from people like Jens and James.
But I pulled, and pushed out. I think Jens is on vacation, but I'm adding him to the cc anyway.
Yeah, I was hoping to get Jens' input on this aswell, but this fixes problems in the sdhci driver so it was pushed in the hope that he won't NAK it too badly when he gets back.
(James just got casually poked, but I wasn't even aware he was a suitable person for this. lib/ and kernel/ are generally a bit problematic when it comes to determining maintainer :/)
Rgds
Signature · 9 lines
-- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.
Quoted 19 lines · Pierre Ossman
Quoted 7 lines · On Wed, 23 Jul 2008 12:08:01 -0700 (PDT) Linus Torvalds…
Quoted 4 lines · Pierre Ossman
include/linux/scatterlist.h | 38 +++++++ lib/scatterlist.c | 176 +++++++++++++++++++++++++---------Quoted 8 lines
Quoted 2 lines
Tejun Heo (1):
sg: reimplement sg mapping iteratorI'd really have been a lot happier about this one if it had had a few Acked-by's from people like Jens and James.
But I pulled, and pushed out. I think Jens is on vacation, but I'm adding him to the cc anyway.
Quoted 7 lines
Yeah, I was hoping to get Jens' input on this aswell, but this fixes problems in the sdhci driver so it was pushed in the hope that he won't NAK it too badly when he gets back.
(James just got casually poked, but I wasn't even aware he was a suitable person for this.
lib/andkernel/are generally a bit problematic when it comes to determining maintainer :/)
(still pretty much off line, though not completely without internet anymore :-)
The scatterlist iter commit looks sane to me. It's too late for an ack, but I have reviewed it now.
Signature · 1 line
Jens Axboe
Quoted 19 lines · On Wed, 23 Jul 2008 23:43:50 +0200 Pierre Ossman <[email protected]> wrote:
Quoted 7 lines · On Wed, 23 Jul 2008 12:08:01 -0700 (PDT) Linus Torvalds…
Quoted 4 lines · Pierre Ossman
include/linux/scatterlist.h | 38 +++++++ lib/scatterlist.c | 176 +++++++++++++++++++++++++---------Quoted 8 lines
Quoted 2 lines
Tejun Heo (1):
sg: reimplement sg mapping iteratorI'd really have been a lot happier about this one if it had had a few Acked-by's from people like Jens and James.
But I pulled, and pushed out. I think Jens is on vacation, but I'm adding him to the cc anyway.
Quoted 7 lines
Yeah, I was hoping to get Jens' input on this aswell, but this fixes problems in the sdhci driver so it was pushed in the hope that he won't NAK it too badly when he gets back.
(James just got casually poked, but I wasn't even aware he was a suitable person for this.
lib/andkernel/are generally a bit problematic when it comes to determining maintainer :/)
I think that you can see that James pushed the old sg buffer helper functions from the git log (because it was invented for SCSI drivers).
Anyway, the new helper functions look fine though I'm too late for reviewing it.