[pull] amdgpu, amdkfd drm-fixes-6.8

2024-02-15 Thread Alex Deucher
Hi Dave, Sima,

Fixes for 6.8.

The following changes since commit 841c35169323cd833294798e58b9bf63fa4fa1de:

  Linux 6.8-rc4 (2024-02-11 12:18:13 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/agd5f/linux.git 
tags/amd-drm-fixes-6.8-2024-02-15

for you to fetch changes up to 86e8af451be2786482e7ba6556bbb8257c5c7ccf:

  drm/amdgpu: Fix implicit assumtion in gfx11 debug flags (2024-02-14 18:02:41 
-0500)


amd-drm-fixes-6.8-2024-02-15:

amdgpu:
- Add some better debugging support for PSR and panel power saving features
- ABM fix
- PSR fixes
- Suspend/resume fixes
- Link training fix
- Aspect ratio fix
- DCN 3.5 fixes
- VCN 4.x fix
- GFX 11 fix
- Misc display fixes
- Misc small fixes

amdkfd:
- Cache size reporting fix
- SIMD distribution fix


Dan Carpenter (1):
  drm/amd/display: Fix && vs || typos

Hamza Mahfooz (3):
  drm/amd/display: add panel_power_savings sysfs entry to eDP connectors
  drm/amdgpu: respect the abmlevel module parameter value if it is set
  drm/amdgpu: make damage clips support configurable

Kent Russell (1):
  drm/amdkfd: Fix L2 cache size reporting in GFX9.4.3

Mario Limonciello (2):
  drm/amd: Stop evicting resources on APUs in suspend
  Revert "drm/amd: flush any delayed gfxoff on suspend entry"

Nicholas Kazlauskas (1):
  drm/amd/display: Increase ips2_eval delay for DCN35

Rajneesh Bhardwaj (2):
  drm/amdkfd: update SIMD distribution algo for GFXIP 9.4.2 onwards
  drm/amdgpu: Fix implicit assumtion in gfx11 debug flags

Roman Li (1):
  drm/amd/display: Fix array-index-out-of-bounds in dcn35_clkmgr

Sohaib Nadeem (2):
  Revert "drm/amd/display: increased min_dcfclk_mhz and min_fclk_mhz"
  drm/amd/display: fixed integer types and null check locations

Srinivasan Shanmugam (5):
  drm/amd/display: Initialize 'wait_time_microsec' variable in 
link_dp_training_dpia.c
  drm/amd/display: Fix possible use of uninitialized 'max_chunks_fbc_mode' 
in 'calculate_bandwidth()'
  drm/amd/display: Fix possible buffer overflow in 
'find_dcfclk_for_voltage()'
  drm/amd/display: Fix possible NULL dereference on device remove/driver 
unload
  drm/amdgpu/display: Initialize gamma correction mode variable in 
dcn30_get_gamcor_current()

Thong (1):
  drm/amdgpu/soc21: update VCN 4 max HEVC encoding resolution

Tom Chung (1):
  drm/amd/display: Preserve original aspect ratio in create stream

Zhikai Zhai (1):
  drm/amd/display: Add align done check

 drivers/gpu/drm/amd/amdgpu/amdgpu.h|   5 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c   |  15 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  12 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c|  24 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c|   9 +-
 drivers/gpu/drm/amd/amdgpu/soc21.c |   4 +-
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c   |   4 +-
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c|   9 ++
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h  |   1 +
 .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c |   4 +-
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c  |  10 +-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  | 103 -
 drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c  |   2 +-
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c |  16 ++--
 .../drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c |   2 +
 .../amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c   |  15 ++-
 .../gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c|   5 +-
 .../gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c   |   2 +-
 .../drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c|   4 +-
 .../gpu/drm/amd/display/dc/link/link_validation.c  |   2 +-
 .../display/dc/link/protocols/link_dp_training.c   |   5 +-
 .../dc/link/protocols/link_dp_training_dpia.c  |   2 +-
 .../amd/display/dc/resource/dcn35/dcn35_resource.c |   2 +-
 23 files changed, 209 insertions(+), 48 deletions(-)


[pull] amdgpu, amdkfd drm-fixes-6.8

2024-02-01 Thread Alex Deucher
Hi Dave, Sima,

Fixes for 6.8.

The following changes since commit 41bccc98fb7931d63d03f326a746ac4d429c1dd3:

  Linux 6.8-rc2 (2024-01-28 17:01:12 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/agd5f/linux.git 
tags/amd-drm-fixes-6.8-2024-02-01

for you to fetch changes up to 6813cdca4ab94a238f8eb0cef3d3f3fcbdfb0ee0:

  drm/amdgpu/pm: Use inline function for IP version check (2024-02-01 09:11:38 
-0500)


amd-drm-fixes-6.8-2024-02-01:

amdgpu:
- Fix reboot issue seen on some 7000 series dGPUs
- Fix client init order for KFD
- Misc display fixes
- USB-C fix
- DCN 3.5 fixes
- Fix issues with GPU scheduler and GPU reset
- GPU firmware loading fix
- Misc fixes
- GC 11.5 fix
- VCN 4.0.5 fix
- IH overflow fix

amdkfd:
- SVM fixes
- Trap handler fix
- Fix device permission lookup
- Properly reserve BO before validating it


Charlene Liu (2):
  Revert "drm/amd/display: initialize all the dpm level's stutter latency"
  drm/amd/display: fix USB-C flag update after enc10 feature init

David McFarland (1):
  drm/amd: Don't init MEC2 firmware when it fails to load

Dmytro Laktyushkin (1):
  drm/amd/display: Fix DPSTREAM CLK on and off sequence

Fangzhi Zuo (1):
  drm/amd/display: Fix dcn35 8k30 Underflow/Corruption Issue

Friedrich Vock (1):
  drm/amdgpu: Reset IH OVERFLOW_CLEAR bit

Jay Cornwall (1):
  drm/amdkfd: Use S_ENDPGM_SAVED in trap handler

Lang Yu (1):
  drm/amdkfd: reserve the BO before validating it

Le Ma (1):
  drm/amdgpu: move the drm client creation behind drm device registration

Ma Jun (2):
  drm/amdgpu: Fix the warning info in mode1 reset
  drm/amdgpu/pm: Use inline function for IP version check

Mario Limonciello (1):
  Revert "drm/amd/pm: fix the high voltage and temperature issue"

Mukul Joshi (1):
  drm/amdkfd: Use correct drm device for cgroup permission check

Nicholas Susanto (1):
  drm/amd/display: Underflow workaround by increasing SR exit latency

Philip Yang (1):
  drm/amdkfd: Correct partial migration virtual addr

Sohaib Nadeem (1):
  drm/amd/display: increased min_dcfclk_mhz and min_fclk_mhz

Srinivasan Shanmugam (3):
  drm/amd/display: Add NULL check for kzalloc in 
'amdgpu_dm_atomic_commit_tail()'
  drm/amd/display: Fix buffer overflow in 
'get_host_router_total_dp_tunnel_bw()'
  drm/amdgpu: Fix missing error code in 'gmc_v6/7/8/9_0_hw_init()'

Wenjing Liu (1):
  drm/amd/display: fix incorrect mpc_combine array size

Yifan Zhang (2):
  drm/amdgpu: drm/amdgpu: remove golden setting for gfx 11.5.0
  drm/amdgpu: remove asymmetrical irq disabling in vcn 4.0.5 suspend

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 32 ---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h |  4 ++-
 .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c   | 20 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c|  8 ++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 36 --
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c|  4 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c   | 12 
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h   |  2 +-
 drivers/gpu/drm/amd/amdgpu/cik_ih.c|  6 
 drivers/gpu/drm/amd/amdgpu/cz_ih.c |  5 +++
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c |  2 --
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 22 -
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c  |  4 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c  |  4 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c  |  4 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c  |  4 +--
 drivers/gpu/drm/amd/amdgpu/iceland_ih.c|  5 +++
 drivers/gpu/drm/amd/amdgpu/ih_v6_0.c   |  6 
 drivers/gpu/drm/amd/amdgpu/ih_v6_1.c   |  7 +
 drivers/gpu/drm/amd/amdgpu/navi10_ih.c |  6 
 drivers/gpu/drm/amd/amdgpu/si_ih.c |  6 
 drivers/gpu/drm/amd/amdgpu/tonga_ih.c  |  6 
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c  | 17 --
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c| 19 
 drivers/gpu/drm/amd/amdgpu/vega10_ih.c |  6 
 drivers/gpu/drm/amd/amdgpu/vega20_ih.c |  6 
 drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h | 14 -
 .../gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx10.asm |  2 +-
 .../gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx9.asm  |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c   |  4 ++-
 drivers/gpu/drm/amd/amdkfd/kfd_migrate.c   |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h  |  9 --
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |  4 +++
 .../amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c   

[pull] amdgpu, amdkfd drm-fixes-6.8

2024-01-18 Thread Alex Deucher
Hi Dave, Sima,

New fixes for 6.8, on top of the fixes I sent last week and fixed up on Monday.

The following changes since commit d7643fe6fb76edb1f2f1497bf5e8b8f4774b5129:

  drm/amd/display: Avoid enum conversion warning (2024-01-15 18:35:07 -0500)

are available in the Git repository at:

  https://gitlab.freedesktop.org/agd5f/linux.git 
tags/amd-drm-fixes-6.8-2024-01-18

for you to fetch changes up to aa0901a9008eeb2710292aff94e615adf7884d5f:

  drm/amdgpu: Enable GFXOFF for Compute on GFX11 (2024-01-18 16:45:19 -0500)


amd-drm-fixes-6.8-2024-01-18:

amdgpu:
- DSC fixes
- DC resource pool fixes
- OTG fix
- DML2 fixes
- Aux fix
- GFX10 RLC firmware handling fix
- Revert a broken workaround for SMU 13.0.2
- DC writeback fix
- Enable gfxoff when ROCm apps are active on gfx11 with the proper FW version

amdkfd:
- Fix dma-buf exports using GEM handles


Charlene Liu (1):
  drm/amd/display: Add logging resource checks

Christian König (1):
  drm/amdgpu: revert "Adjust removal control flow for smu v13_0_2"

Christophe JAILLET (1):
  drm/amd/display: Fix a switch statement in 
populate_dml_output_cfg_from_stream_state()

Dillon Varone (1):
  drm/amd/display: Init link enc resources in dc_state only if res_pool 
presents

Flora Cui (1):
  drm/amdkfd: init drm_client with funcs hook

Ilya Bakoulin (1):
  drm/amd/display: Clear OPTC mem select on disable

Ma Jun (1):
  drm/amdgpu: Fix the null pointer when load rlc firmware

Nicholas Kazlauskas (1):
  drm/amd/display: Port DENTIST hang and TDR fixes to OTG disable W/A

Ori Messinger (1):
  drm/amdgpu: Enable GFXOFF for Compute on GFX11

Ovidiu Bunea (1):
  drm/amd/display: Fix DML2 watermark calculation

Srinivasan Shanmugam (2):
  drm/amd/display: Fix late derefrence 'dsc' check in 
'link_set_dsc_pps_packet()'
  drm/amd/display: Drop 'acrtc' and add 'new_crtc_state' NULL check for 
writeback requests.

Wayne Lin (1):
  drm/amd/display: Align the returned error code with legacy DP

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 11 
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 32 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 32 --
 drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h  |  1 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h   |  1 -
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 15 --
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c  |  6 ++--
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c  |  5 
 .../amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c | 21 ++
 drivers/gpu/drm/amd/display/dc/core/dc.c   |  4 ++-
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c  |  4 +++
 drivers/gpu/drm/amd/display/dc/core/dc_state.c |  8 --
 .../drm/amd/display/dc/dml2/display_mode_core.c| 14 +-
 .../amd/display/dc/dml2/dml2_translation_helper.c  |  2 +-
 drivers/gpu/drm/amd/display/dc/link/link_dpms.c|  8 --
 .../gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.c |  3 ++
 .../gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.c |  3 ++
 17 files changed, 62 insertions(+), 108 deletions(-)


[pull] amdgpu, amdkfd drm-fixes-6.8

2024-01-15 Thread Alex Deucher
Hi Dave, Sima,

Fixes for 6.8.  Same PR as Friday, but with new clang warning fixed and
dropped KFD changes at Felix' request.

The following changes since commit e54478fbdad20f2c58d0a4f99d01299ed8e7fe9c:

  Merge tag 'amd-drm-next-6.8-2024-01-05' of 
https://gitlab.freedesktop.org/agd5f/linux into drm-next (2024-01-09 09:07:50 
+1000)

are available in the Git repository at:

  https://gitlab.freedesktop.org/agd5f/linux.git 
tags/amd-drm-fixes-6.8-2024-01-15-1

for you to fetch changes up to d7643fe6fb76edb1f2f1497bf5e8b8f4774b5129:

  drm/amd/display: Avoid enum conversion warning (2024-01-15 18:35:07 -0500)


amd-drm-fixes-6.8-2024-01-15-1:

amdgpu:
- SubVP fixes
- VRR fixes
- USB4 fixes
- DCN 3.5 fixes
- GFX11 harvesting fix
- RAS fixes
- Misc small fixes
- KFD dma-buf import fixes
- Power reporting fixes
- ATHUB 3.3 fix
- SR-IOV fix
- Add missing fw release for fiji
- GFX 11.5 fix
- Debugging module parameter fix
- SMU 13.0.6 fixes
- Fix new clang warning

amdkfd:
- Fix lockdep warnings
- Fix sparse __rcu warnings
- HMM fix
- SVM fix


Alex Deucher (4):
  drm/amdgpu: fix avg vs input power reporting on smu7
  drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL
  drm/amdgpu/pm: clarify debugfs pm output
  drm/amdgpu: drop exp hw support check for GC 9.4.3

Aric Cyr (1):
  drm/amd/display: 3.2.266

Candice Li (2):
  drm/amdgpu: Drop unnecessary sentences about CE and deferred error.
  drm/amdgpu: Support poison error injection via ras_ctrl debugfs

Charlene Liu (1):
  drm/amd/display: Update z8 latency

Dafna Hirschfeld (1):
  drm/amdkfd: fixes for HMM mem allocation

Daniel Miess (1):
  Revert "drm/amd/display: Fix conversions between bytes and KB"

Felix Kuehling (2):
  drm/amdkfd: Fix lock dependency warning
  drm/amdkfd: Fix sparse __rcu annotation warnings

George Shen (1):
  drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled

Hawking Zhang (1):
  drm/amdgpu: Packed socket_id to ras feature mask

Ivan Lipski (1):
  Revert "drm/amd/display: fix bandwidth validation failure on DCN 2.1"

James Zhu (1):
  drm/amdgpu: make a correction on comment

Le Ma (3):
  Revert "drm/amdgpu: add param to specify fw bo location for front-door 
loading"
  drm/amdgpu: add debug flag to place fw bo on vram for frontdoor loading
  drm/amdgpu: move debug options init prior to amdgpu device init

Lijo Lazar (2):
  drm/amd/pm: Add error log for smu v13.0.6 reset
  drm/amd/pm: Fix smuv13.0.6 current clock reporting

Likun Gao (1):
  drm/amdgpu: correct the cu count for gfx v11

Martin Leung (2):
  drm/amd/display: revert "for FPO & SubVP/DRR config program vmin/max"
  drm/amd/display: revert "Optimize VRR updates to only necessary ones"

Martin Tsai (1):
  drm/amd/display: To adjust dprefclk by down spread percentage

Meenakshikumar Somasundaram (1):
  drm/amd/display: Dpia hpd status not in sync after S4

Melissa Wen (1):
  drm/amd/display: cleanup inconsistent indenting in amdgpu_dm_color

Nathan Chancellor (1):
  drm/amd/display: Avoid enum conversion warning

Peichen Huang (1):
  drm/amd/display: Request usb4 bw for mst streams

Philip Yang (1):
  drm/amdkfd: Fix lock dependency warning with srcu

Srinivasan Shanmugam (6):
  drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 
'get_platform_power_management_table()'
  drm/amdgpu: Fix with right return code '-EIO' in 
'amdgpu_gmc_vram_checking()'
  drm/amdgpu: Fix unsigned comparison with less than zero in 
vpe_u1_8_from_fraction()
  drm/amdgpu: Release 'adev->pm.fw' before return in 
'amdgpu_device_need_post()'
  drm/amd/display: Fix variable deferencing before NULL check in 
edp_setup_replay()
  drm/amdkfd: Fix 'node' NULL check in 'svm_range_get_range_boundaries()'

Victor Lu (1):
  drm/amdgpu: Do not program VM_L2_CNTL under SRIOV

Yifan Zhang (3):
  drm/amdgpu: update headers for nbio v7.11
  drm/amdgpu: update ATHUB_MISC_CNTL offset for athub v3.3
  drm/amdgpu: update regGL2C_CTRL4 value in golden setting

 drivers/gpu/drm/amd/amdgpu/amdgpu.h|  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c   |  4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c  |  2 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 15 ++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c| 21 ---
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c|  7 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c| 26 
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c  |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h |  2 +-
 

Re: [pull] amdgpu, amdkfd drm-fixes-6.8

2024-01-15 Thread Felix Kuehling



On 2024-01-15 17:08, Alex Deucher wrote:

Hi Dave, Sima,

Same PR as Friday, but with the new clang warning fixed.

The following changes since commit e54478fbdad20f2c58d0a4f99d01299ed8e7fe9c:

   Merge tag 'amd-drm-next-6.8-2024-01-05' of 
https://gitlab.freedesktop.org/agd5f/linux into drm-next (2024-01-09 09:07:50 
+1000)

