kernel: protection fault trap, code=0

2022-11-20 Thread patrick keshishian
Been trying get an i386 install on my Lenovo x120e.
Tried couple of -current (Nov 18th, and 19th) and then
tried 7.2 release.  All with similar result.

After install reboot stops here (transcribed):

pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
kernel: protection fault trap, code=0
Stopped at  spllower+0x12:  movl%fs:0xc,%ecx
ddb{0}>


ddb{0}> bt
spllower(0) at spllower+0x12
proc_trampoline_mp(11aa000,119e000,0,d02013b1,0) at proc_trampoline_mp+0x4a
ddb{0}> show registers
ds  0x10
es  0x10
fs  0x20
gs 0
edi0
esi 0xb0
ebp   0xf56c4d24
ebx   0xd4add978__kernel_bss_end+0x3b1d978
edx0
ecx0x202
eax0
eip   0xd07ae092spllower+0x12
cs   0x8
eflags   0x10296__ALIGN_SIZE+0xf296
esp   0xf56c4d20
ss  0x10
spllower+0x12:  movl%fs:0xc,%ecx
ddb{0}> show proc
PROC (kmthread) pid=12458 stat=onproc
flags process=14000 proc=200
pri=50, usrpri=50, nice=20
forw=0x, list=0xd4addb0c,0xd4add7ec
process=0xf56bdad0 user=0xf56c2000, vmspace=0xd0f34e7d0
estcpu=0, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{0}>


Is there any other info which I can provide?


An amd64 image (one I had handy from Nov 2nd) seems to work.
Following dmesg is from this install.

OpenBSD 7.2-current (GENERIC.MP) #823: Wed Nov  2 11:56:37 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1692901376 (1614MB)
avail mem = 1624219648 (1548MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf9ba0 (58 entries)
bios0: vendor LENOVO version "8FET31WW (1.15 )" date 08/25/2011
bios0: LENOVO 05962UU
acpi0 at bios0: ACPI 4.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC HPET APIC MCFG UEFI UEFI SSDT SSDT UEFI
acpi0: wakeup devices PB4_(S4) PB5_(S4) PB6_(S4) PB7_(S4) OHC1(S3) EHC1(S3) 
OHC2(S3) EHC2(S3) OHC3(S3) EHC3(S3) OHC4(S3) SBAZ(S4) GEC_(S4) P2P_(S5) 
SPB0(S4) SPB1(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-350 Processor, 1596.63 MHz, 14-01-00
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,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 2-way I-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-350 Processor, 1596.63 MHz, 14-01-00
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,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 2-way I-cache
cpu1: 512KB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins, remapped
acpimcfg0 at acpi0
acpimcfg0: addr 0xf800, bus 0-31
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PB4_)
acpiprt2 at acpi0: bus -1 (PB5_)
acpiprt3 at acpi0: bus 1 (PB6_)
acpiprt4 at acpi0: bus -1 (PB7_)
acpiprt5 at acpi0: bus 2 (P2P_)
acpiprt6 at acpi0: bus 3 (SPB0)
acpiprt7 at acpi0: bus 4 (SPB1)
acpiprt8 at acpi0: bus -1 (SPB2)
acpiprt9 at acpi0: bus -1 (SPB3)
acpiec0 at acpi0
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x
acpicmos0 at acpi0
acpithinkpad0 at acpi0: version 1.0
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT1 model "789" serial  2045 type LION oem "LGC"
acpibtn2 at acpi0: LID_
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpicpu0 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpitz0 at acpi0: critical temperature is 92 degC
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
acpivout0 at acpivideo1: LCD_
cpu0: 1596 MHz: speeds: 1600 1280 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD 14h Host" rev 0x00
radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6310" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 6 function 0 "AMD 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
1:0:0: rom address conflict 0xfffe/0x2
re0 at pci1 dev 0 function 0 

Re: Unable to complete secure online login

2022-09-15 Thread patrick keshishian
On 9/15/22, Alton Shaw  wrote:
> Completely new user "test01", fired up fresh installation of Firefox,
> new blank tab, closed all other Mozilla's initial tabs, cleared
> cookies/history/cache/etc, browsed to my bank's login page. Attempted
> login but received the same result: We’re currently having technical
> issue Please try again later.
>
> I've no idea how to proceed from here.  Is there a log or console
> somewhere within OpenBSD that I should be watching/checking?

I had a similar problem with Brave browser on MacOS
attempting to login to a site.  Although different
OS and different browser, this experience may help
you in debugging your case.

I was getting similar login issue with a site.  I
don't often login to this site.  My last successful
login was possibly in May using the same OS and
same browser (but possibly an earlier version).

By turning "Shields down" for that particular site,
the login process went through successfully.  The
Brave Shields block various trackers, ads, finger-
printing, and cross-site cookies.

If FF has similar "protections", you may try
turning those off to see if that helps your
situation.

--patrick



Re: uvm_fault 5/24 OBSD 7.1 snapshot Compaq-Presario

2022-05-25 Thread patrick keshishian
Off list I was asked to provide line before uvm_fault:

...
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mttr: Pentium Pro MTTR support, 8 var ranges, 88 fixed ranges
cpu0: acpi clock running at 200MHz
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (HUB0)
acpibtn0 at acpi0: PWRB
acpipci0 at accpi0 PCI0
acpicmos0 at acpi0
uvm_fault( ... )

On Tue, May 24, 2022 at 10:57:22PM -0700, patrick keshishian wrote:
> >Synopsis:uvm_fault / Kernel: page fault trap, code=0
> >Category:kernel
> >Environment:
>   System  : OpenBSD 7.1
>   Details : OpenBSD 7.1-current (GENERIC) #525: Tue May 24 08:53:58 
> MDT 2022
>
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> 
>   Architecture: OpenBSD.amd64
>   Machine : amd64
> >Description:
>   ACPI seems to cause a crash during boot.
>   Both snapshot ISO image and after install kernel cause this.
>   By disabling acpi at UKC I was able to complete the install
> 
> Following is TRANSCRIBED off of the glass display:
> 
> uvm_fault(0x822c1aa0, 0x800a4f08, 0, 2) -> e
> Kernel: page fault trap, code=0
> Stopped at  memcpy+0x1f:repe movsb (%rsi),%es:(%rdi)
> TIDPIDUID PRFLAGS PFLAGS CPU  COMMAND
> * 0  0  0 0x1  0x200   0  swapper
> memcpy(80090708,0,20,827094d0,1,80090708) at 
> memcpy+0x1f
> aml_store(80094688,80090708,2,0,d891119d26c292bc,80094688)
>  at aml_store+0x31d
> aml_parse(80094688,54,80094688,80094644,4a92c46a01d04933,80094688)
>  at aml_parse+0xf32
> aml_eval(0,80087108,74,0,0,0) at aml_eval+0x2f1
> aml_evalnode(800870ac,80087088,0,0,82709778,800870ac)
>  at aml_evalnode+0xb4
> acpi_foundhid(80086c08,80029400,f74f1ed97abe335b,81c41540,80029400,80086988)
>  at acpi_foundhid+0x13a
> aml_find_node(80086988,81f206fa,81c41540,80029400,7fadf0823ccf532c,81c41540)
>  at aml_find_node+0x84
> aml_find_node(8002cc08,81f206fa,81c41540,80029400,7fadf0823ccf532c,81c41540)
>  at aml_find_node+0xd1
> aml_find_node(823b4340,81f206fa,81c41540,80029400,7fadf0823ccc4129,82709a70)
>  at aml_find_node+0xd1
> aml_find_node(823b4340,81f206fa,81c41540,80029400,7fadf0823ccc4129,82709a70)
>  at aml_find_node+0xd1
> acpi_attach_common(80029400,f74c0,75d843a34872fd02,8002c380,82709c48,822bb7f0)
>  at acpi_attach_common+0x694
> config_attach(8002c380,822965c0,82709c48,81af65f0,2b19b12c3443aa9,82709c70)
>  at config_attach+0x1f4
> bios_attach(8002c300,8002c380,82709db8,8002c300,bf65d147d063c0d3,8002c300)
>  at biod_attach+0x6ef
> config_attach(8002c300,82290c10,82709db8,81b5b090,2b19b12c35ec41e,82709db8)
>  at config_attach+0x1f4
> mainbus_attach(0,8002c300,0,0,1f177879949a47a2,0) at 
> mainbus_attach+0x78
> end trace frame: 0x82709ed0, count: 0
> 
> ddb> show registers
> rdi   0x800a4f08
> rsi   0x827094e8  end+0x3094e8
> rbp   0xfff827094c0   end+0x3094c0
> rbx   0x80094608
> rdx  0x4
> rcx  0x4
> rax  0x1  __ALIGN_SIZE+0xf000
> r8   0x1  __ALIGN_SIZE+0xf000
> r9   0x4
> r10   0x96534a3c1701a909
> r11   0x800a4f08
> r120
> r13 0x20
> r14   0x80090708
> r15   0x827094d0  end+0x3094d0
> rip   0x815cd3ef  memcpy+0x1f
> cs   0x8
> rflags   0x10202  __ALIGN_SIZE+0xf202
> rsp   0x827093f8  end+0x3093f8
> ss  0x10
> memcpy+0x1f: repe movsb(%rsi),%es:(%rdi)
> 
> If a photo would help, I can take a picture of the screen.
> 
> >How-To-Repeat:
>   Attempting to boot snapshot from 5/24
> >Fix:
>   Workeround: Disable acpi at UKC
> 
> 
> dmesg:
> OpenBSD 7.1-current (GENERIC) #525: Tue May 24 08:53:58 MDT 2022
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> real m

uvm_fault 5/24 OBSD 7.1 snapshot Compaq-Presario

2022-05-25 Thread patrick keshishian
>Synopsis:  uvm_fault / Kernel: page fault trap, code=0
>Category:  kernel
>Environment:
System  : OpenBSD 7.1
Details : OpenBSD 7.1-current (GENERIC) #525: Tue May 24 08:53:58 
MDT 2022
 
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC

Architecture: OpenBSD.amd64
Machine : amd64
>Description:
ACPI seems to cause a crash during boot.
Both snapshot ISO image and after install kernel cause this.
By disabling acpi at UKC I was able to complete the install

Following is TRANSCRIBED off of the glass display:

uvm_fault(0x822c1aa0, 0x800a4f08, 0, 2) -> e
Kernel: page fault trap, code=0
Stopped at  memcpy+0x1f:repe movsb (%rsi),%es:(%rdi)
TIDPIDUID PRFLAGS PFLAGS CPU  COMMAND
* 0  0  0 0x1  0x200   0  swapper
memcpy(80090708,0,20,827094d0,1,80090708) at memcpy+0x1f
aml_store(80094688,80090708,2,0,d891119d26c292bc,80094688)
 at aml_store+0x31d
aml_parse(80094688,54,80094688,80094644,4a92c46a01d04933,80094688)
 at aml_parse+0xf32
aml_eval(0,80087108,74,0,0,0) at aml_eval+0x2f1
aml_evalnode(800870ac,80087088,0,0,82709778,800870ac)
 at aml_evalnode+0xb4
acpi_foundhid(80086c08,80029400,f74f1ed97abe335b,81c41540,80029400,80086988)
 at acpi_foundhid+0x13a
aml_find_node(80086988,81f206fa,81c41540,80029400,7fadf0823ccf532c,81c41540)
 at aml_find_node+0x84
aml_find_node(8002cc08,81f206fa,81c41540,80029400,7fadf0823ccf532c,81c41540)
 at aml_find_node+0xd1
aml_find_node(823b4340,81f206fa,81c41540,80029400,7fadf0823ccc4129,82709a70)
 at aml_find_node+0xd1
aml_find_node(823b4340,81f206fa,81c41540,80029400,7fadf0823ccc4129,82709a70)
 at aml_find_node+0xd1
acpi_attach_common(80029400,f74c0,75d843a34872fd02,8002c380,82709c48,822bb7f0)
 at acpi_attach_common+0x694
config_attach(8002c380,822965c0,82709c48,81af65f0,2b19b12c3443aa9,82709c70)
 at config_attach+0x1f4
bios_attach(8002c300,8002c380,82709db8,8002c300,bf65d147d063c0d3,8002c300)
 at biod_attach+0x6ef
config_attach(8002c300,82290c10,82709db8,81b5b090,2b19b12c35ec41e,82709db8)
 at config_attach+0x1f4
mainbus_attach(0,8002c300,0,0,1f177879949a47a2,0) at mainbus_attach+0x78
end trace frame: 0x82709ed0, count: 0

ddb> show registers
rdi 0x800a4f08
rsi 0x827094e8  end+0x3094e8
rbp 0xfff827094c0   end+0x3094c0
rbx 0x80094608
rdx0x4
rcx0x4
rax0x1  __ALIGN_SIZE+0xf000
r8 0x1  __ALIGN_SIZE+0xf000
r9 0x4
r10 0x96534a3c1701a909
r11 0x800a4f08
r12  0
r13   0x20
r14 0x80090708
r15 0x827094d0  end+0x3094d0
rip 0x815cd3ef  memcpy+0x1f
cs 0x8
rflags 0x10202  __ALIGN_SIZE+0xf202
rsp 0x827093f8  end+0x3093f8
ss0x10
memcpy+0x1f: repe movsb(%rsi),%es:(%rdi)

If a photo would help, I can take a picture of the screen.

>How-To-Repeat:
Attempting to boot snapshot from 5/24
>Fix:
Workeround: Disable acpi at UKC


dmesg:
OpenBSD 7.1-current (GENERIC) #525: Tue May 24 08:53:58 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1995309056 (1902MB)
avail mem = 1917648896 (1828MB)
User Kernel Config
UKC> disable acpi
464 acpi0 disabled
UKC> quit
Continuing...
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf (24 entries)
bios0: vendor Phoenix Technologies, LTD version "5.14" date 05/02/2008
bios0: Compaq-Presario KJ393AAR-ABA SR5413WM
acpi at bios0 not configured
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) Processor LE-1640, 2712.76 MHz, 0f-7f-02
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,SVM,EAPICSP,AMCR8,3DNOWP
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock 

Re: axen0: invalid buffer(pkt#1)

2022-03-28 Thread patrick keshishian
On Mon, Mar 28, 2022 at 08:30:08PM -0400, Ariel Popper wrote:
> I don't knwo about you, but it's been well over a decade since I saw an
> ethernet adapter that didn't auto-sense the cable.  Also, I do not think
> that gigabit (1000-Base-T) ever requires a crossover cable.

Alrighty then, back to my hole.
-pk

> 
> https://en.wikipedia.org/wiki/Auto-MDIX#Auto_MDI-X
> 
> 
> On Mon Mar 28, 2022 at 8:16 PM EDT, patrick keshishian wrote:
> > On Sun, Mar 27, 2022 at 02:09:35PM +0200, Stephan Mending wrote:
> > > Hi Stuart, 
> > > 
> > > I am not using VLANs. This is a direct link from one machine to another. 
> > > No switch, no nothing in between.
> > > What information can I supply that would be of interest to you? 
> >
> > Umm... not even a hub in between?
> > You are using a crossover cable, right?
> >
> > --patrick
> >
> > > 
> > > Best regards,
> > > Stephan
> > > On Sun, Mar 27, 2022 at 10:18:27AM +0100, Stuart Henderson wrote:
> > > > "4 bytes missing" - are you using vlans? if so, can you try without and
> > > > does the problem continue?
> > > > 
> > > > 
> > > > On 2022/03/26 22:05, Stephan Mending wrote:
> > > > > Hi *, 
> > > > > I am currently in the unlucky position having to use two 
> > > > > usb-to-ethernet-adapters on a router.
> > > > > 
> > > > > Therefore, I bought a model from "ISY" called "USB-A to Gigabit LAN 
> > > > > Adapter IAD-1010-A". You probably don't care about
> > > > > the name of it. 
> > > > > 
> > > > > axen0 at uhub0 port 12 configuration 1 interface 0 "ASIX 
> > > > > AX88179A" rev 2.10/2.00 addr 9
> > > > > axen0: AX88179, address f8:e4:3b:08:10:e2
> > > > > ukphy0 at axen0 phy 3: Generic IEEE 802.3u media interface, rev. 
> > > > > 1: OUI 0x000700, model 0x0006
> > > > > 
> > > > > The adapters are configured to act as interfaces for a local network.
> > > > > 
> > > > > As soon as packets are received following messages are printed to 
> > > > > /var/log/messages: 
> > > > > 
> > > > > axen0: invalid buffer(pkt#1), continue
> > > > > 
> > > > > These messages are issued with each and every packet that is received 
> > > > > on the interface. 
> > > > > 
> > > > > Taking a look at tcpdump: 
> > > > > 
> > > > > truncated-ip - 4 bytes missing!
> > > > > 
> > > > > This message prefixes every packet that I sent towards the axen 
> > > > > usb-adapter (not just dhcp).
> > > > > Same behavior for both of the adapters. 
> > > > > 
> > > > > Do you guys have any idea, what might be the issue?
> > > > > 
> > > > > Best regards, 
> > > > > Stephan
> > > > > 
> > > 
> 



Re: axen0: invalid buffer(pkt#1)

2022-03-28 Thread patrick keshishian
On Sun, Mar 27, 2022 at 02:09:35PM +0200, Stephan Mending wrote:
> Hi Stuart, 
> 
> I am not using VLANs. This is a direct link from one machine to another. No 
> switch, no nothing in between.
> What information can I supply that would be of interest to you? 

Umm... not even a hub in between?
You are using a crossover cable, right?

--patrick

> 
> Best regards,
> Stephan
> On Sun, Mar 27, 2022 at 10:18:27AM +0100, Stuart Henderson wrote:
> > "4 bytes missing" - are you using vlans? if so, can you try without and
> > does the problem continue?
> > 
> > 
> > On 2022/03/26 22:05, Stephan Mending wrote:
> > > Hi *, 
> > > I am currently in the unlucky position having to use two 
> > > usb-to-ethernet-adapters on a router.
> > > 
> > > Therefore, I bought a model from "ISY" called "USB-A to Gigabit LAN 
> > > Adapter IAD-1010-A". You probably don't care about
> > > the name of it. 
> > > 
> > > axen0 at uhub0 port 12 configuration 1 interface 0 "ASIX AX88179A" 
> > > rev 2.10/2.00 addr 9
> > > axen0: AX88179, address f8:e4:3b:08:10:e2
> > > ukphy0 at axen0 phy 3: Generic IEEE 802.3u media interface, rev. 1: 
> > > OUI 0x000700, model 0x0006
> > > 
> > > The adapters are configured to act as interfaces for a local network.
> > > 
> > > As soon as packets are received following messages are printed to 
> > > /var/log/messages: 
> > > 
> > > axen0: invalid buffer(pkt#1), continue
> > > 
> > > These messages are issued with each and every packet that is received on 
> > > the interface. 
> > > 
> > > Taking a look at tcpdump: 
> > > 
> > > truncated-ip - 4 bytes missing!
> > > 
> > > This message prefixes every packet that I sent towards the axen 
> > > usb-adapter (not just dhcp).
> > > Same behavior for both of the adapters. 
> > > 
> > > Do you guys have any idea, what might be the issue?
> > > 
> > > Best regards, 
> > > Stephan
> > > 
> 



Re: rm -rf "" # prints error

2016-06-28 Thread patrick keshishian
Since POSIX was mentioned, "" is not a valid filename[1]. So
it isn't the case of a file does not exist (ENOENT), it is a case
of an invalid filename (EINVAL?).

--patrick

[1]
pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_170

--- 8< -
 3.170 Filename

A sequence of bytes consisting of 1 to {NAME_MAX} bytes used to name a
file. The bytes composing the name shall not contain the  or
 characters. In the context of a pathname, each filename shall
be followed by a  or a  character; elsewhere, a filename
followed by a  character forms a string (but not necessarily a
character string). The filenames dot and dot-dot have special meaning.
A filename is sometimes referred to as a "pathname component". See
also Pathname.

Note:
Pathname Resolution is defined in detail in Pathname Resolution .
- >8 ---


On 6/28/16, Philip Guenther  wrote:
> On Tue, 28 Jun 2016, Todd C. Miller wrote:
>> I think this needs to be fixed in fts(3) instead.  The following diff
>> fixes it for me but has only been lightly tested.
>
> As I noted in icb, first chunk looks sufficient to me; the latter chunk is
> just optimizing the error case, as fstatat() will already fail the ""
> case.
>
> I think we should also include this check from FreeBSD:
>
> --- gen/fts.c   16 Jan 2015 16:48:51 -
> +++ gen/fts.c   5 Feb 2015 05:01:08 -
> @@ -83,6 +83,12 @@ fts_open(char * const *argv, int options
> return (NULL);
> }
>
> +   /* fts_open() requires at least one path */
> +   if (*argv == NULL) {
> +   errno = EINVAL;
> +   return (NULL);
> +   }
> +
> /* Allocate/initialize the stream */
> if ((sp = calloc(1, sizeof(FTS))) == NULL)
> return (NULL);
>
>



Re: two audio beep bugs

2016-05-13 Thread patrick keshishian
On 5/13/16, Ted Unangst  wrote:
> Mark Kettenis wrote:
>>
>> I personally think the wsconsctl settings should be respected by X.
>
>> But perhaps we should have a more fundamental discussion about things
>> first about how X should interact with wscons.  There is a more
>> fundamental problem here where X assumes it has full control over the
>> hardware.  There still is the volume key issue and there are problems
>
> Implementation issues aside, as a user, my expectation is that X is a
> client
> of the hardware. Therefore any "hardware" settings I have configured
> elsewhere
> will be respected. I don't see any difference between speaker volume and
> network interfaces. X uses my existing network configuration, so it should
> be
> the same for other interfaces.

Yes, it seems inconsistent for X to "respect" only the first of the
following two settings:

$ cat /etc/wsconsctl.conf
keyboard.encoding=us.swapctrlcaps
keyboard.bell.volume=0  # mute keyboard beep

--patrick



Re: resume fails on -current #2000 on lenovo x200s

2016-05-02 Thread patrick keshishian
Hi Marcus,

On 5/2/16, Marcus MERIGHI  wrote:
> mlar...@azathoth.net (Mike Larkin), 2016.04.30 (Sat) 12:42 (CEST):
>> On Sat, Apr 30, 2016 at 10:38:08AM +0200, Marcus MERIGHI wrote:
>> > >Synopsis: resume fails on -current #2000 on lenovo x200s
>> > >Category: suspend/resume
>> > >Environment:
>> >System  : OpenBSD 5.9
>> >Details : OpenBSD 5.9-current (GENERIC.MP) #2000: Fri Apr 29
>> > 17:01:24 MDT 2016
>> >
>> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>> >
>> >Architecture: OpenBSD.amd64
>> >Machine : amd64
>> > >Description:
>> >Suspending works, resume does not. The half-moon LED keeps blinking.
>> >Sometimes I can hear the fans spin up.
>> > This is a regression, resume stil worked with the snapshot
>> > #1983
>> > Mon Apr  4 21:50:41 MDT 2016
>> > >How-To-Repeat:
>> >On a lenovo X200s run OpenBSD 5.9-current #2000.
>> >Suspend via Fn+F4 or zzz(8); open lid or press Fn to initiate resume.
>> > >Fix:
>> >None known to me apart from pressing the power button > 5s.
>>
>> Start bisecting diffs as this is a small window of time. Let us know
>> when you have identified the offending commit as not many of us have
>> an x200s.
>
> With GENERIC, btw, suspend/resume works.

This makes me think the answer to my question will be "No",
but the fact in your initial description you mention "Sometimes
I can hear the fans spin up" makes me think this issue is similar
to the one I reported[0].

Gist of my issue is, on wake, the OS checks to see if the lid is
open, and if _LID reports that it is not -- which in my case it
wrongfully reports "No, lid is closed" -- the OS returns to sleep.

I wonder if you can try this simple test with the kernel that has
the issue. Disable 'machdep.lidsuspend' and see if you can
reproduce the issue.

Also, Anthony Campbell reported[1] similar issue to mine ("verified"
using this test).

Best,
--patrick

[0] http://marc.info/?t=14595526972=1=2
[1] http://marc.info/?l=openbsd-misc=146212370121281=2



Re: regression with pms.c revision 1.69

2016-04-15 Thread patrick keshishian
On 4/15/16, Ulf Brosziewski <ulf.brosziew...@t-online.de> wrote:
> Hi, are you sure that you have used the latest sources? Your
> description of the errors suggests that pms still produces
> "W-mode" values (which map a contact count of three to the
> W-value 1, two to 0, and one to something in the range of 4
> to 15). Could you check the version of pms.c? The new version
> of the synaptics driver expects plain contact counts in W.

You are absolutely correct.

The checked out revision of the pms.c source in my tree is 1.69,
but I suspect the mistake was in juggling of the "Keyboard resume
(zzz) diff"[0].

Sorry for wasting your time. I owe you a beverage of your choice!

Thank you for your attention and correction of my mistake!
--patrick


[0] http://marc.info/?t=14603566861=1=2

boring details: applied patch to pckb.c w/ pms.c -r1.69, noticed
broken touchpad, reverted to pms.c -r1.68, but when I re-reverted
to pms.c -r1.69, I think the .o had newer timestamp, therefore not
recompiling pms.c -r1.69. My mistake.


> On 04/15/2016 01:18 AM, patrick keshishian wrote:
>> Hi haven't had a chance to grab a new snapshot yet, but did
>> rebuild kernel, userland and xenocara.
>>
>> The issue is still there, but playing more with the touchpad, it
>> seems that the touchpad (or the modified driver) now requires
>> three (3) fingers on the touchpad for moving the pointer around.
>>
>> So the regression is:
>> * Can't move pointer around with single finger.
>> * Can't single or two- finger tap/click on the touchpad.
>> * Can't two-finger scroll (neither horizontal nor vertical).
>>
>> Still intend to update to a new snapshot (not sure when).
>>
>> Might be configuration issue, but I haven't picked up on any
>> new relevant settings:
>>
>> $ synclient
>> Parameter settings:
>> LeftEdge= 1780
>> RightEdge   = 5576
>> TopEdge = 1687
>> BottomEdge  = 5123
>> FingerLow   = 25
>> FingerHigh  = 30
>> MaxTapTime  = 180
>> MaxTapMove  = 261
>> MaxDoubleTapTime= 100
>> SingleTapTimeout= 180
>> ClickTime   = 100
>> EmulateMidButtonTime= 75
>> EmulateTwoFingerMinZ= 282
>> EmulateTwoFingerMinW= 7
>> VertScrollDelta = 119
>> HorizScrollDelta= 119
>> VertEdgeScroll  = 0
>> HorizEdgeScroll = 0
>> CornerCoasting  = 0
>> VertTwoFingerScroll = 1
>> HorizTwoFingerScroll= 1
>> MinSpeed= 1
>> MaxSpeed= 1.75
>> AccelFactor = 0.0336078
>> TouchpadOff = 0
>> LockedDrags = 0
>> LockedDragTimeout   = 5000
>> RTCornerButton  = 0
>> RBCornerButton  = 0
>> LTCornerButton  = 0
>> LBCornerButton  = 0
>> TapButton1  = 1
>> TapButton2  = 3
>> TapButton3  = 2
>> ClickFinger1= 1
>> ClickFinger2= 0
>> ClickFinger3= 0
>> CircularScrolling   = 0
>> CircScrollDelta = 0.1
>> CircScrollTrigger   = 0
>> CircularPad = 0
>> PalmDetect  = 0
>> PalmMinWidth= 10
>> PalmMinZ= 200
>> CoastingSpeed   = 20
>> CoastingFriction= 50
>> PressureMotionMinZ  = 30
>> PressureMotionMaxZ  = 160
>> PressureMotionMinFactor = 1
>> PressureMotionMaxFactor = 1
>> GrabEventDevice = 0
>> TapAndDragGesture   = 1
>> AreaLeftEdge= 0
>> AreaRightEdge   = 0
>> AreaTopEdge         = 0
>> AreaBottomEdge  = 0
>> HorizHysteresis = 29
>> VertHysteresis  = 29
>> ClickPad= 0
>>
>>
>> --patrick
>>
>>
>> On 4/11/16, patrick keshishian <pkesh...@gmail.com> wrote:
>>> Ignore this for now.
>>>
>>> this may be (probably is) due to the fact X driver is out of sync with
>>> the kernel. i'll report back after I build a new set of X, or better
>>> yet,
>>> try a new snapshot.
>>>
>>> --patrick
>>>
>>> On 4/11/16, patrick keshishian <pkesh...@gmail.com> wrote:
>>>>> Synopsis: regression 

Re: regression with pms.c revision 1.69

2016-04-11 Thread patrick keshishian
Ignore this for now.

this may be (probably is) due to the fact X driver is out of sync with
the kernel. i'll report back after I build a new set of X, or better yet,
try a new snapshot.

--patrick

On 4/11/16, patrick keshishian <pkesh...@gmail.com> wrote:
>>Synopsis: regression with -r1.69 pms0 w/Synaptics touchpad lenovo x120e
>>Category: kernel pms driver
>>Environment:
>   System  : OpenBSD 5.9
>   Details : OpenBSD 5.9-current (GENERIC.MP) #3: Mon Apr 11 14:16:42 
> PDT
> 2016
>
> sidster@local:/usr/build/src/sys/arch/amd64/compile/GENERIC.MP
>
>   Architecture: OpenBSD.amd64
>   Machine : amd64
>>Description:
>   With revision 1.69 of pms.c the touchpad no longer is capable
>   of moving the mouse pointer (at least in X). Physical buttons
>   (left + right) seem to work. However, double clicking the touchpad
>   acts as middle button, pasting copy buffer into an xterm as an
>   example.
>
>>How-To-Repeat:
>   Compile kernel with pms.c revision 1.69 and reboot.
>>Fix:
>   The diff -r1.68 -r1.69 is quite large and beyond my pay-grade.
>   Reverting to -r1.68 is a work-around for me.
>
> dmesg:
> OpenBSD 5.9-current (GENERIC.MP) #3: Mon Apr 11 14:16:42 PDT 2016
> sidster@local:/usr/build/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3850960896 (3672MB)
> avail mem = 3730014208 (3557MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf9ba0 (60 entries)
> bios0: vendor LENOVO version "8FET32WW (1.16 )" date 11/03/2011
> bios0: LENOVO 06112EU
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP SLIC HPET APIC MCFG UEFI UEFI SSDT SSDT UEFI
> acpi0: wakeup devices PB4_(S4) PB5_(S4) PB6_(S4) PB7_(S4) OHC1(S3)
> OHC2(S3) EHC2(S3) OHC3(S3) EHC3(S3) OHC4(S3) SBAZ(S4) GEC_(S4)
> P2P_(S5) SPB0(S4) SPB1(S4) SPB2(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 14318180 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD E-350 Processor, 13093.27 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,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 16-way L2 cache
> cpu0: 8 4MB entries fully associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 199MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD E-350 Processor, 1596.60 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,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 16-way L2 cache
> cpu1: 8 4MB entries fully associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 2
> acpimcfg0 at acpi0 addr 0xf800, bus 0-31
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PB4_)
> acpiprt2 at acpi0: bus -1 (PB5_)
> acpiprt3 at acpi0: bus 1 (PB6_)
> acpiprt4 at acpi0: bus -1 (PB7_)
> acpiprt5 at acpi0: bus 2 (P2P_)
> acpiprt6 at acpi0: bus 3 (SPB0)
> acpiprt7 at acpi0: bus 4 (SPB1)
> acpiprt8 at acpi0: bus -1 (SPB2)
> acpiprt9 at acpi0: bus -1 (SPB3)
> acpiec0 at acpi0
> acpicpu0 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
> acpicpu1 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
> acpitz0 at acpi0: critical temperature is 92 degC
> acpibtn0 at acpi0: PWRB
> acpibtn1 at acpi0: SLPB
> "PNP0303" at acpi0 not configured
> "LEN0017" at acpi0 not configured
> "PNP0C09" at acpi0 not configured
> acpithinkpad0 at acpi0
> acpiac0 at acpi0: AC unit online
> acpibat0 at acpi0: BAT1 model "42T4785" serial  3355 type LION oem "SANYO"
> acpibtn2 at acpi0: LID_
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> acpivideo0 at acpi0: VGA_
> acpivideo1 at acpi0: VGA_
> cpu0: 13093 MHz: speeds: 1600 1280 800 MHz
> pci0 at mainbus0 bus 0
> p

regression with pms.c revision 1.69

2016-04-11 Thread patrick keshishian
>Synopsis:  regression with -r1.69 pms0 w/Synaptics touchpad lenovo x120e
>Category:  kernel pms driver
>Environment:
System  : OpenBSD 5.9
Details : OpenBSD 5.9-current (GENERIC.MP) #3: Mon Apr 11 14:16:42 
PDT 2016
 
sidster@local:/usr/build/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
>Description:
With revision 1.69 of pms.c the touchpad no longer is capable
of moving the mouse pointer (at least in X). Physical buttons
(left + right) seem to work. However, double clicking the touchpad
acts as middle button, pasting copy buffer into an xterm as an
example.

>How-To-Repeat:
Compile kernel with pms.c revision 1.69 and reboot.
>Fix:
The diff -r1.68 -r1.69 is quite large and beyond my pay-grade.
Reverting to -r1.68 is a work-around for me.

dmesg:
OpenBSD 5.9-current (GENERIC.MP) #3: Mon Apr 11 14:16:42 PDT 2016
sidster@local:/usr/build/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3850960896 (3672MB)
avail mem = 3730014208 (3557MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf9ba0 (60 entries)
bios0: vendor LENOVO version "8FET32WW (1.16 )" date 11/03/2011
bios0: LENOVO 06112EU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC HPET APIC MCFG UEFI UEFI SSDT SSDT UEFI
acpi0: wakeup devices PB4_(S4) PB5_(S4) PB6_(S4) PB7_(S4) OHC1(S3)
OHC2(S3) EHC2(S3) OHC3(S3) EHC3(S3) OHC4(S3) SBAZ(S4) GEC_(S4)
P2P_(S5) SPB0(S4) SPB1(S4) SPB2(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-350 Processor, 13093.27 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,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-350 Processor, 1596.60 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,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpimcfg0 at acpi0 addr 0xf800, bus 0-31
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PB4_)
acpiprt2 at acpi0: bus -1 (PB5_)
acpiprt3 at acpi0: bus 1 (PB6_)
acpiprt4 at acpi0: bus -1 (PB7_)
acpiprt5 at acpi0: bus 2 (P2P_)
acpiprt6 at acpi0: bus 3 (SPB0)
acpiprt7 at acpi0: bus 4 (SPB1)
acpiprt8 at acpi0: bus -1 (SPB2)
acpiprt9 at acpi0: bus -1 (SPB3)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpitz0 at acpi0: critical temperature is 92 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
"PNP0303" at acpi0 not configured
"LEN0017" at acpi0 not configured
"PNP0C09" at acpi0 not configured
acpithinkpad0 at acpi0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model "42T4785" serial  3355 type LION oem "SANYO"
acpibtn2 at acpi0: LID_
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 13093 MHz: speeds: 1600 1280 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6310" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 6 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
1:0:0: mem address conflict 0xfffe/0x2
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D
(0x2800), msi, address e8:9a:8f:66:06:38
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: apic 2 int
19, AHCI 1.2
ahci0: port 0: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0:  SCSI3
0/direct fixed naa.5391c6887a53
sd0: 238475MB, 512 bytes/sector, 

Re: 2016-MAR-30 amd64 snapshot won't wake from sleep

2016-04-02 Thread patrick keshishian
Issue:
After putting laptop to sleep via closing the lid (lidsuspend=1), the
laptop fails to fully wake. It appears to wake but immediately returns
to sleep mode.

Wake is attempted by opening the lid and pressing one of the keyboard
buttons (e.g., space-bar). The screen lights up for a second, the disk
access LED lights up as well, however, the speaker chirps and the screen
turns off, and the machine seems to return to sleep mode.

>From another computer I can start ping with laptop's IP while I attempt
to wake the machine as described above. The ping session receives
one single reply as the machine attempts to wake before returning to
sleep.



OpenBSD 5.9-current (GENERIC) #1846: Wed Mar 30 12:49:37 MDT 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1861025792 (1774MB)
avail mem = 1800376320 (1716MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf1010 (17 entries)
bios0: vendor Phoenix Technologies LTD version "v1.3307" date 05/31/2010
bios0: Gateway LT31
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET BOOT SLIC
acpi0: wakeup devices PB5_(S5) OHC1(S3) OHC2(S3) EHCI(S3) HDAU(S3)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) Processor L110, 1197.21 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,SVM,EAPICSP,AMCR8,3DNOWP
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-8
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PB3_)
acpiprt2 at acpi0: bus -1 (PB4_)
acpiprt3 at acpi0: bus 3 (PB5_)
acpiprt4 at acpi0: bus 4 (PB6_)
acpiprt5 at acpi0: bus -1 (PB7_)
acpiprt6 at acpi0: bus 9 (P2P_)
acpiprt7 at acpi0: bus 1 (AGP_)
acpiec0 at acpi0
acpicpu0 at acpi0: !C3(@83 io@0x8015), !C2(@18 io@0x8014), C1(@1 halt!)
acpitz0 at acpi0: critical temperature is 100 degC
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model "UM09A41" serial 14 type LION oem "SONY"
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0C14" at acpi0 not configured
acpibtn2 at acpi0: PWRB
"PNP0A08" at acpi0 not configured
"PNP0C02" at acpi0 not configured
"PNP0C0F" at acpi0 not configured
"PNP0C0F" at acpi0 not configured
"PNP0C0F" at acpi0 not configured
"PNP0C0F" at acpi0 not configured
"PNP0C0F" at acpi0 not configured
"PNP0C0F" at acpi0 not configured
"PNP0C0F" at acpi0 not configured
"PNP0C0F" at acpi0 not configured
"PNP0200" at acpi0 not configured
"PNP0C04" at acpi0 not configured
"PNP" at acpi0 not configured
"PNP0B00" at acpi0 not configured
"PNP0800" at acpi0 not configured
"PNP0100" at acpi0 not configured
"PNP0303" at acpi0 not configured
"SYN1B20" at acpi0 not configured
"PNP0C02" at acpi0 not configured
"PNP0C01" at acpi0 not configured
"PNP0103" at acpi0 not configured
"PNP0C09" at acpi0 not configured
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: LCD_
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "ATI RS690 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "ATI RS690 PCIE" rev 0x00
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 5 function 0 "ATI Radeon X1250 IGP" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
ppb1 at pci0 dev 5 function 0 "ATI RS690 PCIE" rev 0x00: msi
pci2 at ppb1 bus 3
re0 at pci2 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102EL
(0x2480), msi, address 00:23:8b:ef:3a:a7
rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1
ppb2 at pci0 dev 6 function 0 "ATI RS690 PCIE" rev 0x00: msi
pci3 at ppb2 bus 4
ral0 at pci3 dev 0 function 0 "Ralink RT3090" rev 0x00: apic 1 int 18,
address 00:24:1d:f4:3d:86
ral0: MAC/BBP RT3071 (rev 0x0213), RF RT3020 (MIMO 1T1R)
ahci0 at pci0 dev 18 function 0 "ATI SB600 SATA" rev 0x00: apic 1 int
22, AHCI 1.1
ahci0: port 0: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0:  SCSI3
0/direct fixed naa.5000cca71eed589f
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 19 function 0 "ATI SB600 USB" rev 0x00: apic 1 int
16, version 1.0, legacy support
ohci1 at pci0 dev 19 function 1 "ATI SB600 USB" rev 0x00: apic 1 int
17, version 1.0, legacy support
ohci2 at pci0 dev 19 function 3 "ATI SB600 USB" rev 0x00: apic 1 int
17, version 1.0, legacy support
ohci3 at pci0 dev 19 function 4 "ATI SB600 USB" rev 0x00: apic 1 int
18, version 1.0, legacy support
ehci0 at pci0 dev 19 function 5 "ATI SB600 USB2" rev 0x00: apic 1 int 19
usb0 at 

ACPI regression sleep/wake cycle - acpicpu.c rev: 1.63-1.64

2015-07-02 Thread patrick keshishian
Synopsis:  ACPI regression
Category:  system
Environment:
System  : OpenBSD 5.8
Details : OpenBSD 5.8-beta (GENERIC) #1050: Tue Jun 30 11:10:13 MDT 
2015
 
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC

Architecture: OpenBSD.amd64
Machine : amd64
Description:
Noticed regression after a sleep/wake cycle. Reverting
dev/acpi/acpicpu.c from 1.64 to 1.63 fixes the issue.

Mike Larkin has thoughts on the matter found here:
http://marc.info/?t=14358627384r=1w=2
How-To-Repeat:
Close laptop lid to enter sleep. Open lid, and in my case
press space-bar key to wake.
Fix:
how to correct or work around the problem, if known (multiple lines)


dmesg:
OpenBSD 5.8-beta (GENERIC) #1050: Tue Jun 30 11:10:13 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1861025792 (1774MB)
avail mem = 180082 (1717MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf1010 (17 entries)
bios0: vendor Phoenix Technologies LTD version v1.3307 date 05/31/2010
bios0: Gateway LT31
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET BOOT SLIC
acpi0: wakeup devices PB5_(S5) OHC1(S3) OHC2(S3) EHCI(S3) HDAU(S3)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) Processor L110, 1197.23 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,SVM,EAPICSP,AMCR8,3DNOWP
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-8
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PB3_)
acpiprt2 at acpi0: bus -1 (PB4_)
acpiprt3 at acpi0: bus 3 (PB5_)
acpiprt4 at acpi0: bus 4 (PB6_)
acpiprt5 at acpi0: bus -1 (PB7_)
acpiprt6 at acpi0: bus 9 (P2P_)
acpiprt7 at acpi0: bus 1 (AGP_)
acpiec0 at acpi0
acpicpu0 at acpi0: C3(@83 io@0x8015), C2(@18 io@0x8014)
acpitz0 at acpi0: critical temperature is 100 degC
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model UM09A41 serial 14 type LION oem SONY
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: PWRB
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: LCD_
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 ATI RS690 Host rev 0x00
ppb0 at pci0 dev 1 function 0 ATI RS690 PCIE rev 0x00
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 5 function 0 ATI Radeon X1250 IGP rev 0x00
drm0 at radeondrm0
radeondrm0: msi
ppb1 at pci0 dev 5 function 0 ATI RS690 PCIE rev 0x00: msi
pci2 at ppb1 bus 3
re0 at pci2 dev 0 function 0 Realtek 8101E rev 0x02: RTL8102EL (0x2480), msi, 
address 00:23:8b:ef:11:11
rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1
ppb2 at pci0 dev 6 function 0 ATI RS690 PCIE rev 0x00: msi
pci3 at ppb2 bus 4
ral0 at pci3 dev 0 function 0 Ralink RT3090 rev 0x00: apic 1 int 18, address 
00:24:1d:f4:11:11
ral0: MAC/BBP RT3071 (rev 0x0213), RF RT3020 (MIMO 1T1R)
ahci0 at pci0 dev 18 function 0 ATI SB600 SATA rev 0x00: apic 1 int 22, AHCI 
1.1
ahci0: port 0: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: ATA, HGST HTS545050A7, GG2O SCSI3 0/direct 
fixed naa.5000cca71eed589f
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 19 function 0 ATI SB600 USB rev 0x00: apic 1 int 16, 
version 1.0, legacy support
ohci1 at pci0 dev 19 function 1 ATI SB600 USB rev 0x00: apic 1 int 17, 
version 1.0, legacy support
ohci2 at pci0 dev 19 function 3 ATI SB600 USB rev 0x00: apic 1 int 17, 
version 1.0, legacy support
ohci3 at pci0 dev 19 function 4 ATI SB600 USB rev 0x00: apic 1 int 18, 
version 1.0, legacy support
ehci0 at pci0 dev 19 function 5 ATI SB600 USB2 rev 0x00: apic 1 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 ATI EHCI root hub rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 ATI SBx00 SMBus rev 0x14: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
pciide0 at pci0 dev 20 function 1 ATI SB600 IDE rev 0x00: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
azalia0 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x00: apic 1 int 16
azalia0: codecs: Realtek ALC272
audio0 at azalia0
pcib0 at pci0 dev 20 function 3 ATI SB600 ISA rev 0x00
ppb3 at pci0 dev 20 function 4 ATI SB600 PCI rev 0x00
pci4 at ppb3 bus 9
pchb1