All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: jani.nikula@intel.com, ville.syrjala@linux.intel.com
Subject: [PATCH 0/6] drm/i915: refactor VLV IOSF SB for display usage
Date: Fri, 25 Apr 2025 16:19:18 +0300	[thread overview]
Message-ID: <cover.1745587049.git.jani.nikula@intel.com> (raw)

In short, add and use generic (not unit specific) read/write/get/put for
i915 core, move the unit specific helpers to display, and convert all of
them to use drm_display instead of drm_i915_private. This reduces the
display<->i915 interface to just a handful of functions, while keeping
the simple helpers in display where they are most commonly used.


Jani Nikula (6):
  drm/i915: rename vlv_sideband*.[ch] to vlv_iosf_sb*.[ch]
  drm/i915: add generic read/write functions for VLV IOSF SB
  drm/i915: rewrite VLV IOSF SB unit specific read/write functions
  drm/i915: switch i915 core to generic VLV IOSF SB functions
  drm/i915: move VLV IOSF SB unit specific helpers under display
  drm/i915: convert VLV IOSF SB interface to struct drm_device

 drivers/gpu/drm/i915/Makefile                 |   5 +-
 drivers/gpu/drm/i915/display/i9xx_wm.c        |  35 ++-
 drivers/gpu/drm/i915/display/intel_cdclk.c    |  47 ++---
 drivers/gpu/drm/i915/display/intel_display.c  |  23 +-
 drivers/gpu/drm/i915/display/intel_display.h  |   7 +-
 .../drm/i915/display/intel_display_power.c    |   7 +-
 .../i915/display/intel_display_power_map.c    |   2 +-
 .../i915/display/intel_display_power_well.c   |  71 +++----
 drivers/gpu/drm/i915/display/intel_dpio_phy.c | 199 +++++++++---------
 drivers/gpu/drm/i915/display/intel_dpll.c     | 135 ++++++------
 drivers/gpu/drm/i915/display/vlv_dsi.c        |  26 ++-
 drivers/gpu/drm/i915/display/vlv_dsi_pll.c    |  46 ++--
 drivers/gpu/drm/i915/display/vlv_sideband.c   |  50 +++++
 drivers/gpu/drm/i915/display/vlv_sideband.h   | 156 ++++++++++++++
 drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c |   8 +-
 drivers/gpu/drm/i915/gt/intel_rps.c           |  58 ++---
 drivers/gpu/drm/i915/i915_driver.c            |   2 +-
 drivers/gpu/drm/i915/intel_clock_gating.c     |   2 +-
 drivers/gpu/drm/i915/soc/intel_dram.c         |  14 +-
 .../i915/{vlv_sideband.c => vlv_iosf_sb.c}    | 166 ++++++---------
 drivers/gpu/drm/i915/vlv_iosf_sb.h            |  37 ++++
 .../{vlv_sideband_reg.h => vlv_iosf_sb_reg.h} |   6 +-
 drivers/gpu/drm/i915/vlv_sideband.h           | 125 -----------
 .../drm/xe/compat-i915-headers/vlv_iosf_sb.h  |  42 ++++
 .../{vlv_sideband_reg.h => vlv_iosf_sb_reg.h} |   2 +-
 .../drm/xe/compat-i915-headers/vlv_sideband.h | 132 ------------
 26 files changed, 678 insertions(+), 725 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/display/vlv_sideband.c
 create mode 100644 drivers/gpu/drm/i915/display/vlv_sideband.h
 rename drivers/gpu/drm/i915/{vlv_sideband.c => vlv_iosf_sb.c} (56%)
 create mode 100644 drivers/gpu/drm/i915/vlv_iosf_sb.h
 rename drivers/gpu/drm/i915/{vlv_sideband_reg.h => vlv_iosf_sb_reg.h} (98%)
 delete mode 100644 drivers/gpu/drm/i915/vlv_sideband.h
 create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/vlv_iosf_sb.h
 rename drivers/gpu/drm/xe/compat-i915-headers/{vlv_sideband_reg.h => vlv_iosf_sb_reg.h} (66%)
 delete mode 100644 drivers/gpu/drm/xe/compat-i915-headers/vlv_sideband.h

-- 
2.39.5


             reply	other threads:[~2025-04-25 13:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-25 13:19 Jani Nikula [this message]
2025-04-25 13:19 ` [PATCH 1/6] drm/i915: rename vlv_sideband*.[ch] to vlv_iosf_sb*.[ch] Jani Nikula
2025-04-25 13:19 ` [PATCH 2/6] drm/i915: add generic read/write functions for VLV IOSF SB Jani Nikula
2025-04-25 13:19 ` [PATCH 3/6] drm/i915: rewrite VLV IOSF SB unit specific read/write functions Jani Nikula
2025-04-25 13:19 ` [PATCH 4/6] drm/i915: switch i915 core to generic VLV IOSF SB functions Jani Nikula
2025-05-08 10:05   ` Jani Nikula
2025-04-25 13:19 ` [PATCH 5/6] drm/i915: move VLV IOSF SB unit specific helpers under display Jani Nikula
2025-04-25 13:19 ` [PATCH 6/6] drm/i915: convert VLV IOSF SB interface to struct drm_device Jani Nikula
2025-04-25 13:25 ` ✓ CI.Patch_applied: success for drm/i915: refactor VLV IOSF SB for display usage Patchwork
2025-04-25 13:26 ` ✗ CI.checkpatch: warning " Patchwork
2025-04-25 13:27 ` ✓ CI.KUnit: success " Patchwork
2025-04-25 13:35 ` ✓ CI.Build: " Patchwork
2025-04-25 13:38 ` ✓ CI.Hooks: " Patchwork
2025-04-25 13:39 ` ✓ CI.checksparse: " Patchwork
2025-04-25 14:08 ` ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2025-04-25 14:08 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-04-25 19:38 ` ✗ i915.CI.BAT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1745587049.git.jani.nikula@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.