Bug 5774

Summary: saa7134 module doesn't like suspend2
Product: Drivers Reporter: Imran Haider (imran1008)
Component: Video(Other)Assignee: drivers_video-other
Status: REJECTED INVALID    
Severity: low CC: akpm, mchehab, nigel.cunningham, nshmyrev, pavel
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.14 Subsystem:
Regression: --- Bisected commit-id:

Description Imran Haider 2005-12-22 17:41:42 UTC
Most recent kernel where this bug did not occur:
Distribution: Gentoo
Hardware Environment: 2.6ghz pentium4 HT (tuner: kworld saa7133)
Software Environment: TVtime
Problem Description:
 hibernating using (suspend2) while saa7134 module loaded causes the "saa7134"
module to not work after resume. my temporary solution is to unload before
hibernating and then to load it after resuming. Even if the module stops working
after resume, it is still possible to unload and reload it to make it work again

Steps to reproduce:
 -load saa7134
 -hibernate system using hiberate-script (suspend2)
 -resume system
 -fire up TVtime and no input video comes in
Comment 1 Andrew Morton 2006-01-20 00:03:31 UTC
Does it work OK with normal in-kernel suspend-to-ram and/or suspend-to-disk?
Comment 2 Imran Haider 2006-01-20 06:12:56 UTC
i never got suspend-to-disk and suspend-to-ram to work without a crash on resume.
Comment 3 Pavel Machek 2006-01-20 08:20:37 UTC
We can't support suspend2, sorry. Try to debug in-kernel swsusp, first.
Comment 4 Andrew Morton 2006-01-20 14:09:20 UTC
I'd still like to know whether swsusp handles this device OK.  Mauro,
do you know?
Comment 5 Mauro Carvalho Chehab 2006-01-22 17:06:25 UTC
Andrew,

Currently, I don't have a saa7134 board to test, but I asked two developers to
check and post some feedback. However, until now, nobody complained about
suspend at V4L mailing list.
Comment 6 Imran Haider 2006-01-22 21:11:22 UTC
sorry i didn't get this earlier (this is the dmesg generated when using saa7134
module after resuming from hibernation):

[   27.655161] tuner 0-004b: i2c i/o error: rc == -5 (should be 4)
[   27.655708] saa7133[0]: dsp access wait timeout [bit=WRR]
[   27.656245] saa7133[0]: dsp access wait timeout [bit=WRR]

the first error message is coming from tuner-simple.c
i'll post further comments if i find something