1. 07 1月, 2021 5 次提交
    • D
      drm/amdgpu: fix no bad_pages issue after umc ue injection · 8a82b347
      Dennis Li 提交于
      old code wrongly used the bad page status as the function return value,
      which cause amdgpu_ras_badpages_read always return failed.
      Signed-off-by: NDennis Li <Dennis.Li@amd.com>
      Reviewed-by: NGuchun Chen <guchun.chen@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      8a82b347
    • J
      drm/amdgpu: fix potential memory leak during navi12 deinitialization · e6d5c64e
      Jiawei Gu 提交于
      Navi12 HDCP & DTM deinitialization needs continue to free bo if already
      created though initialized flag is not set.
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NJiawei Gu <Jiawei.Gu@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      e6d5c64e
    • D
      drm/amdgpu: fix a GPU hang issue when remove device · 88e21af1
      Dennis Li 提交于
      When GFXOFF is enabled and GPU is idle, driver will fail to access some
      registers. Therefore change to disable power gating before all access
      registers with MMIO.
      
      Dmesg log is as following:
      amdgpu 0000:03:00.0: amdgpu: amdgpu: finishing device.
      amdgpu: cp queue pipe 4 queue 0 preemption failed
      amdgpu 0000:03:00.0: amdgpu: failed to write reg 2890 wait reg 28a2
      amdgpu 0000:03:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706
      amdgpu 0000:03:00.0: amdgpu: failed to write reg 2890 wait reg 28a2
      amdgpu 0000:03:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706
      Signed-off-by: NDennis Li <Dennis.Li@amd.com>
      Reviewed-by: NHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      88e21af1
    • D
      drm/amdgpu: fix a memory protection fault when remove amdgpu device · 9a029a3f
      Dennis Li 提交于
      ASD and TA share the same firmware in SIENNA_CICHLID and only TA
      firmware is requested during boot, so only need release TA firmware when
      remove device.
      
      [   83.877150] general protection fault, probably for non-canonical address 0x1269f97e6ed04095: 0000 [#1] SMP PTI
      [   83.888076] CPU: 0 PID: 1312 Comm: modprobe Tainted: G        W  OE     5.9.0-rc5-deli-amd-vangogh-0.0.6.6-114-gdd99d5669a96-dirty #2
      [   83.901160] Hardware name: System manufacturer System Product Name/TUF Z370-PLUS GAMING II, BIOS 0411 09/21/2018
      [   83.912353] RIP: 0010:free_fw_priv+0xc/0x120
      [   83.917531] Code: e8 99 cd b0 ff b8 a1 ff ff ff eb 9f 4c 89 f7 e8 8a cd b0 ff b8 f4 ff ff ff eb 90 0f 1f 00 0f 1f 44 00 00 55 48 89 e5 41 54 53 <4c> 8b 67 18 48 89 fb 4c 89 e7 e8 45 94 41 00 b8 ff ff ff ff f0 0f
      [   83.937576] RSP: 0018:ffffbc34c13a3ce0 EFLAGS: 00010206
      [   83.943699] RAX: ffffffffbb681850 RBX: ffffa047f117eb60 RCX: 0000000080800055
      [   83.951879] RDX: ffffbc34c1d5f000 RSI: 0000000080800055 RDI: 1269f97e6ed04095
      [   83.959955] RBP: ffffbc34c13a3cf0 R08: 0000000000000000 R09: 0000000000000001
      [   83.968107] R10: ffffbc34c13a3cc8 R11: 00000000ffffff00 R12: ffffa047d6b23378
      [   83.976166] R13: ffffa047d6b23338 R14: ffffa047d6b240c8 R15: 0000000000000000
      [   83.984295] FS:  00007f74f6712540(0000) GS:ffffa047fbe00000(0000) knlGS:0000000000000000
      [   83.993323] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [   84.000056] CR2: 0000556a1cca4e18 CR3: 000000021faa8004 CR4: 00000000003706f0
      [   84.008128] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      [   84.016155] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      [   84.024174] Call Trace:
      [   84.027514]  release_firmware.part.11+0x4b/0x70
      [   84.033017]  release_firmware+0x13/0x20
      [   84.037803]  psp_sw_fini+0x77/0xb0 [amdgpu]
      [   84.042857]  amdgpu_device_fini+0x38c/0x5d0 [amdgpu]
      [   84.048815]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
      [   84.055055]  drm_dev_unregister+0x73/0xb0 [drm]
      [   84.060499]  drm_dev_unplug+0x28/0x30 [drm]
      [   84.065598]  amdgpu_dev_uninit+0x1b/0x40 [amdgpu]
      [   84.071223]  amdgpu_pci_remove+0x4e/0x70 [amdgpu]
      [   84.076835]  pci_device_remove+0x3e/0xc0
      [   84.081609]  device_release_driver_internal+0xfb/0x1c0
      [   84.087558]  driver_detach+0x4d/0xa0
      [   84.092041]  bus_remove_driver+0x5f/0xe0
      [   84.096854]  driver_unregister+0x2f/0x50
      [   84.101594]  pci_unregister_driver+0x22/0xa0
      [   84.106806]  amdgpu_exit+0x15/0x2b [amdgpu]
      Signed-off-by: NDennis Li <Dennis.Li@amd.com>
      Reviewed-by: NHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      9a029a3f
    • H
      drm/amdgpu: switched to cached noretry setting for vangogh · ed1df585
      Hawking Zhang 提交于
      global noretry setting is cached to gmc.noretry
      Signed-off-by: NHawking Zhang <Hawking.Zhang@amd.com>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      ed1df585
  2. 24 12月, 2020 5 次提交
  3. 18 12月, 2020 1 次提交
  4. 17 12月, 2020 2 次提交
  5. 16 12月, 2020 14 次提交
  6. 11 12月, 2020 1 次提交
  7. 10 12月, 2020 1 次提交
  8. 09 12月, 2020 11 次提交