All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: Roland Dreier <roland@digitalvampire.org>
Cc: Romano Giannetti <romanol@upcomillas.es>,
	Willy Tarreau <w@1wt.eu>, Pierre Ossman <drzeus-mmc@drzeus.cx>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.34-rc1 eat my photo SD card :-(
Date: Thu, 8 Nov 2007 08:01:49 +0100	[thread overview]
Message-ID: <20071108070149.GC5011@kernel.dk> (raw)
In-Reply-To: <87zlxpzkxh.fsf@shaolin.home.digitalvampire.org>

On Wed, Nov 07 2007, Roland Dreier wrote:
>  > Well, I spent the last 36 hours (more or less) trying to bisect the SD
>  > problem. The method I used was to insert the card, umount it, and make 8 dd
>  > in a row; the kernel is "bad" if they differs, "good" if they are the same. 
>  > 
>  > I could not finish the bisect. The last pair good/bad were:
>  > 
>  > bad:   [7aeacf982203fb4dea2f3434eefdc268cfd5d6d9] 
>  >        [BLOCK] blk_rq_map_sg: force clear termination bit
>  > good:  [e38f981758118d829cd40cfe9c09e3fa81e422aa] 
>  >        exportfs: update documentation
> 
> Thanks, that helps.  I read over the mmc changes in between those two
> commits, and I think I found the problem... could you please try the
> patch below (on top of the latest kernel) and report back how it
> works?  Unfortunately I am traveling and I don't have an SD card with
> me to test on my laptop...
> 
> Pierre, assuming Romano tests this patch successfully, please apply!
> 
> Thanks,
>   Roland
> 
> <-- patch below -->
> 
> mmc: Fix sg helper copy-and-paste error
> 
> Commit 45711f1a ("[SG] Update drivers to use sg helpers") had the
> following bogus change in drivers/mmc/card/queue.c:
> 
>     > -			src_buf = page_address(src->page) + src->offset;
>     > +			src_buf = sg_virt(dst);
> 
> (Notice that "src" is converted to "dst").  Turn this "dst" back into
> the intended "src".
> 
> Cc: Jens Axboe <jens.axboe@oracle.com>
> Signed-off-by: Roland Dreier <roland@digitalvampire.org>
> ---
> diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c
> index 9203a0b..1b9c9b6 100644
> --- a/drivers/mmc/card/queue.c
> +++ b/drivers/mmc/card/queue.c
> @@ -310,7 +310,7 @@ static void copy_sg(struct scatterlist *dst, unsigned int dst_len,
>  		}
>  
>  		if (src_size == 0) {
> -			src_buf = sg_virt(dst);
> +			src_buf = sg_virt(src);
>  			src_size = src->length;
>  		}
>  

How embarassing, sorry about that! Pierre, shall I shove this upstream
or will you?

-- 
Jens Axboe


  parent reply	other threads:[~2007-11-08  7:02 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 11:56 2.6.34-rc1 eat my photo SD card :-( Romano Giannetti
2007-11-01 11:35 ` Nick Piggin
2007-11-01 17:17 ` Chuck Ebbert
2007-11-02 17:39   ` Pierre Ossman
2007-11-02 17:28 ` Pierre Ossman
2007-11-04  9:29   ` Romano Giannetti
2007-11-04 16:11     ` Roland Dreier
2007-11-05  7:31       ` Pierre Ossman
2007-11-05 10:51       ` Romano Giannetti
2007-11-05 12:22         ` Pierre Ossman
2007-11-05 13:46           ` Romano Giannetti
2007-11-05 15:26             ` Pierre Ossman
2007-11-05 17:18               ` Romano Giannetti
2007-11-06  9:58               ` Romano Giannetti
2007-11-06 10:28                 ` Romano Giannetti
2007-11-06 19:51                 ` Willy Tarreau
2007-11-06 21:02                   ` Romano Giannetti
2007-11-06 21:48                   ` Romano Giannetti
2007-11-06 22:17                     ` Romano Giannetti
2007-11-07  6:09                       ` Willy Tarreau
2007-11-07 21:52                       ` Romano Giannetti
2007-11-07 23:37                         ` Roland Dreier
2007-11-08  5:54                           ` Pierre Ossman
2007-11-08  7:01                           ` Jens Axboe [this message]
2007-11-10 10:32                             ` Pierre Ossman
2007-11-08  8:46                           ` *SPAM* " Romano Giannetti
2007-11-08 17:13                             ` Roland Dreier
2007-11-08 17:43                               ` Jens Axboe
2007-11-08  0:52                         ` Rafael J. Wysocki
2007-11-05 13:51           ` Romano Giannetti
2007-11-05 15:25             ` Pierre Ossman
2007-11-05  7:30     ` Pierre Ossman
2007-11-07 22:09 ` Joshua Doll

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=20071108070149.GC5011@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=drzeus-mmc@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@digitalvampire.org \
    --cc=romanol@upcomillas.es \
    --cc=w@1wt.eu \
    /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.