Skip to content

Commit

Permalink
vDPA/ifcvf: record virtio notify base
Browse files Browse the repository at this point in the history
This commit records virtio notify base addr to implemente
doorbell mapping feature

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
  • Loading branch information
ls-zhu authored and intel-lab-lkp committed Apr 28, 2021
1 parent acd3d28 commit 79474dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/vdpa/ifcvf/ifcvf_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ int ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *pdev)
&hw->notify_off_multiplier);
hw->notify_bar = cap.bar;
hw->notify_base = get_cap_addr(hw, &cap);
hw->notify_pa = pci_resource_start(pdev, cap.bar) + cap.offset;
IFCVF_DBG(pdev, "hw->notify_base = %p\n",
hw->notify_base);
break;
Expand Down
1 change: 1 addition & 0 deletions drivers/vdpa/ifcvf/ifcvf_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ struct ifcvf_hw {
char config_msix_name[256];
struct vdpa_callback config_cb;
unsigned int config_irq;
phys_addr_t notify_pa;
};

struct ifcvf_adapter {
Expand Down

0 comments on commit 79474dc

Please sign in to comment.