Restrict DMA Buffer to 32 bit Address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I've PCI device which uses DMA engines and runs on 64 bit Linux with 512MB RAM.
It has 32 bit register used to specify DMA buffer address so as far as I understand I need to restrict it DMA buffers addresses to 32 bit.

I tried the following:

err = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
if (err) {
    exit...
}

dma_alloc_coherent(dev, 0x1000, &dma_handle, GFP_KERNEL)

but when I print allocated buffer address I get the following 0x409993216

What am I missing here?

Thanks,
Tal

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux