Message ID | BANLkTimcLiba=7E4vp-_VyhNWM8_EGzTFg@mail.gmail.com |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show |
Index: linux-2.6/drivers/ata/libahci.c =================================================================== --- linux-2.6.orig/drivers/ata/libahci.c +++ linux-2.6/drivers/ata/libahci.c @@ -1395,6 +1395,11 @@ static unsigned int ahci_fill_sg(struct for_each_sg(qc->sg, sg, qc->n_elem, si) { dma_addr_t addr = sg_dma_address(sg); u32 sg_len = sg_dma_len(sg); + static int cnt; + + if (addr > 0xffffffffULL && !(cnt++ % 500)) + printk("ahci: dma'ing to address 0x%llx\n", + (unsigned long long)addr); ahci_sg[si].addr = cpu_to_le32(addr & 0xffffffff); ahci_sg[si].addr_hi = cpu_to_le32((addr >> 16) >> 16);