On Fri, Jan 14, 2011 at 03:09:03PM +0200, Eli Cohen wrote:

> CX devices are 64 bit devices with respect to the PCI bus. As far as I
> know, a 64 bit PCI device memory space, could be placed anywhere in
> that space regardless of the CPU architecture. So I think it would
> be

Linux limits the addresses of PCI devices to phys_addr_t, so if your
device is placed outside phys_addr_t by the BIOS then it will be
discarded during discovery. Thus phys_addr_t/resource_size_t is
appropriate for storing BAR addresses from PCI devices.

> Regardless of whether what I say above is correct or not, wouldn't it
> be nicer to to define pfn as either u64 or phys_addr_t and avoid the
> casting?

Good point, the pfn must be stored as phys_addr_t too, otherwise you
only support a 44 bit physical address space before truncatation
occures.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to