Message ID | 20210521230114.2563-4-anusha.srivatsa@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Pipe DMC Support | expand |
On Fri, May 21, 2021 at 04:01:10PM -0700, Anusha Srivatsa wrote: >Move struct intel_dmc from i915_drv.h to intel_dmc.h. > >v2: Add includes along with moving the struct. > >Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com> >--- > drivers/gpu/drm/i915/display/intel_dmc.h | 21 +++++++++++++++++++++ > drivers/gpu/drm/i915/i915_drv.h | 18 +----------------- > 2 files changed, 22 insertions(+), 17 deletions(-) > >diff --git a/drivers/gpu/drm/i915/display/intel_dmc.h b/drivers/gpu/drm/i915/display/intel_dmc.h >index 64816f4a71b6..8baeb85cf8db 100644 >--- a/drivers/gpu/drm/i915/display/intel_dmc.h >+++ b/drivers/gpu/drm/i915/display/intel_dmc.h >@@ -6,12 +6,33 @@ > #ifndef __INTEL_DMC_H__ > #define __INTEL_DMC_H__ > >+#include <drm/drm_util.h> I can't find what this is for in this patch. You actually need <linux/workqueue.h> other than that, Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Lucas De Marchi >+#include "intel_wakeref.h" >+#include "i915_reg.h" >+ > struct drm_i915_private; > > #define DMC_VERSION(major, minor) ((major) << 16 | (minor)) > #define DMC_VERSION_MAJOR(version) ((version) >> 16) > #define DMC_VERSION_MINOR(version) ((version) & 0xffff) > >+struct intel_dmc { >+ struct work_struct work; >+ const char *fw_path; >+ u32 required_version; >+ u32 max_fw_size; /* bytes */ >+ u32 *dmc_payload; >+ u32 dmc_fw_size; /* dwords */ >+ u32 version; >+ u32 mmio_count; >+ i915_reg_t mmioaddr[20]; >+ u32 mmiodata[20]; >+ u32 dc_state; >+ u32 target_dc_state; >+ u32 allowed_dc_mask; >+ intel_wakeref_t wakeref; >+}; >+ > void intel_dmc_ucode_init(struct drm_i915_private *i915); > void intel_dmc_load_program(struct drm_i915_private *i915); > void intel_dmc_ucode_fini(struct drm_i915_private *i915); >diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h >index 9cb02618ba15..b5962768a1f1 100644 >--- a/drivers/gpu/drm/i915/i915_drv.h >+++ b/drivers/gpu/drm/i915/i915_drv.h >@@ -67,6 +67,7 @@ > #include "display/intel_bios.h" > #include "display/intel_display.h" > #include "display/intel_display_power.h" >+#include "display/intel_dmc.h" > #include "display/intel_dpll_mgr.h" > #include "display/intel_dsb.h" > #include "display/intel_frontbuffer.h" >@@ -328,23 +329,6 @@ struct drm_i915_display_funcs { > void (*read_luts)(struct intel_crtc_state *crtc_state); > }; > >-struct intel_dmc { >- struct work_struct work; >- const char *fw_path; >- u32 required_version; >- u32 max_fw_size; /* bytes */ >- u32 *dmc_payload; >- u32 dmc_fw_size; /* dwords */ >- u32 version; >- u32 mmio_count; >- i915_reg_t mmioaddr[20]; >- u32 mmiodata[20]; >- u32 dc_state; >- u32 target_dc_state; >- u32 allowed_dc_mask; >- intel_wakeref_t wakeref; >-}; >- > enum i915_cache_level { > I915_CACHE_NONE = 0, > I915_CACHE_LLC, /* also used for snoopable memory on non-LLC */ >-- >2.25.0 > >_______________________________________________ >Intel-gfx mailing list >Intel-gfx@lists.freedesktop.org >https://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff --git a/drivers/gpu/drm/i915/display/intel_dmc.h b/drivers/gpu/drm/i915/display/intel_dmc.h index 64816f4a71b6..8baeb85cf8db 100644 --- a/drivers/gpu/drm/i915/display/intel_dmc.h +++ b/drivers/gpu/drm/i915/display/intel_dmc.h @@ -6,12 +6,33 @@ #ifndef __INTEL_DMC_H__ #define __INTEL_DMC_H__ +#include <drm/drm_util.h> +#include "intel_wakeref.h" +#include "i915_reg.h" + struct drm_i915_private; #define DMC_VERSION(major, minor) ((major) << 16 | (minor)) #define DMC_VERSION_MAJOR(version) ((version) >> 16) #define DMC_VERSION_MINOR(version) ((version) & 0xffff) +struct intel_dmc { + struct work_struct work; + const char *fw_path; + u32 required_version; + u32 max_fw_size; /* bytes */ + u32 *dmc_payload; + u32 dmc_fw_size; /* dwords */ + u32 version; + u32 mmio_count; + i915_reg_t mmioaddr[20]; + u32 mmiodata[20]; + u32 dc_state; + u32 target_dc_state; + u32 allowed_dc_mask; + intel_wakeref_t wakeref; +}; + void intel_dmc_ucode_init(struct drm_i915_private *i915); void intel_dmc_load_program(struct drm_i915_private *i915); void intel_dmc_ucode_fini(struct drm_i915_private *i915); diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 9cb02618ba15..b5962768a1f1 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -67,6 +67,7 @@ #include "display/intel_bios.h" #include "display/intel_display.h" #include "display/intel_display_power.h" +#include "display/intel_dmc.h" #include "display/intel_dpll_mgr.h" #include "display/intel_dsb.h" #include "display/intel_frontbuffer.h" @@ -328,23 +329,6 @@ struct drm_i915_display_funcs { void (*read_luts)(struct intel_crtc_state *crtc_state); }; -struct intel_dmc { - struct work_struct work; - const char *fw_path; - u32 required_version; - u32 max_fw_size; /* bytes */ - u32 *dmc_payload; - u32 dmc_fw_size; /* dwords */ - u32 version; - u32 mmio_count; - i915_reg_t mmioaddr[20]; - u32 mmiodata[20]; - u32 dc_state; - u32 target_dc_state; - u32 allowed_dc_mask; - intel_wakeref_t wakeref; -}; - enum i915_cache_level { I915_CACHE_NONE = 0, I915_CACHE_LLC, /* also used for snoopable memory on non-LLC */
Move struct intel_dmc from i915_drv.h to intel_dmc.h. v2: Add includes along with moving the struct. Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com> --- drivers/gpu/drm/i915/display/intel_dmc.h | 21 +++++++++++++++++++++ drivers/gpu/drm/i915/i915_drv.h | 18 +----------------- 2 files changed, 22 insertions(+), 17 deletions(-)