[Bug 283820] ixl multicast filter problems

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283820

Bug ID: 283820
   Summary: ixl multicast filter problems
   Product: Base System
   Version: 15.0-CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: b...@freebsd.org
  Reporter: ma...@freebsd.org
CC: krzysztof.gala...@intel.com

This commit had to be reverted for PR 281125:
https://cgit.freebsd.org/src/commit/?id=89e73359424

The problems ostensibly fixed by that commit are still here, so this PR serves
to track them.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283815] 'sysctl -a' hangs indefinitely

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283815

Bug ID: 283815
   Summary: 'sysctl -a' hangs indefinitely
   Product: Base System
   Version: 14.2-RELEASE
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: kern
  Assignee: b...@freebsd.org
  Reporter: vsasja...@gmail.com

Created attachment 256370
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256370&action=edit
/var/run/dmesg.boot (verbose)

After upgrading to 14.2R from 14.1R, I noticed that listing all sysctls doesn't
work anymore. It stops here:

dev.ahci.%parent:
dev.vgapci.1.%iommu: rid=0x10
dev.vgapci.1.%parent: pci0
dev.vgapci.1.%pnpinfo: vendor=0x8086 device=0x591b subvendor=0x1028
subdevice=0x07b1 class=0x03
dev.vgapci.1.%location: slot=2 function=0 dbsf=pci0:0:2:0
handle=\_SB_.PCI0.GFX0
dev.vgapci.1.%driver: vgapci
dev.vgapci.1.%desc: VGA-compatible display
dev.vgapci.0.wake: 0
^C^C^C

Process enters R+, eats 100% CPU and becomes unkillable:
jason@jnb: [?:0] ~ $ ps auwwx | grep '[s]ysctl'
jason25384 100.0  0.0   16888   4880  6  R+   15:000:49.15 sysctl
-a
jason@jnb: [?:0] ~ $ kill -9 25384
jason@jnb: [?:0] ~ $ ps auwwx | grep '[s]ysctl'
jason25384 100.0  0.0   16888   4880  6  R+   15:003:19.35 sysctl
-a
jason@jnb: [?:0] ~ $ procstat -kk 25384
  PIDTID COMMTDNAME  KSTACK
25384 101712 sysctl  -   pci_find_cap_method+0x11a
iommu_get_requester+0x192 device_sysctl_handler+0x216
sysctl_root_handler_locked+0x8a sysctl_root+0x1fa userland_sysctl+0x115
sys___sysctl+0x60 amd64_syscall+0xed fast_syscall_common+0xf8

In this state, subsequent 'sysctl kern.geom' works fine, while 'sysctl dev.cpu'
also hangs:
jason@jnb: [?:0] ~ $ ps auwwx | grep '[s]ysctl'
jason25436 100.0  0.0   13816   2236  5  R+   15:051:30.48 sysctl
dev.cpu
jason25384 100.0  0.0   16888   4880  6  R+   15:006:31.35 sysctl
-a
jason@jnb: [?:0] ~ $ procstat -kk 25436 25384
  PIDTID COMMTDNAME  KSTACK
25436 101172 sysctl  -  
sysctl_root_handler_locked+0x143 sysctl_root+0x1fa userland_sysctl+0x115
sys___sysctl+0x60 amd64_syscall+0xed fast_syscall_common+0xf8
25384 101712 sysctl  -   pci_find_cap_method+0x17a
iommu_get_requester+0x192 device_sysctl_handler+0x216
sysctl_root_handler_locked+0x8a sysctl_root+0x1fa userland_sysctl+0x115
sys___sysctl+0x60 amd64_syscall+0xed fast_syscall_common+0xf8
jason@jnb: [?:0] ~ $

No changes have been made to system configuration during upgrade.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283815] 'sysctl -a' hangs indefinitely

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283815

--- Comment #1 from Anton Saietskii  ---
Created attachment 256371
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256371&action=edit
'config -x /boot/kernel/kernel' output

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283815] 'sysctl -a' hangs indefinitely

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283815

--- Comment #2 from Anton Saietskii  ---
Created attachment 256372
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256372&action=edit
'kldstat -v' output

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283815] listing dev.vgapci.X.%iommu hangs indefinitely on NVIDIA card

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283815

Anton Saietskii  changed:

   What|Removed |Added

Summary|listing sysctl hangs|listing dev.vgapci.X.%iommu
   |indefinitely on |hangs indefinitely on
   |dev.vgapci.X while it's |NVIDIA card
   |NVIDIA card |

--- Comment #3 from Anton Saietskii  ---
Narrowed down the issue to a single OID.

I have the following GPU:
vgapci0@pci0:1:0:0: class=0x03 rev=0xa1 hdr=0x00 vendor=0x10de
device=0x1bb7 subvendor=0x1028 subdevice=0x07b1
vendor = 'NVIDIA Corporation'
device = 'GP104GLM [Quadro P4000 Mobile]'
class  = display
subclass   = VGA
cap 01[60] = powerspec 3  supports D0 D3  current D0
cap 05[68] = MSI supports 1 message, 64 bit
cap 10[78] = PCI-Express 2 legacy endpoint max data 256(256) RO NS
 max read 512
 link x16(x16) speed 8.0(8.0) ASPM L0s/L1(L0s/L1) ClockPM
disabled
ecap 0002[100] = VC 1 max VC0
ecap 0018[250] = LTR 1
ecap 0004[128] = Power Budgeting 1
ecap 0001[420] = AER 2 0 fatal 0 non-fatal 1 corrected
ecap 000b[600] = Vendor [1] ID 0001 Rev 1 Length 36
 0b 00 01 90 01 00 41 02 02 00 41 01 01 18 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00
ecap 0019[900] = PCIe Sec 1 lane errors 0

It's unused in my system, so being turned off by sysutils/acpi_call and xmj@'s
turn_off_gpu.sh from TuningPowerConsumption [0]:
vgapci0@pci0:1:0:0: class=0x03 rev=0xa1 hdr=0x00 vendor=0x10de
device=0x1bb7 subvendor=0x1028 subdevice=0x07b1
vendor = 'NVIDIA Corporation'
device = 'GP104GLM [Quadro P4000 Mobile]'
class  = display
subclass   = VGA
(With '\_SB.PCI0.PEG0.PEGP._OFF' method.)

After NVIDIA turned off, any sysctl call which tries to get dev.vgapci.X.%iommu
hangs. Getting other OIDs, e.g. dev.vgapci.0.%driver, works fine.
NOTE: this isn't DRM issue as I don't have any NVIDIA-related modules loaded.

[0]: https://wiki.freebsd.org/TuningPowerConsumption

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283799] tcpdump (14.2+) endian-swaps uid when parsing pflog data

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283799

--- Comment #7 from Kristof Provost  ---
(In reply to Joseph Mingrone from comment #6)
Yes, that looks good.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283799] tcpdump (14.2+) endian-swaps uid when parsing pflog data

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283799

--- Comment #8 from Joseph Mingrone  ---
Does this attribution work for you?

commit d282c04ff45f1b27c35f77385b7f0b2cdb82c3dd (HEAD -> pflogd-fix)
Author: Eric A. Borisch 
Date:   2025-01-02 20:21

tcpdump/print-pflog: Print uid with host endianness

PR: 283799
Reported by:eborisch+free...@gmail.com
Reviewed by:jrm, kp
Fixes:  0a7e5f1f02aad2ff5fff1c60f44c6975fd07e1d9

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283815] listing dev.vgapci.X.%iommu hangs indefinitely on NVIDIA card

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283815

--- Comment #4 from Anton Saietskii  ---
Compared 'vga'-containing commits between releng/14.2 and releng/14.1 --
identical.

Then compared 'iommu'-containing commits (as this OID hangs) and discovered
ec8d60f0d9b762880482e39f567db552c152d3a2 by kib@, which exposes the value. This
commit is only present in releng/14.2, so I believe it's the trigger. However,
most likely no more than a trigger -- not root cause.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283799] tcpdump (14.2+) endian-swaps uid when parsing pflog data

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283799

--- Comment #9 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=d72f87c0fd1418bdb814594ea8fc76a202f7d5c6

commit d72f87c0fd1418bdb814594ea8fc76a202f7d5c6
Author: Eric A. Borisch 
AuthorDate: 2025-01-03 00:21:52 +
Commit: Joseph Mingrone 
CommitDate: 2025-01-03 17:37:45 +

tcpdump/print-pflog: Print uid with host endianness

PR: 283799
Reported by:ebori...@gmail.com
Reviewed by:jrm, kp
Fixes:  0a7e5f1f02aad2ff5fff1c60f44c6975fd07e1d9

 contrib/tcpdump/print-pflog.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283799] tcpdump (14.2+) endian-swaps uid when parsing pflog data

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283799

Joseph Mingrone  changed:

   What|Removed |Added

 Status|New |Closed
 Resolution|--- |FIXED

--- Comment #10 from Joseph Mingrone  ---
Fixed and will MFC. (Oh darn.  I see the email was only corrected in the
Reported by: filed.  Sorry about that.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 267028] kernel panics when booting with both (zfs,ko or vboxnetflt,ko or acpi_wmi.ko) and amdgpu.ko

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267028

--- Comment #351 from George Mitchell  ---
Prepare not to be surprised.  I installed the kernel and the ports from my own
builds.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283815] 'sysctl -a' hangs indefinitely

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283815

Mark Linimon  changed:

   What|Removed |Added

   Keywords||regression

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 283815] listing sysctl hangs indefinitely on dev.vgapci.X while it's NVIDIA card

2025-01-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283815

Anton Saietskii  changed:

   What|Removed |Added

Summary|'sysctl -a' hangs   |listing sysctl hangs
   |indefinitely|indefinitely on
   ||dev.vgapci.X while it's
   ||NVIDIA card

-- 
You are receiving this mail because:
You are the assignee for the bug.