Re: Lenovo x220 - hangs on shutdown

2013-07-22 Thread Konstantin Belousov
On Sun, Jul 21, 2013 at 10:52:18PM +0200, Joel Dahl wrote:
 On Sun, Jul 21, 2013 at 07:12:33PM +0300, Konstantin Belousov wrote:
  On Sun, Jul 21, 2013 at 09:20:45AM +0200, Joel Dahl wrote:
   On Tue, Jul 16, 2013 at 10:48:35PM +0200, Joel Dahl wrote:
Hi,

Yesterday I upgraded my Lenovo x220 to the latest current (r253368). 
Now it hangs when I do a shutdown from an xterm. The screen just goes 
black and the fan never spins down. It doesn't respond to ping.

It didn't do this while I was running a current from mid-June.

Any specific revision I should try to back out before I start a time 
consuming binary search?
   
   I found it. r252652 works. r252653 does not.
  
  What is the chipset on your machine ?
 
 Intel Core i7-2640M / Mobile Intel QM67 Express Chipset
 
  Do you have AMT ?  If yes, please configure serial over LAN using AMT
  and use it for the console, to obtain the usual debugging information
  from the kernel.  At least, 'ps' output from ddb is needed.
 
 I found Intel (R) AMT Control in the BIOS. It's enabled. I haven't figured
 out how it works yet though.

You need another machine, where you should install amtterm.
On the target, use the loader.conf to redirect console to 
AMT Serial over LAN device.

On my test machine, I have (output from pciconf -lv)

uart2@pci0:0:22:3:   class=0x070002 card=0x200a8086 chip=0x1c3d8086 rev=0x04 
hdr=0x00
vendor = 'Intel Corporation'
device = '6 Series/C200 Series Chipset Family KT Controller'
class  = simple comms
subclass   = UART

and then I put into loader.conf

console=comconsole
comconsole_pcidev=0:22:3

Connect to the target with amtterm.  Note that during the PCI bus scan
the connection could be lost, you would need to reconnect.

You need to set up AMT in the BIOS, including enable of the SoL, remote
connections, password etc.  Intel policy on the password strength is
distinctly annoying.


pgpRkIqXZYH_F.pgp
Description: PGP signature


Re: Lenovo x220 - hangs on shutdown

2013-07-22 Thread Adrian Chadd
Hi kib,

Is there a wiki page or some other kind of documentation descibing how
AMT works?

I'd like to set this up at home on some newer machines (read: buy
machines that have this) but I don't know what/where to start.

Thanks!



-adrian

On 22 July 2013 02:51, Konstantin Belousov kostik...@gmail.com wrote:
 On Sun, Jul 21, 2013 at 10:52:18PM +0200, Joel Dahl wrote:
 On Sun, Jul 21, 2013 at 07:12:33PM +0300, Konstantin Belousov wrote:
  On Sun, Jul 21, 2013 at 09:20:45AM +0200, Joel Dahl wrote:
   On Tue, Jul 16, 2013 at 10:48:35PM +0200, Joel Dahl wrote:
Hi,
   
Yesterday I upgraded my Lenovo x220 to the latest current (r253368). 
Now it hangs when I do a shutdown from an xterm. The screen just goes 
black and the fan never spins down. It doesn't respond to ping.
   
It didn't do this while I was running a current from mid-June.
   
Any specific revision I should try to back out before I start a time 
consuming binary search?
  
   I found it. r252652 works. r252653 does not.
 
  What is the chipset on your machine ?

 Intel Core i7-2640M / Mobile Intel QM67 Express Chipset

  Do you have AMT ?  If yes, please configure serial over LAN using AMT
  and use it for the console, to obtain the usual debugging information
  from the kernel.  At least, 'ps' output from ddb is needed.

 I found Intel (R) AMT Control in the BIOS. It's enabled. I haven't figured
 out how it works yet though.

 You need another machine, where you should install amtterm.
 On the target, use the loader.conf to redirect console to
 AMT Serial over LAN device.

 On my test machine, I have (output from pciconf -lv)

 uart2@pci0:0:22:3:   class=0x070002 card=0x200a8086 chip=0x1c3d8086 rev=0x04 
 hdr=0x00
 vendor = 'Intel Corporation'
 device = '6 Series/C200 Series Chipset Family KT Controller'
 class  = simple comms
 subclass   = UART

 and then I put into loader.conf

 console=comconsole
 comconsole_pcidev=0:22:3

 Connect to the target with amtterm.  Note that during the PCI bus scan
 the connection could be lost, you would need to reconnect.

 You need to set up AMT in the BIOS, including enable of the SoL, remote
 connections, password etc.  Intel policy on the password strength is
 distinctly annoying.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Lenovo x220 - hangs on shutdown

2013-07-22 Thread Konstantin Belousov
On Mon, Jul 22, 2013 at 10:52:55AM -0700, Adrian Chadd wrote:
 Hi kib,
 
 Is there a wiki page or some other kind of documentation descibing how
 AMT works?
