Re: [PATCH 7/9] swiotlb: Make bounce buffer bounds non-static.

From: David Daney
Date: Mon Sep 27 2010 - 13:39:23 EST


On 09/26/2010 10:20 PM, FUJITA Tomonori wrote:
On Thu, 23 Sep 2010 15:47:31 -0700
David Daney<ddaney@xxxxxxxxxxxxxxxxxx> wrote:

Octeon PCI mapping has to be established to cover the bounce buffers,
so it has to have access to the bounds.

Why can't you use swiotlb_init_with_tbl() instead?


Yes, as pointed out be several people, that would be better.

The swiotlb_init_with_tbl() didn't exist in earlier kernel versions and this simplification was missed when I forward ported the patch set.

By using this function, I think the entire patch set will be MIPS specific, making it unnecessary to touch the generic swiotlb code.

Thanks,
David Daney
--
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/