[Intel-gfx] [PATCH 04/21] drm/i915/slpc: Add enable_slpc module parameter

2016-04-27 Thread tom . orourke
From: Tom O'Rourke i915.enable_slpc is used to override the default for slpc usage. The expected values are -1=auto, 0=disabled [default], 1=enabled. slpc_enable_sanitize() converts i915.enable_slpc to either 0 or 1. Interpretation of default value is based on

[Intel-gfx] [PATCH 20/21] drm/i915/slpc: Add i915_slpc_info to debugfs

2016-04-27 Thread tom . orourke
From: Tom O'Rourke i915_slpc_info shows the contents of SLPC shared data parsed into text format. v2: reformat slpc info (Radek) squashed query task state info in slpc info, kunmap before seq_print (Paulo) return void instead of ignored return value (Paulo)

[Intel-gfx] [PATCH 21/21] drm/i915/slpc: Fail intel_runtime_suspend if SLPC or RPS not active

2016-04-27 Thread tom . orourke
From: Sagar Arun Kamble intel_runtime_suspend failed with warning if RPS was disabled. With SLPC enabled, RPS is disabled. With SLPC, warning is now changed to consider SLPC active status as well. This will ensure runtime suspend proceeds when SLPC enabled. v2: Commit

[Intel-gfx] [PATCH 08/21] drm/i915/slpc: Allocate/Release/Initialize SLPC shared data

2016-04-27 Thread tom . orourke
From: Tom O'Rourke SLPC shared data is used to pass information to/from SLPC firmware. For Skylake, platform sku type and slice count are identified from device id and fuse values. Support for other platforms needs to be added. v2: Update for SLPC interface version

[Intel-gfx] [PATCH 12/21] drm/i915/slpc: Send shutdown event

2016-04-27 Thread tom . orourke
From: Tom O'Rourke Send SLPC shutdown event during disable, suspend, and reset operations. Sending shutdown event while already shutdown is OK. v2: return void instead of ignored error code (Paulo) Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 11/21] drm/i915/slpc: Send reset event

2016-04-27 Thread tom . orourke
From: Tom O'Rourke Add host2guc SLPC reset event and send reset event during enable. v2: extract host2guc_slpc to handle slpc status code coding style changes (Paulo) Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.c | 33

[Intel-gfx] [PATCH 15/21] drm/i915/slpc: Notification of Refresh Rate change

2016-04-27 Thread tom . orourke
From: Sagar Arun Kamble This patch will inform GuC SLPC about changes in the refresh rate due to Seamless DRRS. Refresh rate changes due to Static DRRS will be notified via commit path. v2: Rebased on previous changed patch and printed error message if H2G action

[Intel-gfx] [PATCH 13/21] drm/i915/slpc: Add Display mode event related data structures

2016-04-27 Thread tom . orourke
From: Sagar Arun Kamble v2: Cleaning up defines for number of pipes and other cosmetic changes. v3: Checkpatch fixes. Signed-off-by: Sagar Arun Kamble Acked-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.h |

[Intel-gfx] [PATCH 07/21] drm/i915/slpc: If using SLPC, do not set frequency

2016-04-27 Thread tom . orourke
From: Tom O'Rourke When frequency requests are made by SLPC, host driver should not attempt to make frequency requests due to potential conflicts. Host-based turbo operations are already avoided when SLPC is used. This change covers other frequency requests such as from

[Intel-gfx] [PATCH 09/21] drm/i915/slpc: Setup rps frequency values during SLPC init

2016-04-27 Thread tom . orourke
From: Tom O'Rourke v2: Add mutex lock/unlock Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 2 +- drivers/gpu/drm/i915/intel_slpc.c | 5 + 3 files changed, 7 insertions(+), 1

[Intel-gfx] [PATCH 10/21] drm/i915/slpc: Update current requested frequency

2016-04-27 Thread tom . orourke
From: Tom O'Rourke When SLPC is controlling requested frequency, the rps.cur_freq value is not used to make the frequency request. Before using rps.cur_freq in sysfs or debugfs, read requested frequency from register to get the value most recently requested by SLPC

[Intel-gfx] [PATCH 14/21] drm/i915/slpc: Notification of Display mode change

