From owner-svn-src-all@freebsd.org Tue Feb 13 14:40:23 2018 Return-Path: Delivered-To: svn-src-all@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 B6F5EF05650 for ; Tue, 13 Feb 2018 14:40:23 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (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 41E497B78B for ; Tue, 13 Feb 2018 14:40:23 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22c.google.com with SMTP id n7so21520503iob.0 for ; Tue, 13 Feb 2018 06:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=rMC/aiHsaMLJjJ9Qc8GibtHeSv1rVFHpoHjueouFTZI=; b=WCEHuP20pKV64TnzgKhluHjDCzLDZCNYjgFepl23SMSfGBD7JnMiTemDcVAqy/GoTJ zwbZfw2/GIUA686p/HTZXa4vD7EcOijMHnAhzY56Fdj48eHukOF+SqrTrqF7HntsHH5V kKQT1oVFEckkN/WbNoEwYdJV5IN2pZYGOco5gFQSUXufYbpMGkoA2Yyaxl/IkypdsTZ5 dF8ayVd9TvX0fOYCWJpuVfctygx0X8TQiO3v/8yryUquotBGZ0rmjdZlXuiZ9K94IKw0 ifDMwtLAEEHr6LV0P4k7Xs2bR3TMYOJwysuJIspmpO2vp5DUFlll24MRvlNfLOd+TNJb kdAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=rMC/aiHsaMLJjJ9Qc8GibtHeSv1rVFHpoHjueouFTZI=; b=BCcLGitPz3AB9BfiiicuKNnCjmc6HJWQF+kLjLCv1MQFnPneOJJpWnRwruiIR/LS4P FVflmNFy6UZH91lcPeBtVQNI293eas7CLbVUX3ykT3RgfkZngWGEZ/NdQ2ScaUHhLG6p lbLq1zS6UAIM3QutvFzxBDK47NGh2MlQvQLnD2bHdorr5sU2jv/to0xbzXe7jqbFCj/u 8RR00IE0SZdFRnEREwhd/iAW1G87Blq9ZXEhXy+PObqUrEo09jF9fgnpYaFi7pl1mkej eQpFhrZ6HFbjiQXpSy9B3ZdYKQdaHFmdl3AeEIZm7Z2NpAbsRMwjOld+jcOPMCy7NkPj GgQg== X-Gm-Message-State: APf1xPDX8reta0LNqwu86qLRN2yAOHo40U4ueb4D5Gg7xoa2UqgnLruN ThfbUR5in5ZDSx/DIioJZIxrSbdNy86n0e5DhRl0DA== X-Google-Smtp-Source: AH8x224tuZWOcgap5qhb9PhIBbCDcW+csmjaEjq4OihQZITL+Q8mblpJTBUaT1+2lY5W7QmyMdTvD8ijBM1WIwPCdu4= X-Received: by 10.107.51.78 with SMTP id z75mr882323ioz.291.1518532822439; Tue, 13 Feb 2018 06:40:22 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.201.67 with HTTP; Tue, 13 Feb 2018 06:40:21 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:18a2:a4f7:170:8dd9] In-Reply-To: References: <201802120445.w1C4jQBL081885@repo.freebsd.org> <1f2b78cb-c27b-6b3b-0ee7-130de756bbb7@gmail.com> From: Warner Losh Date: Tue, 13 Feb 2018 07:40:21 -0700 X-Google-Sender-Auth: nIMYAYibfwF0oq7m-_0el4nBG3U Message-ID: Subject: Re: svn commit: r329148 - head/etc/devd To: Hans Petter Selasky Cc: Renato Botelho , Warner Losh , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2018 14:40:24 -0000 On Tue, Feb 13, 2018 at 2:04 AM, Hans Petter Selasky wrote: > On 02/12/18 20:13, Renato Botelho wrote: > >> On 12/02/18 02:45, Warner Losh wrote: >> >>> Author: imp >>> Date: Mon Feb 12 04:45:26 2018 >>> New Revision: 329148 >>> URL: https://svnweb.freebsd.org/changeset/base/329148 >>> >>> Log: >>> Switch to using devmatch to autoload drivers. Remove usb.conf >>> as obsolete because devmatch gets its information from the same >>> place as the genration scripts. >>> >>> Added: >>> head/etc/devd/devmatch.conf (contents, props changed) >>> Deleted: >>> head/etc/devd/usb.conf >>> >>> Added: head/etc/devd/devmatch.conf >>> ============================================================ >>> ================== >>> --- /dev/null 00:00:00 1970 (empty, because file is newly added) >>> +++ head/etc/devd/devmatch.conf Mon Feb 12 04:45:26 2018 (r329148) >>> @@ -0,0 +1,13 @@ >>> +# >>> +# $FreeBSD$ >>> +# >>> + >>> +# >>> +# Example devd configuration file for automatically >>> +# loading what modules we can based on nomatch >>> +# events. >>> +# >>> +# Generic NOMATCH event >>> +nomatch 100 { >>> + action "service devmatch onestart" >>> >> >> Config syntax is broken. It's missing ; in the end of above line >> >> > I've just fixed this in r329194. > > BTW: I see another annoying issue. Devmatch, when it receives a NOMATCH > event, should limit the searching to the current system. I.E. when you plug > a USB device, devmatch should not search PCI drivers aswell. > > Warner, can you add this support? Yes, but on boot, it's still going to match everything because all the NOMATCH events are in the queue. Warner