Live usb stick quite slow
Hi misc, I have installed OpenBSD on an USB stick (a Kingston DataTraveler G3). Nevertheless, the system is quite slow... For example, I recently install firefox or, more precisely, those packages: at-spi2-atk-2.8.1.tgz at-spi2-core-2.8.0.tgz dbus-glib-0.100.2v0.tgz dconf-0.16.1.tgz firefox-22.0.tgz flac-1.3.0p0.tgz gconf2-3.2.6p0.tgz glib2-networking-2.36.2.tgz gnutls-3.2.1.tgz gsettings-desktop-schemas-3.8.2.tgz gstreamer-0.10.36p5.tgz gstreamer-plugins-base-0.10.36p6.tgz gstreamer-plugins-good-0.10.31p7v0.tgz gtk+3-3.8.2p3.tgz gvfs-1.16.3.tgz libarchive-3.0.4p0.tgz libnettle-2.7.1.tgz libsecret-0.14p0.tgz libshout-2.2.2p2.tgz libsoup-2.42.2.tgz libsoup-gnome-2.42.2.tgz libtasn1-3.3.tgz p11-kit-0.18.3p0.tgz taglib-1.8p5.tgz tremor-20120410p0.tgz wavpack-4.60.1p0.tgz which have a total size of 67Mo and it tooks ~17min to finish. If I compute correctly, this give me an average of ~67ko/sec which, I think, is quite bad. I precise that I download and store all the packages on an mfs partition, so this is really the time consumed to install them. Also, all the partitions are mounted with the softdep and the noatime options. Is this normal ? Did I make any mistakes in the organisation of the system on the stick ? Is there something I can do to improve the performance of the I/O ? Below, you will find the output of the fdisk, disklabel, usbdevs and dmesg commands. Kind regards, Jérôme --- # fdisk sd0 Disk: sd0 geometry: 3762/255/63 [60437492 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] --- 0: 0B 0 1 2 -522 43 33 [ 64: 8388608 ] Win95 FAT-32 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused *3: A6523 0 1 - 3761 254 63 [ 8401995:52034535 ] OpenBSD # disklabel sd0 # /dev/rsd0c: type: SCSI disk: SCSI disk label: DataTraveler G3 duid: 5f3fafcf8302435d flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 3762 total sectors: 60437492 boundstart: 8401995 boundend: 60436530 drivedata: 0 16 partitions: #size offset fstype [fsize bsize cpg] a: 2104501 8401995 4.2BSD 2048 163841 # / b: 8385944 10506496swap # none c: 604374920 unused d: 2104480 18892448 4.2BSD 2048 163841 # /var e: 12578912 20996928 4.2BSD 2048 163841 # /usr f: 16771840 33575840 4.2BSD 2048 163841 # /home i: 8388608 64 MSDOS # usbdevs -v Controller /dev/usb0: addr 1: high speed, self powered, config 1, EHCI root hub(0x), NVIDIA(0x10de), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 addr 2: high speed, power 100 mA, config 1, DataTraveler G3(0x1643), Kingston(0x0951), rev 1.00, iSerialNumber 001CC07CEB7FFCB129150E30 port 6 powered port 7 powered port 8 powered port 9 powered port 10 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, OHCI root hub(0x), NVIDIA(0x10de), rev 1.00 port 1 powered port 2 powered port 3 addr 2: low speed, power 98 mA, config 1, USB-PS/2 Optical Mouse(0xc040), Logitech(0x046d), rev 24.30 port 4 addr 3: low speed, power 100 mA, config 1, Logitech USB Keyboard(0xc316), Logitech(0x046d), rev 28.00 port 5 powered port 6 powered port 7 powered port 8 powered port 9 powered port 10 powered # dmesg OpenBSD 5.4 (GENERIC.MP) #44: Tue Jul 30 12:13:32 MDT 2013 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: AMD Athlon(tm) II X2 280 Processor ("AuthenticAMD" 686-class, 1024KB L2 cache) 3.62 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,MWAIT,CX16,POPCNT,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,WDT,ITSC real mem = 1878192128 (1791MB) avail mem = 1836040192 (1750MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 10/31/12, BIOS32 rev. 0 @ 0xe8010, SMBIOS rev. 2.6 @ 0xfd950 (22 entries) bios0: vendor American Megatrends Inc. version "P1.40" date 10/31/2012 bios0: ASRock N68C-GS FX acpi0 at bios0: rev 0 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG OEMB SRAT AAFT SSDT acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) SMB0(S4) USB0(S4) USB2(S4) NMAC(S5) P0P1(S4) HDAC(S4) BR10(S4) BR11(S4) BR12(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor)
Re: Live usb stick quite slow
msgid CAJO05K02bX+YsbbW6aT1G3mBALt3=TgMPifKeJFWHMtim=k...@mail.gmail.com Thanks for your replies. :) On 15/12/2013 18:54, Nick Holland wrote: > Would be interesting to try your test on a non-nvidia machine. I do the same test on an intel based machine and, effectively, there is an improvement: it tooks ~12min to achieve the installation (I add the dmesg of that machine at the end of this mail). On 15/12/2013 18:54, Nick Holland wrote: > Keep in mind, dividing total package size by time required produces a > number with units of "bytes of packages installed per second", which is > not overly interesting, and VERY different from "bytes written per > second", as a lot of work goes into a package install beyond a single > linear file write. Yes, sorry. Here is the bytes/sec average of the two machines (respectively, nvidia based and intel based) obtain when writing a 256Mo file: # dd if=/dev/zero of=/home/jerome/buf bs=4k count=65535 65535+0 records in 65535+0 records out 268431360 bytes transferred in 33.194 secs (8086542 bytes/sec) # umount /home # mount /home # dd if=/home/jerome/buf of=/var/tmp/buf 524280+0 records in 524280+0 records out 268431360 bytes transferred in 65.854 secs (4076129 bytes/sec) # dd if=/dev/zero of=/home/jerome/buf bs=4k count=65535 65535+0 records in 65535+0 records out 268431360 bytes transferred in 38.509 secs (6970545 bytes/sec) # umount /home # mount /home # dd if=/home/jerome/buf of=/var/tmp/buf 524280+0 records in 524280+0 records out 268431360 bytes transferred in 51.639 secs (5198138 bytes/sec) On 15/12/2013 18:54, Nick Holland wrote: > First of all... USB isn't fast, flash is not fast. Ok, so it is normal that it tooks ~12min (on the intel based machine) to install all the packages listed previously ? On 15/12/2013 18:54, Nick Holland wrote: > you *MIGHT* find a small improvement if your OpenbSD partition is > aligned to a 4k (8 sector) count. Would be interesting, I would bet it > wouldn't be "human noticable" (i.e., at least 2x performance), but might > be statistically significant. And I might be wrong -- it might be > noticable. Thanks for this advice, I will keep it in mind for a future installation. On 15/12/2013 22:58, Jan Lambertz wrote: > you didnt post your /etc/fstab, so i can only assume your mounting. > if you want a fast openbsd usb stick consider using MFS and options like > noatime,softdeps. Sorry, I forgot it. I also add it at the end of this mail. Kind regards, Jérôme. --- # cat /etc/fstab 5f3fafcf8302435d.b none swap sw 5f3fafcf8302435d.a / ffs noatime,rw,softdep 1 1 5f3fafcf8302435d.f /home ffs noatime,rw,softdep,nodev,nosuid 1 2 5f3fafcf8302435d.e /usr ffs noatime,rw,softdep,nodev 1 2 5f3fafcf8302435d.d /var ffs noatime,rw,softdep,nodev,nosuid 1 2 swap /var/log mfs rw,async,nodev,nosuid,-s=64m 0 0 swap /tmp mfs rw,async,nodev,nosuid,-s=64m 0 0 # dmesg # of the intel based machine OpenBSD 5.4 (GENERIC.MP) #44: Tue Jul 30 12:13:32 MDT 2013 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Celeron(R) CPU B830 @ 1.80GHz ("GenuineIntel" 686-class) 1.80 GHz cpu0: FPU,V86,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,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,LAHF,PERF,ITSC real mem = 2006949888 (1913MB) avail mem = 1962696704 (1871MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/22/11, SMBIOS rev. 2.7 @ 0xeb220 (42 entries) bios0: vendor American Megatrends Inc. version "4.6.5" date 07/21/2012 bios0: CLEVO CO. W55xEU acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT MCFG SSDT HPET SSDT SSDT SSDT ASF! BGRT acpi0: wakeup devices P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) USB7(S3) PXSX(S5) RP01(S4) PXSX(S5) RP03(S4) PXSX(S5) RP04(S4) JMC2(S4) JMC3(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 99MHz cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Celeron(R) CPU B830 @ 1.80GHz ("GenuineIntel" 686-class) 1.80 GHz cpu1: FPU,V86,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,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,LAHF,PERF,ITSC ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpimcfg0 at acpi0 addr 0xf800, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (RP01) acpiprt2 at acpi0: bus 2 (RP03) acpiprt3 at acpi0: bus 3 (RP04) acpiprt4 at acpi0: bus 4 (RP05) acpiprt5 at acpi0: bus -1 (RP06) acpiec0 at acpi0 acpicpu0 at acpi0: C2, C1, PSS acpicpu1 at acpi0: C2, C1, PSS acpitz0 at
ehci_idone message with HP printer
Hello misc, I'm currently trying to configure lpd to work with an HP Officejet 4500 printer. After some researches and modifications, it works, but there still a problem : when all jobs are done I have this message that appear on the console : “ehci_idone: ex=0x is done!” and, sometimes, the printer still busy after printing (which forces me to push on the “cancel” button of the printer). Can anyone help me about this issue ? Below, you will find the result of the dmesg and usbdev commands and the content of my printcap file (the “filter.sh” file is simply a script that call the foomatic-rip command with the corrects arguments). Kind regards, Jérôme FRGACIC $ dmesg OpenBSD 5.5 (GENERIC.MP) #0: Sat May 3 15:28:46 CEST 2014 r...@basile.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 2130313216 (2031MB) avail mem = 2065051648 (1969MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xfd950 (22 entries) bios0: vendor American Megatrends Inc. version "P1.40" date 10/31/2012 bios0: ASRock N68C-GS FX acpi0 at bios0: rev 0 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG OEMB SRAT AAFT SSDT acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) SMB0(S4) USB0(S4) USB2(S4) NMAC(S5) P0P1(S4) HDAC(S4) BR10(S4) BR11(S4) BR12(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Athlon(tm) II X2 280 Processor, 3617.04 MHz 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,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu0: AMD erratum 721 detected and fixed cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 200MHz cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Athlon(tm) II X2 280 Processor, 3616.48 MHz 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,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu1: AMD erratum 721 detected and fixed cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins acpimcfg0 at acpi0 addr 0xf000, bus 0-127 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P1) acpiprt2 at acpi0: bus 2 (BR10) acpiprt3 at acpi0: bus 3 (BR11) acpiprt4 at acpi0: bus 4 (BR12) acpicpu0 at acpi0: PSS acpicpu1 at acpi0: PSS acpibtn0 at acpi0: PWRB cpu0: 3617 MHz: speeds: 3600 2900 2200 800 MHz pci0 at mainbus0 bus 0 "NVIDIA MCP61 Memory" rev 0xa1 at pci0 dev 0 function 0 not configured pcib0 at pci0 dev 1 function 0 "NVIDIA MCP61 ISA" rev 0xa2 nviic0 at pci0 dev 1 function 1 "NVIDIA MCP61 SMBus" rev 0xa2 iic0 at nviic0 spdmem0 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-5300CL5 iic1 at nviic0 "NVIDIA MCP61 Memory" rev 0xa2 at pci0 dev 1 function 2 not configured ohci0 at pci0 dev 2 function 0 "NVIDIA MCP61 USB" rev 0xa3: apic 2 int 10, version 1.0, legacy support ehci0 at pci0 dev 2 function 1 "NVIDIA MCP61 USB" rev 0xa3: apic 2 int 11 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1 ppb0 at pci0 dev 4 function 0 "NVIDIA MCP61" rev 0xa1 pci1 at ppb0 bus 1 azalia0 at pci0 dev 5 function 0 "NVIDIA MCP61 HD Audio" rev 0xa2: apic 2 int 10 azalia0: codecs: VIA/0x4397 audio0 at azalia0 pciide0 at pci0 dev 6 function 0 "NVIDIA MCP61 IDE" rev 0xa2: 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: ATAPI 5/cdrom removable atapiscsi1 at pciide0 channel 0 drive 1 scsibus1 at atapiscsi1: 2 targets cd1 at scsibus1 targ 0 lun 0: <_NEC, DVD_RW ND-1300A, 1.09> ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) nfe0 at pci0 dev 7 function 0 "NVIDIA MCP61 LAN" rev 0xa2: apic 2 int 10, address bc:5f:f4:b7:48:38 rgephy0 at nfe0 p
Re: ehci_idone message with HP printer
Thank you for your reply. Unfortunately, after upgrading my system to -current and applying the patch you send to me to the kernel, I got the same error. Here is the result of the dmesg command : OpenBSD 5.5-current (GENERIC.MP) #1: Mon Jul 14 22:05:14 CEST 2014 r...@basile.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 2130313216 (2031MB) avail mem = 2064879616 (1969MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xfd950 (22 entries) bios0: vendor American Megatrends Inc. version "P1.40" date 10/31/2012 bios0: ASRock N68C-GS FX acpi0 at bios0: rev 0 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG OEMB SRAT AAFT SSDT acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) SMB0(S4) USB0(S4) USB2(S4) NMAC(S5) P0P1(S4) HDAC(S4) BR10(S4) BR11(S4) BR12(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Athlon(tm) II X2 280 Processor, 3617.05 MHz 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,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu0: AMD erratum 721 detected and fixed cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 200MHz cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Athlon(tm) II X2 280 Processor, 3616.48 MHz 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,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu1: AMD erratum 721 detected and fixed cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins acpimcfg0 at acpi0 addr 0xf000, bus 0-127 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P1) acpiprt2 at acpi0: bus 2 (BR10) acpiprt3 at acpi0: bus 3 (BR11) acpiprt4 at acpi0: bus 4 (BR12) acpicpu0 at acpi0: PSS acpicpu1 at acpi0: PSS acpibtn0 at acpi0: PWRB cpu0: 3617 MHz: speeds: 3600 2900 2200 800 MHz pci0 at mainbus0 bus 0 "NVIDIA MCP61 Memory" rev 0xa1 at pci0 dev 0 function 0 not configured pcib0 at pci0 dev 1 function 0 "NVIDIA MCP61 ISA" rev 0xa2 nviic0 at pci0 dev 1 function 1 "NVIDIA MCP61 SMBus" rev 0xa2 iic0 at nviic0 spdmem0 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-5300CL5 iic1 at nviic0 "NVIDIA MCP61 Memory" rev 0xa2 at pci0 dev 1 function 2 not configured ohci0 at pci0 dev 2 function 0 "NVIDIA MCP61 USB" rev 0xa3: apic 2 int 10, version 1.0, legacy support ehci0 at pci0 dev 2 function 1 "NVIDIA MCP61 USB" rev 0xa3: apic 2 int 11 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1 ppb0 at pci0 dev 4 function 0 "NVIDIA MCP61" rev 0xa1 pci1 at ppb0 bus 1 azalia0 at pci0 dev 5 function 0 "NVIDIA MCP61 HD Audio" rev 0xa2: apic 2 int 10 azalia0: codecs: VIA/0x4397 audio0 at azalia0 pciide0 at pci0 dev 6 function 0 "NVIDIA MCP61 IDE" rev 0xa2: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: ATAPI 5/cdrom removable atapiscsi1 at pciide0 channel 0 drive 1 scsibus2 at atapiscsi1: 2 targets cd1 at scsibus2 targ 0 lun 0: <_NEC, DVD_RW ND-1300A, 1.09> ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) nfe0 at pci0 dev 7 function 0 "NVIDIA MCP61 LAN" rev 0xa2: apic 2 int 10, address bc:5f:f4:b7:48:38 rgephy0 at nfe0 phy 3: RTL8169S/8110S PHY, rev. 2 pciide1 at pci0 dev 8 function 0 "NVIDIA MCP61 SATA" rev 0xa2: DMA pciide1: using apic 2 int 5 for native-PCI interrupt wd0 at pciide1 channel 0 drive 0: wd0: 16-sector PIO, LBA48, 76324MB, 156312576 sectors wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6 pciide2 at pci0 dev 8 function 1 "NVIDIA MCP61 SATA" rev 0xa2: DMA pciide2: using apic 2 int 5 for native-PCI interrupt wd1 at pciide2 channel 0 drive 0: wd1: 16-sector PIO, LBA48, 76324MB, 156312576 sectors wd1(pciide2:0:0): using PIO mode 4, Ultra-DMA mode 5 ppb1 at pci0 dev 9 function 0 "NVIDIA MCP61 PCIE" rev 0xa2 pci2 a
Re: ehci_idone message with HP printer
If you see it only once, you can ignore it. Ok, this is the case for me. But do you still need to restart your printer? No, this problem seem actually to be fixed, thank you. :)
Kernel panic probably linked to inteldrm
Hi misc@, I have installed OpenBSD 6.7 on a new laptop and I experiment regular kernel panic. Unfortunately, I lack of information because ddb doesn't start when it happens. After some researches and tests, I've disabled inteldrm at kernel level and since I don't experience any kernel panic. So, I suppose this is linked, but since the behaviour seems to be random I'm not 100% sure. Is there any way to get more information when a kernel panic happen and ddb doesn't start? I see nothing in /var/log/messages nor /var/log/Xorg.0.log nor dmesg... And can I try something else in order to fix this issue with inteldrm? I have an Intel UHD Graphics « card ». I put below the output of dmesg, pcidump -v and Xorg.0.log, if it can help. Thanks in adavance. Kind regards, Jérôme FRGACIC $ dmesg OpenBSD 6.7 (GENERIC.MP) #4: Wed Jul 15 11:16:20 MDT 2020 r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8384339968 (7995MB) avail mem = 8117616640 (7741MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x97265000 (56 entries) bios0: vendor INSYDE Corp. version "1.07.05" date 10/24/2019 bios0: Notebook NJ50_70CU acpi0 at bios0: ACPI 5.1 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP UEFI SSDT SSDT LPIT WSMT SSDT DBGP DBG2 SSDT SSDT NHLT HPET APIC MCFG SSDT FPDT BGRT acpi0: wakeup devices XHC_(S3) HDAS(S4) RP01(S3) PXSX(S4) RP02(S3) PXSX(S4) RP03(S3) PXSX(S4) RP04(S3) PXSX(S4) RP05(S3) PXSX(S4) RP06(S3) PXSX(S4) RP07(S3) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 2399 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 15439.45 MHz, 06-8e-0c 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.42 MHz, 06-8e-0c 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.40 MHz, 06-8e-0c cpu2: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 1, core 0, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.41 MHz, 06-8e-0c cpu3: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (RP01) acpiprt2 at acpi0: bus -1 (RP02) acpiprt3 at acpi0: bus -1 (RP03) acpiprt4 at acpi0: bus -1 (RP04) acpiprt5 at acpi0: bus -1 (RP05) acpiprt6 at acpi0: bus -1 (RP06) acpiprt7 at acpi0: bus -1 (RP07) acpiprt8
Screen stays off after resuming
Hi misc@, I've installed OpenBSD 6.7 on a new laptop and I experience some problems when my laptop resume : the screen stays off. Whatever I do like switching to a tty or restarting the X server, it stays off. Everything seems to be ok behind because I can still enter commands if I “blind typing”, it's just that the screen is off. I must precise that I've disabled inteldrm at kernel level because I experience kernel panic when I use it (I've exposed my problem in another thread). I only remark those errors in dmesg and in /var/log/Xorg.0.log at some points: - “wddisplay_switch2: not switching”; - “ioctl FBIOPUTCMAP: Inappropriate ioctl for device”; and - “ioctl FBIOGETCMAP: Inappropriate ioctl for device”. Does anyone have an idea in order to fix this issue? If it can help, you will find below the output of dmesg, pcidump -v and /var/log/Xorg.0.log. Thanks in advance. Kind regards, Jérôme FRGACIC $ dmesg OpenBSD 6.7 (GENERIC.MP) #4: Wed Jul 15 11:16:20 MDT 2020 r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8384339968 (7995MB) avail mem = 8117616640 (7741MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x97265000 (56 entries) bios0: vendor INSYDE Corp. version "1.07.05" date 10/24/2019 bios0: Notebook NJ50_70CU acpi0 at bios0: ACPI 5.1 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP UEFI SSDT SSDT LPIT WSMT SSDT DBGP DBG2 SSDT SSDT NHLT HPET APIC MCFG SSDT FPDT BGRT acpi0: wakeup devices XHC_(S3) HDAS(S4) RP01(S3) PXSX(S4) RP02(S3) PXSX(S4) RP03(S3) PXSX(S4) RP04(S3) PXSX(S4) RP05(S3) PXSX(S4) RP06(S3) PXSX(S4) RP07(S3) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 2399 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 15447.77 MHz, 06-8e-0c 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.42 MHz, 06-8e-0c 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.40 MHz, 06-8e-0c cpu2: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 1, core 0, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.40 MHz, 06-8e-0c cpu3: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (RP01) acpiprt2 at acpi0: bus -1 (RP02) acpiprt3 at acpi0: bus -1 (RP03) acpiprt4 at ac
Touchpad seems to be considered like a keyboard
Hi misc@, I've installed OpenBSD 6.7 on a new laptop and I exprience some troubles with the touchpad. To be simple: it seems to be considered like a keyboard because when I use it, my computer behave like if I press a letter indefinitely until I use the keyboard (then the behaviour stops but I have to erase those letters). I see nothing linked to the touchpad in the output of dmesg and I have no options in the BIOS to disable it. Does anyone have an idea in order to fix this? If it can help, you will find bellow the output of dmesg, pcidump -v and wsconsctl. Thanks in adavance. Kind regards, Jérôme FRGACIC $ dmesg OpenBSD 6.7 (GENERIC.MP) #4: Wed Jul 15 11:16:20 MDT 2020 r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8384339968 (7995MB) avail mem = 8117616640 (7741MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x97265000 (56 entries) bios0: vendor INSYDE Corp. version "1.07.05" date 10/24/2019 bios0: Notebook NJ50_70CU acpi0 at bios0: ACPI 5.1 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP UEFI SSDT SSDT LPIT WSMT SSDT DBGP DBG2 SSDT SSDT NHLT HPET APIC MCFG SSDT FPDT BGRT acpi0: wakeup devices XHC_(S3) HDAS(S4) RP01(S3) PXSX(S4) RP02(S3) PXSX(S4) RP03(S3) PXSX(S4) RP04(S3) PXSX(S4) RP05(S3) PXSX(S4) RP06(S3) PXSX(S4) RP07(S3) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 2399 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 15447.77 MHz, 06-8e-0c 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.42 MHz, 06-8e-0c 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.40 MHz, 06-8e-0c cpu2: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 1, core 0, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 3691.40 MHz, 06-8e-0c cpu3: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (RP01) acpiprt2 at acpi0: bus -1 (RP02) acpiprt3 at acpi0: bus -1 (RP03) acpiprt4 at acpi0: bus -1 (RP04) acpiprt5 at acpi0: bus -1 (RP05) acpiprt6 at acpi0: bus -1 (RP06) acpiprt7 at acpi0: bus -1 (RP07) acpiprt8 at acpi0: bus -1 (RP08) acpiprt9 at acpi0: bus 1 (RP09) acpiprt10 at acpi0: bus 6 (RP10) acpiprt11 at acpi0: bus -1 (RP11) acpiprt12 at acpi0: bus -1 (RP12) acpiprt13 at acpi0: bus -1 (RP1
Re: Kernel panic probably linked to inteldrm
Ok, after further investigations, my problem does not seems to be linked with inteldrm. The kernel panic seems to happen randomly with or without inteldrm enabled. Nevertheless, if I disable inteldrm, I can access ddb when the panic happen (I don't know why, BTW) and I get this. kernel: double fault trap, code=0 Stopped at restore_saved+0x1e: xorq 0x30(%rsp),%r11 I have no stack trace with the ???trace??? command and the command ???show panic??? tells me that the kernel do not panic (which is... strange?). If I correctly look at the kernel sources, restore_saved seems to be called by cpu_switchto which is responsible to switch processes between the different processors. Any idea about this problem?
Infinite spin when trying to burn a CD
Hi misc, I encounter an annoying problem when I try to burn a CD on my laptop: my CD spin forever and nothing is written on it. Worst: it's impossible for me to eject the CD without rebooting. Here is the command I use: cdio -vv -f cd0c tao -d file.iso and here is the output: Features: 0x Profile List (56 bytes of data) 00 00 03 38|00 15 00 00 00 16 00 00 00 2b 00 00 00 1b 00 00 00 1a 00 00 00 14 00 00 00 13 00 00 00 12 00 00 00 11 00 00 00 10 00 00 00 0a 01 00 00 09 00 00 00 08 00 00 00 02 00 00 Profiles: 0x0015 Dual Layer DVD-R using Sequential recording 0x0016 Dual Layer DVD-R using Layer Jump recording 0x002b DVD+Recordable Dual Layer 0x001b DVD+Recordable 0x001a DVD+ReWritable 0x0014 Re-recordable DVD using Sequential recording 0x0013 Re-recordable DVD using Restricted Overwrite 0x0012 Re-writable DVD 0x0011 Write once DVD using Sequential recording 0x0010 Read only DVD * 0x000a Re-writable Compact Disc [Current Profile] 0x0009 Write once Compact Disc 0x0008 Read only Compact Disc 0x0002 Re-writable, with removable media 0x0001 Core (8 bytes of data) 00 01 0b 08|00 00 00 07 01 00 00 00 0x0002 Morphing (4 bytes of data) 00 02 07 04|02 00 00 00 0x0003 Removable Medium (4 bytes of data) 00 03 07 04|2b 00 00 00 0x0021 Incremental Streaming Writable (8 bytes of data) 00 21 0d 08|3d 0f 00 01 07 00 00 00 0x0023 Formattable (8 bytes of data) 00 23 09 08|00 00 00 00 00 00 00 00 0x002d CD Track at Once (TAO) (4 bytes of data) 00 2d 09 04|46 00 3f 0f 0x002e CD Mastering (Session at Once) (4 bytes of data) 00 2e 05 04|7f 00 0d 00 0x0037 CD-RW Media Write Support (4 bytes of data) 00 37 01 04|00 0f 00 00 0x0100 Power Management 01 00 03 00 0x0104 Microcode Upgrade (4 bytes of data) 01 04 07 04|00 00 00 00 0x0105 Timeout (4 bytes of data) 01 05 07 04|00 00 00 00 0x0107 Real Time Streaming (4 bytes of data) 01 07 15 04|1f 00 00 00 0x0108 Drive Serial Number (16 bytes of data) 01 08 03 10|52 38 56 30 36 47 56 43 37 30 30 32 59 4c 20 20 track 01 'd' 0031/00327168 0% Nothing change after this. On dmesg output I obtain those errors. cd0(ahci0:2:0): Check Condition (error 0x70) on opcode 0x1e SENSE KEY: Illegal Request Does anyone can help me on this issue? If it can help, I put my full dmesg output below. Kind regards, Jérôme FRGACIC PS: I do not have subscribe to this mailing list, so please add me as a recipient if you reply to this message. OpenBSD 6.4 (GENERIC.MP) #8: Thu Mar 21 14:26:24 CET 2019 r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 1999732736 (1907MB) avail mem = 1929854976 (1840MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb220 (42 entries) bios0: vendor American Megatrends Inc. version "4.6.5" date 07/21/2012 bios0: CLEVO CO. W55xEU acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT MCFG SSDT HPET SSDT SSDT SSDT ASF! BGRT acpi0: wakeup devices P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) USB7(S3) PXSX(S5) RP01(S4) PXSX(S5) RP03(S4) RP04(S4) PXSX(S5) RP05(S4) PXSX(S5) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Celeron(R) CPU B830 @ 1.80GHz, 1796.22 MHz, 06-2a-07 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Celeron(R) CPU B830 @ 1.80GHz, 1795.93 MHz, 06-2a-07 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xf800, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (RP01) acpiprt2 at acpi0: bus 2 (RP03) acpiprt3 at acpi0: bus 3 (RP04) acpiprt4 at acpi0: bus 4 (RP05) acpiprt5 at acpi0: bus -1 (RP06) acpiec0 at acpi0 acpicpu0 at acpi0: C2(500@80 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: C2(500@80 mwait.1
Re: Infinite spin when trying to burn a CD
Thanks for your reply. # cdio -f /dev/rcd0c tao -s 1 file.iso Maybe? Raw device and slow speed I've try it, but unfortunetly it doesn't change anything, nothing is written on the disk and it spins forever. Nevertheless, after further investigation, it seems that the problem only appear if the ISO image has a size greater than ~512k... I can blank a CD, write small ISO images (~512ko max), but if I try to write anything else, I got a CD that spin indefinitly without the possibility to eject it.
Re: Infinite spin when trying to burn a CD
Thanks for all your replies. it means the optcode does alllow or prevent media removal it depends on the prevent bits in the cdb but you basically just have a 00 for allow or a 01 for prevent in the cdb. Anyway since sense already told you the request is illegal you have to figure out what came befor the removal request so you might get a clue in what state the hardware is still. Thanks for those informations. Unfortunetly, I don't have more informations or error than those for the moment to determine what happen exactly. Have you tried cdrecord from ports? I haven't burnt a CD in awhile but last time I did I couldn't get cdio to work but cdrecord would. I've tried cdrecord too, but I have the same problem. More precisely, it quits because it encounters an error, but the CD is still spining forever. I put the output of cdrecord at the end, just in case it can help, but since it seems to be a hardware problem, I suppose there is no easy solutions (except changing it, of course). ^^" Kind regards, Jérôme write track data: error after 552960 bytes cdrecord: A write error occured. cdrecord: Please properly read the error message above. cdrecord: Input/output error. test unit ready: scsi sendcmd: retryable error CDB: 00 00 00 00 00 00 status: 0x0 (GOOD STATUS) cmd finished after 0.000s timeout 40s cdrecord: Input/output error. flush cache: scsi sendcmd: retryable error CDB: 35 00 00 00 00 00 00 00 00 00 status: 0x0 (GOOD STATUS) cmd finished after 0.000s timeout 120s Trouble flushing the cache Writing time:5.115s Average write speed 860.1x. Fixating... cdrecord: Input/output error. close track/session: scsi sendcmd: retryable error CDB: 5B 00 02 00 00 00 00 00 00 00 status: 0x0 (GOOD STATUS) cmd finished after 0.009s timeout 480s cmd finished after 0.009s timeout 480s cdrecord: faio_wait_on_buffer for writer timed out. cdrecord: Input/output error. prevent/allow medium removal: scsi sendcmd: retryable error CDB: 1E 00 00 00 00 00 status: 0x0 (GOOD STATUS) cmd finished after 0.000s timeout 40s cdrecord: Cannot fixate disk. Fixating time: 466.776s cdrecord: Input/output error. prevent/allow medium removal: scsi sendcmd: retryable error CDB: 1E 00 00 00 00 00 status: 0x0 (GOOD STATUS) cmd finished after 0.000s timeout 40s cdrecord: fifo had 77 puts and 10 gets. cdrecord: fifo was 0 times empty and 2 times full, min fill was 89%.
pf group and setgid
Hi @misc, I have a question about pf and its possibility to filter packets by process group: is it a reasonable practice to use setgid for add some rules that allow only specific programs to use some services? For example, only permit the ftp command and firefox to use HTTP and HTTPS services? If I create a separate group for each program I want to allow, is there any additional risk induce by the use of the setgid? Also, does this practise can be helpful by adding a supplementary layer of protection or is it useless? $ ls -l /usr/bin/ftp -r-xr-sr-x 1 root ftpcmd 151168 Jul 26 2016 /usr/bin/ftp $ grep ftpcmd /etc/pf.conf pass out on if proto tcp from (if:0) to any port { 80,443 } group ftpcmd Kind regards, Jérôme FRGACIC PS: I not subscribe to this list, so please add me as recipient if you reply.
Re: pf group and setgid
Thanks for your reply. You are providing a program with an additional gid. The program has not been coded be aware of that gid. Two potentially different filesystem views now exist within the program, depending on the g=rwx bits of directories and files in the tree. The program is no longer operating in a world-view it was designed for. Could you be more precise on this point? I mean: if I correctly understand, you said that this can induce unwanted behavior due to the fact that, for example, firefox suppose it has the uid and gid of the user who launch it (and not a different egid)? If I'am right, does this can really mater if the egid is the one of a group that only own one (executable) file in the whole system whith only read and execute permission on it?
Re: pf group and setgid
You seem to be equating the setgid bit with the concept of "start a process with a different gid". No, that's not what it does. The setgid bit starts a new executable with a disjoint mix of effective, saved, and real gid list, as well as a gidlist. Maybe it was not clear in my message but: no, I know that the setgid change only the egid of a process and keep the gid, and the list of other groups intact. And that may have consequences. This is exacly my question: which type of consequences in the case of an executable with the setgid bit set and owned by a group that only own this file and have only read and execute permission? I'm not saying I'm better than others or that I can imagine all possible consequences of this practise, I only want to have an example and better understand why this is a dangerous practise with another answer than simply "this is bad", "this is dangerous" or "you are crazy". This is certainly true if you said so, but I want to know "why" and "how". My motivation is simply curiosity. If I can't have an answer, well, I will experiment with ls as you said until I found one day my answer.
Re: ed -s
> Yes, the "-s" option concern only messages printed on stdout. Sorry, this is bullshit. The message: "newline appended" is an informational message, not a diagnostic (error message). I supposed this is why it is not concerned by the "-s" option.
Re: ed -s
Hello, > Invoking "ed -s file.txt", where file does not contain a newline at > the end, sends to stderr in spite of -s flag: "newline appended". > Is this normal behaviour? Yes, the "-s" option concern only messages printed on stdout. > Does ed/sed spoil files with non ascii bytes (for example unicode > characters)? > By experience seems to me that they, as also lex, do not spoil the > files, that one can edit them, but I do not know to what extent, if > there is a risk. ed uses the C stdio functions. So, printing and editing will be correct until the charsets of both your file and your terminal are the same. Nevertheless, ASCII characters MUST stay on one byte in this charset. So you cannot use it with UTF-16 and UTF-32.