[PATCH 6/6] drm/amd/powerplay: drop unused code around thermal range setting

2020-07-03 Thread Evan Quan
Leftover of previous cleanups. Change-Id: I36a018349647125513e47edda66db2005bd8b0c5 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 32 --- .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h| 2 -- drivers/gpu/drm/amd/powerplay/navi10_ppt.c| 32

[PATCH 5/6] drm/amd/powerplay: maximum the code sharing on thermal irq setting

2020-07-03 Thread Evan Quan
Put the common code in smu_v11_0.c instead of having one copy each. Change-Id: I6d0c27c5810ebc3273ef8b4fae07ac6dbed2715c Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 08/16] drm/amd/powerplay: update the common API for performance level setting

2020-07-09 Thread Evan Quan
So that it can be more widely shared around SMU v11 ASICs. Change-Id: Ie110edf2ec519699448d3ff3215188ba243d2415 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 91 +++ 1 file changed, 77 insertions(+), 14 deletions(-) diff

[PATCH 03/16] drm/amd/powerplay: update Arcturus default dpm table setting

2020-07-09 Thread Evan Quan
Preparing for coming code sharing around performance level setting. Change-Id: Iaa77af7a272121503f09ad5fbfbe9dff2d2597b1 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 297 --- 1 file changed, 119 insertions(+), 178 deletions(-) diff --git a/drivers

[PATCH 04/16] drm/amd/powerplay: update Navi10 default dpm table setup

2020-07-09 Thread Evan Quan
Cache all clocks levels for every dpm table. They are needed by other APIs. Change-Id: I8114cf31e6ec8c9af4578d51749eb213befdcc71 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 182 ++--- 1 file changed, 158 insertions(+), 24

[PATCH 05/16] drm/amd/powerplay: update Sienna Cichlid default dpm table setup

2020-07-09 Thread Evan Quan
Cache all clocks levels for every dpm table. They are needed by other APIs. Change-Id: Idaa853356720e48ab3279f420ba1ae18bb7de4fd Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- .../drm/amd/powerplay/sienna_cichlid_ppt.c| 234 -- 1 file changed, 211 insertions(+), 23

[PATCH 12/16] drm/amd/powerplay: drop Sienna Cichlid specific set_soft_freq_limited_range

2020-07-09 Thread Evan Quan
Use the common smu_v11_0_set_soft_freq_limited_range. Change-Id: I9f8772880b324ce9e741291751bb1b8ff4c36ea3 Signed-off-by: Evan Quan --- .../drm/amd/powerplay/sienna_cichlid_ppt.c| 20 ++- drivers/gpu/drm/amd/powerplay/smu_internal.h | 1 - drivers/gpu/drm/amd/powerplay

[PATCH 13/16] drm/amd/powerplay: apply gfxoff disablement/enablement for all SMU11 ASICs

2020-07-09 Thread Evan Quan
Before and after setting gfx clock soft max/min frequency. Change-Id: I6f828da8de096ebc0ae27eaa89f988def2d547ec Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay

[PATCH 14/16] drm/amd/powerplay: drop unnecessary wrappers

2020-07-09 Thread Evan Quan
By calling the target APIs directly. Change-Id: I0f24f603d2fcb94d2078a35c405a1406093ba5e3 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/gpu

[PATCH 15/16] drm/amd/powerplay: drop smu_v12_0.c unnecessary wrapper

2020-07-09 Thread Evan Quan
By moving the implemention to renoir_ppt.c considering it's really ASIC specific. Change-Id: I6f7a594235dffdf75b56d1de5b9dc6d49833d7e8 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc/smu_v12_0.h | 3 - drivers/gpu/drm/amd/powerplay/renoir_

[PATCH 10/16] drm/amd/powerplay: drop unnecessary Navi1x specific APIs

2020-07-09 Thread Evan Quan
As a common performance level setting API is used. Then these ASIC specific APIs are not needed any more. Change-Id: I2c8831b9d00618c6578ee42b34e26892c5dba515 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 248 + 1 file

[PATCH 06/16] drm/amd/powerplay: add new UMD pstate data structure

2020-07-09 Thread Evan Quan
This is used to cache the clock frequencies for all UMD pstates. So that we do not need to calculate from scratch on every UMD pstate switch. Change-Id: I3f2ef5ee2e6e433518f726988bbe5970848b99c8 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc

[PATCH 09/16] drm/amd/powerplay: drop unnecessary Arcturus specific APIs

2020-07-09 Thread Evan Quan
As a common performance level setting API is used. Then these ASIC specific APIs are not needed any more. Change-Id: Icd96ce42218d78d670dd0c1f88663fd42108b311 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 170 --- 1 file

