From owner-freebsd-current@freebsd.org Fri May 18 20:34:22 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 5B8C5EDB7D1; Fri, 18 May 2018 20:34:22 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A026D69163; Fri, 18 May 2018 20:34:21 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id f6-v6so16050254wmc.4; Fri, 18 May 2018 13:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bO2pP0bzh8DR5IeWVg64OUbVk+D1H8/IKUL3cWmF6hc=; b=tbSO0gPzHkKmkr3FfHLBk4W9QzA8Cs0La02CoQzp75oVSv20pPlNG5UdNrZxDLRyUg 1oEniZdbCJg/m3tjynsbQboEZtDB4VtqCyD1gPlE2JvocF9pSXF8TWogxIJZdm/KRWeX 8nJyXSbdzPqHV8CkDgHk5P4nf3Ms19F1mgeL888FAlCX5RvkUKyx6CkFltWOkCquTX3S fHkvJSCPMvsc+u/VtX3c1RKKh+uTxUTMMt/Bb+KrpeNfkSSsVu+BIUP1qLPsPAKFZjoY Ym4KmAiYyPmyIwDmCocXFY9MamRBMg4ogUw8KIGxl0Y8pW04qQKCVCsjUsnYogFfusB5 4xZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bO2pP0bzh8DR5IeWVg64OUbVk+D1H8/IKUL3cWmF6hc=; b=NbjuRBx6c4/cbL3Fkum1fS5W3peNnHj+DvxbeTI11Eo/m6UDw0bixJbf5UgHLADED5 RjGv9io+R/1vqwp46fAFVSmijezVGFHbar1JJV6BCe2EKda5OgB9q0CiYNVHtJX6Gvx4 JDL5/ncF8WcVaZC9yFEdQHI7LNYq5nFn2NSj0OlRKwkvl+1nRvJU3krtNuDGBjcne9JJ bsMmE7ci6I5Qp7zWzdgQQK1QARtm/GFEjwOKMq5g2EGT40Qg32P92FXCpqGERFRvL1c7 IXtpHuBINMKfRdpg1jTgNb5J8MxW/Ri8qfbfThg5Bfof0eCDnuhpd0dIrntNHFm8mmhp rXCQ== X-Gm-Message-State: ALKqPwecQ9Y2jpGrNMyfVOeDzQm0hl8zn93KAsPv+vnZ3pzr0bR8PvhP NvhQSuiRXTx0oacT2SSrwpWlfZc4qw28WHVQLi0= X-Google-Smtp-Source: AB8JxZrZpMu5BLlJtXOMkvs6Fg0C9HreDu6PS8pEeiIB8tOqk3mvc+n3OCCbRpnGCBNkU3TnltXRXRLkTL1B1kfPeSI= X-Received: by 2002:a1c:f714:: with SMTP id v20-v6mr5832011wmh.73.1526675660622; Fri, 18 May 2018 13:34:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.146.194 with HTTP; Fri, 18 May 2018 13:33:40 -0700 (PDT) In-Reply-To: <20180518202200.dks3twrlfyhmcgbb@mail.bwidawsk.net> References: <3a5edc5c-3caa-830b-4bd9-53ff52feb8a7@freebsd.org> <20180518193009.GA88432@troutmask.apl.washington.edu> <20180518202200.dks3twrlfyhmcgbb@mail.bwidawsk.net> From: Johannes Lundberg Date: Fri, 18 May 2018 21:33:40 +0100 Message-ID: Subject: Re: [RFC] Deprecation and removal of the drm2 driver To: Ben Widawsky Cc: Warner Losh , Steve Kargl , Andreas Nilsson , FreeBSD X11 mailing list , Current FreeBSD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.26 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: Fri, 18 May 2018 20:34:22 -0000 On Fri, May 18, 2018 at 9:22 PM, Ben Widawsky wrote: > On 18-05-18 14:15:03, Warner Losh wrote: > > On Fri, May 18, 2018 at 2:12 PM, Johannes Lundberg > > wrote: > > > > > > > > > > > On Fri, May 18, 2018 at 9:03 PM, Warner Losh wrote: > > > > > >> On Fri, May 18, 2018 at 1:30 PM, Steve Kargl < > > >> sgk@troutmask.apl.washington.edu> wrote: > > >> > > >> > On Fri, May 18, 2018 at 09:14:24PM +0200, Andreas Nilsson wrote: > > >> > > On Fri, May 18, 2018, 20:00 Niclas Zeising > > >> wrote: > > >> > > > > >> > > > I propose that we remove the old drm2 driver (sys/dev/drm2) fr= om > > >> > > > FreeBSD. I suggest the driver is marked as deprecated in 11.x > and > > >> > > > removed from 12.0, as was done for other drivers recently. So= me > > >> > > > background and rationale: > > >> > > > > > >> > > > The drm2 driver was the original port of a KMS driver to > FreeBSD. > > >> It > > >> > > > was done by Konstantin Belousov to support Intel graphics > cards, and > > >> > > > later extended by Jean-S=C3=A9bastien P=C3=A9dron as well as K= onstantin to > > >> match > > >> > > > what's in Linux 3.8. This included unstable support from > Haswell, > > >> but > > >> > > > nothing newer than that. > > >> > > > > > >> > > > For quite some time now we have had the > graphics/drm-stable-kmod and > > >> > > > graphics/drm-next-kmods which provides support for modern AMD > and > > >> Intel > > >> > > > graphics cards. These ports, together with the linuxkpi, or > lkpi, > > >> has > > >> > > > made it significantly easier to port and update our graphics > > >> drivers. > > >> > > > Further, these new drivers cover the same drivers as the old > drm2 > > >> > driver. > > >> > > > > > >> > > > What does the community think? Is there anyone still using th= e > drm2 > > >> > > > driver on 12-CURRENT? If so, what is preventing you from > switching > > >> to > > >> > > > the port? > > >> > > > > > >> > > > Thank you > > >> > > > Regards > > >> > > > -- > > >> > > > Niclas Zeising > > >> > > > FreeBSD x11/graphics team > > >> > > > _______________________________________________ > > >> > > > freebsd-current@freebsd.org mailing list > > >> > > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > >> > > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@ > > >> > freebsd.org" > > >> > > > > > >> > > > > >> > > Sounds good ( deprecate resp remove ). It causes more confusion > and > > >> > > problems and it solves nothing. > > >> > > > > >> > > > >> > Check the Makefiles > > >> > > > >> > % more /usr/ports/graphics/drm-next-kmod/Makefile > > >> > > > >> > ONLY_FOR_ARCHS=3D amd64 > > >> > ONLY_FOR_ARCHS_REASON=3D the new KMS components are only supporte= d on > > >> amd64 > > >> > > > >> > Not to ia32 friendly. > > >> > > > >> > > >> So do people use i386 for desktop? And need the latest KMS stuff? > > >> > > > > > > Yeah I was wondering the same.. If you're running i386, do you need d= rm > > > drivers? Will scfb work an i386? (probably has legacy bios and if I > > > remember correctly, scfb is UEFI only) > > > I do feel sorry for anyone who would have to revert back to VESA... > > > > > > Would it be too much trouble to move it to a port? > > > > > > > If there's someone who needs it for i386, and wants to do the work and > > maintain it, we should allow it. But the drm2 maintainers have said its > > likely totally broken anyway. > > > > Warner > > As a long time developer in drm/i915, and newly interested in FreeBSD (ie= . > no > history on the matter), is there some upside and/or desire to have native > support, or is the drm-next-kmod solution good enough? > Given the fast evolution of graphics hardware and the amount of code in only the AMD and Intel drivers, keep several native implementations seems impossible, if not wasteful. If you are referring to drm2 in the kernel, that's not much more native than the drm kmods, it still uses a linux compatibility layer (but not as sophisticated). If we were to focus our effort somewhere, it should be to create a Common Kernel Programming Interface for Linux and *BSDs, especially for DRM drivers. Something a bit more stable that what we see in Linux today.