Open emaste opened 5 months ago
This has been reported by bapt@ and dumbbell@ too but I don't have a recent enough Intel machine to reproduce. I guess this is https://github.com/freebsd/drm-kmod/blob/master/drivers/gpu/drm/i915/gt/intel_gt_sysfs.c#L20 this strncmp which means that we probably have something wrong wrt our kobj somewhere.
That panic is not reproducible with throttle_reason_attrs
stubbed out:
#if 0
if (GRAPHICS_VER(gt->i915) >= 11) {
ret = sysfs_create_files(kobj, throttle_reason_attrs);
if (ret)
drm_warn(>->i915->drm,
"failed to create gt%u throttle sysfs files (%pe)",
gt->info.id, ERR_PTR(ret));
}
#endif
However I then get a hang when invoking sysctl -a
.
sysctl -a
also fails on my daily driver laptop. Same kernel/drm-kmod version as above, hardware is:
vgapci0@pci0:0:2:0: class=0x030000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x3ea0 subvendor=0x17aa subdevice=0x2292
vendor = 'Intel Corporation'
device = 'WhiskeyLake-U GT2 [UHD Graphics 620]'
class = display
subclass = VGA
Updated headline to indicate that this is with GENERIC (so INVARIANTS enabled), and I don't recall what the failure was here (panic or hang).
This appears to be resolved with #283
Describe the bug panic in strncmp() from intel_gt_sysfs_get_drvdata() upon
sysctl -a
FreeBSD version Paste the output of
uname -aKU
PCI Info
DRM KMOD version 1af4c68be62c22429de556c5aa6e0c8bde584f0c from git
To Reproduce
kldload drm-kmod
sysctl -a