Re: [Suspend-devel] s2disk: potential problems with HPA (host protected area)

2006-08-11 Thread Stefan Seyfried
On Fri, Aug 11, 2006 at 11:50:50AM +0200, Tim Dijkstra wrote:
 On Wed, 9 Aug 2006 17:13:47 +0200
 Stefan Seyfried [EMAIL PROTECTED] wrote:
 
  It is not related to uswsusp, it is related to suspend to ram. The kernel
  disables the HPA on boot. The harddrive is power cycled during suspend to
  RAM. After resume, HPA is not disabled again. = boom.
 
 OK, so the kernel needs to disable HPA on resume to.

Yes, but it probably is more than only the HPA. IIUC that the whole IDE
resume stuff needs to be fixed properly.

  You can verify this with:
  - hdparm -I /dev/hda  /tmp/identify-before
  - s2ram
  - hdparm -I /dev/hda  /tmp/identify-after
  
  then diff identify-before and identify-after, the disk will report different
  sizes.
  
  Unfortunately, once the Predesktop Area was disabled, you cannot reenable
  it, so the bug is only reproducible until the fix with disabling the hpa
  is made.
 
 So Daniel won't be able to reproduce this anymore... is that correct Daniel?

Well, that is at least what we saw on our T41p. Probably restoring the 
machine from the recovery CDs will restore everything so it can be reproduced.
If it turns out to be really necessary, we will have to do that :-)

  I will have a novell bugzilla report number about this soon.

https://bugzilla.novell.com/show_bug.cgi?id=198401 BTW.
 
 Does this mean you (stefan) are going to make sure this gets fixed in the 
 kernel?

Unfortunately not, but i will try to poke somebody to get them to get 
somebody to fix it. :-)
-- 
Stefan Seyfried | Please, just tell people
QA / RD Team Mobile Devices|   to use KDE.
SUSE LINUX Products GmbH, Nürnberg  |  -- Linus Torvalds

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


Re: [Suspend-devel] s2disk: potential problems with HPA (host protected area)

2006-08-11 Thread Daniel Philipp
On Fri, 11 Aug 2006 11:50 +0200 Tim Dijkstra wrote:
 On Wed, 9 Aug 2006 17:13:47 +0200
 Stefan Seyfried [EMAIL PROTECTED] wrote:
 
  It is not related to uswsusp, it is related to suspend to ram. The kernel
  disables the HPA on boot. The harddrive is power cycled during suspend to
  RAM. After resume, HPA is not disabled again. = boom.
 
 OK, so the kernel needs to disable HPA on resume to.
  
  You can verify this with:
  - hdparm -I /dev/hda  /tmp/identify-before
  - s2ram
  - hdparm -I /dev/hda  /tmp/identify-after
  
  then diff identify-before and identify-after, the disk will report different
  sizes.
  
  Unfortunately, once the Predesktop Area was disabled, you cannot reenable
  it, so the bug is only reproducible until the fix with disabling the hpa
  is made.
 
 So Daniel won't be able to reproduce this anymore... is that correct Daniel?

This is correct. I'm not able to reproduce this anymore.
As Stefan has already stated, I would have to start the IBM recovery
tool or get the recovery cd.
If the problem is just related to the HPA, then I could try to setup
such an area again. Anyone an idea how to manage that?

  I will have a novell bugzilla report number about this soon.
 
 Does this mean you (stefan) are going to make sure this gets fixed in the 
 kernel?
 
 grts Tim
 

Regards
Daniel


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


Re: [Suspend-devel] s2disk: potential problems with HPA (host protected area)

2006-08-09 Thread Stefan Seyfried
On Wed, Aug 09, 2006 at 05:06:02PM +0200, Tim Dijkstra wrote:
 Hi,
 
 I got a bug report in the debian BTS which is beyond my knowledge. 
 Could one of you shed some light on the issue?

Hopefully.
I ran across exactly the same on a T42p today.

 Machine: IBM Thinkpad R50p
 
 I recognized following issues concerning s2ram/s2disk/s2both:
 
   - calling s2ram works fine, resuming from RAM works
   - after having resumed and calling s2disk the machine hangs with 
 heavy HD load
   - it's not possible to terminate or kill any process with SysRq+E/I
   - following messgages appears again and again if SysRq+E is pressed:
 
   hda: task_out_intr: status=0x51 { DriveReady SeekComplete Error }
   hda: task_out_intr: status=0x10 { SectorIdNotFound }, \ 
   LBAsect=110561486, sector=110561486
   hda: failed opcode was: unknown
 
   where 'LBAsect' and 'sector' will have values above 1100 each 
   time the behaviour is reproduced
 
 After having disabled the so called IBM Predesktop Area in the BIOS
 everything works (in the BIOS setup: Security - IBM Predesktop Area -
 Current Setting: Disabled).
 As far as I know this IBM Predesktop Area is located in a HPA.
 I'm not sure, if this is really a bug (and if so, if it is related to
 uswsusp).