It is Intel documentation for vPro. Setting up AMT on the motherboard
is specific to the motherboard BIOS, you should look at the hardware
vendor documentation.

Random googling for you revealed e.g. http://wiki.debian.org/AMT
which is actually good introduction (i.e. there is not much to say
about AMT usage in fact).

 
 I'd like to set this up at home on some newer machines (read: buy
 machines that have this) but I don't know what/where to start.
For the controlling side of things, I use amttools, available in
ports collection as comms/amtterm.  The manual pages are brief
but useful.

Amttools provide amttool(1) for power control, and amtterm/gamt for console.


pgpO0BEnQl16P.pgp
Description: PGP signature


Re: Lenovo x220 - hangs on shutdown

2013-07-22 Thread Neel Natu
Hi Joel,

On Mon, Jul 22, 2013 at 1:36 PM, Konstantin Belousov
kostik...@gmail.com wrote:
 On Mon, Jul 22, 2013 at 10:52:55AM -0700, Adrian Chadd wrote:
 Hi kib,

 Is there a wiki page or some other kind of documentation descibing how
 AMT works?
 It is Intel documentation for vPro. Setting up AMT on the motherboard
 is specific to the motherboard BIOS, you should look at the hardware
 vendor documentation.

 Random googling for you revealed e.g. http://wiki.debian.org/AMT
 which is actually good introduction (i.e. there is not much to say
 about AMT usage in fact).


 I'd like to set this up at home on some newer machines (read: buy
 machines that have this) but I don't know what/where to start.
 For the controlling side of things, I use amttools, available in
 ports collection as comms/amtterm.  The manual pages are brief
 but useful.

 Amttools provide amttool(1) for power control, and amtterm/gamt for console.

Could you apply the following patch to amd64/amd64/pmap.c and see if it helps?
http://people.freebsd.org/~neel/patches/pmap_remove_pages.patch

best
Neel
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Lenovo x220 - hangs on shutdown

2013-07-22 Thread Joel Dahl
On Mon, Jul 22, 2013 at 02:32:06PM -0700, Neel Natu wrote:
 Hi Joel,
 
 On Mon, Jul 22, 2013 at 1:36 PM, Konstantin Belousov
 kostik...@gmail.com wrote:
  On Mon, Jul 22, 2013 at 10:52:55AM -0700, Adrian Chadd wrote:
  Hi kib,
 
  Is there a wiki page or some other kind of documentation descibing how
  AMT works?
  It is Intel documentation for vPro. Setting up AMT on the motherboard
  is specific to the motherboard BIOS, you should look at the hardware
  vendor documentation.
 
  Random googling for you revealed e.g. http://wiki.debian.org/AMT
  which is actually good introduction (i.e. there is not much to say
  about AMT usage in fact).
 
 
  I'd like to set this up at home on some newer machines (read: buy
  machines that have this) but I don't know what/where to start.
  For the controlling side of things, I use amttools, available in
  ports collection as comms/amtterm.  The manual pages are brief
  but useful.
 
  Amttools provide amttool(1) for power control, and amtterm/gamt for console.
 
 Could you apply the following patch to amd64/amd64/pmap.c and see if it helps?
 http://people.freebsd.org/~neel/patches/pmap_remove_pages.patch

Yes, it helps. I can shutdown the machine from X again.

-- 
Joel
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Lenovo x220 - hangs on shutdown

2013-07-21 Thread Joel Dahl
On Tue, Jul 16, 2013 at 10:48:35PM +0200, Joel Dahl wrote:
 Hi,
 
 Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it 
 hangs when I do a shutdown from an xterm. The screen just goes black and the 
 fan never spins down. It doesn't respond to ping.
 
 It didn't do this while I was running a current from mid-June.
 
 Any specific revision I should try to back out before I start a time 
 consuming binary search?

I found it. r252652 works. r252653 does not.

-- 
Joel
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Lenovo x220 - hangs on shutdown

2013-07-21 Thread Adrian Chadd
Hi! Great catch!

Neel - any ideas why this change would stop Joel's machine from
cleanly shutting down?



-adrian

On 21 July 2013 00:20, Joel Dahl j...@freebsd.org wrote:
 On Tue, Jul 16, 2013 at 10:48:35PM +0200, Joel Dahl wrote:
 Hi,

 Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it 
 hangs when I do a shutdown from an xterm. The screen just goes black and the 
 fan never spins down. It doesn't respond to ping.

 It didn't do this while I was running a current from mid-June.

 Any specific revision I should try to back out before I start a time 
 consuming binary search?

 I found it. r252652 works. r252653 does not.

 --
 Joel
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Lenovo x220 - hangs on shutdown

