• Leslie Shi's avatar
    drm/amdgpu: fix incorrect VCN revision in SRIOV · c40bdfb2
    Leslie Shi authored
    Guest OS will setup VCN instance 1 which is disabled as an enabled instance and
    execute initialization work on it, but this causes VCN ib ring test failure
    on the disabled VCN instance during modprobe:
    
    amdgpu 0000:00:08.0: amdgpu: ring vcn_enc_1.0 uses VM inv eng 5 on hub 1
    amdgpu 0000:00:08.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on vcn_dec_0 (-110).
    amdgpu 0000:00:08.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on vcn_enc_0.0 (-110).
    [drm:amdgpu_device_delayed_init_work_handler [amdgpu]] *ERROR* ib ring test failed (-110).
    
    v2: drop amdgpu_discovery_get_vcn_version and rename sriov_config to
    vcn_config
    v3: modify VCN's revision in SR-IOV and bare-metal
    
    Fixes: baf3f8f3 ("drm/amdgpu: handle SRIOV VCN revision parsing")
    Signed-off-by: default avatarLeslie Shi <Yuliang.Shi@amd.com>
    Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
    Reviewed-by: default avatarGuchun Chen <guchun.chen@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    c40bdfb2
amdgpu_discovery.c 40.2 KB