[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230228124620.pfjvj372rifiljew@sirius.home.kraxel.org>
Date: Tue, 28 Feb 2023 13:46:20 +0100
From: Gerd Hoffmann <kraxel@...hat.com>
To: Rob Clark <robdclark@...il.com>
Cc: dri-devel@...ts.freedesktop.org, Chia-I Wu <olvaffe@...il.com>,
Ryan Neph <ryanneph@...omium.org>,
Dmitry Osipenko <dmitry.osipenko@...labora.com>,
Daniel Vetter <daniel@...ll.ch>,
Rob Clark <robdclark@...omium.org>,
David Airlie <airlied@...hat.com>,
Gurchetan Singh <gurchetansingh@...omium.org>,
"open list:VIRTIO GPU DRIVER"
<virtualization@...ts.linux-foundation.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3] drm/virtio: Add option to disable KMS support
Hi,
> + if (!vgdev->num_scanouts) {
> + /*
> + * Having an EDID but no scanouts is non-sensical,
> + * but it is permitted to have no scanouts and no
> + * EDID (in which case DRIVER_MODESET and
> + * DRIVER_ATOMIC are not advertised)
> + */
> + if (vgdev->has_edid) {
> + DRM_ERROR("num_scanouts is zero\n");
That error message isn't very clear.
Also I'd suggest to just drop the edid check. It's about commands
being supported by the device, not about the actual presence of an EDID
blob, so the check doesn't look very useful to me.
take care,
Gerd
Powered by blists - more mailing lists