Hi, I noticed that running glxinfo on OpenBSD-release 7.5 amd64 gives an error:
$ glxinfo X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 25 Current serial number in output stream: 26 name of display: :0 I am getting a similar error with some programs using GLX, for example: glxgears: $ glxgears Error: glXCreateContext failed and Lagrange[1] Gemini client: $ lagrange Lagrange: A Beautiful Gemini Client X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 100 Current serial number in output stream: 101 I'd appreciate some help in diagnosing and solving this problem. This is the output of various diagnostic programs: ----------------------------------------------------------------------- $ doas inxi -G Graphics: Device-1: ATI Picasso driver: amdgpu Device-2: Sonix Integrated Camera driver: uvideo type: USB Display: server: X.org v: 1.21.1.11 driver: X: loaded: amdgpu unloaded: modesetting dri: radeonsi gpu: amdgpu API: OpenGL Message: GL data unavailable for root. $ usbdevs -v Controller /dev/usb0: addr 01: 1022:0000 AMD, xHCI root hub super speed, self powered, config 1, rev 1.00 driver: uhub0 addr 02: 2357:010c Realtek, 802.11n NIC high speed, power 500 mA, config 1, rev 0.00, iSerial 00E04C0001 driver: urtwn0 addr 03: 0458:0186 SiGmaMicro, USB Optical Mouse low speed, power 100 mA, config 1, rev 1.10 driver: uhidev0 addr 04: 174f:1176 Sonix Technology Co., Ltd., Integrated Camera high speed, power 500 mA, config 1, rev 0.28 driver: uvideo0 addr 05: 0cf3:e300 Atheros Communications, product 0xe300 full speed, self powered, config 1, rev 0.01 driver: ugen0 $ doas pcidump Domain /dev/pci0: 0:0:0: AMD 17h/1xh Root Complex 0:0:2: AMD 17h/1xh IOMMU 0:1:0: AMD 17h PCIE 0:1:1: AMD 17h/1xh PCIE 0:1:2: AMD 17h/1xh PCIE 0:8:0: AMD 17h PCIE 0:8:1: AMD 17h/1xh PCIE 0:20:0: AMD FCH SMBus 0:20:3: AMD FCH LPC 0:24:0: AMD 17h/1xh Data Fabric 0:24:1: AMD 17h/1xh Data Fabric 0:24:2: AMD 17h/1xh Data Fabric 0:24:3: AMD 17h/1xh Data Fabric 0:24:4: AMD 17h/1xh Data Fabric 0:24:5: AMD 17h/1xh Data Fabric 0:24:6: AMD 17h/1xh Data Fabric 0:24:7: AMD 17h/1xh Data Fabric 1:0:0: SK hynix unknown 2:0:0: Atheros QCA6174 3:0:0: ATI Picasso 3:0:1: ATI Radeon Vega HD Audio 3:0:2: AMD 17h/1xh Crypto 3:0:3: AMD unknown 3:0:5: AMD 17h/1xh I2S Audio 3:0:6: AMD 17h/1xh HD Audio $ dmesg OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 6277246976 (5986MB) avail mem = 6065999872 (5784MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.1 @ 0xba687000 (50 entries) bios0: vendor LENOVO version "E8CN34WW" date 04/28/2022 bios0: LENOVO 82C7 efi0 at bios0: UEFI 2.7 efi0: Phoenix Technologies Ltd. rev 0x12345678 acpi0 at bios0: ACPI 5.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT POAT BATB HPET APIC MCFG VFCT IVRS SSDT CRAT CDIT SSDT TPM2 FPDT SSDT SSDT SSDT BGRT UEFI SSDT acpi0: wakeup devices GPP0(S3) GPP1(S3) GPP2(S3) GPP3(S3) GPP4(S3) GPP5(S3) GPP6(S3) GP17(S3) XHC0(S3) GP18(S3) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpihpet0 at acpi0: 14318180 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Ryzen 3 3250U with Radeon Graphics, 2600.00 MHz, 17-18-01, patch 08108109 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,HWPSTATE,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu0: 32KB 64b/line 8-way D-cache, 64KB 64b/line 4-way I-cache, 512KB 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 25MHz cpu0: mwait min=64, max=64, C-substates=1.1, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Ryzen 3 3250U with Radeon Graphics, 2600.00 MHz, 17-18-01, patch 08108109 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,HWPSTATE,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu1: 32KB 64b/line 8-way D-cache, 64KB 64b/line 4-way I-cache, 512KB 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache cpu1: smt 1, core 0, package 0 tsc: cpu0/cpu1: sync test failed timecounter: active counter changed: tsc -> acpihpet0 cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD Ryzen 3 3250U with Radeon Graphics, 2600.00 MHz, 17-18-01, patch 08108109 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,HWPSTATE,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu2: 32KB 64b/line 8-way D-cache, 64KB 64b/line 4-way I-cache, 512KB 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache cpu2: smt 0, core 1, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: AMD Ryzen 3 3250U with Radeon Graphics, 2600.01 MHz, 17-18-01, patch 08108109 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,HWPSTATE,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu3: 32KB 64b/line 8-way D-cache, 64KB 64b/line 4-way I-cache, 512KB 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 32 pa 0xfec00000, version 21, 24 pins, can't remap ioapic1 at mainbus0: apid 33 pa 0xfec01000, version 21, 32 pins, can't remap acpimcfg0 at acpi0 acpimcfg0: addr 0xf8000000, bus 0-63 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (GPP0) acpiprt2 at acpi0: bus 2 (GPP1) acpiprt3 at acpi0: bus -1 (GPP2) acpiprt4 at acpi0: bus -1 (GPP3) acpiprt5 at acpi0: bus -1 (GPP4) acpiprt6 at acpi0: bus -1 (GPP5) acpiprt7 at acpi0: bus -1 (GPP6) acpiprt8 at acpi0: bus 3 (GP17) acpiprt9 at acpi0: bus -1 (GP18) acpiec0 at acpi0 acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000 acpicmos0 at acpi0 acpibat0 at acpi0: BAT0 model "L16M2PB2" serial 772 type LiP oem "SMP" "VPC2004" at acpi0 not configured "IDEA2004" at acpi0 not configured acpiac0 at acpi0: AC unit online acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: PWRB "PNP0C14" at acpi0 not configured "LHK2019" at acpi0 not configured "PNP0C14" at acpi0 not configured amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins dwiic0 at acpi0 I2CD addr 0xfedc5000/0x1000 irq 6 iic0 at dwiic0 ihidev0 at iic0 addr 0x15 gpio 89, vendor 0x4f3 product 0x400, ELAN0636 ihidev0: 93 report ids ims0 at ihidev0 reportid 1: 2 buttons wsmouse0 at ims0 mux 0 hid at ihidev0 reportid 11 not configured hid at ihidev0 reportid 12 not configured hid at ihidev0 reportid 13 not configured ims1 at ihidev0 reportid 14: 0 buttons wsmouse1 at ims1 mux 0 hid at ihidev0 reportid 93 not configured tpm0 at acpi0 TPM_: unsupported TPM2 start method 2 acpicpu0 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpicpu1 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpicpu2 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpicpu3 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpivideo0 at acpi0: VGA_ acpivout0 at acpivideo0: LCD_ cpu0: 2600 MHz: speeds: 2600 1700 1400 MHz pci0 at mainbus0 bus 0 ksmn0 at pci0 dev 0 function 0 "AMD 17h/1xh Root Complex" rev 0x00 "AMD 17h/1xh IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured pchb0 at pci0 dev 1 function 0 "AMD 17h PCIE" rev 0x00 ppb0 at pci0 dev 1 function 1 "AMD 17h/1xh PCIE" rev 0x00: msi pci1 at ppb0 bus 1 nvme0 at pci1 dev 0 function 0 vendor "SK hynix", unknown product 0x1339 rev 0x00: msix, NVMe 1.3 nvme0: SKHynix_HFM256GDHTNI-87A0B, firmware 11020C00, serial CSA5N714711105U62 scsibus1 at nvme0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: <NVMe, SKHynix_HFM256GD, 1102> sd0: 244198MB, 512 bytes/sector, 500118192 sectors ppb1 at pci0 dev 1 function 2 "AMD 17h/1xh PCIE" rev 0x00: msi pci2 at ppb1 bus 2 "Atheros QCA6174" rev 0x32 at pci2 dev 0 function 0 not configured pchb1 at pci0 dev 8 function 0 "AMD 17h PCIE" rev 0x00 ppb2 at pci0 dev 8 function 1 "AMD 17h/1xh PCIE" rev 0x00 pci3 at ppb2 bus 3 amdgpu0 at pci3 dev 0 function 0 "ATI Picasso" rev 0xc4 drm0 at amdgpu0 amdgpu0: msi azalia0 at pci3 dev 0 function 1 "ATI Radeon Vega HD Audio" rev 0x00: msi azalia0: no supported codecs ccp0 at pci3 dev 0 function 2 "AMD 17h/1xh Crypto" rev 0x00 xhci0 at pci3 dev 0 function 3 vendor "AMD", unknown product 0x15e5 rev 0x00: msix, xHCI 1.10 usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1 "AMD 17h/1xh I2S Audio" rev 0x00 at pci3 dev 0 function 5 not configured azalia1 at pci3 dev 0 function 6 "AMD 17h/1xh HD Audio" rev 0x00: apic 33 int 30 azalia1: codecs: Realtek/0x0230 audio0 at azalia1 piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x61: SMI iic1 at piixpm0 spdmem0 at iic1 addr 0x50: 4GB DDR4 SDRAM PC4-25600 SO-DIMM iic2 at piixpm0 pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51 pchb2 at pci0 dev 24 function 0 "AMD 17h/1xh Data Fabric" rev 0x00 pchb3 at pci0 dev 24 function 1 "AMD 17h/1xh Data Fabric" rev 0x00 pchb4 at pci0 dev 24 function 2 "AMD 17h/1xh Data Fabric" rev 0x00 pchb5 at pci0 dev 24 function 3 "AMD 17h/1xh Data Fabric" rev 0x00 pchb6 at pci0 dev 24 function 4 "AMD 17h/1xh Data Fabric" rev 0x00 pchb7 at pci0 dev 24 function 5 "AMD 17h/1xh Data Fabric" rev 0x00 pchb8 at pci0 dev 24 function 6 "AMD 17h/1xh Data Fabric" rev 0x00 pchb9 at pci0 dev 24 function 7 "AMD 17h/1xh Data Fabric" rev 0x00 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pcppi0 at isa0 port 0x61 spkr0 at pcppi0 wbsio0 at isa0 port 0x4e/2: W83627THF rev 0x27 vmm0 at mainbus0: SVM/RVI efifb at mainbus0 not configured urtwn0 at uhub0 port 2 configuration 1 interface 0 "Realtek 802.11n NIC" rev 2.00/0.00 addr 2 urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R, address <snip> uhidev0 at uhub0 port 3 configuration 1 interface 0 "SiGmaMicro USB Optical Mouse" rev 1.10/1.10 addr 3 uhidev0: iclass 3/1 ums0 at uhidev0: 3 buttons, Z dir wsmouse2 at ums0 mux 0 uvideo0 at uhub0 port 5 configuration 1 interface 0 "Sonix Technology Co., Ltd. Integrated Camera" rev 2.00/0.28 addr 4 video0 at uvideo0 ugen0 at uhub0 port 6 "Atheros Communications product 0xe300" rev 2.01/0.01 addr 5 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on sd0a (f6bb68ee0f5b893a.a) swap on sd0b dump on sd0b [drm] failed to load ucode RLC_RESTORE_LIST_CNTL(0x28) [drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF300F) [drm] failed to load ucode RLC_RESTORE_LIST_GPM_MEM(0x29) [drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF000F) [drm] failed to load ucode RLC_RESTORE_LIST_SRM_MEM(0x2A) [drm] psp gfx command LOAD_IP_FW(0x6) failed and response status is (0xFFFF000F) amdgpu0: RAVEN2 GC 9.1.0 3 CU rev 0x09 amdgpu0: 1920x1080, 32bpp wsdisplay0 at amdgpu0 mux 1: console (std, vt100 emulation), using wskbd0 wsdisplay0: screen 1-5 added (std, vt100 emulation) ----------------------------------------------------------------------- [1]: https://gmi.skyjake.fi/lagrange/