Monday, July 31, 2017

Re: NEW PORT: systemd

On Mon, Jul 31, 2017 at 08:07:13PM +0200, Marc Espie wrote:
> Port is attached.

Missing a full stop in DESCR, looks good to me otherwise.

OK.

--
jasper

Re: touchpad input driver: testing needed

Feedback report
---------------


Hardware: Thinkpad X220.
Results: Excellent!
wsconsctl configuration changes: None.

mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1472,5768,1408,5062,0,65,136
mouse.tp.tapping=0
mouse.tp.scaling=0.163
mouse.tp.swapsides=0
mouse.tp.disable=0
mouse1.type=ps2
mouse2.type=usb

OpenBSD 6.1-current (GENERIC.MP) #23: Sun Jul 30 17:07:49 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80<clock_battery>
real mem = 8451125248 (8059MB)
avail mem = 8188645376 (7809MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (66 entries)
bios0: vendor LENOVO version "8DET73WW (1.43 )" date 10/12/2016
bios0: LENOVO 4291G26
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA SSDT SSDT DMAR UEFI UEFI UEFI
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.30 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2492296960 Hz
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.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP4)
acpiprt5 at acpi0: bus 13 (EXP5)
acpiprt6 at acpi0: bus -1 (EXP7)
acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu1 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu2 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu3 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0303" at acpi0 not configured
"LEN0020" at acpi0 not configured
"SMO1200" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "42T4875" serial 94 type LION oem "Panasonic"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 2492 MHz: speeds: 2501, 2500, 2200, 2000, 1800, 1600, 1400, 1200, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address f0:de:f1:78:7c:39
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16
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 6 Series HD Audio" rev 0x04: msi
azalia0: codecs: Conexant CX20590, Intel/0x2805, using Conexant CX20590
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb4: msi
pci2 at ppb1 bus 3
rtwn0 at pci2 dev 0 function 0 "Realtek 8188CE" rev 0x01: msi
rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R, address ec:55:f9:c6:f9:40
ppb2 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb4: msi
pci3 at ppb2 bus 13
sdhc0 at pci3 dev 0 function 0 "Ricoh 5U822 SD/MMC" rev 0x07: apic 2 int 16
sdhc0: SDHC 3.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel QM67 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 2: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, SSD2SC240G1CS175, CS11> SCSI3 0/direct fixed naa.5f8db4c115701558
sd0: 228936MB, 512 bytes/sector, 468862128 sectors, thin
sd1 at scsibus1 targ 2 lun 0: <ATA, TS32GMSA370, N112> SCSI3 0/direct fixed t10.ATA_TS32GMSA370_C528390021_
sd1: 30533MB, 512 bytes/sector, 62533296 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x04: apic 2 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.1, 0x1e2b1 0x940300
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 "Performance Designed Products Rock Candy Wireless Keyboard" rev 1.00/10.01 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 2 configuration 1 interface 1 "Performance Designed Products Rock Candy Wireless Keyboard" rev 1.00/10.01 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1: 5 buttons, Z and W dir
wsmouse2 at ums0 mux 0
uhidev2 at uhub2 port 2 configuration 1 interface 2 "Performance Designed Products Rock Candy Wireless Keyboard" rev 1.00/10.01 addr 3
uhidev2: iclass 3/0, 3 report ids
uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 3: input=2, output=0, feature=0
ugen0 at uhub2 port 3 "UPEK Biometric Coprocessor" rev 1.01/0.02 addr 4
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd2: 228935MB, 512 bytes/sector, 468860513 sectors
root on sd2a (84cf7725b144158a.a) swap on sd2b dump on sd2b

Re: touchpad input driver: testing needed

On Mon, Jul 31, 2017 at 11:02:28PM +0200, Ulf Brosziewski wrote:
> for you. As always, a dmesg would be appreciated. The output of
> # wsconsctl | grep 'mouse'
> could also be of interest here (you must run it as root).

Here is another report from a Lenovo N22. This system has a Synaptics
touchpad as well and works perfectly with the new driver.

# wsconsctl | grep mouse
mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1472,5788,1408,4966,0,58,94
mouse.tp.tapping=0
mouse.tp.scaling=0.164
mouse.tp.swapsides=0
mouse.tp.disable=0

Bryan


