Skip to content

Commit

Permalink
raw/ifpga/base: fix physical address info
Browse files Browse the repository at this point in the history
[ upstream commit 4507a3d ]

Fix miss phy_addr on ifpga_acc_get_region_info() function.

Fixes: 56bb54e ("raw/ifpga/base: add Intel FPGA OPAE share code")

Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
  • Loading branch information
Figo-zhang authored and kevintraynor committed Aug 21, 2019
1 parent 1b084f3 commit dd8df88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/raw/ifpga_rawdev/base/ifpga_api.c
Expand Up @@ -76,6 +76,7 @@ static int ifpga_acc_get_region_info(struct opae_accelerator *acc,
info->flags = ACC_REGION_READ | ACC_REGION_WRITE | ACC_REGION_MMIO;
info->len = afu_info->region[info->index].len;
info->addr = afu_info->region[info->index].addr;
info->phys_addr = afu_info->region[info->index].phys_addr;

return 0;
}
Expand Down

0 comments on commit dd8df88

Please sign in to comment.