From owner-freebsd-current@freebsd.org Fri Aug 24 15:35:46 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 84EB2108D14A for ; Fri, 24 Aug 2018 15:35:46 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1CA808B181 for ; Fri, 24 Aug 2018 15:35:45 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id tE7cfJlo1p5A1tE7df9rxR; Fri, 24 Aug 2018 09:35:38 -0600 X-Authority-Analysis: v=2.3 cv=JLKPTPCb c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=dapMudl6Dx4A:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=wsZfp5TuC2fQMTtNrFUA:9 a=tQDfnbZa2xO3dZ6N:21 a=C4jdSgan2ysAnDZg:21 a=CjuIK1q_8ugA:10 a=zMT18xs1K6lMPxkNFxgA:9 a=Y9SQvLAZjWY3RlKJ:21 a=1Er7mbh9Rhh6Z6ep:21 a=c0-Hm2Pbd6uH3fTM:21 a=_W_S_7VecoQA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from [25.170.45.27] (S0106788a207e2972.gv.shawcable.net [70.66.154.233]) by spqr.komquats.com (Postfix) with ESMTPSA id 7F83C1AC; Fri, 24 Aug 2018 08:36:11 -0700 (PDT) MIME-Version: 1.0 From: Cy Schubert Subject: RE: priority of paths to kernel modules? Date: Fri, 24 Aug 2018 08:35:38 -0700 To: Johannes Lundberg , freebsd-current Message-Id: <20180824153611.7F83C1AC@spqr.komquats.com> X-CMAE-Envelope: MS4wfJ4IvJT3D5Nl7Q+BSqzt1bzs/DYF0uGu35dALxyUJjFMFvomnkN2ZakU4fuE62GTJGajrVzUyAAXdyk0pfLrrlgApQ6Zc/4KrywhL0tw4N5/8eXmYQbI O5fGXNlOPrkPZ5PhvEGvP5zBmRZV3QiUiyckWanHUvkDtdLZ1ekzbgDxvtsz0trZRr+lHw39YANDeTnIF1oTNJifWEh4e6Ff0T4= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 15:35:46 -0000 My idea, which I implemented locally and should probably create a phab revi= ew, was to ifdef DRM in modules/Makefile. We could do this too. Default not= to build/install. --- Sent using a tiny phone keyboard. Apologies for any typos and autocorrect. Also, this old phone only supports top post. Apologies. Cy Schubert or The need of the many outweighs the greed of the few. --- -----Original Message----- From: Johannes Lundberg Sent: 24/08/2018 01:08 To: freebsd-current Subject: priority of paths to kernel modules? Hi Since we now stuck with drm2 in base for a few more years I have an idea would make things much smoother for many of us, hugely reduce the amount of bug reports we get and I think would be beneficial in other ways too. Current I run with something like this in /boot/loader.conf module_path=3D"/boot/modules.drm-v4.16;/boot/modules;/boot/dtb;/boot/overla= ys" So I expect modules to be loaded in that order, with /boot/ LAST. However, if you look at this sysctl kern.module_path kern.module_path: /boot/kernel;/boot/modules.drm-v4.16;/boot/modules;/boot/dtb;/boot/overlays /boot/kernel is inserted first and probably modules in /boot/kernel have the highest priority. This is also proven by everyone wanting to use drm*kmods that get drm.ko from base loaded instead of the installed in /boot/modules. Please correct me if I'm wrong but if my understanding is correct this is a flaw and /boot/ should be inserted last so that any overlays or custom modules have higher priority than the default ones. I can imagine this is also useful when building custom modules and you don't want to overwrite or delete the default one in /boot/kernel... Cheers _______________________________________________ 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"