Skip to content

Commit

Permalink
powerpc/warp: Fix ISA_DMA_THRESHOLD default
Browse files Browse the repository at this point in the history
If no device is passed to __dma_alloc_coherent, it defaults to using ISA_DMA_THRESHOLD
for the mask. This patch provides a reasonable default rather than 0.

Signed-off-by: Sean MacLennan <smaclennan@pikatech.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Sean MacLennan authored and Benjamin Herrenschmidt committed Jun 16, 2009
1 parent 2476082 commit 79290e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch/powerpc/platforms/44x/warp.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ static int __init warp_probe(void)
{
unsigned long root = of_get_flat_dt_root();

return of_flat_dt_is_compatible(root, "pika,warp");
if (!of_flat_dt_is_compatible(root, "pika,warp"))
return 0;

/* For __dma_alloc_coherent */
ISA_DMA_THRESHOLD = ~0L;

return 1;
}

define_machine(warp) {
Expand Down

0 comments on commit 79290e4

Please sign in to comment.