From nobody Fri Feb 03 14:20:43 2023 X-Original-To: freebsd-hackers@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 4P7dBB0mmzz2pBD0 for ; Fri, 3 Feb 2023 14:21:22 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 4P7dB932M8z4HKs for ; Fri, 3 Feb 2023 14:21:21 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="bo3Gh/ZA"; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::52e as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x52e.google.com with SMTP id f7so5322645edw.5 for ; Fri, 03 Feb 2023 06:21:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PE7pGeRJKfzVPr/tgJI7WtjLz2gvLr5LYWWdLP1Fbvs=; b=bo3Gh/ZANvpiq8SkGhaKjZs6VvrfUgWA4n+4xmLNJ6ix6s1Lk6ZRX7G87hTLKcsO+6 i84XG+RjpQUJCKjONX9AaQpCY/6F8C5GupOYuHFoMgodAB3Gw8SV/WdP1j/IkaS24brE 8BCwVTD+v2+KZ2aau3axq4qakJvdfu0wvKlDMIpuWaY8sYrtSXN2MMETQfZMQ00DRapo eKfxSi6aKXF4KtizAUl7udoM7Afrj9aMxFBezJolJu1/TJjSNUYFIvDGqsaVPQPaBVe3 1A1iOgVgHqV1md0hQeveBcidkjyPpWJOplvhIpob5DpFo9B0UVHI/RrnpR82vlq4t7lY nLdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=PE7pGeRJKfzVPr/tgJI7WtjLz2gvLr5LYWWdLP1Fbvs=; b=0e/qxppHhB1rzQ3QIGmvqSpHgcb4JT5ZnygcIS0YR2/MUvC7Rai61C8m/W7lR2amXc 6f26QiFRoKTzY9KLd9YN1+p5tLdzzB2QMc36802afVVbwWRmZdoBe+Ep2tNk/aYhSEAJ lm8JULXqGT+JGiZOkGkG5urPJSKuPjCvryp2kKEFngmJh2w4muZcISdCqQZtPFGoTmsq FtC1Yvd7AFpmh4aqTrv8QEaZ639swUBqbyBkpaDCtaL9WVIwb2YIrAk/i2c06SlMMB4t PouFE+6DTNN83OCjQbyARoi8+t4d7ozgidWxh67wOP5+bHlw7RyRvpmMhktFONtDF5iL IoNw== X-Gm-Message-State: AO0yUKVy7dVljJMI3WmZbuBtI8sB3SIDr7qI5VYStbx73+Tw7C5lFMrU Lb8l0jvbscb9i0uhzR43EfHYkRdhacnze/dEktObkdAlo+s= X-Google-Smtp-Source: AK7set9YQbNNMRg0XRVt/PpPVhgLY4KucSADadkrqzoSHdSBsMnbfG7fMAyGuVIxzHguFpPkaOIUNiqz/4JJdAVBDl4= X-Received: by 2002:a05:6402:17cf:b0:4a1:bb88:94b7 with SMTP id s15-20020a05640217cf00b004a1bb8894b7mr3146822edy.65.1675434080012; Fri, 03 Feb 2023 06:21:20 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: <09A3D05B-E269-437F-8ACB-A150EBCACF4E@dons.net.au> <128F6D81-D71B-4BC7-9143-8205E826088F@dons.net.au> <4E67D54E-CF0E-4A56-9B6B-51C359B7CEE2@dons.net.au> In-Reply-To: From: Mario Marietto Date: Fri, 3 Feb 2023 15:20:43 +0100 Message-ID: Subject: Re: devctl: Failed to detach pci0:1:0:0: Device busy / devctl: Failed to set pci0:1:0:0 driver to ppt: Device busy To: "Daniel O'Connor" Cc: freebsd-hackers Content-Type: multipart/alternative; boundary="0000000000002f0bf005f3cc6574" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52e:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4P7dB932M8z4HKs X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --0000000000002f0bf005f3cc6574 Content-Type: text/plain; charset="UTF-8" I forgot that the pptdevs driver covers also the slot of the USB controller : ppt6@pci0:5:0:0: class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x1b73 device=0x1100 subvendor=0x1b73 subdevice=0x1100 Il giorno ven 3 feb 2023 alle ore 15:17 Mario Marietto < marietto2008@gmail.com> ha scritto: > Very interesting behavior. I've added this new line in /etc/rc.conf : > (until some minutes ago I didn't use it because I was using the intel > driver,installed by the package : xf86-video-intel-2.99.917.916_2,1) > > kld_list="i915kms acpi_video" > > and this line in /boot/loader.conf : > > pptdevs="1/0/0 1/0/1 2/0/0 2/0/1 2/0/2 2/0/3 5/0/0" > > and boom. pptdevs worked again: > > # pciconf -l > > ppt0@pci0:1:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de > device=0x1c02 subvendor=0x19da subdevice=0x2438 > ppt1@pci0:1:0:1: class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de > device=0x10f1 subvendor=0x19da subdevice=0x2438 > ppt2@pci0:2:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de > device=0x1e04 subvendor=0x19da subdevice=0x2503 > ppt3@pci0:2:0:1: class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de > device=0x10f7 subvendor=0x19da subdevice=0x2503 > ppt4@pci0:2:0:2: class=0x0c0330 rev=0xa1 hdr=0x00 vendor=0x10de > device=0x1ad6 subvendor=0x19da subdevice=0x2503 > ppt5@pci0:2:0:3: class=0x0c8000 rev=0xa1 hdr=0x00 vendor=0x10de > device=0x1ad7 subvendor=0x19da subdevice=0x2503 > > So,maybe there is some incompatibility between the intel and the pptdevs > driver ? take also in consideration that on xorg.cong I'm still using the > intel driver : > > Section "Device" > Identifier "Card0" > Driver "intel" > BusID "PCI:0:2:0" > EndSection. > > It's a confusing situation. > > Il giorno ven 3 feb 2023 alle ore 14:27 Daniel O'Connor < > darius@dons.net.au> ha scritto: > >> >> >> > On 3 Feb 2023, at 23:52, Mario Marietto wrote: >> > To put the pci addresses under ppt using the loader.conf always worked >> for me. I would like to understand why it does not work anymore for some >> months. Maybe some new feature and some obscure bug has been introduced >> inside the bhyve source code. This is important to understand why I'm not >> able to attach / detach the nVidia driver from the host to the guest os and >> it lets me think that your consideration may be relevant in some way. >> >> It would have been more helpful if you had said up front that it used to >> work for you.. >> >> Do you mean it used to work for these nvidia devices or something else, >> or..? >> >> -- >> Daniel O'Connor >> "The nice thing about standards is that there >> are so many of them to choose from." >> -- Andrew Tanenbaum >> >> > > -- > Mario. > -- Mario. --0000000000002f0bf005f3cc6574 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I forgot that th= e pptdevs driver covers also the slot of the USB controller :

