diff options
author | Sanjay R Mehta <sanju.mehta@amd.com> | 2019-02-15 09:21:46 +0000 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2019-06-13 08:58:08 -0400 |
commit | a5c3666f1c32714d8ee8735a129a9f13773135ba (patch) | |
tree | ed4990ed10e574ef4cf44ff865f0f4c615aed7c9 /drivers/ntb | |
parent | 12c023d7c32ae14254c8903f0466d37dea6d21ed (diff) | |
download | linux-a5c3666f1c32714d8ee8735a129a9f13773135ba.tar.gz linux-a5c3666f1c32714d8ee8735a129a9f13773135ba.tar.bz2 linux-a5c3666f1c32714d8ee8735a129a9f13773135ba.zip |
NTB: ntb_hw_amd: set peer limit register
As per amd ntb spec it says that peer limit register
must be programmed
Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Acked-by: Allen Hubbe <allenbh@gmail.com>
Acked-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb')
-rw-r--r-- | drivers/ntb/hw/amd/ntb_hw_amd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index efb214fc545a..cd463e132035 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.c +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c @@ -160,8 +160,8 @@ static int amd_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, } /* set and verify setting the limit */ - write64(limit, mmio + limit_reg); - reg_val = read64(mmio + limit_reg); + write64(limit, peer_mmio + limit_reg); + reg_val = read64(peer_mmio + limit_reg); if (reg_val != limit) { write64(base_addr, mmio + limit_reg); write64(0, peer_mmio + xlat_reg); @@ -183,8 +183,8 @@ static int amd_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, } /* set and verify setting the limit */ - writel(limit, mmio + limit_reg); - reg_val = readl(mmio + limit_reg); + writel(limit, peer_mmio + limit_reg); + reg_val = readl(peer_mmio + limit_reg); if (reg_val != limit) { writel(base_addr, mmio + limit_reg); writel(0, peer_mmio + xlat_reg); |