OpenBSD 6.1-current (GENERIC.MP) #27: Mon Jul 31 12:56:47 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4117872640 (3927MB)
avail mem = 3986718720 (3802MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe0840 (61 entries)
bios0: vendor Lenovo version "0YCN17WW" date 03/31/2016
bios0: LENOVO 80S6
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI MCFG SSDT SSDT SSDT SSDT SSDT APIC UEFI MSDM BATB FPDT UEFI BGRT tCSR
acpi0: wakeup devices XHC1(S4) BRC1(S0) PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-63
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU N3050 @ 1.60GHz, 1600.36 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: TSC frequency 1600363400 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 80MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu1 at mainbus0: apid 4 (application processor)
cpu1: Intel(R) Celeron(R) CPU N3050 @ 1.60GHz, 1600.01 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 2, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 115 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus 2 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiec0 at acpi0
acpicpu0 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: CLK0
acpipwrres1 at acpi0: CLK1
acpipwrres2 at acpi0: ID3C, resource for ISP3
acpipwrres3 at acpi0: USBC, resource for XHC1
acpipwrres4 at acpi0: FN00, resource for FAN0
acpitz0 at acpi0: critical temperature is 90 degC
acpibat0 at acpi0: BAT1 model "Harris Beach" serial 123456789 type LION oem "Intel SR 1"
"VPC2004" at acpi0 not configured
"MSFT0001" at acpi0 not configured
"SYN2F02" at acpi0 not configured
sdhc0 at acpi0: SDHA addr 0x91319000/0x1000 irq 45
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
sdhc1 at acpi0: SDHB addr 0x91317000/0x1000 irq 46
sdhc1: SDHC 3.0, 200 MHz base clock
sdmmc1 at sdhc1: 4-bit, sd high-speed, mmc high-speed, dma
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
"INT3400" at acpi0 not configured
"INT3403" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1601, 1600, 1520, 1440, 1360, 1280, 1200, 1120, 1040, 960, 880, 800, 720, 640, 560, 480 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x21
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x21
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel Braswell Power" rev 0x21 at pci0 dev 11 function 0 not configured
sdhc2 at pci0 dev 18 function 0 vendor "Intel", unknown product 0x2296 rev 0x21: apic 1 int 18
sdhc2: SDHC 3.0, 200 MHz base clock
sdmmc2 at sdhc2: 4-bit, sd high-speed, mmc high-speed, dma
ahci0 at pci0 dev 19 function 0 "Intel Braswell AHCI" rev 0x21: msi, AHCI 1.3.1
ahci0: PHY offline on port 0
ahci0: PHY offline on port 1
scsibus1 at ahci0: 32 targets
xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x21: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel Braswell TXE" rev 0x21 at pci0 dev 26 function 0 not configured
azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev 0x21: msi
azalia0: codecs: Realtek ALC269, Intel/0x2883, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x21: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 "Intel Braswell PCIE" rev 0x21: msi
pci2 at ppb1 bus 2
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 7260" rev 0x83, msi
pcib0 at pci0 dev 31 function 0 "Intel Braswell PCU LPC" rev 0x21
ichiic0 at pci0 dev 31 function 3 "Intel Braswell SMBus" rev 0x21: apic 1 int 18
iic0 at ichiic0
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.5, 0x1c0b1 0x240000
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
efifb at mainbus0 not configured
sdmmc1: can't enable card
scsibus2 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <Sandisk, DF4032, 0000> SCSI2 0/direct removable
sd0: 29820MB, 512 bytes/sector, 61071360 sectors
ugen0 at uhub0 port 3 "Intel product 0x07dc" rev 2.00/0.01 addr 2
uvideo0 at uhub0 port 5 configuration 1 interface 0 "vendor 0x0408 Lenovo EasyCamera" rev 2.00/0.11 addr 3
video0 at uvideo0
umass0 at uhub0 port 8 configuration 1 interface 0 "Samsung Flash Drive FIT" rev 3.00/11.00 addr 4
umass0: using SCSI over Bulk-Only
scsibus3 at umass0: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: <Samsung, Flash Drive FIT, 1100> SCSI4 0/direct removable serial.090c1000616080014528
sd1: 30592MB, 512 bytes/sector, 62652416 sectors
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on sd1a (d083d96d5632ccdb.a) swap on sd1b dump on sd1b
iwm0: hw rev 0x140, fw ver 16.242414.0, address 90:2e:1c:12:34:56

Re: touchpad input driver: testing needed

On Mon, Jul 31, 2017 at 08:09:31PM -0400, Ted Unangst wrote:
> Bryan Vyhmeister wrote:
> > On Mon, Jul 31, 2017 at 11:02:28PM +0200, Ulf Brosziewski wrote:
> > > for you. As always, a dmesg would be appreciated. The output of
> > > # wsconsctl | grep 'mouse'
> > > could also be of interest here (you must run it as root).
> >
> > This report is from a MacBookAir7,2 which is a 2015 13-inch MacBook Air.
> > Anything more than a regular click is not working as can be seen from
> > the wsconsctl output. I was using synclient to configure previously
> > which did allow the other settings.
>
> Can you also share your synclient settings?

Sure. I was using synclient(1) with the following settings but
synclient(1) no longer works with this driver.

synclient ClickFinger2=2 ClickFinger3=3 PalmDetect=0 PalmMinWidth=4 PalmMinZ=100

Bryan

Re: touchpad input driver: testing needed

Bryan Vyhmeister wrote:
> On Mon, Jul 31, 2017 at 11:02:28PM +0200, Ulf Brosziewski wrote:
> > for you. As always, a dmesg would be appreciated. The output of
> > # wsconsctl | grep 'mouse'
> > could also be of interest here (you must run it as root).
>
> This report is from a MacBookAir7,2 which is a 2015 13-inch MacBook Air.
> Anything more than a regular click is not working as can be seen from
> the wsconsctl output. I was using synclient to configure previously
> which did allow the other settings.

Can you also share your synclient settings?

Re: Calculate the frequency of the tsc timecounter

On Tue, Aug 1, 2017 at 7:26 AM, Adam Steen <adam@adamsteen.com.au> wrote:
> Mike Belopuhov wrote:
>
>> To be able to use TSC as a timecounter source on OpenBSD or Solo5
>> you'd have to improve the in-kernel measurement of the TSC frequency
>> first. I've tried to perform 10 measurements and take an average and
>> it does improve accuracy, however I believe we need to poach another
>> bit from Linux and re-calibrate TSC via HPET:
>>
>> http://elixir.free-electrons.com/linux/v4.12.4/source/arch/x86/kernel/tsc.c#L409
>>
>> I think this is the most sane thing we can do. Here's a complete
>> procedure that Linux kernel undertakes:
>>
>> http://elixir.free-electrons.com/linux/v4.12.4/source/arch/x86/kernel/tsc.c#L751
>>
>> Regards,
>> Mike
>
> Looks like i have more sort out!
>
> Mike Larkin wrote:
>> If you point me to a bootable image that causes this failure, I might be
>> able to figure out what vmm(4) doesn't like.
>>
>> Nothing in lines 122-134 of the file indicated above should cause this.
>
> This is where things get a little more interesting, Solo5
> (https://github.com/adamsteen/solo5) is actually two parts Solo5 the
> Unikernel and ukvm the userland side of a hypervisor (currently
> running with kvm and bhyve), I have been porting to run ukvm directly
> with vmm. I expect the cause of "vmx_handle_exit: unhandled exit
> 2147483681 (unknown)" is the register setup in
> https://github.com/adamsteen/solo5/blob/master/ukvm/ukvm_hv_openbsd_x86_64.c,
> lines 118-147
>
> the constants are ukvm constants.
>
> struct vm_resetcpu_params vrp = {
> .vrp_vm_id = hvb->vcp_id,
> .vrp_vcpu_id = hvb->vcpu_id,
> .vrp_init_state = {
> .vrs_gprs[VCPU_REGS_RFLAGS] = X86_RFLAGS_INIT,
> .vrs_gprs[VCPU_REGS_RIP] = gpa_ep,
> .vrs_gprs[VCPU_REGS_RSP] = hv->mem_size - 8,
> .vrs_gprs[VCPU_REGS_RDI] = X86_BOOT_INFO_BASE,
> .vrs_crs[VCPU_REGS_CR0] = X86_CR0_INIT,
> .vrs_crs[VCPU_REGS_CR3] = X86_CR3_INIT,
> .vrs_crs[VCPU_REGS_CR4] = X86_CR4_INIT,
> .vrs_sregs[VCPU_REGS_CS] = sreg_to_vsi(&ukvm_x86_sreg_code),
> .vrs_sregs[VCPU_REGS_DS] = sreg_to_vsi(&ukvm_x86_sreg_data),
> .vrs_sregs[VCPU_REGS_ES] = sreg_to_vsi(&ukvm_x86_sreg_data),
> .vrs_sregs[VCPU_REGS_FS] = sreg_to_vsi(&ukvm_x86_sreg_data),
> .vrs_sregs[VCPU_REGS_GS] = sreg_to_vsi(&ukvm_x86_sreg_data),
> .vrs_sregs[VCPU_REGS_SS] = sreg_to_vsi(&ukvm_x86_sreg_data),
> .vrs_gdtr = { 0x0, X86_GDTR_LIMIT, 0x0, X86_GDT_BASE},
> .vrs_idtr = { 0x0, 0xFFFF, 0x0, 0x0},
> .vrs_sregs[VCPU_REGS_LDTR] = sreg_to_vsi(&ukvm_x86_sreg_unusable),
> .vrs_sregs[VCPU_REGS_TR] = sreg_to_vsi(&ukvm_x86_sreg_tr),
> .vrs_msrs[VCPU_REGS_EFER] = X86_EFER_INIT,
> .vrs_msrs[VCPU_REGS_STAR] = 0ULL,
> .vrs_msrs[VCPU_REGS_LSTAR] = 0ULL,
> .vrs_msrs[VCPU_REGS_CSTAR] = 0ULL,
> .vrs_msrs[VCPU_REGS_SFMASK] = 0ULL,
> .vrs_msrs[VCPU_REGS_KGSBASE] = 0ULL,
> .vrs_crs[VCPU_REGS_XCR0] = XCR0_X87
> }
> };
>
> the three specific OpenBSD files are
> https://github.com/adamsteen/solo5/blob/master/ukvm/ukvm_hv_openbsd.h
> https://github.com/adamsteen/solo5/blob/master/ukvm/ukvm_hv_openbsd.c
> https://github.com/adamsteen/solo5/blob/master/ukvm/ukvm_hv_openbsd_x86_64.c
> with small changes in ukvm/ukvm_elf.c and ukvm/ukvm_module_net.c
>
> I could upload a binary image for you but It won't run with vmd its
> has ukvm specific hypercalls designed to simplify things.
>
> Cheers
> Adam
>
> ps i am currently trying to document the differences in what vmm is
> expecting and ukvm is expecting.

One more thing

Please note currently i have to build the bootable binary image of
solo5 with a cross compiler as i have not figured out the
discrepancies between OpenBSD's ld and solo5's linker script.

Cheers
Adam

Re: Calculate the frequency of the tsc timecounter

Mike Belopuhov wrote:

> To be able to use TSC as a timecounter source on OpenBSD or Solo5
> you'd have to improve the in-kernel measurement of the TSC frequency
> first. I've tried to perform 10 measurements and take an average and
> it does improve accuracy, however I believe we need to poach another
> bit from Linux and re-calibrate TSC via HPET:
>
> http://elixir.free-electrons.com/linux/v4.12.4/source/arch/x86/kernel/tsc.c#L409
>
> I think this is the most sane thing we can do. Here's a complete
> procedure that Linux kernel undertakes:
>
> http://elixir.free-electrons.com/linux/v4.12.4/source/arch/x86/kernel/tsc.c#L751
>
> Regards,
> Mike

Looks like i have more sort out!

Mike Larkin wrote:
> If you point me to a bootable image that causes this failure, I might be
> able to figure out what vmm(4) doesn't like.
>
> Nothing in lines 122-134 of the file indicated above should cause this.

This is where things get a little more interesting, Solo5
(https://github.com/adamsteen/solo5) is actually two parts Solo5 the
Unikernel and ukvm the userland side of a hypervisor (currently
running with kvm and bhyve), I have been porting to run ukvm directly
with vmm. I expect the cause of "vmx_handle_exit: unhandled exit
2147483681 (unknown)" is the register setup in
https://github.com/adamsteen/solo5/blob/master/ukvm/ukvm_hv_openbsd_x86_64.c,
lines 118-147

the constants are ukvm constants.

struct vm_resetcpu_params vrp = {
.vrp_vm_id = hvb->vcp_id,
.vrp_vcpu_id = hvb->vcpu_id,
.vrp_init_state = {
.vrs_gprs[VCPU_REGS_RFLAGS] = X86_RFLAGS_INIT,
.vrs_gprs[VCPU_REGS_RIP] = gpa_ep,
.vrs_gprs[VCPU_REGS_RSP] = hv->mem_size - 8,
.vrs_gprs[VCPU_REGS_RDI] = X86_BOOT_INFO_BASE,
.vrs_crs[VCPU_REGS_CR0] = X86_CR0_INIT,
.vrs_crs[VCPU_REGS_CR3] = X86_CR3_INIT,
.vrs_crs[VCPU_REGS_CR4] = X86_CR4_INIT,
.vrs_sregs[VCPU_REGS_CS] = sreg_to_vsi(&ukvm_x86_sreg_code),
.vrs_sregs[VCPU_REGS_DS] = sreg_to_vsi(&ukvm_x86_sreg_data),
.vrs_sregs[VCPU_REGS_ES] = sreg_to_vsi(&ukvm_x86_sreg_data),
.vrs_sregs[VCPU_REGS_FS] = sreg_to_vsi(&ukvm_x86_sreg_data),
.vrs_sregs[VCPU_REGS_GS] = sreg_to_vsi(&ukvm_x86_sreg_data),
.vrs_sregs[VCPU_REGS_SS] = sreg_to_vsi(&ukvm_x86_sreg_data),
.vrs_gdtr = { 0x0, X86_GDTR_LIMIT, 0x0, X86_GDT_BASE},
.vrs_idtr = { 0x0, 0xFFFF, 0x0, 0x0},
.vrs_sregs[VCPU_REGS_LDTR] = sreg_to_vsi(&ukvm_x86_sreg_unusable),
.vrs_sregs[VCPU_REGS_TR] = sreg_to_vsi(&ukvm_x86_sreg_tr),
.vrs_msrs[VCPU_REGS_EFER] = X86_EFER_INIT,
.vrs_msrs[VCPU_REGS_STAR] = 0ULL,
.vrs_msrs[VCPU_REGS_LSTAR] = 0ULL,
.vrs_msrs[VCPU_REGS_CSTAR] = 0ULL,
.vrs_msrs[VCPU_REGS_SFMASK] = 0ULL,
.vrs_msrs[VCPU_REGS_KGSBASE] = 0ULL,
.vrs_crs[VCPU_REGS_XCR0] = XCR0_X87
}
};

the three specific OpenBSD files are
https://github.com/adamsteen/solo5/blob/master/ukvm/ukvm_hv_openbsd.h
https://github.com/adamsteen/solo5/blob/master/ukvm/ukvm_hv_openbsd.c
https://github.com/adamsteen/solo5/blob/master/ukvm/ukvm_hv_openbsd_x86_64.c
with small changes in ukvm/ukvm_elf.c and ukvm/ukvm_module_net.c

I could upload a binary image for you but It won't run with vmd its
has ukvm specific hypercalls designed to simplify things.

Cheers
Adam

ps i am currently trying to document the differences in what vmm is
expecting and ukvm is expecting.

Re: touchpad input driver: testing needed

On Mon, Jul 31, 2017 at 11:02:28PM +0200, Ulf Brosziewski wrote:
> for you. As always, a dmesg would be appreciated. The output of
> # wsconsctl | grep 'mouse'
> could also be of interest here (you must run it as root).

This report is from a MacBookAir7,2 which is a 2015 13-inch MacBook Air.
Anything more than a regular click is not working as can be seen from
the wsconsctl output. I was using synclient to configure previously
which did allow the other settings.

# wsconsctl | grep mouse
mouse.type=usb
mouse.rawmode=1
mouse.scale=0,0,0,0,0,0,0
mouse1.type=elantech
mouse1.rawmode=0
mouse1.scale=-4620,5140,-150,6600,0,0,0

Bryan


OpenBSD 6.1-current (GENERIC.MP) #27: Mon Jul 31 12:56:47 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error ff<clock_battery,ROM_cksum,config_unit,memory_size,fixed_disk,invalid_time>
real mem = 8469352448 (8077MB)
avail mem = 8206315520 (7826MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x8afad000 (32 entries)
bios0: vendor Apple Inc. version "MBA71.88Z.0166.B26.1703211638" date 03/21/2017
bios0: Apple Inc. MacBookAir7,2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC SBST ECDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT DMAR MCFG
acpi0: wakeup devices PEG0(S3) EC__(S3) HDEF(S3) RP01(S3) RP02(S3) RP03(S4) ARPT(S4) RP05(S3) RP06(S3) SPIT(S3) XHC1(S3) ADP1(S3) LID0(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-5650U CPU @ 2.20GHz, 2200.37 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,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,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2200371760 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
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) i7-5650U CPU @ 2.20GHz, 2200.00 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,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,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
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) i7-5650U CPU @ 2.20GHz, 2200.00 MHz
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,SMX,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,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
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) i7-5650U CPU @ 2.20GHz, 2200.00 MHz
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,SMX,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,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins
acpiec0 at acpi0
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-155
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus 3 (RP03)
acpiprt5 at acpi0: bus 5 (RP05)
acpiprt6 at acpi0: bus 4 (RP06)
acpicpu0 at acpi0: C3(200@530 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@530 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@530 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@530 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpisbs0 at acpi0: SBS0 model "bq20z451" serial 36068 type LION oem "DP"
"APP0001" at acpi0 not configured
"ACPI0008" at acpi0 not configured
"ACPI0001" at acpi0 not configured
"APP000D" at acpi0 not configured
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
"APP0002" at acpi0 not configured
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: IGPU
acpivout0 at acpivideo0: DD01
cpu0: Enhanced SpeedStep 2200 MHz: speeds: 2201, 2200, 2100, 1800, 1600, 1300, 1100, 900, 700, 500 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 5G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 6000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1440x900, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
azalia0 at pci0 dev 3 function 0 "Intel Core 5G HD Audio" rev 0x09: msi
xhci0 at pci0 dev 20 function 0 "Intel 9 Series xHCI" rev 0x03: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 9 Series DMA" rev 0x03 at pci0 dev 21 function 0 not configured
"Intel 9 Series SPI" rev 0x03 at pci0 dev 21 function 4 not configured
"Intel 9 Series MEI" rev 0x03 at pci0 dev 22 function 0 not configured
azalia1 at pci0 dev 27 function 0 "Intel 9 Series HD Audio" rev 0x03: msi
azalia1: codecs: Cirrus Logic CS4208
audio0 at azalia1
ppb0 at pci0 dev 28 function 0 "Intel 9 Series PCIE" rev 0xe3
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel 9 Series PCIE" rev 0xe3: msi
pci2 at ppb1 bus 2
"Broadcom BCM15700A2" rev 0x00 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 2 "Intel 9 Series PCIE" rev 0xe3: msi
pci3 at ppb2 bus 3
"Broadcom BCM4360" rev 0x03 at pci3 dev 0 function 0 not configured
ppb3 at pci0 dev 28 function 4 "Intel 9 Series PCIE" rev 0xe3: msi
pci4 at ppb3 bus 5
ppb4 at pci4 dev 0 function 0 vendor "Intel", unknown product 0x156b rev 0x00
pci5 at ppb4 bus 6
ppb5 at pci5 dev 0 function 0 vendor "Intel", unknown product 0x156b rev 0x00: msi
pci6 at ppb5 bus 7
vendor "Intel", unknown product 0x156a (class system subclass miscellaneous, rev 0x00) at pci6 dev 0 function 0 not configured
ppb6 at pci5 dev 3 function 0 vendor "Intel", unknown product 0x156b rev 0x00: msi
pci7 at ppb6 bus 8
ppb7 at pci5 dev 4 function 0 vendor "Intel", unknown product 0x156b rev 0x00: msi
pci8 at ppb7 bus 57
ppb8 at pci5 dev 5 function 0 vendor "Intel", unknown product 0x156b rev 0x00: msi
pci9 at ppb8 bus 106
ppb9 at pci5 dev 6 function 0 vendor "Intel", unknown product 0x156b rev 0x00: msi
pci10 at ppb9 bus 107
ppb10 at pci0 dev 28 function 5 "Intel 9 Series PCIE" rev 0xe3: msi
pci11 at ppb10 bus 4
ahci0 at pci11 dev 0 function 0 "Samsung SM951 AHCI" rev 0x01: apic 2 int 16, AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, APPLE SSD SM0512, BXW3> SCSI3 0/direct fixed naa.5002538900000000
sd0: 477102MB, 512 bytes/sector, 977105060 sectors, thin
pcib0 at pci0 dev 31 function 0 "Intel 9 Series LPC" rev 0x03
ichiic0 at pci0 dev 31 function 3 "Intel 9 Series SMBus" rev 0x03: apic 2 int 18
iic0 at ichiic0
iic0: addr 0x2c 03=fc 05=6b 06=40 71=06 72=80 86=7d 90=37 91=27 92=36 93=3b 94=4a 95=8c 96=63 97=85 98=3f 9a=84 9f=7c a0=7f a1=b5 a2=bf a3=7b a4=28 a5=cf a6=64 a7=2d words 00=0000 01=0000 02=00fc 03=fc00 04=006b 05=6b60 06=6000 07=0000
pchtemp0 at pci0 dev 31 function 6 "Intel 9 Series Thermal" rev 0x03
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns8250, no fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
asmc0 at isa0 port 0x300/32: rev 2.27f627, 612 keys
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
urtwn0 at uhub0 port 2 configuration 1 interface 0 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 2
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address 80:1f:02:12:34:56
uhub1 at uhub0 port 3 configuration 1 interface 0 "Apple Inc. BRCM20702 Hub" rev 2.00/1.00 addr 3
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Apple Computer product 0x820a" rev 2.00/1.00 addr 4
uhidev0: iclass 3/1, 1 report id
ukbd0 at uhidev0 reportid 1: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub1 port 2 configuration 1 interface 0 "Apple Computer product 0x820b" rev 2.00/1.00 addr 5
uhidev1: iclass 3/1, 2 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ugen0 at uhub1 port 3 "Apple Inc. Bluetooth USB Host Controller" rev 2.00/1.37 addr 6
uhidev2 at uhub0 port 5 configuration 1 interface 0 "Apple Inc. Apple Internal Keyboard / Trackpad" rev 2.00/1.71 addr 7
uhidev2: iclass 3/0, 63 report ids
uhid0 at uhidev2 reportid 63: input=64, output=0, feature=0
uhidev3 at uhub0 port 5 configuration 1 interface 1 "Apple Inc. Apple Internal Keyboard / Trackpad" rev 2.00/1.71 addr 7
uhidev3: iclass 3/1, 63 report ids
ukbd1 at uhidev3 reportid 1: 8 variable keys, 6 key codes, country code 33
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhid1 at uhidev3 reportid 9: input=0, output=0, feature=3
uhid2 at uhidev3 reportid 63: input=64, output=0, feature=0
ubcmtp0 at uhub0 port 5 configuration 1 interface 2 "Apple Inc. Apple Internal Keyboard / Trackpad" rev 2.00/1.71 addr 7
wsmouse1 at ubcmtp0 mux 0
umass0 at uhub0 port 14 configuration 1 interface 0 "Apple Card Reader" rev 3.00/8.20 addr 8
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <APPLE, SD Card Reader, 3.00> SCSI4 0/direct removable serial.05ac8406000000000820
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
sd2 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd2: 477101MB, 512 bytes/sector, 977103445 sectors
root on sd2a (8d16b4ba179aa5ed.a) swap on sd2b dump on sd2b

Re: touchpad input driver: testing needed

On Mon, Jul 31, 2017 at 11:02:28PM +0200, Ulf Brosziewski wrote:
> for you. As always, a dmesg would be appreciated. The output of
> # wsconsctl | grep 'mouse'
> could also be of interest here (you must run it as root).

Here is another report. This one is from a Lenovo LaVie Z with an
Elantech touchpad. So far seems to work just fine as well.

# wsconsctl | grep mouse
mouse.type=elantech
mouse.rawmode=0
mouse.scale=0,2800,0,1820,0,0,0
mouse.tp.tapping=0
mouse.tp.scaling=0.275
mouse.tp.swapsides=0
mouse.tp.disable=0

Thanks again!

Bryan


OpenBSD 6.1-current (GENERIC.MP) #27: Mon Jul 31 12:56:47 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8485908480 (8092MB)
avail mem = 8222367744 (7841MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xdcef0000 (23 entries)
bios0: vendor LENOVO version "/763A0400" date 04/02/2015
bios0: LENOVO 20FG0013US
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT ECDT MCFG HPET SSDT UEFI SSDT ASF! MSDM SSDT SSDT SSDT BGRT SSDT
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) LID0(S3) PXSX(S3) RP01(S4) PXSX(S3) RP02(S4) PXSX(S3) RP03(S4) PXSX(S3) RP04(S4) PXSX(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 2394.86 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,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,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2394859830 Hz
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.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz, 2394.47 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,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,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
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) i7-5500U CPU @ 2.40GHz, 2394.47 MHz
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,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
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) i7-5500U CPU @ 2.40GHz, 2394.47 MHz
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,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins
acpimadt0: bogus nmi for apid 2
acpimadt0: bogus nmi for apid 1
acpimadt0: bogus nmi for apid 3
acpiec0 at acpi0
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 1 (RP01)
acpiprt5 at acpi0: bus -1 (RP02)
acpiprt6 at acpi0: bus 2 (RP03)
acpiprt7 at acpi0: bus 3 (RP04)
acpiprt8 at acpi0: bus -1 (RP05)
acpiprt9 at acpi0: bus -1 (RP06)
acpiprt10 at acpi0: bus -1 (RP07)
acpiprt11 at acpi0: bus -1 (RP08)
acpiec at acpi0 not configured
acpiec at acpi0 not configured
acpicpu0 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PG00, resource for PEG0
acpipwrres1 at acpi0: PG01, resource for PEG1
acpipwrres2 at acpi0: PG02, resource for PEG2
acpitz0 at acpi0: critical temperature is 100 degC
acpipwrres3 at acpi0: FN00, resource for FAN0
acpipwrres4 at acpi0: FN01, resource for FAN1
acpipwrres5 at acpi0: FN02, resource for FAN2
acpipwrres6 at acpi0: FN03, resource for FAN3
acpipwrres7 at acpi0: FN04, resource for FAN4
acpitz1 at acpi0: critical temperature is 105 degC
acpitz2 at acpi0: critical temperature is 105 degC
"NCT0010" at acpi0 not configured
"ETD0F07" at acpi0 not configured
"INT3F0D" at acpi0 not configured
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model "PC-VP-BP106" type Lipo oem "NEC"
acpibtn0 at acpi0: LID0
"PNP0C14" at acpi0 not configured
"NCT0032" at acpi0 not configured
"NCT0031" at acpi0 not configured
"NCT0021" at acpi0 not configured
acpibtn1 at acpi0: PWRB
"INT33A0" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 2300, 2100, 2000, 1900, 1700, 1600, 1400, 1300, 1200, 1000, 900, 800, 600, 500 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 5G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 5500" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 2560x1440, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
azalia0 at pci0 dev 3 function 0 "Intel Core 5G HD Audio" rev 0x09: msi
xhci0 at pci0 dev 20 function 0 "Intel 9 Series xHCI" rev 0x03: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 9 Series MEI" rev 0x03 at pci0 dev 22 function 0 not configured
azalia1 at pci0 dev 27 function 0 "Intel 9 Series HD Audio" rev 0x03: msi
azalia1: codecs: Realtek/0x0286
audio0 at azalia1
ppb0 at pci0 dev 28 function 0 "Intel 9 Series PCIE" rev 0xe3: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 "Intel 9 Series PCIE" rev 0xe3: msi
pci2 at ppb1 bus 2
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 7265" rev 0x61, msi
ppb2 at pci0 dev 28 function 3 "Intel 9 Series PCIE" rev 0xe3: msi
pci3 at ppb2 bus 3
rtsx0 at pci3 dev 0 function 0 "Realtek RTS5249 Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit
ehci0 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x03: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel 9 Series LPC" rev 0x03
ahci0 at pci0 dev 31 function 2 "Intel 9 Series AHCI" rev 0x03: msi, AHCI 1.3
ahci0: port 3: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 3 lun 0: <ATA, INTEL SSDSCKJW36, RG10> SCSI3 0/direct fixed naa.55cd2e414c8c4103
sd0: 343399MB, 512 bytes/sector, 703282608 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 9 Series SMBus" rev 0x03: apic 2 int 18
iic0 at ichiic0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: Elantech Clickpad, version 4, firmware 0x461f01
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
ugen0 at uhub0 port 3 "Intel Bluetooth" rev 2.01/0.01 addr 2
uhub2 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.03 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd1: 343398MB, 512 bytes/sector, 703280993 sectors
root on sd1a (6deb15d9aa91af37.a) swap on sd1b dump on sd1b
iwm0: hw rev 0x210, fw ver 16.242414.0, address 5c:e0:c5:12:34:56

Re: LibreOffice, fail after upgrade

Which mirror is it? Best to check the timestamps in the mirror's directory
listing and make sure they're all fairly close together - the mixture of
packages built against two different versions of freetype definitely
indicates a problem.



On 31 July 2017 12:56:35 Ed Ahlsen-Girard <eagirard@cox.net> wrote:

> On Mon, 31 Jul 2017 09:33:49 +0100
> Stuart Henderson <stu@spacehopper.org> wrote:
>
>> On 2017/07/30 11:16, Ed Ahlsen-Girard wrote:
>> [...]
>>
>> This mixture of two versions of libfreetype shows that you haven't
>> updated all packages. Whenever you update to a newer snapshot, you
>> ought to run pkg_add -u.
>>
>> For this particular update, you moved between gcc-compiled packages
>> and clang-compiled packages, in this case you need to add "-D
>> installed" as well. See
>> http://www.openbsd.org/faq/current.html#r20170729
>>
>> However then you will run into the problem mentioned at
>> http://marc.info/?t=150142287600003&r=1&w=2 - a fix has been committed
>> but packages with this won't be available just yet, however the dirty
>> workaround I suggested there might help until they're ready.
>>
>
> I run pkg_add -u after every upgrade. Packages on my mirror are showing
> a July 29 date. Perhaps it's slow.
>
> --
>
> Edward Ahlsen-Girard
> Ft Walton Beach, FL

Re: NEW: games/corsixth

On 07/31/17 15:34, Adam Wolk wrote:
> On Sun, Jul 30, 2017 at 05:33:32PM -0400, Brian Callahan wrote:
>> Hi ports --
>>
>> Attached is a new port, games/corsixth. CorsixTH is an open source clone of
>> the game Theme Hospital.
>>
> Marvelous!
>
> Started off by building it on amd64 -current, snapshot from 07.31.
>
> The built went fine, but make port-lib-depends-check complained:
>
> $ make port-lib-depends-check
>
> corsixth-0.60.1(games/corsixth):
> Missing lib: lua5.3.5 (/usr/local/share/CorsixTH/CorsixTH) (NOT REACHABLE)
> Extra: lua5.1.5
> *** Error 1 in target 'port-lib-depends-check' (ignored)
> $
>
> I had lua-5.3.4 as a dependency from nmap and lua5.1 as a dependency from
> a bunch of stuff.
>
> Installed and tried to start it, got welcomed by a black window with an error
> message and the same error message presented in the terminal (I will skip
> providing a screenshot):
>
> $ corsixth
> An error has occurred in CorsixTH:
> ./Lua/strict.lua:66: module 'lfs' not found:
> no field package.preload['lfs']
> no file '/usr/local/share/lua/5.3/lfs.lua'
> no file '/usr/local/share/lua/5.3/lfs/init.lua'
> no file '/usr/local/lib/lua/5.3/lfs.lua'
> no file '/usr/local/lib/lua/5.3/lfs/init.lua'
> no file './lfs.lua'
> no file './lfs/init.lua'
> no file '/usr/local/lib/lua/5.3/lfs.so'
> no file '/usr/local/lib/lua/5.3/loadall.so'
> no file './lfs.so'
> stack traceback:
> [C]: in upvalue 'fn'
> ./Lua/strict.lua:66: in function 'require'
> ./Lua/app.lua:23: in main chunk
> [C]: in function 'persist.dofile'
> ./CorsixTH.lua:56: in function 'dofile'
> ./CorsixTH.lua:108: in main chunk
> [C]: in ?
>
> lfs is of course missing for lua5.3. Make install added it for 5.1.
>
> I proceeded to remove nmap because who needs network scanning when
> you can play Theme Hospital instead?
>
> That makes port depends check really happy:
> $ make port-lib-depends-check
> $
>
> Now the binary runs with a different error, probably missing files.
> Here I agree with sthen@ that adding a pkg-readme of where to put
> the files is a nice touch that most game ports already have (ie. for
> ioquake3, yaquake2 etc). I was wrong and didn't grab the message
> but not able to reproduce it yet.
>
> After a few tries it showed me a window with the game and a picker
> to locate the game files. I tried to full screen it in i3 but the
> game segfaulted (without a core file). I can reproduce that by
> starting the game again and hitting Mod-f for fullscreen. It
> also happens when sending it to another screen.
>
> I just start it now in a fresh window to have it fullscreen
> and proceed to pick the game data folder from GOG.com.
>
> The game starts, music and sound is present, the cutscene plays.
> Everything seems to work perfectly gameplay wise.
>
> Long story short, I think this needs perhaps a hard cap on the
> lua version and the suggestions sthen@ left before. I wouldn't
> worry too much on i3 resize segfault - that can be handled with
> upstream post import.
>
> Regards,
> Adam
>

Since CorsixTH doesn't care which version of Lua it uses, and all the
RDEPS have a lua53 FLAVOR, let's just have CorsixTH use the first Lua
that cmake finds, which is 5.3

New tarball attached with that change.

OK?

~Brian


>> ---
>> pkg/DESCR:
>> CorsixTH is a reimplementation of the 1997 Bullfrog business sim Theme
>> Hospital. As well as faithfully recreating the original, CorsixTH adds
>> support for modern operating systems, high resolutions, and much more.
>>
>> CorsixTH requires game assets from Theme Hospital to work properly.
>> ---
>>
>> You will have to obtain a copy of Theme Hospital to play this (the GoG
>> download worked for me using innoextract to extract it, like with OpenRCT2).
>>
>> This requires a C++11 compiler. In theory, CorsixTH should work on any
>> platform even those that don't have clang as their base compiler (I don't
>> have the hardware to test, sadly). I don't think it's appropriate to do
>> ONLY_FOR_ARCHS=${CLANG_ARCHS} unless the theory doesn't work out in
>> practice. What's the best way to do this?
>> COMPILER = clang gcc
>> MODCLANG_ARCHS = <some list that doesn't include ${CLANG_ARCHS}>
>> MODGCC4_ARCHS = <some list that doesn't include ${CLANG_ARCHS} or
>> ${MODCLANG_ARCHS}>
>> Does this make sense?
>>
>> Comments/OKs welcome, port attached. Works well on amd64.
>>
>> ~Brian
>>
>

Re: touchpad input driver: testing needed

On Mon, Jul 31, 2017 at 11:02:28PM +0200, Ulf Brosziewski wrote:
> for you. As always, a dmesg would be appreciated. The output of
> # wsconsctl | grep 'mouse'
> could also be of interest here (you must run it as root).

This is from a Lenovo ThinkPad X1 Carbon (4th Gen) which has a Synaptics
touchpad which has been working fine otherwise and appears to continue
to work fine with your driver.

# wsconsctl | grep mouse
mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1472,5678,1408,4754,0,46,68
mouse.tp.tapping=0
mouse.tp.scaling=0.171
mouse.tp.swapsides=0
mouse.tp.disable=0
mouse1.type=ps2

Thanks for your work on this!

Bryan


OpenBSD 6.1-current (GENERIC.MP) #26: Mon Jul 31 08:42:35 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17011994624 (16223MB)
avail mem = 16490065920 (15726MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xb705e000 (65 entries)
bios0: vendor LENOVO version "N1FET49W (1.23 )" date 02/08/2017
bios0: LENOVO 20FBCTO1WW
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT SSDT ECDT HPET APIC MCFG SSDT SSDT DBGP DBG2 BOOT BATB SSDT SSDT MSDM DMAR ASF! FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP9(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 23999999 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2808.00 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,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,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2808000000 Hz
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) i7-6600U CPU @ 2.60GHz, 2808.00 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,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,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
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) i7-6600U CPU @ 2.60GHz, 2808.00 MHz
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,SMX,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,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
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) i7-6600U CPU @ 2.60GHz, 2808.00 MHz
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,SMX,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,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus 4 (EXP3)
acpiprt6 at acpi0: bus 5 (EXP5)
acpiprt7 at acpi0: bus -1 (EXP9)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpipwrres5 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN0071" at acpi0 not configured
"LEN0058" at acpi0 not configured
"INT3F0D" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "00HW028" serial 1341 type LiP oem "LGC"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C60" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"INT3394" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout at acpivideo0 not configured
cpu0: Enhanced SpeedStep 2808 MHz: speeds: 2701, 2700, 2600, 2500, 2300, 2100, 1900, 1800, 1600, 1400, 1300, 1100, 800, 700, 600, 400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07
drm0 at inteldrm0
inteldrm0: msi
error: [drm:pid0:i915_firmware_load_error_print] *ERROR* failed to load firmware i915/skl_dmc_ver1.bin (-22)
error: [drm:pid0:i915_gem_init_hw] *ERROR* Failed to initialize GuC, error -8 (ignored)
inteldrm0: 2560x1440, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel Core GMM" rev 0x00 at pci0 dev 8 function 0 not configured
"Intel 100 Series ISH" rev 0x21 at pci0 dev 19 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
"Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
pci1 at ppb0 bus 2
"Realtek RTS525A Card Reader" rev 0x01 at pci1 dev 0 function 0 not configured
ppb1 at pci0 dev 28 function 2 "Intel 100 Series PCIE" rev 0xf1: msi
pci2 at ppb1 bus 4
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 8260" rev 0x3a, msi
ppb2 at pci0 dev 28 function 4 "Intel 100 Series PCIE" rev 0xf1: msi
pci3 at ppb2 bus 5
nvme0 at pci3 dev 0 function 0 "Samsung SM961/PM961 NVMe" rev 0x00: msi, NVMe 1.2
nvme0: Samsung SSD 960 PRO 2TB, firmware 1B6QCXP7, serial S3EXNCAHB00125W
scsibus1 at nvme0: 1 targets
sd0 at scsibus1 targ 0 lun 0: <NVMe, Samsung SSD 960, 1B6Q> SCSI4 0/direct fixed
sd0: 1953514MB, 512 bytes/sector, 4000797360 sectors
pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21
"Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
azalia0: codecs: Conexant/0x5111, Intel/0x2809, using Conexant/0x5111
audio0 at azalia0
ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21: apic 2 int 16
iic0 at ichiic0
em0 at pci0 dev 31 function 6 "Intel I219-LM" rev 0x21: msi, address 54:ee:75:12:34:56
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.2, 0x1e2b1 0x940300
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
umb0 at uhub0 port 2 configuration 1 interface 12 "Sierra Wireless, Incorporated Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A" rev 2.10/0.06 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd1: 1953513MB, 512 bytes/sector, 4000795745 sectors
root on sd1a (e57bc45cf7b2d949.a) swap on sd1b dump on sd1b
iwm0: hw rev 0x200, fw ver 16.242414.0, address 34:f3:9a:12:34:56

touchpad input driver: testing needed

In the long run the synaptics driver, which handles touchpad inputs in
X, may be a dead end of the input framework, and it's time to prepare
an alternative. The kernel contains an internal touchpad input driver
now, it's a part of wsmouse(4). It provides standard features -
two-finger/edge scrolling, software buttons for clickpads, tapping -
and various kinds of plankton required for usability.

If you have a new snapshot (from July 27 or later) on a laptop with a
Synaptics, Apple, Alps, or Elantech-4 touchpad, you could help with
tests, more tests, and tests. In order to activate the driver, add the
following entry to /etc/xorg.conf and restart X (if the file isn't
present, simply create it with this content):

Section "InputClass"
Identifier "wsmouse touchpad"
Driver "ws"
MatchIsTouchpad "on"
EndSection

While I dont't expect bugs in the input processing part of the
driver ;-), it is difficult to assess how well the automatic
configuration covers the zoo of models out there, presumably it will
need some more fine-grained distinctions of hardware properties. I
would like to know where it works, works only halfway, or doesn't work
for you. As always, a dmesg would be appreciated. The output of
# wsconsctl | grep 'mouse'
could also be of interest here (you must run it as root).

For now, X will treat the device like a mouse, please don't look for
touchpad-specific configuration options there. Tapping can be enabled
by the command
# wsconsctl mouse.tp.tapping=1
If there is more than one wsmouse device, you should look up which one
has the "tp" fields and if it's not the first one (wsmouse0), add the
index to the prefix, e.g.
# wsconsctl mouse2.tp.tapping=1

The base speed of the pointer can be adjusted by increasing or
decreasing the value of
# wsconsctl mouse.tp.scaling
Please don't confuse it with the 'mouse.scale' field.

# wsconsctl mouse.tp.swapsides=1
will invert the order of software buttons areas (swapping external
buttons must still be configured in X). If edge scrolling is
enabled, the scroll area will be at the left edge of the touchpad.

If you are using an external mouse device or a trackpoint, the command
# wsconsctl mouse.tp.disable=1
may be helpful. It will disable pointer movement, scrolling, and
tapping. External buttons and software buttons remain enabled.

Re: permission denied local nfs mount

On Fri, Jul 28, 2017 at 7:36 PM, Allan Streib <astreib@indiana.edu> wrote:
> $ cat /etc/exports
> /home/astreib/work/new-site.org -ro -network=127.0.0.1
>
> Everyhing works if I remove the "-network=" from /etc/exports, i.e.:
>
> /home/astreib/work/new-site.org -ro 127.0.0.1
>
> I don't really understand why?

If you don't specify -network, then 127.0.0.1 is treated as the
address (or name) of a specific host. Since you are going to be
mounting this via 127.0.0.1, that counts as a host address and
everything works.

If you do specify -network, then 127.0.0.1 is treated as a network
number, and the default netmask would be 255.0.0.0. I don't know why
that's not working, but (a) I always specify -mask whenever I use
-network, and (b) I always ensure that the host portion of the network
number is all zeros. So if I were to do it I would use:

/home/astreib/work/new-site.org -ro -network 127.0.0.0 -mask 255.0.0.0

(I would use 255.0.0.0 as the mask simply because that's the mask the
actual loopback interface is using, but I don't think it actually
matters as far as /etc/exports is concerned -- if you want to use an
unusual mask to allow access to a subset of a network then as far as I
know you should be able to).

Unless you are binding multiple addresses on your loopback interface,
I would just use 127.0.0.1 without -network or -mask and be done with
it. Why open up the mount to an entire network when you really just
need to open it up to a single host (yourself)?

This is what I do in a similar situation (serving both ftpd and httpd
from the same directory):

relevant line from /etc/exports:
/nfs/archive/dist/OpenBSD -maproot=root -ro 127.0.0.1

relevant line from /etc/fstab:
localhost:/nfs/archive/dist/OpenBSD /var/www/ftp/pub/OpenBSD nfs
ro,nodev,nosuid 0 0

Works fine for me.

-ken

Re: [UPDATE] Tor Browser 7.0.2

Sorry I didn't see your two messages until now, I'll reply at once:

Stuart Henderson <stu@spacehopper.org> writes:

> On 2017/07/26 22:05, Landry Breuil wrote:
>> One thing - you comment out --disable-webrtc, but i suppose/hope for you
>> TBB explicitely disables it, otherwise all the users caring about their
>> privacy will be *very* vocal about webrtc leaking their private nat ip
>> etc. You should check that carefully...
>
> I don't get any addresses reported in the usual webrtc testers.
> Though yes I do think it may be a good idea to force this configure flag.

It is disabled in the .mozconfig that comes with TB. My patch to
.mozconfig leaves this be. If you would prefer that we explicitly
acknowledge that WebRTC is disabled in the Makefile I will uncomment
that line. I can see the argument for this as a kind of
documentation, since most users won't go rooting around in the source
for .mozconfig.

>> As for files/configure, i get it that its a straight copy from mozilla
>> upstream, but seeing python2.7 like this makes me cringe. Why not
>> writing your own script with ${MODPY_BIN} directly calling $(dirname
>> $0)/configure.py "$@" ? (and exporting OLD_CONFIGURE) - your call.
>
> I'd prefer that too.
>
> I've committed what we have so far - these are valid points but I think
> not critical, and it's much easier to test/review small diffs for these
> changes than small changes to a monster diff :)

7.0.3 just came out; it is a bigfix-only release for a Linux-only bug
and so doesn't affect our users, but it will still complain that it's
out of date so I'll get it to it ASAP and incorporate your feedback
when I do.

Thanks a lot!

Pax, -A
--
https://haqistan.net/~attila | attila@{stalphonsos.com,haqistan.net}
pgp: 0x62A729CF | C2CE 2487 03AC 4C2F 101D 09C1 4068 D5D5 62A7 29CF

Re: Split zone DNS?

On Fri, Jul 28, 2017 at 9:58 AM, Steve Williams
<steve@williamsitconsulting.com> wrote:
> I would like to run a local resolver on my internal network that will
> resolve all my hosts on my local network to IP addresses on my local
> network(s) rather than resolving to their public IP addresses.
>
> What is the best tool to accomplish this these days? Is NSD the "modern"
> tool to be using on OpenBSD?
>
> Are there any hooks for dhcpd to update records?

I have found the readily available documentation unclear on how to
handle dynamic DNS updates when DHCP is in use. The advice I've seen
has basically been either to not bother, or to have DHCP assign fixed
addresses (i.e. don't do dynamic DNS). It's not totally clear whether
it's even possible using nsd/unbound and the base dhcpd, but what I've
seen indicates that it is not.

So, what I am doing instead is I'm using isc-dhcp-server and isc-bind
(from packages). Note that I provide DNS/DHCP service on my internal
network only (I do not provide any DNS name resolution of any kind on
my Internet-facing interfaces) so it's not really "split-horizon". If
I were to provide split-horizon DNS I would probably use two separate
machines, one providing internal service (using isc-dhcp-server and
isc-bind) and another providing external service (using nsd).

-ken

Re: NEW: games/corsixth

On Sun, Jul 30, 2017 at 05:33:32PM -0400, Brian Callahan wrote:
> Hi ports --
>
> Attached is a new port, games/corsixth. CorsixTH is an open source clone of
> the game Theme Hospital.
>

Marvelous!

Started off by building it on amd64 -current, snapshot from 07.31.

The built went fine, but make port-lib-depends-check complained:

$ make port-lib-depends-check

corsixth-0.60.1(games/corsixth):
Missing lib: lua5.3.5 (/usr/local/share/CorsixTH/CorsixTH) (NOT REACHABLE)
Extra: lua5.1.5
*** Error 1 in target 'port-lib-depends-check' (ignored)
$

I had lua-5.3.4 as a dependency from nmap and lua5.1 as a dependency from
a bunch of stuff.

Installed and tried to start it, got welcomed by a black window with an error
message and the same error message presented in the terminal (I will skip
providing a screenshot):

$ corsixth
An error has occurred in CorsixTH:
./Lua/strict.lua:66: module 'lfs' not found:
no field package.preload['lfs']
no file '/usr/local/share/lua/5.3/lfs.lua'
no file '/usr/local/share/lua/5.3/lfs/init.lua'
no file '/usr/local/lib/lua/5.3/lfs.lua'
no file '/usr/local/lib/lua/5.3/lfs/init.lua'
no file './lfs.lua'
no file './lfs/init.lua'
no file '/usr/local/lib/lua/5.3/lfs.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './lfs.so'
stack traceback:
[C]: in upvalue 'fn'
./Lua/strict.lua:66: in function 'require'
./Lua/app.lua:23: in main chunk
[C]: in function 'persist.dofile'
./CorsixTH.lua:56: in function 'dofile'
./CorsixTH.lua:108: in main chunk
[C]: in ?

lfs is of course missing for lua5.3. Make install added it for 5.1.

I proceeded to remove nmap because who needs network scanning when
you can play Theme Hospital instead?

That makes port depends check really happy:
$ make port-lib-depends-check
$

Now the binary runs with a different error, probably missing files.
Here I agree with sthen@ that adding a pkg-readme of where to put
the files is a nice touch that most game ports already have (ie. for
ioquake3, yaquake2 etc). I was wrong and didn't grab the message
but not able to reproduce it yet.

After a few tries it showed me a window with the game and a picker
to locate the game files. I tried to full screen it in i3 but the
game segfaulted (without a core file). I can reproduce that by
starting the game again and hitting Mod-f for fullscreen. It
also happens when sending it to another screen.

I just start it now in a fresh window to have it fullscreen
and proceed to pick the game data folder from GOG.com.

The game starts, music and sound is present, the cutscene plays.
Everything seems to work perfectly gameplay wise.

Long story short, I think this needs perhaps a hard cap on the
lua version and the suggestions sthen@ left before. I wouldn't
worry too much on i3 resize segfault - that can be handled with
upstream post import.

Regards,
Adam

> ---
> pkg/DESCR:
> CorsixTH is a reimplementation of the 1997 Bullfrog business sim Theme
> Hospital. As well as faithfully recreating the original, CorsixTH adds
> support for modern operating systems, high resolutions, and much more.
>
> CorsixTH requires game assets from Theme Hospital to work properly.
> ---
>
> You will have to obtain a copy of Theme Hospital to play this (the GoG
> download worked for me using innoextract to extract it, like with OpenRCT2).
>
> This requires a C++11 compiler. In theory, CorsixTH should work on any
> platform even those that don't have clang as their base compiler (I don't
> have the hardware to test, sadly). I don't think it's appropriate to do
> ONLY_FOR_ARCHS=${CLANG_ARCHS} unless the theory doesn't work out in
> practice. What's the best way to do this?
> COMPILER = clang gcc
> MODCLANG_ARCHS = <some list that doesn't include ${CLANG_ARCHS}>
> MODGCC4_ARCHS = <some list that doesn't include ${CLANG_ARCHS} or
> ${MODCLANG_ARCHS}>
> Does this make sense?
>
> Comments/OKs welcome, port attached. Works well on amd64.
>
> ~Brian
>

