All of lore.kernel.org
 help / color / mirror / Atom feed
* phys_addr_t instead of dma_addr_t for nvme_dev->cmb_dma_addr
@ 2017-01-05 10:20 Max Gurtovoy
  2017-01-05 11:02 ` Haggai Eran
  0 siblings, 1 reply; 8+ messages in thread
From: Max Gurtovoy @ 2017-01-05 10:20 UTC (permalink / raw)


hi Guys,
we have noticed that in drivers/nvme/host/pci.c we have the following lines:

"
dma_addr = pci_resource_start(pdev, NVME_CMB_BIR(dev->cmbloc)) + offset;
cmb = ioremap_wc(dma_addr, size);
if (!cmb)
     return NULL;

dev->cmb_dma_addr = dma_addr;
dev->cmb_size = size;

"

in nvme_map_cmb func. pci_resource_start should return resource_size_t 
(phys_addr_t) and not dma_addr_t. I don't have the HW to check this code 
and propose a fix but it's seems buggy for me. In case we need dma 
address we should map it.

thanks,
Max.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-01-11 15:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-05 10:20 phys_addr_t instead of dma_addr_t for nvme_dev->cmb_dma_addr Max Gurtovoy
2017-01-05 11:02 ` Haggai Eran
2017-01-05 18:39   ` Jon Derrick
2017-01-08  8:55     ` Haggai Eran
2017-01-09 21:54       ` Jon Derrick
2017-01-11  8:15         ` Haggai Eran
2017-01-11  9:06           ` hch
2017-01-11 15:36           ` Jon Derrick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.