Bug 42845

Summary: [SiS chipset] Freeze during resume from suspend and high CPU usage
Product: IO/Storage Reporter: Štěpán Dalecký (stepan.d)
Component: Serial ATAAssignee: Alan (alan)
Status: RESOLVED CODE_FIX    
Severity: normal CC: alan, stepan.d
Priority: P1    
Hardware: All   
OS: Linux   
URL: https://bugs.gentoo.org/show_bug.cgi?id=404907
Kernel Version: all Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg
.config
lspci

Description Štěpán Dalecký 2012-03-01 22:28:46 UTC
Created attachment 72511 [details]
dmesg

Hi, i have two problems with my notebook (ASUS F5VL)

a) after resume CPU usage is 100%. 
b) during resume it freezes for 30 seconds

Steps to Reproduce:
1) Suspend(from Xfce or pm-suspend) - OK 
2) Ntb is shutdown - OK 
3) Press a key and ntb start to resume - OK 
4) 30 second freeze - PROBLEM 
5) Continue resume normally - OK 
6) Resume is successfully done and desktop is normally usuable - OK 

How freeze looks? 
Black screen with gray cursor blinking in the upper left corner. 

Expected Results:  
No CPU usage after resume and resume in a few seconds.

My progress:
Problem a) I solved by removing sr_mod module. So I have no CD-ROM support but no CPU usage :( But it is not solution I preffer.

Problem b) I solved by patching sata_sis driver. It looks completely solved for me by this patch. Goal is to add CONFIG_PM, suspend and resume function to sata_sis driver.

static struct pci_driver sis_pci_driver = {
         .name                   = DRV_NAME,
         .id_table               = sis_pci_tbl,
         .probe                  = sis_init_one,
         .remove                 = ata_pci_remove_one,
#ifdef CONFIG_PM
         .suspend                = ata_pci_device_suspend,
         .resume                 = ata_pci_device_resume,
#endif
 };
Comment 1 Štěpán Dalecký 2012-03-01 22:31:10 UTC
Created attachment 72512 [details]
.config
Comment 2 Štěpán Dalecký 2012-03-01 22:31:24 UTC
Created attachment 72513 [details]
lspci