are available in the Git repository at:

   https://gitlab.freedesktop.org/agd5f/linux.git 
tags/amd-drm-fixes-6.8-2024-01-15

for you to fetch changes up to 86718cf93237a0f45773bbc49b6006733fc4e051:

   drm/amd/display: Avoid enum conversion warning (2024-01-15 16:28:05 -0500)


amd-drm-fixes-6.8-2024-01-15:

amdgpu:
- SubVP fixes
- VRR fixes
- USB4 fixes
- DCN 3.5 fixes
- GFX11 harvesting fix
- RAS fixes
- Misc small fixes
- KFD dma-buf import fixes
- Power reporting fixes
- ATHUB 3.3 fix
- SR-IOV fix
- Add missing fw release for fiji
- GFX 11.5 fix
- Debugging module parameter fix
- SMU 13.0.6 fixes
- Fix new clang warning

amdkfd:
- Fix lockdep warnings
- Fix sparse __rcu warnings
- Bump interface version so userspace knows that the kernel supports dma-bufs 
exported from KFD
   Most of the fixes for this went into 6.7, but the last fix is in this PR
- HMM fix
- SVM fix


Alex Deucher (4):
   drm/amdgpu: fix avg vs input power reporting on smu7
   drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL
   drm/amdgpu/pm: clarify debugfs pm output
   drm/amdgpu: drop exp hw support check for GC 9.4.3