[PATCH 01/16] drm/amd/powerplay: add more members for dpm table

2020-07-09 Thread Evan Quan
These members can help to cache the clock frequencies for all dpm levels. Then simplifying the code for dpm level switching is possible. Change-Id: Ic80359adb8c0e018f306782f24e3f8906436f5e2 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h

[PATCH 07/16] drm/amd/powerplay: update UMD pstate clock settings

2020-07-09 Thread Evan Quan
Preparing for coming code sharing around performance level setting. Change-Id: I51b1536b62995f0fecd51b91f238793f57485aa9 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 6 +- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 47

[PATCH 02/16] drm/amd/powerplay: implement a common set dpm table API for smu V11

2020-07-09 Thread Evan Quan
Maximum the code sharing around smu V11. Change-Id: Ice0a874f3f70457f1012ca566f9f784ff3e9cd94 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h | 4 ++ drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 38 +++ 2 files changed, 42 insertions(+) diff --git

[PATCH 16/16] drm/amd/powerplay: drop unused APIs and parameters

2020-07-09 Thread Evan Quan
Leftover of previous performance level setting cleanups. Change-Id: Idddc4adce365b34eacbc13f75cc0629859c6d412 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 12 ++-- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 9

[PATCH 11/16] drm/amd/powerplay: drop unnecessary Sienna Cichlid specific APIs

2020-07-09 Thread Evan Quan
As a common performance level setting API is used. Then these ASIC specific APIs are not needed any more. Change-Id: I04c810859794b07ce8905a8df797ed6b5ae116a8 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- .../drm/amd/powerplay/sienna_cichlid_ppt.c| 178 +- 1 file

[PATCH] drm/amd/powerplay: revise the outputs layout of amdgpu_pm_info debugfs

2020-07-14 Thread Evan Quan
be with minimum impact, the outputs are updated to show current clock/power information first. Change-Id: Iff762d47ef0cc9ed309e805b1709ec8cb293d21f Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a

[PATCH 01/17] drm/amd/powerplay: move the API shared by SMU v11 to smu_v11_0.c

2020-07-14 Thread Evan Quan
To fit our original desgin and this can help to maintain clear code layer. Change-Id: Id89476c14709b5676bbf043371a27f27b94a58ed Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 16 --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 2 +- .../gpu/drm/amd

[PATCH 08/17] drm/amd/powerplay: move ppfeature mask setting to smu_cmn.c

2020-07-14 Thread Evan Quan
Considering they are shared by all ASICs. And we are moving to centralize all feature enablement/support checking and setting APIs in smu_cmn.c. Change-Id: I17c5e05237362bdbb41561558ff01deecb6b32a7 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 137

[PATCH 11/17] drm/amd/powerplay: maximum code sharing around watermarks setting

2020-07-14 Thread Evan Quan
Maximum code sharing. Change-Id: If20fe786024506659bcc31697fa0d00b3d4aa89f Signed-off-by: Evan Quan --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 19 +-- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 27 ++--- .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h| 2 +- drivers/gpu/drm/amd

[PATCH 03/17] drm/amd/powerplay: drop unused code

2020-07-14 Thread Evan Quan
Those code were obsoleted by new common API smu_cmn_to_asic_specific_index(). Change-Id: I4c284c291c2a4bf25736d54f8ffa2892cb25395b Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 119 -- .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h| 6 - drivers

[PATCH 09/17] drm/amd/powerplay: common API for disabling all features with exception

2020-07-14 Thread Evan Quan
We are moving to centralize all feature enablement/support checking and setting APIs in smu_cmn.c. Change-Id: I5b2328cd5a7e34ed9f607505545fd399277126c5 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 10 ++ drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 1

[PATCH 13/17] drm/amd/powerplay: update the tables init related

2020-07-14 Thread Evan Quan
To avoid cross calling and maintain clear code layer. Change-Id: Ieef1ecd38e0873baaedca1c2dabd9bb8af5a0c2a Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 23 +++-- .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h| 4 +- drivers/gpu/drm/amd/powerplay/inc/smu_v12_0.h

[PATCH 04/17] drm/amd/powerplay: move clock dpm enablement check to smu_v11/v12

2020-07-14 Thread Evan Quan
As those APIs of smu_v11/v12 are more widely called. And they need this check also. Change-Id: I4eb69e2ef1f09a2b159e762093aae24885bb9583 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 3 --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 3 +++ drivers/gpu/drm/amd

[PATCH 07/17] drm/amd/powerplay: implement smu_cmn_get_enabled_mask() for all ASICs

2020-07-14 Thread Evan Quan
Instead of having each for smu v11 and v12. Change-Id: Ic459c5ea4e047dd13a0e6873c83e1e87ca456d10 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 4 +-- drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h | 3 -- drivers/gpu/drm/amd/powerplay/inc/smu_v12_0.h | 3

[PATCH 05/17] drm/amd/powerplay: move dpm feature support checking to smu_cmn.c

2020-07-14 Thread Evan Quan
Considering it is shared by all ASICs and smu_cmn.c should be the right place. Change-Id: Ia006db546842f450669ee9752d962a8d296c03c3 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 21 -- .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h| 2 -- drivers

[PATCH 12/17] drm/amd/powerplay: move table setting common code to smu_cmn.c

2020-07-14 Thread Evan Quan
As they are shared by all ASICs. Change-Id: Ib5bda9adc519496904104225af9bfb6ece322186 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 41 --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 14 ++-- .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h| 3

[PATCH 06/17] drm/amd/powerplay: move dpm feature enablement checking to smu_cmn.c

2020-07-14 Thread Evan Quan
Considering it is shared by all ASICs and smu_cmn.c should be the right place. Change-Id: I84a86c1ec20c582826860edaecd9e8a2731d9a82 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 23 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 29

[PATCH 16/17] drm/amd/powerplay: revise the calling flow on OD table update

2020-07-14 Thread Evan Quan
This can eliminate the cross callings and maintain clear code layer. Change-Id: Ie1e12a365f9d337d9efca48cdb9a2e8d341b8364 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 8 +++- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 7 --- 2 files changed, 7 insertions

[PATCH 10/17] drm/amd/powerplay: move more APIs to smu_cmn.c

2020-07-14 Thread Evan Quan
Considering they are shared by all ASICs. Change-Id: I5d59144199d4c9eee5c06f24a4602c39729125d9 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 64 -- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 14 ++-- .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h

[PATCH 15/17] drm/amd/powerplay: drop unnecessary message support check

2020-07-14 Thread Evan Quan
These messages are known to be supported by all ASICs. Change-Id: Ibd53a0edb54c696f81665a41830a56b046e468dd Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers

[PATCH 14/17] drm/amd/powerplay: move SMC message issuing APIs to smu_cmn.c

2020-07-14 Thread Evan Quan
Considering they can be shared by all ASICs. Change-Id: I203bbb2e045dd7d936c927f52c4f809ffd5f91db Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 13 -- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 25 +-- .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h| 4

[PATCH 02/17] drm/amd/powerplay: unify swSMU index to asic specific index mapping

2020-07-14 Thread Evan Quan
By this we can drop redundant code. Change-Id: I2b29e948296729afa5d4f157b9f86b376257a299 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/Makefile| 4 +- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c| 29 ++- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 51

[PATCH 17/17] drm/amd/powerplay: tag swSMU code layers

2020-07-14 Thread Evan Quan
{asic}_ppt.c -> amdgpu_smu.c -> ${asic}_ppt.c) which were common in our code. Change-Id: I70e717f4527c736d6263680c69eeda96d1cf9bb6 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++-- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 3 ++- drivers/gpu/drm

[PATCH] drm/amd/powerplay: suppress compile error around BUG_ON

2020-07-14 Thread Evan Quan
efine BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~ drivers/gpu/drm/amd/amdgpu/../powerplay/arcturus_ppt.c:2157:2: note: in expansion of macro 'BUG_ON' 2157 | BUG_ON(numbytes > MAX_SW_I2C_COMMANDS); Change

[PATCH] drm/amd/powerplay: widely share the API for data table retrieving

2020-07-15 Thread Evan Quan
Considering the data table retrieving can be more widely shared, amdgpu_atombios.c is the right place. Change-Id: Id89476c14709b5676bbf043371a27f27b94a58ed Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c| 17 + drivers/gpu/drm/amd/amdgpu

[PATCH 2/8] drm/amd/powerplay: add new sysfs interface for retrieving gpu metrics(V2)

2020-07-29 Thread Evan Quan
A new interface for UMD to retrieve gpu metrics data. V2: rich the documentation Change-Id: If7f3523915505c0ece0a56dfd476d2b8473440d4 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- Documentation/gpu/amdgpu.rst | 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h

[PATCH 1/8] drm/amd/powerplay: define an universal data structure for gpu metrics (V3)

2020-07-29 Thread Evan Quan
Thus we can provide an interface for UMD to retrieve gpu metrics data. V2: better naming and comments V3: two structures created for dGPU and APU separately Change-Id: Ibc2d5c642eff732c082f8447348749a44dc35be3 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- .../gpu/drm/amd/include

[PATCH 3/8] drm/amd/powerplay: implement SMU V11 common APIs for retrieving link speed/width

2020-07-29 Thread Evan Quan
This will be shared around all SMU V11 asics. Change-Id: Iaa4554fb0e011b9f565d89375ac7b6a7eb525420 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h | 8 +++ drivers/gpu/drm/amd/powerplay/navi10_ppt.c| 9 +--- drivers/gpu/drm/amd

[PATCH 4/8] drm/amd/powerplay: add Arcturus support for gpu metrics export

2020-07-29 Thread Evan Quan
Add Arcturus gpu metrics export interface. Change-Id: I372337f31e2b7174d41fb4e3af180deb94b5ec06 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 92 +++ .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h| 3 + drivers/gpu/drm

[PATCH 7/8] drm/amd/powerplay: add Sienna Cichlid support for gpu metrics export

2020-07-29 Thread Evan Quan
Add Sienna Cichlid gpu metrics export interface. Change-Id: I89e6a4415fe467e7e4aaabe07d9e8cee379caa25 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- .../drm/amd/powerplay/sienna_cichlid_ppt.c| 91 ++- 1 file changed, 89 insertions(+), 2 deletions(-) diff --git a

[PATCH 6/8] drm/amd/powerplay: add Navi1x support for gpu metrics export

2020-07-29 Thread Evan Quan
Add Navi1x gpu metrics export interface. Change-Id: I9028fb925e70c36fb2a0b00968c462c0bbc822db Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 93 +- 1 file changed, 91 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 5/8] drm/amd/powerplay: update the data structure for NV12 SmuMetrics

2020-07-29 Thread Evan Quan
Although it does not bring any problem for now, the coming gpu metrics interface needs to handle them differently based on the asic type. Change-Id: I88ee78c26795267588f944d4f1983e4dbf23ba85 Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- .../powerplay/inc/smu11_driver_if_navi10.h

[PATCH 8/8] drm/amd/powerplay: add Renoir support for gpu metrics export

2020-07-29 Thread Evan Quan
Add Renoir gpu metrics export interface. Change-Id: Ic83265536eeaa9e458dc395b2be18ea49da4c68a Signed-off-by: Evan Quan Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc/smu_v12_0.h | 2 + drivers/gpu/drm/amd/powerplay/renoir_ppt.c| 95 ++- drivers/gpu/drm/amd

[PATCH 5/9] drm/amd/powerplay: add control method to bypass metrics cache on Navi10

2020-07-30 Thread Evan Quan
As for the gpu metric export, metrics cache makes no sense. It's up to user to decide how often the metrics should be retrieved. Change-Id: I281b4de9262b98f0c52131feb39ba9e101b548b7 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 60 ++ 1

[PATCH 1/9] drm/amd/powerplay: enable gpu_metrics export on legacy powerplay routines

2020-07-30 Thread Evan Quan
Enable gpu_metrics support on legacy powerplay routines. Change-Id: Ic2f09babe7e6bead9a838b7ce3c94bf8d4110991 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 19 +++ drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 1 + 2 files changed, 20 insertions

[PATCH 2/9] drm/amd/powerplay: add Vega20 support for gpu metrics export

2020-07-30 Thread Evan Quan
Add Vega20 gpu metrics export interface. Change-Id: I7b4ab850358cc6d7455889d9031a7111cba35ebd Signed-off-by: Evan Quan --- .../drm/amd/powerplay/hwmgr/vega20_hwmgr.c| 121 +- .../drm/amd/powerplay/hwmgr/vega20_hwmgr.h| 1 + 2 files changed, 115 insertions(+), 7

[PATCH 3/9] drm/amd/powerplay: add Vega12 support for gpu metrics export

2020-07-30 Thread Evan Quan
Add Vega12 gpu metrics export interface. Change-Id: I2c910f523049f0f90eecb8d74cb73ebb39a22bd9 Signed-off-by: Evan Quan --- .../drm/amd/powerplay/hwmgr/vega12_hwmgr.c| 109 ++ .../drm/amd/powerplay/hwmgr/vega12_hwmgr.h| 1 + 2 files changed, 110 insertions(+) diff

[PATCH 9/9] drm/amd/powerplay: add control method to bypass metrics cache on Vega12

2020-07-30 Thread Evan Quan
As for the gpu metric export, metrics cache makes no sense. It's up to user to decide how often the metrics should be retrieved. Change-Id: Ic2a27ebc90f0a7cf581d0697c121b6d7df030f3b Signed-off-by: Evan Quan --- .../drm/amd/powerplay/hwmgr/vega12_hwmgr.c| 29 --- 1

[PATCH 4/9] drm/amd/powerplay: add control method to bypass metrics cache on Arcturus

2020-07-30 Thread Evan Quan
As for the gpu metric export, metrics cache makes no sense. It's up to user to decide how often the metrics should be retrieved. Change-Id: Ie6e9377f5984c3c09737b323c52249f9189bcaf5 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 74 +--- 1

[PATCH 8/9] drm/amd/powerplay: add control method to bypass metrics cache on Vega20

2020-07-30 Thread Evan Quan
As for the gpu metric export, metrics cache makes no sense. It's up to user to decide how often the metrics should be retrieved. Change-Id: I8836f7f096dceb08a90dd3c899d2e9ccea1ef1f3 Signed-off-by: Evan Quan --- .../drm/amd/powerplay/hwmgr/vega20_hwmgr.c| 31 --- 1

[PATCH 7/9] drm/amd/powerplay: add control method to bypass metrics cache on Renoir

2020-07-30 Thread Evan Quan
As for the gpu metric export, metrics cache makes no sense. It's up to user to decide how often the metrics should be retrieved. Change-Id: I780aba0be35a35bd9c9727118b33625e7cc9bf1f Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 22 ++ 1

[PATCH 6/9] drm/amd/powerplay: add control method to bypass metrics cache on Sienna Cichlid

2020-07-30 Thread Evan Quan
As for the gpu metric export, metrics cache makes no sense. It's up to user to decide how often the metrics should be retrieved. Change-Id: Ic9d5f10b470584c82d4ca9035ab27fed44f0ac20 Signed-off-by: Evan Quan --- .../drm/amd/powerplay/sienna_cichlid_ppt.c| 73 +-- 1

[PATCH 2/2] drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running

2020-10-26 Thread Evan Quan
reloading smc firmware(but that will involve many changes). So, we will revert this S4 fix and seek a new way. Change-Id: If9eed2f5a9c1168fb20be92057b583d854ad779e Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH 1/2] drm/amd/pm: enable baco reset for Hawaii

2020-10-26 Thread Evan Quan
Which can be used for S4(hibernation) support. Change-Id: I6e4962c120a3baed14cea04ed1742ff11a273d34 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/cik.c | 4 +++- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ci_baco.c | 7 --- 2 files changed, 7 insertions(+), 4 deletions

[PATCH 2/2] drm/amd/pm: fix compile warnings about variable used uninitialized

2020-10-27 Thread Evan Quan
u/../pm/powerplay/hwmgr/smu7_hwmgr.c:1743:13: >> warning: variable 'max' is used uninitialized whenever 'if' condition is >> false [-Wsometimes-uninitialized] Change-Id: Id2dece80162cd10f004abbf3b62cba0c84e988f2 Signed-off-by: Evan Quan Reported-by: kernel test robot

[PATCH 1/2] drm/amd/pm: fix compile warning about missing prototype for function

2020-10-27 Thread Evan Quan
^ static 1 warning generated. Change-Id: Ib4f252d0103fc10f7a89b495d9e0bfe8439b6c65 Signed-off-by: Evan Quan Reported-by: kernel test robot --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/

[PATCH 1/5] drm/amdgpu: perform srbm soft reset always on SDMA resume

2020-10-28 Thread Evan Quan
This can address the random SDMA hang after pci config reset seen on Hawaii. Change-Id: I2d6147600636cbc90d1be7f3d9a011f050708fbd Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a

[PATCH 2/5] drm/amd/pm: correct the baco reset sequence for CI ASICs

2020-10-28 Thread Evan Quan
Correct some registers bitmasks and add mmBIOS_SCRATCH_7 reset. Change-Id: I416d7bee7e7ddd7b726dd921d0bb442da6ff4b93 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ci_baco.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm

[PATCH 4/5] drm/amd/pm: perform SMC reset on suspend/hibernation

2020-10-28 Thread Evan Quan
So that the succeeding resume can be performed based on a clean state. Change-Id: I82f16eb2d1a6e389f171784e6e56e41892e1725e Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/hwmgr.h| 1 + drivers/gpu/drm/amd/pm/inc/smumgr.h | 2 ++ .../drm/amd/pm/powerplay/hwmgr

[PATCH 3/5] drm/amd/pm: enable baco reset for Hawaii

2020-10-28 Thread Evan Quan
Which can be used for S4(hibernation) support. Change-Id: I9c90c916bdd6e128b7cf7f5c6c2c6ca5b7cfc0ef Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/cik.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 5/5] drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running

2020-10-28 Thread Evan Quan
reloading smc firmware(but that will involve many changes). So, we will revert this S4 fix and seek a new way. Change-Id: If9eed2f5a9c1168fb20be92057b583d854ad779e Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH] drm/amdgpu: apply dm_pp_notify_wm_clock_changes() for Polaris only

2020-10-30 Thread Evan Quan
Will expand it to other ASICs after verified. Change-Id: I03e074ea0e921a984eb819b222e434e8e375 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display

[PATCH] drm/amd/pm: invalidate hdp before CPU access the memory written by GPU

2020-12-01 Thread Evan Quan
To eliminate the possible influence by outdated HDP read cache. Change-Id: I93ab87a44d146ca546ca08be21b979ea6713c6af Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c | 3 +-- drivers/gpu/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c | 3 +-- drivers/gpu/drm/amd

[PATCH 1/2] drm/amd/pm: support power source switch on Sienna Cichlid

2020-12-07 Thread Evan Quan
Enable power source switch on Sienna Cichlid. Change-Id: Ic48821c61f3f1f65f7f5d78bac28e11ce400b4b2 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

[PATCH 2/2] drm/amd/pm: correct power limit setting for SMU V11

2020-12-07 Thread Evan Quan
Correct the power limit setting for SMU V11 asics. Change-Id: Idedc590c35934397bd77b7ac825b063cd319dbbf Signed-off-by: Evan Quan --- .../gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c| 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu

[PATCH 1/6] drm/amd/pm: correct the gpo control for sienna cichlid

2020-12-08 Thread Evan Quan
New SMC message was introduced for gpo control on sienna cichlid. Change-Id: I6f09ae96e9dd7a290c9975564740f597a08ff2fa Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/smu_types.h| 1 + .../gpu/drm/amd/pm/inc/smu_v11_0_7_ppsmc.h| 4 +- .../amd/pm/swsmu/smu11

[PATCH 2/6] drm/amd/pm: expose the firmware_capability from firmware_info table

2020-12-08 Thread Evan Quan
That will help to determine whether 2ND_USB20_PORT workaround is needed for Sienna Cichlid. Change-Id: I3852e7c8cb11c12845ca81e7967e332c499cb470 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h| 1 + drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 2 ++ 2 files

[PATCH 3/6] drm/amdgpu: new macro for determining 2ND_USB20PORT support

2020-12-08 Thread Evan Quan
Used for determining 2ND_USB20PORT support from firmware_capability. Change-Id: I3ff37f0a0dab311566bdd0aba189f2b7fa89ec2c Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/include/atomfirmware.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b

[PATCH 4/6] drm/amd/pm: new SMC message for 2nd usb2.0 port workaround

2020-12-08 Thread Evan Quan
The workaround is needed by sienna cichlid. Change-Id: Ib3d065b53dcb331d085e9bb9eeda99021a212206 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/smu_types.h | 1 + drivers/gpu/drm/amd/pm/inc/smu_v11_0_7_ppsmc.h | 2 ++ drivers/gpu/drm/amd/pm/swsmu/smu11

[PATCH 5/6] drm/amd/pm: wrapper for applying 2nd usb2.0 port workaround

2020-12-08 Thread Evan Quan
2nd usb2.0 port workaround wrapper. Change-Id: I615d8a568b1f6623a060ba5081c2d2a1235f32b9 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 1 + drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++ drivers/gpu/drm/amd/pm/swsmu/smu_internal.h | 1 + 3 files changed, 8

[PATCH 6/6] drm/amd/pm: fulfill sienna cichlid 2nd usb2.0 port workaround

2020-12-08 Thread Evan Quan
Fulfill the 2nd usb2.0 port workaround for sienna cichlid. Change-Id: I912660ee590e9ce352a20bbdf8903a61f88cd59e Signed-off-by: Evan Quan --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 25 +++ 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11

[PATCH 1/5] drm/amd/pm: correct the gpo control for sienna cichlid

2020-12-08 Thread Evan Quan
New SMC message was introduced for gpo control on sienna cichlid. Change-Id: I6f09ae96e9dd7a290c9975564740f597a08ff2fa Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/smu_types.h| 1 + .../gpu/drm/amd/pm/inc/smu_v11_0_7_ppsmc.h| 4 +- .../amd/pm/swsmu/smu11

[PATCH 2/5] drm/amd/pm: expose the firmware_capability from firmware_info table

2020-12-08 Thread Evan Quan
That will help to determine whether 2ND_USB20_PORT workaround is needed for Sienna Cichlid. Change-Id: I3852e7c8cb11c12845ca81e7967e332c499cb470 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h| 1 + drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 2 ++ 2 files

[PATCH 3/5] drm/amdgpu: new macro for determining 2ND_USB20PORT support

2020-12-08 Thread Evan Quan
Used for determining 2ND_USB20PORT support from firmware_capability. Change-Id: I3ff37f0a0dab311566bdd0aba189f2b7fa89ec2c Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/include/atomfirmware.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b

[PATCH 4/5] drm/amd/pm: new SMC message for 2nd usb2.0 port workaround

2020-12-08 Thread Evan Quan
The workaround is needed by sienna cichlid. Change-Id: Ib3d065b53dcb331d085e9bb9eeda99021a212206 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/smu_types.h | 1 + drivers/gpu/drm/amd/pm/inc/smu_v11_0_7_ppsmc.h | 2 ++ drivers/gpu/drm/amd/pm/swsmu/smu11

[PATCH 5/5] drm/amd/pm: fulfill sienna cichlid 2nd usb2.0 port workaround

2020-12-08 Thread Evan Quan
Fulfill the 2nd usb2.0 port workaround for sienna cichlid. Change-Id: Id5a89a468787846ed0050b56cd318a9574185567 Signed-off-by: Evan Quan --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 38 ++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH] drm/amd/pm: fulfill the sienna cichlid UMD PSTATE profiling clocks

2020-12-08 Thread Evan Quan
Fulfill the UMD PSTATE profiling clocks of sienna cichlid. Change-Id: Ib9078c73d3fbd786080449255645ae8b9f879092 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 6 ++ drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.h | 4 2 files changed, 10

[PATCH] drm/amd/pm: typo fix (CUSTOM -> COMPUTE)

2020-12-09 Thread Evan Quan
The "COMPUTE" was wrongly spelled as "CUSTOM". Change-Id: I44a6c93ea8badec2af883eb5b39261789baba036 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/dr

[PATCH 1/2] drm/amd/pm: correct the data structure for activity monitor coeff exchange

2020-12-09 Thread Evan Quan
This is needed for Sienna Cichlid. Change-Id: I205190978743ec3e5176d051fba2c742e7769821 Signed-off-by: Evan Quan --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 125 +- 1 file changed, 65 insertions(+), 60 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11

[PATCH 2/2] drm/amd/pm: update the data strucutre for SMU metrics exchange

2020-12-09 Thread Evan Quan
This is needed for Sienna Cichlid. Change-Id: I57aa099cd1b2020cf0c8b05d8463239ec33790cf Signed-off-by: Evan Quan --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 75 ++- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11

[PATCH] drm/amd/pm: add deep sleep control for uclk and fclk

2020-12-10 Thread Evan Quan
These are supported by Sienna Cichlid and should be taken into consideration during DS control. Change-Id: I93ed67ae863a91b75d6dfecd87e74029ffafd302 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 16 1 file changed, 16 insertions(+) diff --git a

[PATCH 1/3] drm/amd/pm: populate Sienna Cichlid default overdrive table settings

2020-12-16 Thread Evan Quan
Populate the bootup overdrive table settings. Change-Id: Iaee8c8afd5cbf12008aa6ffe0e90c8ffe5aa4fe2 Signed-off-by: Evan Quan Acked-by: Alex Deucher --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 38 +++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/amd/pm

[PATCH 2/3] drm/amd/pm: enable Sienna Cichlid overdrive support

2020-12-16 Thread Evan Quan
Enable Sienna Cichlid gfxclk/uclk overdrive support. Change-Id: I93535076f5857c0dfeb012a993bc85a16ca4df84 Signed-off-by: Evan Quan Acked-by: Alex Deucher --- drivers/gpu/drm/amd/pm/amdgpu_pm.c| 3 +- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 241 ++ 2 files

[PATCH 3/3] drm/amd/pm: support overdrive vddgfx offset setting(V2)

2020-12-16 Thread Evan Quan
evice/pp_od_clk_voltage ... ... OD_VDDGFX_OFFSET: 10mV ... ... 3. Commit the new setting by echo "c" > /sys/class/drm/card0/device/pp_od_clk_voltage Change-Id: Ie13c06d9bbcdbeaad4379a7f697510c8d233f4af Signed-off-by: Evan Quan Acked-by: Alex Deucher --- .../gpu/drm/amd/include/kg

[PATCH] drm/amd/pm: bump Sienna Cichlid smu_driver_if version to match latest pmfw

2020-12-17 Thread Evan Quan
This can suppress the annoying but unharmful prompts. Change-Id: I50bc5f9bd21572f51af4ff4c9e1946d1a441b714 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/pm/inc/smu_v11_0.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/inc/smu_v11_0.h b/drivers

[V3 0/7] A new set of Linux OD interfaces

2023-08-29 Thread Evan Quan
directory. gpu_od/ ├── fan_ctrl │ ├── acoustic_limit_rpm_threshold │ ├── acoustic_target_rpm_threshold │ ├── fan_curve │ ├── fan_minimum_pwm │ ├── fan_target_temperature Evan Quan (7): drm/amd/pm: introduce a new set of OD interfaces drm/amdgpu: revise the device initialization

[V3 2/7] drm/amdgpu: revise the device initialization sequences

2023-08-29 Thread Evan Quan
By placing the sysfs interfaces creation after `.late_int`. Since some operations performed during `.late_init` may affect how the sysfs interfaces should be created. Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 37 -- 1 file changed, 21

[V3 4/7] drm/amd/pm: add fan acoustic limit OD setting support for SMU13

2023-08-29 Thread Evan Quan
Add SMU13 fan acoustic limit OD setting support. Signed-off-by: Evan Quan -- v1->v2: - add missing kerneldoc for the new interface(Alex) v2->v3: - rich the document for the new interface(Alex) --- Documentation/gpu/amdgpu/thermal.rst | 6 ++ .../gpu/drm/amd/i

[V3 6/7] drm/amd/pm: add fan target temperature OD setting support for SMU13

2023-08-29 Thread Evan Quan
Add SMU13 fan target temperature OD setting support. Signed-off-by: Evan Quan -- v1->v2: - add missing kerneldoc for the new interface(Alex) v2->v3: - rich the document for the new interface(Alex) --- Documentation/gpu/amdgpu/thermal.rst | 6 ++ .../gpu/drm/amd/i

[V3 7/7] drm/amd/pm: add fan minimum pwm OD setting support for SMU13

2023-08-29 Thread Evan Quan
Add SMU13 fan minimum pwm OD setting support. Signed-off-by: Evan Quan -- v1->v2: - add missing kerneldoc for the new interface(Alex) v2->v3: - rich the document for the new interface(Alex) --- Documentation/gpu/amdgpu/thermal.rst | 6 ++ .../gpu/drm/amd/include/kgd_pp_inter

[V3 3/7] drm/amd/pm: add fan temperature/pwm curve OD setting support for SMU13

2023-08-29 Thread Evan Quan
Add SMU13 fan temperature/pwm curve OD setting support. Signed-off-by: Evan Quan -- v1->v2: - add missing kerneldoc for the new interface(Alex) v2->v3: - rich the document for the new interface(Alex) --- Documentation/gpu/amdgpu/thermal.rst | 6 + .../gpu/drm/amd/i

[V3 1/7] drm/amd/pm: introduce a new set of OD interfaces

2023-08-29 Thread Evan Quan
directory. Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 + drivers/gpu/drm/amd/pm/amdgpu_pm.c | 264 - drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h| 2 + 3 files changed, 266 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/

[V3 5/7] drm/amd/pm: add fan acoustic target OD setting support for SMU13

2023-08-29 Thread Evan Quan
Add SMU13 fan acoustic target OD setting support. Signed-off-by: Evan Quan -- v1->v2: - add missing kerneldoc for the new interface(Alex) v2->v3: - rich the document for the new interface(Alex) --- Documentation/gpu/amdgpu/thermal.rst | 6 ++ .../gpu/drm/amd/i

[PATCH] Revert "drm/amd/pm: disable the SMU13 OD feature support temporarily"

2023-08-30 Thread Evan Quan
This reverts commit 3592cc20beeece83db4c50a0f400e2dd15139de9. The enablement for the new OD mechanism completed. Also, the support for fan control related OD feature has been added via this new mechanism. Thus, it is time to bring back the SMU13 OD support. Signed-off-by: Evan Quan --- .../drm

[V11 0/8] Enable Wifi RFI interference mitigation feature support

2023-08-30 Thread Evan Quan
to wifi subsystem. Patch4 - 8: Bring WBRF support to AMD graphics driver. Evan Quan (8): ACPI: Add support for AMD ACPI based Wifi band RFI mitigation feature cfg80211: expose nl80211_chan_width_to_mhz for wide sharing wifi: mac80211: Add support for WBRF features drm/amd/pm: update

[V11 1/8] ACPI: Add support for AMD ACPI based Wifi band RFI mitigation feature

2023-08-30 Thread Evan Quan
can use to notify active use of particular frequencies so that other devices can make relative internal adjustments as necessary to avoid this resonance. Signed-off-by: Evan Quan -- v10->v11: - fix typo(Simon) --- drivers/acpi/Kconfig | 17 ++ drivers/acpi/Makefile |

[V11 2/8] cfg80211: expose nl80211_chan_width_to_mhz for wide sharing

2023-08-30 Thread Evan Quan
The newly added WBRF feature needs this interface for channel width calculation. Signed-off-by: Evan Quan -- v8->v9: - correct typo(Mhz -> MHz) (Johnson) --- include/net/cfg80211.h | 8 net/wireless/chan.c| 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff -

<    1   2   3   4   5   6   7   8   9   10   >