]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: improve MSI-X handling (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 15:34:30 +0000 (10:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 18:51:19 +0000 (13:51 -0500)
commit62f58a17688db27357e1879b4219ef98be094e68
tree69ad54ea148fa04a0747096138db310f887b9c7a
parent5fbf849b12b607027cd90b534fb8b9a085af8517
drm/amdgpu: improve MSI-X handling (v3)

Check the number of supported vectors and fall back to MSI if
we return or error or 0 MSI-X vectors.

v2: only allocate one vector.  We can't currently use more than
one anyway.

v3: install the irq on vector 0.

Tested-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Shaoyun liu <shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c