From owner-freebsd-current@freebsd.org Tue May 29 19:28:59 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13F36F6FA53; Tue, 29 May 2018 19:28:59 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FDF67AE16; Tue, 29 May 2018 19:28:58 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 40wP0m6pDpzDhTS; Tue, 29 May 2018 19:28:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([IPv6:::1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [IPv6:::1]) (amavisd-new, port 10587) with ESMTPS id mV5fncUU8_J4; Tue, 29 May 2018 19:28:56 +0000 (UTC) Received: from celes.daemonic.se (celes.daemonic.se [IPv6:2001:470:dca9:2::3]) by mail.daemonic.se (Postfix) with ESMTPSA id 40wP0m1mdCzDhBg; Tue, 29 May 2018 19:28:56 +0000 (UTC) Subject: Re: [RFC] Deprecation and removal of the drm2 driver From: Niclas Zeising To: freebsd-x11@freebsd.org, freebsd-current@freebsd.org References: <3a5edc5c-3caa-830b-4bd9-53ff52feb8a7@freebsd.org> Message-ID: <50b21ccf-f89d-cfd0-fb23-39ba80732143@freebsd.org> Date: Tue, 29 May 2018 21:28:49 +0200 User-Agent: Mutt/1.5.21 MIME-Version: 1.0 In-Reply-To: <3a5edc5c-3caa-830b-4bd9-53ff52feb8a7@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2018 19:28:59 -0000 On 05/18/18 19:58, Niclas Zeising wrote: > [ Cross posted to freebsd-current@ and freebsd-x11@.=C2=A0 Please respe= ct=20 > reply-to and send all replies to freebsd-x11@.=C2=A0 Thanks! ] >=20 >=20 > Hi! > I propose that we remove the old drm2 driver (sys/dev/drm2) from=20 > FreeBSD.=C2=A0 I suggest the driver is marked as deprecated in 11.x and= =20 > removed from 12.0, as was done for other drivers recently.=C2=A0 Some=20 > background and rationale: >=20 > The drm2 driver was the original port of a KMS driver to FreeBSD.=C2=A0= It=20 > was done by Konstantin Belousov to support Intel graphics cards, and=20 > later extended by Jean-S=C3=A9bastien P=C3=A9dron as well as Konstantin= to match=20 > what's in Linux 3.8.=C2=A0 This included unstable support from Haswell,= but=20 > nothing newer than that. >=20 > For quite some time now we have had the graphics/drm-stable-kmod and=20 > graphics/drm-next-kmods which provides support for modern AMD and Intel= =20 > graphics cards.=C2=A0 These ports, together with the linuxkpi, or lkpi,= has=20 > made it significantly easier to port and update our graphics drivers.=20 > Further, these new drivers cover the same drivers as the old drm2 drive= r. >=20 > What does the community think?=C2=A0 Is there anyone still using the dr= m2=20 > driver on 12-CURRENT?=C2=A0 If so, what is preventing you from switchin= g to=20 > the port? >=20 Wow, this blew up quite a lot bigger than I anticipated. I'll try to=20 summarize the discussion a bit below and then suggest a way forward. The primary reasons we want to do this is because there are conflicts=20 between the new drm drivers in ports, and the drm drivers in base, since=20 they control the same hardware. It is hard to make conflicting drivers=20 to auto load in a consistent way. In order to improve the desktop=20 experience I'd like to see that graphics drivers are loaded on system=20 boot. There is also a push from upstream to have the xf86-video*=20 drivers stop loading driver kernel modules. It is also easier to keep a=20 port updated than keeping the base system updated, and updates can=20 propagate to multiple FreeBSD versions at once. This will also ensure=20 that all ports use the same firmware blobs. So, to the summary. A lot of people are using i386, and as such still=20 need the old drm drivers. There were also some reports about issues=20 with the drm-next/stable drivers, which needs investigating. Power is=20 another architecture that also is not supported by drm-next/stable,=20 although we hope to extend support to powerpc in the future. There was a=20 lot of discussion regarding making it into a port, or only excluding the=20 driver on amd64, and similar suggestions. To move forward, we'll do the following: Note that this is for current=20 only. We take the drm and drm2 drivers and make a port for it, maintained by=20 the graphics team (x11@). After a transition period, then the drivers=20 are removed from base. At the same time, pkg-messages are added to=20 relevant places to point people to the various available drm drivers. Regards --=20 Niclas Zeising FreeBSD graphics/x11 team