Bug 214289

Summary: amdgpu Msg issuing pre-check failed and SMU may be not in the right state!
Product: Drivers Reporter: Michal Przybylowicz (michal.przybylowicz)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: normal CC: alexdeucher
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.13.13 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg

Description Michal Przybylowicz 2021-09-02 14:56:07 UTC
I am using kernel 5.13.13 with amdgpu drivers. My graphics card is: PowerColor RX 6800 XT (connected through riser cable - if that means something).

I don't have issues when using card with windows 10 (playing games etc.)

$ inxi -Gx
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Tul 
           driver: amdgpu v: kernel bus-ID: 03:00.0 
           Display: server: X.Org 1.20.11 driver: loaded: amdgpu resolution: 3440x1440~144Hz 
           OpenGL: renderer: AMD Radeon RX 6800 XT (SIENNA_CICHLID DRM 3.41.0 5.13.13-051313-lowlatency LLVM 12.0.1) 
           v: 4.6 Mesa 21.3.0-devel (git-dfef775 2021-09-02 hirsute-oibaf-ppa) direct render: Yes

Almost everyday during normal browser usage (watching youtube videos or twitch) I see these messages in the journalctl:

ep 02 16:39:13 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:13 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:20 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:20 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:20 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:20 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:21 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:21 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:22 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:22 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:24 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:24 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to power gate VCN!
Sep 02 16:39:24 dagon kernel: [drm:amdgpu_dpm_enable_uvd [amdgpu]] *ERROR* Dpm disable uvd failed, ret = -5. 
Sep 02 16:39:24 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:24 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:24 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to enable gfxoff!
Sep 02 16:39:26 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:26 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:26 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:27 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:27 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to power gate VCN!
Sep 02 16:39:27 dagon kernel: [drm:amdgpu_dpm_enable_uvd [amdgpu]] *ERROR* Dpm disable uvd failed, ret = -5. 
Sep 02 16:39:27 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:27 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:27 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to enable gfxoff!
Sep 02 16:39:29 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:29 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:30 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:30 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to enable gfxoff!
Sep 02 16:39:31 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:31 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:31 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:31 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:31 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:32 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:32 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to power gate VCN!
Sep 02 16:39:32 dagon kernel: [drm:amdgpu_dpm_enable_uvd [amdgpu]] *ERROR* Dpm disable uvd failed, ret = -5. 
Sep 02 16:39:32 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:32 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:32 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to enable gfxoff!
Sep 02 16:39:34 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:34 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:34 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:35 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:39:35 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:40:33 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:40:33 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:40:38 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:40:39 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:42:10 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:42:10 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:44:05 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:44:05 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to power gate VCN!
Sep 02 16:44:05 dagon kernel: [drm:amdgpu_dpm_enable_uvd [amdgpu]] *ERROR* Dpm disable uvd failed, ret = -5. 
Sep 02 16:44:05 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:44:05 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:44:05 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to enable gfxoff!
Sep 02 16:44:19 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:44:20 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Msg issuing pre-check failed and SMU may be not in the right state!
Sep 02 16:44:20 dagon kernel: amdgpu 0000:03:00.0: amdgpu: Failed to power gate VCN!
Sep 02 16:44:20 dagon kernel: [drm:amdgpu_dpm_enable_uvd [amdgpu]] *ERROR* Dpm disable uvd failed, ret = -5. 

I don't know what do these mean, so I am posting them here.

My amdgpu module settings:

$ cat /etc/modprobe.d/amdgpu.conf
options amdgpu msi=1 aspm=0 audio=0 ppfeaturemask=0xffffffff

