[Intel-gfx] [PATCH 28/39] drm/i915: move and group power related members under display.power

Lucas De Marchi lucas.demarchi at intel.com
Wed Aug 17 04:41:55 UTC 2022


On Thu, Aug 11, 2022 at 06:07:39PM +0300, Jani Nikula wrote:
>Move display related members under drm_i915_private display sub-struct.
>
>Arguably chv_phy_control and chv_phy_assert could be placed in a phy
>substruct, but they are only used in the power code.
>
>Signed-off-by: Jani Nikula <jani.nikula at intel.com>
>---
> .../gpu/drm/i915/display/intel_display_core.h |  11 ++
> .../drm/i915/display/intel_display_power.c    | 112 +++++++++---------
> .../i915/display/intel_display_power_map.c    |   4 +-
> .../i915/display/intel_display_power_well.c   |  56 ++++-----
> .../i915/display/intel_display_power_well.h   |  12 +-
> drivers/gpu/drm/i915/display/intel_dpio_phy.c |   2 +-
> drivers/gpu/drm/i915/i915_debugfs.c           |   2 +-
> drivers/gpu/drm/i915/i915_drv.h               |  20 +---
> 8 files changed, 110 insertions(+), 109 deletions(-)
>
>diff --git a/drivers/gpu/drm/i915/display/intel_display_core.h b/drivers/gpu/drm/i915/display/intel_display_core.h
>index 066e7ee0b8df..19abdd05d413 100644
>--- a/drivers/gpu/drm/i915/display/intel_display_core.h
>+++ b/drivers/gpu/drm/i915/display/intel_display_core.h
>@@ -16,6 +16,7 @@
>
> #include "intel_cdclk.h"
> #include "intel_display.h"
>+#include "intel_display_power.h"
> #include "intel_dmc.h"
> #include "intel_dpll_mgr.h"
> #include "intel_fbc.h"
>@@ -326,6 +327,16 @@ struct intel_display {
> 		struct mutex comp_mutex;
> 	} hdcp;
>
>+	struct {
>+		struct i915_power_domains domains;

rename the struct to display_power_domains?



Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

for all patches til this, expect patch 5

Lucas De Marchi


More information about the Intel-gfx mailing list