2016-04-27 Thread tom . orourke
From: Sagar Arun Kamble GuC SLPC needs to be sent data related to Active pipes, refresh rates, widi pipes, fullscreen pipes related via host to GuC display mode change event. Based on this, SLPC will track FPS on active pipes. This patch defines the events and

[Intel-gfx] [PATCH 06/21] drm/i915/slpc: Enable SLPC in guc if supported

2016-04-27 Thread tom . orourke
From: Tom O'Rourke If slpc enabled, then add enable SLPC flag to guc control parameter during guc load. v2: Use intel_slpc_enabled() (Paulo) Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_guc_loader.c | 3 +++ 1 file changed, 3

[Intel-gfx] [PATCH 01/21] drm/i915/slpc: Expose guc functions for use with SLPC

2016-04-27 Thread tom . orourke
From: Tom O'Rourke Expose host2guc_action for use by SLPC in intel_slpc.c. Expose functions to allocate and release objects used by GuC to be used for SLPC shared memory object. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 02/21] drm/i915/slpc: Add has_slpc capability flag

2016-04-27 Thread tom . orourke
From: Tom O'Rourke Add has_slpc capablity flag to indicate GuC firmware supports single loop power control (SLPC). SLPC is a replacement for some host-based power management features. v2: fix whitespace (Sagar) Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 05/21] drm/i915/slpc: Use intel_slpc_* functions if supported

2016-04-27 Thread tom . orourke
From: Tom O'Rourke On platforms with SLPC support: call intel_slpc_*() functions from corresponding intel_*_gt_powersave() functions; and do not use rps functions. v2: return void instead of ignored error code (Paulo) enable/disable RC6 in SLPC flows (Sagar)

[Intel-gfx] [PATCH 17/21] drm/i915/slpc: Add parameter unset/set/get functions

2016-04-27 Thread tom . orourke
From: Tom O'Rourke Add slpc_param_id enum values. Add events for setting/unsetting parameters. v2: use host2guc_slpc update slcp_param_id enum values for SLPC 2015.2.4 return void instead of ignored error code (Paulo) Signed-off-by: Tom O'Rourke

[Intel-gfx] [PATCH 03/21] drm/i915/slpc: Add slpc_version_check

2016-04-27 Thread tom . orourke
From: Tom O'Rourke The SLPC interface has changed and could continue to change. Only GuC versions known to be compatible are supported here. On Skylake, GuC firmware v6 is supported. Other platforms and versions can be added here later. This patch also adds has_slpc

[Intel-gfx] [PATCH 18/21] drm/i915/slpc: Add slpc support for max/min freq

2016-04-27 Thread tom . orourke
From: Tom O'Rourke Update sysfs and debugfs functions to set SLPC parameters when setting max/min frequency. v2: Update for SLPC 2015.2.4 (params for both slice and unslice) Replace HAS_SLPC with intel_slpc_active() (Paulo) Signed-off-by: Tom O'Rourke

[Intel-gfx] [PATCH 16/21] drm/i915/slpc: Add slpc_status enum values

2016-04-27 Thread tom . orourke
From: Tom O'Rourke v2: fix whitespace (Sagar) Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_slpc.h

[Intel-gfx] [PATCH 19/21] drm/i915/slpc: Add enable/disable debugfs for slpc

2016-04-27 Thread tom . orourke
From: Tom O'Rourke Adds debugfs hooks for each slpc task. The enable/disable debugfs files are i915_slpc_gtperf, i915_slpc_balancer, and i915_slpc_dcc. Each of these can take the values: "default", "enabled", or "disabled" v2: update for SLPC v2015.2.4 dfps and

[Intel-gfx] [PATCH v4 00/21] Add support for GuC-based SLPC

2016-04-27 Thread tom . orourke
From: Tom O'Rourke SLPC (Single Loop Power Controller) is a replacement for some host-based power management features. The SLPC implemenation runs in firmware on GuC. This series has been tested with SKL guc firmware version 6.1. The graphics power management features

[Intel-gfx] [PATCH] drm/i915/guc: Use major_minor version for filename

2016-04-25 Thread tom . orourke
From: Tom O'Rourke Load guc firmware from file with major_minor number in filename instead of using symolic link with only major number. Issue: VIZ-7713 Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_guc_loader.c | 2 +- 1 file

