Skip to content

Add support for GuC-based SLPC

Sagar Arun Kamble intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20drm/i915/debugfs: Create generic string tokenize function and update CRC control parsingdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_pipe_crc.c+45 -441 reply
2/20drm/i915/gen9+: Separate RPS and RC6 handlingdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/i915_drv.h +1 more+80 -302 replies
3/20drm/i915/slpc: Add has_slpc capability flagdrivers/gpu/drm/i915/i915_drv.h+2 -00 replies
4/20drm/i915/slpc: Add enable_slpc module parameterdrivers/gpu/drm/i915/i915_params.c drivers/gpu/drm/i915/i915_params.h drivers/gpu/drm/i915/intel_uc.c+20 -00 replies
5/20drm/i915/slpc: Sanitize GuC versiondrivers/gpu/drm/i915/intel_csr.c drivers/gpu/drm/i915/intel_guc.h drivers/gpu/drm/i915/intel_guc_loader.c +2 more+25 -90 replies
6/20drm/i915/slpc: Lay out SLPC init/enable/disable/cleanup helpersdrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_irq.c +6 more+150 -30 replies
7/20drm/i915/slpc: Enable SLPC in GuC if supporteddrivers/gpu/drm/i915/intel_guc_loader.c+3 -00 replies
8/20drm/i915/slpc: Add SLPC communication interfacesdrivers/gpu/drm/i915/intel_slpc.c drivers/gpu/drm/i915/intel_slpc.h+246 -00 replies
9/20drm/i915/slpc: Allocate/Release/Initialize SLPC shared datadrivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_pm.c drivers/gpu/drm/i915/intel_slpc.c +1 more+170 -10 replies
10/20drm/i915/slpc: Add parameter set/unset/get, task control/status functionsdrivers/gpu/drm/i915/intel_guc.c drivers/gpu/drm/i915/intel_guc.h drivers/gpu/drm/i915/intel_slpc.c +1 more+215 -10 replies
11/20drm/i915/slpc: Send RESET event to enable SLPCdrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/intel_pm.c drivers/gpu/drm/i915/intel_slpc.c +1 more+152 -00 replies
12/20drm/i915/slpc: Send SHUTDOWN eventdrivers/gpu/drm/i915/intel_slpc.c+21 -00 replies
13/20drm/i915/slpc: Add support for min/max frequency controldrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_sysfs.c drivers/gpu/drm/i915/intel_slpc.c +1 more+133 -100 replies
14/20drm/i915/slpc: Add debugfs support to read/write/revert the parametersdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/intel_slpc.c drivers/gpu/drm/i915/intel_slpc.h+183 -00 replies
15/20drm/i915/slpc: Add enable/disable controls for SLPC tasksdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/intel_slpc.c drivers/gpu/drm/i915/intel_slpc.h+190 -00 replies
16/20drm/i915/slpc: Add i915_slpc_info to debugfsdrivers/gpu/drm/i915/i915_debugfs.c+165 -00 replies
17/20drm/i915/slpc: Add SLPC banner to RPS debugfs interfaces.drivers/gpu/drm/i915/i915_debugfs.c+6 -00 replies
18/20drm/i915/slpc: Add SKL SLPC Supportdrivers/gpu/drm/i915/i915_pci.c+1 -00 replies
19/20drm/i915/slpc: Add Broxton SLPC supportdrivers/gpu/drm/i915/i915_pci.c+1 -00 replies
20/20drm/i915/slpc: Add Kabylake SLPC supportdrivers/gpu/drm/i915/i915_pci.c drivers/gpu/drm/i915/intel_slpc.c+3 -20 replies

Reviews trailers per patch

4 of 20 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid WeinehallRadoslaw Szwichtenberg
SeriesA-b
1/20A-b
2/20R-b
3/20R-b
4/20
5/20
6/20
7/20
8/20
9/20
10/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20R-b
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/20] Add support for GuC-based SLPC

SLPC (Single Loop Power Controller) is a replacement for some host-based power management features. The SLPC implementation runs in GuC firmware. This series has been tested with SKL/APL/KBL GuC firmware v9 and v10 which are yet to be released on 01.org.

The graphics power management features in SLPC are called GTPERF, BALANCER, and DCC.
1. GTPERF is a combination of DFPS (Dynamic FPS) and Turbo. DFPS adjusts requested graphics frequency to maintain target framerate. Turbo adjusts requested graphics frequency to maintain target GT busyness.
2. BALANCER adjusts balance between power budgets for IA and GT in power limited scenarios.
3. DCC (Duty Cycle Control) adjusts requested graphics frequency and stalls guc-scheduler to maintain actual graphics frequency in efficient range.

This series activates GTPERF Turbo and BALANCER in GuC SLPC. Patch to enable SLPC by default on platforms having support is removed from this series as there are following new changes to be added in future before we enable GuC/SLPC by default:
1. Link waitboost with SLPC.
2. Handle CPG as part of SLPC.
3. IA p-state logic update with GuC submission.

In order to enable CI/PnP testing of SLPC and to avoid frequent rebase, this series should be safe for merge with feature in disabled state.

v2: Addressed review comments on v1. Removed patch to enable SLPC by
default.

v3: Addressed WARNING in igt@drv_module_reload_basic flagged by trybot BAT.
Added change for sanitizing GT PM during reset. Added separate patch for sysfs interface to know HW requested frequency. Also, earlier patches did not go as series hence were not correctly picked up by BAT.

