Thread (1 message) 1 message, 1 author, 2011-02-08

Re: [PATCH] usb: gadget: nokia: disallow compilation with HIGHMEM

From: Rémi Denis-Courmont <hidden>
Date: 2011-02-08 07:39:06

On Tuesday 08 February 2011 09:30:45 ext-eero.nurkkala@nokia.com, you wrote:
From: Eero Nurkkala <redacted>

With HIGHMEM, g_phonet oopses with the following path:
pn_rx_complete() -> pskb_pull() -> ... kmap_skb_frag() and
oops with BUG_ON(in_irq()). Thus, if the gadget is enabled,
it'd better conflict with the HIGHMEM.

Signed-off-by: Eero Nurkkala <redacted>
Acked-by: Rémi Denis-Courmont <redacted>


In the long run, we should probably kludge the skb code like we did in
cdc-phonet.c.

Or better yet, fix kmap_skb_frag() to be less pessimistic. Thing is, the BUG_ON 
is really bogus here. The way we allocated the skb, the fragment really cannot 
be in HIGHMEM...

-- 
Rémi Denis-Courmont
Nokia Devices R&D, Maemo Software, Helsinki
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help