aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2017-06-05 20:00:52 +0000
committerJon Mason <[email protected]>2017-06-19 18:24:41 +0000
commitcb827ee6ccc3e480f0d9c0e8e53eef55be5b0414 (patch)
tree4236fb39fbd427165810e0980bd4fa34e0d20f6d /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentNTB: ntb_test: fix bug printing ntb_perf results (diff)
downloadkernel-cb827ee6ccc3e480f0d9c0e8e53eef55be5b0414.tar.gz
kernel-cb827ee6ccc3e480f0d9c0e8e53eef55be5b0414.zip
ntb_transport: fix qp count bug
In cases where there are more mw's than spads/2-2, the mw count gets reduced to match the limitation. ntb_transport also tries to ensure that there are fewer qps than mws but uses the full mw count instead of the reduced one. When this happens, the math in 'ntb_transport_setup_qp_mw' will get confused and result in a kernel paging request bug. This patch fixes the bug by reducing qp_count to the reduced mw count instead of the full mw count. Signed-off-by: Logan Gunthorpe <[email protected]> Fixes: e26a5843f7f5 ("NTB: Split ntb_hw_intel and ntb_transport drivers") Acked-by: Allen Hubbe <[email protected]> Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions