From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: "Zanoni, Paulo R" <paulo.r.zanoni@intel.com>,
"maarten.lankhorst@linux.intel.com"
<maarten.lankhorst@linux.intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH 0/2] drm/i915: Remove frontbuffer tracking from gem.
Date: Fri, 2 Dec 2022 09:17:33 +0000 [thread overview]
Message-ID: <a6cdde0b-47a1-967d-f2c4-9299618cb1fb@linux.intel.com> (raw)
In-Reply-To: <3ec4e382c67ff7d8a1eb05e27b0fbf5fd1e272c6.camel@intel.com>
On 01/12/2022 22:03, Zanoni, Paulo R wrote:
> Hi
>
> I was given a link to https://patchwork.freedesktop.org/series/111494/
> but can't seem to find it on the mailing list, so I'll reply here.
>
> On Thu, 2022-08-25 at 08:46 +0200, Maarten Lankhorst wrote:
>> Frontbuffer tracking in gem is used in old drivers, but nowadays everyone
>> calls dirtyfb explicitly. Remove frontbuffer tracking from gem, and
>> isolate it to display only.
>
> Ok, but then how can the Kernel know if the user space running is an
> "old driver" or a new one? Assuming everybody is following the new
> policy is at least risky.
>
> (crazy idea: have an ioctl for user space to tell whether it knows how
> to DirtyFB and another where it can even say it will never be touching
> frontbuffers at all)
>
> Also, when I wrote igt/kms_frontbuffer_tracking, it was agreed that
> whatever was there was a representation of the "rules" of the
> frontbfuffer writing contract/API. And I see on the link above that the
> basic tests of kms_frontbuffer_tracking fail. If
> kms_frontbuffer_tracking requires change due to i915.ko having changed
> the frontbuffer writing rules, then we should do it, and possibly have
> those rules written somewhere.
>
> But then, having the Kernel change expectations like that is not
> exactly what I learned we should be doing, because it's the recipe to
> break user space.
>
> I'm confused, please clarify us a little more. More sentences in the
> commit messages would be absolutely great.
Right, +1 - we need to be sure there aren't some binaries, running in a
distro somewhere, or whatever, which rely on this and then we are not
allowed to break them. As minimum at least we need an audit and versions
to know how old libraries/programs we are talking about here ie. when
did everyone stop relying on implicit tracking.
Regards,
Tvrtko
next prev parent reply other threads:[~2022-12-02 9:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 6:46 [Intel-gfx] [PATCH 0/2] drm/i915: Remove frontbuffer tracking from gem Maarten Lankhorst
2022-08-25 6:47 ` [Intel-gfx] [PATCH 1/2] drm/i915: Remove gem and overlay frontbuffer tracking Maarten Lankhorst
2022-08-25 6:47 ` [Intel-gfx] [PATCH 2/2] drm/i915: Remove special frontbuffer type Maarten Lankhorst
2022-08-25 6:53 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Remove frontbuffer tracking from gem Patchwork
2022-12-01 22:03 ` [Intel-gfx] [PATCH 0/2] " Zanoni, Paulo R
2022-12-02 9:17 ` Tvrtko Ursulin [this message]
2022-12-23 15:12 ` Rodrigo Vivi
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=a6cdde0b-47a1-967d-f2c4-9299618cb1fb@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=paulo.r.zanoni@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