diff options
author | Imre Deak <imre.deak@intel.com> | 2017-07-12 18:54:13 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-07-27 09:38:53 +0200 |
commit | 001bd2cb17f7df768fb3a5c1e7c3d2cd2cfb3439 (patch) | |
tree | b636e86661eae841800d0d4812b8e109068784f5 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 1af474fef2697a1ab7e497627bddf026a3e767ac (diff) | |
download | lwn-001bd2cb17f7df768fb3a5c1e7c3d2cd2cfb3439.tar.gz lwn-001bd2cb17f7df768fb3a5c1e7c3d2cd2cfb3439.zip |
drm/i915/hsw, bdw: Add irq_pipe_mask, has_vga power well attributes
The pattern of a power well backing a set of pipe IRQ or VGA
functionality applies to all HSW+ platforms. Using power well attributes
instead of platform checks to decide whether to init/reset pipe IRQs and
VGA correspondingly is cleaner and it allows us to unify the HSW/BDW and
GEN9+ power well code in follow-up patches.
Also use u8 for pipe_mask in related helpers to match the type in the
power well struct.
v2:
- Use u8 instead of u32 for irq_pipe_mask. (Ville)
v3:
- Use u8 for pipe_mask in related helpers too for clarity.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170712155413.29839-1-imre.deak@intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index eaedca57be38..1a43adb22162 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -1392,6 +1392,12 @@ struct i915_power_well { struct { enum dpio_phy phy; } bxt; + struct { + /* Mask of pipes whose IRQ logic is backed by the pw */ + u8 irq_pipe_mask; + /* The pw is backing the VGA functionality */ + bool has_vga:1; + } hsw; }; const struct i915_power_well_ops *ops; }; |