mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
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 <[email protected]> Acked-by: Allen Hubbe <[email protected]> Acked-by: Logan Gunthorpe <[email protected]> Acked-by: Serge Semin <[email protected]> Signed-off-by: Jon Mason <[email protected]>
This commit is contained in:
parent
12c023d7c3
commit
a5c3666f1c
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue