Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is notenough ram for it

From: Yinghai Lu
Date: Thu Jan 10 2013 - 18:55:33 EST


On Thu, Jan 10, 2013 at 3:15 PM, Eric W. Biederman
<ebiederm@xxxxxxxxxxxx> wrote:
> My biggest question was really why you didn't set no_iotlb
> sooner. But shrug I didn't see any real issue with the code except
> for it being silly.

how about attached one?

removed the swiotlb_init_with_default_size(), and logic should be more clean.

Thanks

Yinghai

Attachment: swiotlb.patch
Description: Binary data