Aric Cyr (1):
   drm/amd/display: 3.2.266

Candice Li (2):
   drm/amdgpu: Drop unnecessary sentences about CE and deferred error.
   drm/amdgpu: Support poison error injection via ras_ctrl debugfs

Charlene Liu (1):
   drm/amd/display: Update z8 latency

Dafna Hirschfeld (1):
   drm/amdkfd: fixes for HMM mem allocation

Daniel Miess (1):
   Revert "drm/amd/display: Fix conversions between bytes and KB"

Felix Kuehling (4):
   drm/amdkfd: Fix lock dependency warning
   drm/amdkfd: Fix sparse __rcu annotation warnings
   drm/amdgpu: Auto-validate DMABuf imports in compute VMs
   drm/amdkfd: Bump KFD ioctl version


I don't think the last two patches should be on -fixes. This is really 
for a new interoperability feature and not meant to fix other 
functionality that was already expected to work. That's why the user 
mode code checks for the API version.


Regards,
  Felix




George Shen (1):
   drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled

Hawking Zhang (1):
   drm/amdgpu: Packed socket_id to ras feature mask

Ivan Lipski (1):
   Revert "drm/amd/display: fix bandwidth validation failure on DCN 2.1"

James Zhu (1):
   drm/amdgpu: make a correction on comment