v4: Changes to multiple patches. CI BAT is passing. Performance run on SKL
GT2 done and shows perf at parity with Host Turbo. For BXT, SLPC improves performance when GuC is enabled compared to Host Turbo. This series keeps only support of 9.18 firmware for better readability. If needed, other SLPC interfaces for different GuC version will be added later.

v5: This series incorporates feedback from code reviews on earlier series
and adds following new changes:
1. More changes for separation of RPS and RC6 handling for Gen9.
2. Tied up SLPC enabling with GuC load/GuC submission sequence.
3. SLPC structures are defined explicitly for event input/output.
4. Definition of SLPC parameter control and task control functions agnostic to the underlying param definitions as they might change with GuC versions and prepared helpers for common tasks.
5. Transition of i915 overrides done through host to guc events to shared data and single reset event.
6. Handling SLPC status post reset through shared memory.
7. Derived helpers for setting frequency limits.
8. Removed sysfs interface to know RPNSWREQ as it is available in debugfs interface i915_frequency_info.
9. Simple igt test to verify SLPC configuration by i915 in various driver scenarios is prepared.

v6: This series adds following new changes:
1. Updated intel_guc_send for SLPC to receive output data from GuC.
2. Added task overrides and min frequency overrides in intel_slpc_init. min frequency is set to Rpe.
3. New debugfs interface added to set/unset/read SLPC parameters other than tasks and frequencies. SLPC reset post parameter update added.
4. SLPC parameters persist as part of i915-GuC shared data hence not overriding frequency limits while re-enabling SLPC.
5. Other minor fixes to clear pm_rps_events, clflush the shared data.

v7: This series adds following new changes:
1. Reordered patches. SLPC communication interfaces (structures and functions) are pulled into patches earlier in the series.
2. Eliminated dependency on i915.enable_slpc at various functions where rps_enabled is available.
3. s/i915_ggtt_offset/guc_ggtt_offset and sanitization of parameter in intel_uc_sanitize_options.

v8: Activated Balancer. Changed prototype of SLPC functions to accept
struct intel_slpc as parameter instead of drm_i915_private.

VIZ-6889, VIZ-6890

Cc Chris Wilson <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Beuchat, Marc <[email protected]>
Cc Radoslaw Szwichtenberg <[email protected]>
Cc Jeff McGee <[email protected]>
Cc Arkadiusz Hiler <[email protected]>
Cc Oscar Mateo <[email protected]>
Cc Michał Winiarski <[email protected]>

Sagar Arun Kamble (11):
drm/i915/debugfs: Create generic string tokenize function and update
CRC control parsing
drm/i915/gen9+: Separate RPS and RC6 handling drm/i915/slpc: Lay out SLPC init/enable/disable/cleanup helpers drm/i915/slpc: Add SLPC communication interfaces drm/i915/slpc: Allocate/Release/Initialize SLPC shared data drm/i915/slpc: Add parameter set/unset/get, task control/status
functions
drm/i915/slpc: Send RESET event to enable SLPC drm/i915/slpc: Add support for min/max frequency control drm/i915/slpc: Add debugfs support to read/write/revert the parameters drm/i915/slpc: Add SLPC banner to RPS debugfs interfaces. drm/i915/slpc: Add Kabylake SLPC support

Tom O'Rourke (9):
drm/i915/slpc: Add has_slpc capability flag drm/i915/slpc: Add enable_slpc module parameter drm/i915/slpc: Sanitize GuC version drm/i915/slpc: Enable SLPC in GuC if supported drm/i915/slpc: Send SHUTDOWN event drm/i915/slpc: Add enable/disable controls for SLPC tasks drm/i915/slpc: Add i915_slpc_info to debugfs drm/i915/slpc: Add SKL SLPC Support drm/i915/slpc: Add Broxton SLPC support

 drivers/gpu/drm/i915/Makefile           |   1 +
 drivers/gpu/drm/i915/i915_debugfs.c     | 243 +++++++-
 drivers/gpu/drm/i915/i915_drv.c         |  11 +-
 drivers/gpu/drm/i915/i915_drv.h         |  24 +-
 drivers/gpu/drm/i915/i915_irq.c         |   5 +
 drivers/gpu/drm/i915/i915_params.c      |   6 +
 drivers/gpu/drm/i915/i915_params.h      |   1 +
 drivers/gpu/drm/i915/i915_pci.c         |   3 +
 drivers/gpu/drm/i915/i915_sysfs.c       |  36 +-
 drivers/gpu/drm/i915/intel_csr.c        |  15 +-
 drivers/gpu/drm/i915/intel_drv.h        |   1 +
 drivers/gpu/drm/i915/intel_guc.c        |  26 +-
 drivers/gpu/drm/i915/intel_guc.h        |   6 +
 drivers/gpu/drm/i915/intel_guc_loader.c |  18 +
 drivers/gpu/drm/i915/intel_pipe_crc.c   |  88 +--
 drivers/gpu/drm/i915/intel_pm.c         | 117 +++-
 drivers/gpu/drm/i915/intel_slpc.c       | 985 ++++++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_slpc.h       | 274 +++++++++
 drivers/gpu/drm/i915/intel_uc.c         |  39 ++
 drivers/gpu/drm/i915/intel_uc_common.h  |   2 +
 20 files changed, 1806 insertions(+), 95 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/intel_slpc.c
 create mode 100644 drivers/gpu/drm/i915/intel_slpc.h
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx