From owner-freebsd-x11@freebsd.org Fri May 18 21:59:47 2018 Return-Path: Delivered-To: freebsd-x11@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 B192FEDDB6E for ; Fri, 18 May 2018 21:59:47 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-yb0-x232.google.com (mail-yb0-x232.google.com [IPv6:2607:f8b0:4002:c09::232]) (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 4A1B56BB69 for ; Fri, 18 May 2018 21:59:47 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-yb0-x232.google.com with SMTP id v12-v6so3210395ybl.10 for ; Fri, 18 May 2018 14:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8Zr7wKS8jtfRTD4LALM+VZ98wIHQD1rHy9lWdvEeS10=; b=mSys5l/e4SZwJ6q5qgpbtSKCYx8NdvlmpbBPHx0PjycWPO+RAS9Z/5PW/ZI5O2s2/h bh7v4mhDNfRYeYB8s4/OnPVn7HvmL1fu4LrNLKzz2ERWG6RqFY5H1SxPJXE8N7C6Khgu eprs+w0iBulBsicvaqoXulceusMTicU2Pz1reIAhQrQW9NZn5J9dDJ3EQC6XUd5W2ONG L1hTT+ibC0Kltkms5MezC4W1aHxO+DYb/jn+qnGi1BmZaqc8/iT8bWKn1B9lMgxMrEgf pU6gOrzoR/JjuiAS/BaH4XqQM3mHumjLl3n1gzlCNDRf8x1b+GcNIYd6zU62+JjXhqT4 w0cA== 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=8Zr7wKS8jtfRTD4LALM+VZ98wIHQD1rHy9lWdvEeS10=; b=QsTUkWXe+U3IeDtnTC8dozGs4qIMOt8Jg/+Ih3vRhPfAvVjHPo/2M8gw3fxTbSCXbJ TTbnvi/HCi4GDsrT6OTWYTydfsCrO+NCPu52mN5nsqnMUAbvosm/JqpVjCerbcGyfZIz 8YPIYkH/ql0PQfvtawaANVmO2yEMtfUHz/6fhsP6yq3jG0Uu9cc0X14Rwe+kphAln6Ul HSsUzObZ8zmda1jti8Bvee5hh2MLn8ZtAVrAMEkFNyhLK+vBOt4Enn1ICLApv9QjVHVM 9Be0ogklyZFpqkERMSn04Ix+GoktltLeQ+26qI38DRyUWZ9pKEgz27QY6fL/EtI21J86 EJzQ== X-Gm-Message-State: ALKqPwct97e0+O0AK6Mbbn45d6jvQdTb8lJZXN+aOJXvShcmcrWtB4bV kDvFxBH2DSVGzPSPfr0NmvYaKOl5TFMy1a3vPfuwfg== X-Google-Smtp-Source: AB8JxZo+Y4q35LbkT8ZAZcJqVjpIH/JHP+rKKds6TyrFHsenJijfE2I8fF3s4ViRFfHbkR5nR6FLCpBR7SsqtkVdWy8= X-Received: by 2002:a25:8e0c:: with SMTP id p12-v6mr6271780ybl.199.1526680786583; Fri, 18 May 2018 14:59:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:3894:0:0:0:0:0 with HTTP; Fri, 18 May 2018 14:59:46 -0700 (PDT) In-Reply-To: <20180518215300.GE6887@kib.kiev.ua> References: <3a5edc5c-3caa-830b-4bd9-53ff52feb8a7@freebsd.org> <20180518193009.GA88432@troutmask.apl.washington.edu> <20180518202200.dks3twrlfyhmcgbb@mail.bwidawsk.net> <20180518215300.GE6887@kib.kiev.ua> From: Oliver Pinter Date: Fri, 18 May 2018 23:59:46 +0200 Message-ID: Subject: Re: [RFC] Deprecation and removal of the drm2 driver To: Konstantin Belousov Cc: Johannes Lundberg , Ben Widawsky , Warner Losh , Steve Kargl , Andreas Nilsson , FreeBSD X11 mailing list , Current FreeBSD Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 21:59:48 -0000 On Friday, May 18, 2018, Konstantin Belousov wrote: > On Fri, May 18, 2018 at 09:33:40PM +0100, Johannes Lundberg wrote: > > 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 < > johalun0@gmail.com> > > > > 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 < > zeising@freebsd.org> > > > > >> wrote: > > > > >> > > > > > > >> > > > I propose that we remove the old drm2 driver (sys/dev/drm2) > from > > > > >> > > > FreeBSD. I suggest the driver is marked as deprecated in > 11.x > > > and > > > > >> > > > removed from 12.0, as was done for other drivers recently. > Some > > > > >> > > > 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??bastien P??dron as well as > Konstantin 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 > the > > > 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= amd64 > > > > >> > ONLY_FOR_ARCHS_REASON= the new KMS components are only > supported 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 drm > > > > > 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). > Drm2 does not use linux compat layer. > > drm2 is probably better on older chipsets which use AGP emulation, i.e. > everything up to SandyBridge-1. Does drm-next run on gen3 and gen4 at > all ? In particular, I did obtained real bug reports from people running > gen 3 hardware. E.g. you cannot run amd64 kernel on T60, but you can run > i386 and get hw support with drm2. > > I still have GM45 (gen4) laptop and use it daily with the drm from the > tree. I effectively dropped supporting it when half of the HSW support > code were imported. I use the in tree DRM2 code on multiple Haswell based laptops. It working fine. So I prefer to keep it in the tree. I like to use bigger console, even if I not install anything from ports. > > > > > 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. > _______________________________________________ > 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" >