Skip to contentSkip to conversation

pata_amd.c version 0.2.4

DISCUSSION Andrei Tanas 2 participants 2 messages Nov 8, 2006 – Nov 21, 2006 6 messages not in the archive libata

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 006501c70286$6e562100$4b026300$@ca

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 008c01c702a5$e4482060$acd86120$@ca

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 00ea01c70343$225582b0$67008810$@ca

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Tejun, Jeff,
In an attempt to enable suspend-to-ram (and correct resume) for NVidia MCP51 PATA device, I added
.suspend = ata_pci_device_suspend,
.resume = ata_pci_device_resume,
To amd_pci_driver struct. With this, first attempt to suspend results in an error (-16 "device is still active"), and second attempt leads to oops. Do you want to see console output and lspci for this?

Leaving .suspend = NULL and adding only
.resume = ata_pci_device_resume,
seems to reset the device properly and work fine.
Before this was enabled, the box would suspend/resume fine than hang silently about 30 seconds after resume.

-----Original Message-----
From: Alan Cox [mailto:[email protected]]
Sent: November 8, 2006 11:07 AM
To: Andrei Tanas
Cc: 'Alan Cox'
Subject: Re: pata_amd.c version 0.2.4

Quoted 3 lines · Andrei Tanas

Adding .resume helped - the controller (MCP51) resets properly. Trying to add .suspend resulted in an error (-16, "device is still active"), with subsequent oops on the next suspend attempt. Let me know if you want

console

Quoted 1 line

output and lspci for this.

I don't really have time to look at it this year, Tejun and Jeff may well be interested - is that the device you were suspending too ?

#7 lore raw
Quoted 9 lines · Andrei Tanas

Tejun, Jeff,
In an attempt to enable suspend-to-ram (and correct resume) for NVidia MCP51 PATA device, I added
.suspend = ata_pci_device_suspend,
.resume = ata_pci_device_resume,
To amd_pci_driver struct. With this, first attempt to suspend results in an error (-16 "device is still active"), and second attempt leads to oops. Do you want to see console output and lspci for this?

Quoted 5 lines

Leaving .suspend = NULL and adding only
.resume = ata_pci_device_resume,
seems to reset the device properly and work fine.
Before this was enabled, the box would suspend/resume fine than hang silently about 30 seconds after resume.

You also need to set scsi_host_template->suspend/resume callbacks. Using default ata_scsi_device_suspend() and ata_scsi_device_resume() should be sufficient.

Signature · 1 line
tejun