Re: [PATCH V4 1/3] x86: introduce CONFIG_X86_DEV_DMA_OPS

From: Alessandro Rubini
Date: Thu Apr 12 2012 - 16:32:40 EST


>> config MAX_DMA_PADDR
>> int
>> default 536870912 if MAX_DMA_PADDR_512M
>> default 16777216
>>
>> config MAX_DMA_PADDR_512M
>> bool
>>
>> (actually, we'd benefit from being able to use hex in defaults)
>>
>> Is this worth exploring, to possibly submit a patch in this direction?
>>
>
> Not as a compile-time patch.

Why not? CONFIG_ISA is a compile-time choice. I thought that if you
compile for non-ISA systems you may reuse the zone mechanism with a
different split.

But if not a compile-time thing, would you accept it at run time?
I feel it's not a beautiful approach, because it must clearly be
masked by #ifndef CONFIG_ISA or such. Worse, you must know the zone
split at the beginning, before you scan the PCI bus and find your
devices.

thanks
/alessandro
--
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/