Re: [PATCH] [ppc64] watch IOMMU virtual merging

From: Benjamin Herrenschmidt
Date: Mon Aug 02 2004 - 16:54:44 EST



> I'm not familiar with the TCE space regions; could you describe or
> point to documentation for the semantics there?
>
> My first thought is to artificially limit the amount of physical
> merging (hopefully to some nonzero amount instead of disabling it
> entirely) allowed to take place in order to allow for better virtual
> merging.

Actually, we could tune the ratio between large allocs and small allocs,
the real problem is the failure case. We can't really afford to break
down a physical segment at the iommu level because that would increase
the size of the SG list which can't be dealt at the upper level (we don't
know how much space has been allocated and the HW may have limitations on
the number of entries).

What we really need is a way for drivers to return the BIO upstream and
ask for a split in case of iommu allocation error, but I've been told that
would be horribly complex...

Ben.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/