Re: [RFC] mmc: sdhci: work around broken dma boundary behavior

2011-04-13 Thread Mikko Vinni
t once per > > transfer. Smaller boundaries are taken care of by counting > > the transferred bytes. > > > > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28462 > > > > Signed-off-by: Mikko Vinni > > I know you posted this as an RFC, but I'

[RFC] mmc: sdhci: work around broken dma boundary behavior

2011-03-29 Thread Mikko Vinni
https://bugzilla.kernel.org/show_bug.cgi?id=28462 Signed-off-by: Mikko Vinni --- This is alternative to http://article.gmane.org/gmane.linux.kernel.mmc/6497 The main concern about the original patch was that it won't work for if the boundary is made smaller and a large transfer would cross the boundary t

Re: [PATCH resend] sdhci: work around broken dma boundary behaviour

2011-03-14 Thread Mikko Vinni
Hi, > Then we'll have a "useless" update. Won't hurt AFAICS, but might > surprise people examining the debug output. Ok. > > I only compile tested this so far, so no proper patch yet, but what I would > > write based on the comments is something like this: > > (Sidenote: Indentation is bro

Re: [PATCH resend] sdhci: work around broken dma boundary behaviour

2011-03-14 Thread Mikko Vinni
Wolfram Sang wrote: > > > > Signed-off-by: Mikko Vinni yahoo.com> > > > > > > Proper EMail please. > > > > Hm, @gmail.com? (cc added for further emails) > > I was just referring to using "" instead of "@". The p

Re: [PATCH resend] sdhci: work around broken dma boundary behaviour

2011-03-14 Thread Mikko Vinni
host->mmc->max_blk_size); BUG_ON(data->blocks > 65535); I thought the first BUG_ON makes sure that the transfer doesn't go too big. Then again, I might be missing something. Is 524288 not in bytes? > > > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28462

[PATCH resend] sdhci: work around broken dma boundary behaviour

2011-03-07 Thread Mikko Vinni
mably stopped. As long as each transfer is at most 512KB in size (on this hardware the max seems to be 65536 bytes), this fix is needed at most once per transfer. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28462 Signed-off-by: Mikko Vinni yahoo.com> --- Sent on 2011-02-21 21:23:32 G

[PATCH] sdhci: work around broken dma boundary behaviour

2011-02-21 Thread Mikko Vinni
mably stopped. As long as each transfer is at most 512KB in size (on this hardware the max seems to be 65536 bytes), this fix is neeeded at most once per transfer. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28462 Signed-off-by: Mikko Vinni diff --git a/drivers/mmc/host/sdhci.c b/driver

Re: SD card reads corrupted (JMicron card reader)

2011-01-25 Thread Mikko Vinni
o be modules. Mikko - Original Message > From: Mikko Vinni > To: linux-mmc; Chris Ball > Sent: Thu, January 20, 2011 11:04:23 PM > Subject: SD card reads corrupted (JMicron card reader) > > Hi, > > I have an HP Pavilion dv5 laptop, which has an integrated memory card r

SD card reads corrupted (JMicron card reader)

2011-01-20 Thread Mikko Vinni
Hi, I have an HP Pavilion dv5 laptop, which has an integrated memory card reader (labeled with "SD*MS/Pro*MMC*XD) and appearing with lspci as: 0a:00.1 System peripheral: JMicron Technology Corp. SD/MMC Host Controller 0a:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controlle