Re: [PATCH 1/3] swiotlb: Export maximum allocation size

From: Joerg Roedel
Date: Fri Jan 11 2019 - 04:12:36 EST


On Thu, Jan 10, 2019 at 12:02:05PM -0500, Konrad Rzeszutek Wilk wrote:
> Why not use swiotlb_nr_tbl ? That is how drivers/gpu/drm use to figure if they
> need to limit the size of pages.

That function just exports the overall size of the swiotlb aperture, no?
What I need here is the maximum size for a single mapping.

Regards,

Joerg