From owner-freebsd-current@freebsd.org Fri Dec 6 22:33:23 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 268DC1B93AB for ; Fri, 6 Dec 2019 22:33:23 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47V6my0WFHz4125 for ; Fri, 6 Dec 2019 22:33:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x731.google.com with SMTP id k6so7883963qki.5 for ; Fri, 06 Dec 2019 14:33:21 -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=opFhOAL3E/6ZKwZYah55cbW9BoxyeXCIvFzxLkh3pQI=; b=EXC5cIHXb6bRy2W+m+G+G6EtOtsR70xjE4eIbvSznVqynJDq6DjUkZctt3IMnetJfm miBGzJyO1EEwWImcRTPfoyRgrU0abeqQ4BuG7s0RfQ/8iweeWsrPCNUemkzSeXsnAcB7 qX85S0JoybTQY3adC+L6c7U75uXAVyn07xNeXz2XRuVxwNXkhDK44UH6vRtvdBG+c4qU p8T8bFUS70tp2EC4HJBU/X8/MRieOQokTdbYXy21hllKVN+1kxBmrcM9++I+idNA0D93 PX3jbPX26FsNzuRILeo5qQKkthVNFrgFERyI8HFJ/O9OzXmvBHoJMTxsrnGiq73+qMU4 oUYQ== 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=opFhOAL3E/6ZKwZYah55cbW9BoxyeXCIvFzxLkh3pQI=; b=hQKfZ2pgmGO3MjamlxOdXLfszz413h+VESpODqzTqEcltZ4mHufYYTWF8KTqxnsSiy uCShMRHIkNctOH8zSitenQk4Ihci9/pC4Ao/C5jq4uquc1B4Zq3Ax1Tyr2kROUrGv9uc I9jaId7SMM4lX2c0tjSNQVjfdGYWv53/lMD2QXuorVy0+xZu8+n4Jj0NIfxCIEz5beAD JAFtKHKHdEH4iiApCgDJyYtAQHKNGWbiJTyzezS+2OTBL74ckARjCaHd538cCOv+U8IQ ayVtbmt8DoVPbNGc9785LDNp0LlpwQlFPaqQam3vWStjLIkj4RoYDd8SAvJjhLNNq//x gLPw== X-Gm-Message-State: APjAAAXpgKyiiAhs3CZ8kAkoUox/By4o3OvRsrmY+ayIiJD3MT+8hqDp qR6WPiHpT19hYclIbQCl4kGXA3TYLXFk16PpkddpfHbL7nk= X-Google-Smtp-Source: APXvYqyxGgzSSNHXMP7szNoiYYifU/RSmXsSiztB6t3viZy3GLzHO0h8z4iIdlTHIKbt5GOVKOt/XPOlv9czAls9gXg= X-Received: by 2002:a05:620a:795:: with SMTP id 21mr5793257qka.60.1575671600387; Fri, 06 Dec 2019 14:33:20 -0800 (PST) MIME-Version: 1.0 References: <20191206202316.GA1053@troutmask.apl.washington.edu> <20191206223144.GA3224@troutmask.apl.washington.edu> In-Reply-To: <20191206223144.GA3224@troutmask.apl.washington.edu> From: Warner Losh Date: Fri, 6 Dec 2019 15:33:09 -0700 Message-ID: Subject: Re: CAM breaks USB [was Re: USB causing boot to hang] To: Steve Kargl , Alexander Motin Cc: FreeBSD Current X-Rspamd-Queue-Id: 47V6my0WFHz4125 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=EXC5cIHX; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::731) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-4.69 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,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:+]; RCVD_IN_DNSWL_NONE(0.00)[1.3.7.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]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.69)[ip: (-9.27), ipnet: 2607:f8b0::/32(-2.23), asn: 15169(-1.93), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" 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: Fri, 06 Dec 2019 22:33:23 -0000 On Fri, Dec 6, 2019 at 3:31 PM Steve Kargl wrote: > On Fri, Dec 06, 2019 at 12:23:16PM -0800, Steve Kargl wrote: > > I updates /usr/src to r355452, and updated by kernel and > > world. Upon rebooting, verbose boot messages susgests > > the system is hanging when USB starts to attach. With > > the 3-week kernel verbose boot shows: > > > > ... > > pcm4: at nid 30 on hdaa1 > > pcm4: Playback: > > pcm4: Stream cap: 0x00000005 AC3 PCM > > pcm4: PCM cap: 0x000e05f0 16 20 24 bits, 32 44 48 88 96 192 KHz > > pcm4: DAC: 6 > > pcm4: > > pcm4: nid=30 [pin: SPDIF-out (Grey Jack)] > > pcm4: + <- nid=6 [audio output] [src: pcm] > > pcm4: > > pcm4: Mixer "vol" -> "none": child=0x00000010 > > pcm4: Mixer "pcm": parent="vol" > > pcm4: Soft PCM mixer ENABLED > > pcm4: Playback channel set is: Front Left, Front Right, > > pcm4: Playback channel matrix is: 2.0 (unknown) > > usbus0: 5.0Gbps Super Speed USB v3.0 > > usbus1: 12Mbps Full Speed USB v1.0 > > ... > > > > end with a prompt on the console. With today's kernel, > > boot is hung after the last pcm4: message and no usbus0 > > is displayed. > > > > The booting kernel/system is a > > > > % uname -a > > FreeBSD 13.0-CURRENT #1 r354658: Wed Nov 13 11:23:32 PST 2019, amd64 > > > > Again, the failing kernel is r 355452 > > > > The problem seems to be caused 355010. This is a commit to > fix CAM, which seems to break USB. > Yes. mav@ made this change... Warner