From owner-freebsd-current@freebsd.org Fri Aug 24 23:29:32 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 9104310974BD for ; Fri, 24 Aug 2018 23:29:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x243.google.com (mail-it0-x243.google.com [IPv6:2607:f8b0:4001:c0b::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 190D67C38F for ; Fri, 24 Aug 2018 23:29:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x243.google.com with SMTP id h20-v6so3962548itf.2 for ; Fri, 24 Aug 2018 16:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rba+CjQ4mO/qnBzTXzdmn9nKH/F6duENeyCKI1Lt35I=; b=vB1tTdEfpF9faIhgAP29tu7/7WrtaSNE9WmEto1vSL1GYGGC+KABSu2rAKWBEsrysX Mn4/UE8h0eWkGvU4aSHOxwdJ/ocpPKZ86NypRjwidpWj6Czt6cUKST6C83KZ0GCOKruh +p3YUMtBxYXkb09GdvZDVpGosWDyCAg2W2zWVX4/7SpqLlWjhXwVbwP+IGGxyMY2dt/R 3FaUWSf8W1oN7kEIKRpgJUugYwMoscbD2aOQNUT0IN2uF7ze8fh1/DUF6QzSt3aKlrW4 gtyhQPFed1mO6T5iriFJR3C2/lQDcQ5rmfXwgMuLuYUidSOyUOOe6cxLXVRA73BwtLse 3klw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rba+CjQ4mO/qnBzTXzdmn9nKH/F6duENeyCKI1Lt35I=; b=XLk6SSTRxn0BQdrvxsuc+v+TIr3b7srAcslxR+LhxUbfwP4Xnc6z4J8KNHgQhmZgF/ yA2G4T7mWDuH/CDKamWyqSvC9eT6i3+UME4xHW89fx4W2fYc0P23//ZwyjCwZL4DZbCv +Suzkb0aemvQcrrK4wq1fKewWjiwopnrUJPfJPu7qC/KLOF4yEbnaiXv4d+Awk2FZ+Dr QBGHDgpHIek5M4xLNNF5QUJE6BOF70p4RDBATJ6YNI9P9BbHaap42/+hEK1MfWiDJlcj L1SS81U1AnA3aOM/Hnba54K1hUg09ZoJGBimW8Lnkl/VCMWonxw4ghk5vwHLXfhnnego Vldw== X-Gm-Message-State: APzg51D9YSGoJLSunCl6YrEOMs2Co2fQK2C64MrOELs2NUByw6QP4m7Y tRpqw/vbd53A4JRHC42Fvq7FG97Q3hr2XXOYw7Y0GA== X-Google-Smtp-Source: ANB0VdbIA85qDomXF16CGYd16M19X5qMOhJzhmTO41ohbMjNDcK7HB71bAxCKGDFYmbEwM3lj24nZxXDtEGSiW/NgF0= X-Received: by 2002:a24:9197:: with SMTP id i145-v6mr2882932ite.39.1535153371005; Fri, 24 Aug 2018 16:29:31 -0700 (PDT) MIME-Version: 1.0 References: <201808241411.w7OEBXg8095140@pdx.rh.CN85.dnsmgr.net> In-Reply-To: From: Warner Losh Date: Fri, 24 Aug 2018 17:29:19 -0600 Message-ID: Subject: Re: priority of paths to kernel modules? To: Niclas Zeising Cc: "Rodney W. Grimes" , Kyle Evans , Johannes Lundberg , Matt Macy , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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, 24 Aug 2018 23:29:32 -0000 On Fri, Aug 24, 2018 at 4:20 PM Niclas Zeising wrote: > On 08/24/18 17:20, Warner Losh wrote: > > This would allow the graphics port to have a rc script that sets > > this up so when X11 goes to automatically load the module, the right one > > gets loaded. > > > > I just want to point out that X11 doesn't load the graphics kernel > driver by default when using the drm-*-kmod ports, and I'm not sure the > hack to have the intel ddx (xf86-video-intel) load the drm2 driver is > still around. > > It doesn't really matter though, since upstream is moving away from > having X load the driver, and I'd like us to follow suit by using > devmatch (this is one of the reasons we wanted to get rid of the base > drivers, as I've stated before). X can't always know which driver to > load (when using modesetting for instance), and in my opinion, it should > be the kernel/loader that decides which drivers to load. Excellent. That reduces the compatibility matrix I need to consider. I have some ideas, and will hack on them to see if a clever bit of slide of hand will solve the main problem of loading the wrong driver in a dependency chain. Warner