KMS seems broken in vc4.ko

Maxime Ripard maxime at cerno.tech
Wed Mar 24 10:32:53 GMT 2021


On Thu, Mar 18, 2021 at 08:58:56AM +0900, Ryutaroh Matsumoto wrote:
> > In the above dmesg output, we have
> > [  148.180685] [drm:drm_ioctl [drm]] comm="kmscube" pid=1926, dev=0xe200, auth=1, VC4_GET_PARAM
> > [  148.180716] [drm:drm_ioctl [drm]] comm="kmscube", pid=1926, ret=-19
> > Is the failure of VC4_GET_PARAM expected and normal???
> 
> The codes at
> https://elixir.bootlin.com/linux/v5.10.19/source/drivers/gpu/drm/vc4/vc4_drv.c#L77
> 	if (!vc4->v3d)
> 		return -ENODEV;
> seems to cause failure of VC4_GET_PARAM.
> It is funny that even on Raspberry Pi OS, VC4_GET_PARAM fails in the same way,
> where v3d must exist there.

We don't have v3d enabled in the mainline kernel yet, so this looks
right to me. I'm not quite sure why kmscube would run some V3D ioctl
when using software rendering though

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20210324/f6a88e6c/attachment.sig>


More information about the linux-rpi-kernel mailing list