From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: CONFIG_DRM_LEGACY Date: Sun, 10 Jul 2022 13:12:08 +0200 Message-ID: <4f90fef9-65d4-d645-09d0-8bb53d626807@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0700959526597055897==" List-Id: --===============0700959526597055897== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Peter, On 10/07/2022 12:00, Peter M=C3=BCller wrote: > Hello development folks, > > recently, it has been flagged to me that we ship our kernels with CONFIG_DR= M_LEGACY enabled. Looking through Arch Linux I see that since Kernel 5.14 this option has been = present. Some OS's have it enabled and some have it disabled. Arch Linux is i= n the disabled camp and they had already removed many of the DRM based driver= s from their core repository. The result of that is that anyone needing to use old DRM based video cards su= ch as Nvidia 340 and Mach64DRM have to now build the video driver themselves= =C2=A0 but also build their own kernel to set this parameter. > The documentation to this reads: > >> Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous >> APIs to user-space, which can be used to circumvent access >> restrictions and other security measures. For backwards compatibility >> those drivers are still available, but their use is highly >> inadvisable and might harm your system. >> >> You are recommended to use the safe modeset-only drivers instead, and >> perform 3D emulation in user-space. >> >> Unless you have strong reasons to go rogue, say "N". > Because of the kernel released on July 7 and its fixes to ASIX USB-to-Ether= net adapters, I > am currently working on that sector of IPFire 2.x anyway. Unless somebody o= f you can recall > why we really need to have CONFIG_DRM_LEGACY enabled, I would submit a patc= h disabling it - > its documentation does not inspire confidence at all. :-) I had a similar feeling when I read about it. I would suppose the question would be how many of the IPFire users use older = DRM based video cards on their IPFire machines. Does IPFire include the drivers for these DRM based video cards? If not then = making the config disabled shouldn't give any problem. That's my input from having a quick search on this topic. Regards, Adolf. > Thanks, and best regards, > Peter M=C3=BCller --===============0700959526597055897==--