From: Basavaraj Natikar
Considering that amd_sfh exists only on AMD platforms, set the AMD SFH
driver to depend on x86 to avoid build warnings or errors on other
architectures, as shown below.
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c: In function 'amd_mp2_pci_probe':
From: Basavaraj Natikar
Various MP2 register sets are supported by newer processors. Therefore,
extend MP2 register access to SFH.
Signed-off-by: Basavaraj Natikar
Signed-off-by: Jiri Kosina
(cherry picked from commit 6296562f30b1caf4b5f44e0c89c8f5cbfdb14b4a)
---
From: Basavaraj Natikar
AMD SFH load takes longer time in initialization. Hence split and defer
initialization code to improve SFH module load time and boot time of the
system when SFH is available.
Signed-off-by: Basavaraj Natikar
Signed-off-by: Jiri Kosina
(cherry picked from commit
From: Basavaraj Natikar
HP ProBook x360 435 G7 using older version of firmware which doesn't
support disabling the interrupt for all commands. Hence avoid disabling
the interrupt for that particular model.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=218104
Fixes: b300667b33b2 ("HID:
From: Basavaraj Natikar
HPD sensor data is not populating properly because of wrong order of HPD
sensor structure elements. So update the order of structure elements to
match the HPD sensor data received from the firmware.
Fixes: 24a31ea94922 ("HID: amd_sfh: Add initial support for HPD sensor")
From: Basavaraj Natikar
During the initialization sensors may take some time to respond. Hence,
increase the sensor command timeouts in order to obtain status responses
within a maximum timeout.
(Li: backport for s0ix issue, these patches have landed on 6.9)
Co-developed-by: Akshata MukundShetty
[Why]
The vram width value is 0.
Because the integratedsysteminfo table in VBIOS has updated to 2.3.
[Solution]
Driver needs a new intergrated info v2.3 table too.
Then the vram width value will be correct.
Signed-off-by: Li Ma
---
.../gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 15
MinGfxClk in Dpmclocks_t is wrong. According to pmfw,
dropping an uint8_t spare in Dpmclocks_t.
Signed-off-by: Li Ma
---
.../gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0_0.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if
smu v14.0.1 re-used smu v14.0.0
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
index 3bc9662fbd28
From: Basavaraj Natikar
Various MP2 register sets are supported by newer processors. Therefore,
extend MP2 register access to SFH.
Signed-off-by: Basavaraj Natikar
(cherry picked from commit 92e38c2b7ea7c7ef77a55cce3c312b9377761990)
---
drivers/hid/amd-sfh-hid/amd_sfh_common.h | 14
From: Basavaraj Natikar
AMD SFH load takes longer time in initialization. Hence split and defer
initialization code to improve SFH module load time and boot time of the
system when SFH is available.
Signed-off-by: Basavaraj Natikar
(cherry picked from commit
From: Basavaraj Natikar
HP ProBook x360 435 G7 using older version of firmware which doesn't
support disabling the interrupt for all commands. Hence avoid disabling
the interrupt for that particular model.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=218104
Fixes: b300667b33b2 ("HID:
From: Basavaraj Natikar
HPD sensor data is not populating properly because of wrong order of HPD
sensor structure elements. So update the order of structure elements to
match the HPD sensor data received from the firmware.
Fixes: 24a31ea94922 ("HID: amd_sfh: Add initial support for HPD sensor")
From: Basavaraj Natikar
During the initialization sensors may take some time to respond. Hence,
increase the sensor command timeouts in order to obtain status responses
within a maximum timeout.
Co-developed-by: Akshata MukundShetty
Signed-off-by: Akshata MukundShetty
Signed-off-by: Basavaraj
From: Basavaraj Natikar
AMDSFH has information about the Ambient light via the Ambient
Light Sensor (ALS) which is part of the AMD sensor fusion hub.
Add a new interface to export this information, where other drivers like
PMF can use this information to enhance user experiences.
Link:
From: Basavaraj Natikar
AMDSFH has information about the User presence information via the Human
Presence Detection (HPD) sensor which is part of the AMD sensor fusion hub.
Add a new interface to export this information, where other drivers like
PMF can use this information to enhance user
From: Basavaraj Natikar
[Backport]: to fix amd_sfh init fail issue in ASDN
Current amd_sfh driver has float_to_int() to convert units from
float to int. This is fine until this function gets called outside of
the current scope of file.
Add a prefix "amd_sfh" to float_to_int() so that function
There is a new DCN veriosn 3.5.1 need to load
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/drivers/gpu/drm/amd/display/amdgpu_dm
add smu 14 support for sum v14_0_1
Signed-off-by: Li Ma
Reviewed-by: Yifan Zhang i
---
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
index
Add an if condition for gfx activity because the scaling has been changed after
smu fw version 5d4600.
And remove a warning log.
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 2 --
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c | 5 -
2 files changed
A supplement to commit: 45fa6f32276f7ce571227f8368cf17378b804aa1
There is an irq warning of jpeg during resume in s2idle process. No irq enabled
in jpeg 4.0.5 resume.
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 9 -
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 10
There is a repeated define of smu v14_0_0 driver if version, so delete
one in driver if header.
Signed-off-by: Li Ma
---
.../drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0_0.h | 5 -
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h | 2 +-
2 files changed, 1 insertion
There is a repeated define of smu v14_0_0 driver if version, so delete
one and relocate the other define.
Signed-off-by: Li Ma
---
.../gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu14_driver_if_v14_0_0.h | 2 +-
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h| 2 +-
2 files changed, 2
Increment the driver if version and add new mems to the mertics table.
Signed-off-by: Li Ma
---
.../gpu/drm/amd/include/kgd_pp_interface.h| 17
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 10 +++
.../inc/pmfw_if/smu14_driver_if_v14_0_0.h | 77 +++
.../drm/amd/pm
enable init_registers callback func for nbio v7.11.
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 18 ++--
.../asic_reg/nbio/nbio_7_11_0_offset.h| 2 ++
.../asic_reg/nbio/nbio_7_11_0_sh_mask.h | 29 +++
3 files changed, 40
From: Heiner Kallweit
This effectively reverts 4b5f82f6aaef. On a number of systems ASPM L1
causes tx timeouts with RTL8168h, see referenced bug report.
Fixes: 4b5f82f6aaef ("r8169: enable ASPM L1/L1.1 from RTL8168h")
Cc: sta...@vger.kernel.org
Closes:
From: Heiner Kallweit
[Backport: commit 90ca51e8c654699b672ba61aeaa418dfb3252e5e]
This backport to avoid the bug caused by r8169.
This effectively reverts 4b5f82f6aaef. On a number of systems ASPM L1
causes tx timeouts with RTL8168h, see referenced bug report.
Fixes: 4b5f82f6aaef ("r8169:
dorp fw version check and using max table size to init table.
Signed-off-by: Li Ma
Reviewed-by: Yifan Zhang
---
.../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c| 17 -
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11
Update driver if headers and metrics table in smu v14_0_0 after smu fw
promotion. And drop the legacy metrics table.
v1:
update header files
v2:
drop legacy metrics table and add warning of checking pmfw version.
Signed-off-by: Li Ma
---
.../gpu/drm/amd/include/kgd_pp_interface.h| 30
Modify the print format of the fractional part to avoid display error.
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index 358bb5e485f2
Print the digit of the fractional part individually to avoid carrying
during display.
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
add get_clockgating_state, update_medium_grain_light_sleep and
update_medium_grain_clock_gating in nbio_v7_11_funcs
v1:
add missing funcs in nbio_v7_11.c
v2:
modify the if condition and add spport for nbio v7.11 clockgating.
Signed-off-by: Li Ma
Reviewed-by: Yifan Zhang
---
drivers/gpu/drm/amd
add clockgating support for NBIO ip 7.7.1 and modify if condition.
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/soc21.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c
b
smu_cmn_get_smc_version in smu v14_0_0.
Signed-off-by: Li Ma
Reviewed-by: Yifan Zhang
Reviewed-by: Kenneth Feng
Acked-by: Alex Deucher
---
.../gpu/drm/amd/include/kgd_pp_interface.h| 68
.../inc/pmfw_if/smu14_driver_if_v14_0_0.h | 69 ++--
.../pm/swsmu/inc/pmfw_if/smu_v14_0_0_pmfw.h | 29
Update driver if, pmfw and ppsmc header files.
Add new gpu_metrics_v3_0 for metrics table updated in driver if
and reserve legacy metrics table to maintain backward compatibility.
Signed-off-by: Li Ma
Reviewed-by: Yifan Zhang
---
.../gpu/drm/amd/include/kgd_pp_interface.h| 68
Fixes: 0f486b64b8d4 ("drm/amd/amdgpu: introduce gc_*_mes_2.bin v2")
Reserve the MOUDLE_FIRMWARE declaration of gc_11_0_*_mes.bin
to avoid falling back to old mes bin failure via autoload.
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 5 +
1 file changed, 5
Rename MODULE_FIRMWARE declaration of gc_11_0_4_mes to gc_11_0_4_mes_2
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
index
To support new mes ip block
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
index 00e64838bb8b..62cdd2113135 100644
--- a/drivers/gpu/drm/amd
The GC 11.0.4 needs load IMU to power up GFX before loads GFX firmware.
Signed-off-by: Li Ma
---
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
index ed0d368149aa
n judgment in
vangogh_common_get_gpu_metrics to maintain backward compatibility and rename
the patch. "return ret" on error scenario in smu_cmn_get_smc_version.
Signed-off-by: Li Ma
---
.../gpu/drm/amd/include/kgd_pp_interface.h| 58 +++
.../gpu/drm/amd/pm/swsmu/smu11/
40 matches
Mail list logo