From owner-freebsd-current@freebsd.org Thu Nov 22 17:07:03 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 DB9A5114C705 for ; Thu, 22 Nov 2018 17:07:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it1-x12e.google.com (mail-it1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E3767D836 for ; Thu, 22 Nov 2018 17:07:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it1-x12e.google.com with SMTP id m15so14696673itl.4 for ; Thu, 22 Nov 2018 09:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Lps3+po+hdObXqbaqjxQtbtQdlRv+GuVr3EdSwIYG1M=; b=Lu3vRMGQ4GarcldZ4RRKQKwRWDdoVudMSOnkqRLu/APQCQM0Um7gvOIzgofROyxjQb RKuHzjO7d3ROjmMcE88XUhvfWoSGmzhYU1bnAEf1v25T/kxvrhYdjIEIEfDgF5Ktsb1d OZ0X99be4jcLtXYQbT8pzEdj+2NDAOSb+sEgMZFvaEqyqZ7XUf/gcIYfSZBsJtTIrqZc TyeTi/ezgBky/3Zs7o0MEtJ8ekMore8Eoop7fc0QtYOU+mRQXcPEE0/zUx4MJ2IOvnr/ OULYXd0PIcfOC4tcWCP21BI0yj9+QcL9f2ud4QMsbE/SclFZXHSKs6TwqQNzfXwdi40M Hd8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Lps3+po+hdObXqbaqjxQtbtQdlRv+GuVr3EdSwIYG1M=; b=q0G1WNPSiHmO+Pdbeqto5tm1P5IiGJQauVeNRVpi7oAAWJX0WmHXX1i9UqicSyRZwj v9UYqFz31dmq5sQZDrFEIrel02Eo7gRdL+tMcT5kRK0cIvzAHnUjmH5xhn8WB9LnYxsL hA47vNyXjfJ3RQBDCKF2G+7HTIpqFBgLg/An1pptDBQCLwhCy/Y+aE3gnXskjbeWDFha UN0bbTEVuNyO9OZsvIvZU9GXfWfDJvTMw94IL74WpBUQtOe4buSneIEnEXhtPcCq/tvC njj/kEB2brSIwGDIEWSaHegxsmwjwC2QP7aZwrDRswEFpBhfTEiHqG0yH7uInG+7eUg4 h52Q== X-Gm-Message-State: AGRZ1gLGJXBNGLUqS1rGW4dkZCBXLY/MEm3eQqHYPB1vlj8zrba/2KHe LXhDcBM0bwwLDzL1O9iqhQf78475C0c2+4hIx+Hzxw== X-Google-Smtp-Source: AJdET5fsE2gRvNthD3hoBvV2f3iW2dxvzsS3AmDzOHUn4DCvpAFtIXEbjQynXQG9v4UWtBlKCNLxkZE28YNtUxG+QYU= X-Received: by 2002:a24:3796:: with SMTP id r144-v6mr10044626itr.79.1542906421173; Thu, 22 Nov 2018 09:07:01 -0800 (PST) MIME-Version: 1.0 References: <873d8841484925a35cf8c751790659c1@rdsor.ro> <798C848D-5F32-4BF9-87E0-ADD4F9B743AD@rdsor.ro> In-Reply-To: <798C848D-5F32-4BF9-87E0-ADD4F9B743AD@rdsor.ro> From: Warner Losh Date: Thu, 22 Nov 2018 10:06:49 -0700 Message-ID: Subject: Re: Devd / devmatch(8) -- netif race 12-RC1 To: dan_partelly Cc: "Bjoern A. Zeeb" , FreeBSD Current X-Rspamd-Queue-Id: 0E3767D836 X-Spamd-Result: default: False [-4.80 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[ALT1.aspmx.l.google.com,aspmx.l.google.com,ALT2.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[e.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-1.00)[-0.997,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-1.80)[ip: (-5.28), ipnet: 2607:f8b0::/32(-2.11), asn: 15169(-1.51), country: US(-0.09)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Thu, 22 Nov 2018 17:07:03 -0000 On Wed, Nov 21, 2018, 11:43 PM Dan Partelly wireless lagg initialization is broken in this scenario, all-right. The > init/rc system as it is now can=E2=80=99t cope easily with a modern async= hronous > initialization sequence. Sure you could probably find an order which work= s, > only to find yourself in trouble next time you want add some modern > functionality . It shows it=E2=80=99s age > > @Warner > > Could you tell me please if devmatcher supports taking over a PCI device > which is attached by a generic driver already ? vga attaching modern GPUs > comes to mind . > No. Newbus doesn't currently support reprobing, though some preliminary support. I have it on my list. Warner Dan > > > > On Nov 20, 2018, at 15:26, Bjoern A. Zeeb < > bzeeb-lists@lists.zabbadoz.net> wrote: > > > > On 20 Nov 2018, at 8:17, dan_partelly@rdsor.ro wrote: > > > >>>> No, that's not what's happening. wlan0 isn't racing anything, becaus= e > it's no longer listed in ifconfig > >> > >> > >> But when is created lagg0 ? Acording rc output on screen , creation of > cloned interface lagg0 takes place before wlan0 is created. Then this > means SIOCLAGPORT will fail with Invalid argument. Also lagg0 is started > at netif time as far as I know. > >> Firmware for the wireless card is loaded later, and only even later > wlan0 is created. So the way I see it, lagg0 cannot have a wlan0 port unt= il > firmware for the card is loaded and wlan0 is created, which takes place w= ay > after the system attempts to configure lagg0 ? Am I missing something ? > > > > lagg might be a problem. > > > > > > While we are on the topic: I also noticed on a fixed 10G card that the > network startup it went through strangely wasn=E2=80=99t the same as it w= as when > the driver was loaded and service netif start was called again. I have n= ot > had time to debug that any further. > > > > > >> Also, can you please tell me what happens that devmatch tries to load > uhidd multiple times ? > > > > That=E2=80=99s probably similar to > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232782 ? > >