ppt6@pci0:5:0:0: =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c0330 rev=3D0x10 hdr=3D0x00 vendor=3D= 0x1b73 device=3D0x1100 subvendor=3D0x1b73 subdevice=3D0x1100<= /div>

Il giorno ven = 3 feb 2023 alle ore 15:17 Mario Marietto <marietto2008@gmail.com> ha scritto:
<= div>Very interesting behavior. I'v= e added this new line in /etc/rc.conf : (until some minutes ago I didn'= t use it because I was using the intel driver,installed by the package : xf= 86-video-intel-2.99.917.916_2,1)

<= /span>
= kld_list= =3D"i915kms acpi_video"

and this line in /boot/loader.conf :

<= span style=3D"font-family:arial,sans-serif"><= span style=3D"font-family:arial,sans-serif">pptdevs=3D"1/0/0 1/0/1 2/0/0 2/0/1= 2/0/2 2/0/3 5/0/0"
<= span style=3D"font-family:arial,sans-serif">
and boom. pptdevs worked again:

<= span style=3D"font-family:arial,sans-serif"># pciconf -l

ppt0@pci0:1:0:0: =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de devic= e=3D0x1c02 subvendor=3D0x19da subdevice=3D0x2438
ppt1@pci0:1:0:1: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device= =3D0x10f1 subvendor=3D0x19da subdevice=3D0x2438
ppt2@pci0:2:0:0: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x03= 0000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1e04 subvendor=3D0x19= da subdevice=3D0x2503
ppt3@pci0:2:0:1: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x04= 0300 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x10f7 subvendor=3D0x19= da subdevice=3D0x2503
ppt4@pci0:2:0:2: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c= 0330 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1ad6 subvendor=3D0x19= da subdevice=3D0x2503
ppt5@pci0:2:0:3: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0class=3D0x0c= 8000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1ad7 subvendor=3D0x19= da subdevice=3D0x2503


So,maybe there i= s some incompatibility between the intel and the pptdevs driver ? take also= in consideration that on xorg.cong I'm still using the intel driver :<= br>

Section "Device"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Identifier =C2=A0&quo= t;Card0"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Driver =C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0"intel"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0BusID =C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0"PCI:0:2:0"
EndSection.

It's a confusing situation.

Il g= iorno ven 3 feb 2023 alle ore 14:27 Daniel O'Connor <darius@dons.net.au> ha scri= tto:


> On 3 Feb 2023, at 23:52, Mario Marietto <marietto2008@gmail.com> wrote:
> To put the pci addresses under ppt using the loader.conf always worked= for me. I would like to understand why it does not work anymore for some m= onths. Maybe some new feature and some obscure bug has been introduced insi= de the bhyve source code. This is important to understand why I'm not a= ble to attach / detach the nVidia driver from the host to the guest os and = it lets me think that your consideration may be relevant in some way.

It would have been more helpful if you had said up front that it used to wo= rk for you..

Do you mean it used to work for these nvidia devices or something else, or.= .?

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum



--
Mario.
=


--
Mario.
=
--0000000000002f0bf005f3cc6574--