Le Ma (3):
   Revert "drm/amdgpu: add param to specify fw bo location for front-door 
loading"
   drm/amdgpu: add debug flag to place fw bo on vram for frontdoor loading
   drm/amdgpu: move debug options init prior to amdgpu device init

Lijo Lazar (2):
   drm/amd/pm: Add error log for smu v13.0.6 reset
   drm/amd/pm: Fix smuv13.0.6 current clock reporting

Likun Gao (1):
   drm/amdgpu: correct the cu count for gfx v11

Martin Leung (2):
   drm/amd/display: revert "for FPO & SubVP/DRR config program vmin/max"
   drm/amd/display: revert "Optimize VRR updates to only necessary ones"

Martin Tsai (1):
   drm/amd/display: To adjust dprefclk by down spread percentage

Meenakshikumar Somasundaram (1):
   drm/amd/display: Dpia hpd status not in sync after S4

Melissa Wen (1):
   drm/amd/display: cleanup inconsistent indenting in amdgpu_dm_color

Nathan Chancellor (1):
   drm/amd/display: Avoid enum conversion warning

Peichen Huang (1):
   drm/amd/display: Request usb4 bw for mst streams

Philip Yang (1):
   drm/amdkfd: Fix lock dependency warning with srcu

Srinivasan Shanmugam (6):
   drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 
