From owner-freebsd-current@freebsd.org Mon Nov 26 19:02:31 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 A0D531141056 for ; Mon, 26 Nov 2018 19:02:31 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id ADEDC8406D for ; Mon, 26 Nov 2018 19:02:30 +0000 (UTC) (envelope-from des@des.no) Received: from next.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 2CE93B87F; Mon, 26 Nov 2018 19:02:24 +0000 (UTC) Received: by next.des.no (Postfix, from userid 1001) id 6716C1033A; Mon, 26 Nov 2018 20:02:24 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Warner Losh Cc: dan_partelly , FreeBSD Current Subject: Re: Devd / devmatch(8) -- netif race 12-RC1 In-Reply-To: (Warner Losh's message of "Mon, 19 Nov 2018 21:38:26 -0700") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (berkeley-unix) Date: Mon, 26 Nov 2018 20:02:24 +0100 Message-ID: <86pnurvf0f.fsf@next.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: ADEDC8406D X-Spamd-Result: default: False [-6.56 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[des.no]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[smtp.des.no]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-3.37)[ip: (-8.86), ipnet: 194.63.250.0/24(-4.43), asn: 12996(-3.54), country: NO(-0.01)]; ASN(0.00)[asn:12996, ipnet:194.63.250.0/24, country:NO]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Mon, 26 Nov 2018 19:02:31 -0000 Warner Losh writes: > coretemp is a CPU device, and so I'm not sure we have the right PNP > information for the CPU bus for it to even load. The coretemp device is not really a device, it's just a couple of MSRs. As such, it is not attached to an enumerable bus, or any bus at all that devd's aware of. The only way to find out if it's supported is to call the driver's identify method, which checks the cpuid and creates a device instance for each reported sensor. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no