public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Harshdeep Dhatt <harshdeepdhatt@gmail.com>,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
	Ashutosh Dixit <ashutosh.dixit@intel.com>,
	Simona Vetter <simona.vetter@ffwll.ch>
Cc: rob.clark@oss.qualcomm.com, igt-dev@lists.freedesktop.org,
	lumag@kernel.org, Harshdeep Dhatt <harshdeepdhatt@gmail.com>,
Subject: Re: [PATCH i-g-t] lib/igt_kms: Identify writeback connectors in msm driver on android
Date: Wed, 08 Apr 2026 20:21:44 +0300	[thread overview]
Message-ID: <910f940a2aa6ba76976e9b8d1eb4c7171c3a1a05@intel.com> (raw)
In-Reply-To: <20260408162505.2131099-1-harshdeepdhatt@gmail.com>

On Wed, 08 Apr 2026, Harshdeep Dhatt <harshdeepdhatt@gmail.com> wrote:
> Thanks for the feedback.
>
> Yes, this quirk is specifically for the downstream MSM DRM driver used on
> Android devices. The upstream MSM driver does not need this, and the intent
> is not to modify or affect upstream MSM behavior in any way.
>
> The goal here is to allow IGT to run on Qualcomm-based Android platforms,
> which currently expose writeback connectors differently (as VIRTUAL
> connectors with a custom "FB_ID" property). Without assigning a writeback
> FB, the driver rejects the atomic commit, causing several IGT tests to fail
> early.
>
> All of the logic in this patch is fully isolated behind detection of the
> downstream Android MSM driver (`"msm_drm"`). Upstream MSM continues to use
> the existing code paths unchanged.
>
> IGT’s documentation states that it aims to be a universal test suite for
> DRM/KMS drivers on Linux *and similar platforms*. Supporting the downstream
> MSM driver helps extend IGT coverage to a widely deployed class of devices
> without impacting upstream users.
>
> If it would be preferable, I can restructure this into a dedicated
> “msm-android quirk” helper or move the detection/handling into a separate
> file so that the core paths remain untouched. 
>
> This keeps all non-upstream behavior contained in one place, avoids
> polluting the main code paths, and provides a maintainable structure for
> any future quirks that may be needed for other platforms. Upstream MSM
> remains unaffected, and the quirk only activates when running on the
> downstream Android MSM driver.
>
> I’m happy to adjust the approach based on your guidance.

Cc'd some more folks.

As a contributor, I'm not very fond of the idea of tiptoeing around code
in IGT that caters for some downstream vendor kernels. I'm not going to
go hunting for those sources. Hardly anyone will.

I'm not an IGT maintainer. I'm not making decisions on what is, and is
not, acceptable new maintenance burden to take on.

But the maintainers do have a decision to make. The options are to
support either 0 or N downstream kernels. If you take one, you can't
reasonably refuse anything after that. Even if the patch at hand is
benign, the precedent it sets is emphatically not.


BR,
Jani.


-- 
Jani Nikula, Intel

  parent reply	other threads:[~2026-04-08 17:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-07 20:29 [PATCH i-g-t] lib/igt_kms: Identify writeback connectors in msm driver on android Harshdeep Dhatt
2026-04-08  9:17 ` Jani Nikula
2026-04-08 14:43   ` Rob Clark
2026-04-08 15:29     ` Jani Nikula
     [not found]       ` <20260408162505.2131099-1-harshdeepdhatt@gmail.com>
2026-04-08 17:21         ` Jani Nikula [this message]
2026-04-08 17:46           ` Rob Clark
2026-04-10 11:56           ` Kamil Konieczny
2026-04-09 17:50 ` ✗ LGCI.VerificationFailed: failure for " 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=910f940a2aa6ba76976e9b8d1eb4c7171c3a1a05@intel.com \
    --to=jani.nikula@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=harshdeepdhatt@gmail.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=juhapekka.heikkila@gmail.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=lumag@kernel.org \
    --cc=rob.clark@oss.qualcomm.com \
    --cc=simona.vetter@ffwll.ch \
    /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