Skip to contentSkip to conversation

Documentation:reference notifiers.txt in freezing-of-tasks.txt

mm-patch Oliver Neukum 3 participants 3 messages Jul 9, 2007 – Jul 10, 2007 Suspend to RAM

lore
Share & tools
lore
#0 lore raw

Hi,

freezing-of-tasks.txt mentions firmware issues without mentioning the use of the new notifier API to overcome them. Here's an update.

Regards
Oliver

----

Documentation/power/freezing-of-tasks.txt +5 -3
@@ -155,6 +155,8 @@ Suppose, however, that the firmware file
 only through another device that hasn't been resumed yet.  In that case,
 request_firmware() will fail regardless of whether or not the freezing of tasks
 is used.  Consequently, the problem is not really related to the freezing of
-tasks, since it generally exists anyway.  [The solution to this particular
-problem is to keep the firmware in memory after it's loaded for the first time
-and upload if from memory to the device whenever necessary.]
+tasks, since it generally exists anyway.
+
+A driver must have all firmwares it may need in RAM before suspend() is called.
+If keeping them is not practical, for example due to their size, they must be
+requested early enough using the suspend notifier API described in notifiers.txt.
#2 lore raw
In reply to Oliver Neukum

Hi.

Quoted 11 lines · On Monday 09 July 2007 18:26:19 Oliver Neukum wrote:

Hi,

freezing-of-tasks.txt mentions firmware issues without mentioning the use of the new notifier API to overcome them. Here's an update.

Regards
Oliver

----

--- a/Documentation/power/freezing-of-tasks.txt 2007-07-09

10:06:51.000000000 +0200

Quoted 1 line

+++ b/Documentation/power/freezing-of-tasks.txt 2007-07-09

10:24:05.000000000 +0200

Review Suppose, however, that the firmware file · line 156

Quoted 3 lines
(quoted diff) +0 -0
@@ -155,6 +155,8 @@ Suppose, however, that the firmware file
 only through another device that hasn't been resumed yet.  In that case,
 request_firmware() will fail regardless of whether or not the freezing of 

tasks

Review Suppose, however, that the firmware file · line 157

Quoted 1 line
(quoted diff) +0 -0
 is used.  Consequently, the problem is not really related to the freezing 

of

Review Suppose, however, that the firmware file · line 159

Quoted 2 lines
(quoted diff) +0 -2
-tasks, since it generally exists anyway.  [The solution to this particular
-problem is to keep the firmware in memory after it's loaded for the first 

time

Documentation/power/freezing-of-tasks.txt Suppose, however, that the firmware file

Quoted 4 lines
Documentation/power/freezing-of-tasks.txt +3 -1
-and upload if from memory to the device whenever necessary.]
+tasks, since it generally exists anyway.
+
+A driver must have all firmwares it may need in RAM before suspend() is 

called.

s/firmwares/firmware

Review Suppose, however, that the firmware file · line 161

Quoted 1 line
(quoted diff) +1 -0
+If keeping them is not practical, for example due to their size, they must 

be

Review Suppose, however, that the firmware file · line 162

Quoted 1 line
(quoted diff) +1 -0
+requested early enough using the suspend notifier API described in 

notifiers.txt.

Regards,

Nigel

Signature · 2 lines
See http://www.tuxonice.net for Howtos, FAQs, mailing
lists, wiki and bugzilla info.