'get_platform_power_management_table()'
   drm/amdgpu: Fix with right return code '-EIO' in 
'amdgpu_gmc_vram_checking()'
   drm/amdgpu: Fix unsigned comparison with less than zero in 
vpe_u1_8_from_fraction()
   drm/amdgpu: Release 'adev->pm.fw' before return in 
'amdgpu_device_need_post()'
   drm/amd/display: Fix variable deferencing before NULL check in 
edp_setup_replay()
   drm/amdkfd: Fix 'node' NULL check in 'svm_range_get_range_boundaries()'

Victor Lu (1):
   drm/amdgpu: Do not program VM_L2_CNTL under SRIOV

Yifan Zhang (3):
   drm/amdgpu: update headers for nbio v7.11
   drm/amdgpu: update ATHUB_MISC_CNTL offset for athub v3.3
   drm/amdgpu: update regGL2C_CTRL4 value in golden setting

  drivers/gpu/drm/amd/amdgpu/amdgpu.h|  3 +-
  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 12 +++-
  

[pull] amdgpu, amdkfd drm-fixes-6.8

2024-01-15 Thread Alex Deucher
Hi Dave, Sima,

Same PR as Friday, but with the new clang warning fixed.

The following changes since commit e54478fbdad20f2c58d0a4f99d01299ed8e7fe9c:

  Merge tag 'amd-drm-next-6.8-2024-01-05' of 
https://gitlab.freedesktop.org/agd5f/linux into drm-next (2024-01-09 09:07:50 
+1000)

are available in the Git repository at:

  https://gitlab.freedesktop.org/agd5f/linux.git 
tags/amd-drm-fixes-6.8-2024-01-15

for you to fetch changes up to 86718cf93237a0f45773bbc49b6006733fc4e051:

  drm/amd/display: Avoid enum conversion warning (2024-01-15 16:28:05 -0500)


amd-drm-fixes-6.8-2024-01-15:

amdgpu:
- SubVP fixes
- VRR fixes
- USB4 fixes
- DCN 3.5 fixes
- GFX11 harvesting fix
- RAS fixes
- Misc small fixes
- KFD dma-buf import fixes
- Power reporting fixes
- ATHUB 3.3 fix
- SR-IOV fix
- Add missing fw release for fiji
- GFX 11.5 fix
- Debugging module parameter fix
- SMU 13.0.6 fixes
- Fix new clang warning

amdkfd:
- Fix lockdep warnings
- Fix sparse __rcu warnings
- Bump interface version so userspace knows that the kernel supports dma-bufs 
exported from KFD
  Most of the fixes for this went into 6.7, but the last fix is in this PR
- HMM fix
- SVM fix


