4a82ceb04ad4 ("drm/i915/slpc: Add sysfs for SLPC power profiles")
Cc: Sk Anirban
Reviewed-by: Sk Anirban
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/intel_rps.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/in
the case min_softlimit is at boost
freq. It ensures that we don't reduce the frequency while this request
is in flight.
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13598
Cc: Sk Anirban
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/intel_rps.c | 14 +
This will validate PMU frequency attributes that have been added
to the driver.
Cc: Riana Tauro >
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (2):
lib/xe_gt: Move get/set GT freq utils to lib
tests/xe_pmu: Add frequency test
lib/xe/xe_gt.c |
Add utils to get/set GT frequency attributes. These are per GT
and exposed via sysfs already.
v2: Review comments (Kamil)
v3: Fix some more nits (Kamil)
Reviewed-by: Kamil Konieczny
Reviewed-by: Riana Tauro
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
---
lib/xe/xe_gt.c
: Vinay Belgaumkar
---
tests/intel/xe_pmu.c | 147 +++
1 file changed, 147 insertions(+)
diff --git a/tests/intel/xe_pmu.c b/tests/intel/xe_pmu.c
index 175bbf374..589c7cbde 100644
--- a/tests/intel/xe_pmu.c
+++ b/tests/intel/xe_pmu.c
@@ -376,6 +376,94
Add a basic test that uses PMU to read GT actual and requested
frequencies while running a workload.
v2: Rebase and comments (Riana)
v3: Address review comments (Kamil and Riana)
Cc: Lucas De Marchi
Cc: Rodrigo Vivi
Cc: Riana Tauro
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
Add utils to get/set GT frequency attributes. These are per GT
and exposed via sysfs already.
v2: Review comments (Kamil)
Reviewed-by: Riana Tauro
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
---
lib/xe/xe_gt.c | 61 ++
lib/xe/xe_gt.h | 2 +
tests
This will validate PMU frequency attributes that have been added
to the driver.
Cc: Riana Tauro >
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (2):
lib/xe_gt: Move get/set GT freq utils to lib
tests/xe_pmu: Add frequency test
lib/xe/xe_gt.c |
This will validate PMU frequency attributes that have been added
to the driver.
Cc: Riana Tauro >
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (2):
lib/xe_gt: Move get/set GT freq utils to lib
tests/xe_pmu: Add frequency test
lib/xe/xe_gt.c | 59 ++
lib
Add a basic test that uses PMU to read GT actual and requested
frequencies while running a workload.
v2: Rebase and comments (Riana)
Cc: Lucas De Marchi
Cc: Rodrigo Vivi
Cc: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_pmu.c | 128
Add utils to get/set GT frequency attributes. These ar per GT
and exposed via sysfs already.
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
lib/xe/xe_gt.c | 59 ++
lib/xe/xe_gt.h | 2 +
tests/intel/xe_gt_freq.c | 164
Add a basic test that uses PMU to read GT actual and requested
frequencies while running a workload.
Cc: Lucas De Marchi
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_pmu.c | 93
1 file changed, 93 insertions(+)
diff --git a
Also move some frequency helpers to lib.
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (2):
lib/xe_gt: Move get/set GT freq utils to lib
tests/xe_pmu: Add frequency test
lib/xe/xe_gt.c | 59 ++
lib/xe/xe_gt.h | 2 +
tests/intel/xe_gt_freq.c | 164
These can be used from other tests as well.
Signed-off-by: Vinay Belgaumkar
---
lib/xe/xe_gt.c | 59 ++
lib/xe/xe_gt.h | 2 +
tests/intel/xe_gt_freq.c | 164 +++
3 files changed, 125 insertions(+), 100 deletions(-)
diff
Marchi
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Kamil Konieczny
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_pmu.c | 142 +++
tests/meson.build| 1 +
2 files changed, 143 insertions(+)
create mode 100644 tests/intel
Functions to parse event ID and GT bit shift for PMU events.
v2: Review comments (Riana)
v3: Review comments (Lucas)
v4: Review comments (Kamil, Soham)
Cc: Riana Tauro
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
lib
Add these redundant utils to core lib. Also fix the bug in
measured_usleep, it was returning nsec slept not usec.
v2: Updated perf_pmu and some failing tests. They were expecting
nanosec instead of usec.
v3: Update one more call to measured_usleep.
Reviewed-by: Riana Tauro
Signed-off-by: Vinay
Add utils and gt-c6 tests that utilize PMU counters.
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (3):
lib/igt_core: Add tolerance and measured_usleep utils
lib/igt_perf: Add utils to extract PMU event info
tests/xe/pmu: Add pmu
Marchi
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Kamil Konieczny
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_pmu.c | 142 +++
tests/meson.build| 1 +
2 files changed, 143 insertions(+)
create mode 100644 tests/intel
Functions to parse event ID and GT bit shift for PMU events.
v2: Review comments (Riana)
v3: Review comments (Lucas)
Cc: Riana Tauro
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 70
Add these redundant utils to core lib. Also fix the bug in
measured_usleep, it was returning nsec slept not usec.
v2: Updated perf_pmu and some failing tests. They were expecting
nanosec instead of usec.
v3: Update one more call to measured_usleep.
Signed-off-by: Vinay Belgaumkar
---
lib
Add utils and gt-c6 tests that utilize PMU counters.
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (3):
lib/igt_core: Add tolerance and measured_usleep utils
lib/igt_perf: Add utils to extract PMU event info
tests/xe/pmu: Add pmu
Marchi
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Kamil Konieczny
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_pmu.c | 142 +++
tests/meson.build| 1 +
2 files changed, 143 insertions(+)
create mode 100644 tests/intel
Add these redundant utils to core lib. Also fix the bug in
measured_usleep, it was returning nsec slept not usec.
v2: Updated perf_pmu and some failing tests. They were expecting
nanosec instead of usec.
Signed-off-by: Vinay Belgaumkar
---
lib/igt_core.c | 20
Functions to parse event ID and GT bit shift for PMU events.
v2: Review comments (Riana)
v3: Review comments (Lucas)
Cc: Riana Tauro
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 70
Add utils and gt-c6 tests that utilize PMU counters.
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (3):
lib/igt_core: Add tolerance and measured_usleep utils
lib/igt_perf: Add utils to extract PMU event info
tests/xe/pmu: Add pmu
: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_pmu.c | 149 +++
tests/meson.build| 1 +
2 files changed, 150 insertions(+)
create mode 100644 tests/intel/xe_pmu.c
diff --git a/tests/intel/xe_pmu.c b/tests/intel/xe_pmu.c
new file mode
Functions to parse event ID and GT bit shift for PMU events.
v2: Review comments (Riana)
v3: Review comments (Lucas)
Cc: Riana Tauro
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 70
Add these redundant utils to core lib. Also fix the bug in
measured_usleep, it was returning nsec slept not usec.
The only test which now uses the local version of measured_usleep
is perf_pmu. Patch for that will be sent separately since it
also needs some test changes.
Signed-off-by: Vinay
Add utils and gt-c6 tests that utilize PMU counters.
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (3):
lib/igt_core: Add tolerance and measured_usleep utils
lib/igt_perf: Add utils to extract PMU event info
tests/xe/pmu: Add pmu
Functions to parse event ID and GT bit shift for PMU events.
v2: Review comments (Riana)
Cc: Riana Tauro
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 70 ++
lib/igt_perf.h | 2
: Vinay Belgaumkar
---
tests/intel/xe_pmu.c | 176 +++
tests/meson.build| 1 +
2 files changed, 177 insertions(+)
create mode 100644 tests/intel/xe_pmu.c
diff --git a/tests/intel/xe_pmu.c b/tests/intel/xe_pmu.c
new file mode 100644
index 0
Add utils and gt-c6 tests that utilize PMU counters.
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (2):
lib/igt_perf: Add utils to extract PMU event info
tests/xe/pmu: Add pmu tests
lib/igt_perf.c | 70
Simple tests for validating the PMU implementation for GT C6
residencies.
v2: Rename rc6-residency-* to gt-c6-residency and remove freq tests.
v3: Keep just gt-c6 tests, add frequency tests later.
Cc: Lucas De Marchi
Cc: Riana Tauro
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
tests
Functions to parse event ID and GT bit shift for PMU events.
v2: Review comments (Riana)
Cc: Riana Tauro
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 70 ++
lib/igt_perf.h | 2
Add utils and gt-c6 tests that utilize PMU counters.
Cc: Riana Tauro
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (2):
lib/igt_perf: Add utils to extract PMU event info
tests/xe/pmu: Add pmu tests
lib/igt_perf.c | 70
lib
Functions to parse event ID and GT bit shift for PMU events.
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 68 ++
lib/igt_perf.h | 2 ++
2 files changed, 70 insertions(+)
diff
Add utils and gt-c6 tests that utilize PMU counters.
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (2):
lib/igt_perf: Add utils to extract PMU event info
tests/xe/pmu: Add pmu tests
lib/igt_perf.c | 74 +
lib/igt_perf.h
, add frequency tests later.
Cc: Lucas De Marchi
Cc: Riana Tauro
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 8 +-
lib/igt_perf.h | 2 +
tests/intel/xe_pmu.c | 191 +++
tests/meson.build| 1 +
4 files changed
igo)
Cc: Sushma Venkatesh Reddy
Cc: Rodrigo Vivi
Reviewed-by: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c | 47 ++
drivers/gpu/drm/i915/gt/intel_rps.c | 4 ++
.../drm/i915/gt/uc/abi/guc_actions_slpc_abi.h | 5 ++
driv
ned-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c | 47 +
drivers/gpu/drm/i915/gt/intel_rps.c | 4 ++
.../drm/i915/gt/uc/abi/guc_actions_slpc_abi.h | 5 ++
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 66 +++
drivers/gpu/drm/i
power_saving > slpc_power_profile
$ cat slpc_power_profile
base[power_saving]
v2: Disable waitboost in power saving profile and updated sysfs
format and add some kernel doc for SLPC (Rodrigo)
Cc: Sushma Venkatesh Reddy
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i
comments (Rodrigo, Kamil)
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
tools/gputop.c| 197 ++
tools/meson.build | 2 +-
2 files changed, 198 insertions(+), 1 deletion(-)
diff --git a/tools/gputop.c b
Functions to parse config ID and GT bit shift for PMU events.
Cc: Kamil Konieczny
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 68 ++
lib/igt_perf.h | 2 ++
2 files changed, 70 insertions(+)
diff --git a/lib/igt_perf.c
This will be used for gathering PMU event information.
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
This will be used for gathering PMU event information.
Signed-off-by: Vinay Belgaumkar
/igt_debugfs.c.orig
---
lib/igt_drm_clients.c | 6
Prep work for adding PMU support in gputop.
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
---
tools/gputop.c | 28
1 file changed, 28 insertions(+)
diff --git a/tools/gputop.c b/tools/gputop.c
index 43b01f566..4e3663417
Use the PMU support being added in
https://patchwork.freedesktop.org/series/139121/ to add freq/c6 stats.
Cc: Rodrigo Vivi
Cc: Lucas De Marchi
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
Vinay Belgaumkar (4):
tools/gputop: Define data structs for PMU stats
lib/igt_drm_clients
Default SLPC power profile is Base(0). Power Saving mode(1)
has conservative up/down thresholds and is suitable for use with
apps that typically need to be power efficient.
Cc: Sushma Venkatesh Reddy
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt
: Vinay Belgaumkar
---
lib/igt_drm_clients.c | 17 +
lib/igt_drm_clients.h | 25 +++
lib/igt_perf.c| 57 +-
lib/igt_perf.h| 2 +
tools/gputop.c| 168 +-
tools/intel_gpu_top.c | 18 +
tools/meson.build
read to igt_perf library.
v3: Fix build errors.
Cc: Riana Tauro
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 48 ++
lib/igt_perf.h | 3 +
tests/intel/xe_pmu.c | 394 +++
tests/meson.build| 1 +
4 files
read to igt_perf library.
Cc: Riana Tauro
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 47 ++
lib/igt_perf.h | 3 +
tests/intel/xe_pmu.c | 394 +++
tests/meson.build| 1 +
4 files changed, 445 insertions
Simple tests for validating the PMU implementation for GT C6
residencies and frequency.
These tests validate the kernel series which is currently in review
here - https://patchwork.freedesktop.org/series/139121/
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
lib/igt_perf.c | 18
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2711
Cc: Badal Nilawar
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_gt_freq.c | 24 +---
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
index
Cc: Riana Tauro
Cc: Badal Nilawar
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_gt_freq.c | 57
1 file changed, 40 insertions(+), 17 deletions(-)
diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
index 93ebb5ed0..c9d59508b 100644
://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2262
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2256
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2203
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2412
Cc: Riana Tauro
Cc: Badal Nilawar
Signed-off-by: Vinay
://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2256
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2203
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2412
Cc: Riana Tauro
Cc: Badal Nilawar
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_gt_freq.c | 53
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2256
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_gt_freq.c | 37 +
1 file changed, 29 insertions(+), 8 deletions(-)
diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
index
://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1414
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1829
Fixes: adcc68266b8e ("tests/intel/xe_gt_freq: Check for RPe freq updates")
Reviewed-by: Badal Nilawar
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_gt_f
We are seeing a possible switch in RPe right after RC6 wakeup.
Ensure we obtain the latest RPe by reading it every time.
Fixes: adcc68266b8e ("tests/intel/xe_gt_freq: Check for RPe freq updates")
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_gt_f
Pcode can dynamically update RPe frequency. Use the latest value
in tests that check it.
Signed-off-by: Vinay Belgaumkar
---
tests/intel/xe_gt_freq.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
index c12f6c52c..5c6373016 100644
: Rodrigo Vivi
Acked-by: Ivan Briano
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gem/i915_gem_context.c | 16 --
.../gpu/drm/i915/gem/i915_gem_context_types.h | 1 +
drivers/gpu/drm/i915/gt/intel_context_types.h | 1 +
drivers/gpu/drm/i915/gt/intel_rps.c | 4
as per review suggestions (Rodrigo, Tvrtko).
Also, use flag bits in intel_context as it allows finer control for
toggling per engine if needed (Tvrtko).
v3: Minor review comments (Tvrtko)
Cc: Rodrigo Vivi
Cc: Tvrtko Ursulin
Cc: Sushma Venkatesh Reddy
Acked-by: Rodrigo Vivi
Signed-off-by: Vinay
as per review suggestions (Rodrigo, Tvrtko).
Also, use flag bits in intel_context as it allows finer control for
toggling per engine if needed (Tvrtko).
Cc: Rodrigo Vivi
Cc: Tvrtko Ursulin
Cc: Sushma Venkatesh Reddy
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gem
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gem/i915_gem_context.c | 8 +++
.../gpu/drm/i915/gem/i915_gem_context_types.h | 1 +
drivers/gpu/drm/i915/gt/intel_rps.c | 8 +++
.../drm/i915/gt/uc/abi/guc_actions_slpc_abi.h | 21 +++
drivers/gpu/drm/i915
official WA soon so adding a FIXME in the comments.
v2: Make the new ranges watertight to address BAT failures and update
commit message (Matt R).
Reviewed-by: Matt Roper
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/intel_uncore.c | 5 -
1 file changed, 4 insertions(+), 1 deletion
form sleep states and a H2G is triggered. A forcewake
ensures those sleep states have been fully exited and further
processing occurs as expected.
This will have an official WA soon so adding a FIXME in the comments.
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/intel_uncore.c | 5 +++
subtest at the end expects drm-fd to be closed.
Also setup expected frequencies (Kamil) and address other nits (Kamil)
Link: https://gitlab.freedesktop.org/drm/intel/-/issues/9432
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
---
tests/intel/perf_pmu.c | 62
Seeing random issues where this test starts with invalid values.
Ensure that we restore the frequencies in case test exits early
due to some system issues.
Link: https://gitlab.freedesktop.org/drm/intel/-/issues/9432
Signed-off-by: Vinay Belgaumkar
---
tests/intel/perf_pmu.c | 53
We read RENDER_HEAD as a part of the flush. If GT is in
deeper sleep states, this could lead to read errors since we are
not using a forcewake. Safer to read a shadowed register instead.
Cc: John Harrison
Cc: Daniele Ceraolo Spurio
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt
tions")
Suggested-by: Alan Previn
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/intel_rc6.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/intel_rc6.c
b/drivers/gpu/drm/i915/gt/intel_rc6.c
index 7090e4be29cb..58dc0dab9b64 10
: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/gen8_engine_cs.c
b/drivers/gpu/drm/i915/gt/gen8_engine_cs.c
index ba4c2422b340..86a04afff64b 100644
--- a/drivers/gpu/drm/i915/gt
This bit does not cause an explicit L3 flush. We already use
PIPE_CONTROL_DC_FLUSH_ENABLE for that purpose.
Cc: Nirmoy Das
Cc: Mikka Kuoppala
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
://github.com/XinfengZhang/libva/commit/3d90d18c67609a73121bb71b20ee4776b54b61a7
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gem/i915_gem_wait.c | 9 ++---
drivers/gpu/drm/i915/i915_request.c | 3 ++-
drivers/gpu/drm/i915/i915_request.h | 1 +
include
A prior(rps) test leaves the system in a bad state causing failures
in the basic test. Set min/max to expected values before running it.
Test will restore values at the end.
Link: https://gitlab.freedesktop.org/drm/intel/-/issues/8670
Signed-off-by: Vinay Belgaumkar
---
tests/intel
Test skips whenever S3 is not supported, use s2idle instead, which is
widely enabled.
Cc: Anshuman Gupta
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/i915/i915_pm_freq_api.c b/tests/i915
: https://gitlab.freedesktop.org/drm/intel/issues/8736
Link: https://gitlab.freedesktop.org/drm/intel/issues/8989
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 19 +++
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/tests
: https://gitlab.freedesktop.org/drm/intel/issues/8989
Reviewed-by: Riana Tauro
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 18 ++
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/tests/i915/i915_pm_freq_api.c b/tests/i915/i915_pm_freq_api.c
Register read for requested_freq can return 0 when system is
in runtime_pm. Make allowance for this case.
v2: Explicit check for runtime_pm status (Riana)
Link: https://gitlab.freedesktop.org/drm/intel/issues/8736
Link: https://gitlab.freedesktop.org/drm/intel/issues/8989
Signed-off-by: Vinay
Register read for requested_freq can return 0 when system is
in runtime_pm. Make allowance for this case.
Link: https://gitlab.freedesktop.org/drm/intel/issues/8736
Link: https://gitlab.freedesktop.org/drm/intel/issues/8989
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 18
2a1e4 ("drm/i915/guc/slpc: Allow SLPC to use efficient frequency")
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 22 +
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_s
p.org/drm/intel/-/issues/8736
Fixes: 55f9720dbf23 ("drm/i915/guc/slpc: Provide sysfs for efficient freq")
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_
Dixit
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 18 --
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/tests/i915/i915_pm_freq_api.c b/tests/i915/i915_pm_freq_api.c
index 522abee35..a7bbd4896 100644
--- a/tests/i915/i915_pm_freq_api.c
+++ b
Some subtests seem to be failing in CI, use igt_assert_(lt/eq) which
print the values being compared and some additional debug as well.
v2: Print GT as well (Ashutosh)
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 18 --
1 file changed, 8 insertions(+), 10
Some subtests seem to be failing in CI, use igt_assert_(lt/eq) which
print the values being compared and some additional debug as well.
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 18 --
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/tests
GuC load takes longer sometimes due to GT frequency not ramping up.
Add perf_limit_reasons to the existing warn print to see if frequency
is being throttled.
v2: Review comments (Ashutosh)
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 8 +---
1 file
GuC load takes longer sometimes due to GT frequency not ramping up.
Add perf_limit_reasons to the existing warn print to see if frequency
is being throttled.
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a
should restore the cached
min freq (via H2G) for it to take effect.
v2: Clarify commit message (Ashutosh)
Fixes: 95ccf312a1e4 ("drm/i915/guc/slpc: Allow SLPC to use efficient frequency")
Reviewed-by: Ashutosh Dixit
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/uc/intel_
init. Also, disable efficient freq before starting the
test which allows current freq to be consistent with SLPC min freq.
v2: Restore freq in exit handler (Ashutosh)
v3: Free the allocated stash arrays
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 92
init. Also, disable efficient freq before starting the
test which allows current freq to be consistent with SLPC min freq.
v2: Restore freq in exit handler (Ashutosh)
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 89 +++
1 file changed, 69
c: Allow SLPC to use efficient frequency")
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
index
Hang scenarios are not supported with persistent contexts
when GuC submission is enabled.
Cc: Kamil Konieczny
Reviewed-by: Andrzej Hajda
Signed-off-by: Vinay Belgaumkar
---
tests/i915/gem_ctx_persistence.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_ctx_persistence.c
Hang subtest is not supported with GuC submission enabled.
Cc: Kamil Konieczny
Signed-off-by: Vinay Belgaumkar
---
tests/i915/gem_ctx_persistence.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c
index df9b1c491
Verify that SLPC API works as expected after a suspend.
Signed-off-by: Vinay Belgaumkar
---
tests/i915/i915_pm_freq_api.c | 30 ++
1 file changed, 30 insertions(+)
diff --git a/tests/i915/i915_pm_freq_api.c b/tests/i915/i915_pm_freq_api.c
index 9005cd220..f35f1f8e0
Hang and heartbeat subtests are not supported with GuC submission
enabled.
Signed-off-by: Vinay Belgaumkar
---
tests/i915/gem_ctx_persistence.c | 32 +++-
1 file changed, 19 insertions(+), 13 deletions(-)
diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915
://gitlab.freedesktop.org/drm/intel/-/issues/7632
Reviewed-by: Ashutosh Dixit
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c | 5 -
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 2 ++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt
rps_boost debugfs shows host turbo related info. This is not valid
when SLPC is enabled. guc_slpc_info already shows the number of boosts.
Add num_waiters there as well and disable rps_boost when SLPC is
enabled.
Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/7632
Signed-off-by: Vinay
Use the new efficient frequency toggling interface. Also
create a helper function to restore the frequencies after
the test is done.
v2: Restore max freq first and then min.
Signed-off-by: Vinay Belgaumkar
---
drivers/gpu/drm/i915/gt/selftest_slpc.c | 42 ++---
1 file
)
v4: Toggle efficient freq usage in SLPC selftest and checkpatch fixes
v5: Review comments (Andi) and add a separate patch for selftest updates
Fixes: 95ccf312a1e4 ("drm/i915/guc/slpc: Allow SLPC to use efficient frequency")
Signed-off-by: Vinay Belgaumkar
Reviewed-by: Rodrigo Vivi
Revi
SLPC is disabled. Check for enable_guc is
not sufficient as kernel config may have it but the
platform doesn't actually support it.
v5: Use the updated SLPC helper
v6: Check for guc enabled as well as slpc debugfs
Reviewed-by: Ashutosh Dixit
Cc: Rodrigo Vivi
Signed-off-by: Vinay Belga
Trying out for CI. Do not review.
Signed-off-by: Vinay Belgaumkar
---
tests/intel-ci/fast-feedback.testlist | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/intel-ci/fast-feedback.testlist
b/tests/intel-ci/fast-feedback.testlist
index d9fcb62d..653668dd 100644
--- a/tests/intel-ci
1 - 100 of 321 matches
Mail list logo