From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: intel-gfx@lists.freedesktop.org, kunal1.joshi@intel.com
Subject: Re: [PATCH] drm/i915/display_debugfs: Remove check for crtc in force bigjoiner
Date: Thu, 28 Mar 2024 19:28:22 +0200 [thread overview]
Message-ID: <ZgWotuBs3a4EG8R9@intel.com> (raw)
In-Reply-To: <20240328141421.609982-1-ankit.k.nautiyal@intel.com>
On Thu, Mar 28, 2024 at 07:44:21PM +0530, Ankit Nautiyal wrote:
> At the moment, we allow force joiner debugs to work only for connector
> with status connected and a crtc attached to it.
> This creates a problem when we force bigjoiner and then pipe gets reset
> before the force bigjoiner is disabled.
> Relax the condition to check for crtc while exposing the debugfs.
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> index b99c024b0934..94bc9e0d30fe 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> @@ -1405,10 +1405,8 @@ out: drm_modeset_unlock(&i915->drm.mode_config.connection_mutex);
> static int i915_bigjoiner_enable_show(struct seq_file *m, void *data)
> {
> struct intel_connector *connector = m->private;
> - struct drm_crtc *crtc;
>
> - crtc = connector->base.state->crtc;
> - if (connector->base.status != connector_status_connected || !crtc)
> + if (connector->base.status != connector_status_connected)
Just remove all of it. It serves no purpose.
> return -ENODEV;
>
> seq_printf(m, "Bigjoiner enable: %d\n", connector->force_bigjoiner_enable);
> @@ -1443,12 +1441,10 @@ static ssize_t i915_bigjoiner_enable_write(struct file *file,
> {
> struct seq_file *m = file->private_data;
> struct intel_connector *connector = m->private;
> - struct drm_crtc *crtc;
> bool bigjoiner_en = 0;
> int ret;
>
> - crtc = connector->base.state->crtc;
> - if (connector->base.status != connector_status_connected || !crtc)
> + if (connector->base.status != connector_status_connected)
> return -ENODEV;
>
> ret = kstrtobool_from_user(ubuf, len, &bigjoiner_en);
> --
> 2.40.1
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2024-03-28 17:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 14:14 [PATCH] drm/i915/display_debugfs: Remove check for crtc in force bigjoiner Ankit Nautiyal
2024-03-28 14:37 ` Joshi, Kunal1
2024-03-28 17:28 ` Ville Syrjälä [this message]
2024-03-29 3:12 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-03-29 22:45 ` ✓ Fi.CI.IGT: " 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=ZgWotuBs3a4EG8R9@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=kunal1.joshi@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