forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'akpm' (Andrew's patch-bomb)
Merge Andrew's first set of patches: "Non-MM patches: - lots of misc bits - tree-wide have_clk() cleanups - quite a lot of printk tweaks. I draw your attention to "printk: convert the format for KERN_<LEVEL> to a 2 byte pattern" which looks a bit scary. But afaict it's solid. - backlight updates - lib/ feature work (notably the addition and use of memweight()) - checkpatch updates - rtc updates - nilfs updates - fatfs updates (partial, still waiting for acks) - kdump, proc, fork, IPC, sysctl, taskstats, pps, etc - new fault-injection feature work" * Merge emailed patches from Andrew Morton <[email protected]>: (128 commits) drivers/misc/lkdtm.c: fix missing allocation failure check lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table() fault-injection: add tool to run command with failslab or fail_page_alloc fault-injection: add selftests for cpu and memory hotplug powerpc: pSeries reconfig notifier error injection module memory: memory notifier error injection module PM: PM notifier error injection module cpu: rewrite cpu-notifier-error-inject module fault-injection: notifier error injection c/r: fcntl: add F_GETOWNER_UIDS option resource: make sure requested range is included in the root range include/linux/aio.h: cpp->C conversions fs: cachefiles: add support for large files in filesystem caching pps: return PTR_ERR on error in device_create taskstats: check nla_reserve() return sysctl: suppress kmemleak messages ipc: use Kconfig options for __ARCH_WANT_[COMPAT_]IPC_PARSE_VERSION ipc: compat: use signed size_t types for msgsnd and msgrcv ipc: allow compat IPC version field parsing if !ARCH_WANT_OLD_COMPAT_IPC ipc: add COMPAT_SHMLBA support ...
- Loading branch information
Showing
185 changed files
with
2,662 additions
and
1,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
Notifier error injection | ||
======================== | ||
|
||
Notifier error injection provides the ability to inject artifical errors to | ||
specified notifier chain callbacks. It is useful to test the error handling of | ||
notifier call chain failures which is rarely executed. There are kernel | ||
modules that can be used to test the following notifiers. | ||
|
||
* CPU notifier | ||
* PM notifier | ||
* Memory hotplug notifier | ||
* powerpc pSeries reconfig notifier | ||
|
||
CPU notifier error injection module | ||
----------------------------------- | ||
This feature can be used to test the error handling of the CPU notifiers by | ||
injecting artifical errors to CPU notifier chain callbacks. | ||
|
||
If the notifier call chain should be failed with some events notified, write | ||
the error code to debugfs interface | ||
/sys/kernel/debug/notifier-error-inject/cpu/actions/<notifier event>/error | ||
|
||
Possible CPU notifier events to be failed are: | ||
|
||
* CPU_UP_PREPARE | ||
* CPU_UP_PREPARE_FROZEN | ||
* CPU_DOWN_PREPARE | ||
* CPU_DOWN_PREPARE_FROZEN | ||
|
||
Example1: Inject CPU offline error (-1 == -EPERM) | ||
|
||
# cd /sys/kernel/debug/notifier-error-inject/cpu | ||
# echo -1 > actions/CPU_DOWN_PREPARE/error | ||
# echo 0 > /sys/devices/system/cpu/cpu1/online | ||
bash: echo: write error: Operation not permitted | ||
|
||
Example2: inject CPU online error (-2 == -ENOENT) | ||
|
||
# echo -2 > actions/CPU_UP_PREPARE/error | ||
# echo 1 > /sys/devices/system/cpu/cpu1/online | ||
bash: echo: write error: No such file or directory | ||
|
||
PM notifier error injection module | ||
---------------------------------- | ||
This feature is controlled through debugfs interface | ||
/sys/kernel/debug/notifier-error-inject/pm/actions/<notifier event>/error | ||
|
||
Possible PM notifier events to be failed are: | ||
|
||
* PM_HIBERNATION_PREPARE | ||
* PM_SUSPEND_PREPARE | ||
* PM_RESTORE_PREPARE | ||
|
||
Example: Inject PM suspend error (-12 = -ENOMEM) | ||
|
||
# cd /sys/kernel/debug/notifier-error-inject/pm/ | ||
# echo -12 > actions/PM_SUSPEND_PREPARE/error | ||
# echo mem > /sys/power/state | ||
bash: echo: write error: Cannot allocate memory | ||
|
||
Memory hotplug notifier error injection module | ||
---------------------------------------------- | ||
This feature is controlled through debugfs interface | ||
/sys/kernel/debug/notifier-error-inject/memory/actions/<notifier event>/error | ||
|
||
Possible memory notifier events to be failed are: | ||
|
||
* MEM_GOING_ONLINE | ||
* MEM_GOING_OFFLINE | ||
|
||
Example: Inject memory hotplug offline error (-12 == -ENOMEM) | ||
|
||
# cd /sys/kernel/debug/notifier-error-inject/memory | ||
# echo -12 > actions/MEM_GOING_OFFLINE/error | ||
# echo offline > /sys/devices/system/memory/memoryXXX/state | ||
bash: echo: write error: Cannot allocate memory | ||
|
||
powerpc pSeries reconfig notifier error injection module | ||
-------------------------------------------------------- | ||
This feature is controlled through debugfs interface | ||
/sys/kernel/debug/notifier-error-inject/pSeries-reconfig/actions/<notifier event>/error | ||
|
||
Possible pSeries reconfig notifier events to be failed are: | ||
|
||
* PSERIES_RECONFIG_ADD | ||
* PSERIES_RECONFIG_REMOVE | ||
* PSERIES_DRCONF_MEM_ADD | ||
* PSERIES_DRCONF_MEM_REMOVE | ||
|
||
For more usage examples | ||
----------------------- | ||
There are tools/testing/selftests using the notifier error injection features | ||
for CPU and memory notifiers. | ||
|
||
* tools/testing/selftests/cpu-hotplug/on-off-test.sh | ||
* tools/testing/selftests/memory-hotplug/on-off-test.sh | ||
|
||
These scripts first do simple online and offline tests and then do fault | ||
injection tests if notifier error injection module is available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2750,6 +2750,7 @@ M: Jingoo Han <[email protected]> | |
L: [email protected] | ||
S: Maintained | ||
F: drivers/video/exynos/exynos_dp* | ||
F: include/video/exynos_dp* | ||
|
||
EXYNOS MIPI DISPLAY DRIVERS | ||
M: Inki Dae <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.