2013-07-21 Thread Konstantin Belousov
On Sun, Jul 21, 2013 at 09:20:45AM +0200, Joel Dahl wrote:
 On Tue, Jul 16, 2013 at 10:48:35PM +0200, Joel Dahl wrote:
  Hi,
  
  Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it 
  hangs when I do a shutdown from an xterm. The screen just goes black and 
  the fan never spins down. It doesn't respond to ping.
  
  It didn't do this while I was running a current from mid-June.
  
  Any specific revision I should try to back out before I start a time 
  consuming binary search?
 
 I found it. r252652 works. r252653 does not.

What is the chipset on your machine ?

Do you have AMT ?  If yes, please configure serial over LAN using AMT
and use it for the console, to obtain the usual debugging information
from the kernel.  At least, 'ps' output from ddb is needed.



pgpQ99BKOxtME.pgp
Description: PGP signature


Re: Lenovo x220 - hangs on shutdown

2013-07-21 Thread Joel Dahl
On Sun, Jul 21, 2013 at 07:12:33PM +0300, Konstantin Belousov wrote:
 On Sun, Jul 21, 2013 at 09:20:45AM +0200, Joel Dahl wrote:
  On Tue, Jul 16, 2013 at 10:48:35PM +0200, Joel Dahl wrote:
   Hi,
   
   Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now 
   it hangs when I do a shutdown from an xterm. The screen just goes black 
   and the fan never spins down. It doesn't respond to ping.
   
   It didn't do this while I was running a current from mid-June.
   
   Any specific revision I should try to back out before I start a time 
   consuming binary search?
  
  I found it. r252652 works. r252653 does not.
 
 What is the chipset on your machine ?

Intel Core i7-2640M / Mobile Intel QM67 Express Chipset

 Do you have AMT ?  If yes, please configure serial over LAN using AMT
 and use it for the console, to obtain the usual debugging information
 from the kernel.  At least, 'ps' output from ddb is needed.

I found Intel (R) AMT Control in the BIOS. It's enabled. I haven't figured
out how it works yet though.



-- 
Joel
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Lenovo x220 - hangs on shutdown

2013-07-17 Thread Michael Schmiedgen

On 16.07.2013 22:48, Joel Dahl wrote:

Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it 
hangs when I do a shutdown from an xterm. The screen just goes black and the 
fan never spins down. It doesn't respond to ping.


My build is from Sunday. I never type 'shutdown', but it is configured
to shutdown when I close the display. Everything works fine.
I can investigate revision and shutdown from xterm at home if you
like.

Michael

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Re: Lenovo x220 - hangs on shutdown

2013-07-17 Thread Rodrigo OSORIO
 Date: Wed, 17 Jul 2013 12:07:11 +0200
 From: Michael Schmiedgen schmied...@gmx.net
 To: Joel Dahl j...@vnode.se
 Cc: curr...@freebsd.org
 Subject: Re: Lenovo x220 - hangs on shutdown
 Message-ID: 51e66ccf.2040...@gmx.net
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
 On 16.07.2013 22:48, Joel Dahl wrote:
  Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it 
  hangs when I do a shutdown from an xterm. The screen just goes black and 
  the fan never spins down. It doesn't respond to ping.
 
 My build is from Sunday. I never type 'shutdown', but it is configured
 to shutdown when I close the display. Everything works fine.
 I can investigate revision and shutdown from xterm at home if you
 like.
 
 Michael

Hi,

I fall in this kind of issue with my laptop and deactivating powerd
solves the problem. I'm sorry but I  didn't explore this issue beyond.

- rodrigo
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Lenovo x220 - hangs on shutdown

2013-07-17 Thread Michael Schmiedgen

On 07/16/13 22:48, Joel Dahl wrote:

Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it 
hangs when I do a shutdown from an xterm. The screen just goes black and the 
fan never spins down. It doesn't respond to ping.


X220, 10.0-CURRENT #0 r253368 amd, powerd running. In xterm I type
'shutdown -p now' and everything works fine. But the kernel is
compiled without INVARIANTS and without WITNESS and malloc runs
in production mode.

Michael

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Lenovo x220 - hangs on shutdown

2013-07-17 Thread Joel Dahl
On Wed, Jul 17, 2013 at 07:39:30PM +0200, Michael Schmiedgen wrote:
 On 07/16/13 22:48, Joel Dahl wrote:
  Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it 
  hangs when I do a shutdown from an xterm. The screen just goes black and 
  the fan never spins down. It doesn't respond to ping.
 
 X220, 10.0-CURRENT #0 r253368 amd, powerd running. In xterm I type
 'shutdown -p now' and everything works fine. But the kernel is
 compiled without INVARIANTS and without WITNESS and malloc runs
 in production mode.

I tried enabling powerd - no change. The machine won't power off.

-- 
Joel
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Lenovo x220 - hangs on shutdown

2013-07-16 Thread Joel Dahl
Hi,

Yesterday I upgraded my Lenovo x220 to the latest current (r253368). Now it 
hangs when I do a shutdown from an xterm. The screen just goes black and the 
fan never spins down. It doesn't respond to ping.

It didn't do this while I was running a current from mid-June.

Any specific revision I should try to back out before I start a time consuming 
binary search?

// Joel
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org