]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/wm: move remaining watermark code out of intel_pm.c
authorJani Nikula <jani.nikula@intel.com>
Mon, 13 Feb 2023 19:59:57 +0000 (21:59 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 15 Feb 2023 10:00:50 +0000 (12:00 +0200)
commit94b49d53acece870d242f6b148aff3940cb6c92e
tree123ee71ea365cbbf011edb0e539fff1fd40ca1ff
parent1b2146de7c5bcc25b75484c6ff1c94971c7696e8
drm/i915/wm: move remaining watermark code out of intel_pm.c

Add new files intel_wm.[ch] and i9xx_wm.[ch] under display/ to hold
generic and pre-SKL watermark code, respectively. SKL+ watermark code
has already been split out to skl_watermark.[ch].

Use the _wm.[ch] naming for brevity; we may want to rename
skl_watermark.[ch] later accordingly.

Add new intel_wm_init() to call either skl_wm_init() or
i9xx_wm_init(i915) depending on the platform, the latter comprising of
the remains of intel_init_pm().

Sprinkle in some minor checkpatch fixes while moving the code.

v2:
- Rebase
- Fix copyright year

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ddf04a07a37f0368b3fef85d4ebb924082fec6cd.1676317696.git.jani.nikula@intel.com
12 files changed:
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/i9xx_wm.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/i9xx_wm.h [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_modeset_setup.c
drivers/gpu/drm/i915/display/intel_wm.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_wm.h [new file with mode: 0644]
drivers/gpu/drm/i915/display/skl_watermark.c
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_pm.h