OSDN Git Service

drm/i915: add display engine uncore helpers
authorJani Nikula <jani.nikula@intel.com>
Tue, 21 Jan 2020 11:39:15 +0000 (13:39 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 23 Jan 2020 09:07:00 +0000 (11:07 +0200)
commit9c757aeaaaa18d36eba5a464109690e8f7990a40
tree1c7c757933bd6a692d25b8607ce561c2e087bab5
parent6fef8510a7a51227620de74cc495916e6ba54773
drm/i915: add display engine uncore helpers

Add convenience helpers for the most common uncore operations with
struct drm_i915_private * as context rather than struct intel_uncore *.

The goal is to replace all instances of I915_READ(),
I915_POSTING_READ(), I915_WRITE(), I915_READ_FW(), and I915_WRITE_FW()
in display/ with these, to finally be able to get rid of the implicit
dev_priv local parameter use.

The idea is that any non-u32 reads or writes are special enough that
they can use the intel_uncore_* functions directly.

v2:
- rename the file intel_de.h
- move intel_de_wait_for_* there too
- also add de fw helpers

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200121113915.9813-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_de.h [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/i915_drv.h