Re: [PATCH] mmc-atmel : fix kunmap wrong usage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hugh Dickins
Date: Friday, June 22, 2007 - 5:00 am

On Fri, 22 Jun 2007, Marc Pignat wrote:

Not necessarily: an offset within the same page is acceptable.


Aren't you just guessing there?  Those kunmap_atomics in at91_mci.c
may look wrong to you, but they're not incorrect (so long as sg->offset
falls within the page, as it must do here to make sense of the page).
Especially not on ARM, where kunmap_atomic actually has no interest
in the argument passed.  And the oops was in the flush_dcache_page.

If you actually reproduced Nicolas' problem on ARM, and verified
that your patch then fixes it, please let us know: that will be
remarkably interesting.

I believe I posted the correct fix last night (or at least a safe fix
for now: Christoph Lameter may prefer to undo it and change ARM's
dma_mapping at leisure later), checking PageSlab in page_mapping;
and Linus has already put that one into his git tree.

But it would be good to hear from Nicolas whether that indeed fixes
his oops: I couldn't actually try my patch on ARM either.

Hugh

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Thu Jun 21, 2:30 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Thu Jun 21, 8:54 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:01 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:36 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:41 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:10 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:13 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:31 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Thu Jun 21, 10:37 pm)
[PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Thu Jun 21, 11:28 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Russell King, (Fri Jun 22, 12:00 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Fri Jun 22, 2:09 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Hugh Dickins, (Fri Jun 22, 5:00 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Nicolas Ferre, (Fri Jun 22, 6:34 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Hugh Dickins, (Fri Jun 22, 6:46 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Fri Jun 22, 7:21 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Fri Jun 22, 7:58 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Linus Torvalds, (Fri Jun 22, 9:40 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 10:26 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 10:41 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Fri Jun 22, 11:39 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 11:51 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Jens Axboe, (Fri Jun 22, 12:00 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Fri Jun 22, 12:01 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 12:11 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 1:15 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 3:54 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Mon Jun 25, 6:55 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 7:07 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 10:00 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 10:23 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 11:23 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 11:43 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 11:50 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 12:04 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Tue Jun 26, 11:09 am)