Alex Deucher (4):
  drm/amdgpu: fix avg vs input power reporting on smu7
  drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL
  drm/amdgpu/pm: clarify debugfs pm output
  drm/amdgpu: drop exp hw support check for GC 9.4.3

Aric Cyr (1):
  drm/amd/display: 3.2.266

Candice Li (2):
  drm/amdgpu: Drop unnecessary sentences about CE and deferred error.
  drm/amdgpu: Support poison error injection via ras_ctrl debugfs

Charlene Liu (1):
  drm/amd/display: Update z8 latency

Dafna Hirschfeld (1):
  drm/amdkfd: fixes for HMM mem allocation

Daniel Miess (1):
  Revert "drm/amd/display: Fix conversions between bytes and KB"

Felix Kuehling (4):
  drm/amdkfd: Fix lock dependency warning
  drm/amdkfd: Fix sparse __rcu annotation warnings
  drm/amdgpu: Auto-validate DMABuf imports in compute VMs
  drm/amdkfd: Bump KFD ioctl version

George Shen (1):
  drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled

Hawking Zhang (1):
  drm/amdgpu: Packed socket_id to ras feature mask

Ivan Lipski (1):
  Revert "drm/amd/display: fix bandwidth validation failure on DCN 2.1"

James Zhu (1):
  drm/amdgpu: make a correction on comment

Le Ma (3):
  Revert "drm/amdgpu: add param to specify fw bo location for front-door 
loading"
  drm/amdgpu: add debug flag to place fw bo on vram for frontdoor loading
  drm/amdgpu: move debug options init prior to amdgpu device init

Lijo Lazar (2):
  drm/amd/pm: Add error log for smu v13.0.6 reset
  drm/amd/pm: Fix smuv13.0.6 current clock reporting

Likun Gao (1):
  drm/amdgpu: correct the cu count for gfx v11

Martin Leung (2):
  drm/amd/display: revert "for FPO & SubVP/DRR config program vmin/max"
  drm/amd/display: revert "Optimize VRR updates to only necessary ones"

Martin Tsai (1):
  drm/amd/display: To adjust dprefclk by down spread percentage

Meenakshikumar Somasundaram (1):
  drm/amd/display: Dpia hpd status not in sync after S4

Melissa Wen (1):
  drm/amd/display: cleanup inconsistent indenting in amdgpu_dm_color

Nathan Chancellor (1):
  drm/amd/display: Avoid enum conversion warning

Peichen Huang (1):
  drm/amd/display: Request usb4 bw for mst streams

Philip Yang (1):
  drm/amdkfd: Fix lock dependency warning with srcu

Srinivasan Shanmugam (6):
  drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 
'get_platform_power_management_table()'
  drm/amdgpu: Fix with right return code '-EIO' in 
'amdgpu_gmc_vram_checking()'
  drm/amdgpu: Fix unsigned comparison with less than zero in 
vpe_u1_8_from_fraction()
  drm/amdgpu: Release 'adev->pm.fw' before return in 
'amdgpu_device_need_post()'
  drm/amd/display: Fix variable deferencing before NULL check in 
edp_setup_replay()
  drm/amdkfd: Fix 'node' NULL check in 'svm_range_get_range_boundaries()'

Victor Lu (1):
  drm/amdgpu: Do not program VM_L2_CNTL under SRIOV

Yifan Zhang (3):
  drm/amdgpu: update headers for nbio v7.11
  drm/amdgpu: update ATHUB_MISC_CNTL offset for athub v3.3
  drm/amdgpu: update regGL2C_CTRL4 value in golden setting

 drivers/gpu/drm/amd/amdgpu/amdgpu.h|  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 12 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c   | 43 +++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c |  6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c  |  2 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c|  4 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 15 ++---
 

Re: [pull] amdgpu, amdkfd drm-fixes-6.8

