From: jsg Date: Mon, 19 Jul 2021 09:55:11 +0000 (+0000) Subject: drm/amd/amdgpu/sriov disable all ip hw status by default X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a30ccb29ef9cad3e3a92adba72cb3ec963c7909e;p=openbsd drm/amd/amdgpu/sriov disable all ip hw status by default From Jack Zhang b025bc07c94770ab5ca68a8b2ead12628c2a0698 in linux 5.10.y/5.10.51 95ea3dbc4e9548d35ab6fbf67675cef8c293e2f5 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c index f6486708473..22b2ba03c94 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c @@ -2808,7 +2808,7 @@ static int amdgpu_device_ip_reinit_early_sriov(struct amdgpu_device *adev) AMD_IP_BLOCK_TYPE_IH, }; - for (i = 0; i < ARRAY_SIZE(ip_order); i++) { + for (i = 0; i < adev->num_ip_blocks; i++) { int j; struct amdgpu_ip_block *block;