ntb: intel: add hw workaround for NTB BAR alignment
authorDave Jiang <dave.jiang@intel.com>
Fri, 5 Jun 2020 15:13:34 +0000 (08:13 -0700)
committerJon Mason <jdmason@kudzu.us>
Sat, 6 Jun 2020 00:02:00 +0000 (20:02 -0400)
commit134a86545c6072c049a2c6e77d6843e650df511d
treecbe362acb35c0da640f731df53880cba7162a22a
parent26bfe3d0b227ab6d38692640b44ce48f2d857602
ntb: intel: add hw workaround for NTB BAR alignment

Add NTB_HWERR_BAR_ALIGN hw errata flag to work around issue where the
aligment for the XLAT base must be BAR size aligned rather than 4k page
aligned. On ICX platform, the XLAT base can be 4k page size aligned
rather than BAR size aligned unlike the previous gen Intel NTB. However,
a silicon errata prevented this from working as expected and a workaround
is introduced to resolve the issue.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/intel/ntb_hw_gen1.h
drivers/ntb/hw/intel/ntb_hw_gen4.c
drivers/ntb/hw/intel/ntb_hw_gen4.h