2024-01-14 Thread Dave Airlie
/home/airlied/devel/kernel/dim/src/drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_dpia_bw.c:548:24:
error: arithmetic between different enumeration types ('const enum
dc_link_rate' and 'const enum dc_lane_count')
[-Werror,-Wenum-enum-conversion]
link_cap->link_rate * link_cap->lane_count *
LINK_RATE_REF_FREQ_IN_KHZ * 8;
~~~ ^ 
1 error generated.

clang said no.

Dave.

On Sat, 13 Jan 2024 at 03:57, Alex Deucher  wrote:
>
> Hi Dave, Sima,
>
> Fixes for 6.8.
>
> The following changes since commit e54478fbdad20f2c58d0a4f99d01299ed8e7fe9c:
>
>   Merge tag 'amd-drm-next-6.8-2024-01-05' of 
> https://gitlab.freedesktop.org/agd5f/linux into drm-next (2024-01-09 09:07:50 
> +1000)
>
> are available in the Git repository at:
>
>   https://gitlab.freedesktop.org/agd5f/linux.git 
> tags/amd-drm-fixes-6.8-2024-01-12
>
> for you to fetch changes up to 3b23fd46e2af68b47902caa3f88d60f73c5d85f7:
>
>   drm/amd/pm: Fix smuv13.0.6 current clock reporting (2024-01-11 23:33:37 
> -0500)
>
> 
> amd-drm-fixes-6.8-2024-01-12:
>
> amdgpu:
> - SubVP fixes
> - VRR fixes
> - USB4 fixes
> - DCN 3.5 fixes
> - GFX11 harvesting fix
> - RAS fixes
> - Misc small fixes
> - KFD dma-buf import fixes
> - Power reporting fixes
> - ATHUB 3.3 fix
> - SR-IOV fix
> - Add missing fw release for fiji
> - GFX 11.5 fix
> - Debugging module parameter fix
> - SMU 13.0.6 fixes
>
> amdkfd:
> - Fix lockdep warnings
> - Fix sparse __rcu warnings
> - Bump interface version so userspace knows that the kernel supports dma-bufs 
> exported from KFD
>   Most of the fixes for this went into 6.7, but the last fix is in this PR
> - HMM fix
> - SVM fix
>
> 
> Alex Deucher (4):
>   drm/amdgpu: fix avg vs input power reporting on smu7
>   drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL
>   drm/amdgpu/pm: clarify debugfs pm output
>   drm/amdgpu: drop exp hw support check for GC 9.4.3
>
> Aric Cyr (1):
>   drm/amd/display: 3.2.266
>
> Candice Li (2):
>   drm/amdgpu: Drop unnecessary sentences about CE and deferred error.
>   drm/amdgpu: Support poison error injection via ras_ctrl debugfs
>
> Charlene Liu (1):
>   drm/amd/display: Update z8 latency
>
> Dafna Hirschfeld (1):
>   drm/amdkfd: fixes for HMM mem allocation
>
> Daniel Miess (1):
>   Revert "drm/amd/display: Fix conversions between bytes and KB"
>
> Felix Kuehling (4):
>   drm/amdkfd: Fix lock dependency warning
>   drm/amdkfd: Fix sparse __rcu annotation warnings
>   drm/amdgpu: Auto-validate DMABuf imports in compute VMs
>   drm/amdkfd: Bump KFD ioctl version
>
> George Shen (1):
>   drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled
>
> Hawking Zhang (1):
>   drm/amdgpu: Packed socket_id to ras feature mask
>
> Ivan Lipski (1):
>   Revert "drm/amd/display: fix bandwidth validation failure on DCN 2.1"
>
> James Zhu (1):
>   drm/amdgpu: make a correction on comment
>
> Le Ma (3):
>   Revert "drm/amdgpu: add param to specify fw bo location for front-door 
> loading"
>   drm/amdgpu: add debug flag to place fw bo on vram for frontdoor loading
>   drm/amdgpu: move debug options init prior to amdgpu device init
>
> Lijo Lazar (2):
>   drm/amd/pm: Add error log for smu v13.0.6 reset
>   drm/amd/pm: Fix smuv13.0.6 current clock reporting
>
> Likun Gao (1):
>   drm/amdgpu: correct the cu count for gfx v11
>
> Martin Leung (2):
>   drm/amd/display: revert "for FPO & SubVP/DRR config program vmin/max"
>   drm/amd/display: revert "Optimize VRR updates to only necessary ones"
>
> Martin Tsai (1):
>   drm/amd/display: To adjust dprefclk by down spread percentage
>
> Meenakshikumar Somasundaram (1):
>   drm/amd/display: Dpia hpd status not in sync after S4
>
> Melissa Wen (1):
>   drm/amd/display: cleanup inconsistent indenting in amdgpu_dm_color
>
> Peichen Huang (1):
>   drm/amd/display: Request usb4 bw for mst streams
>
> Philip Yang (1):
>   drm/amdkfd: Fix lock dependency warning with srcu
>
> Srinivasan Shanmugam (6):
>   drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 
> 'get_platform_power_management_table()'
>   drm/amdgpu: Fix with right return code '-EIO' in 
> 'amdgpu_gmc_vram_checking()'
>   drm/amdgpu: Fix unsigned comparison with less than zero in 
> vpe_u1_8_from_fraction()
>   drm/amdgpu: Release 'adev->pm.fw' before return in 
> 'amdgpu_device_need_post()'
>   drm/amd/display: Fix variable deferencing before NULL check in 
> edp_setup_replay()
>   drm/amdkfd: Fix 'node' NULL check in 'svm_range_get_range_boundaries()'
>
> Victor Lu (1):
>   drm/amdgpu: Do not program VM_L2_CNTL under SRIOV
>
> Yifan Zhang (3):
>   drm/amdgpu: update headers for nbio v7.11
>   

[pull] amdgpu, amdkfd drm-fixes-6.8

2024-01-12 Thread Alex Deucher
Hi Dave, Sima,

Fixes for 6.8.

The following changes since commit e54478fbdad20f2c58d0a4f99d01299ed8e7fe9c:

  Merge tag 'amd-drm-next-6.8-2024-01-05' of 
