Re: current - latest suspend tests T43 - T30 - R51

2018-12-04 Thread Brett Lymn

Yes, they are ps/2.  The pckbc1 is the i8042 keyboard controller
device which handles both keyboard and mouse for ps/2.
The trackpoint should show up as a separate pointing device but it
seems a lot of people are not seeing it show up, there must be
something in the driver that is stopping it from being identified.  I
will have a look at that and see if I can work something out. 
Unfortunately, I don't have a trackpoint so it may take a bit of
fumbling to get this right.

- Original Message -
From: "Riccardo Mottola" 
To:"Manuel Bouyer" 
Cc:
Sent:Tue, 4 Dec 2018 22:59:45 +0100
Subject:Re: current - latest suspend tests T43 - T30 - R51

 Hi Manuel

 Manuel Bouyer wrote:
 >> - goes correctly to sleep
 >> - comes up again
 >> - with bge0 working
 >> - TouchPad and TrackPoint are not working after resume (even if
sleep was
 > Are these PS/2, USB or i2c ?

 I suppose they are PS/2, what is pckbc1 ?

 pckbd0 at pckbc1 (kbd slot)
 pckbc1: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc1 (aux slot)
 pms0: Synaptics touchpad version 5.9
 pms0: Passthrough, Palm detect, Multi-finger
 pckbc1: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0

 I see only the TouchPad but not the "stick", I wonder if they show up
as 
 only one device.

 I attach the full dmesg when running 8.0

 Riccardo




Re: current - latest suspend tests T43 - T30 - R51

2018-12-04 Thread Riccardo Mottola

Hi Brett,

Brett Lymn wrote:


Yes, they are ps/2.  The pckbc1 is the i8042 keyboard controller device 
which handles both keyboard and mouse for ps/2.


The trackpoint should show up as a separate pointing device but it seems 
a lot of people are not seeing it show up, there must be something in 
the driver that is stopping it from being identified.  I will have a 
look at that and see if I can work something out.  Unfortunately, I 
don't have a trackpoint so it may take a bit of fumbling to get this right.


ready to test stuff.. debug, run debug kernel (although I don't yet b 
uild kernels on this machine, I think it has enough power and disk space 
to do, in case)


The original point is: the pointers are dead when resuming from sleep, 
also the touchpad which "shows up"


Riccardo

PS: BSD rocks.


Re: current - latest suspend tests T43 - T30 - R51

2018-12-04 Thread Manuel Bouyer
On Tue, Dec 04, 2018 at 10:59:45PM +0100, Riccardo Mottola wrote:
> Hi Manuel
> 
> Manuel Bouyer wrote:
> > > - goes correctly to sleep
> > > - comes up again
> > >   - with bge0 working
> > >   - TouchPad and TrackPoint are not working after resume (even if sleep 
> > > was
> > Are these PS/2, USB or i2c ?
> 
> I suppose they are PS/2, what is pckbc1 ?


Yes, it's PS/2

> 
> pckbd0 at pckbc1 (kbd slot)
> pckbc1: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard
> pms0 at pckbc1 (aux slot)
> pms0: Synaptics touchpad version 5.9
> pms0: Passthrough, Palm detect, Multi-finger
> pckbc1: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> 
> 
> I see only the TouchPad but not the "stick", I wonder if they show up as
> only one device.

They probably do

-- 
Manuel Bouyer 
 NetBSD: 26 ans d'experience feront toujours la difference
--


Re: current - latest suspend tests T43 - T30 - R51

2018-12-04 Thread Riccardo Mottola

Hi Manuel

Manuel Bouyer wrote:

- goes correctly to sleep
- comes up again
- with bge0 working
- TouchPad and TrackPoint are not working after resume (even if sleep 
was

Are these PS/2, USB or i2c ?


I suppose they are PS/2, what is pckbc1 ?

pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pms0: Synaptics touchpad version 5.9
pms0: Passthrough, Palm detect, Multi-finger
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0


I see only the TouchPad but not the "stick", I wonder if they show up as 
only one device.


I attach the full dmesg when running 8.0

Riccardo
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
2018 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.

NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018
mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
total memory = 2046 MB
avail memory = 1993 MB
rnd: seeded with 128 bits
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
IBM 2669Z3V (ThinkPad T43)
mainbus0 (root)
ACPI: RSDP 0x000F6C10 24 (v02 IBM   )
ACPI: XSDT 0x7FEE6FF2 5C (v01 IBMTP-1Y1230  LTP 
)
ACPI: FACP 0x7FEE7100 F4 (v03 IBMTP-1Y1230 IBM  
0001)
ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 64/32 
(20170303/tbfadt-642)
ACPI BIOS Warning (bug): Optional FADT field Gpe1Block has valid Address but 
zero Length: 0x102C/0x0 (20170303/tbfadt-693)
ACPI: DSDT 0x7FEE72E7 00DB08 (v01 IBMTP-1Y1230 MSFT 
010E)
ACPI: FACS 0x7FEF6000 40
ACPI: FACS 0x7FEF6000 40
ACPI: SSDT 0x7FEE72B4 33 (v01 IBMTP-1Y1230 MSFT 
010E)
ACPI: ECDT 0x7FEF4DEF 52 (v01 IBMTP-1Y1230 IBM  
0001)
ACPI: TCPA 0x7FEF4E41 32 (v01 IBMTP-1Y1230 PTL  
0001)
ACPI: APIC 0x7FEF4E73 5A (v01 IBMTP-1Y1230 IBM  
0001)
ACPI: MCFG 0x7FEF4ECD 3E (v01 IBMTP-1Y1230 IBM  
0001)
ACPI: BOOT 0x7FEF4FD8 28 (v01 IBMTP-1Y1230  LTP 
0001)
ACPI: 2 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 1: pa 0xfec0, version 0x20, 24 pins
cpu0 at mainbus0 apid 0
cpu0: Intel(R) Pentium(R) M processor 2.26GHz, id 0x6d8
cpu0: package 0, core 0, smt 0
acpi0 at mainbus0: Intel ACPICA 20170303
acpi0: X/RSDT: OemId , AslId < LTP,>
acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
acpi0: MCFG: segment 0, bus 0-255, address 0xe000
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
acpiec0 at acpi0 (EC, PNP0C09-0): using acpiecdt0
MEM (PNP0C01) at acpi0 not configured
acpilid0 at acpi0 (LID, PNP0C0D): ACPI Lid Switch
acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
SIO (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
FPU (PNP0C04) at acpi0 not configured
pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (MOU, IBM0057) (aux port): irq 12
LPT (PNP0400) at acpi0 not configured
acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery
acpibat0: SANYO LION rechargeable battery
acpibat0: granularity: low->warn 0.001 Wh, warn->full 0.001 Wh
acpiacad0 at acpi0 (AC, ACPI0003-0): ACPI AC Adapter
thinkpad0 at acpi0 (HKEY, IBM0068)
acpivga0 at acpi0 (VID): ACPI Display Adapter
acpiout0 at acpivga0 (LCD0, 0x0110): ACPI Display Output Device
acpiout1 at acpivga0 (CRT0, 0x0100): ACPI Display Output Device
acpiout2 at acpivga0 (TV0, 0x0200): ACPI Display Output Device
acpiout3 at acpivga0 (DVI0, 0x0210): ACPI Display Output Device
acpivga0: connected output devices:
acpivga0:   0x0100 (acpiout1): Ext. Monitor, head 0
acpivga0:   0x0200 (acpiout2): TV, head 0
acpivga0:   0x0210 (acpiout3): Unknown Output Device, head 0
acpivga0:   0x0110 (acpiout0): LCD Panel, head 0
acpitz0 at acpi0 (THM0): cpu0
acpitz0: levels: critical 99.0 C, passive 94.5 C, passive cooling
apm0 at acpi0: Power Management spec V1.2
ACPI: Enabled 1 GPEs in block 00 to 1F
attimer1: attached to pcppi1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pms0: Synaptics touchpad version 5.9
pms0: Passthrough, Palm detect, Multi-finger
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok

Re: current - latest suspend tests T43 - T30 - R51

2018-12-04 Thread Manuel Bouyer
On Tue, Dec 04, 2018 at 12:26:53AM +0100, Riccardo Mottola wrote:
> Hi,
> 
> given the recent commits I got the netbsd-GENERIC.gz kernel from releng as
> of 3 Dec.
> 
> ThinkPad T43
> Nothing disabled. "Reference" but still not perfect sleep:
> 
> - goes correctly to sleep
> - comes up again
>   - with bge0 working
>   - TouchPad and TrackPoint are not working after resume (even if sleep 
> was

Are these PS/2, USB or i2c ?

-- 
Manuel Bouyer 
 NetBSD: 26 ans d'experience feront toujours la difference
--


Re: current - latest suspend tests T43 - T30 - R51

2018-12-03 Thread maya
On Tue, Dec 04, 2018 at 12:26:53AM +0100, Riccardo Mottola wrote:
> Further question: if I see "Flushing disk caches" but still I get a dirty
> file system when I reboot on the T30 and R51  - why?

The dirty filesystem thing is a nice trick: if you mount rw it will
mark a bit as 'dirty', and if it unmounts, it'll clear the bit.

Then if anything other than proper, clean shutdown happens (where
unmount will happen) it knows it should fsck.


current - latest suspend tests T43 - T30 - R51

2018-12-03 Thread Riccardo Mottola

Hi,

given the recent commits I got the netbsd-GENERIC.gz kernel from releng 
as of 3 Dec.


ThinkPad T43
Nothing disabled. "Reference" but still not perfect sleep:

- goes correctly to sleep
- comes up again
- with bge0 working
	- TouchPad and TrackPoint are not working after resume (even if sleep 
was put without running X11 and starting it later)
- with iwi0 configured, went to sleep, but did not resume correctly, 
remaining a black screen and unresponsive system (fan whirring)



ThinkPad T30
Disable:
audio, video, isa, usb, fxp, iwi

I still get a reboot of fatal protection fault in supervisor mode, 
trap_tss() at netbsd:trap_tss


If desired I can attach a screenshot.

ThinkPad R51
Disable:
audio, video, isa, usb, fxp, iwi

I see 2 green lines of kernel messages and then a black screen, however 
the laptop does not reboot nor is off. I need to power-cycle it.



Essentially, since last attempts, nothing changed.

Given the dmesg attached for T50 and , what else could I disable?
I'm out of ideas!

Further question: if I see "Flushing disk caches" but still I get a 
dirty file system when I reboot on the T30 and R51  - why?


Riccardo
[   1.000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 
2004, 2005,
[   1.000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 
2016, 2017,
[   1.000] 2018 The NetBSD Foundation, Inc.  All rights reserved.
[   1.000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.000] The Regents of the University of California.  All rights 
reserved.

[   1.000] NetBSD 8.99.26 (GENERIC) #0: Mon Dec  3 06:43:19 UTC 2018
[   1.000]  
mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
[   1.000] total memory = 2038 MB
[   1.000] avail memory = 1983 MB
[   1.000] timecounter: Timecounters tick every 10.000 msec
[   1.000] Kernelized RAIDframe activated
[   1.000] running cgd selftest aes-xts-256 aes-xts-512 done
[   1.000] userconf: configure system autoconfiguration:
[   1.000] uc> disable audio
[   1.000] [  0] audio* disabled
[   1.000] [  1] audio* disabled
[   1.000] uc> i^H ^Hdisable video
[   1.000] [  6] video* disabled
[   1.000] uc> disable isa
[   1.000] [469] isa0 disabled
[   1.000] [470] isa0 disabled
[   1.000] [471] isa0 disabled
[   1.000] [472] isa0 disabled
[   1.000] [473] isa0 disabled
[   1.000] [474] isa0 disabled
[   1.000] [475] isa0 disabled
[   1.000] [476] isa0 disabled
[   1.000] uc> i^H ^Hdisable usb
[   1.000] [542] usb* disabled
[   1.000] [543] usb* disabled
[   1.000] [544] usb* disabled
[   1.000] [545] usb* disabled
[   1.000] [546] usb* disabled
[   1.000] [547] usb* disabled
[   1.000] uc> disable fxp
[   1.000] [156] fxp* disabled
[   1.000] [157] fxp* disabled
[   1.000] uc> disable iwi
[   1.000] [418] iwi* disabled
[   1.000] uc> quit
[   1.000] Continuing...
[   1.000] timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
[   1.030] IBM 288732G (ThinkPad R51)
[   1.030] mainbus0 (root)
[   1.030] ACPI: RSDP 0x000F6DA0 24 (v02 IBM   )
[   1.030] ACPI: XSDT 0x7F6EB16B 4C (v01 IBMTP-1V
1290  LTP )
[   1.030] ACPI: FACP 0x7F6EB200 F4 (v03 IBMTP-1V
1290 IBM  0001)
[   1.030] Firmware Warning (ACPI): 32/64X length mismatch in 
FADT/Gpe0Block: 64/32 (20180810/tbfadt-642)
[   1.030] Firmware Warning (ACPI): Optional FADT field Gpe1Block has valid 
Address but zero Length: 0x102C/0x0 (20180810/tbfadt-693)
[   1.030] ACPI: DSDT 0x7F6EB3E7 00BA37 (v01 IBMTP-1V
1290 MSFT 010E)
[   1.030] ACPI: FACS 0x7F6F8000 40
[   1.030] ACPI: SSDT 0x7F6EB3B4 33 (v01 IBMTP-1V
1290 MSFT 010E)
[   1.030] ACPI: ECDT 0x7F6F6E1E 52 (v01 IBMTP-1V
1290 IBM  0001)
[   1.030] ACPI: TCPA 0x7F6F6E70 32 (v01 IBMTP-1V
1290 PTL  0001)
[   1.030] ACPI: BOOT 0x7F6F6FD8 28 (v01 IBMTP-1V
1290  LTP 0001)
[   1.030] ACPI: 2 ACPI AML tables successfully acquired and loaded
[   1.030] cpu0 at mainbus0
[   1.030] cpu0: Intel(R) Pentium(R) M processor 1500MHz, id 0x695
[   1.030] cpu0: package 0, core 0, smt 0
[   1.030] acpi0 at mainbus0: Intel ACPICA 20180810
[   1.030] acpi0: X/RSDT: OemId , AslId < 
LTP,>
[   1.030] acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
[   1.030] LNKA: ACPI: Found matching pin for 0.2.INTA at func 0: 11
[   1.030] LNKA: ACPI: Found matching pin for 0.29.INTA at func 0: 11
[   1.030] LNKD: ACPI: Found matching pin for 0.29.INTB at func 1: 11
[   1.030] LNKC: ACPI: Found matching pin for 0.29.INTC at func 2: 11
[   1.030] LNKH: ACPI: Found matching pin for 0.29.INTD at func 7: 11
[