[Intel-gfx] [PATCH] DO NOT MERGE: drm/i915: Enable GuC submission, where supported

2016-04-06 Thread tom . orourke
From: Dave Gordon DO NOT MERGE: This patch is being sent for CI testing only v5: Rebased Signed-off-by: Dave Gordon Acked-by: Tom O'Rourke --- drivers/gpu/drm/i915/i915_params.c | 4 ++-- 1 file changed, 2

[Intel-gfx] [PATCH 05/25] drm/i915/slpc: Use intel_slpc_* functions if supported

2016-04-06 Thread tom . orourke
From: Tom O'Rourke On platforms with SLPC support: call intel_slpc_*() functions from corresponding intel_*_gt_powersave() functions; and do not use rps functions. v2: return void instead of ignored error code (Paulo) enable/disable RC6 in SLPC flows (Sagar)

[Intel-gfx] [PATCH 16/25] drm/i915/slpc: Add slpc_status enum values

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_slpc.h b/drivers/gpu/drm/i915/intel_slpc.h index

[Intel-gfx] [PATCH 12/25] drm/i915/slpc: Send shutdown event

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Send SLPC shutdown event during disable, suspend, and reset operations. Sending shutdown event while already shutdown is OK. v2: return void instead of ignored error code (Paulo) Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 08/25] drm/i915/slpc: Allocate/Release/Initialize SLPC shared data

2016-04-06 Thread tom . orourke
From: Tom O'Rourke SLPC shared data is used to pass information to/from SLPC firmware. For Skylake, platform sku type and slice count are identified from device id and fuse values. Support for other platforms needs to be added. v2: Update for SLPC interface version

[Intel-gfx] [PATCH 23/25] DO NOT MERGE: drm/i915: resize the GuC WOPCM for rc6

2016-04-06 Thread tom . orourke
From: Peter Antoine This patch resizes the GuC WOPCM to so that the GuC and the RC6 memory spaces do not overlap. DO NOT MERGE: This patch is expected as part of another series and is included for convenience in testing this series. Issue:

[Intel-gfx] [PATCH 22/25] DO NOT MERGE: drm/i915/bxt: Add Broxton to guc loader

2016-04-06 Thread tom . orourke
From: Tom O'Rourke This patch is expected as part of another series and is included for convenience in testing this series. Do not merge unless Broxton guc v5 firmware is available. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 02/25] drm/i915/slpc: Add has_slpc capability flag

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Add has_slpc capablity flag to indicate GuC firmware supports single loop power control (SLPC). SLPC is a replacement for some host-based power management features. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 01/25] drm/i915/slpc: Expose guc functions for use with SLPC

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Expose host2guc_action for use by SLPC in intel_slpc.c. Expose functions to allocate and release objects used by GuC to be used for SLPC shared memory object. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 19/25] drm/i915/slpc: Add enable/disable debugfs for slpc

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Adds debugfs hooks for each slpc task. The enable/disable debugfs files are i915_slpc_gtperf, i915_slpc_balancer, and i915_slpc_dcc. Each of these can take the values: "default", "enabled", or "disabled" v2: update for SLPC v2015.2.4 dfps and

[Intel-gfx] [PATCH 09/25] drm/i915/slpc: Setup rps frequency values during SLPC init

2016-04-06 Thread tom . orourke
From: Tom O'Rourke v2: Add mutex lock/unlock Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 2 +- drivers/gpu/drm/i915/intel_slpc.c | 5 + 3 files changed, 7 insertions(+), 1

[Intel-gfx] [PATCH 24/25] DO NOT MERGE: drm/i915: Enable GuC submission, where supported

2016-04-06 Thread tom . orourke
From: Dave Gordon DO NOT MERGE: This patch is added for convenience in reviewing SLPC patch series. This patch should be merged as part of a separate series to enable guc submission by default. v5: Rebased Signed-off-by: Dave Gordon

[Intel-gfx] [PATCH 21/25] drm/i915/slpc: Add i915_slpc_info to debugfs

2016-04-06 Thread tom . orourke
From: Tom O'Rourke i915_slpc_info shows the contents of SLPC shared data parsed into text format. v2: reformat slpc info (Radek) squashed query task state info in slpc info, kunmap before seq_print (Paulo) return void instead of ignored return value (Paulo)

