From: Gustavo Sousa <gustavo.sousa@intel.com>
To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
"Jani Nikula" <jani.nikula@intel.com>
Subject: [PATCH 0/3] drm/i915/display: Reduce global state funcs boilerplate
Date: Thu, 19 Dec 2024 18:48:35 -0300 [thread overview]
Message-ID: <20241219214909.104869-1-gustavo.sousa@intel.com> (raw)
If we look at how the members of struct intel_global_state_funcs, we see
a common pattern repeating itself. We can reduce such boilerplate by
moving the common implementation to the generic global state code. This
series proposes that.
Gustavo Sousa (3):
drm/i915/display: Do not assume zero offset when duplicating global
state
drm/i915/display: Add infra to reduce global state funcs boilerplate
drm/i915/display: Use INTEL_GLOBAL_STATE_DEFAULTS
drivers/gpu/drm/i915/display/intel_bw.c | 21 +---------
drivers/gpu/drm/i915/display/intel_cdclk.c | 16 +++-----
.../gpu/drm/i915/display/intel_global_state.c | 41 ++++++++++++++++++-
.../gpu/drm/i915/display/intel_global_state.h | 15 +++++++
drivers/gpu/drm/i915/display/intel_pmdemand.c | 21 +---------
drivers/gpu/drm/i915/display/skl_watermark.c | 20 +--------
6 files changed, 63 insertions(+), 71 deletions(-)
--
2.47.1
next reply other threads:[~2024-12-19 21:49 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 21:48 Gustavo Sousa [this message]
2024-12-19 21:48 ` [PATCH 1/3] drm/i915/display: Do not assume zero offset when duplicating global state Gustavo Sousa
2024-12-19 22:43 ` Cavitt, Jonathan
2024-12-20 9:11 ` Ville Syrjälä
2024-12-20 13:37 ` Gustavo Sousa
2024-12-19 21:48 ` [PATCH 2/3] drm/i915/display: Add infra to reduce global state funcs boilerplate Gustavo Sousa
2024-12-19 22:44 ` Cavitt, Jonathan
2024-12-20 13:43 ` Gustavo Sousa
2024-12-20 8:50 ` Jani Nikula
2024-12-20 13:54 ` Gustavo Sousa
2024-12-20 8:51 ` Jani Nikula
2024-12-20 13:56 ` Gustavo Sousa
2024-12-20 9:23 ` Ville Syrjälä
2024-12-20 14:02 ` Gustavo Sousa
2024-12-19 21:48 ` [PATCH 3/3] drm/i915/display: Use INTEL_GLOBAL_STATE_DEFAULTS Gustavo Sousa
2024-12-19 22:45 ` Cavitt, Jonathan
2024-12-20 14:08 ` Gustavo Sousa
2024-12-19 22:51 ` ✓ CI.Patch_applied: success for drm/i915/display: Reduce global state funcs boilerplate Patchwork
2024-12-19 22:51 ` ✗ CI.checkpatch: warning " Patchwork
2024-12-19 22:53 ` ✓ CI.KUnit: success " Patchwork
2024-12-19 23:13 ` ✓ CI.Build: " Patchwork
2024-12-19 23:15 ` ✓ CI.Hooks: " Patchwork
2024-12-19 23:17 ` ✗ CI.checksparse: warning " Patchwork
2024-12-19 23:52 ` ✓ Xe.CI.BAT: success " Patchwork
2024-12-20 22:48 ` ✗ Xe.CI.Full: 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=20241219214909.104869-1-gustavo.sousa@intel.com \
--to=gustavo.sousa@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox