From nobody Sun Jan 29 19:07:53 2023 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 4P4gns3vTGz3bq0c; Sun, 29 Jan 2023 19:08:33 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 4P4gnr6Kxjz3D10; Sun, 29 Jan 2023 19:08:32 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZLYkTJ3Z; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x531.google.com with SMTP id f7so1832165edw.5; Sun, 29 Jan 2023 11:08:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=KcqQ8Jt4znegl3Pgn4KcLIBxsBjh//Jdt6b7lDvi3dg=; b=ZLYkTJ3ZTbRDzA6dzYIDZHqYYrMSKiBATedmtgTRBG+6h8bFCTujzBss52sJB3VMb/ YFkJOv2N/b6YxoxWUWK0DTERODkWRVdFHcQwxZZmYZWeY+p1ae3W4+ZOBg8koWAYt6V0 NFUkfuJlNzjIuXNwUtTPUSw2/n6Yilq1F8WrmKLSky4jKVAwEwok9kEQ18m4+v2Jdnx5 +olNk8+VT0ZaHagBAbpiOzRuVgTZ12uA2YGiyXaQNQyPcoPtz7ULZ/VERWvpEmPU/ePu HQC0owykzn8NoOgSXxOQP5alWgxouW6OwR52M7aCFU/zvVRDLV9VWFIjJcVldeyL4byE nBIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KcqQ8Jt4znegl3Pgn4KcLIBxsBjh//Jdt6b7lDvi3dg=; b=TOMJFZ4IYmnmaRnuu5ol06lF3Dyu4fpYgvQuMl8AaD3pT1bjmgmxgxKYNN0/BXNQYl CWTWY2GUURoMwpN88gpUC2NQUGczb0OR1oLbaAPh7KZmc11pgVxSUqHZbD2qkNqqLNpd r7aDjhiniUUWiAt68iVQgqrj7/CRv0Vkx28TTSYbZfxud1BxBjytdc3wDT94bs3/OOFF O/7s8AZDJLpPKQfpax1FJcJ7svB7gSB3hvz2Bdb9yALicty8OHpiutfMJsiQUwd6zpAD sazS8revMlXgMvMPgs+XIexv4+kP7kOv8//2qgpQxEEA0fECH4nTDwUb88aUwEmUwqBo Y+Xw== X-Gm-Message-State: AO0yUKWvpf0HrWxItPPX9fXSOyUxHNfSfiPLkUKHdE/AfBORpqvPOMfi 0i2hAhv5WlY6YJgxEHSwYQc12YfbepLck469HLxI1Vh75lTBZL7D X-Google-Smtp-Source: AK7set/rznT/hPeJS7FZQg1zfdfSvark7DJ+80rVLtwmf4IbpvPnKvXe7gIpD5VfeRJKWEAfWF17LAgdDztXAWWHdmY= X-Received: by 2002:aa7:cd85:0:b0:4a2:ea2:4f38 with SMTP id x5-20020aa7cd85000000b004a20ea24f38mr2341407edv.20.1675019310471; Sun, 29 Jan 2023 11:08:30 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 From: Mario Marietto Date: Sun, 29 Jan 2023 20:07:53 +0100 Message-ID: Subject: devctl: Failed to detach pci0:1:0:0: Device busy / devctl: Failed to set pci0:1:0:0 driver to ppt: Device busy To: FreeBSD virtualization , freebsd-hackers@freebsd.org, =?UTF-8?Q?Corvin_K=C3=B6hne?= , Dustin Marquess , Alexander Eichner , theraven@freebsd.org Content-Type: multipart/alternative; boundary="000000000000fe1faf05f36bd226" X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-0.99)[-0.986]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::531:from]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org,freebsd-hackers@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_TO(0.00)[freebsd.org,beckhoff.com,gmail.com,aeichner.de]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4P4gnr6Kxjz3D10 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000fe1faf05f36bd226 Content-Type: text/plain; charset="UTF-8" Hello to everyone. In some FreeBSD 13.1 machines I have the problem below,in some others I don't have it. I would like to know what the causes could be and how to fix it. root@marietto:/usr/home/marietto # devctl detach pci0:1:0:0 devctl: Failed to detach pci0:1:0:0: Device busy root@marietto:/usr/home/marietto # devctl detach pci0:2:0:0 devctl: Failed to detach pci0:2:0:0: Device busy Not even it works if instead of detach them, I try to attach them directly to the ppt driver : root@marietto:/usr/home/marietto/bhyve/Files # devctl set driver pci0:2:0:0 ppt devctl: Failed to set pci0:2:0:0 driver to ppt: Device busy root@marietto:/usr/home/marietto/bhyve/Files # devctl detach pci0:2:0:0 devctl: Failed to detach pci0:2:0:0: Device busy Pci addresses 1:0:0 and 2:0:0 belong to the two GPUs that I have on my PC : vgapci0@pci0:1:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1c02 subvendor=0x19da subdevice=0x2438 vgapci1@pci0:2:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1e04 subvendor=0x19da subdevice=0x2503 Actually I have commented this line on /boot/loader.conf,because it makes no difference if I keep it uncommented or not. It is totally ignored. #pptdevs="1/0/0 1/0/1 2/0/0 2/0/1 2/0/2 2/0/3" In every FreeBSD machine I load the nvidia kernel modules adding the line below to /etc/rc.conf : kld_list="nvidia nvidia-modeset" and I have installed the nvidia-driver package on every machine. But as I said,in some of them I see the error above,in some others I don't see it. I'm not able to isolate the dysfunctional pattern. The xorg.conf file is the same for each machine. Can someone help me to troubleshoot the error ? thanks. -- Mario. --000000000000fe1faf05f36bd226 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello to ev= eryone.
<= br>
In some Fr= eeBSD 13.1 machines I have the problem below,in some others I don't hav= e it. I would like to know what the causes could be and how to fix it.
=

<= /div>
root@marietto:/usr/home/mari= etto # devctl detach pci0:1:0:0

devctl: Failed = to detach pci0:1:0:0: Device busy

root@marietto:= /usr/home/marietto # devctl detach pci0:2:0:0

<= /span>
devctl: Failed to detach pci0:2:0:0: Devi= ce busy
=
<= span style=3D"font-family:monospace">Not even it works if instead of detach them, I try to attach them di= rectly to the ppt driver :

root@marietto:/usr/home/marietto/b= hyve/Files # devctl set driver pci0:2:0:0 ppt
devctl: Failed to set pci0:2:0:0 driver to ppt: Device busy
=C2=A0
root@marietto:/usr/home/marietto/bhyve/Files # devct= l detach pci0:2:0:0
devctl: Failed to detach pci0:2:0:0: Device busy

Pci addresses 1:0:0 a= nd 2:0:0 belong to the two GPUs that I have on my PC :

vgapci0@pci0:1:0:0: =C2=A0=C2=A0=C2=A0=C2=A0class=3D0x030000 rev= =3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1c02 subvendor=3D0x19da subde= vice=3D0x2438
vgapci1@pci0:2:0:= 0: =C2=A0=C2=A0=C2=A0=C2=A0class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D= 0x10de device=3D0x1e04 subvendor=3D0x19da subdevice=3D0x2503

Actually I have commented this line on /boo= t/loader.conf,because it makes no difference if I keep it uncommented or no= t. It is totally ignored.

#pptdevs=3D"1/0/0 1/0/1 2/0/0 2/0/1 2/= 0/2 2/0/3"

In every FreeBSD machine I load the nvidia kernel modules addi= ng the line below to /etc/rc.conf :

=
kld_list=3D"nvidia nvidia-modeset"= ;

and I have installed the nvidia-driver package on every = machine. But as I said,in some of them I see the error above,in some others= I don't see it. I'm not able to isolate the dysfunctional pattern. The xorg.con= f file is the same for each machine. Can someone help me to troubleshoot th= e error ? thanks.

--
Mario.
--000000000000fe1faf05f36bd226--