[Intel-gfx] [PATCH 11/25] drm/i915/slpc: Send reset event

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Add host2guc SLPC reset event and send reset event during enable. v2: extract host2guc_slpc to handle slpc status code coding style changes (Paulo) Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.c | 33

[Intel-gfx] [PATCH 15/25] drm/i915/slpc: Notification of Refresh Rate change

2016-04-06 Thread tom . orourke
From: Sagar Arun Kamble This patch will inform GuC SLPC about changes in the refresh rate due to Seamless DRRS. Refresh rate changes due to Static DRRS will be notified via commit path. v2: Rebased on previous changed patch and printed error message if H2G action

[Intel-gfx] [PATCH 03/25] drm/i915/slpc: Add slpc_version_check

2016-04-06 Thread tom . orourke
From: Tom O'Rourke The SLPC interface has changed and could continue to change. Only GuC versions known to be compatible are supported here. On Skylake, GuC firmware v6 is supported. Other platforms and versions can be added here later. This patch also adds has_slpc

[Intel-gfx] [PATCH 25/25] DO NOT MERGE: drm/i915: Enable SLPC, where supported

2016-04-06 Thread tom . orourke
From: Tom O'Rourke This patch makes SLPC enabled by default on platforms with hardware/firmware support. DO NOT MERGE: This patch is added for convenience in reviewing SLPC patch series. This patch should be merged after validation results show benefits of using SLPC.

[Intel-gfx] [PATCH v3 00/25] Add support for GuC-based SLPC

2016-04-06 Thread tom . orourke
From: Tom O'Rourke SLPC (Single Loop Power Controller) is a replacement for some host-based power management features. The SLPC implemenation runs in firmware on GuC. This series has been tested with SKL guc firmware version 6.1 and BXT guc version 5.1. The graphics

[Intel-gfx] [PATCH 07/25] drm/i915/slpc: If using SLPC, do not set frequency

2016-04-06 Thread tom . orourke
From: Tom O'Rourke When frequency requests are made by SLPC, host driver should not attempt to make frequency requests due to potential conflicts. Host-based turbo operations are already avoided when SLPC is used. This change covers other frequency requests such as from

[Intel-gfx] [PATCH 13/25] drm/i915/slpc: Add Display mode event related data structures

2016-04-06 Thread tom . orourke
From: Sagar Arun Kamble v2: Cleaning up defines for number of pipes and other cosmetic changes. Signed-off-by: Sagar Arun Kamble Acked-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.h | 29

[Intel-gfx] [PATCH 04/25] drm/i915/slpc: Add enable_slpc module parameter

2016-04-06 Thread tom . orourke
From: Tom O'Rourke i915.enable_slpc is used to override the default for slpc usage. The expected values are -1=auto, 0=disabled [default], 1=enabled. slpc_enable_sanitize() converts i915.enable_slpc to either 0 or 1. Interpretation of default value is based on

[Intel-gfx] [PATCH 17/25] drm/i915/slpc: Add parameter unset/set/get functions

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Add slpc_param_id enum values. Add events for setting/unsetting parameters. v2: use host2guc_slpc update slcp_param_id enum values for SLPC 2015.2.4 return void instead of ignored error code (Paulo) Signed-off-by: Tom O'Rourke

[Intel-gfx] [PATCH 14/25] drm/i915/slpc: Notification of Display mode change

2016-04-06 Thread tom . orourke
From: Sagar Arun Kamble GuC SLPC need to be sent data related to Active pipes, refresh rates, widi pipes, fullscreen pipes related via host to GuC display mode change event. Based on this, SLPC will track FPS on active pipes. This patch defines the event and implements

[Intel-gfx] [PATCH 06/25] drm/i915/slpc: Enable SLPC in guc if supported

2016-04-06 Thread tom . orourke
From: Tom O'Rourke If slpc enabled, then add enable SLPC flag to guc control parameter during guc load. v2: Use intel_slpc_enabled() (Paulo) Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_guc_loader.c | 3 +++ 1 file changed, 3

[Intel-gfx] [PATCH 18/25] drm/i915/slpc: Add slpc support for max/min freq

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Update sysfs and debugfs functions to set SLPC parameters when setting max/min frequency. v2: Update for SLPC 2015.2.4 (params for both slice and unslice) Replace HAS_SLPC with intel_slpc_active() (Paulo) Signed-off-by: Tom O'Rourke

