From nobody Sun Jul 04 22:17:48 2021 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 48A9B11FF75A for ; Sun, 4 Jul 2021 22:18:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4GJ39M2BNpz4hdT for ; Sun, 4 Jul 2021 22:17:59 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x835.google.com with SMTP id n9so11021481qtk.7 for ; Sun, 04 Jul 2021 15:17:59 -0700 (PDT) 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=fYpQMQ3bNm0beIWDPgcUXD6ztYZMMaGljBj0WmC/AsQ=; b=MXbZi72NChxMDGlKYpXZ0E1euWa/0paTMPiQJNDbFh4YLktajjU/fbcP+NdE7ZOSGi TVAqNeycxUFQFQW0WyfQF3/yVhvsreI9SDE0sJiLi+WXbhu0/E3On9P9KekW7TbCEdM/ BDB0FSy9kqtbASECD4QDBxd1TSyoYWlP8u+fKa9w+62pebTixC8RsXBCGI58BZZ9FG9v +DigZwT6dZVHRpECqc0nZ6dN9N3Fc84tSNW/mCUXJ/waCaY1Ro5oRZXVt6bzTMVcsGuK 0/3mfH0SszEr50SP3uTE1qPeOp25sWpoMm2KzaFEfxYZxTuADTwPKjHMDoG0deKwUNwS zQ9w== 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=fYpQMQ3bNm0beIWDPgcUXD6ztYZMMaGljBj0WmC/AsQ=; b=k7nPT6uhznyk+fLLVmfl2fg6jw1z3Ui+z8bp3n/6l6KrayDlOy6GqsYssXwo0gGaPO 6f6rHoJ3dGQvYyBmdY7UdnWPlNAXt0KUWHXiOHXpEi+i1JNsqcgmxf0wnYDB6XD2y9/c gjewf27lH1atjFtRdqSgZH0E0yhJRlxqLspo9F8OWub9fyIKw89TG+FI9heij3MupU6k yzKi0CGnseYhecAbcoc4pex9dDaUzQcnPMvjC+TOh+JVg2AD2GWpfzie6G77uIQTMXq0 XG6egIUvErdQ4UtQlYAX4fP02Yo0kCOlavW4tZTEpbtlEKYy/L11FFo9WLs9HOJIZPou Q1cQ== X-Gm-Message-State: AOAM533lB1TDFyM0H0cMdj3l8z2fh88O1+87msBk/Bk9RQmWOO8GXLwT Q3gko8G+HwsON/7otz540vNYnLa3NG7rmqKsraH+niCLpTkaNw== X-Google-Smtp-Source: ABdhPJxzTxUmb8gaxeS/JHVaqCctvM3ztWEXwKgb6pe3NV8vxcDiC8q95wWzm+FV0Z5qsw38Rarn3RPAZbKHiZwqX/k= X-Received: by 2002:ac8:43c2:: with SMTP id w2mr6213244qtn.235.1625437078316; Sun, 04 Jul 2021 15:17:58 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <1492e0b20fc2781675e0eda09fc3397c@neelc.org> In-Reply-To: <1492e0b20fc2781675e0eda09fc3397c@neelc.org> From: Warner Losh Date: Sun, 4 Jul 2021 16:17:48 -0600 Message-ID: Subject: Re: CURRENT- and vmd(8): Panic upon bootup with recent HEAD To: Neel Chauhan Cc: FreeBSD Current , Doug Ambrisko , Warner Losh Content-Type: multipart/alternative; boundary="000000000000a87ab505c6538f0d" X-Rspamd-Queue-Id: 4GJ39M2BNpz4hdT X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=MXbZi72N; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::835) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-0.13 / 15.00]; ARC_NA(0.00)[]; MAILMAN_DEST(0.00)[current]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-0.66)[-0.658]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; NEURAL_SPAM_MEDIUM(0.94)[0.943]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::835:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.41)[-0.414]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::835:from]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::835:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-ThisMailContainsUnwantedMimeParts: Y --000000000000a87ab505c6538f0d Content-Type: text/plain; charset="UTF-8" On Sun, Jul 4, 2021 at 3:13 PM Neel Chauhan wrote: > Hi freebsd-current@ (CC'd ambrisko@ and imp@), > > Right now, with a laptop (HP Spectre x360 13t-aw200) which needs the > vmd(8) driver for NVMe, I am getting kernel panics upon bootup with a > recent kernel. > > Here's a screenshot of the panic: > https://bz-attachments.freebsd.org/attachment.cgi?id=226185 (blurry > since I took it on the plane) > > The bug is here: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256915 > > If I use an older kernel (which I'm doing for now), it works fine. If I > use the memstick USB, it crashes with the same panic. > > I initially thought it was commit > ddfc9c4c59e2ea4871100d8c076adffe3af8ff21, but even when I reverted to > one before the said commit, it still panicked with the same error. > > I don't see any changes to vmd(8), so changes to some other PC subsystem > (PCI/ACPI/x86/NVMe/etc.) after commit > ab6d05336caaa10ae315f81534851e3764a8660c (current kernel commit) must > have caused the error. > Have you used 'git bisect' yet? It looks like there's only about 244 commits between last known working and the known broken commit of mine.... The panic is because we're trying to get the pci attributes of a non-pci device and an assertion is failing. Warner --000000000000a87ab505c6538f0d--