https://gitlab.freedesktop.org/agd5f/linux into drm-next (2024-01-09 09:07:50 
+1000)

are available in the Git repository at:

  https://gitlab.freedesktop.org/agd5f/linux.git 
tags/amd-drm-fixes-6.8-2024-01-12

for you to fetch changes up to 3b23fd46e2af68b47902caa3f88d60f73c5d85f7:

  drm/amd/pm: Fix smuv13.0.6 current clock reporting (2024-01-11 23:33:37 -0500)


amd-drm-fixes-6.8-2024-01-12:

amdgpu:
- SubVP fixes
- VRR fixes
- USB4 fixes
- DCN 3.5 fixes
- GFX11 harvesting fix
- RAS fixes
- Misc small fixes
- KFD dma-buf import fixes
- Power reporting fixes
- ATHUB 3.3 fix
- SR-IOV fix
- Add missing fw release for fiji
- GFX 11.5 fix
- Debugging module parameter fix
- SMU 13.0.6 fixes

amdkfd:
- Fix lockdep warnings
- Fix sparse __rcu warnings
- Bump interface version so userspace knows that the kernel supports dma-bufs 
exported from KFD
  Most of the fixes for this went into 6.7, but the last fix is in this PR
- HMM fix
- SVM fix


Alex Deucher (4):
  drm/amdgpu: fix avg vs input power reporting on smu7
  drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL
  drm/amdgpu/pm: clarify debugfs pm output
  drm/amdgpu: drop exp hw support check for GC 9.4.3

Aric Cyr (1):
  drm/amd/display: 3.2.266

Candice Li (2):
  drm/amdgpu: Drop unnecessary sentences about CE and deferred error.
  drm/amdgpu: Support poison error injection via ras_ctrl debugfs

Charlene Liu (1):
  drm/amd/display: Update z8 latency

Dafna Hirschfeld (1):
  drm/amdkfd: fixes for HMM mem allocation

Daniel Miess (1):
  Revert "drm/amd/display: Fix conversions between bytes and KB"

Felix Kuehling (4):
  drm/amdkfd: Fix lock dependency warning
  drm/amdkfd: Fix sparse __rcu annotation warnings
  drm/amdgpu: Auto-validate DMABuf imports in compute VMs
  drm/amdkfd: Bump KFD ioctl version

George Shen (1):
  drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled

Hawking Zhang (1):
  drm/amdgpu: Packed socket_id to ras feature mask

Ivan Lipski (1):
  Revert "drm/amd/display: fix bandwidth validation failure on DCN 2.1"

James Zhu (1):
  drm/amdgpu: make a correction on comment

Le Ma (3):
  Revert "drm/amdgpu: add param to specify fw bo location for front-door 
loading"
  drm/amdgpu: add debug flag to place fw bo on vram for frontdoor loading
  drm/amdgpu: move debug options init prior to amdgpu device init

Lijo Lazar (2):
  drm/amd/pm: Add error log for smu v13.0.6 reset
  drm/amd/pm: Fix smuv13.0.6 current clock reporting

Likun Gao (1):
  drm/amdgpu: correct the cu count for gfx v11

Martin Leung (2):
  drm/amd/display: revert "for FPO & SubVP/DRR config program vmin/max"
  drm/amd/display: revert "Optimize VRR updates to only necessary ones"

Martin Tsai (1):
  drm/amd/display: To adjust dprefclk by down spread percentage

Meenakshikumar Somasundaram (1):
  drm/amd/display: Dpia hpd status not in sync after S4

Melissa Wen (1):
  drm/amd/display: cleanup inconsistent indenting in amdgpu_dm_color

Peichen Huang (1):
  drm/amd/display: Request usb4 bw for mst streams

Philip Yang (1):
  drm/amdkfd: Fix lock dependency warning with srcu

Srinivasan Shanmugam (6):
  drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 
'get_platform_power_management_table()'
  drm/amdgpu: Fix with right return code '-EIO' in 
'amdgpu_gmc_vram_checking()'
  drm/amdgpu: Fix unsigned comparison with less than zero in 
vpe_u1_8_from_fraction()
  drm/amdgpu: Release 'adev->pm.fw' before return in 
'amdgpu_device_need_post()'
  drm/amd/display: Fix variable deferencing before NULL check in 
edp_setup_replay()
  drm/amdkfd: Fix 'node' NULL check in 'svm_range_get_range_boundaries()'

Victor Lu (1):
  drm/amdgpu: Do not program VM_L2_CNTL under SRIOV

Yifan Zhang (3):
  drm/amdgpu: update headers for nbio v7.11
  drm/amdgpu: update ATHUB_MISC_CNTL offset for athub v3.3
  drm/amdgpu: update regGL2C_CTRL4 value in golden setting

 drivers/gpu/drm/amd/amdgpu/amdgpu.h|  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 12 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c   | 43 +++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c |  6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c  |  2 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c|  4 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 15 ++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c| 29 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c| 21 ---