Re: swiotlb_alloc_coherent: allocated memory is out of range for device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Takashi Iwai
Date: Wednesday, October 22, 2008 - 6:32 am

At Wed, 22 Oct 2008 22:13:39 +0900,
FUJITA Tomonori wrote:

Just return NULL instead of a kernel panic.


Seconded, I don't think it's worth to allocate iotlb pages in <16MB,
too.  The case with GFP_DMA is somewhat special and mostly for
obsolete devices.


The parport driver itself passes always GFP_KERNEL.  So I added
GFP_DMA in my initial patch as a workaround.

The device of the parport driver is passed by another, and the driver
doesn't care about DMA mask by itself.  In the panic case, it seems
from PnP, and PnP bus has set it to 24bit beforehand, I guess.


Yes, the parport case should be fixed by passing GFP_DMA.
But, the unconditional panic should be still fixed.


Thanks!


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

Messages in current thread:
Re: swiotlb_alloc_coherent: allocated memory is out of ran ..., Takashi Iwai, (Wed Oct 22, 6:32 am)