Re: NEW: games/corsixth

On 07/31/17 05:24, Stuart Henderson wrote:
> On 2017/07/30 17:33, Brian Callahan wrote:
>> Hi ports --
>>
>> Attached is a new port, games/corsixth. CorsixTH is an open source clone of
>> the game Theme Hospital.
>>
>> ---
>> pkg/DESCR:
>> CorsixTH is a reimplementation of the 1997 Bullfrog business sim Theme
>> Hospital. As well as faithfully recreating the original, CorsixTH adds
>> support for modern operating systems, high resolutions, and much more.
>>
>> CorsixTH requires game assets from Theme Hospital to work properly.
>> ---
>>
>> You will have to obtain a copy of Theme Hospital to play this (the GoG
>> download worked for me using innoextract to extract it, like with OpenRCT2).
>>
>> This requires a C++11 compiler. In theory, CorsixTH should work on any
>> platform even those that don't have clang as their base compiler (I don't
>> have the hardware to test, sadly). I don't think it's appropriate to do
>> ONLY_FOR_ARCHS=${CLANG_ARCHS} unless the theory doesn't work out in
>> practice. What's the best way to do this?
>> COMPILER = clang gcc
>> MODCLANG_ARCHS = <some list that doesn't include ${CLANG_ARCHS}>
>> MODGCC4_ARCHS = <some list that doesn't include ${CLANG_ARCHS} or
>> ${MODCLANG_ARCHS}>
>> Does this make sense?
> Standard way to do this would be "COMPILER = gcc" or "COMPILER = clang gcc",
> and "ONLY_FOR_ARCHS = ${CXX11_ARCHS}".
>
> It seems like it could use a README or something with information about
> how to buy/extract/install the required files?
>

I think a README is a great idea. I'd like to add the same to OpenRCT2
as well since it's in the same position, if that's OK with you.

Attached is a new tarball for everyone. I added the compiler logic and
changed the name of the launcher script to CorsixTH from corsixth since
at least FreeBSD does it that way. Might as well be consistent with others.

OK?

~Brian

Re: Question about pf tables and limitation of addresses 0.0.0.0/0 or 0/0

On Thu, Jul 27, 2017 at 12:52 PM, Donald Clark Jackson
<don.jackson@gmail.com> wrote:
> table <public> const { !10/8 !172.16/12 !192.168/16 0/0 }
> guest_hq_if = "em3"
> guest_hq_net = $guest_hq_if:network
> pass log (matches) from $guest_hq_net to <public> keep state
>
> match out log (matches) on $external_if inet from $guest_hq_net nat-to ($external_if)

I'm not sure this ruleset is doing what you think it's doing. Try
running the following command to verify that your <public> table
contains what you think it should:

# pfctl -t public -T show

Putting aside for the moment whether 0/0 works or not, I think you
have another problem with the ! marks. To explain the problem, let's
pretend the entire Internet consists of just 3 class A networks: 1/8,
2/8 and 3/8. So what does { !1/8 !2/8 } mean? It's a table
containing all the addresses not in 1/8 (i.e. 2/8 3/8), plus all the
addresses not in 2/8 (i.e. 1/8 3/8):

{ 2/8 3/8 1/8 3/8 } simplifies to { 1/8 2/8 3/8 }, which matches
everything and is probably not what you intended.

I don't think you can even use ! in a table, even though "pfctl -nf"
doesn't appear to complain about it at all. When I try it in
5.9/amd64 the tables end up being not defined.

If you want to provide an Internet-only guest network, I recommend you
try something like this:

table <rfc1918> { 10/8, 172.16/12, 192.168/16 }
guest_if = "em3"
ext_if = "em0" # or whatever your egress interface is
pass in log on $guest_if from $guest_if:network to any
block in log quick on $guest_if to $guest_if # note 1
block out log quick on $ext_if from $guest_if:network to <rfc1918> # note 2
pass out log on $ext_if from $guest_if:network nat-to ($ext_if)

This lets guest traffic into the router, then relies on your routing
table to decide which outbound interface the traffic should then be
forwarded to. Traffic to the Internet (going out through $ext_if) is
passed with an explicit "pass out" rule (and NAT is applied at the
same time). Traffic attempting to reach your other internal networks
is not forwarded because there is no "pass out" rule on any other
interface allowing it.

note 1: Connections *to* your router rather than *through* your router
are dropped, to prevent guests from trying to ssh into your router.
If you want to allow guests to connect to your router for certain
services (e.g. dns) then you will want to be more selective.

note 2: Internet traffic to "unrouteable" Internet addresses is
dropped. Note that this rule explicitly applies only to traffic "from
$guest_if:network" because other outbound traffic might legitimately
need to send to such an address. For example, some ISP's will provide
a 10/8 address as your default route, and blocking 10/8
unconditionally will prevent you from doing things like pinging that
router.

As you have discovered, once you have more than two networks (internal
and external) things can start to get complicated, which means the
opportunity to make mistakes goes up dramatically. What I do to make
things clearer (and to reduce the impact of mistakes) is to use tags
to categorize traffic:

### BEGIN ###
private = "em0"
guest = "em1"
inet = "em2"

table <rfc1918> const { 10/8, 172.16/12, 192.168/16 }

# Inbound traffic is blocked by default and tagged TBD until it can be
categorized
block in log all tag TBD

# Inbound / ACCEPT - traffic that should be accepted by this router
(not forwarded)
pass in log quick on $private inet proto tcp from $private:network to
$private port ssh tagged TBD tag ACCEPT
pass in log quick on $private inet proto icmp from $private:network to
(self) icmp-type echoreq tagged TBD tag ACCEPT
pass in log quick on $guest inet proto icmp from $guest:network to
(self) icmp-type echoreq tagged TBD tag ACCEPT
pass in log quick on $private inet proto {udp tcp} from
$private:network to em0 port {domain ntp} tagged TBD tag ACCEPT
pass in log quick on $guest inet proto {udp tcp} from $guest:network
to $guest port {domain ntp} tagged TBD tag ACCEPT
pass in log quick on $private inet proto tcp from $private:network to
port ftp divert-to 127.0.0.1 port 8021 tagged TBD tag ACCEPT
pass in log quick on $guest inet proto tcp from $guest:network to port
ftp divert-to 127.0.0.1 port 8021 tagged TBD tag ACCEPT
anchor "ftp-proxy/*"

# Inbound / FORWARD - traffic that should be forwarded by this router
pass in log quick on $private from $private:network tagged TBD tag FORWARD
block in log quick on $guest from $guest:network to $private:network
tagged TBD tag BLOCK
pass in log quick on $guest from $guest:network tagged TBD tag FORWARD

# Outbound / FORWARD
block out log all # by default block all outbound traffic not explicitly allowed
pass out log quick on $private tagged FORWARD
pass out log quick on $guest tagged FORWARD
block out log quick on $inet to <rfc1918> tag BLOCK
pass out log quick on $inet nat-to ($inet) tagged FORWARD

