diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kconfig.debug | 38 | ||||
| -rw-r--r-- | lib/decompress_bunzip2.c | 1 | ||||
| -rw-r--r-- | lib/decompress_inflate.c | 1 | ||||
| -rw-r--r-- | lib/decompress_unlzma.c | 1 | ||||
| -rw-r--r-- | lib/swiotlb.c | 2 |
5 files changed, 42 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 9638d99644af..c6e854f215fa 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -186,6 +186,44 @@ config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE | |||
| 186 | default 0 if !BOOTPARAM_SOFTLOCKUP_PANIC | 186 | default 0 if !BOOTPARAM_SOFTLOCKUP_PANIC |
| 187 | default 1 if BOOTPARAM_SOFTLOCKUP_PANIC | 187 | default 1 if BOOTPARAM_SOFTLOCKUP_PANIC |
| 188 | 188 | ||
| 189 | config DETECT_HUNG_TASK | ||
| 190 | bool "Detect Hung Tasks" | ||
| 191 | depends on DEBUG_KERNEL | ||
| 192 | default DETECT_SOFTLOCKUP | ||
| 193 | help | ||
| 194 | Say Y here to enable the kernel to detect "hung tasks", | ||
| 195 | which are bugs that cause the task to be stuck in | ||
| 196 | uninterruptible "D" state indefinitiley. | ||
| 197 | |||
| 198 | When a hung task is detected, the kernel will print the | ||
| 199 | current stack trace (which you should report), but the | ||
| 200 | task will stay in uninterruptible state. If lockdep is | ||
| 201 | enabled then all held locks will also be reported. This | ||
| 202 | feature has negligible overhead. | ||
| 203 | |||
| 204 | config BOOTPARAM_HUNG_TASK_PANIC | ||
| 205 | bool "Panic (Reboot) On Hung Tasks" | ||
| 206 | depends on DETECT_HUNG_TASK | ||
| 207 | help | ||
| 208 | Say Y here to enable the kernel to panic on "hung tasks", | ||
| 209 | which are bugs that cause the kernel to leave a task stuck | ||
| 210 | in uninterruptible "D" state. | ||
| 211 | |||
| 212 | The panic can be used in combination with panic_timeout, | ||
| 213 | to cause the system to reboot automatically after a | ||
| 214 | hung task has been detected. This feature is useful for | ||
| 215 | high-availability systems that have uptime guarantees and | ||
| 216 | where a hung tasks must be resolved ASAP. | ||
| 217 | |||
| 218 | Say N if unsure. | ||
| 219 | |||
| 220 | config BOOTPARAM_HUNG_TASK_PANIC_VALUE | ||
| 221 | int | ||
| 222 | depends on DETECT_HUNG_TASK | ||
| 223 | range 0 1 | ||
| 224 | default 0 if !BOOTPARAM_HUNG_TASK_PANIC | ||
| 225 | default 1 if BOOTPARAM_HUNG_TASK_PANIC | ||
| 226 | |||
| 189 | config SCHED_DEBUG | 227 | config SCHED_DEBUG |
| 190 | bool "Collect scheduler debugging info" | 228 | bool "Collect scheduler debugging info" |
| 191 | depends on DEBUG_KERNEL && PROC_FS | 229 | depends on DEBUG_KERNEL && PROC_FS |
diff --git a/lib/decompress_bunzip2.c b/lib/decompress_bunzip2.c index 5d3ddb5fcfd9..708e2a86d87b 100644 --- a/lib/decompress_bunzip2.c +++ b/lib/decompress_bunzip2.c | |||
| @@ -50,6 +50,7 @@ | |||
| 50 | #endif /* !STATIC */ | 50 | #endif /* !STATIC */ |
| 51 | 51 | ||
| 52 | #include <linux/decompress/mm.h> | 52 | #include <linux/decompress/mm.h> |
| 53 | #include <linux/slab.h> | ||
| 53 | 54 | ||
| 54 | #ifndef INT_MAX | 55 | #ifndef INT_MAX |
| 55 | #define INT_MAX 0x7fffffff | 56 | #define INT_MAX 0x7fffffff |
diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c index 839a329b4fc4..e36b296fc9f8 100644 --- a/lib/decompress_inflate.c +++ b/lib/decompress_inflate.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #endif /* STATIC */ | 23 | #endif /* STATIC */ |
| 24 | 24 | ||
| 25 | #include <linux/decompress/mm.h> | 25 | #include <linux/decompress/mm.h> |
| 26 | #include <linux/slab.h> | ||
| 26 | 27 | ||
| 27 | #define INBUF_LEN (16*1024) | 28 | #define INBUF_LEN (16*1024) |
| 28 | 29 | ||
diff --git a/lib/decompress_unlzma.c b/lib/decompress_unlzma.c index 546f2f4c157e..32123a1340e6 100644 --- a/lib/decompress_unlzma.c +++ b/lib/decompress_unlzma.c | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | #endif /* STATIC */ | 34 | #endif /* STATIC */ |
| 35 | 35 | ||
| 36 | #include <linux/decompress/mm.h> | 36 | #include <linux/decompress/mm.h> |
| 37 | #include <linux/slab.h> | ||
| 37 | 38 | ||
| 38 | #define MIN(a, b) (((a) < (b)) ? (a) : (b)) | 39 | #define MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| 39 | 40 | ||
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 32e2bd3b1142..2b0b5a7d2ced 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c | |||
| @@ -549,7 +549,7 @@ swiotlb_alloc_coherent(struct device *hwdev, size_t size, | |||
| 549 | dma_addr_t dev_addr; | 549 | dma_addr_t dev_addr; |
| 550 | void *ret; | 550 | void *ret; |
| 551 | int order = get_order(size); | 551 | int order = get_order(size); |
| 552 | u64 dma_mask = DMA_32BIT_MASK; | 552 | u64 dma_mask = DMA_BIT_MASK(32); |
| 553 | 553 | ||
| 554 | if (hwdev && hwdev->coherent_dma_mask) | 554 | if (hwdev && hwdev->coherent_dma_mask) |
| 555 | dma_mask = hwdev->coherent_dma_mask; | 555 | dma_mask = hwdev->coherent_dma_mask; |
