All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: "Souza, Jose" <jose.souza@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "jani.nikula@linux.intel.com" <jani.nikula@linux.intel.com>
Subject: Re: [PATCH] drm/i915/display: Disable AuxCCS framebuffers if built for Xe
Date: Mon, 5 Feb 2024 12:00:15 +0200	[thread overview]
Message-ID: <620670df-2f56-416f-9197-798e99d595cb@gmail.com> (raw)
In-Reply-To: <17a867f9176dac4c29cbc4c78785884fed5199ac.camel@intel.com>

On 2.2.2024 22.51, Souza, Jose wrote:
> On Thu, 2024-01-25 at 08:07 -0800, José Roberto de Souza wrote:
>> On Thu, 2024-01-25 at 17:56 +0200, Juha-Pekka Heikkila wrote:
>>> On 25.1.2024 17.28, Souza, Jose wrote:
>>>> On Thu, 2024-01-25 at 17:25 +0200, Juha-Pekka Heikkila wrote:
>>>>> AuxCCS framebuffers don't work on Xe driver hence disable them
>>>>> from plane capabilities until they are fixed. FlatCCS framebuffers
>>>>> work and they are left enabled. CCS is left untouched for i915
>>>>> deriver.
>>>>>
>>>>> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/933
>>>>> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
>>>>> ---
>>>>>    drivers/gpu/drm/i915/display/skl_universal_plane.c | 8 ++++++++
>>>>>    1 file changed, 8 insertions(+)
>>>>>
>>>>> diff --git a/drivers/gpu/drm/i915/display/skl_universal_plane.c b/drivers/gpu/drm/i915/display/skl_universal_plane.c
>>>>> index 511dc1544854..1521d829525a 100644
>>>>> --- a/drivers/gpu/drm/i915/display/skl_universal_plane.c
>>>>> +++ b/drivers/gpu/drm/i915/display/skl_universal_plane.c
>>>>> @@ -2290,6 +2290,14 @@ static u8 skl_get_plane_caps(struct drm_i915_private *i915,
>>>>>    	if (HAS_4TILE(i915))
>>>>>    		caps |= INTEL_PLANE_CAP_TILING_4;
>>>>>    
>>>>> +	/*
>>>>> +	 * FIXME: Below if(IS_ENABLED(CONFIG_I915)..) is because Xe driver
>>>>> +	 * can't use AuxCCS framebuffers. Once they are fixed this need to be
>>>>> +	 * removed.
>>>>> +	 */
>>>>> +	if (!IS_ENABLED(CONFIG_I915) && !HAS_FLAT_CCS(i915))
>>>>> +		return caps;
>>>>> +
>>>>
>>>> functional but looks odd.
>>>> would rather add a check inside of gen12_plane_has_mc_ccs() or 'if ((!IS_ENABLED(CONFIG_I915) && !HAS_FLAT_CCS(i915)) && gen12_plane_has_mc_ccs(i915,
>>>> plane_id))'
>>>
>>> Hi Jose,
>>>
>>> not sure I understood your idea. Here need to be disabled all versions
>>> of aux ccs for Xe, not just mc ccs.
>>
>> ah misplace this this...please ignore.
>>
>> this is fine for something that will be fixed soon.
>>
>> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
> 
> ping!
> something is holding from being merged?

Patch results showed things didn't go as Jani had suggested. This would 
just break ccs for i915. I'll need to rewrite my original patch 
splitting it into smaller parts and see if I can take into account 
Ville's comment there.

/Juha-Pekka


  reply	other threads:[~2024-02-05 10:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25 15:25 [PATCH] drm/i915/display: Disable AuxCCS framebuffers if built for Xe Juha-Pekka Heikkila
2024-01-25 15:28 ` Souza, Jose
2024-01-25 15:56   ` Juha-Pekka Heikkila
2024-01-25 16:07     ` Souza, Jose
2024-02-02 20:51       ` Souza, Jose
2024-02-05 10:00         ` Juha-Pekka Heikkila [this message]
2024-01-25 16:00 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-01-25 17:23 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-02-26 20:36 [PATCH] " Juha-Pekka Heikkila
2024-02-27  8:57 ` Jani Nikula
2024-02-28 14:02 Juha-Pekka Heikkila
2024-02-28 14:04 ` Souza, Jose
2024-02-29 16:44   ` Souza, Jose
2024-02-29 17:36     ` Souza, Jose
2024-03-05 16:44 ` Jani Nikula
2024-03-06 13:57 ` Souza, Jose

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=620670df-2f56-416f-9197-798e99d595cb@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=jose.souza@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.