Re: iwn0: fatal firmware error after sysupgrade to 7.1
On 14.06.22 11:36, Stefan Sperling wrote: I don't know what SYSASSERT 0x0005 is supposed to tell us. All I can do is make guesses based on what changed between 7.0 and 7.1. In addition to the previous change, this patch enables even more debug output, and it delays enabling of 40MHz in the RXON command until the association sequence has progressed to a later stage. Does this make any difference? Indeed. I am sending this email using the iwn0 interface which is up and running without any issues so far. That was cool. Thank you very much. I attached the dmesg with those debug messages. Regarding that sysassert, I can only throw guesses at it. Maybe the firmware is checking some pre condition, it relies on the driver to have checked, and just bails out? Without any documentation, we'll never know. Router is a Fritz!Box 7362 SL and there are four Fritz WLAN Repeater 310 configured in a mesh. Intend was to make those smartphone users happy. Nothing fancy, so that something no one would ever believe is not supported by the router or repeaters has led to this not being noticed during testing. It has been the first time ever since nearly 2 decades, that I had an issue with OpenBSD after an upgrade. A driver backed by a firmware blob no one can debug. Thank you all for this amazing system! Seems I am going to unsubscribe from misc@ for the next 20 years to come. Wow! Best regards, -- Christian syncing disks... done rebooting... OpenBSD 7.1-stable (GENERIC.MP) #5: Wed Jun 15 02:59:34 CEST 2022 schu...@x500.schulte.it:/sys/arch/amd64/compile/GENERIC.MP real mem = 4165603328 (3972MB) avail mem = 4022079488 (3835MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries) bios0: vendor LENOVO version "6FET93WW (3.23 )" date 10/12/2012 bios0: LENOVO 22434DG acpi0 at bios0: ACPI 3.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA DMAR SSDT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz, 2261.36 MHz, 06-17-06 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN cpu0: 3MB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges cpu0: apic clock running at 266MHz cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2.1.3, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz, 2261.01 MHz, 06-17-06 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN cpu1: 3MB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins, remapped acpimcfg0 at acpi0 acpimcfg0: addr 0xe000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus -1 (EXP2) acpiprt5 at acpi0: bus 5 (EXP3) acpiprt6 at acpi0: bus 13 (EXP4) acpiprt7 at acpi0: bus 21 (PCI1) acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001 acpicmos0 at acpi0 com0 at acpi0 UART addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo tpm0 at acpi0 TPM_ 1.2 (TIS) addr 0xfed4/0x5000, device 0x10208086 rev 0x6 acpibat0 at acpi0: BAT0 not present acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0: version 1.0 "IBM0079" at acpi0 not configured "PNP0C14" at acpi0 not configured acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpipwrres0 at acpi0: PUBS, resource for USB0, USB3, USB5, EHC0, EHC1 acpitz0 at acpi0: critical temperature is 127 degC acpitz1 at acpi0: critical temperature is 100 degC acpidock0 at acpi0: GDCK docked (15) acpivideo0 at acpi0: VID_ acpivout0 at acpivideo0: LCD0 acpivideo1 at acpi0: VID_ cpu0: Enhanced SpeedStep 2261 MHz: speeds: 2267, 2266, 1600, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07 inteldrm0 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07 drm0 at inteldrm0 intagp0 at inteldrm0 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0: apic 1 int 16, GM45, gen
Re: iwn0: fatal firmware error after sysupgrade to 7.1
On 12.06.22 13:22, Stefan Sperling wrote: On Sun, Jun 12, 2022 at 01:16:00PM +0200, Stefan Sperling wrote: On Sun, Jun 12, 2022 at 10:28:33AM +0200, Christian Schulte wrote: Please see attached dmesg and pcidump. There has been a similar issue with the if_iwm.c driver. Maybe this one is related. These are seperate drivers so it is unlikely that these issues would be related. How many different access points have you tried to reproduce the problem with so far? Two. The router and a repeater bridging the WLAN of that router. There are 3 more repeaters I could test this with. Cannot be related to those. No issues with 7.0. In any case we will need to figure out which command is failing for you. The patch below adds additional debug output while 'ifconfig iwn0 debug' is enabled and should display the command code sent to firmware. Hopefully this can tell us which command firmware is complaining about. Can you reproduce the failure with it again and send new debug output? See attached dmesg and ls /etc/firmware. When running sysupgrade, it fetched the corresponding firmware upgrade from the 7.1 directory. I already tried to downgrade that to the 7.0 version, which should be equal. Did not solve the issue. Then ran fw_update again ant let it fetch the 7.1 version again. Just noticed the last 3 lines in the dmesg output. Those did not appear before. Does the listing of the /etc/firmware directory indicate something is wrong with the firmware image? The fsck during sysupgrade did not show any failures and I already reinstalled the firmware during testing. Thanks for helping me out. Best regards, -- Christian total 17100 drwxr-xr-x 4 root wheel 2.5K Jun 11 01:05 . drwxr-xr-x 41 root wheel 2.5K Jun 13 02:33 .. -rw-r--r-- 1 root bin49.5K Jun 11 01:05 3c990 -rw-r--r-- 1 root bin 1.9K Jun 11 01:05 3c990-license -rw-r--r-- 1 root bin 5.7K Jun 11 01:05 atu-at76c503-i3863-ext -rw-r--r-- 1 root bin21.6K Jun 11 01:05 atu-at76c503-i3863-int -rw-r--r-- 1 root bin15.0K Jun 11 01:05 atu-at76c503-rfmd-acc-ext -rw-r--r-- 1 root bin21.8K Jun 11 01:05 atu-at76c503-rfmd-acc-int -rw-r--r-- 1 root bin14.5K Jun 11 01:05 atu-at76c505-rfmd-ext -rw-r--r-- 1 root bin20.1K Jun 11 01:05 atu-at76c505-rfmd-int -rw-r--r-- 1 root bin 5.7K Jun 11 01:05 atu-intersil-ext -rw-r--r-- 1 root bin21.7K Jun 11 01:05 atu-intersil-int -rw-r--r-- 1 root bin 2.0K Jun 11 01:05 atu-license -rw-r--r-- 1 root bin15.1K Jun 11 01:05 atu-rfmd-ext -rw-r--r-- 1 root bin21.9K Jun 11 01:05 atu-rfmd-int -rw-r--r-- 1 root bin15.2K Jun 11 01:05 atu-rfmd2958-ext -rw-r--r-- 1 root bin20.9K Jun 11 01:05 atu-rfmd2958-int -rw-r--r-- 1 root bin16.3K Jun 11 01:05 atu-rfmd2958smc-ext -rw-r--r-- 1 root bin19.8K Jun 11 01:05 atu-rfmd2958smc-int -rw-r--r-- 1 root bin71.5K Jun 11 01:05 bnx-b06 -rw-r--r-- 1 root bin85.0K Jun 11 01:05 bnx-b09 -rw-r--r-- 1 root bin 2.0K Jun 11 01:05 bnx-license -rw-r--r-- 1 root bin 5.5K Jun 11 01:05 bnx-rv2p -rw-r--r-- 1 root bin 5.9K Jun 11 01:05 bnx-xi-rv2p -rw-r--r-- 1 root bin 6.4K Jun 11 01:05 bnx-xi90-rv2p -rw-r--r-- 1 root bin54.0K Jun 11 01:05 cs4280 -rw-r--r-- 1 root bin 427B Jun 11 01:05 cs4280-license -rw-r--r-- 1 root bin 408B Jun 11 01:05 fxp-d101a -rw-r--r-- 1 root bin 408B Jun 11 01:05 fxp-d101b0 -rw-r--r-- 1 root bin 536B Jun 11 01:05 fxp-d101ma -rw-r--r-- 1 root bin 536B Jun 11 01:05 fxp-d101s -rw-r--r-- 1 root bin 536B Jun 11 01:05 fxp-d102 -rw-r--r-- 1 root bin 536B Jun 11 01:05 fxp-d102c -rw-r--r-- 1 root bin 536B Jun 11 01:05 fxp-d102e -rw-r--r-- 1 root bin 1.6K Jun 11 01:05 fxp-license drwxr-xr-x 2 root wheel 2.0K Jun 10 07:39 i915 drwxr-xr-x 2 root wheel 6.0K Jun 10 07:39 intel -rw-r--r-- 1 root bin 1.6K Jun 9 2021 intel-ucode-license -rw-r--r-- 1 root bin 330K Mar 7 20:25 iwn-100 -rw-r--r-- 1 root bin 330K Mar 7 20:25 iwn-1000 -rw-r--r-- 1 root bin 674K Mar 7 20:25 iwn-105 -rw-r--r-- 1 root bin 685K Mar 7 20:25 iwn-135 -rw-r--r-- 1 root bin 680K Mar 7 20:25 iwn-2000 -rw-r--r-- 1 root bin 691K Mar 7 20:25 iwn-2030 -rw-r--r-- 1 root bin 184K Mar 7 20:25 iwn-4965 -rw-r--r-- 1 root bin 333K Mar 7 20:25 iwn-5000 -rw-r--r-- 1 root bin 330K Mar 7 20:25 iwn-5150 -rw-r--r-- 1 root bin 444K Mar 7 20:25 iwn-6000 -rw-r--r-- 1 root bin 661K Mar 7 20:25 iwn-6005 -rw-r--r-- 1 root bin 664K Mar 7 20:25 iwn-6030 -rw-r--r-- 1 root bin 459K Mar 7 20:25 iwn-6050 -rw-r--r-- 1 root bin 2.2K Mar 7 20:25 iwn-license -rw-r--r-- 1 root bin 4.5K Jun 11 01:05 kue -rw-r--r-- 1 root bin 1.8K Jun 11 01:05 kue-license -rw-r--r-- 1 root bin 368K Jun 11 01:05 myx-eth_z8e -rw-r--r-- 1 root bin 379K Jun 11 01:05 myx-ethp_z8e -rw-r--r-- 1
Re: iwn0: fatal firmware error after sysupgrade to 7.1
Please see attached dmesg and pcidump. There has been a similar issue with the if_iwm.c driver. Maybe this one is related. Best regards, -- Christian OpenBSD 7.1-stable (GENERIC.MP) #3: Sun Jun 12 10:08:50 CEST 2022 schu...@x500.schulte.it:/sys/arch/amd64/compile/GENERIC.MP real mem = 4165603328 (3972MB) avail mem = 4022091776 (3835MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries) bios0: vendor LENOVO version "6FET93WW (3.23 )" date 10/12/2012 bios0: LENOVO 22434DG acpi0 at bios0: ACPI 3.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA DMAR SSDT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz, 2261.32 MHz, 06-17-06 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN cpu0: 3MB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges cpu0: apic clock running at 266MHz cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2.1.3, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz, 2261.01 MHz, 06-17-06 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN cpu1: 3MB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins, remapped acpimcfg0 at acpi0 acpimcfg0: addr 0xe000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus -1 (EXP2) acpiprt5 at acpi0: bus 5 (EXP3) acpiprt6 at acpi0: bus 13 (EXP4) acpiprt7 at acpi0: bus 21 (PCI1) acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001 acpicmos0 at acpi0 com0 at acpi0 UART addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo tpm0 at acpi0 TPM_ 1.2 (TIS) addr 0xfed4/0x5000, device 0x10208086 rev 0x6 acpibat0 at acpi0: BAT0 not present acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0: version 1.0 "IBM0079" at acpi0 not configured "PNP0C14" at acpi0 not configured acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpipwrres0 at acpi0: PUBS, resource for USB0, USB3, USB5, EHC0, EHC1 acpitz0 at acpi0: critical temperature is 127 degC acpitz1 at acpi0: critical temperature is 100 degC acpidock0 at acpi0: GDCK docked (15) acpivideo0 at acpi0: VID_ acpivout0 at acpivideo0: LCD0 acpivideo1 at acpi0: VID_ cpu0: Enhanced SpeedStep 2261 MHz: speeds: 2267, 2266, 1600, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07 inteldrm0 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07 drm0 at inteldrm0 intagp0 at inteldrm0 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0: apic 1 int 16, GM45, gen 4 "Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured "Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured puc0 at pci0 dev 3 function 3 "Intel GM45 KT" rev 0x07: ports: 16 com com4 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo com4: probed fifo depth: 0 bytes em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: msi, address 00:1c:25:95:55:a3 uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 20 uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 21 uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 22 ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 23 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: msi azalia0: codecs: Conexant CX20561 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: msi pci1 at ppb0 bus 2 ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: msi pci2 at ppb1 bus 3 iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5300" rev 0x00: msi, MIMO 3T3R, MoW, address 00:21:6a:0e:02:58 ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: msi pci3 at ppb2 bus 5 ppb3 at pci0 dev
iwn0: fatal firmware error after sysupgrade to 7.1
Please CC me. I am not subscribed to the list. Hello, after upgrading from 7.0 to 7.1, the iwn0 interface cannot be used anymore, stating iwn0: fatal firmware error. I then checked out 7.1 stable, build the GENERIC.MP kernel, the system and xenocara. Issue remains. Here's what dmesg contains after adding the "debug" option to /etc/hostname.iwn0. Thanks for any help. splassert: ieee80211_free_node: want 7 have 4 urtw0 detached iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: fatal firmware error iwn0: SCAN -> AUTH iwn0: sending auth to c8:0e:14:ea:23:83 on channel 13 mode 11g iwn0: fatal firmware error firmware error log: error type = "SYSASSERT" (0x0005) program counter = 0x0001DFB0 source line = 0x01FB error data = 0x01FB0009 branch link = 0x0001DF940001DF94 interrupt link = 0x0916 time= 3432666 driver status: tx ring 0: qid=0 cur=1 queued=1 tx ring 1: qid=1 cur=0 queued=0 tx ring 2: qid=2 cur=0 queued=0 tx ring 3: qid=3 cur=0 queued=0 tx ring 4: qid=4 cur=30 queued=0 tx ring 5: qid=5 cur=0 queued=0 tx ring 6: qid=6 cur=0 queued=0 tx ring 7: qid=7 cur=0 queued=0 tx ring 8: qid=8 cur=0 queued=0 tx ring 9: qid=9 cur=0 queued=0 tx ring 10: qid=10 cur=0 queued=0 tx ring 11: qid=11 cur=0 queued=0 tx ring 12: qid=12 cur=0 queued=0 tx ring 13: qid=13 cur=0 queued=0 tx ring 14: qid=14 cur=0 queued=0 tx ring 15: qid=15 cur=0 queued=0 tx ring 16: qid=16 cur=0 queued=0 tx ring 17: qid=17 cur=0 queued=0 tx ring 18: qid=18 cur=0 queued=0 tx ring 19: qid=19 cur=0 queued=0 rx ring: cur=49 802.11 state 2 iwn0: AUTH -> INIT iwn0: begin active scan iwn0: INIT -> SCAN
Re: Advice on Security Cameras
Am 01.01.2019 um 18:46 schrieb Elias M. Mariani: > Hi list, > I'm thinking in installing some cameras in my private home, I have > been looking for solutions, my concern is that I wish to be able to > look the videos from outside the house and I'm a little paranoid about > the quality of the software that the different vendors use. I have > seen clusters of camaras that only work over ActiveX... I would just pay attention to the cameras to support ONVIF. Most do. Rest is a matter of using software supporting that and your specific use cases. Regards, -- Christian
simple-mtpfs kernel panic
Hi misc@, during transferring some files from my laptop to my Android mobile mounted using simple-mtpfs, the machine rebooted and /var/crash now contains the following files: $ ls -h /var/crash/ bounds bsd.0 bsd.0.core minfree I read crash(8) but cannot get any meaningful information from gdb for me. If someone is interested, I can send those files (amd64). It just happened once and I cannot reproduce it. $ dmesg -M /var/crash/bsd.0.core -N /var/crash/bsd.0 ugen2 at uhub0 port 2 "LGE LG-E610v" rev 2.00/2.33 addr 2 fusefs: libfuse vnode reclaim failed panic: ehci_device_clear_toggle: queue active Starting stack trace... panic() at panic+0x10b ehci_device_clear_toggle() at ehci_device_clear_toggle+0x2b usbd_clear_endpoint_stall() at usbd_clear_endpoint_stall+0x24 ugen_do_write() at ugen_do_write+0x175 ugenwrite() at ugenwrite+0x48 spec_write() at spec_write+0xbb VOP_WRITE() at VOP_WRITE+0x3f vn_write() at vn_write+0x98 dofilewritev() at dofilewritev+0x205 sys_write() at sys_write+0x89 syscall() at syscall+0x2b8 --- syscall (number 4) --- end of kernel end trace frame: 0x1, count: 246 0x5c7f4107c9a: End of stack trace. syncing disks... 4 done Regards, -- Christian
Re: mprotect W^X violation and JDK
Am 01/28/17 um 10:04 schrieb Alex McWhirter: > Java doesn't work with write xor execute and this is the kernels way of > letting you know. Java still runs because the partition is mounted with > wxallowed, but the kernel still prints the error to let you know that > Java isn't respecting a security feature. > What should the VM do instead? It allocates memory, JIT compiles bytecode to machinecode and then executes that machinecode. Should it mprotect the memory after generating the machinecode? It would still execute code from memory it could write to. Regards, -- Christian
Re: SSL/TLS troubleshooting
Am 12/10/16 um 22:57 schrieb Peter Hessler: > On 2016 Dec 10 (Sat) at 22:56:05 +0100 (+0100), Christian Schulte wrote: > :$ uname -a > :OpenBSD t60.schulte.it 6.0 1KHZ.MP#7 amd64 > > You broke it. Please use a GENERIC kernel, and it will work as normal. > This is what I did using a recent source tree: $ cd /usr/src/sys/arch/amd64/conf $ config GENERIC.MP $ cd /usr/src/sys/arch/amd64/compile/GENERIC.MP $ make $ make install $ reboot $ uname -a OpenBSD t60.schulte.it 6.0 GENERIC.MP#2 amd64 $ cd /usr/src/lib/libssl $ make clean $ make obj $ make depend $ make $ make install $ cd /usr/src/lib/libcrypto $ make clean $ make obj $ make depend $ make $ make install This does not solve the issue, sadly. Regards, -- Christian
Re: SSL/TLS troubleshooting
Am 12/10/16 um 22:57 schrieb Peter Hessler: > On 2016 Dec 10 (Sat) at 22:56:05 +0100 (+0100), Christian Schulte wrote: > :$ uname -a > :OpenBSD t60.schulte.it 6.0 1KHZ.MP#7 amd64 > > You broke it. Please use a GENERIC kernel, and it will work as normal. > This is the configuration in use. Do you really think that HZ=1000 is causing this? Will give GENERIC.MP a try, of course. $cat 1KHZ.MP # $OpenBSD: GENERIC.MP,v 1.10 2008/12/22 16:35:28 deraadt Exp $ include "arch/amd64/conf/GENERIC" option MULTIPROCESSOR option HZ=1000 option BUFCACHEPERCENT=5 rmoptionPOOL_DEBUG makeoptions DEBUG="-g" cpu*at mainbus? Thanks, -- Christian
Re: SSL/TLS troubleshooting
Am 12/10/16 um 23:28 schrieb Karel Gardas: > On Sat, Dec 10, 2016 at 10:56 PM, Christian Schulte <c...@schulte.it> wrote: >> It's <https://repository.apache.org/> >> >> Operation timed out. Connections are very slow. Too slow so that they > > Not sure about the issue, but I've seen that last night too. Generally > speaking there were too high number of lost packets which made TCP > slow to crawl or broken. It stayed around 2-3 hours and then suddenly > resolved. And I was accessing this from Ubuntu 16.04.1 if that matters > Never disappears here. I'd really like to know why I can access that without any issue using Windows 10 but start running into issues when using OpenBSD. I also doubt this is affecting OpenBSD users only. Regards, -- Christian
Re: SSL/TLS troubleshooting
Am 12/10/16 um 21:43 schrieb Kai: > Am 10. Dezember 2016 21:35:04 MEZ, schrieb Christian Schulte > <c...@schulte.it>: >> Hello, >> >> I am facing an issue accessing an SSL/TLS webserver from OpenBSD. I >> have >> another box not running OpenBSD connected to the same router and that >> box can connect to that server flawlessly. I already tried to >> troubleshoot things with the administrator of that system without >> success. Is there something I need to be aware of accessing SSL/TLS >> (https) servers with OpenBSD? How can I capture information I can send >> to the administrator of that system to help him/her find out what is >> special about connections coming from OpenBSD? >> >> Regards, > > I doubt this is special to OpenBSD. But you don't give any information to pin > point this. What error do you get? > What tls version does the server offer? It's <https://repository.apache.org/> Operation timed out. Connections are very slow. Too slow so that they time out. Does not happen using that other box ever. So there is a difference accessing that server from OpenBSD (tested with Java, Firefox and Chromium) and from that other box. I am not having any issues accessing other servers. I created a ticket with them already. <https://issues.apache.org/jira/browse/INFRA-13074> > What version is supported by your installation? > > Are you using a current version of OpenBSD? $ uname -a OpenBSD t60.schulte.it 6.0 1KHZ.MP#7 amd64 Thanks, -- Christian
SSL/TLS troubleshooting
Hello, I am facing an issue accessing an SSL/TLS webserver from OpenBSD. I have another box not running OpenBSD connected to the same router and that box can connect to that server flawlessly. I already tried to troubleshoot things with the administrator of that system without success. Is there something I need to be aware of accessing SSL/TLS (https) servers with OpenBSD? How can I capture information I can send to the administrator of that system to help him/her find out what is special about connections coming from OpenBSD? Regards, -- Christian
Re: Mouse setup question.
Here is some more information I can provide. When wsmoused(8) is not running and the mouse pointer starts moving to the lower left corner of the screen without any mouse being touched, I can stop it by executing: schu...@t60.schulte.it 2015-05-17T22:52:14+0200 Sunday 137 ~ $ xinput --disable 8 So disabling the ws driver makes the mouse pointer stop moving (by disabling the USB mouse, that is, after executing that command, only the synaptics touchpad is working afterwards). Reenabling the USB mouse by executing schu...@t60.schulte.it 2015-05-17T22:54:50+0200 Sunday 137 ~ $ xinput --enable 8 the mouse pointer immediately starts moving to the lower left corner of the screen. schu...@t60.schulte.it 2015-05-17T22:54:55+0200 Sunday 137 ~ $ xinput --list ⎡ Virtual core pointer id=2[master pointer (3)] ⎜ ↳ Virtual core XTEST pointerid=4[slave pointer (2)] ⎜ ↳ /dev/wsmouse0 id=7[slave pointer (2)] ⎜ ↳ /dev/wsmouse id=8[slave pointer (2)] ⎣ Virtual core keyboard id=3[master keyboard (2)] ↳ Virtual core XTEST keyboard id=5[slave keyboard (3)] ↳ /dev/wskbdid=6[slave keyboard (3)] Could someone please tell me how to make the ws driver produce any debugging information so that I can try to find a solution myself and maybe provide a patch? The issue started with 5.6 and 5.7 shows the same behaviour. It never happened using 5.5. Regards, -- Christian
Mouse setup question.
Hi misc@, I have a question regarding the setup of mice for the following system. Should wsmoused(8) be enabled or disabled? When enabled, only the synaptics touchpad is working with X. When disabled, all mice are working, but all of a sudden, the mouse pointer starts moving without any mouse beeing in use. A reboot is needed to get the mouse working again. Following is dmesg and the X logfile with wsmoused(8) enabled and disabled. Please note the following lines when wsmoused(8) is enabled: [ 1105.998] (EE) xf86OpenSerial: Cannot open device /dev/wsmouse^M Ger\xc3\xa4t ist belegt.^M [ 1105.998] (EE) ws: /dev/wsmouse: cannot open input device^M [ 1105.998] (EE) PreInit returned 2 for /dev/wsmouse^M [ 1105.998] (II) UnloadModule: ws^M Regards, Christian Script started on Fri May 15 22:27:29 2015 $ dmesg OpenBSD 5.7-stable (1KHZ.MP) #1: Sun May 3 19:25:27 CEST 2015 r...@t60.schulte.it:/usr/src/sys/arch/amd64/compile/1KHZ.MP real mem = 3203203072 (3054MB) avail mem = 3114078208 (2969MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries) bios0: vendor LENOVO version 79ETD4WW (2.14 ) date 06/07/2007 bios0: LENOVO 2007FVG acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz, 1828.90 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF cpu0: 2MB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 166MHz cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz, 1828.75 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF cpu1: 2MB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 2, remapped to apid 1 acpimcfg0 at acpi0 addr 0xf000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus 4 (EXP2) acpiprt5 at acpi0: bus 12 (EXP3) acpiprt6 at acpi0: bus 21 (PCI1) acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB7 acpitz0 at acpi0: critical temperature is 127 degC acpitz1 at acpi0: critical temperature is 99 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibat0 at acpi0: BAT0 model 92P1139 serial 9496 type LION oem Panasonic acpibat1 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0 acpidock0 at acpi0: GDCK not docked (0) cpu0: Enhanced SpeedStep 1828 MHz: speeds: 1833, 1333, 1000 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03 ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: msi pci1 at ppb0 bus 1 radeondrm0 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00 drm0 at radeondrm0 radeondrm0: apic 1 int 16 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: msi azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog Devices AD1981HD audio0 at azalia0 ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: msi pci2 at ppb1 bus 2 em0 at pci2 dev 0 function 0 Intel 82573L rev 0x00: msi, address 00:15:58:7c:c0:6c ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: msi pci3 at ppb2 bus 3 athn0 at pci3 dev 0 function 0 Atheros AR5418 rev 0x01: apic 1 int 17 athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 3, address 00:16:cf:a9:e0:c7 ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: msi pci4 at ppb3 bus 4 ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: msi pci5 at ppb4 bus 12 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 16 uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 17 uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 18 uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 19 ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 19 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb5 at pci0 dev 30 function 0 Intel
em0 interface hangs in 5.7 (was: Re: Semi-reproduceable em0 network hangs in new snap)
Hi @misc, after upgrading my T60 from 5.6-stable to 5.7-stable, I am experiencing the same issue described above. Should this be filed using sendbug ? I am currently reverting to the athn0 interface which is working fine. The em0 interface hangs after some minutes or even seconds and isn't usable as of 5.7. Regards, -- Christian
Mouse pointer moving unintentionally.
Hello, after upgrading to 5.6, I am experiencing a mouse pointer weirdness. The X window manager (windowmaker) stops responding to window related button presses. Switching to the console and back to X (CTRL-F1 followed by CTRL-F5), the window manager starts working again, but the moise pointer now is slowly moving to the lower left corner of the screen. I need to reboot to make the mouse pointer stand still again. Disabling the kernel 'pms' driver makes this issue go away. This happens with a T60 laptop. dmesg with the 'pms' driver disabled is attached. Regards, -- Christian Schulte OpenBSD 5.6-stable (1KHZ.MP) #7: Sun Nov 30 15:45:48 CET 2014 r...@t60.schulte.it:/usr/src/sys/arch/amd64/compile/1KHZ.MP real mem = 3203203072 (3054MB) avail mem = 3109216256 (2965MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries) bios0: vendor LENOVO version 79ETD4WW (2.14 ) date 06/07/2007 bios0: LENOVO 2007FVG acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz, 1828.91 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF cpu0: 2MB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 166MHz cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz, 1828.76 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF cpu1: 2MB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 2, remapped to apid 1 acpimcfg0 at acpi0 addr 0xf000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus 4 (EXP2) acpiprt5 at acpi0: bus 12 (EXP3) acpiprt6 at acpi0: bus 21 (PCI1) acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB7 acpitz0 at acpi0: critical temperature is 127 degC acpitz1 at acpi0: critical temperature is 99 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibat0 at acpi0: BAT0 model 92P1139 serial 9496 type LION oem Panasonic acpibat1 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0 acpidock0 at acpi0: GDCK not docked (0) cpu0: Enhanced SpeedStep 1828 MHz: speeds: 1833, 1333, 1000 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03 ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: msi pci1 at ppb0 bus 1 radeondrm0 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00 drm0 at radeondrm0 radeondrm0: apic 1 int 16 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: msi azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog Devices AD1981HD audio0 at azalia0 ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: msi pci2 at ppb1 bus 2 em0 at pci2 dev 0 function 0 Intel 82573L rev 0x00: msi, address 00:15:58:7c:c0:6c ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: msi pci3 at ppb2 bus 3 athn0 at pci3 dev 0 function 0 Atheros AR5418 rev 0x01: apic 1 int 17 athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 3, address 00:16:cf:a9:e0:c7 ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: msi pci4 at ppb3 bus 4 ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: msi pci5 at ppb4 bus 12 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 16 uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 17 uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 18 uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 19 ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 19 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2 pci6 at ppb5 bus 21 cbb0 at pci6 dev 0 function 0 TI PCI1510 CardBus rev 0x00: apic 1 int 16 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0 pcmcia0
Re: Cannot get sound to work on a T60
Am 05/25/14 06:29, schrieb Philip Guenther: On Sat, May 24, 2014 at 9:03 PM, Christian Schulte c...@schulte.it wrote: Am 05/25/14 04:21, schrieb Philip Guenther: On Sat, May 24, 2014 at 5:59 PM, Christian Schulte c...@schulte.it wrote: please see the output of 'dmesg', 'audioctl -f /dev/audio' and 'mixerctl' included in this message. Is it correct that executing 'aucat -i something.wav' should produce audible output with things setup like this ? I don't have a .wav file on hand, but my T60 running i386 works Just Fine using mplayer. Internal speakers or do you have any external speakers connected ? Works both with internal speakers and with ear buds plugged in. So when did audio stop working on your box? Hard to tell. I have been working with an R60 for a long time (wouldn't recommend these) and sound was working initially. After some update sound stopped working there as well (-stable). Should be some 2 years ago or so already. I have that R60 lying around and sound isn't working there as well. Sound on the T60 I got a few weeks ago also does not work. So I am asking. Having read the FAQ, tried this and that, it just does not provide a single glitch. Still thinking this to be something really stupid on my side - but - the R60 provided sound and after some update stopped to do so. The T60 now also does not provide any sound. I am lost somehow. Regards, Christian
Re: Cannot get sound to work on a T60
Am 05/25/14 06:49, schrieb patrick keshishian: On 5/24/14, Philip Guenther guent...@gmail.com wrote: On Sat, May 24, 2014 at 9:03 PM, Christian Schulte c...@schulte.it wrote: Am 05/25/14 04:21, schrieb Philip Guenther: On Sat, May 24, 2014 at 5:59 PM, Christian Schulte c...@schulte.it wrote: please see the output of 'dmesg', 'audioctl -f /dev/audio' and 'mixerctl' included in this message. Is it correct that executing 'aucat -i something.wav' should produce audible output with things setup like this ? I don't have a .wav file on hand, but my T60 running i386 works Just Fine using mplayer. Internal speakers or do you have any external speakers connected ? Works both with internal speakers and with ear buds plugged in. So when did audio stop working on your box? Does your audio not work completely? Does it work through headphones? Speakers? I have not plugged in anything external to the machine. I am just heading after the internal speakers to provide something. Hmm. It does not even beep currently. -- Christian
Re: Cannot get sound to work on a T60
Am 05/25/14 09:39, schrieb patrick keshishian: On 5/25/14, Christian Schulte c...@schulte.it wrote: Am 05/25/14 06:49, schrieb patrick keshishian: On 5/24/14, Philip Guenther guent...@gmail.com wrote: On Sat, May 24, 2014 at 9:03 PM, Christian Schulte c...@schulte.it wrote: Am 05/25/14 04:21, schrieb Philip Guenther: On Sat, May 24, 2014 at 5:59 PM, Christian Schulte c...@schulte.it wrote: please see the output of 'dmesg', 'audioctl -f /dev/audio' and 'mixerctl' included in this message. Is it correct that executing 'aucat -i something.wav' should produce audible output with things setup like this ? I don't have a .wav file on hand, but my T60 running i386 works Just Fine using mplayer. Internal speakers or do you have any external speakers connected ? Works both with internal speakers and with ear buds plugged in. So when did audio stop working on your box? Does your audio not work completely? Does it work through headphones? Speakers? I have not plugged in anything external to the machine. I am just heading after the internal speakers to provide something. Hmm. It does not even beep currently. I ask to see if it your issue is at all related/similar to mine: http://marc.info/?l=openbsd-miscm=139317761904835w=2 Don't know. I get no error messages at all and the sample buffer is increasing during playback as the FAQ suggests to look after. So something is sending data to something. It just isn't audible. -- Regargs, Christian
Re: Cannot get sound to work on a T60
Am 05/25/14 10:27, schrieb Mihai Popescu: Don't know. I get no error messages at all and the sample buffer is increasing during playback as the FAQ suggests to look after. So something is sending data to something. It just isn't audible. Do you have some push buttons for volume up/down and mute on your keyboard or close to it? Try to push them, it may be on mute or very low volume. Indeed. Never tried those buttons during playback. Always looked at the output of mixerctl and there nothing changes. It really was that simple. Damn it. Regards, -- Christian
Cannot get sound to work on a T60
Hello misc@, please see the output of 'dmesg', 'audioctl -f /dev/audio' and 'mixerctl' included in this message. Is it correct that executing 'aucat -i something.wav' should produce audible output with things setup like this ? Regards, Christian $ dmesg OpenBSD 5.5-stable (1KHZ.MP) #18: Sun May 4 15:39:00 CEST 2014 r...@t60.schulte.it:/usr/src/sys/arch/amd64/compile/1KHZ.MP real mem = 3203203072 (3054MB) avail mem = 3109384192 (2965MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries) bios0: vendor LENOVO version 79ETD4WW (2.14 ) date 06/07/2007 bios0: LENOVO 2007FVG acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz, 1828.87 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LONG,LAHF,PERF cpu0: 2MB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 166MHz cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz, 1828.76 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LONG,LAHF,PERF cpu1: 2MB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 2, remapped to apid 1 acpimcfg0 at acpi0 addr 0xf000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus 4 (EXP2) acpiprt5 at acpi0: bus 12 (EXP3) acpiprt6 at acpi0: bus 21 (PCI1) acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB7 acpitz0 at acpi0: critical temperature is 127 degC acpitz1 at acpi0: critical temperature is 99 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibat0 at acpi0: BAT0 model 92P1139 serial 9496 type LION oem Panasonic acpibat1 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0 acpidock0 at acpi0: GDCK not docked (0) cpu0: Enhanced SpeedStep 1828 MHz: speeds: 1833, 1333, 1000 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03 ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: msi pci1 at ppb0 bus 1 radeondrm0 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00 drm0 at radeondrm0 radeondrm0: apic 1 int 16 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: msi azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog Devices AD1981HD audio0 at azalia0 ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: msi pci2 at ppb1 bus 2 em0 at pci2 dev 0 function 0 Intel 82573L rev 0x00: msi, address 00:15:58:7c:c0:6c ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: msi pci3 at ppb2 bus 3 athn0 at pci3 dev 0 function 0 Atheros AR5418 rev 0x01: apic 1 int 17 athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 3, address 00:16:cf:a9:e0:c7 ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: msi pci4 at ppb3 bus 4 ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: msi pci5 at ppb4 bus 12 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 16 uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 17 uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 18 uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 19 ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 19 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2 pci6 at ppb5 bus 21 cbb0 at pci6 dev 0 function 0 TI PCI1510 CardBus rev 0x00: apic 1 int 16 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0 pcmcia0 at cardslot0 pcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02 pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: MATSHITA, DVD-RAM UJ-842, RB01 ATAPI 5/cdrom removable cd0(pciide0:0:0):
Re: Cannot get sound to work on a T60
Am 05/25/14 04:21, schrieb Philip Guenther: On Sat, May 24, 2014 at 5:59 PM, Christian Schulte c...@schulte.it wrote: please see the output of 'dmesg', 'audioctl -f /dev/audio' and 'mixerctl' included in this message. Is it correct that executing 'aucat -i something.wav' should produce audible output with things setup like this ? I don't have a .wav file on hand, but my T60 running i386 works Just Fine using mplayer. Internal speakers or do you have any external speakers connected ? OpenBSD 5.5-stable (1KHZ.MP) #18: Sun May 4 15:39:00 CEST 2014 r...@t60.schulte.it:/usr/src/sys/arch/amd64/compile/1KHZ.MP Tried the GENERIC.MP kernel? Of course. Here is the kernel config I am using. $ cat /usr/src/sys/arch/amd64/conf/1KHZ.MP include arch/amd64/conf/GENERIC option MULTIPROCESSOR option HZ=1000 option BUFCACHEPERCENT=5 rmoptionPOOL_DEBUG makeoptions DEBUG=-g cpu*at mainbus? -- Regargs Christian
Re: Question about i386 COPTS during 'make release'.
Am 11/09/13 22:21, schrieb Philip Guenther: Sorry, but I don't really find your tests convincing. * Only test the worst case of a matching buffer. * Unreasonably large example used (are there *any* 256MB memcmp or bcmp in the kernel?) * Use of fprintf in the inner loop adds large fixed costs including syscalls to what should be a microbenchmark. * Measurements aren't of just the inner loop. * No test showing the suggested compiler options actually have the suggested effect. If you want to show that changing A will have a positive effect, you need to have your test be as close a simulation of A as you can. This doesn't seem to be that. All valid points. I compared things using 'objdump -d' already. As soon as GCC is told to optimize, it will inline bcmp/memcmp using 'repz cmpsb' (see '/usr/src/gnu/gcc/gcc/config/i386/i386.md' lines 18622ff and function 'expand_builtin_memcmp' in file '/usr/src/gnu/gcc/gcc/builtins.c'). This is slower even when comparing just a few bytes. The larger the number of bytes to compare gets, the more significant the difference becomes. See last result for just 128 bytes (0m29.58s vs. 0m5.32s). $ cc -DBSIZ=4 -DITERATIONS=10 -O2 bcmp.c 0m23.54s real 0m23.24s user 0m0.00s system $ cc -DBSIZ=4 -DITERATIONS=10 -O2 -fno-builtin-bcmp -fno-builtin-memcmp bcmp.c 0m18.79s real 0m18.76s user 0m0.00s system $ cc -DBSIZ=8 -DITERATIONS=10 -O2 bcmp.c 0m32.46s real 0m32.15s user 0m0.00s system $ cc -DBSIZ=8 -DITERATIONS=10 -O2 -fno-builtin-bcmp -fno-builtin-memcmp bcmp.c 0m20.03s real 0m20.00s user 0m0.00s system $ cc -DBSIZ=16 -DITERATIONS=10 -O2 bcmp.c 0m49.81s real 0m49.78s user 0m0.00s system $ cc -DBSIZ=16 -DITERATIONS=10 -O2 -fno-builtin-bcmp -fno-builtin-memcmp bcmp.c 0m22.62s real 0m22.57s user 0m0.00s system $ cc -DBSIZ=128 -DITERATIONS=1 -O2 bcmp.c 0m29.66s real 0m29.58s user 0m0.00s system $ cc -DBSIZ=128 -DITERATIONS=1 -O2 -fno-builtin-bcmp -fno-builtin-memcmp bcmp.c 0m5.33s real 0m5.32s user 0m0.00s system $ cat bcmp.c #include string.h #include stdio.h #include stdlib.h #include errno.h #include sys/mman.h #define VALUE (0xff) int main(int argc, char *argv[]) { void *b1, *b2; int i; b1 = malloc(BSIZ); if (b1 == NULL) { fprintf(stderr, unable to allocate memory: %s\n, strerror(errno)); return errno; } if (mlock(b1, BSIZ)) { fprintf(stderr, unable to lock memory: %s\n, strerror(errno)); return errno; } memset(b1, VALUE, BSIZ); b2 = malloc(BSIZ); if (b2 == NULL) { fprintf(stderr, unable to allocate memory: %s\n, strerror(errno)); return errno; } if (mlock(b2, BSIZ)) { fprintf(stderr, unable to lock memory: %s\n, strerror(errno)); return errno; } memset(b2, VALUE, BSIZ); for (i = 0; i ITERATIONS; i++) { if (bcmp(b1, b2, BSIZ)) { fprintf(stderr, buffers do not match\n); } } if (munlock(b1, BSIZ)) { fprintf(stderr, unable to unlock memory: %s\n, strerror(errno)); } if (munlock(b2, BSIZ)) { fprintf(stderr, unable to unlock memory: %s\n, strerror(errno)); } free(b1); free(b2); return 0; }
Question about i386 COPTS during 'make release'.
Hello misc@, are the i386 GENERIC and GENERIC.MP kernels built using '-O2' as is setup in '/usr/src/sys/arch/i386/conf/Makefile.i386' or is COPTS set to something else in '/etc/mk.conf' during 'make release' ? Regards, -- Christian Schulte
Re: Question about i386 COPTS during 'make release'.
Am 11/09/13 05:44, schrieb Philip Guenther: On Fri, Nov 8, 2013 at 7:30 PM, Christian Schulte c...@schulte.it wrote: are the i386 GENERIC and GENERIC.MP kernels built using '-O2' as is setup in '/usr/src/sys/arch/i386/conf/Makefile.i386' or is COPTS set to something else in '/etc/mk.conf' during 'make release' ? COPTS is overridden when building the ramdisk kernels, but it's left alone for the normal GENERIC/GENERIC.* kernels. So yes, if your /etc/mk.conf sets COPTS, it'll affect them. Philip Guenther Ok. Reason I am asking is this: $ cc bcmp.c $ time ./a.out 0m17.83s real 0m16.92s user 0m0.87s system $ cc -O2 bcmp.c $ time ./a.out 1m0.98s real 1m0.17s user 0m0.87s system $ cc memcmp.c $ time ./a.out 0m17.41s real 0m16.56s user 0m0.87s system $ cc -O2 memcmp.c $ time ./a.out 1m1.03s real 1m0.18s user 0m0.88s system The difference comes from GCC optimizing away calls to the libc assembly versions of bcmp/memcmp. For 'len' values greater than or equal to 8 (change BSIZ below), those assembly versions perform way better than 'cmpsb' inlined by GCC so that the following may be useful as most of the bcmp/memcmp calls are using 'len' values greater than 8 and the added function call overhead due to GCC no longer inlining these functions should not be an issue. Index: sys/arch/i386/conf/Makefile.i386 === RCS file: /cvs/src/sys/arch/i386/conf/Makefile.i386,v retrieving revision 1.88 diff -u -p -r1.88 Makefile.i386 --- sys/arch/i386/conf/Makefile.i38615 Oct 2013 19:23:27 - 1.88 +++ sys/arch/i386/conf/Makefile.i3869 Nov 2013 04:55:54 - @@ -30,7 +30,10 @@ CWARNFLAGS= -Werror -Wall -Wstrict-proto CMACHFLAGS= CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \ -fno-builtin-vsnprintf -fno-builtin-log \ - -fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS} + -fno-builtin-log2 -fno-builtin-malloc \ + -fno-builtin-bcmp -fno-builtin-memcmp \ + ${NOPIE_FLAGS} + .if ${IDENT:M-DNO_PROPOLICE} CMACHFLAGS+= -fno-stack-protector .endif -- bcmp.c: #include string.h #include stdio.h #include stdlib.h #include errno.h #include sys/mman.h #define BSIZ(256 * 1024 * 1024) #define VALUE (0xff) #define ITERATIONS (100) int main(int argc, char *argv[]) { void *b1, *b2; int i; b1 = malloc(BSIZ); if (b1 == NULL) { fprintf(stderr, unable to allocate memory: %s\n, strerror(errno)); return errno; } if (mlock(b1, BSIZ)) { fprintf(stderr, unable to lock memory: %s\n, strerror(errno)); return errno; } memset(b1, VALUE, BSIZ); b2 = malloc(BSIZ); if (b2 == NULL) { fprintf(stderr, unable to allocate memory: %s\n, strerror(errno)); return errno; } if (mlock(b2, BSIZ)) { fprintf(stderr, unable to lock memory: %s\n, strerror(errno)); return errno; } memset(b2, VALUE, BSIZ); for (i = 0; i ITERATIONS; i++) { fprintf(stdout, bcmp(b1,b2,%d)\t%d\t%d\n, BSIZ, i, bcmp(b1, b2, BSIZ)); } if (munlock(b1, BSIZ)) { fprintf(stderr, unable to unlock memory: %s\n, strerror(errno)); } if (munlock(b2, BSIZ)) { fprintf(stderr, unable to unlock memory: %s\n, strerror(errno)); } free(b1); free(b2); return 0; } -- memcmp.c: #include string.h #include stdio.h #include stdlib.h #include errno.h #include sys/mman.h #define BSIZ(256 * 1024 * 1024) #define VALUE (0xff) #define ITERATIONS (100) int main(int argc, char *argv[]) { void *b1, *b2; int i; b1 = malloc(BSIZ); if (b1 == NULL) { fprintf(stderr, unable to allocate memory: %s\n, strerror(errno)); return errno; } if (mlock(b1, BSIZ)) { fprintf(stderr, unable to lock memory: %s\n, strerror(errno)); return errno; } memset(b1, VALUE, BSIZ); b2 = malloc(BSIZ); if (b2 == NULL) { fprintf(stderr, unable to allocate memory: %s\n, strerror(errno)); return errno; } if (mlock(b2, BSIZ)) { fprintf(stderr, unable to lock memory: %s\n, strerror(errno)); return errno; } memset(b2, VALUE, BSIZ); for (i = 0; i ITERATIONS; i++) { fprintf(stdout, memcmp(b1,b2,%d