[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0f16673f-9758-4790-ae6c-e81150241ba2@collabora.com>
Date: Tue, 1 Apr 2025 23:24:20 +0300
From: Dmitry Osipenko <dmitry.osipenko@...labora.com>
To: Rob Clark <robdclark@...il.com>
Cc: David Airlie <airlied@...hat.com>, Gerd Hoffmann <kraxel@...hat.com>,
Gurchetan Singh <gurchetansingh@...omium.org>, Chia-I Wu
<olvaffe@...il.com>, Vivek Kasireddy <vivek.kasireddy@...el.com>,
Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@....com>,
dri-devel@...ts.freedesktop.org, virtualization@...ts.linux.dev,
linux-kernel@...r.kernel.org, kernel@...labora.com
Subject: Re: [PATCH v2 1/2] drm/virtio: Don't attach GEM to a non-created
context in gem_object_open()
On 4/1/25 22:53, Rob Clark wrote:
> On Tue, Apr 1, 2025 at 5:39 AM Dmitry Osipenko
> <dmitry.osipenko@...labora.com> wrote:
>>
>> The vfpriv->ctx_id is always initialized to a non-zero value. Check whether
>> context was created before attaching GEM to this context ID. This left
>> unnoticed previously because host silently skips attachment if context
>> doesn't exist, still we shouldn't do that for consistency.
>>
>> Fixes: 086b9f27f0ab ("drm/virtio: Don't create a context with default param if context_init is supported")
>> Cc: <stable@...r.kernel.org> # v6.14+
>> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@...labora.com>
>
> Reviewed-by: Rob Clark <robdclark@...il.com>
Thanks, applied both patches to misc-fixes
--
Best regards,
Dmitry
Powered by blists - more mailing lists