From owner-freebsd-arch@freebsd.org Sun Apr 16 22:12:55 2017 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08651D406DE for ; Sun, 16 Apr 2017 22:12:55 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id DBDDE259 for ; Sun, 16 Apr 2017 22:12:54 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id DB273D406DD; Sun, 16 Apr 2017 22:12:54 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D911FD406DA for ; Sun, 16 Apr 2017 22:12:54 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf0-x22b.google.com (mail-pf0-x22b.google.com [IPv6:2607:f8b0:400e:c00::22b]) (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 AAAE6257; Sun, 16 Apr 2017 22:12:54 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf0-x22b.google.com with SMTP id c198so58199062pfc.1; Sun, 16 Apr 2017 15:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+g9MXKwclNbrhW7O65hJOI5lsFFwuM4b6LOBd9YwBOM=; b=mIFB4M9SxBOC5s/CZOpPjPO41RZJVB/vha7IsEYBE6LicmKwMZ267jPNeduqUiuZpQ 0uRGiktQqEOnZZ4yccT4p4g6Wc9905RJk4oUSUAur40dR4jRyNhSAsai4eycIDSUjVJg UBrO4zsO7vvtJ5LWCBeb5BJcpCbtEjs45XTixlIYHAPuEhwFFKWeSb1CnVluXLdSiju2 cx29TCGmly8V1o0hLpxo7jla6QBJausSKx7Da6stsNa2G1CJ31x6uhIfno/abtkeLnQw azffezYJIUzkD861UQrHImahDKbGmyIXgniuOHlqymNnEFvCdmxM3GkCTz8yShyDLZKf i6BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=+g9MXKwclNbrhW7O65hJOI5lsFFwuM4b6LOBd9YwBOM=; b=T79H7D5F9ObDS2W7iTLDehilgWwO4F/wrO47Gp/8FzFs7wPIz1MVsHpUhM8eFM76XF I3eGElwACbSvRPWsQn80EG064V7NigtCxJbobvguSxpyKK179PYT9SwcbneTJodusnM+ hW2sWY5c3EjhwhW0WR7P3CZhcGNqxoTwuk3E07abTnDaJ1q2d++UHUV5KPKbzxFVJS1A N5K5cwFNIYxl0yehWUTNryDUTKRMFDa2VEtPcmUnIw5znkDgevEL3+812D9u9GpjoBi8 7HuW+BeonneEvhpOqFHPrqH6Zl5dLYdSTxCNjOaRfvUTPmmUYyCoqrSEpPpLeunGgPgm KBTQ== X-Gm-Message-State: AN3rC/5lVAx8o6ejATsEHFUBJFxJ+seiKe1sBjgpdm875ygUc+tzwvuH oT4AZ3u5IvQ89ctg X-Received: by 10.84.179.193 with SMTP id b59mr11875665plc.56.1492380774014; Sun, 16 Apr 2017 15:12:54 -0700 (PDT) Received: from raichu ([2604:4080:1102:0:ca60:ff:fe9d:3963]) by smtp.gmail.com with ESMTPSA id w3sm13916256pfw.15.2017.04.16.15.12.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Apr 2017 15:12:53 -0700 (PDT) Sender: Mark Johnston Date: Sun, 16 Apr 2017 15:12:49 -0700 From: Mark Johnston To: Baptiste Daroussin Cc: arch@FreeBSD.org Subject: Re: modules finding order Message-ID: <20170416221249.GA11628@raichu> References: <20170416202137.5x4vegfnm2pvkn6t@ivaldir.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170416202137.5x4vegfnm2pvkn6t@ivaldir.net> User-Agent: Mutt/1.8.0 (2017-02-23) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2017 22:12:55 -0000 On Sun, Apr 16, 2017 at 10:21:37PM +0200, Baptiste Daroussin wrote: > Hi all, > > I would like to change in FreeBSD 12 at least the default order the modules are > found/look up. > > For now the modules are loaded from /boot/kernel first then if not found, > checked from /boot/modules. > > I think we should revert that to /boot/modules first then /boot/kernel. > > The main reason being to simplify multiple things: > 1/ If one needs to change a module (like backporting) I could install it from > package and it would take precedent from the one provided by the default kernel > I'm using > 2/ As a hacker I could build my own version of a given module and install it in > /boot/modules I won't overwrite the default kernel module This complements r299393. Since that revision went in I've confused myself several times by building and installing a module from sys/modules, and then forgetting to explicitly kldload from /boot/modules, so I instead get a stale copy. > 3/ as a port maintainer I could provide my own version of the module that would > take precedence over the one provided by the kernel. I think we would like this behaviour for a port that installs the DRM modules. > > As it is a change in the default behaviour I would only do it for 12 (beside I > would love to do it in earlier version :D) > > Anyone has an opinion on the subject? It seems reasonable to me.