From owner-freebsd-current@freebsd.org Sat Feb 17 13:09:05 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 200ECF0BD37 for ; Sat, 17 Feb 2018 13:09:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AE8BE7CF20 for ; Sat, 17 Feb 2018 13:09:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6869AF0BD2B; Sat, 17 Feb 2018 13:09:04 +0000 (UTC) Delivered-To: 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 54740F0BD29 for ; Sat, 17 Feb 2018 13:09:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E158E7CF1D; Sat, 17 Feb 2018 13:09:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id B45AB26027E; Sat, 17 Feb 2018 14:08:59 +0100 (CET) Subject: Re: Since last week (today) current on my Ryzen box is unstable From: Hans Petter Selasky To: Andrew Reilly , avg@freebsd.org Cc: current@freebsd.org, kib@freebsd.org References: <0CEA9D55-D488-42EC-BBDE-D0B7CE58BAEA@bigpond.net.au> Message-ID: Date: Sat, 17 Feb 2018 14:06:03 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------9603A69FABAC7864CD02A28F" Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Sat, 17 Feb 2018 13:09:05 -0000 This is a multi-part message in MIME format. --------------9603A69FABAC7864CD02A28F Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 02/17/18 13:42, Hans Petter Selasky wrote: > On 02/17/18 13:16, Andrew Reilly wrote: >> On a side-note, the new devmatch workings are giving me 43 boot >> warnings about "Malformed NOMATCH string: ''?'', and >> devmatch_enable="NO" in /etc/rc.conf doesn't seem to help, and the new >> matching is very very keen to load cc_vegas.ko, a lot.  Here's the >> output of devmatch -v, in case that helps: > > Hi, > > Does the attached patch solve the devmatch issue? Just apply it directly > on /etc and reboot. > > --HPS > Please find updated patch attached. --HPS --------------9603A69FABAC7864CD02A28F Content-Type: text/x-patch; name="devmatch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="devmatch.diff" Index: etc/devd/devmatch.conf =================================================================== --- etc/devd/devmatch.conf (revision 329447) +++ etc/devd/devmatch.conf (working copy) @@ -9,7 +9,7 @@ # # Generic NOMATCH event nomatch 100 { - action "service devmatch start '?$_'"; + action "/etc/rc.d/devmatch start '?$_'"; }; # Add the following to devd.conf to prevent this from running: Index: etc/rc.d/devmatch =================================================================== --- etc/rc.d/devmatch (revision 329447) +++ etc/rc.d/devmatch (working copy) @@ -37,13 +37,17 @@ start_cmd="${name}_start" stop_cmd=':' -[ -n "$2" ] && one_nomatch="-p '$2'" +one_nomatch=$2 devmatch_start() { local x - x=$(devmatch ${one_nomatch} | sort -u) + if [ -n "$one_nomatch" ]; then + x=$(devmatch -p "${one_nomatch}" | sort -u) + else + x=$(devmatch | sort -u) + fi [ -n "$x" ] || return --------------9603A69FABAC7864CD02A28F--