It is not related to uswsusp, it is related to suspend to ram. The kernel
disables the HPA on boot. The harddrive is power cycled during suspend to
RAM. After resume, HPA is not disabled again. = boom.

You can verify this with:
- hdparm -I /dev/hda  /tmp/identify-before
- s2ram
- hdparm -I /dev/hda  /tmp/identify-after

then diff identify-before and identify-after, the disk will report different
sizes.

Unfortunately, once the Predesktop Area was disabled, you cannot reenable
it, so the bug is only reproducible until the fix with disabling the hpa
is made.

I will have a novell bugzilla report number about this soon.
-- 
Stefan Seyfried | Please, just tell people
QA / RD Team Mobile Devices|   to use KDE.
SUSE LINUX Products GmbH, Nürnberg  |  -- Linus Torvalds

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


Re: [Suspend-devel] s2disk: potential problems with HPA (host protected area)

2006-08-09 Thread Rafael J. Wysocki
On Wednesday 09 August 2006 17:06, Tim Dijkstra wrote:
 Hi,
 
 I got a bug report in the debian BTS which is beyond my knowledge. 
 Could one of you shed some light on the issue?
 
 Thanks,
 
 Tim
 
 
 Forwarded message:
 
 Machine: IBM Thinkpad R50p
 
 I recognized following issues concerning s2ram/s2disk/s2both:
 
   - calling s2ram works fine, resuming from RAM works
   - after having resumed and calling s2disk the machine hangs with 
 heavy HD load
   - it's not possible to terminate or kill any process with SysRq+E/I
   - following messgages appears again and again if SysRq+E is pressed:
 
   hda: task_out_intr: status=0x51 { DriveReady SeekComplete Error }
   hda: task_out_intr: status=0x10 { SectorIdNotFound }, \ 
   LBAsect=110561486, sector=110561486
   hda: failed opcode was: unknown
 
   where 'LBAsect' and 'sector' will have values above 1100 each 
   time the behaviour is reproduced
 
 After having disabled the so called IBM Predesktop Area in the BIOS
 everything works (in the BIOS setup: Security - IBM Predesktop Area -
 Current Setting: Disabled).
 As far as I know this IBM Predesktop Area is located in a HPA.

Which is where?

 I'm not sure, if this is really a bug (and if so, if it is related to
 uswsusp).
 Hope anyone will find out.

If this is a bug, it is a kernel one, I think.

Rafael

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


Re: [Suspend-devel] s2disk: potential problems with HPA (host protected area)

2006-08-09 Thread Luca Tettamanti
On 8/9/06, Rafael J. Wysocki [EMAIL PROTECTED] wrote:
  After having disabled the so called IBM Predesktop Area in the BIOS
  everything works (in the BIOS setup: Security - IBM Predesktop Area -
  Current Setting: Disabled).
  As far as I know this IBM Predesktop Area is located in a HPA.

 Which is where?

Are you asking where the HPA is? Usually is a the end of the disk so
that it can be hidden just lying about disk size.

For ThinkPads:
http://www.thinkwiki.org/wiki/Hidden_Protected_Area

Luca

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


Re: [Suspend-devel] s2disk: potential problems with HPA (host protected area)

2006-08-09 Thread Rafael J. Wysocki
On Wednesday 09 August 2006 23:28, Luca Tettamanti wrote:
 On 8/9/06, Rafael J. Wysocki [EMAIL PROTECTED] wrote:
   After having disabled the so called IBM Predesktop Area in the BIOS
   everything works (in the BIOS setup: Security - IBM Predesktop Area -
   Current Setting: Disabled).
   As far as I know this IBM Predesktop Area is located in a HPA.
 
  Which is where?
 
 Are you asking where the HPA is?

Yes, exactly.

 Usually is a the end of the disk so that it can be hidden just lying about
 disk size. 

Ah, I didn't know this thing was called the HPA. ;-)

 For ThinkPads:
 http://www.thinkwiki.org/wiki/Hidden_Protected_Area

Thanks,
Rafael

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel