[PATCH] drm/amdgpu/pm: display vcn pp dpm (v4)

2021-05-19 Thread David M Nieto
Enable displaying DPM levels for VCN clocks in swsmu supported ASICs v2: removed set functions for navi, renoir v3: removed set function from arcturus v4: added missing defines in drm_table and remove uneeded goto label in navi10_ppt.c Signed-off-by: David M Nieto Reviewed-by: Lijo Lazar

[PATCH 3/3] drm/amdgpu/pm: display vcn pp dpm (v3)

2021-05-19 Thread David M Nieto
Enable displaying DPM levels for VCN clocks in swsmu supported ASICs v2: removed set functions for navi, renoir v3: removed set function from arcturus Signed-off-by: David M Nieto Reviewed-by: Lijo Lazar --- .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 46 +++ .../gpu/drm

[PATCH 2/3] drm/amdgpu/pm: add new fields for Navi1x (v3)

2021-05-19 Thread David M Nieto
Fill voltage fields in metrics table v2: Removed dpm and freq ranges info v3: Added check to ensure volrage offset is not zero Signed-off-by: David M Nieto Reviewed-by: Lijo Lazar --- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 82 +++ 1 file changed, 65 insertions(+), 17

[PATCH 1/3] drm/amdgpu/pm: Update metrics table (v2)

2021-05-19 Thread David M Nieto
v2: removed static dpm and frequency ranges from table expand metrics table with voltages and frequency ranges Signed-off-by: David M Nieto Reviewed-by: Lijo Lazar --- .../gpu/drm/amd/include/kgd_pp_interface.h| 69 +++ drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c| 3

[PATCH 3/3] drm/amdgpu/pm: display vcn pp dpm

2021-05-18 Thread David M Nieto
Enable displaying DPM levels for VCN clocks in swsmu supported ASICs Signed-off-by: David M Nieto --- .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 46 +++ .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 2 + .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 8 .../gpu

[PATCH 2/3] drm/amdgpu/pm: add new fields for Navi1x

2021-05-18 Thread David M Nieto
Fill voltage fields in metrics table Signed-off-by: David M Nieto --- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 58 +-- 1 file changed, 41 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11

[PATCH 1/3] drm/amdgpu/pm: Update metrics table

2021-05-18 Thread David M Nieto
expand metrics table with voltages and frequency ranges Signed-off-by: David M Nieto --- .../gpu/drm/amd/include/kgd_pp_interface.h| 69 +++ drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c| 3 + 2 files changed, 72 insertions(+) diff --git a/drivers/gpu/drm/amd/include

[PATCH 2/3] drm/amdgpu/pm: add new fields for Navi1x

2021-05-17 Thread David M Nieto
Fill voltage fields in metrics table Signed-off-by: David M Nieto --- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 62 ++- 1 file changed, 45 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11

[PATCH 3/3] drm/amdgpu/pm: display vcn pp dpm

2021-05-17 Thread David M Nieto
Enable displaying DPM levels for VCN clocks in swsmu supported ASICs Signed-off-by: David M Nieto --- .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 46 ++ .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 4 ++ .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 8 .../gpu

[PATCH 1/3] drm/amdgpu/pm: Update metrics table

2021-05-17 Thread David M Nieto
expand metrics table with voltages and frequency ranges Signed-off-by: David M Nieto --- .../gpu/drm/amd/include/kgd_pp_interface.h| 69 +++ drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c| 3 + 2 files changed, 72 insertions(+) diff --git a/drivers/gpu/drm/amd/include

[PATCH 1/2] drm/amdgpu/pm: Update metrics table

2021-05-14 Thread David M Nieto
expand metrics table with voltages and frequency ranges Signed-off-by: David M Nieto Change-Id: I2a8d63d0abf613a616518c1d7caf9f5da693e920 --- .../gpu/drm/amd/include/kgd_pp_interface.h| 99 +++ drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c| 3 + 2 files changed, 102

[PATCH 2/2] drm/amdgpu/pm: add new fields for Navi1x

2021-05-14 Thread David M Nieto
Fill voltage and frequency ranges fields Signed-off-by: David M Nieto Change-Id: I07f926dea46e80a96e1c972ba9dbc804b812d503 --- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 434 +- 1 file changed, 417 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu

[PATCH 1/2] drm/amdgpu: free resources on fence usage query

2021-05-13 Thread David M Nieto
Free the resources if the fence needs to be ignored during the ratio calculation Signed-off-by: David M Nieto --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd

[PATCH 2/2] drm/amdgpu: fix fence calculation (v2)

2021-05-13 Thread David M Nieto
ratios smaller that 0.01% v2: make the fence calculation static and initialize variables within that function Signed-off-by: David M Nieto --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 19 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 1 + 2 files changed, 17 insertions(+), 3

[PATCH 2/2] drm/amdgpu: fix fence calculation

2021-05-12 Thread David M Nieto
ratios smaller that 0.01% Signed-off-by: David M Nieto Change-Id: I5b6e0ce5f489a5f55855d35354a6a3653e9d613b --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 17 +++-- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 1/2] drm/amdgpu: free resources on fence usage query

2021-05-12 Thread David M Nieto
Free the resources if the fence needs to be ignored during the ratio calculation Signed-off-by: David M Nieto Change-Id: Ibfc55a94c53d4b3a1dba8fff4c53fd893195bb96 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH 2/2] drm/amdgpu: fix fence calculation

2021-05-11 Thread David M Nieto
ratios smaller that 0.01% Signed-off-by: David M Nieto Change-Id: I5b6e0ce5f489a5f55855d35354a6a3653e9d613b --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 13 - drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH 1/2] drm/amdgpu: free resources on fence usage query

2021-05-11 Thread David M Nieto
Free the resources if the fence needs to be ignored during the ratio calculation Signed-off-by: David M Nieto Change-Id: Ibfc55a94c53d4b3a1dba8fff4c53fd893195bb96 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH 2/2] drm/amdgpu: fix fence calculation

2021-05-10 Thread David M Nieto
ratios smaller that 0.01% Signed-off-by: David M Nieto Change-Id: I5b6e0ce5f489a5f55855d35354a6a3653e9d613b --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 13 - drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH 1/2] drm/amdgpu: free resources on fence usage query

2021-05-10 Thread David M Nieto
Free the resources if the fence needs to be ignored during the ratio calculation Signed-off-by: David M Nieto Change-Id: Ibfc55a94c53d4b3a1dba8fff4c53fd893195bb96 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH 1/2] drm/amdgpu: free resources on fence usage query

2021-05-06 Thread David M Nieto
Free the resources if the fence needs to be ignored during the ratio calculation Signed-off-by: David M Nieto Change-Id: Ibfc55a94c53d4b3a1dba8fff4c53fd893195bb96 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH 2/2] drm/amdgpu: fix fence calculation

2021-05-06 Thread David M Nieto
ratios smaller that 0.01% Signed-off-by: David M Nieto Change-Id: I5b6e0ce5f489a5f55855d35354a6a3653e9d613b --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm

[no subject]

2021-05-06 Thread David M Nieto
During stress testing we found that with some Vulkan applications the fence information displayed in the recently added fdinfo was not properly calculated, two issues were discovered: (1) A missing dma_put_fence on the loop that calculates the usage ratios when the fence is being ignored. (2) The