$ systool -vm amdgpu                    
Module = "amdgpu"

  Attributes:
    coresize            = "6381568"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "17"
    srcversion          = "426501DD3A5EEAA91AC749F"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    abmlevel            = "0"
    aspm                = "0"
    async_gfx_ring      = "1"
    audio               = "0"
    backlight           = "-1"
    bad_page_threshold  = "-1"
    bapm                = "-1"
    benchmark           = "0"
    cg_mask             = "4294967295"
    cik_support         = "0"
    compute_multipipe   = "-1"
    cwsr_enable         = "1"
    dc                  = "-1"
    dcdebugmask         = "0"
    dcfeaturemask       = "2"
    debug_evictions     = "N"
    debug_largebar      = "0"
    deep_color          = "0"
    disable_cu          = "(null)"
    discovery           = "-1"
    disp_priority       = "0"
    dpm                 = "-1"
    emu_mode            = "0"
    exp_hw_support      = "0"
    force_asic_type     = "-1"
    forcelongtraining   = "0"
    freesync_video      = "0"
    fw_load_type        = "-1"
    gpu_recovery        = "-1"
    halt_if_hws_hang    = "0"
    hw_i2c              = "0"
    hws_gws_support     = "N"
    hws_max_conc_proc   = "8"
    ignore_crat         = "0"
    ip_block_mask       = "4294967295"
    job_hang_limit      = "0"
    lbpw                = "-1"
    lockup_timeout      = ""
    max_num_of_queues_per_device= "4096"
    mcbp                = "0"
    mes                 = "0"
    msi                 = "1"
    no_queue_eviction_on_vm_fault= "0"
    no_system_mem_limit = "N"
    noretry             = "-1"
    num_kcq             = "-1"
    pcie_gen2           = "-1"
    pcie_gen_cap        = "0"
    pcie_lane_cap       = "0"
    pg_mask             = "4294967295"
    ppfeaturemask       = "0xffffffff"
    queue_preemption_timeout_ms= "9000"
    ras_enable          = "-1"
    ras_mask            = "4294967295"
    reset_method        = "-1"
    runpm               = "-1"
    sched_hw_submission = "2"
    sched_jobs          = "32"
    sched_policy        = "0"
    sdma_phase_quantum  = "32"
    send_sigterm        = "0"
    si_support          = "0"
    smu_memory_pool_size= "0"
    smu_pptable_id      = "-1"
    test                = "0"
    timeout_fatal_disable= "N"
    timeout_period      = "0"
    tmz                 = "-1"
    virtual_display     = "(null)"
    vis_vramlimit       = "0"
    vm_block_size       = "-1"
    vm_debug            = "0"
    vm_fault_stop       = "0"
    vm_fragment_size    = "-1"
    vm_size             = "-1"
    vm_update_mode      = "-1"

  Sections:
Comment 1 Alex Deucher 2021-09-02 16:03:42 UTC
Please include your full dmesg output.  Does the behavior change if you remove all of the extra amdgpu module parameters you are applying?
Comment 2 Michal Przybylowicz 2021-09-02 16:36:11 UTC
Created attachment 298645 [details]
dmesg

full dmesg extraced using:

$ journalctl -k -b -1 --no-pager > ~/Downloads/dmesg.txt
Comment 3 Michal Przybylowicz 2021-09-02 16:39:57 UTC
Just one thing that I have noticed it looks like these messages appear when I do some interactions on webpages like clicking dropdown... 

I am using Vivaldi: 4.1.2369.21 (Stable channel) stable (64-bit)

And it also spams its log with these errors (maybe this all is related):

[1542:1542:0902/180420.608750:ERROR:shared_context_state.cc(73)] : Skia shader compilation error ------------------------ Errors:
[1542:1542:0902/180425.551298:ERROR:gles2_cmd_decoder.cc(18958)] : [.RendererMainThread-0x3b5002c41a00]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[1542:1542:0902/180425.552365:ERROR:gles2_cmd_decoder.cc(18987)] : [.RendererMainThread-0x3b5002c41a00]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared image
[1542:1542:0902/180539.574319:ERROR:shared_image_manager.cc(214)] : SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[1542:1542:0902/180539.574446:ERROR:shared_image_manager.cc(214)] : SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[1542:1542:0902/180606.529719:ERROR:shared_context_state.cc(73)] : Skia shader compilation error ------------------------ Errors:
[1542:1542:0902/180606.557709:ERROR:shared_context_state.cc(73)] : Skia shader compilation error ------------------------ Errors:
[1542:1542:0902/183031.153537:ERROR:shared_image_manager.cc(214)] : SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[1542:1542:0902/183031.153664:ERROR:shared_image_manager.cc(214)] : SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[1542:1542:0902/183143.069374:ERROR:shared_context_state.cc(73)] : Skia shader compilation error ------------------------ Errors:
[1542:1542:0902/183213.030240:ERROR:shared_context_state.cc(73)] : Skia shader compilation error ------------------------ Errors: