From: Suraj Kandpal <suraj.kandpal@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: chaitanya.kumar.borah@intel.com, uma.shankar@intel.com,
ankit.k.nautiyal@intel.com, arun.r.murthy@intel.com,
Suraj Kandpal <suraj.kandpal@intel.com>
Subject: [PATCH 1/7] drm/i915/dp: Make has_gamut_metadata_dip() non static
Date: Tue, 7 May 2024 09:34:01 +0530 [thread overview]
Message-ID: <20240507040407.1056061-2-suraj.kandpal@intel.com> (raw)
In-Reply-To: <20240507040407.1056061-1-suraj.kandpal@intel.com>
Make has_gamut_metadata_dip() non static so it can also be used to
at other places eg in intel_dp_aux_backlight. So that we can check
if HW is capable of sending SDP which helps us decide if we use
AUX based HDR control or via SDP.
--v2
-State reason the function is needed [Arun]
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 6 +++---
drivers/gpu/drm/i915/display/intel_dp.h | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 486361eb0070..6b8a94d0ca99 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -6364,8 +6364,8 @@ bool intel_dp_is_port_edp(struct drm_i915_private *i915, enum port port)
return _intel_dp_is_port_edp(i915, devdata, port);
}
-static bool
-has_gamut_metadata_dip(struct intel_encoder *encoder)
+bool
+intel_dp_has_gamut_metadata_dip(struct intel_encoder *encoder)
{
struct drm_i915_private *i915 = to_i915(encoder->base.dev);
enum port port = encoder->port;
@@ -6412,7 +6412,7 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connect
intel_attach_dp_colorspace_property(connector);
}
- if (has_gamut_metadata_dip(&dp_to_dig_port(intel_dp)->base))
+ if (intel_dp_has_gamut_metadata_dip(&dp_to_dig_port(intel_dp)->base))
drm_connector_attach_hdr_output_metadata_property(connector);
if (HAS_VRR(dev_priv))
diff --git a/drivers/gpu/drm/i915/display/intel_dp.h b/drivers/gpu/drm/i915/display/intel_dp.h
index 106ecfde36d9..aad2223df2a3 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.h
+++ b/drivers/gpu/drm/i915/display/intel_dp.h
@@ -196,5 +196,6 @@ intel_dp_compute_config_link_bpp_limits(struct intel_dp *intel_dp,
struct link_config_limits *limits);
void intel_dp_get_dsc_sink_cap(u8 dpcd_rev, struct intel_connector *connector);
+bool intel_dp_has_gamut_metadata_dip(struct intel_encoder *encoder);
#endif /* __INTEL_DP_H__ */
--
2.43.2
next prev parent reply other threads:[~2024-05-07 4:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 4:04 [PATCH 0/7] Enable Aux Based EDP HDR Suraj Kandpal
2024-05-07 4:04 ` Suraj Kandpal [this message]
2024-05-07 4:04 ` [PATCH 2/7] drm/i915/dp: Rename intel struct inside intel_panel Suraj Kandpal
2024-05-07 4:04 ` [PATCH 3/7] drm/i915/dp: Add TCON HDR capability checks Suraj Kandpal
2024-05-07 4:04 ` [PATCH 4/7] drm/i915/dp: Fix Register bit naming Suraj Kandpal
2024-05-07 4:04 ` [PATCH 5/7] drm/i915/dp: Drop comments on EDP HDR DPCD registers Suraj Kandpal
2024-05-07 4:04 ` [PATCH 6/7] drm/i915/dp: Enable AUX based backlight for HDR Suraj Kandpal
2024-05-07 4:04 ` [PATCH 7/7] drm/i915/dp: Write panel override luminance values Suraj Kandpal
2024-05-07 4:50 ` ✗ Fi.CI.SPARSE: warning for Enable Aux Based EDP HDR (rev5) Patchwork
2024-05-07 4:54 ` ✓ Fi.CI.BAT: success " Patchwork
2024-05-07 10:28 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-05-09 9:19 ` ✓ Fi.CI.IGT: success " Patchwork
2024-05-13 10:29 ` [PATCH 0/7] Enable Aux Based EDP HDR Shankar, Uma
-- strict thread matches above, loose matches on Subject: below --
2024-04-04 3:29 Suraj Kandpal
2024-04-04 3:29 ` [PATCH 1/7] drm/i915/dp: Make has_gamut_metadata_dip() non static Suraj Kandpal
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=20240507040407.1056061-2-suraj.kandpal@intel.com \
--to=suraj.kandpal@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=chaitanya.kumar.borah@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=uma.shankar@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