[Intel-gfx] [PATCH 20/25] drm/i915/slpc: Add broxton support

2016-04-06 Thread tom . orourke
From: Tom O'Rourke Adds has_slpc to broxton info and adds broxton to version check. The SLPC interface version 2015.2.4 is found in Broxton Guc v5. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/i915_drv.c | 1 +

[Intel-gfx] [PATCH 10/25] drm/i915/slpc: Update current requested frequency

2016-04-06 Thread tom . orourke
From: Tom O'Rourke When SLPC is controlling requested frequency, the rps.cur_freq value is not used to make the frequency request. Before using rps.cur_freq in sysfs or debugfs, read requested frequency from register to get the value most recently requested by SLPC

[Intel-gfx] [PATCH 14/26] drm/i915/slpc: Notification of Display mode change

2016-03-08 Thread tom . orourke
From: Sagar Arun Kamble GuC SLPC need to be sent data related to Active pipes, refresh rates, widi pipes, fullscreen pipes related via host to GuC display mode change event. Based on this, SLPC will track FPS on active pipes. This patch defines the event and implements

[Intel-gfx] [PATCH 22/26] DO NOT MERGE: drm/i915: Change SKL guc version wanted to 6.0

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Do not merge until SKL guc ver6 is published. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_guc_loader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[Intel-gfx] [PATCH 19/26] drm/i915/slpc: Add enable/disable debugfs for slpc

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Adds debugfs hooks for each slpc task. The enable/disable debugfs files are i915_slpc_gtperf, i915_slpc_balancer, and i915_slpc_dcc. Each of these can take the values: "default", "enabled", or "disabled" v2: update for SLPC v2015.2.4 dfps and

[Intel-gfx] [PATCH 09/26] drm/i915/slpc: Setup rps frequency values during SLPC init

2016-03-08 Thread tom . orourke
From: Tom O'Rourke v2: Add mutex lock/unlock Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 2 +- drivers/gpu/drm/i915/intel_slpc.c | 5 + 3 files changed, 7 insertions(+), 1

[Intel-gfx] [PATCH 07/26] drm/i915/slpc: If using SLPC, do not set frequency

2016-03-08 Thread tom . orourke
From: Tom O'Rourke When frequency requests are made by SLPC, host driver should not attempt to make frequency requests due to potential conflicts. Host-based turbo operations are already avoided when SLPC is used. This change covers other frequency requests such as from

[Intel-gfx] [PATCH 21/26] drm/i915/slpc: Add i915_slpc_info to debugfs

2016-03-08 Thread tom . orourke
From: Tom O'Rourke i915_slpc_info shows the contents of SLPC shared data parsed into text format. v2: reformat slpc info (Radek) squashed query task state info in slpc info, kunmap before seq_print (Paulo) return void instead of ignored return value (Paulo)

[Intel-gfx] [PATCH 12/26] drm/i915/slpc: Send shutdown event

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Send SLPC shutdown event during disable, suspend, and reset operations. Sending shutdown event while already shutdown is OK. v2: return void instead of ignored error code (Paulo) Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 23/26] DO NOT MERGE: drm/i915/bxt: Add Broxton to guc loader

2016-03-08 Thread tom . orourke
From: Tom O'Rourke This patch is expected as part of another series and is included for convenience in testing this series. Do not merge unless Broxton guc v5 firmware is available. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 20/26] drm/i915/slpc: Add broxton support

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Adds has_slpc to broxton info and adds broxton to version check. The SLPC interface version 2015.2.4 is found in Broxton Guc v5. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/i915_drv.c | 1 +

[Intel-gfx] [PATCH 16/26] drm/i915/slpc: Add slpc_status enum values

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_slpc.h b/drivers/gpu/drm/i915/intel_slpc.h index

[Intel-gfx] [PATCH 25/26] DO NOT MERGE: drm/i915: Enable GuC submission, where supported

2016-03-08 Thread tom . orourke
From: Dave Gordon DO NOT MERGE: This patch is added for convenience in reviewing SLPC patch series. This patch should be merged as part of a separate series to enable guc submission by default. v5: Rebased Signed-off-by: Dave Gordon

[Intel-gfx] [PATCH 06/26] drm/i915/slpc: Enable SLPC in guc if supported

2016-03-08 Thread tom . orourke
From: Tom O'Rourke If slpc enabled, then add enable SLPC flag to guc control parameter during guc load. v2: Use intel_slpc_enabled() (Paulo) Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_guc_loader.c | 3 +++ 1 file changed, 3

[Intel-gfx] [PATCH 10/26] drm/i915/slpc: Update current requested frequency

2016-03-08 Thread tom . orourke
From: Tom O'Rourke When SLPC is controlling requested frequency, the rps.cur_freq value is not used to make the frequency request. Before using rps.cur_freq in sysfs or debugfs, read requested frequency from register to get the value most recently requested by SLPC

[Intel-gfx] [PATCH 17/26] drm/i915/slpc: Add parameter unset/set/get functions

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Add slpc_param_id enum values. Add events for setting/unsetting parameters. v2: use host2guc_slpc update slcp_param_id enum values for SLPC 2015.2.4 return void instead of ignored error code (Paulo) Signed-off-by: Tom O'Rourke

[Intel-gfx] [PATCH 26/26] DO NOT MERGE: drm/i915: Enable SLPC, where supported

2016-03-08 Thread tom . orourke
From: Tom O'Rourke This patch makes SLPC enabled by default on platforms with hardware/firmware support. DO NOT MERGE: This patch is added for convenience in reviewing SLPC patch series. This patch should be merged after validation results show benefits of using SLPC.

[Intel-gfx] [PATCH 18/26] drm/i915/slpc: Add slpc support for max/min freq

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Update sysfs and debugfs functions to set SLPC parameters when setting max/min frequency. v2: Update for SLPC 2015.2.4 (params for both slice and unslice) Replace HAS_SLPC with intel_slpc_active() (Paulo) Signed-off-by: Tom O'Rourke

[Intel-gfx] [PATCH 08/26] drm/i915/slpc: Allocate/Release/Initialize SLPC shared data

2016-03-08 Thread tom . orourke
From: Tom O'Rourke SLPC shared data is used to pass information to/from SLPC firmware. For Skylake, platform sku type and slice count are identified from device id and fuse values. Support for other platforms needs to be added. v2: Update for SLPC interface version

[Intel-gfx] [PATCH 24/26] DO NOT MERGE: drm/i915: resize the GuC WOPCM for rc6

2016-03-08 Thread tom . orourke
From: Peter Antoine This patch resizes the GuC WOPCM to so that the GuC and the RC6 memory spaces do not overlap. DO NOT MERGE: This patch is expected as part of another series and is included for convenience in testing this series. Issue:

[Intel-gfx] [PATCH 13/26] drm/i915/slpc: Add Display mode event related data structures

2016-03-08 Thread tom . orourke
From: Sagar Arun Kamble v2: Cleaning up defines for number of pipes and other cosmetic changes. Signed-off-by: Sagar Arun Kamble Acked-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.h | 29

[Intel-gfx] [PATCH 11/26] drm/i915/slpc: Send reset event

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Add host2guc SLPC reset event and send reset event during enable. v2: extract host2guc_slpc to handle slpc status code coding style changes (Paulo) Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.c | 33

[Intel-gfx] [PATCH 15/26] drm/i915/slpc: Notification of Refresh Rate change

2016-03-08 Thread tom . orourke
From: Sagar Arun Kamble This patch will inform GuC SLPC about changes in the refresh rate due to Seamless DRRS. Refresh rate changes due to Static DRRS will be notified via commit path. v2: Rebased on previous changed patch and printed error message if H2G action

[Intel-gfx] [PATCH 04/26] drm/i915/slpc: Add enable_slpc module parameter

2016-03-08 Thread tom . orourke
From: Tom O'Rourke i915.enable_slpc is used to override the default for slpc usage. The expected values are -1=auto, 0=disabled [default], 1=enabled. slpc_enable_sanitize() converts i915.enable_slpc to either 0 or 1. Interpretation of default value is based on

[Intel-gfx] [PATCH 01/26] drm/i915/slpc: Expose guc functions for use with SLPC

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Expose host2guc_action for use by SLPC in intel_slpc.c. Expose functions to allocate and release objects used by GuC to be used for SLPC shared memory object. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 03/26] drm/i915/slpc: Add slpc_version_check

