From nobody Tue Apr 23 19:12:21 2024 X-Original-To: freebsd-virtualization@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 4VPBZp5z0nz5HtB9 for ; Tue, 23 Apr 2024 19:12:34 +0000 (UTC) (envelope-from feurry@gmail.com) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VPBZp1qngz4cj3 for ; Tue, 23 Apr 2024 19:12:34 +0000 (UTC) (envelope-from feurry@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-7de80bc1f84so37350339f.0 for ; Tue, 23 Apr 2024 12:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713899553; x=1714504353; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Oe0Sor30GqV8VfNp4QgnzffZ9Ng4qxH10iggoP29lgI=; b=Qc2/7UXtJbMvRdGN7JelM5p13jnl/jSY2iuSN1gVeREKU9//CK+f102pQQuh9A8Pae wbvAkOrtXXKSBb1of3iGf6GMg5ADhUagZz6Dkmu/tAlBfSWpBodDmIzfpYNoZlBaUwff 2TIkbFKndCRSilIn39hLuLtckblgL7EE1k+kB9F7f3eicNr1rRsZikb0/TJRp0OR7JyW sdc2japIKEacMaRaU+KZwciC0A1XU57T2BrxgeMIjX3iG1YkqZ1MEai6Dmpdm+rPGXlP 1Z7XTFPLy0cRgrBssf8CV00bx0stWMRAqwqcfuIiE4rk0z9MsX1t4AUyi1x+/0/8uQNf AMfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713899553; x=1714504353; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Oe0Sor30GqV8VfNp4QgnzffZ9Ng4qxH10iggoP29lgI=; b=IRzqYDrT0UxIsFTetjbe3wZB+DDey/UHdOCAW0ENyYdqx7r3FU1mZkDIkFbypVqXn6 fdkaq+LAWrgIWf4AfExBWP8c2vT1bGlO5eH5X90l//C69HEtoPHD1/JMan74LbWxMufk oMRlm6Rm2TU2Qrqres09Ah/XrNmZ0bRT53Y9U8YjGqebOKi4HeKk3CgieEcjjDRHsXdt 8AONiZR10DWlxkgn+EYoPGDhgqTJLwVGVlVseNLC6oxiXjgL6Bw7chBKXR95CtEmdwkX hyXm5YYJS2W5Encq1AcDjPTBsgul5D2wkgeFqVokO5wnLvT6fmpVF/MHopb6OWLEKaIQ q5NQ== X-Gm-Message-State: AOJu0Yz0oI7K+aruPIHhauMCVQ47ZnTZ4iSTfHUXF08YBJ4fDRh0vleM nXc61ldlgavYZKThDo/WfT1XXXmVuWFrNXBloxnlMlw7SOF3mDnzT8Mip24XuyZ6VwnvFjhFX6o CmLKd8ReNV1C4UMMCFBbJJE7yvRqaztj9 X-Google-Smtp-Source: AGHT+IEczjMMF4C9qZTZe4zJk4w70+2256iH2V2549ZbvXzxtVzSjPOG4KkAZx23FpFd0x6PAPKaCxB55/GBJRSLBHQ= X-Received: by 2002:a5e:dd4a:0:b0:7d6:631d:7b4 with SMTP id u10-20020a5edd4a000000b007d6631d07b4mr371086iop.13.1713899552781; Tue, 23 Apr 2024 12:12:32 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 References: <3pqs6911-7pr5-6s7q-84ro-p4p1680ps48s@yvfgf.mnoonqbm.arg> In-Reply-To: <3pqs6911-7pr5-6s7q-84ro-p4p1680ps48s@yvfgf.mnoonqbm.arg> From: Peter Miller Date: Tue, 23 Apr 2024 14:12:21 -0500 Message-ID: Subject: Re: pci passthrough Mediatek MT7922 doesn't work To: "Bjoern A. Zeeb" Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4VPBZp1qngz4cj3 O.K. thanks for that info. With pptdevs="1/0/0" Before bhyve is started. ppt0@pci0:1:0:0: class=0x028000 rev=0x02 hdr=0x00 vendor=0x14c3 device=0x0616 subvendor=0x14c3 subdevice=0x223c vendor = 'MEDIATEK Corp.' device = 'MT7922 802.11ax PCI Express Wireless Network Adapter' class = network bar [10] = type Prefetchable Memory, range 64, base 0x7f30800000, size 1048576, enabled bar [18] = type Memory, range 64, base 0x60900000, size 32768, enabled cap 10[80] = PCI-Express 2 endpoint max data 128(128) FLR RO NS max read 512 link x1(x1) speed 5.0(5.0) ASPM L1(L0s/L1) ClockPM enabled cap 05[e0] = MSI supports 32 messages, 64 bit, vector masks cap 01[f8] = powerspec 3 supports D0 D3 current D0 ecap 000b[100] = Vendor [1] ID 1556 Rev 1 Length 8 ecap 0018[108] = LTR 1 ecap 001e[110] = L1 PM Substates 1 ecap 0001[200] = AER 2 0 fatal 0 non-fatal 1 corrected PCI-e errors = Correctable Error Detected Unsupported Request Detected Corrected = Advisory Non-Fatal Error After bhyve is started. ppt0@pci0:1:0:0: class=0x028000 rev=0x02 hdr=0x00 vendor=0x14c3 device=0x0616 subvendor=0x14c3 subdevice=0x223c vendor = 'MEDIATEK Corp.' device = 'MT7922 802.11ax PCI Express Wireless Network Adapter' class = network bar [10] = type Prefetchable Memory, range 64, base 0x7f30800000, size 1048576, enabled bar [18] = type Memory, range 64, base 0x60900000, size 32768, enabled PCI errors = Master Data Parity Error Sent Target-Abort Received Target-Abort Received Master-Abort Signalled System Error Detected Parity Error Now, without pptdevs. This matches the 'before bhyve' aside from the device name. none0@pci0:1:0:0: class=0x028000 rev=0x02 hdr=0x00 vendor=0x14c3 device=0x0616 subvendor=0x14c3 subdevice=0x223c vendor = 'MEDIATEK Corp.' device = 'MT7922 802.11ax PCI Express Wireless Network Adapter' class = network bar [10] = type Prefetchable Memory, range 64, base 0x7f30800000, size 1048576, enabled bar [18] = type Memory, range 64, base 0x60900000, size 32768, enabled cap 10[80] = PCI-Express 2 endpoint max data 128(128) FLR RO NS max read 512 link x1(x1) speed 5.0(5.0) ASPM L1(L0s/L1) ClockPM enabled cap 05[e0] = MSI supports 32 messages, 64 bit, vector masks cap 01[f8] = powerspec 3 supports D0 D3 current D0 ecap 000b[100] = Vendor [1] ID 1556 Rev 1 Length 8 ecap 0018[108] = LTR 1 ecap 001e[110] = L1 PM Substates 1 ecap 0001[200] = AER 2 0 fatal 0 non-fatal 1 corrected PCI-e errors = Correctable Error Detected Unsupported Request Detected Corrected = Advisory Non-Fatal Error There's also this message in /var/log/messages, which appears to be happening when pptdevs is enabled. kernel: pci0:1:0:0: Transactions pending after FLR! -- Thanks Peter