<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="auto">
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">Am 03.07.2019 17:14 schrieb Emil Velikov <emil.l.velikov@gmail.com>:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:11pt">
<div>On Wed, 3 Jul 2019 at 15:58, Koenig, Christian <Christian.Koenig@amd.com> wrote:<br>
> Am 03.07.2019 16:51 schrieb Emil Velikov <emil.l.velikov@gmail.com>:<br>
><br>
> On Wed, 3 Jul 2019 at 15:33, Koenig, Christian <Christian.Koenig@amd.com> wrote:<br>
> > Am 03.07.2019 16:00 schrieb Emil Velikov <emil.l.velikov@gmail.com>:<br>
> ><br>
> > On Wed, 3 Jul 2019 at 14:48, Koenig, Christian <Christian.Koenig@amd.com> wrote:<br>
> > ><br>
> > > Well this is still a NAK.<br>
> > ><br>
> > > As stated previously please just don't remove DRM_AUTH and keep the functionality as it is.<br>
> > ><br>
> > AFAICT nobody was in favour of your suggestion to remove DRM_AUTH from<br>
> > the handle to/from fd ioclts.<br>
> > Thus this seems like the second best option.<br>
> ><br>
> ><br>
> > Well just keep it. As I said please don't change anything here.<br>
> ><br>
> > Dropping DRM_AUTH from the driver IOCTLs was sufficient to work around the problems at hand far as I know.<br>
> ><br>
> We also need the DRM_AUTH for handle to/from fd ones. Mesa drivers use<br>
> those ioctls.<br>
><br>
><br>
> Yeah, but only for importing/exporting things.<br>
><br>
> And in those cases we either already gave render nodes or correctly authenticated primary nodes.<br>
><br>
> So no need to change anything here as far as I see.<br>
><br>
Not quite. When working with the primary node we have the following scenarios:<br>
- handle to fd -> pass fd to other APIs - gbm, opencl, vdpau, etc<br>
- handle to fd -> fd to handle - use it internally<br>
</div>
</span></font></div>
</blockquote>
</div>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Yeah, I'm aware of that but hoped that this would be a rather rare case.</div>
<div dir="auto"><br>
</div>
<div dir="auto">I need to take another closer look on this, but currently I am on vacation and won't have time next week either.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Trying to get back to this as soon as possible,</div>
<div dir="auto">Christian.</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:11pt">
<div><br>
-Emil<br>
</div>
</span></font></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>