Testing suspend and resume support in device drivers
来源:互联网 发布:淘宝图片尺寸修改软件 编辑:程序博客网 时间:2024/05/21 10:15
Testing suspend and resume support in device drivers(C) 2007 Rafael J. Wysocki <rjw@sisk.pl>, GPL1. Preparing the test systemUnfortunately, to effectively test the support for the system-wide suspend andresume transitions in a driver, it is necessary to suspend and resume a fullyfunctional system with this driver loaded. Moreover, that should be doneseveral times, preferably several times in a row, and separately for hibernation(aka suspend to disk or STD) and suspend to RAM (STR), because each of thesecases involves slightly different operations and different interactions withthe machine's BIOS.Of course, for this purpose the test system has to be known to suspend andresume without the driver being tested. Thus, if possible, you should firstresolve all suspend/resume-related problems in the test system before you starttesting the new driver. Please see Documentation/power/basic-pm-debugging.txtfor more information about the debugging of suspend/resume functionality.2. Testing the driverOnce you have resolved the suspend/resume-related problems with your test systemwithout the new driver, you are ready to test it:a) Build the driver as a module, load it and try the test modes of hibernation (see: Documentation/power/basic-pm-debugging.txt, 1).b) Load the driver and attempt to hibernate in the "reboot", "shutdown" and "platform" modes (see: Documentation/power/basic-pm-debugging.txt, 1).c) Compile the driver directly into the kernel and try the test modes of hibernation.d) Attempt to hibernate with the driver compiled directly into the kernel in the "reboot", "shutdown" and "platform" modes.e) Try the test modes of suspend (see: Documentation/power/basic-pm-debugging.txt, 2). [As far as the STR tests are concerned, it should not matter whether or not the driver is built as a module.]f) Attempt to suspend to RAM using the s2ram tool with the driver loaded (see: Documentation/power/basic-pm-debugging.txt, 2).Each of the above tests should be repeated several times and the STD testsshould be mixed with the STR tests. If any of them fails, the driver cannot beregarded as suspend/resume-safe.
阅读全文
0 0
- Testing suspend and resume support in device drivers
- Testing Suspend and Resume for Driver Developers.
- android suspend and resume
- linux device suspend/resume test
- Android suspend and resume process
- Linux Kernel suspend and resume
- suspend/resume problem with HCI UART Bluetooth device in windows ce
- Debug Android and Linux suspend and resume
- Debug Android and Linux suspend and resume
- Debug Android and Linux suspend and resume
- Android and Linux suspend and resume debug
- Platform Device and Drivers
- Linux kernel and Android suspend/resume
- linux下,如何debug Suspend and resume
- suspend/resume
- Android and Linux suspend and resume debug(中文)
- Debug Android and Linux suspend and resume (中文)
- Debug Android and Linux suspend and resume (中文)
- android简单的实现数据库增删改查
- hw_module_t 加载过程
- 机器学习-第二周-第一次作业 numpy基础
- viewpager+fragment
- ThinkPHP5开发的正确姿势
- Testing suspend and resume support in device drivers
- Mysql字符串模糊查询<= and <=
- iOS [UIKeyboardLayoutStar release]
- 手机网站等比例缩小
- 多线程
- 资料收集(一般人我不告诉它)
- HTTP Live Streaming直播(iOS直播)技术分析与实现
- node.js 下如何利用formData实现ajax上传图片
- Activity任务栈和启动模式