2016-03-08 Thread tom . orourke
From: Tom O'Rourke The SLPC interface has changed and could continue to change. Only GuC versions known to be compatible are supported here. On Skylake, GuC firmware v6 is supported. Other platforms and versions can be added here later. This patch also adds has_slpc

[Intel-gfx] [PATCH 02/26] drm/i915/slpc: Add has_slpc capability flag

2016-03-08 Thread tom . orourke
From: Tom O'Rourke Add has_slpc capablity flag to indicate GuC firmware supports single loop power control (SLPC). SLPC is a replacement for some host-based power management features. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [PATCH 05/26] drm/i915/slpc: Use intel_slpc_* functions if supported

2016-03-08 Thread tom . orourke
From: Tom O'Rourke On platforms with SLPC support: call intel_slpc_*() functions from corresponding intel_*_gt_powersave() functions; and do not use rps functions. v2: return void instead of ignored error code (Paulo) enable/disable RC6 in SLPC flows (Sagar)

[Intel-gfx] [PATCH v2 00/26] Add support for GuC-based SLPC

2016-03-08 Thread tom . orourke
From: Tom O'Rourke SLPC (Single Loop Power Controller) is a replacement for some host-based power management features. The SLPC implemenation runs in firmware on GuC. This series has been tested with SKL guc firmware version 6.1 and BXT guc version 5.1. The graphics

[Intel-gfx] [RFC 20/22] drm/i915/slpc: Add slpc support for max/min freq

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Update sysfs and debugfs functions to set SLPC parameters when setting max/min frequency. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/i915_debugfs.c | 6 ++ drivers/gpu/drm/i915/i915_sysfs.c | 8 2

[Intel-gfx] [RFC 08/22] drm/i915/slpc: Allocate/Release/Initialize SLPC shared data

2016-01-20 Thread tom . orourke
From: Tom O'Rourke SLPC shared data is used to pass information to/from SLPC firmware. For Skylake, platform sku type and slice count are identified from device id and fuse values. Support for other platforms needs to be added. Signed-off-by: Tom O'Rourke

[Intel-gfx] [RFC 04/22] drm/i915/slpc: Use intel_slpc_* functions if supported

2016-01-20 Thread tom . orourke
From: Tom O'Rourke On platforms with SLPC support: call intel_slpc_*() functions from corresponding intel_*_gt_powersave() functions; and do not use rps functions. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/Makefile | 5 +--

[Intel-gfx] [RFC 14/22] drm/i915/slpc: Notification of Display mode change

2016-01-20 Thread tom . orourke
From: Sagar Arun Kamble GuC SLPC need to be sent data related to Active pipes, refresh rates, widi pipes, fullscreen pipes related via host to GuC display mode change event. This patch defines the event and implements trigger of the event. Signed-off-by: Sagar Arun

[Intel-gfx] [RFC 12/22] drm/i915/slpc: Send shutdown event

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Send SLPC shutdown event during disable, suspend, and reset operations. Sending shutdown event while already shutdown is OK. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.c | 45

[Intel-gfx] [RFC 21/22] drm/i915/slpc: Add enable/disable debugfs for slpc

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Adds debugfs hooks for each slpc task. The enable/disable debugfs files are i915_slpc_dfps, i915_slpc_turbo, and i915_slpc_dcc. Each of these can take the values: "default", "enabled", or "disabled" Signed-off-by: Tom O'Rourke

[Intel-gfx] [RFC 07/22] drm/i915/slpc: Enable SLPC in guc if supported

2016-01-20 Thread tom . orourke
From: Tom O'Rourke If HAS_SLPC, then add enable SLPC flag to guc control parameter during guc load. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_guc_loader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[Intel-gfx] [RFC 15/22] drm/i915/slpc: Notification of Refresh Rate change

2016-01-20 Thread tom . orourke
From: Sagar Arun Kamble This patch will inform GuC SLPC about changes in the refresh rate due to Seamless DRRS. Refresh rate changes due to Static DRRS will be notified via commit path. Signed-off-by: Sagar Arun Kamble Acked-by: Tom O'Rourke

[Intel-gfx] [RFC 19/22] drm/i915/slpc: Add parameter unset/set/get functions

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Add slcp_param_id enum values. Add events for setting/unsetting parameters. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.c | 127 ++ drivers/gpu/drm/i915/intel_slpc.h |