# Outbound - traffic that may originate from this router (even this is
blocked by default)
pass out log quick on $inet inet proto udp from ($inet) port bootpc to
any port bootps # ISP DHCP service
pass out log quick on $inet proto icmp from ($inet) icmp-type echoreq # ping
pass out log quick on $inet proto {udp tcp} from ($inet) to any port
domain # DNS
pass out log quick on $inet proto {udp tcp} from ($inet) to any port ntp # NTP
pass out log quick on $inet proto tcp from ($inet) to any port 443 #
HTTPS for ntpd constraints
pass out log quick on $inet proto tcp from ($inet) to any port ftp # ftp-proxy

### END ###

Note that the "FORWARD" tag is the only one that actually gets used
for something (it gets set by an "in" rule, then is used in a later
"out" rule to allow specifically that traffic to pass). The other
tags don't do anything once set except act as documentation of intent.
They are also a bit of a safety net -- I could accidentally omit any
"quick" and the ruleset wouldn't behave (very) differently. As a side
benefit, the tags show up if you use "pfctl -s rules" which helps to
make the rules easier to understand even with all the comments
removed.

-ken

Re: net/glib2-networking: Remove systemd service

Klemens Nanni wrote:
> It's just your argument I don't get/agree with: Instead of starting to
> clean things up you're not doing anything at all because there's more
> to clean anyway?
>
> Of course getting rid of every misplaced/unsupported/whatever bit seems
> utopian but not doing it where easily possible seems illogical to me.

One reason is that such cleanups tend to get lost in updates. So now every
update to a port comes with a systemd removal diff a week later. That seems
like a lot of noise and extra effort.

The problem isn't simply that it's one time work, in which case I'd agree that
there's no harm to starting small. But you're also creating ongoing work to
maintain this cleanup. A cleanup should reduce maintenance, not increase it.

Re: net/glib2-networking: Remove systemd service

> Never meant to be personal against anyone or to play down anything you
> guys are pulling here, don't get me wrong.
>
> Sorry for the noise, I guess; keep up the good work!

I didn't take it personally.
What I mean is that there are already *sooooooooo* many things to do which
actually matter, that doing what you proposed really is not worth the time it'd
take. And I like consistency meaning that if I do that in one port, I need to
do it in all and regularly check that they don't get back in. And the actual
benefit of getting rid of these files is actually next to null. It's not because
there are under a systemd directory that they are any worse than others.
We do install uneeded files in ports, but as long as they don't take real space
and have no impact whatsoever, it's a local change that requires work and
maintenance for no benefit.

--
Antoine

Re: net/glib2-networking: Remove systemd service

On Mon, Jul 31, 2017 at 08:33:34PM +0200, Marc Espie wrote:
> On Mon, Jul 31, 2017 at 08:20:31PM +0200, Klemens Nanni wrote:
> > On Mon, Jul 31, 2017 at 08:07:17PM +0200, Ingo Schwarze wrote:
> > > Klemens Nanni wrote on Mon, Jul 31, 2017 at 07:52:25PM +0200:
> > >
> > > > It's just your argument I don't get/agree with: Instead of starting to
> > > > clean things up you're not doing anything at all
> > >
> > > Saying that ajacoutot@ "is not doing anything at all" is a weird
> > > statement indeed and could be misunderstood. ;-)
> > I meant this generally, nothing personal or anything, agreed. Read:
> > "Start cleaning bit by bit rather than nothing".
>
> How much have you contributed to our ports tree ?
>
> How many things has Antoine contributed ?
>
> More importantly, how many fuck-ups from other people has he fixed already.
>
> I think you can do better, in terms of apologies...
Never meant to be personal against anyone or to play down anything you
guys are pulling here, don't get me wrong.

Sorry for the noise, I guess; keep up the good work!

Re: Changing default compiler for usr/ports buiding

On Mon, Jul 31, 2017 at 05:47:59PM +0300, Denis wrote:
> I'm trying to change default compiler to build some ports.
> Tried to do it using bsd.port.mk and by system variables CXX=eg++
> CPP=egcc, but nothing changes while building a port.
>
> How can I force the default gcc 4.2 to egcc (gcc 4.9)?
>
> Thanks

You can't.

Things generally won't work.

Current uses clang on i386 and amd64.

And that's wildly incompatible with gcc 4.2 or 4.9...

Re: net/glib2-networking: Remove systemd service

On Mon, Jul 31, 2017 at 08:20:31PM +0200, Klemens Nanni wrote:
> On Mon, Jul 31, 2017 at 08:07:17PM +0200, Ingo Schwarze wrote:
> > Klemens Nanni wrote on Mon, Jul 31, 2017 at 07:52:25PM +0200:
> >
> > > It's just your argument I don't get/agree with: Instead of starting to
> > > clean things up you're not doing anything at all
> >
> > Saying that ajacoutot@ "is not doing anything at all" is a weird
> > statement indeed and could be misunderstood. ;-)
> I meant this generally, nothing personal or anything, agreed. Read:
> "Start cleaning bit by bit rather than nothing".

How much have you contributed to our ports tree ?

How many things has Antoine contributed ?

More importantly, how many fuck-ups from other people has he fixed already.

I think you can do better, in terms of apologies...

Re: starting cwm and terminal font

On 2017-07-30 23.37.07 -0700, jungle boogie wrote:
> $ cat .xinitrc
> xsetroot -solid gray40 (does the 40 actually do anything? I've seen a few
> examples with numbers after it)

That color name comes from /usr/X11R6/share/X11/rgb.txt :

$ grep gray40 /usr/X11R6/share/X11/rgb.txt
102 102 102 gray40

Re: net/glib2-networking: Remove systemd service

On Mon, Jul 31, 2017 at 08:07:17PM +0200, Ingo Schwarze wrote:
> Klemens Nanni wrote on Mon, Jul 31, 2017 at 07:52:25PM +0200:
>
> > It's just your argument I don't get/agree with: Instead of starting to
> > clean things up you're not doing anything at all
>
> Saying that ajacoutot@ "is not doing anything at all" is a weird
> statement indeed and could be misunderstood. ;-)
I meant this generally, nothing personal or anything, agreed. Read:
"Start cleaning bit by bit rather than nothing".

> > because there's more to clean anyway?
>
> He is saying that it is a huge effort for no benefit, and that it
> is a waste of time. Of his time, too, by the way.
>
> Besides, his argument that being able to look up documentation and
> even tiny service files for other operating systems on OpenBSD may
> occasionally be useful is not without merit either.
>
> Tweak third-party software where necessary, but as little as possible.
That's me seeing things differently then, I guess. Probably also because
I've not been there (yet) to consider things like that as waste of (my)
time.

Thanks for your input ajacoutot@ and ingo@ :-)

Re: emulators/mednafen force gcc fix

On Mon, Jul 31, 2017 at 07:54:32AM -0700, Jeremy Evans wrote:
> On 07/31 02:35, Marc Espie wrote:
> > On Mon, Jul 31, 2017 at 12:32:22PM +0200, Jeremie Courreges-Anglas wrote:
> > > On Sun, Jul 30 2017, Jeremy Evans <jeremy@openbsd.org> wrote:
> > > > Post clang switch, mednafen fails to link with:
> > > >
> > > > /usr/bin/ld: debug.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> > > > debug.o: could not read symbols: Bad value c++: error: linker command failed with exit code 1 (use -v to see invocation)
> > > >
> > > > Despite the fact that COMPILER=gcc is already set, it still picks
> > > > clang.
> > >
> > > Looks like the current way to do that is to set COMPILER = gcc-only.
> > >
> > > I guess there's no easy fix for clang?
> >
> > No, it's more like there hasn't been a lot of incentive yet.
> >
> > You should look at unmangling the linker issue.
>
> I did, but unfortunately I was not able to get it to work. This is made
> more difficult because the error message doesn't even inform you which
> symbol is the problem.
>
> There is pretty extensive use of GCC pragmas in mednafen, it's
> possible that unrecognized pragmas may be the cause of the problem.
>
> I didn't know about COMPILER=gcc-only, since bsd.port.mk doesn't mention
> it (at least in Saturday's snapshot).
>
> Until someone else wants to take a shot at fixing the linker issues
> with clang, can someone OK this diff so at least mednafen will work in
> the meantime?
>
> Thanks,
> Jeremy
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/emulators/mednafen/Makefile,v
> retrieving revision 1.18
> diff -u -p -r1.18 Makefile
> --- Makefile 26 Jul 2017 22:45:19 -0000 1.18
> +++ Makefile 31 Jul 2017 14:15:52 -0000
> @@ -24,7 +24,7 @@ WANTLIB += SDL c m pthread sndfile sndio
> WANTLIB += FLAC ogg vorbis vorbisenc ${COMPILER_LIBCXX}
>
> USE_GMAKE = Yes
> -COMPILER = gcc
> +COMPILER = gcc-only
>
> LIB_DEPENDS = audio/libsndfile \
> devel/sdl
Ah, I missed that mednafen is *already* gcc, so yeah, gcc-only will work
fine.

(the reason it's not documented is because we will need slightly more
options for ports that have to be gcc, and I'd like us to try and repair
as much as possible to actually work with clang)