|
@@ -1320,7 +1320,7 @@ static int idt_ntb_peer_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx,
|
|
|
idt_nt_write(ndev, bar->ltbase, (u32)addr);
|
|
|
idt_nt_write(ndev, bar->utbase, (u32)(addr >> 32));
|
|
|
/* Set the custom BAR aperture limit */
|
|
|
- limit = pci_resource_start(ntb->pdev, mw_cfg->bar) + size;
|
|
|
+ limit = pci_bus_address(ntb->pdev, mw_cfg->bar) + size;
|
|
|
idt_nt_write(ndev, bar->limit, (u32)limit);
|
|
|
if (IS_FLD_SET(BARSETUP_TYPE, data, 64))
|
|
|
idt_nt_write(ndev, (bar + 1)->limit, (limit >> 32));
|