[Intel-gfx] [RFC 06/22] drm/i915/slpc: If using SLPC, do not set frequency

2016-01-20 Thread tom . orourke
From: Tom O'Rourke When frequency requests are made by SLPC, host driver should not attempt to make frequency requests due to potential conflicts. Host-based turbo operations are already avoided when SLPC is used. This change covers other frequency requests such as from

[Intel-gfx] [RFC 05/22] drm/i915/slpc: Enable/Disable RC6 in SLPC flows

2016-01-20 Thread tom . orourke
From: Sagar Arun Kamble Signed-off-by: Sagar Arun Kamble Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_pm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_pm.c

[Intel-gfx] [RFC 11/22] drm/i915/slpc: Send reset event

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Add host2guc SLPC reset event and send reset event during enable. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.c | 30 +- drivers/gpu/drm/i915/intel_slpc.h | 14 ++ 2

[Intel-gfx] [RFC 09/22] drm/i915/slpc: Setup rps frequency values during SLPC init

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 2 +- drivers/gpu/drm/i915/intel_slpc.c | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git

[Intel-gfx] [RFC 01/22] drm/i915: Enable GuC submission, where supported

2016-01-20 Thread tom . orourke
From: Dave Gordon Signed-off-by: Dave Gordon v5: Rebased Signed-off-by: Dave Gordon --- drivers/gpu/drm/i915/i915_params.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] [RFC 18/22] drm/i915/slpc: Add dfps task info to i915_slpc_info

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/i915_debugfs.c | 12 drivers/gpu/drm/i915/intel_slpc.c | 31 +++ drivers/gpu/drm/i915/intel_slpc.h | 1 + 3 files changed, 44

[Intel-gfx] [RFC 17/22] drm/i915/slpc: Add i915_slpc_info to debugfs

2016-01-20 Thread tom . orourke
From: Tom O'Rourke i915_slpc_info shows the contents of SLPC shared data parsed into text format. Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/i915_debugfs.c | 161 1 file changed, 161 insertions(+)

[Intel-gfx] [RFC 10/22] drm/i915/slpc: Update current requested frequency

2016-01-20 Thread tom . orourke
From: Tom O'Rourke When SLPC is controlling requested frequency, the rps.cur_freq value is not used to make the frequency request. Before using rps.cur_freq in sysfs or debugfs, read requested frequency from register to get the value most recently requested by SLPC

[Intel-gfx] [RFC 03/22] drm/i915/slpc: Expose guc functions for use with SLPC

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Expose host2guc_action for use by SLPC in intel_slpc.c. Expose functions to allocate and release objects used by GuC to be used for SLPC shared memory object. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [RFC 16/22] drm/i915/slpc: Add slpc_status enum values

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_slpc.h b/drivers/gpu/drm/i915/intel_slpc.h index

[Intel-gfx] [RFC 13/22] drm/i915/slpc: Add Display mode event related data structures

2016-01-20 Thread tom . orourke
From: Sagar Arun Kamble Signed-off-by: Sagar Arun Kamble Acked-by: Tom O'Rourke --- drivers/gpu/drm/i915/intel_slpc.h | 38 ++ 1 file changed, 38 insertions(+) diff --git

[Intel-gfx] [RFC 02/22] drm/i915/slpc: Add has_slpc capability flag

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Add has_slpc capablity flag to indicate GuC firmware supports single loop power control (SLPC). SLPC is a replacement for some host-based power management features. Signed-off-by: Tom O'Rourke ---

[Intel-gfx] [RFC 00/22] Add support for GuC-based SLPC

2016-01-20 Thread tom . orourke
From: Tom O'Rourke SLPC (Single Loop Power Controller) is a replacement for some host-based power management features. The SLPC implemenation runs in firmware on GuC. This series is a first request for comments. This series is not expected to be merged. After changes

[Intel-gfx] [RFC 22/22] drm/i915/slpc: Add has_slpc to skylake info

2016-01-20 Thread tom . orourke
From: Tom O'Rourke Signed-off-by: Tom O'Rourke --- drivers/gpu/drm/i915/i915_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 975af35..9e37a98 100644 ---

  1   2   >