* [PATCH v2 2/7] h8300: put bitsperlong.h in uapi
From: Nicolas Dichtel @ 2017-01-06 9:43 UTC (permalink / raw)
To: arnd
Cc: linux-mips, alsa-devel, linux-ia64, linux-doc, airlied,
linux-fbdev, dri-devel, linux-mtd, sparclinux, linux-arch,
linux-s390, linux-am33-list, linux-c6x-dev, linux-rdma,
linux-hexagon, linux-sh, coreteam, fcoe-devel, xen-devel,
linux-snps-arc, linux-media, uclinux-h8-devel, linux-xtensa,
linux-kbuild, adi-buildroot-devel, linux-raid, linux-m68k,
openrisc, Nicolas Dichtel
In-Reply-To: <1483695839-18660-1-git-send-email-nicolas.dichtel@6wind.com>
This header file is exported, thus move it to uapi.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
arch/h8300/include/asm/bitsperlong.h | 10 +---------
arch/h8300/include/uapi/asm/bitsperlong.h | 14 ++++++++++++++
2 files changed, 15 insertions(+), 9 deletions(-)
create mode 100644 arch/h8300/include/uapi/asm/bitsperlong.h
diff --git a/arch/h8300/include/asm/bitsperlong.h b/arch/h8300/include/asm/bitsperlong.h
index e140e46729ac..c0a8e2ee531e 100644
--- a/arch/h8300/include/asm/bitsperlong.h
+++ b/arch/h8300/include/asm/bitsperlong.h
@@ -1,14 +1,6 @@
#ifndef __ASM_H8300_BITS_PER_LONG
#define __ASM_H8300_BITS_PER_LONG
-#include <asm-generic/bitsperlong.h>
-
-#if !defined(__ASSEMBLY__)
-/* h8300-unknown-linux required long */
-#define __kernel_size_t __kernel_size_t
-typedef unsigned long __kernel_size_t;
-typedef long __kernel_ssize_t;
-typedef long __kernel_ptrdiff_t;
-#endif
+#include <uapi/asm/bitsperlong.h>
#endif /* __ASM_H8300_BITS_PER_LONG */
diff --git a/arch/h8300/include/uapi/asm/bitsperlong.h b/arch/h8300/include/uapi/asm/bitsperlong.h
new file mode 100644
index 000000000000..e56cf72369b6
--- /dev/null
+++ b/arch/h8300/include/uapi/asm/bitsperlong.h
@@ -0,0 +1,14 @@
+#ifndef _UAPI_ASM_H8300_BITS_PER_LONG
+#define _UAPI_ASM_H8300_BITS_PER_LONG
+
+#include <asm-generic/bitsperlong.h>
+
+#if !defined(__ASSEMBLY__)
+/* h8300-unknown-linux required long */
+#define __kernel_size_t __kernel_size_t
+typedef unsigned long __kernel_size_t;
+typedef long __kernel_ssize_t;
+typedef long __kernel_ptrdiff_t;
+#endif
+
+#endif /* _UAPI_ASM_H8300_BITS_PER_LONG */
--
2.8.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related
* [PATCH v2 3/7] nios2: put setup.h in uapi
From: Nicolas Dichtel @ 2017-01-06 9:43 UTC (permalink / raw)
To: arnd
Cc: linux-mips, alsa-devel, linux-ia64, linux-doc, airlied,
linux-fbdev, dri-devel, linux-mtd, sparclinux, linux-arch,
linux-s390, linux-am33-list, linux-c6x-dev, linux-rdma,
linux-hexagon, linux-sh, coreteam, fcoe-devel, xen-devel,
linux-snps-arc, linux-media, uclinux-h8-devel, linux-xtensa,
linux-kbuild, adi-buildroot-devel, linux-raid, linux-m68k,
openrisc, Nicolas Dichtel
In-Reply-To: <1483695839-18660-1-git-send-email-nicolas.dichtel@6wind.com>
This header file is exported, thus move it to uapi.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
arch/nios2/include/asm/setup.h | 2 +-
arch/nios2/include/uapi/asm/setup.h | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
create mode 100644 arch/nios2/include/uapi/asm/setup.h
diff --git a/arch/nios2/include/asm/setup.h b/arch/nios2/include/asm/setup.h
index dcbf8cf1a344..d49e9e91bf55 100644
--- a/arch/nios2/include/asm/setup.h
+++ b/arch/nios2/include/asm/setup.h
@@ -19,7 +19,7 @@
#ifndef _ASM_NIOS2_SETUP_H
#define _ASM_NIOS2_SETUP_H
-#include <asm-generic/setup.h>
+#include <uapi/asm/setup.h>
#ifndef __ASSEMBLY__
#ifdef __KERNEL__
diff --git a/arch/nios2/include/uapi/asm/setup.h b/arch/nios2/include/uapi/asm/setup.h
new file mode 100644
index 000000000000..8d8285997ba8
--- /dev/null
+++ b/arch/nios2/include/uapi/asm/setup.h
@@ -0,0 +1,6 @@
+#ifndef _UAPI_ASM_NIOS2_SETUP_H
+#define _UAPI_ASM_NIOS2_SETUP_H
+
+#include <asm-generic/setup.h>
+
+#endif /* _UAPI_ASM_NIOS2_SETUP_H */
--
2.8.1
^ permalink raw reply related
* [PATCH v2 4/7] x86: put msr-index.h in uapi
From: Nicolas Dichtel @ 2017-01-06 9:43 UTC (permalink / raw)
To: arnd
Cc: mmarek, linux-kbuild, linux-doc, linux-kernel, linux-alpha,
linux-snps-arc, linux-arm-kernel, adi-buildroot-devel,
linux-c6x-dev, linux-cris-kernel, uclinux-h8-devel, linux-hexagon,
linux-ia64, linux-m68k, linux-metag, linux-mips, linux-am33-list,
nios2-dev, openrisc, linux-parisc, linuxppc-dev, linux-s390,
linux-sh, sparclinux, linux-xtensa, linux-arch
In-Reply-To: <1483695839-18660-1-git-send-email-nicolas.dichtel@6wind.com>
This header file is exported, thus move it to uapi.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
arch/x86/include/asm/msr-index.h | 694 +--------------------------------
arch/x86/include/uapi/asm/msr-index.h | 698 ++++++++++++++++++++++++++++++++++
2 files changed, 699 insertions(+), 693 deletions(-)
create mode 100644 arch/x86/include/uapi/asm/msr-index.h
diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h
index 710273c617b8..1baa0628da74 100644
--- a/arch/x86/include/asm/msr-index.h
+++ b/arch/x86/include/asm/msr-index.h
@@ -1,698 +1,6 @@
#ifndef _ASM_X86_MSR_INDEX_H
#define _ASM_X86_MSR_INDEX_H
-/*
- * CPU model specific register (MSR) numbers.
- *
- * Do not add new entries to this file unless the definitions are shared
- * between multiple compilation units.
- */
-
-/* x86-64 specific MSRs */
-#define MSR_EFER 0xc0000080 /* extended feature register */
-#define MSR_STAR 0xc0000081 /* legacy mode SYSCALL target */
-#define MSR_LSTAR 0xc0000082 /* long mode SYSCALL target */
-#define MSR_CSTAR 0xc0000083 /* compat mode SYSCALL target */
-#define MSR_SYSCALL_MASK 0xc0000084 /* EFLAGS mask for syscall */
-#define MSR_FS_BASE 0xc0000100 /* 64bit FS base */
-#define MSR_GS_BASE 0xc0000101 /* 64bit GS base */
-#define MSR_KERNEL_GS_BASE 0xc0000102 /* SwapGS GS shadow */
-#define MSR_TSC_AUX 0xc0000103 /* Auxiliary TSC */
-
-/* EFER bits: */
-#define _EFER_SCE 0 /* SYSCALL/SYSRET */
-#define _EFER_LME 8 /* Long mode enable */
-#define _EFER_LMA 10 /* Long mode active (read-only) */
-#define _EFER_NX 11 /* No execute enable */
-#define _EFER_SVME 12 /* Enable virtualization */
-#define _EFER_LMSLE 13 /* Long Mode Segment Limit Enable */
-#define _EFER_FFXSR 14 /* Enable Fast FXSAVE/FXRSTOR */
-
-#define EFER_SCE (1<<_EFER_SCE)
-#define EFER_LME (1<<_EFER_LME)
-#define EFER_LMA (1<<_EFER_LMA)
-#define EFER_NX (1<<_EFER_NX)
-#define EFER_SVME (1<<_EFER_SVME)
-#define EFER_LMSLE (1<<_EFER_LMSLE)
-#define EFER_FFXSR (1<<_EFER_FFXSR)
-
-/* Intel MSRs. Some also available on other CPUs */
-
-#define MSR_PPIN_CTL 0x0000004e
-#define MSR_PPIN 0x0000004f
-
-#define MSR_IA32_PERFCTR0 0x000000c1
-#define MSR_IA32_PERFCTR1 0x000000c2
-#define MSR_FSB_FREQ 0x000000cd
-#define MSR_PLATFORM_INFO 0x000000ce
-
-#define MSR_NHM_SNB_PKG_CST_CFG_CTL 0x000000e2
-#define NHM_C3_AUTO_DEMOTE (1UL << 25)
-#define NHM_C1_AUTO_DEMOTE (1UL << 26)
-#define ATM_LNC_C6_AUTO_DEMOTE (1UL << 25)
-#define SNB_C1_AUTO_UNDEMOTE (1UL << 27)
-#define SNB_C3_AUTO_UNDEMOTE (1UL << 28)
-
-#define MSR_MTRRcap 0x000000fe
-#define MSR_IA32_BBL_CR_CTL 0x00000119
-#define MSR_IA32_BBL_CR_CTL3 0x0000011e
-
-#define MSR_IA32_SYSENTER_CS 0x00000174
-#define MSR_IA32_SYSENTER_ESP 0x00000175
-#define MSR_IA32_SYSENTER_EIP 0x00000176
-
-#define MSR_IA32_MCG_CAP 0x00000179
-#define MSR_IA32_MCG_STATUS 0x0000017a
-#define MSR_IA32_MCG_CTL 0x0000017b
-#define MSR_IA32_MCG_EXT_CTL 0x000004d0
-
-#define MSR_OFFCORE_RSP_0 0x000001a6
-#define MSR_OFFCORE_RSP_1 0x000001a7
-#define MSR_TURBO_RATIO_LIMIT 0x000001ad
-#define MSR_TURBO_RATIO_LIMIT1 0x000001ae
-#define MSR_TURBO_RATIO_LIMIT2 0x000001af
-
-#define MSR_LBR_SELECT 0x000001c8
-#define MSR_LBR_TOS 0x000001c9
-#define MSR_LBR_NHM_FROM 0x00000680
-#define MSR_LBR_NHM_TO 0x000006c0
-#define MSR_LBR_CORE_FROM 0x00000040
-#define MSR_LBR_CORE_TO 0x00000060
-
-#define MSR_LBR_INFO_0 0x00000dc0 /* ... 0xddf for _31 */
-#define LBR_INFO_MISPRED BIT_ULL(63)
-#define LBR_INFO_IN_TX BIT_ULL(62)
-#define LBR_INFO_ABORT BIT_ULL(61)
-#define LBR_INFO_CYCLES 0xffff
-
-#define MSR_IA32_PEBS_ENABLE 0x000003f1
-#define MSR_IA32_DS_AREA 0x00000600
-#define MSR_IA32_PERF_CAPABILITIES 0x00000345
-#define MSR_PEBS_LD_LAT_THRESHOLD 0x000003f6
-
-#define MSR_IA32_RTIT_CTL 0x00000570
-#define MSR_IA32_RTIT_STATUS 0x00000571
-#define MSR_IA32_RTIT_ADDR0_A 0x00000580
-#define MSR_IA32_RTIT_ADDR0_B 0x00000581
-#define MSR_IA32_RTIT_ADDR1_A 0x00000582
-#define MSR_IA32_RTIT_ADDR1_B 0x00000583
-#define MSR_IA32_RTIT_ADDR2_A 0x00000584
-#define MSR_IA32_RTIT_ADDR2_B 0x00000585
-#define MSR_IA32_RTIT_ADDR3_A 0x00000586
-#define MSR_IA32_RTIT_ADDR3_B 0x00000587
-#define MSR_IA32_RTIT_CR3_MATCH 0x00000572
-#define MSR_IA32_RTIT_OUTPUT_BASE 0x00000560
-#define MSR_IA32_RTIT_OUTPUT_MASK 0x00000561
-
-#define MSR_MTRRfix64K_00000 0x00000250
-#define MSR_MTRRfix16K_80000 0x00000258
-#define MSR_MTRRfix16K_A0000 0x00000259
-#define MSR_MTRRfix4K_C0000 0x00000268
-#define MSR_MTRRfix4K_C8000 0x00000269
-#define MSR_MTRRfix4K_D0000 0x0000026a
-#define MSR_MTRRfix4K_D8000 0x0000026b
-#define MSR_MTRRfix4K_E0000 0x0000026c
-#define MSR_MTRRfix4K_E8000 0x0000026d
-#define MSR_MTRRfix4K_F0000 0x0000026e
-#define MSR_MTRRfix4K_F8000 0x0000026f
-#define MSR_MTRRdefType 0x000002ff
-
-#define MSR_IA32_CR_PAT 0x00000277
-
-#define MSR_IA32_DEBUGCTLMSR 0x000001d9
-#define MSR_IA32_LASTBRANCHFROMIP 0x000001db
-#define MSR_IA32_LASTBRANCHTOIP 0x000001dc
-#define MSR_IA32_LASTINTFROMIP 0x000001dd
-#define MSR_IA32_LASTINTTOIP 0x000001de
-
-/* DEBUGCTLMSR bits (others vary by model): */
-#define DEBUGCTLMSR_LBR (1UL << 0) /* last branch recording */
-#define DEBUGCTLMSR_BTF (1UL << 1) /* single-step on branches */
-#define DEBUGCTLMSR_TR (1UL << 6)
-#define DEBUGCTLMSR_BTS (1UL << 7)
-#define DEBUGCTLMSR_BTINT (1UL << 8)
-#define DEBUGCTLMSR_BTS_OFF_OS (1UL << 9)
-#define DEBUGCTLMSR_BTS_OFF_USR (1UL << 10)
-#define DEBUGCTLMSR_FREEZE_LBRS_ON_PMI (1UL << 11)
-
-#define MSR_PEBS_FRONTEND 0x000003f7
-
-#define MSR_IA32_POWER_CTL 0x000001fc
-
-#define MSR_IA32_MC0_CTL 0x00000400
-#define MSR_IA32_MC0_STATUS 0x00000401
-#define MSR_IA32_MC0_ADDR 0x00000402
-#define MSR_IA32_MC0_MISC 0x00000403
-
-/* C-state Residency Counters */
-#define MSR_PKG_C3_RESIDENCY 0x000003f8
-#define MSR_PKG_C6_RESIDENCY 0x000003f9
-#define MSR_PKG_C7_RESIDENCY 0x000003fa
-#define MSR_CORE_C3_RESIDENCY 0x000003fc
-#define MSR_CORE_C6_RESIDENCY 0x000003fd
-#define MSR_CORE_C7_RESIDENCY 0x000003fe
-#define MSR_KNL_CORE_C6_RESIDENCY 0x000003ff
-#define MSR_PKG_C2_RESIDENCY 0x0000060d
-#define MSR_PKG_C8_RESIDENCY 0x00000630
-#define MSR_PKG_C9_RESIDENCY 0x00000631
-#define MSR_PKG_C10_RESIDENCY 0x00000632
-
-/* Interrupt Response Limit */
-#define MSR_PKGC3_IRTL 0x0000060a
-#define MSR_PKGC6_IRTL 0x0000060b
-#define MSR_PKGC7_IRTL 0x0000060c
-#define MSR_PKGC8_IRTL 0x00000633
-#define MSR_PKGC9_IRTL 0x00000634
-#define MSR_PKGC10_IRTL 0x00000635
-
-/* Run Time Average Power Limiting (RAPL) Interface */
-
-#define MSR_RAPL_POWER_UNIT 0x00000606
-
-#define MSR_PKG_POWER_LIMIT 0x00000610
-#define MSR_PKG_ENERGY_STATUS 0x00000611
-#define MSR_PKG_PERF_STATUS 0x00000613
-#define MSR_PKG_POWER_INFO 0x00000614
-
-#define MSR_DRAM_POWER_LIMIT 0x00000618
-#define MSR_DRAM_ENERGY_STATUS 0x00000619
-#define MSR_DRAM_PERF_STATUS 0x0000061b
-#define MSR_DRAM_POWER_INFO 0x0000061c
-
-#define MSR_PP0_POWER_LIMIT 0x00000638
-#define MSR_PP0_ENERGY_STATUS 0x00000639
-#define MSR_PP0_POLICY 0x0000063a
-#define MSR_PP0_PERF_STATUS 0x0000063b
-
-#define MSR_PP1_POWER_LIMIT 0x00000640
-#define MSR_PP1_ENERGY_STATUS 0x00000641
-#define MSR_PP1_POLICY 0x00000642
-
-/* Config TDP MSRs */
-#define MSR_CONFIG_TDP_NOMINAL 0x00000648
-#define MSR_CONFIG_TDP_LEVEL_1 0x00000649
-#define MSR_CONFIG_TDP_LEVEL_2 0x0000064A
-#define MSR_CONFIG_TDP_CONTROL 0x0000064B
-#define MSR_TURBO_ACTIVATION_RATIO 0x0000064C
-
-#define MSR_PLATFORM_ENERGY_STATUS 0x0000064D
-
-#define MSR_PKG_WEIGHTED_CORE_C0_RES 0x00000658
-#define MSR_PKG_ANY_CORE_C0_RES 0x00000659
-#define MSR_PKG_ANY_GFXE_C0_RES 0x0000065A
-#define MSR_PKG_BOTH_CORE_GFXE_C0_RES 0x0000065B
-
-#define MSR_CORE_C1_RES 0x00000660
-
-#define MSR_CC6_DEMOTION_POLICY_CONFIG 0x00000668
-#define MSR_MC6_DEMOTION_POLICY_CONFIG 0x00000669
-
-#define MSR_CORE_PERF_LIMIT_REASONS 0x00000690
-#define MSR_GFX_PERF_LIMIT_REASONS 0x000006B0
-#define MSR_RING_PERF_LIMIT_REASONS 0x000006B1
-
-/* Hardware P state interface */
-#define MSR_PPERF 0x0000064e
-#define MSR_PERF_LIMIT_REASONS 0x0000064f
-#define MSR_PM_ENABLE 0x00000770
-#define MSR_HWP_CAPABILITIES 0x00000771
-#define MSR_HWP_REQUEST_PKG 0x00000772
-#define MSR_HWP_INTERRUPT 0x00000773
-#define MSR_HWP_REQUEST 0x00000774
-#define MSR_HWP_STATUS 0x00000777
-
-/* CPUID.6.EAX */
-#define HWP_BASE_BIT (1<<7)
-#define HWP_NOTIFICATIONS_BIT (1<<8)
-#define HWP_ACTIVITY_WINDOW_BIT (1<<9)
-#define HWP_ENERGY_PERF_PREFERENCE_BIT (1<<10)
-#define HWP_PACKAGE_LEVEL_REQUEST_BIT (1<<11)
-
-/* IA32_HWP_CAPABILITIES */
-#define HWP_HIGHEST_PERF(x) (((x) >> 0) & 0xff)
-#define HWP_GUARANTEED_PERF(x) (((x) >> 8) & 0xff)
-#define HWP_MOSTEFFICIENT_PERF(x) (((x) >> 16) & 0xff)
-#define HWP_LOWEST_PERF(x) (((x) >> 24) & 0xff)
-
-/* IA32_HWP_REQUEST */
-#define HWP_MIN_PERF(x) (x & 0xff)
-#define HWP_MAX_PERF(x) ((x & 0xff) << 8)
-#define HWP_DESIRED_PERF(x) ((x & 0xff) << 16)
-#define HWP_ENERGY_PERF_PREFERENCE(x) ((x & 0xff) << 24)
-#define HWP_ACTIVITY_WINDOW(x) ((x & 0xff3) << 32)
-#define HWP_PACKAGE_CONTROL(x) ((x & 0x1) << 42)
-
-/* IA32_HWP_STATUS */
-#define HWP_GUARANTEED_CHANGE(x) (x & 0x1)
-#define HWP_EXCURSION_TO_MINIMUM(x) (x & 0x4)
-
-/* IA32_HWP_INTERRUPT */
-#define HWP_CHANGE_TO_GUARANTEED_INT(x) (x & 0x1)
-#define HWP_EXCURSION_TO_MINIMUM_INT(x) (x & 0x2)
-
-#define MSR_AMD64_MC0_MASK 0xc0010044
-
-#define MSR_IA32_MCx_CTL(x) (MSR_IA32_MC0_CTL + 4*(x))
-#define MSR_IA32_MCx_STATUS(x) (MSR_IA32_MC0_STATUS + 4*(x))
-#define MSR_IA32_MCx_ADDR(x) (MSR_IA32_MC0_ADDR + 4*(x))
-#define MSR_IA32_MCx_MISC(x) (MSR_IA32_MC0_MISC + 4*(x))
-
-#define MSR_AMD64_MCx_MASK(x) (MSR_AMD64_MC0_MASK + (x))
-
-/* These are consecutive and not in the normal 4er MCE bank block */
-#define MSR_IA32_MC0_CTL2 0x00000280
-#define MSR_IA32_MCx_CTL2(x) (MSR_IA32_MC0_CTL2 + (x))
-
-#define MSR_P6_PERFCTR0 0x000000c1
-#define MSR_P6_PERFCTR1 0x000000c2
-#define MSR_P6_EVNTSEL0 0x00000186
-#define MSR_P6_EVNTSEL1 0x00000187
-
-#define MSR_KNC_PERFCTR0 0x00000020
-#define MSR_KNC_PERFCTR1 0x00000021
-#define MSR_KNC_EVNTSEL0 0x00000028
-#define MSR_KNC_EVNTSEL1 0x00000029
-
-/* Alternative perfctr range with full access. */
-#define MSR_IA32_PMC0 0x000004c1
-
-/* AMD64 MSRs. Not complete. See the architecture manual for a more
- complete list. */
-
-#define MSR_AMD64_PATCH_LEVEL 0x0000008b
-#define MSR_AMD64_TSC_RATIO 0xc0000104
-#define MSR_AMD64_NB_CFG 0xc001001f
-#define MSR_AMD64_PATCH_LOADER 0xc0010020
-#define MSR_AMD64_OSVW_ID_LENGTH 0xc0010140
-#define MSR_AMD64_OSVW_STATUS 0xc0010141
-#define MSR_AMD64_LS_CFG 0xc0011020
-#define MSR_AMD64_DC_CFG 0xc0011022
-#define MSR_AMD64_BU_CFG2 0xc001102a
-#define MSR_AMD64_IBSFETCHCTL 0xc0011030
-#define MSR_AMD64_IBSFETCHLINAD 0xc0011031
-#define MSR_AMD64_IBSFETCHPHYSAD 0xc0011032
-#define MSR_AMD64_IBSFETCH_REG_COUNT 3
-#define MSR_AMD64_IBSFETCH_REG_MASK ((1UL<<MSR_AMD64_IBSFETCH_REG_COUNT)-1)
-#define MSR_AMD64_IBSOPCTL 0xc0011033
-#define MSR_AMD64_IBSOPRIP 0xc0011034
-#define MSR_AMD64_IBSOPDATA 0xc0011035
-#define MSR_AMD64_IBSOPDATA2 0xc0011036
-#define MSR_AMD64_IBSOPDATA3 0xc0011037
-#define MSR_AMD64_IBSDCLINAD 0xc0011038
-#define MSR_AMD64_IBSDCPHYSAD 0xc0011039
-#define MSR_AMD64_IBSOP_REG_COUNT 7
-#define MSR_AMD64_IBSOP_REG_MASK ((1UL<<MSR_AMD64_IBSOP_REG_COUNT)-1)
-#define MSR_AMD64_IBSCTL 0xc001103a
-#define MSR_AMD64_IBSBRTARGET 0xc001103b
-#define MSR_AMD64_IBSOPDATA4 0xc001103d
-#define MSR_AMD64_IBS_REG_COUNT_MAX 8 /* includes MSR_AMD64_IBSBRTARGET */
-
-/* Fam 17h MSRs */
-#define MSR_F17H_IRPERF 0xc00000e9
-
-/* Fam 16h MSRs */
-#define MSR_F16H_L2I_PERF_CTL 0xc0010230
-#define MSR_F16H_L2I_PERF_CTR 0xc0010231
-#define MSR_F16H_DR1_ADDR_MASK 0xc0011019
-#define MSR_F16H_DR2_ADDR_MASK 0xc001101a
-#define MSR_F16H_DR3_ADDR_MASK 0xc001101b
-#define MSR_F16H_DR0_ADDR_MASK 0xc0011027
-
-/* Fam 15h MSRs */
-#define MSR_F15H_PERF_CTL 0xc0010200
-#define MSR_F15H_PERF_CTR 0xc0010201
-#define MSR_F15H_NB_PERF_CTL 0xc0010240
-#define MSR_F15H_NB_PERF_CTR 0xc0010241
-#define MSR_F15H_PTSC 0xc0010280
-#define MSR_F15H_IC_CFG 0xc0011021
-
-/* Fam 10h MSRs */
-#define MSR_FAM10H_MMIO_CONF_BASE 0xc0010058
-#define FAM10H_MMIO_CONF_ENABLE (1<<0)
-#define FAM10H_MMIO_CONF_BUSRANGE_MASK 0xf
-#define FAM10H_MMIO_CONF_BUSRANGE_SHIFT 2
-#define FAM10H_MMIO_CONF_BASE_MASK 0xfffffffULL
-#define FAM10H_MMIO_CONF_BASE_SHIFT 20
-#define MSR_FAM10H_NODE_ID 0xc001100c
-
-/* K8 MSRs */
-#define MSR_K8_TOP_MEM1 0xc001001a
-#define MSR_K8_TOP_MEM2 0xc001001d
-#define MSR_K8_SYSCFG 0xc0010010
-#define MSR_K8_INT_PENDING_MSG 0xc0010055
-/* C1E active bits in int pending message */
-#define K8_INTP_C1E_ACTIVE_MASK 0x18000000
-#define MSR_K8_TSEG_ADDR 0xc0010112
-#define MSR_K8_TSEG_MASK 0xc0010113
-#define K8_MTRRFIXRANGE_DRAM_ENABLE 0x00040000 /* MtrrFixDramEn bit */
-#define K8_MTRRFIXRANGE_DRAM_MODIFY 0x00080000 /* MtrrFixDramModEn bit */
-#define K8_MTRR_RDMEM_WRMEM_MASK 0x18181818 /* Mask: RdMem|WrMem */
-
-/* K7 MSRs */
-#define MSR_K7_EVNTSEL0 0xc0010000
-#define MSR_K7_PERFCTR0 0xc0010004
-#define MSR_K7_EVNTSEL1 0xc0010001
-#define MSR_K7_PERFCTR1 0xc0010005
-#define MSR_K7_EVNTSEL2 0xc0010002
-#define MSR_K7_PERFCTR2 0xc0010006
-#define MSR_K7_EVNTSEL3 0xc0010003
-#define MSR_K7_PERFCTR3 0xc0010007
-#define MSR_K7_CLK_CTL 0xc001001b
-#define MSR_K7_HWCR 0xc0010015
-#define MSR_K7_FID_VID_CTL 0xc0010041
-#define MSR_K7_FID_VID_STATUS 0xc0010042
-
-/* K6 MSRs */
-#define MSR_K6_WHCR 0xc0000082
-#define MSR_K6_UWCCR 0xc0000085
-#define MSR_K6_EPMR 0xc0000086
-#define MSR_K6_PSOR 0xc0000087
-#define MSR_K6_PFIR 0xc0000088
-
-/* Centaur-Hauls/IDT defined MSRs. */
-#define MSR_IDT_FCR1 0x00000107
-#define MSR_IDT_FCR2 0x00000108
-#define MSR_IDT_FCR3 0x00000109
-#define MSR_IDT_FCR4 0x0000010a
-
-#define MSR_IDT_MCR0 0x00000110
-#define MSR_IDT_MCR1 0x00000111
-#define MSR_IDT_MCR2 0x00000112
-#define MSR_IDT_MCR3 0x00000113
-#define MSR_IDT_MCR4 0x00000114
-#define MSR_IDT_MCR5 0x00000115
-#define MSR_IDT_MCR6 0x00000116
-#define MSR_IDT_MCR7 0x00000117
-#define MSR_IDT_MCR_CTRL 0x00000120
-
-/* VIA Cyrix defined MSRs*/
-#define MSR_VIA_FCR 0x00001107
-#define MSR_VIA_LONGHAUL 0x0000110a
-#define MSR_VIA_RNG 0x0000110b
-#define MSR_VIA_BCR2 0x00001147
-
-/* Transmeta defined MSRs */
-#define MSR_TMTA_LONGRUN_CTRL 0x80868010
-#define MSR_TMTA_LONGRUN_FLAGS 0x80868011
-#define MSR_TMTA_LRTI_READOUT 0x80868018
-#define MSR_TMTA_LRTI_VOLT_MHZ 0x8086801a
-
-/* Intel defined MSRs. */
-#define MSR_IA32_P5_MC_ADDR 0x00000000
-#define MSR_IA32_P5_MC_TYPE 0x00000001
-#define MSR_IA32_TSC 0x00000010
-#define MSR_IA32_PLATFORM_ID 0x00000017
-#define MSR_IA32_EBL_CR_POWERON 0x0000002a
-#define MSR_EBC_FREQUENCY_ID 0x0000002c
-#define MSR_SMI_COUNT 0x00000034
-#define MSR_IA32_FEATURE_CONTROL 0x0000003a
-#define MSR_IA32_TSC_ADJUST 0x0000003b
-#define MSR_IA32_BNDCFGS 0x00000d90
-
-#define MSR_IA32_XSS 0x00000da0
-
-#define FEATURE_CONTROL_LOCKED (1<<0)
-#define FEATURE_CONTROL_VMXON_ENABLED_INSIDE_SMX (1<<1)
-#define FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX (1<<2)
-#define FEATURE_CONTROL_LMCE (1<<20)
-
-#define MSR_IA32_APICBASE 0x0000001b
-#define MSR_IA32_APICBASE_BSP (1<<8)
-#define MSR_IA32_APICBASE_ENABLE (1<<11)
-#define MSR_IA32_APICBASE_BASE (0xfffff<<12)
-
-#define MSR_IA32_TSCDEADLINE 0x000006e0
-
-#define MSR_IA32_UCODE_WRITE 0x00000079
-#define MSR_IA32_UCODE_REV 0x0000008b
-
-#define MSR_IA32_SMM_MONITOR_CTL 0x0000009b
-#define MSR_IA32_SMBASE 0x0000009e
-
-#define MSR_IA32_PERF_STATUS 0x00000198
-#define MSR_IA32_PERF_CTL 0x00000199
-#define INTEL_PERF_CTL_MASK 0xffff
-#define MSR_AMD_PSTATE_DEF_BASE 0xc0010064
-#define MSR_AMD_PERF_STATUS 0xc0010063
-#define MSR_AMD_PERF_CTL 0xc0010062
-
-#define MSR_IA32_MPERF 0x000000e7
-#define MSR_IA32_APERF 0x000000e8
-
-#define MSR_IA32_THERM_CONTROL 0x0000019a
-#define MSR_IA32_THERM_INTERRUPT 0x0000019b
-
-#define THERM_INT_HIGH_ENABLE (1 << 0)
-#define THERM_INT_LOW_ENABLE (1 << 1)
-#define THERM_INT_PLN_ENABLE (1 << 24)
-
-#define MSR_IA32_THERM_STATUS 0x0000019c
-
-#define THERM_STATUS_PROCHOT (1 << 0)
-#define THERM_STATUS_POWER_LIMIT (1 << 10)
-
-#define MSR_THERM2_CTL 0x0000019d
-
-#define MSR_THERM2_CTL_TM_SELECT (1ULL << 16)
-
-#define MSR_IA32_MISC_ENABLE 0x000001a0
-
-#define MSR_IA32_TEMPERATURE_TARGET 0x000001a2
-
-#define MSR_MISC_PWR_MGMT 0x000001aa
-
-#define MSR_IA32_ENERGY_PERF_BIAS 0x000001b0
-#define ENERGY_PERF_BIAS_PERFORMANCE 0
-#define ENERGY_PERF_BIAS_NORMAL 6
-#define ENERGY_PERF_BIAS_POWERSAVE 15
-
-#define MSR_IA32_PACKAGE_THERM_STATUS 0x000001b1
-
-#define PACKAGE_THERM_STATUS_PROCHOT (1 << 0)
-#define PACKAGE_THERM_STATUS_POWER_LIMIT (1 << 10)
-
-#define MSR_IA32_PACKAGE_THERM_INTERRUPT 0x000001b2
-
-#define PACKAGE_THERM_INT_HIGH_ENABLE (1 << 0)
-#define PACKAGE_THERM_INT_LOW_ENABLE (1 << 1)
-#define PACKAGE_THERM_INT_PLN_ENABLE (1 << 24)
-
-/* Thermal Thresholds Support */
-#define THERM_INT_THRESHOLD0_ENABLE (1 << 15)
-#define THERM_SHIFT_THRESHOLD0 8
-#define THERM_MASK_THRESHOLD0 (0x7f << THERM_SHIFT_THRESHOLD0)
-#define THERM_INT_THRESHOLD1_ENABLE (1 << 23)
-#define THERM_SHIFT_THRESHOLD1 16
-#define THERM_MASK_THRESHOLD1 (0x7f << THERM_SHIFT_THRESHOLD1)
-#define THERM_STATUS_THRESHOLD0 (1 << 6)
-#define THERM_LOG_THRESHOLD0 (1 << 7)
-#define THERM_STATUS_THRESHOLD1 (1 << 8)
-#define THERM_LOG_THRESHOLD1 (1 << 9)
-
-/* MISC_ENABLE bits: architectural */
-#define MSR_IA32_MISC_ENABLE_FAST_STRING_BIT 0
-#define MSR_IA32_MISC_ENABLE_FAST_STRING (1ULL << MSR_IA32_MISC_ENABLE_FAST_STRING_BIT)
-#define MSR_IA32_MISC_ENABLE_TCC_BIT 1
-#define MSR_IA32_MISC_ENABLE_TCC (1ULL << MSR_IA32_MISC_ENABLE_TCC_BIT)
-#define MSR_IA32_MISC_ENABLE_EMON_BIT 7
-#define MSR_IA32_MISC_ENABLE_EMON (1ULL << MSR_IA32_MISC_ENABLE_EMON_BIT)
-#define MSR_IA32_MISC_ENABLE_BTS_UNAVAIL_BIT 11
-#define MSR_IA32_MISC_ENABLE_BTS_UNAVAIL (1ULL << MSR_IA32_MISC_ENABLE_BTS_UNAVAIL_BIT)
-#define MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL_BIT 12
-#define MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL (1ULL << MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL_BIT)
-#define MSR_IA32_MISC_ENABLE_ENHANCED_SPEEDSTEP_BIT 16
-#define MSR_IA32_MISC_ENABLE_ENHANCED_SPEEDSTEP (1ULL << MSR_IA32_MISC_ENABLE_ENHANCED_SPEEDSTEP_BIT)
-#define MSR_IA32_MISC_ENABLE_MWAIT_BIT 18
-#define MSR_IA32_MISC_ENABLE_MWAIT (1ULL << MSR_IA32_MISC_ENABLE_MWAIT_BIT)
-#define MSR_IA32_MISC_ENABLE_LIMIT_CPUID_BIT 22
-#define MSR_IA32_MISC_ENABLE_LIMIT_CPUID (1ULL << MSR_IA32_MISC_ENABLE_LIMIT_CPUID_BIT)
-#define MSR_IA32_MISC_ENABLE_XTPR_DISABLE_BIT 23
-#define MSR_IA32_MISC_ENABLE_XTPR_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_XTPR_DISABLE_BIT)
-#define MSR_IA32_MISC_ENABLE_XD_DISABLE_BIT 34
-#define MSR_IA32_MISC_ENABLE_XD_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_XD_DISABLE_BIT)
-
-/* MISC_ENABLE bits: model-specific, meaning may vary from core to core */
-#define MSR_IA32_MISC_ENABLE_X87_COMPAT_BIT 2
-#define MSR_IA32_MISC_ENABLE_X87_COMPAT (1ULL << MSR_IA32_MISC_ENABLE_X87_COMPAT_BIT)
-#define MSR_IA32_MISC_ENABLE_TM1_BIT 3
-#define MSR_IA32_MISC_ENABLE_TM1 (1ULL << MSR_IA32_MISC_ENABLE_TM1_BIT)
-#define MSR_IA32_MISC_ENABLE_SPLIT_LOCK_DISABLE_BIT 4
-#define MSR_IA32_MISC_ENABLE_SPLIT_LOCK_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_SPLIT_LOCK_DISABLE_BIT)
-#define MSR_IA32_MISC_ENABLE_L3CACHE_DISABLE_BIT 6
-#define MSR_IA32_MISC_ENABLE_L3CACHE_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_L3CACHE_DISABLE_BIT)
-#define MSR_IA32_MISC_ENABLE_SUPPRESS_LOCK_BIT 8
-#define MSR_IA32_MISC_ENABLE_SUPPRESS_LOCK (1ULL << MSR_IA32_MISC_ENABLE_SUPPRESS_LOCK_BIT)
-#define MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE_BIT 9
-#define MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE_BIT)
-#define MSR_IA32_MISC_ENABLE_FERR_BIT 10
-#define MSR_IA32_MISC_ENABLE_FERR (1ULL << MSR_IA32_MISC_ENABLE_FERR_BIT)
-#define MSR_IA32_MISC_ENABLE_FERR_MULTIPLEX_BIT 10
-#define MSR_IA32_MISC_ENABLE_FERR_MULTIPLEX (1ULL << MSR_IA32_MISC_ENABLE_FERR_MULTIPLEX_BIT)
-#define MSR_IA32_MISC_ENABLE_TM2_BIT 13
-#define MSR_IA32_MISC_ENABLE_TM2 (1ULL << MSR_IA32_MISC_ENABLE_TM2_BIT)
-#define MSR_IA32_MISC_ENABLE_ADJ_PREF_DISABLE_BIT 19
-#define MSR_IA32_MISC_ENABLE_ADJ_PREF_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_ADJ_PREF_DISABLE_BIT)
-#define MSR_IA32_MISC_ENABLE_SPEEDSTEP_LOCK_BIT 20
-#define MSR_IA32_MISC_ENABLE_SPEEDSTEP_LOCK (1ULL << MSR_IA32_MISC_ENABLE_SPEEDSTEP_LOCK_BIT)
-#define MSR_IA32_MISC_ENABLE_L1D_CONTEXT_BIT 24
-#define MSR_IA32_MISC_ENABLE_L1D_CONTEXT (1ULL << MSR_IA32_MISC_ENABLE_L1D_CONTEXT_BIT)
-#define MSR_IA32_MISC_ENABLE_DCU_PREF_DISABLE_BIT 37
-#define MSR_IA32_MISC_ENABLE_DCU_PREF_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_DCU_PREF_DISABLE_BIT)
-#define MSR_IA32_MISC_ENABLE_TURBO_DISABLE_BIT 38
-#define MSR_IA32_MISC_ENABLE_TURBO_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_TURBO_DISABLE_BIT)
-#define MSR_IA32_MISC_ENABLE_IP_PREF_DISABLE_BIT 39
-#define MSR_IA32_MISC_ENABLE_IP_PREF_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_IP_PREF_DISABLE_BIT)
-
-#define MSR_IA32_TSC_DEADLINE 0x000006E0
-
-/* P4/Xeon+ specific */
-#define MSR_IA32_MCG_EAX 0x00000180
-#define MSR_IA32_MCG_EBX 0x00000181
-#define MSR_IA32_MCG_ECX 0x00000182
-#define MSR_IA32_MCG_EDX 0x00000183
-#define MSR_IA32_MCG_ESI 0x00000184
-#define MSR_IA32_MCG_EDI 0x00000185
-#define MSR_IA32_MCG_EBP 0x00000186
-#define MSR_IA32_MCG_ESP 0x00000187
-#define MSR_IA32_MCG_EFLAGS 0x00000188
-#define MSR_IA32_MCG_EIP 0x00000189
-#define MSR_IA32_MCG_RESERVED 0x0000018a
-
-/* Pentium IV performance counter MSRs */
-#define MSR_P4_BPU_PERFCTR0 0x00000300
-#define MSR_P4_BPU_PERFCTR1 0x00000301
-#define MSR_P4_BPU_PERFCTR2 0x00000302
-#define MSR_P4_BPU_PERFCTR3 0x00000303
-#define MSR_P4_MS_PERFCTR0 0x00000304
-#define MSR_P4_MS_PERFCTR1 0x00000305
-#define MSR_P4_MS_PERFCTR2 0x00000306
-#define MSR_P4_MS_PERFCTR3 0x00000307
-#define MSR_P4_FLAME_PERFCTR0 0x00000308
-#define MSR_P4_FLAME_PERFCTR1 0x00000309
-#define MSR_P4_FLAME_PERFCTR2 0x0000030a
-#define MSR_P4_FLAME_PERFCTR3 0x0000030b
-#define MSR_P4_IQ_PERFCTR0 0x0000030c
-#define MSR_P4_IQ_PERFCTR1 0x0000030d
-#define MSR_P4_IQ_PERFCTR2 0x0000030e
-#define MSR_P4_IQ_PERFCTR3 0x0000030f
-#define MSR_P4_IQ_PERFCTR4 0x00000310
-#define MSR_P4_IQ_PERFCTR5 0x00000311
-#define MSR_P4_BPU_CCCR0 0x00000360
-#define MSR_P4_BPU_CCCR1 0x00000361
-#define MSR_P4_BPU_CCCR2 0x00000362
-#define MSR_P4_BPU_CCCR3 0x00000363
-#define MSR_P4_MS_CCCR0 0x00000364
-#define MSR_P4_MS_CCCR1 0x00000365
-#define MSR_P4_MS_CCCR2 0x00000366
-#define MSR_P4_MS_CCCR3 0x00000367
-#define MSR_P4_FLAME_CCCR0 0x00000368
-#define MSR_P4_FLAME_CCCR1 0x00000369
-#define MSR_P4_FLAME_CCCR2 0x0000036a
-#define MSR_P4_FLAME_CCCR3 0x0000036b
-#define MSR_P4_IQ_CCCR0 0x0000036c
-#define MSR_P4_IQ_CCCR1 0x0000036d
-#define MSR_P4_IQ_CCCR2 0x0000036e
-#define MSR_P4_IQ_CCCR3 0x0000036f
-#define MSR_P4_IQ_CCCR4 0x00000370
-#define MSR_P4_IQ_CCCR5 0x00000371
-#define MSR_P4_ALF_ESCR0 0x000003ca
-#define MSR_P4_ALF_ESCR1 0x000003cb
-#define MSR_P4_BPU_ESCR0 0x000003b2
-#define MSR_P4_BPU_ESCR1 0x000003b3
-#define MSR_P4_BSU_ESCR0 0x000003a0
-#define MSR_P4_BSU_ESCR1 0x000003a1
-#define MSR_P4_CRU_ESCR0 0x000003b8
-#define MSR_P4_CRU_ESCR1 0x000003b9
-#define MSR_P4_CRU_ESCR2 0x000003cc
-#define MSR_P4_CRU_ESCR3 0x000003cd
-#define MSR_P4_CRU_ESCR4 0x000003e0
-#define MSR_P4_CRU_ESCR5 0x000003e1
-#define MSR_P4_DAC_ESCR0 0x000003a8
-#define MSR_P4_DAC_ESCR1 0x000003a9
-#define MSR_P4_FIRM_ESCR0 0x000003a4
-#define MSR_P4_FIRM_ESCR1 0x000003a5
-#define MSR_P4_FLAME_ESCR0 0x000003a6
-#define MSR_P4_FLAME_ESCR1 0x000003a7
-#define MSR_P4_FSB_ESCR0 0x000003a2
-#define MSR_P4_FSB_ESCR1 0x000003a3
-#define MSR_P4_IQ_ESCR0 0x000003ba
-#define MSR_P4_IQ_ESCR1 0x000003bb
-#define MSR_P4_IS_ESCR0 0x000003b4
-#define MSR_P4_IS_ESCR1 0x000003b5
-#define MSR_P4_ITLB_ESCR0 0x000003b6
-#define MSR_P4_ITLB_ESCR1 0x000003b7
-#define MSR_P4_IX_ESCR0 0x000003c8
-#define MSR_P4_IX_ESCR1 0x000003c9
-#define MSR_P4_MOB_ESCR0 0x000003aa
-#define MSR_P4_MOB_ESCR1 0x000003ab
-#define MSR_P4_MS_ESCR0 0x000003c0
-#define MSR_P4_MS_ESCR1 0x000003c1
-#define MSR_P4_PMH_ESCR0 0x000003ac
-#define MSR_P4_PMH_ESCR1 0x000003ad
-#define MSR_P4_RAT_ESCR0 0x000003bc
-#define MSR_P4_RAT_ESCR1 0x000003bd
-#define MSR_P4_SAAT_ESCR0 0x000003ae
-#define MSR_P4_SAAT_ESCR1 0x000003af
-#define MSR_P4_SSU_ESCR0 0x000003be
-#define MSR_P4_SSU_ESCR1 0x000003bf /* guess: not in manual */
-
-#define MSR_P4_TBPU_ESCR0 0x000003c2
-#define MSR_P4_TBPU_ESCR1 0x000003c3
-#define MSR_P4_TC_ESCR0 0x000003c4
-#define MSR_P4_TC_ESCR1 0x000003c5
-#define MSR_P4_U2L_ESCR0 0x000003b0
-#define MSR_P4_U2L_ESCR1 0x000003b1
-
-#define MSR_P4_PEBS_MATRIX_VERT 0x000003f2
-
-/* Intel Core-based CPU performance counters */
-#define MSR_CORE_PERF_FIXED_CTR0 0x00000309
-#define MSR_CORE_PERF_FIXED_CTR1 0x0000030a
-#define MSR_CORE_PERF_FIXED_CTR2 0x0000030b
-#define MSR_CORE_PERF_FIXED_CTR_CTRL 0x0000038d
-#define MSR_CORE_PERF_GLOBAL_STATUS 0x0000038e
-#define MSR_CORE_PERF_GLOBAL_CTRL 0x0000038f
-#define MSR_CORE_PERF_GLOBAL_OVF_CTRL 0x00000390
-
-/* Geode defined MSRs */
-#define MSR_GEODE_BUSCONT_CONF0 0x00001900
-
-/* Intel VT MSRs */
-#define MSR_IA32_VMX_BASIC 0x00000480
-#define MSR_IA32_VMX_PINBASED_CTLS 0x00000481
-#define MSR_IA32_VMX_PROCBASED_CTLS 0x00000482
-#define MSR_IA32_VMX_EXIT_CTLS 0x00000483
-#define MSR_IA32_VMX_ENTRY_CTLS 0x00000484
-#define MSR_IA32_VMX_MISC 0x00000485
-#define MSR_IA32_VMX_CR0_FIXED0 0x00000486
-#define MSR_IA32_VMX_CR0_FIXED1 0x00000487
-#define MSR_IA32_VMX_CR4_FIXED0 0x00000488
-#define MSR_IA32_VMX_CR4_FIXED1 0x00000489
-#define MSR_IA32_VMX_VMCS_ENUM 0x0000048a
-#define MSR_IA32_VMX_PROCBASED_CTLS2 0x0000048b
-#define MSR_IA32_VMX_EPT_VPID_CAP 0x0000048c
-#define MSR_IA32_VMX_TRUE_PINBASED_CTLS 0x0000048d
-#define MSR_IA32_VMX_TRUE_PROCBASED_CTLS 0x0000048e
-#define MSR_IA32_VMX_TRUE_EXIT_CTLS 0x0000048f
-#define MSR_IA32_VMX_TRUE_ENTRY_CTLS 0x00000490
-#define MSR_IA32_VMX_VMFUNC 0x00000491
-
-/* VMX_BASIC bits and bitmasks */
-#define VMX_BASIC_VMCS_SIZE_SHIFT 32
-#define VMX_BASIC_TRUE_CTLS (1ULL << 55)
-#define VMX_BASIC_64 0x0001000000000000LLU
-#define VMX_BASIC_MEM_TYPE_SHIFT 50
-#define VMX_BASIC_MEM_TYPE_MASK 0x003c000000000000LLU
-#define VMX_BASIC_MEM_TYPE_WB 6LLU
-#define VMX_BASIC_INOUT 0x0040000000000000LLU
-
-/* MSR_IA32_VMX_MISC bits */
-#define MSR_IA32_VMX_MISC_VMWRITE_SHADOW_RO_FIELDS (1ULL << 29)
-#define MSR_IA32_VMX_MISC_PREEMPTION_TIMER_SCALE 0x1F
-/* AMD-V MSRs */
-
-#define MSR_VM_CR 0xc0010114
-#define MSR_VM_IGNNE 0xc0010115
-#define MSR_VM_HSAVE_PA 0xc0010117
+#include <uapi/asm/msr-index.h>
#endif /* _ASM_X86_MSR_INDEX_H */
diff --git a/arch/x86/include/uapi/asm/msr-index.h b/arch/x86/include/uapi/asm/msr-index.h
new file mode 100644
index 000000000000..d097e832ee3c
--- /dev/null
+++ b/arch/x86/include/uapi/asm/msr-index.h
@@ -0,0 +1,698 @@
+#ifndef _UAPI_ASM_X86_MSR_INDEX_H
+#define _UAPI_ASM_X86_MSR_INDEX_H
+
+/*
+ * CPU model specific register (MSR) numbers.
+ *
+ * Do not add new entries to this file unless the definitions are shared
+ * between multiple compilation units.
+ */
+
+/* x86-64 specific MSRs */
+#define MSR_EFER 0xc0000080 /* extended feature register */
+#define MSR_STAR 0xc0000081 /* legacy mode SYSCALL target */
+#define MSR_LSTAR 0xc0000082 /* long mode SYSCALL target */
+#define MSR_CSTAR 0xc0000083 /* compat mode SYSCALL target */
+#define MSR_SYSCALL_MASK 0xc0000084 /* EFLAGS mask for syscall */
+#define MSR_FS_BASE 0xc0000100 /* 64bit FS base */
+#define MSR_GS_BASE 0xc0000101 /* 64bit GS base */
+#define MSR_KERNEL_GS_BASE 0xc0000102 /* SwapGS GS shadow */
+#define MSR_TSC_AUX 0xc0000103 /* Auxiliary TSC */
+
+/* EFER bits: */
+#define _EFER_SCE 0 /* SYSCALL/SYSRET */
+#define _EFER_LME 8 /* Long mode enable */
+#define _EFER_LMA 10 /* Long mode active (read-only) */
+#define _EFER_NX 11 /* No execute enable */
+#define _EFER_SVME 12 /* Enable virtualization */
+#define _EFER_LMSLE 13 /* Long Mode Segment Limit Enable */
+#define _EFER_FFXSR 14 /* Enable Fast FXSAVE/FXRSTOR */
+
+#define EFER_SCE (1<<_EFER_SCE)
+#define EFER_LME (1<<_EFER_LME)
+#define EFER_LMA (1<<_EFER_LMA)
+#define EFER_NX (1<<_EFER_NX)
+#define EFER_SVME (1<<_EFER_SVME)
+#define EFER_LMSLE (1<<_EFER_LMSLE)
+#define EFER_FFXSR (1<<_EFER_FFXSR)
+
+/* Intel MSRs. Some also available on other CPUs */
+
+#define MSR_PPIN_CTL 0x0000004e
+#define MSR_PPIN 0x0000004f
+
+#define MSR_IA32_PERFCTR0 0x000000c1
+#define MSR_IA32_PERFCTR1 0x000000c2
+#define MSR_FSB_FREQ 0x000000cd
+#define MSR_PLATFORM_INFO 0x000000ce
+
+#define MSR_NHM_SNB_PKG_CST_CFG_CTL 0x000000e2
+#define NHM_C3_AUTO_DEMOTE (1UL << 25)
+#define NHM_C1_AUTO_DEMOTE (1UL << 26)
+#define ATM_LNC_C6_AUTO_DEMOTE (1UL << 25)
+#define SNB_C1_AUTO_UNDEMOTE (1UL << 27)
+#define SNB_C3_AUTO_UNDEMOTE (1UL << 28)
+
+#define MSR_MTRRcap 0x000000fe
+#define MSR_IA32_BBL_CR_CTL 0x00000119
+#define MSR_IA32_BBL_CR_CTL3 0x0000011e
+
+#define MSR_IA32_SYSENTER_CS 0x00000174
+#define MSR_IA32_SYSENTER_ESP 0x00000175
+#define MSR_IA32_SYSENTER_EIP 0x00000176
+
+#define MSR_IA32_MCG_CAP 0x00000179
+#define MSR_IA32_MCG_STATUS 0x0000017a
+#define MSR_IA32_MCG_CTL 0x0000017b
+#define MSR_IA32_MCG_EXT_CTL 0x000004d0
+
+#define MSR_OFFCORE_RSP_0 0x000001a6
+#define MSR_OFFCORE_RSP_1 0x000001a7
+#define MSR_TURBO_RATIO_LIMIT 0x000001ad
+#define MSR_TURBO_RATIO_LIMIT1 0x000001ae
+#define MSR_TURBO_RATIO_LIMIT2 0x000001af
+
+#define MSR_LBR_SELECT 0x000001c8
+#define MSR_LBR_TOS 0x000001c9
+#define MSR_LBR_NHM_FROM 0x00000680
+#define MSR_LBR_NHM_TO 0x000006c0
+#define MSR_LBR_CORE_FROM 0x00000040
+#define MSR_LBR_CORE_TO 0x00000060
+
+#define MSR_LBR_INFO_0 0x00000dc0 /* ... 0xddf for _31 */
+#define LBR_INFO_MISPRED BIT_ULL(63)
+#define LBR_INFO_IN_TX BIT_ULL(62)
+#define LBR_INFO_ABORT BIT_ULL(61)
+#define LBR_INFO_CYCLES 0xffff
+
+#define MSR_IA32_PEBS_ENABLE 0x000003f1
+#define MSR_IA32_DS_AREA 0x00000600
+#define MSR_IA32_PERF_CAPABILITIES 0x00000345
+#define MSR_PEBS_LD_LAT_THRESHOLD 0x000003f6
+
+#define MSR_IA32_RTIT_CTL 0x00000570
+#define MSR_IA32_RTIT_STATUS 0x00000571
+#define MSR_IA32_RTIT_ADDR0_A 0x00000580
+#define MSR_IA32_RTIT_ADDR0_B 0x00000581
+#define MSR_IA32_RTIT_ADDR1_A 0x00000582
+#define MSR_IA32_RTIT_ADDR1_B 0x00000583
+#define MSR_IA32_RTIT_ADDR2_A 0x00000584
+#define MSR_IA32_RTIT_ADDR2_B 0x00000585
+#define MSR_IA32_RTIT_ADDR3_A 0x00000586
+#define MSR_IA32_RTIT_ADDR3_B 0x00000587
+#define MSR_IA32_RTIT_CR3_MATCH 0x00000572
+#define MSR_IA32_RTIT_OUTPUT_BASE 0x00000560
+#define MSR_IA32_RTIT_OUTPUT_MASK 0x00000561
+
+#define MSR_MTRRfix64K_00000 0x00000250
+#define MSR_MTRRfix16K_80000 0x00000258
+#define MSR_MTRRfix16K_A0000 0x00000259
+#define MSR_MTRRfix4K_C0000 0x00000268
+#define MSR_MTRRfix4K_C8000 0x00000269
+#define MSR_MTRRfix4K_D0000 0x0000026a
+#define MSR_MTRRfix4K_D8000 0x0000026b
+#define MSR_MTRRfix4K_E0000 0x0000026c
+#define MSR_MTRRfix4K_E8000 0x0000026d
+#define MSR_MTRRfix4K_F0000 0x0000026e
+#define MSR_MTRRfix4K_F8000 0x0000026f
+#define MSR_MTRRdefType 0x000002ff
+
+#define MSR_IA32_CR_PAT 0x00000277
+
+#define MSR_IA32_DEBUGCTLMSR 0x000001d9
+#define MSR_IA32_LASTBRANCHFROMIP 0x000001db
+#define MSR_IA32_LASTBRANCHTOIP 0x000001dc
+#define MSR_IA32_LASTINTFROMIP 0x000001dd
+#define MSR_IA32_LASTINTTOIP 0x000001de
+
+/* DEBUGCTLMSR bits (others vary by model): */
+#define DEBUGCTLMSR_LBR (1UL << 0) /* last branch recording */
+#define DEBUGCTLMSR_BTF (1UL << 1) /* single-step on branches */
+#define DEBUGCTLMSR_TR (1UL << 6)
+#define DEBUGCTLMSR_BTS (1UL << 7)
+#define DEBUGCTLMSR_BTINT (1UL << 8)
+#define DEBUGCTLMSR_BTS_OFF_OS (1UL << 9)
+#define DEBUGCTLMSR_BTS_OFF_USR (1UL << 10)
+#define DEBUGCTLMSR_FREEZE_LBRS_ON_PMI (1UL << 11)
+
+#define MSR_PEBS_FRONTEND 0x000003f7
+
+#define MSR_IA32_POWER_CTL 0x000001fc
+
+#define MSR_IA32_MC0_CTL 0x00000400
+#define MSR_IA32_MC0_STATUS 0x00000401
+#define MSR_IA32_MC0_ADDR 0x00000402
+#define MSR_IA32_MC0_MISC 0x00000403
+
+/* C-state Residency Counters */
+#define MSR_PKG_C3_RESIDENCY 0x000003f8
+#define MSR_PKG_C6_RESIDENCY 0x000003f9
+#define MSR_PKG_C7_RESIDENCY 0x000003fa
+#define MSR_CORE_C3_RESIDENCY 0x000003fc
+#define MSR_CORE_C6_RESIDENCY 0x000003fd
+#define MSR_CORE_C7_RESIDENCY 0x000003fe
+#define MSR_KNL_CORE_C6_RESIDENCY 0x000003ff
+#define MSR_PKG_C2_RESIDENCY 0x0000060d
+#define MSR_PKG_C8_RESIDENCY 0x00000630
+#define MSR_PKG_C9_RESIDENCY 0x00000631
+#define MSR_PKG_C10_RESIDENCY 0x00000632
+
+/* Interrupt Response Limit */
+#define MSR_PKGC3_IRTL 0x0000060a
+#define MSR_PKGC6_IRTL 0x0000060b
+#define MSR_PKGC7_IRTL 0x0000060c
+#define MSR_PKGC8_IRTL 0x00000633
+#define MSR_PKGC9_IRTL 0x00000634
+#define MSR_PKGC10_IRTL 0x00000635
+
+/* Run Time Average Power Limiting (RAPL) Interface */
+
+#define MSR_RAPL_POWER_UNIT 0x00000606
+
+#define MSR_PKG_POWER_LIMIT 0x00000610
+#define MSR_PKG_ENERGY_STATUS 0x00000611
+#define MSR_PKG_PERF_STATUS 0x00000613
+#define MSR_PKG_POWER_INFO 0x00000614
+
+#define MSR_DRAM_POWER_LIMIT 0x00000618
+#define MSR_DRAM_ENERGY_STATUS 0x00000619
+#define MSR_DRAM_PERF_STATUS 0x0000061b
+#define MSR_DRAM_POWER_INFO 0x0000061c
+
+#define MSR_PP0_POWER_LIMIT 0x00000638
+#define MSR_PP0_ENERGY_STATUS 0x00000639
+#define MSR_PP0_POLICY 0x0000063a
+#define MSR_PP0_PERF_STATUS 0x0000063b
+
+#define MSR_PP1_POWER_LIMIT 0x00000640
+#define MSR_PP1_ENERGY_STATUS 0x00000641
+#define MSR_PP1_POLICY 0x00000642
+
+/* Config TDP MSRs */
+#define MSR_CONFIG_TDP_NOMINAL 0x00000648
+#define MSR_CONFIG_TDP_LEVEL_1 0x00000649
+#define MSR_CONFIG_TDP_LEVEL_2 0x0000064A
+#define MSR_CONFIG_TDP_CONTROL 0x0000064B
+#define MSR_TURBO_ACTIVATION_RATIO 0x0000064C
+
+#define MSR_PLATFORM_ENERGY_STATUS 0x0000064D
+
+#define MSR_PKG_WEIGHTED_CORE_C0_RES 0x00000658
+#define MSR_PKG_ANY_CORE_C0_RES 0x00000659
+#define MSR_PKG_ANY_GFXE_C0_RES 0x0000065A
+#define MSR_PKG_BOTH_CORE_GFXE_C0_RES 0x0000065B
+
+#define MSR_CORE_C1_RES 0x00000660
+
+#define MSR_CC6_DEMOTION_POLICY_CONFIG 0x00000668
+#define MSR_MC6_DEMOTION_POLICY_CONFIG 0x00000669
+
+#define MSR_CORE_PERF_LIMIT_REASONS 0x00000690
+#define MSR_GFX_PERF_LIMIT_REASONS 0x000006B0
+#define MSR_RING_PERF_LIMIT_REASONS 0x000006B1
+
+/* Hardware P state interface */
+#define MSR_PPERF 0x0000064e
+#define MSR_PERF_LIMIT_REASONS 0x0000064f
+#define MSR_PM_ENABLE 0x00000770
+#define MSR_HWP_CAPABILITIES 0x00000771
+#define MSR_HWP_REQUEST_PKG 0x00000772
+#define MSR_HWP_INTERRUPT 0x00000773
+#define MSR_HWP_REQUEST 0x00000774
+#define MSR_HWP_STATUS 0x00000777
+
+/* CPUID.6.EAX */
+#define HWP_BASE_BIT (1<<7)
+#define HWP_NOTIFICATIONS_BIT (1<<8)
+#define HWP_ACTIVITY_WINDOW_BIT (1<<9)
+#define HWP_ENERGY_PERF_PREFERENCE_BIT (1<<10)
+#define HWP_PACKAGE_LEVEL_REQUEST_BIT (1<<11)
+
+/* IA32_HWP_CAPABILITIES */
+#define HWP_HIGHEST_PERF(x) (((x) >> 0) & 0xff)
+#define HWP_GUARANTEED_PERF(x) (((x) >> 8) & 0xff)
+#define HWP_MOSTEFFICIENT_PERF(x) (((x) >> 16) & 0xff)
+#define HWP_LOWEST_PERF(x) (((x) >> 24) & 0xff)
+
+/* IA32_HWP_REQUEST */
+#define HWP_MIN_PERF(x) (x & 0xff)
+#define HWP_MAX_PERF(x) ((x & 0xff) << 8)
+#define HWP_DESIRED_PERF(x) ((x & 0xff) << 16)
+#define HWP_ENERGY_PERF_PREFERENCE(x) ((x & 0xff) << 24)
+#define HWP_ACTIVITY_WINDOW(x) ((x & 0xff3) << 32)
+#define HWP_PACKAGE_CONTROL(x) ((x & 0x1) << 42)
+
+/* IA32_HWP_STATUS */
+#define HWP_GUARANTEED_CHANGE(x) (x & 0x1)
+#define HWP_EXCURSION_TO_MINIMUM(x) (x & 0x4)
+
+/* IA32_HWP_INTERRUPT */
+#define HWP_CHANGE_TO_GUARANTEED_INT(x) (x & 0x1)
+#define HWP_EXCURSION_TO_MINIMUM_INT(x) (x & 0x2)
+
+#define MSR_AMD64_MC0_MASK 0xc0010044
+
+#define MSR_IA32_MCx_CTL(x) (MSR_IA32_MC0_CTL + 4*(x))
+#define MSR_IA32_MCx_STATUS(x) (MSR_IA32_MC0_STATUS + 4*(x))
+#define MSR_IA32_MCx_ADDR(x) (MSR_IA32_MC0_ADDR + 4*(x))
+#define MSR_IA32_MCx_MISC(x) (MSR_IA32_MC0_MISC + 4*(x))
+
+#define MSR_AMD64_MCx_MASK(x) (MSR_AMD64_MC0_MASK + (x))
+
+/* These are consecutive and not in the normal 4er MCE bank block */
+#define MSR_IA32_MC0_CTL2 0x00000280
+#define MSR_IA32_MCx_CTL2(x) (MSR_IA32_MC0_CTL2 + (x))
+
+#define MSR_P6_PERFCTR0 0x000000c1
+#define MSR_P6_PERFCTR1 0x000000c2
+#define MSR_P6_EVNTSEL0 0x00000186
+#define MSR_P6_EVNTSEL1 0x00000187
+
+#define MSR_KNC_PERFCTR0 0x00000020
+#define MSR_KNC_PERFCTR1 0x00000021
+#define MSR_KNC_EVNTSEL0 0x00000028
+#define MSR_KNC_EVNTSEL1 0x00000029
+
+/* Alternative perfctr range with full access. */
+#define MSR_IA32_PMC0 0x000004c1
+
+/* AMD64 MSRs. Not complete. See the architecture manual for a more
+ complete list. */
+
+#define MSR_AMD64_PATCH_LEVEL 0x0000008b
+#define MSR_AMD64_TSC_RATIO 0xc0000104
+#define MSR_AMD64_NB_CFG 0xc001001f
+#define MSR_AMD64_PATCH_LOADER 0xc0010020
+#define MSR_AMD64_OSVW_ID_LENGTH 0xc0010140
+#define MSR_AMD64_OSVW_STATUS 0xc0010141
+#define MSR_AMD64_LS_CFG 0xc0011020
+#define MSR_AMD64_DC_CFG 0xc0011022
+#define MSR_AMD64_BU_CFG2 0xc001102a
+#define MSR_AMD64_IBSFETCHCTL 0xc0011030
+#define MSR_AMD64_IBSFETCHLINAD 0xc0011031
+#define MSR_AMD64_IBSFETCHPHYSAD 0xc0011032
+#define MSR_AMD64_IBSFETCH_REG_COUNT 3
+#define MSR_AMD64_IBSFETCH_REG_MASK ((1UL<<MSR_AMD64_IBSFETCH_REG_COUNT)-1)
+#define MSR_AMD64_IBSOPCTL 0xc0011033
+#define MSR_AMD64_IBSOPRIP 0xc0011034
+#define MSR_AMD64_IBSOPDATA 0xc0011035
+#define MSR_AMD64_IBSOPDATA2 0xc0011036
+#define MSR_AMD64_IBSOPDATA3 0xc0011037
+#define MSR_AMD64_IBSDCLINAD 0xc0011038
+#define MSR_AMD64_IBSDCPHYSAD 0xc0011039
+#define MSR_AMD64_IBSOP_REG_COUNT 7
+#define MSR_AMD64_IBSOP_REG_MASK ((1UL<<MSR_AMD64_IBSOP_REG_COUNT)-1)
+#define MSR_AMD64_IBSCTL 0xc001103a
+#define MSR_AMD64_IBSBRTARGET 0xc001103b
+#define MSR_AMD64_IBSOPDATA4 0xc001103d
+#define MSR_AMD64_IBS_REG_COUNT_MAX 8 /* includes MSR_AMD64_IBSBRTARGET */
+
+/* Fam 17h MSRs */
+#define MSR_F17H_IRPERF 0xc00000e9
+
+/* Fam 16h MSRs */
+#define MSR_F16H_L2I_PERF_CTL 0xc0010230
+#define MSR_F16H_L2I_PERF_CTR 0xc0010231
+#define MSR_F16H_DR1_ADDR_MASK 0xc0011019
+#define MSR_F16H_DR2_ADDR_MASK 0xc001101a
+#define MSR_F16H_DR3_ADDR_MASK 0xc001101b
+#define MSR_F16H_DR0_ADDR_MASK 0xc0011027
+
+/* Fam 15h MSRs */
+#define MSR_F15H_PERF_CTL 0xc0010200
+#define MSR_F15H_PERF_CTR 0xc0010201
+#define MSR_F15H_NB_PERF_CTL 0xc0010240
+#define MSR_F15H_NB_PERF_CTR 0xc0010241
+#define MSR_F15H_PTSC 0xc0010280
+#define MSR_F15H_IC_CFG 0xc0011021
+
+/* Fam 10h MSRs */
+#define MSR_FAM10H_MMIO_CONF_BASE 0xc0010058
+#define FAM10H_MMIO_CONF_ENABLE (1<<0)
+#define FAM10H_MMIO_CONF_BUSRANGE_MASK 0xf
+#define FAM10H_MMIO_CONF_BUSRANGE_SHIFT 2
+#define FAM10H_MMIO_CONF_BASE_MASK 0xfffffffULL
+#define FAM10H_MMIO_CONF_BASE_SHIFT 20
+#define MSR_FAM10H_NODE_ID 0xc001100c
+
+/* K8 MSRs */
+#define MSR_K8_TOP_MEM1 0xc001001a
+#define MSR_K8_TOP_MEM2 0xc001001d
+#define MSR_K8_SYSCFG 0xc0010010
+#define MSR_K8_INT_PENDING_MSG 0xc0010055
+/* C1E active bits in int pending message */
+#define K8_INTP_C1E_ACTIVE_MASK 0x18000000
+#define MSR_K8_TSEG_ADDR 0xc0010112
+#define MSR_K8_TSEG_MASK 0xc0010113
+#define K8_MTRRFIXRANGE_DRAM_ENABLE 0x00040000 /* MtrrFixDramEn bit */
+#define K8_MTRRFIXRANGE_DRAM_MODIFY 0x00080000 /* MtrrFixDramModEn bit */
+#define K8_MTRR_RDMEM_WRMEM_MASK 0x18181818 /* Mask: RdMem|WrMem */
+
+/* K7 MSRs */
+#define MSR_K7_EVNTSEL0 0xc0010000
+#define MSR_K7_PERFCTR0 0xc0010004
+#define MSR_K7_EVNTSEL1 0xc0010001
+#define MSR_K7_PERFCTR1 0xc0010005
+#define MSR_K7_EVNTSEL2 0xc0010002
+#define MSR_K7_PERFCTR2 0xc0010006
+#define MSR_K7_EVNTSEL3 0xc0010003
+#define MSR_K7_PERFCTR3 0xc0010007
+#define MSR_K7_CLK_CTL 0xc001001b
+#define MSR_K7_HWCR 0xc0010015
+#define MSR_K7_FID_VID_CTL 0xc0010041
+#define MSR_K7_FID_VID_STATUS 0xc0010042
+
+/* K6 MSRs */
+#define MSR_K6_WHCR 0xc0000082
+#define MSR_K6_UWCCR 0xc0000085
+#define MSR_K6_EPMR 0xc0000086
+#define MSR_K6_PSOR 0xc0000087
+#define MSR_K6_PFIR 0xc0000088
+
+/* Centaur-Hauls/IDT defined MSRs. */
+#define MSR_IDT_FCR1 0x00000107
+#define MSR_IDT_FCR2 0x00000108
+#define MSR_IDT_FCR3 0x00000109
+#define MSR_IDT_FCR4 0x0000010a
+
+#define MSR_IDT_MCR0 0x00000110
+#define MSR_IDT_MCR1 0x00000111
+#define MSR_IDT_MCR2 0x00000112
+#define MSR_IDT_MCR3 0x00000113
+#define MSR_IDT_MCR4 0x00000114
+#define MSR_IDT_MCR5 0x00000115
+#define MSR_IDT_MCR6 0x00000116
+#define MSR_IDT_MCR7 0x00000117
+#define MSR_IDT_MCR_CTRL 0x00000120
+
+/* VIA Cyrix defined MSRs*/
+#define MSR_VIA_FCR 0x00001107
+#define MSR_VIA_LONGHAUL 0x0000110a
+#define MSR_VIA_RNG 0x0000110b
+#define MSR_VIA_BCR2 0x00001147
+
+/* Transmeta defined MSRs */
+#define MSR_TMTA_LONGRUN_CTRL 0x80868010
+#define MSR_TMTA_LONGRUN_FLAGS 0x80868011
+#define MSR_TMTA_LRTI_READOUT 0x80868018
+#define MSR_TMTA_LRTI_VOLT_MHZ 0x8086801a
+
+/* Intel defined MSRs. */
+#define MSR_IA32_P5_MC_ADDR 0x00000000
+#define MSR_IA32_P5_MC_TYPE 0x00000001
+#define MSR_IA32_TSC 0x00000010
+#define MSR_IA32_PLATFORM_ID 0x00000017
+#define MSR_IA32_EBL_CR_POWERON 0x0000002a
+#define MSR_EBC_FREQUENCY_ID 0x0000002c
+#define MSR_SMI_COUNT 0x00000034
+#define MSR_IA32_FEATURE_CONTROL 0x0000003a
+#define MSR_IA32_TSC_ADJUST 0x0000003b
+#define MSR_IA32_BNDCFGS 0x00000d90
+
+#define MSR_IA32_XSS 0x00000da0
+
+#define FEATURE_CONTROL_LOCKED (1<<0)
+#define FEATURE_CONTROL_VMXON_ENABLED_INSIDE_SMX (1<<1)
+#define FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX (1<<2)
+#define FEATURE_CONTROL_LMCE (1<<20)
+
+#define MSR_IA32_APICBASE 0x0000001b
+#define MSR_IA32_APICBASE_BSP (1<<8)
+#define MSR_IA32_APICBASE_ENABLE (1<<11)
+#define MSR_IA32_APICBASE_BASE (0xfffff<<12)
+
+#define MSR_IA32_TSCDEADLINE 0x000006e0
+
+#define MSR_IA32_UCODE_WRITE 0x00000079
+#define MSR_IA32_UCODE_REV 0x0000008b
+
+#define MSR_IA32_SMM_MONITOR_CTL 0x0000009b
+#define MSR_IA32_SMBASE 0x0000009e
+
+#define MSR_IA32_PERF_STATUS 0x00000198
+#define MSR_IA32_PERF_CTL 0x00000199
+#define INTEL_PERF_CTL_MASK 0xffff
+#define MSR_AMD_PSTATE_DEF_BASE 0xc0010064
+#define MSR_AMD_PERF_STATUS 0xc0010063
+#define MSR_AMD_PERF_CTL 0xc0010062
+
+#define MSR_IA32_MPERF 0x000000e7
+#define MSR_IA32_APERF 0x000000e8
+
+#define MSR_IA32_THERM_CONTROL 0x0000019a
+#define MSR_IA32_THERM_INTERRUPT 0x0000019b
+
+#define THERM_INT_HIGH_ENABLE (1 << 0)
+#define THERM_INT_LOW_ENABLE (1 << 1)
+#define THERM_INT_PLN_ENABLE (1 << 24)
+
+#define MSR_IA32_THERM_STATUS 0x0000019c
+
+#define THERM_STATUS_PROCHOT (1 << 0)
+#define THERM_STATUS_POWER_LIMIT (1 << 10)
+
+#define MSR_THERM2_CTL 0x0000019d
+
+#define MSR_THERM2_CTL_TM_SELECT (1ULL << 16)
+
+#define MSR_IA32_MISC_ENABLE 0x000001a0
+
+#define MSR_IA32_TEMPERATURE_TARGET 0x000001a2
+
+#define MSR_MISC_PWR_MGMT 0x000001aa
+
+#define MSR_IA32_ENERGY_PERF_BIAS 0x000001b0
+#define ENERGY_PERF_BIAS_PERFORMANCE 0
+#define ENERGY_PERF_BIAS_NORMAL 6
+#define ENERGY_PERF_BIAS_POWERSAVE 15
+
+#define MSR_IA32_PACKAGE_THERM_STATUS 0x000001b1
+
+#define PACKAGE_THERM_STATUS_PROCHOT (1 << 0)
+#define PACKAGE_THERM_STATUS_POWER_LIMIT (1 << 10)
+
+#define MSR_IA32_PACKAGE_THERM_INTERRUPT 0x000001b2
+
+#define PACKAGE_THERM_INT_HIGH_ENABLE (1 << 0)
+#define PACKAGE_THERM_INT_LOW_ENABLE (1 << 1)
+#define PACKAGE_THERM_INT_PLN_ENABLE (1 << 24)
+
+/* Thermal Thresholds Support */
+#define THERM_INT_THRESHOLD0_ENABLE (1 << 15)
+#define THERM_SHIFT_THRESHOLD0 8
+#define THERM_MASK_THRESHOLD0 (0x7f << THERM_SHIFT_THRESHOLD0)
+#define THERM_INT_THRESHOLD1_ENABLE (1 << 23)
+#define THERM_SHIFT_THRESHOLD1 16
+#define THERM_MASK_THRESHOLD1 (0x7f << THERM_SHIFT_THRESHOLD1)
+#define THERM_STATUS_THRESHOLD0 (1 << 6)
+#define THERM_LOG_THRESHOLD0 (1 << 7)
+#define THERM_STATUS_THRESHOLD1 (1 << 8)
+#define THERM_LOG_THRESHOLD1 (1 << 9)
+
+/* MISC_ENABLE bits: architectural */
+#define MSR_IA32_MISC_ENABLE_FAST_STRING_BIT 0
+#define MSR_IA32_MISC_ENABLE_FAST_STRING (1ULL << MSR_IA32_MISC_ENABLE_FAST_STRING_BIT)
+#define MSR_IA32_MISC_ENABLE_TCC_BIT 1
+#define MSR_IA32_MISC_ENABLE_TCC (1ULL << MSR_IA32_MISC_ENABLE_TCC_BIT)
+#define MSR_IA32_MISC_ENABLE_EMON_BIT 7
+#define MSR_IA32_MISC_ENABLE_EMON (1ULL << MSR_IA32_MISC_ENABLE_EMON_BIT)
+#define MSR_IA32_MISC_ENABLE_BTS_UNAVAIL_BIT 11
+#define MSR_IA32_MISC_ENABLE_BTS_UNAVAIL (1ULL << MSR_IA32_MISC_ENABLE_BTS_UNAVAIL_BIT)
+#define MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL_BIT 12
+#define MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL (1ULL << MSR_IA32_MISC_ENABLE_PEBS_UNAVAIL_BIT)
+#define MSR_IA32_MISC_ENABLE_ENHANCED_SPEEDSTEP_BIT 16
+#define MSR_IA32_MISC_ENABLE_ENHANCED_SPEEDSTEP (1ULL << MSR_IA32_MISC_ENABLE_ENHANCED_SPEEDSTEP_BIT)
+#define MSR_IA32_MISC_ENABLE_MWAIT_BIT 18
+#define MSR_IA32_MISC_ENABLE_MWAIT (1ULL << MSR_IA32_MISC_ENABLE_MWAIT_BIT)
+#define MSR_IA32_MISC_ENABLE_LIMIT_CPUID_BIT 22
+#define MSR_IA32_MISC_ENABLE_LIMIT_CPUID (1ULL << MSR_IA32_MISC_ENABLE_LIMIT_CPUID_BIT)
+#define MSR_IA32_MISC_ENABLE_XTPR_DISABLE_BIT 23
+#define MSR_IA32_MISC_ENABLE_XTPR_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_XTPR_DISABLE_BIT)
+#define MSR_IA32_MISC_ENABLE_XD_DISABLE_BIT 34
+#define MSR_IA32_MISC_ENABLE_XD_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_XD_DISABLE_BIT)
+
+/* MISC_ENABLE bits: model-specific, meaning may vary from core to core */
+#define MSR_IA32_MISC_ENABLE_X87_COMPAT_BIT 2
+#define MSR_IA32_MISC_ENABLE_X87_COMPAT (1ULL << MSR_IA32_MISC_ENABLE_X87_COMPAT_BIT)
+#define MSR_IA32_MISC_ENABLE_TM1_BIT 3
+#define MSR_IA32_MISC_ENABLE_TM1 (1ULL << MSR_IA32_MISC_ENABLE_TM1_BIT)
+#define MSR_IA32_MISC_ENABLE_SPLIT_LOCK_DISABLE_BIT 4
+#define MSR_IA32_MISC_ENABLE_SPLIT_LOCK_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_SPLIT_LOCK_DISABLE_BIT)
+#define MSR_IA32_MISC_ENABLE_L3CACHE_DISABLE_BIT 6
+#define MSR_IA32_MISC_ENABLE_L3CACHE_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_L3CACHE_DISABLE_BIT)
+#define MSR_IA32_MISC_ENABLE_SUPPRESS_LOCK_BIT 8
+#define MSR_IA32_MISC_ENABLE_SUPPRESS_LOCK (1ULL << MSR_IA32_MISC_ENABLE_SUPPRESS_LOCK_BIT)
+#define MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE_BIT 9
+#define MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE_BIT)
+#define MSR_IA32_MISC_ENABLE_FERR_BIT 10
+#define MSR_IA32_MISC_ENABLE_FERR (1ULL << MSR_IA32_MISC_ENABLE_FERR_BIT)
+#define MSR_IA32_MISC_ENABLE_FERR_MULTIPLEX_BIT 10
+#define MSR_IA32_MISC_ENABLE_FERR_MULTIPLEX (1ULL << MSR_IA32_MISC_ENABLE_FERR_MULTIPLEX_BIT)
+#define MSR_IA32_MISC_ENABLE_TM2_BIT 13
+#define MSR_IA32_MISC_ENABLE_TM2 (1ULL << MSR_IA32_MISC_ENABLE_TM2_BIT)
+#define MSR_IA32_MISC_ENABLE_ADJ_PREF_DISABLE_BIT 19
+#define MSR_IA32_MISC_ENABLE_ADJ_PREF_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_ADJ_PREF_DISABLE_BIT)
+#define MSR_IA32_MISC_ENABLE_SPEEDSTEP_LOCK_BIT 20
+#define MSR_IA32_MISC_ENABLE_SPEEDSTEP_LOCK (1ULL << MSR_IA32_MISC_ENABLE_SPEEDSTEP_LOCK_BIT)
+#define MSR_IA32_MISC_ENABLE_L1D_CONTEXT_BIT 24
+#define MSR_IA32_MISC_ENABLE_L1D_CONTEXT (1ULL << MSR_IA32_MISC_ENABLE_L1D_CONTEXT_BIT)
+#define MSR_IA32_MISC_ENABLE_DCU_PREF_DISABLE_BIT 37
+#define MSR_IA32_MISC_ENABLE_DCU_PREF_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_DCU_PREF_DISABLE_BIT)
+#define MSR_IA32_MISC_ENABLE_TURBO_DISABLE_BIT 38
+#define MSR_IA32_MISC_ENABLE_TURBO_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_TURBO_DISABLE_BIT)
+#define MSR_IA32_MISC_ENABLE_IP_PREF_DISABLE_BIT 39
+#define MSR_IA32_MISC_ENABLE_IP_PREF_DISABLE (1ULL << MSR_IA32_MISC_ENABLE_IP_PREF_DISABLE_BIT)
+
+#define MSR_IA32_TSC_DEADLINE 0x000006E0
+
+/* P4/Xeon+ specific */
+#define MSR_IA32_MCG_EAX 0x00000180
+#define MSR_IA32_MCG_EBX 0x00000181
+#define MSR_IA32_MCG_ECX 0x00000182
+#define MSR_IA32_MCG_EDX 0x00000183
+#define MSR_IA32_MCG_ESI 0x00000184
+#define MSR_IA32_MCG_EDI 0x00000185
+#define MSR_IA32_MCG_EBP 0x00000186
+#define MSR_IA32_MCG_ESP 0x00000187
+#define MSR_IA32_MCG_EFLAGS 0x00000188
+#define MSR_IA32_MCG_EIP 0x00000189
+#define MSR_IA32_MCG_RESERVED 0x0000018a
+
+/* Pentium IV performance counter MSRs */
+#define MSR_P4_BPU_PERFCTR0 0x00000300
+#define MSR_P4_BPU_PERFCTR1 0x00000301
+#define MSR_P4_BPU_PERFCTR2 0x00000302
+#define MSR_P4_BPU_PERFCTR3 0x00000303
+#define MSR_P4_MS_PERFCTR0 0x00000304
+#define MSR_P4_MS_PERFCTR1 0x00000305
+#define MSR_P4_MS_PERFCTR2 0x00000306
+#define MSR_P4_MS_PERFCTR3 0x00000307
+#define MSR_P4_FLAME_PERFCTR0 0x00000308
+#define MSR_P4_FLAME_PERFCTR1 0x00000309
+#define MSR_P4_FLAME_PERFCTR2 0x0000030a
+#define MSR_P4_FLAME_PERFCTR3 0x0000030b
+#define MSR_P4_IQ_PERFCTR0 0x0000030c
+#define MSR_P4_IQ_PERFCTR1 0x0000030d
+#define MSR_P4_IQ_PERFCTR2 0x0000030e
+#define MSR_P4_IQ_PERFCTR3 0x0000030f
+#define MSR_P4_IQ_PERFCTR4 0x00000310
+#define MSR_P4_IQ_PERFCTR5 0x00000311
+#define MSR_P4_BPU_CCCR0 0x00000360
+#define MSR_P4_BPU_CCCR1 0x00000361
+#define MSR_P4_BPU_CCCR2 0x00000362
+#define MSR_P4_BPU_CCCR3 0x00000363
+#define MSR_P4_MS_CCCR0 0x00000364
+#define MSR_P4_MS_CCCR1 0x00000365
+#define MSR_P4_MS_CCCR2 0x00000366
+#define MSR_P4_MS_CCCR3 0x00000367
+#define MSR_P4_FLAME_CCCR0 0x00000368
+#define MSR_P4_FLAME_CCCR1 0x00000369
+#define MSR_P4_FLAME_CCCR2 0x0000036a
+#define MSR_P4_FLAME_CCCR3 0x0000036b
+#define MSR_P4_IQ_CCCR0 0x0000036c
+#define MSR_P4_IQ_CCCR1 0x0000036d
+#define MSR_P4_IQ_CCCR2 0x0000036e
+#define MSR_P4_IQ_CCCR3 0x0000036f
+#define MSR_P4_IQ_CCCR4 0x00000370
+#define MSR_P4_IQ_CCCR5 0x00000371
+#define MSR_P4_ALF_ESCR0 0x000003ca
+#define MSR_P4_ALF_ESCR1 0x000003cb
+#define MSR_P4_BPU_ESCR0 0x000003b2
+#define MSR_P4_BPU_ESCR1 0x000003b3
+#define MSR_P4_BSU_ESCR0 0x000003a0
+#define MSR_P4_BSU_ESCR1 0x000003a1
+#define MSR_P4_CRU_ESCR0 0x000003b8
+#define MSR_P4_CRU_ESCR1 0x000003b9
+#define MSR_P4_CRU_ESCR2 0x000003cc
+#define MSR_P4_CRU_ESCR3 0x000003cd
+#define MSR_P4_CRU_ESCR4 0x000003e0
+#define MSR_P4_CRU_ESCR5 0x000003e1
+#define MSR_P4_DAC_ESCR0 0x000003a8
+#define MSR_P4_DAC_ESCR1 0x000003a9
+#define MSR_P4_FIRM_ESCR0 0x000003a4
+#define MSR_P4_FIRM_ESCR1 0x000003a5
+#define MSR_P4_FLAME_ESCR0 0x000003a6
+#define MSR_P4_FLAME_ESCR1 0x000003a7
+#define MSR_P4_FSB_ESCR0 0x000003a2
+#define MSR_P4_FSB_ESCR1 0x000003a3
+#define MSR_P4_IQ_ESCR0 0x000003ba
+#define MSR_P4_IQ_ESCR1 0x000003bb
+#define MSR_P4_IS_ESCR0 0x000003b4
+#define MSR_P4_IS_ESCR1 0x000003b5
+#define MSR_P4_ITLB_ESCR0 0x000003b6
+#define MSR_P4_ITLB_ESCR1 0x000003b7
+#define MSR_P4_IX_ESCR0 0x000003c8
+#define MSR_P4_IX_ESCR1 0x000003c9
+#define MSR_P4_MOB_ESCR0 0x000003aa
+#define MSR_P4_MOB_ESCR1 0x000003ab
+#define MSR_P4_MS_ESCR0 0x000003c0
+#define MSR_P4_MS_ESCR1 0x000003c1
+#define MSR_P4_PMH_ESCR0 0x000003ac
+#define MSR_P4_PMH_ESCR1 0x000003ad
+#define MSR_P4_RAT_ESCR0 0x000003bc
+#define MSR_P4_RAT_ESCR1 0x000003bd
+#define MSR_P4_SAAT_ESCR0 0x000003ae
+#define MSR_P4_SAAT_ESCR1 0x000003af
+#define MSR_P4_SSU_ESCR0 0x000003be
+#define MSR_P4_SSU_ESCR1 0x000003bf /* guess: not in manual */
+
+#define MSR_P4_TBPU_ESCR0 0x000003c2
+#define MSR_P4_TBPU_ESCR1 0x000003c3
+#define MSR_P4_TC_ESCR0 0x000003c4
+#define MSR_P4_TC_ESCR1 0x000003c5
+#define MSR_P4_U2L_ESCR0 0x000003b0
+#define MSR_P4_U2L_ESCR1 0x000003b1
+
+#define MSR_P4_PEBS_MATRIX_VERT 0x000003f2
+
+/* Intel Core-based CPU performance counters */
+#define MSR_CORE_PERF_FIXED_CTR0 0x00000309
+#define MSR_CORE_PERF_FIXED_CTR1 0x0000030a
+#define MSR_CORE_PERF_FIXED_CTR2 0x0000030b
+#define MSR_CORE_PERF_FIXED_CTR_CTRL 0x0000038d
+#define MSR_CORE_PERF_GLOBAL_STATUS 0x0000038e
+#define MSR_CORE_PERF_GLOBAL_CTRL 0x0000038f
+#define MSR_CORE_PERF_GLOBAL_OVF_CTRL 0x00000390
+
+/* Geode defined MSRs */
+#define MSR_GEODE_BUSCONT_CONF0 0x00001900
+
+/* Intel VT MSRs */
+#define MSR_IA32_VMX_BASIC 0x00000480
+#define MSR_IA32_VMX_PINBASED_CTLS 0x00000481
+#define MSR_IA32_VMX_PROCBASED_CTLS 0x00000482
+#define MSR_IA32_VMX_EXIT_CTLS 0x00000483
+#define MSR_IA32_VMX_ENTRY_CTLS 0x00000484
+#define MSR_IA32_VMX_MISC 0x00000485
+#define MSR_IA32_VMX_CR0_FIXED0 0x00000486
+#define MSR_IA32_VMX_CR0_FIXED1 0x00000487
+#define MSR_IA32_VMX_CR4_FIXED0 0x00000488
+#define MSR_IA32_VMX_CR4_FIXED1 0x00000489
+#define MSR_IA32_VMX_VMCS_ENUM 0x0000048a
+#define MSR_IA32_VMX_PROCBASED_CTLS2 0x0000048b
+#define MSR_IA32_VMX_EPT_VPID_CAP 0x0000048c
+#define MSR_IA32_VMX_TRUE_PINBASED_CTLS 0x0000048d
+#define MSR_IA32_VMX_TRUE_PROCBASED_CTLS 0x0000048e
+#define MSR_IA32_VMX_TRUE_EXIT_CTLS 0x0000048f
+#define MSR_IA32_VMX_TRUE_ENTRY_CTLS 0x00000490
+#define MSR_IA32_VMX_VMFUNC 0x00000491
+
+/* VMX_BASIC bits and bitmasks */
+#define VMX_BASIC_VMCS_SIZE_SHIFT 32
+#define VMX_BASIC_TRUE_CTLS (1ULL << 55)
+#define VMX_BASIC_64 0x0001000000000000LLU
+#define VMX_BASIC_MEM_TYPE_SHIFT 50
+#define VMX_BASIC_MEM_TYPE_MASK 0x003c000000000000LLU
+#define VMX_BASIC_MEM_TYPE_WB 6LLU
+#define VMX_BASIC_INOUT 0x0040000000000000LLU
+
+/* MSR_IA32_VMX_MISC bits */
+#define MSR_IA32_VMX_MISC_VMWRITE_SHADOW_RO_FIELDS (1ULL << 29)
+#define MSR_IA32_VMX_MISC_PREEMPTION_TIMER_SCALE 0x1F
+/* AMD-V MSRs */
+
+#define MSR_VM_CR 0xc0010114
+#define MSR_VM_IGNNE 0xc0010115
+#define MSR_VM_HSAVE_PA 0xc0010117
+
+#endif /* _UAPI_ASM_X86_MSR_INDEX_H */
--
2.8.1
^ permalink raw reply related
* [PATCH v2 5/7] Makefile.headersinst: cleanup input files
From: Nicolas Dichtel @ 2017-01-06 9:43 UTC (permalink / raw)
To: arnd
Cc: linux-mips, alsa-devel, linux-ia64, linux-doc, airlied,
linux-fbdev, dri-devel, linux-mtd, sparclinux, linux-arch,
linux-s390, linux-am33-list, linux-c6x-dev, linux-rdma,
linux-hexagon, linux-sh, coreteam, fcoe-devel, xen-devel,
linux-snps-arc, linux-media, uclinux-h8-devel, linux-xtensa,
linux-kbuild, adi-buildroot-devel, linux-raid, linux-m68k,
openrisc, Nicolas Dichtel
In-Reply-To: <1483695839-18660-1-git-send-email-nicolas.dichtel@6wind.com>
After the last four patches, all exported headers are under uapi/, thus
input-files2 are not needed anymore.
The side effect is that input-files1-name is exactly header-y.
Note also that unput-files3-name is genhdr-y.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
| 34 +++++++++++-----------------------
1 file changed, 11 insertions(+), 23 deletions(-)
--git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index 1106d6ca3a38..3e20d03432d2 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -40,31 +40,20 @@ wrapper-files := $(filter $(header-y), $(generic-y))
srcdir := $(srctree)/$(obj)
gendir := $(objtree)/$(gen)
-oldsrcdir := $(srctree)/$(subst /uapi,,$(obj))
-
# all headers files for this dir
header-y := $(filter-out $(generic-y), $(header-y))
all-files := $(header-y) $(genhdr-y) $(wrapper-files)
output-files := $(addprefix $(installdir)/, $(all-files))
-input-files1 := $(foreach hdr, $(header-y), \
- $(if $(wildcard $(srcdir)/$(hdr)), \
- $(wildcard $(srcdir)/$(hdr))) \
- )
-input-files1-name := $(notdir $(input-files1))
-input-files2 := $(foreach hdr, $(header-y), \
- $(if $(wildcard $(srcdir)/$(hdr)),, \
- $(if $(wildcard $(oldsrcdir)/$(hdr)), \
- $(wildcard $(oldsrcdir)/$(hdr)), \
- $(error Missing UAPI file $(srcdir)/$(hdr))) \
- ))
-input-files2-name := $(notdir $(input-files2))
-input-files3 := $(foreach hdr, $(genhdr-y), \
- $(if $(wildcard $(gendir)/$(hdr)), \
- $(wildcard $(gendir)/$(hdr)), \
- $(error Missing generated UAPI file $(gendir)/$(hdr)) \
- ))
-input-files3-name := $(notdir $(input-files3))
+# Check that all expected files exist
+$(foreach hdr, $(header-y), \
+ $(if $(wildcard $(srcdir)/$(hdr)),, \
+ $(error Missing UAPI file $(srcdir)/$(hdr)) \
+ ))
+$(foreach hdr, $(genhdr-y), \
+ $(if $(wildcard $(gendir)/$(hdr)),, \
+ $(error Missing generated UAPI file $(gendir)/$(hdr)) \
+ ))
# Work out what needs to be removed
oldheaders := $(patsubst $(installdir)/%,%,$(wildcard $(installdir)/*.h))
@@ -78,9 +67,8 @@ printdir = $(patsubst $(INSTALL_HDR_PATH)/%/,%,$(dir $@))
quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
file$(if $(word 2, $(all-files)),s))
cmd_install = \
- $(CONFIG_SHELL) $< $(installdir) $(srcdir) $(input-files1-name); \
- $(CONFIG_SHELL) $< $(installdir) $(oldsrcdir) $(input-files2-name); \
- $(CONFIG_SHELL) $< $(installdir) $(gendir) $(input-files3-name); \
+ $(CONFIG_SHELL) $< $(installdir) $(srcdir) $(header-y); \
+ $(CONFIG_SHELL) $< $(installdir) $(gendir) $(genhdr-y); \
for F in $(wrapper-files); do \
echo "\#include <asm-generic/$$F>" > $(installdir)/$$F; \
done; \
--
2.8.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related
* [PATCH v2 6/7] Makefile.headersinst: remove destination-y option
From: Nicolas Dichtel @ 2017-01-06 9:43 UTC (permalink / raw)
To: arnd
Cc: linux-mips, alsa-devel, linux-ia64, linux-doc, airlied,
linux-fbdev, dri-devel, linux-mtd, sparclinux, linux-arch,
linux-s390, linux-am33-list, linux-c6x-dev, linux-rdma,
linux-hexagon, linux-sh, coreteam, fcoe-devel, xen-devel,
linux-snps-arc, linux-media, uclinux-h8-devel, linux-xtensa,
linux-kbuild, adi-buildroot-devel, linux-raid, linux-m68k,
openrisc, Nicolas Dichtel
In-Reply-To: <1483695839-18660-1-git-send-email-nicolas.dichtel@6wind.com>
This option was added in commit c7bb349e7c25 ("kbuild: introduce destination-y
for exported headers") but never used in-tree.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
Documentation/kbuild/makefiles.txt | 23 ++++-------------------
| 2 +-
2 files changed, 5 insertions(+), 20 deletions(-)
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index 9b9c4797fc55..37b525d329ae 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -46,9 +46,8 @@ This document describes the Linux kernel Makefiles.
=== 7 Kbuild syntax for exported headers
--- 7.1 header-y
--- 7.2 genhdr-y
- --- 7.3 destination-y
- --- 7.4 generic-y
- --- 7.5 generated-y
+ --- 7.3 generic-y
+ --- 7.4 generated-y
=== 8 Kbuild Variables
=== 9 Makefile language
@@ -1295,21 +1294,7 @@ See subsequent chapter for the syntax of the Kbuild file.
#include/linux/Kbuild
genhdr-y += version.h
- --- 7.3 destination-y
-
- When an architecture has a set of exported headers that needs to be
- exported to a different directory destination-y is used.
- destination-y specifies the destination directory for all exported
- headers in the file where it is present.
-
- Example:
- #arch/xtensa/platforms/s6105/include/platform/Kbuild
- destination-y := include/linux
-
- In the example above all exported headers in the Kbuild file
- will be located in the directory "include/linux" when exported.
-
- --- 7.4 generic-y
+ --- 7.3 generic-y
If an architecture uses a verbatim copy of a header from
include/asm-generic then this is listed in the file
@@ -1336,7 +1321,7 @@ See subsequent chapter for the syntax of the Kbuild file.
Example: termios.h
#include <asm-generic/termios.h>
- --- 7.5 generated-y
+ --- 7.4 generated-y
If an architecture generates other header files alongside generic-y
wrappers, and not included in genhdr-y, then generated-y specifies
--git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index 3e20d03432d2..876b42cfede4 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -14,7 +14,7 @@ kbuild-file := $(srctree)/$(obj)/Kbuild
include $(kbuild-file)
# called may set destination dir (when installing to asm/)
-_dst := $(if $(destination-y),$(destination-y),$(if $(dst),$(dst),$(obj)))
+_dst := $(if $(dst),$(dst),$(obj))
old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild
ifneq ($(wildcard $(old-kbuild-file)),)
--
2.8.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related
* [PATCH v2 7/7] uapi: export all headers under uapi directories
From: Nicolas Dichtel @ 2017-01-06 9:43 UTC (permalink / raw)
To: arnd
Cc: linux-mips, alsa-devel, linux-ia64, linux-doc, airlied,
linux-fbdev, dri-devel, linux-mtd, sparclinux, linux-arch,
linux-s390, linux-am33-list, linux-c6x-dev, linux-rdma,
linux-hexagon, linux-sh, coreteam, fcoe-devel, xen-devel,
linux-snps-arc, linux-media, uclinux-h8-devel, linux-xtensa,
linux-kbuild, adi-buildroot-devel, linux-raid, linux-m68k,
openrisc, Nicolas Dichtel
In-Reply-To: <1483695839-18660-1-git-send-email-nicolas.dichtel@6wind.com>
Regularly, when a new header is created in include/uapi/, the developer
forgets to add it in the corresponding Kbuild file. This error is usually
detected after the release is out.
In fact, all headers under uapi directories should be exported, thus it's
useless to have an exhaustive list.
After this patch, the following files, which were not exported, are now
exported (with make headers_install_all):
asm-unicore32/shmparam.h
asm-unicore32/ucontext.h
asm-hexagon/shmparam.h
asm-mips/ucontext.h
asm-mips/hwcap.h
asm-mips/reg.h
drm/vgem_drm.h
drm/armada_drm.h
drm/omap_drm.h
drm/etnaviv_drm.h
asm-tile/shmparam.h
asm-blackfin/shmparam.h
asm-blackfin/ucontext.h
asm-powerpc/perf_regs.h
rdma/qedr-abi.h
asm-parisc/kvm_para.h
asm-openrisc/shmparam.h
asm-nios2/kvm_para.h
asm-nios2/ucontext.h
asm-sh/kvm_para.h
asm-sh/ucontext.h
asm-xtensa/kvm_para.h
asm-avr32/kvm_para.h
asm-m32r/kvm_para.h
asm-h8300/shmparam.h
asm-h8300/ucontext.h
asm-metag/kvm_para.h
asm-metag/shmparam.h
asm-metag/ucontext.h
asm-m68k/kvm_para.h
asm-m68k/shmparam.h
linux/bcache.h
linux/kvm.h
linux/kvm_para.h
linux/kfd_ioctl.h
linux/cryptouser.h
linux/kcm.h
linux/kcov.h
linux/seg6_iptunnel.h
linux/stm.h
linux/genwqe
linux/genwqe/.install
linux/genwqe/genwqe_card.h
linux/genwqe/..install.cmd
linux/seg6.h
linux/cifs
linux/cifs/.install
linux/cifs/cifs_mount.h
linux/cifs/..install.cmd
linux/auto_dev-ioctl.h
Thanks to Julien Floret <julien.floret@6wind.com> for the tip to get all
subdirs with a pure makefile command.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
Documentation/kbuild/makefiles.txt | 41 ++-
arch/alpha/include/uapi/asm/Kbuild | 41 ---
arch/arc/include/uapi/asm/Kbuild | 3 -
arch/arm/include/uapi/asm/Kbuild | 17 -
arch/arm64/include/uapi/asm/Kbuild | 18 --
arch/avr32/include/uapi/asm/Kbuild | 20 --
arch/blackfin/include/uapi/asm/Kbuild | 17 -
arch/c6x/include/uapi/asm/Kbuild | 8 -
arch/cris/include/uapi/arch-v10/arch/Kbuild | 5 -
arch/cris/include/uapi/arch-v32/arch/Kbuild | 3 -
arch/cris/include/uapi/asm/Kbuild | 43 +--
arch/frv/include/uapi/asm/Kbuild | 33 --
arch/h8300/include/uapi/asm/Kbuild | 28 --
arch/hexagon/include/asm/Kbuild | 3 -
arch/hexagon/include/uapi/asm/Kbuild | 13 -
arch/ia64/include/uapi/asm/Kbuild | 45 ---
arch/m32r/include/uapi/asm/Kbuild | 31 --
arch/m68k/include/uapi/asm/Kbuild | 24 --
arch/metag/include/uapi/asm/Kbuild | 8 -
arch/microblaze/include/uapi/asm/Kbuild | 32 --
arch/mips/include/uapi/asm/Kbuild | 37 ---
arch/mn10300/include/uapi/asm/Kbuild | 32 --
arch/nios2/include/uapi/asm/Kbuild | 4 +-
arch/openrisc/include/asm/Kbuild | 3 -
arch/openrisc/include/uapi/asm/Kbuild | 8 -
arch/parisc/include/uapi/asm/Kbuild | 28 --
arch/powerpc/include/uapi/asm/Kbuild | 45 ---
arch/s390/include/uapi/asm/Kbuild | 52 ---
arch/score/include/asm/Kbuild | 4 -
arch/score/include/uapi/asm/Kbuild | 32 --
arch/sh/include/uapi/asm/Kbuild | 23 --
arch/sparc/include/uapi/asm/Kbuild | 48 ---
arch/tile/include/asm/Kbuild | 3 -
arch/tile/include/uapi/arch/Kbuild | 17 -
arch/tile/include/uapi/asm/Kbuild | 19 +-
arch/unicore32/include/uapi/asm/Kbuild | 6 -
arch/x86/include/uapi/asm/Kbuild | 59 ----
arch/xtensa/include/uapi/asm/Kbuild | 23 --
include/Kbuild | 2 -
include/asm-generic/Kbuild.asm | 1 -
include/scsi/fc/Kbuild | 0
include/uapi/Kbuild | 15 -
include/uapi/asm-generic/Kbuild | 36 ---
include/uapi/asm-generic/Kbuild.asm | 62 ++--
include/uapi/drm/Kbuild | 22 --
include/uapi/linux/Kbuild | 482 ----------------------------
include/uapi/linux/android/Kbuild | 2 -
include/uapi/linux/byteorder/Kbuild | 3 -
include/uapi/linux/caif/Kbuild | 3 -
include/uapi/linux/can/Kbuild | 6 -
include/uapi/linux/dvb/Kbuild | 9 -
include/uapi/linux/hdlc/Kbuild | 2 -
include/uapi/linux/hsi/Kbuild | 2 -
include/uapi/linux/iio/Kbuild | 3 -
include/uapi/linux/isdn/Kbuild | 2 -
include/uapi/linux/mmc/Kbuild | 2 -
include/uapi/linux/netfilter/Kbuild | 89 -----
include/uapi/linux/netfilter/ipset/Kbuild | 5 -
include/uapi/linux/netfilter_arp/Kbuild | 3 -
include/uapi/linux/netfilter_bridge/Kbuild | 18 --
include/uapi/linux/netfilter_ipv4/Kbuild | 10 -
include/uapi/linux/netfilter_ipv6/Kbuild | 13 -
include/uapi/linux/nfsd/Kbuild | 6 -
include/uapi/linux/raid/Kbuild | 3 -
include/uapi/linux/spi/Kbuild | 2 -
include/uapi/linux/sunrpc/Kbuild | 2 -
include/uapi/linux/tc_act/Kbuild | 15 -
include/uapi/linux/tc_ematch/Kbuild | 5 -
include/uapi/linux/usb/Kbuild | 12 -
include/uapi/linux/wimax/Kbuild | 2 -
include/uapi/misc/Kbuild | 2 -
include/uapi/mtd/Kbuild | 6 -
include/uapi/rdma/Kbuild | 18 --
include/uapi/rdma/hfi/Kbuild | 2 -
include/uapi/scsi/Kbuild | 6 -
include/uapi/scsi/fc/Kbuild | 5 -
include/uapi/sound/Kbuild | 16 -
include/uapi/video/Kbuild | 4 -
include/uapi/xen/Kbuild | 5 -
include/video/Kbuild | 0
| 39 +--
81 files changed, 73 insertions(+), 1745 deletions(-)
delete mode 100644 arch/cris/include/uapi/arch-v10/arch/Kbuild
delete mode 100644 arch/cris/include/uapi/arch-v32/arch/Kbuild
delete mode 100644 arch/tile/include/uapi/arch/Kbuild
delete mode 100644 include/Kbuild
delete mode 100644 include/asm-generic/Kbuild.asm
delete mode 100644 include/scsi/fc/Kbuild
delete mode 100644 include/uapi/Kbuild
delete mode 100644 include/uapi/asm-generic/Kbuild
delete mode 100644 include/uapi/drm/Kbuild
delete mode 100644 include/uapi/linux/Kbuild
delete mode 100644 include/uapi/linux/android/Kbuild
delete mode 100644 include/uapi/linux/byteorder/Kbuild
delete mode 100644 include/uapi/linux/caif/Kbuild
delete mode 100644 include/uapi/linux/can/Kbuild
delete mode 100644 include/uapi/linux/dvb/Kbuild
delete mode 100644 include/uapi/linux/hdlc/Kbuild
delete mode 100644 include/uapi/linux/hsi/Kbuild
delete mode 100644 include/uapi/linux/iio/Kbuild
delete mode 100644 include/uapi/linux/isdn/Kbuild
delete mode 100644 include/uapi/linux/mmc/Kbuild
delete mode 100644 include/uapi/linux/netfilter/Kbuild
delete mode 100644 include/uapi/linux/netfilter/ipset/Kbuild
delete mode 100644 include/uapi/linux/netfilter_arp/Kbuild
delete mode 100644 include/uapi/linux/netfilter_bridge/Kbuild
delete mode 100644 include/uapi/linux/netfilter_ipv4/Kbuild
delete mode 100644 include/uapi/linux/netfilter_ipv6/Kbuild
delete mode 100644 include/uapi/linux/nfsd/Kbuild
delete mode 100644 include/uapi/linux/raid/Kbuild
delete mode 100644 include/uapi/linux/spi/Kbuild
delete mode 100644 include/uapi/linux/sunrpc/Kbuild
delete mode 100644 include/uapi/linux/tc_act/Kbuild
delete mode 100644 include/uapi/linux/tc_ematch/Kbuild
delete mode 100644 include/uapi/linux/usb/Kbuild
delete mode 100644 include/uapi/linux/wimax/Kbuild
delete mode 100644 include/uapi/misc/Kbuild
delete mode 100644 include/uapi/mtd/Kbuild
delete mode 100644 include/uapi/rdma/Kbuild
delete mode 100644 include/uapi/rdma/hfi/Kbuild
delete mode 100644 include/uapi/scsi/Kbuild
delete mode 100644 include/uapi/scsi/fc/Kbuild
delete mode 100644 include/uapi/sound/Kbuild
delete mode 100644 include/uapi/video/Kbuild
delete mode 100644 include/uapi/xen/Kbuild
delete mode 100644 include/video/Kbuild
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index 37b525d329ae..53e31061ff18 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -44,7 +44,7 @@ This document describes the Linux kernel Makefiles.
--- 6.11 Post-link pass
=== 7 Kbuild syntax for exported headers
- --- 7.1 header-y
+ --- 7.1 subdir-y
--- 7.2 genhdr-y
--- 7.3 generic-y
--- 7.4 generated-y
@@ -1235,7 +1235,7 @@ When kbuild executes, the following steps are followed (roughly):
that may be shared between individual architectures.
The recommended approach how to use a generic header file is
to list the file in the Kbuild file.
- See "7.4 generic-y" for further info on syntax etc.
+ See "7.3 generic-y" for further info on syntax etc.
--- 6.11 Post-link pass
@@ -1262,37 +1262,36 @@ The pre-processing does:
- drop include of compiler.h
- drop all sections that are kernel internal (guarded by ifdef __KERNEL__)
-Each relevant directory contains a file name "Kbuild" which specifies the
-headers to be exported.
+All headers under include/uapi/, include/generated/uapi/,
+arch/<arch>/include/uapi/asm/ and arch/<arch>/include/generated/uapi/asm/
+are exported.
+
+A Kbuild file may be defined under arch/<arch>/include/uapi/asm/ and
+arch/<arch>/include/asm/ to list asm files coming from asm-generic.
See subsequent chapter for the syntax of the Kbuild file.
- --- 7.1 header-y
+ --- 7.1 subdir-y
- header-y specifies header files to be exported.
+ subdir-y may be used to specify a subdirectory to be exported.
Example:
- #include/linux/Kbuild
- header-y += usb/
- header-y += aio_abi.h
+ #arch/cris/include/uapi/asm/Kbuild
+ subdir-y += ../arch-v10/arch/
+ subdir-y += ../arch-v32/arch/
- The convention is to list one file per line and
+ The convention is to list one subdir per line and
preferably in alphabetic order.
- header-y also specifies which subdirectories to visit.
- A subdirectory is identified by a trailing '/' which
- can be seen in the example above for the usb subdirectory.
-
- Subdirectories are visited before their parent directories.
-
--- 7.2 genhdr-y
- genhdr-y specifies generated files to be exported.
- Generated files are special as they need to be looked
- up in another directory when doing 'make O=...' builds.
+ genhdr-y specifies asm files to be generated.
Example:
- #include/linux/Kbuild
- genhdr-y += version.h
+ #arch/x86/include/uapi/asm/Kbuild
+ genhdr-y += unistd_32.h
+ genhdr-y += unistd_64.h
+ genhdr-y += unistd_x32.h
+
--- 7.3 generic-y
diff --git a/arch/alpha/include/uapi/asm/Kbuild b/arch/alpha/include/uapi/asm/Kbuild
index d96f2ef5b639..b15bf6bc0e94 100644
--- a/arch/alpha/include/uapi/asm/Kbuild
+++ b/arch/alpha/include/uapi/asm/Kbuild
@@ -1,43 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += a.out.h
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += compiler.h
-header-y += console.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += fpu.h
-header-y += gentrap.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += pal.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += reg.h
-header-y += regdef.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += sysinfo.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
diff --git a/arch/arc/include/uapi/asm/Kbuild b/arch/arc/include/uapi/asm/Kbuild
index f50d02df78d5..b15bf6bc0e94 100644
--- a/arch/arc/include/uapi/asm/Kbuild
+++ b/arch/arc/include/uapi/asm/Kbuild
@@ -1,5 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-header-y += elf.h
-header-y += page.h
-header-y += cachectl.h
diff --git a/arch/arm/include/uapi/asm/Kbuild b/arch/arm/include/uapi/asm/Kbuild
index 46a76cd6acb6..607f702c2d62 100644
--- a/arch/arm/include/uapi/asm/Kbuild
+++ b/arch/arm/include/uapi/asm/Kbuild
@@ -1,23 +1,6 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-header-y += auxvec.h
-header-y += byteorder.h
-header-y += fcntl.h
-header-y += hwcap.h
-header-y += ioctls.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += perf_regs.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += setup.h
-header-y += sigcontext.h
-header-y += signal.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += unistd.h
genhdr-y += unistd-common.h
genhdr-y += unistd-oabi.h
genhdr-y += unistd-eabi.h
diff --git a/arch/arm64/include/uapi/asm/Kbuild b/arch/arm64/include/uapi/asm/Kbuild
index 825b0fe51c2b..13a97aa2285f 100644
--- a/arch/arm64/include/uapi/asm/Kbuild
+++ b/arch/arm64/include/uapi/asm/Kbuild
@@ -2,21 +2,3 @@
include include/uapi/asm-generic/Kbuild.asm
generic-y += kvm_para.h
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += fcntl.h
-header-y += hwcap.h
-header-y += kvm_para.h
-header-y += perf_regs.h
-header-y += param.h
-header-y += ptrace.h
-header-y += setup.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += stat.h
-header-y += statfs.h
-header-y += ucontext.h
-header-y += unistd.h
diff --git a/arch/avr32/include/uapi/asm/Kbuild b/arch/avr32/include/uapi/asm/Kbuild
index 08d8a3d76ea8..610395083364 100644
--- a/arch/avr32/include/uapi/asm/Kbuild
+++ b/arch/avr32/include/uapi/asm/Kbuild
@@ -1,26 +1,6 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-header-y += auxvec.h
-header-y += byteorder.h
-header-y += cachectl.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
generic-y += bitsperlong.h
generic-y += errno.h
generic-y += fcntl.h
diff --git a/arch/blackfin/include/uapi/asm/Kbuild b/arch/blackfin/include/uapi/asm/Kbuild
index 0bd28f77abc3..b15bf6bc0e94 100644
--- a/arch/blackfin/include/uapi/asm/Kbuild
+++ b/arch/blackfin/include/uapi/asm/Kbuild
@@ -1,19 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += bfin_sport.h
-header-y += byteorder.h
-header-y += cachectl.h
-header-y += fcntl.h
-header-y += fixed_code.h
-header-y += ioctls.h
-header-y += kvm_para.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += stat.h
-header-y += swab.h
-header-y += unistd.h
diff --git a/arch/c6x/include/uapi/asm/Kbuild b/arch/c6x/include/uapi/asm/Kbuild
index e9bc2b2b8147..13a97aa2285f 100644
--- a/arch/c6x/include/uapi/asm/Kbuild
+++ b/arch/c6x/include/uapi/asm/Kbuild
@@ -2,11 +2,3 @@
include include/uapi/asm-generic/Kbuild.asm
generic-y += kvm_para.h
-
-header-y += byteorder.h
-header-y += kvm_para.h
-header-y += ptrace.h
-header-y += setup.h
-header-y += sigcontext.h
-header-y += swab.h
-header-y += unistd.h
diff --git a/arch/cris/include/uapi/arch-v10/arch/Kbuild b/arch/cris/include/uapi/arch-v10/arch/Kbuild
deleted file mode 100644
index 9048c87a782b..000000000000
--- a/arch/cris/include/uapi/arch-v10/arch/Kbuild
+++ /dev/null
@@ -1,5 +0,0 @@
-# UAPI Header export list
-header-y += sv_addr.agh
-header-y += sv_addr_ag.h
-header-y += svinto.h
-header-y += user.h
diff --git a/arch/cris/include/uapi/arch-v32/arch/Kbuild b/arch/cris/include/uapi/arch-v32/arch/Kbuild
deleted file mode 100644
index 59efffd16b61..000000000000
--- a/arch/cris/include/uapi/arch-v32/arch/Kbuild
+++ /dev/null
@@ -1,3 +0,0 @@
-# UAPI Header export list
-header-y += cryptocop.h
-header-y += user.h
diff --git a/arch/cris/include/uapi/asm/Kbuild b/arch/cris/include/uapi/asm/Kbuild
index d5564a0ae66a..d0c5471856e0 100644
--- a/arch/cris/include/uapi/asm/Kbuild
+++ b/arch/cris/include/uapi/asm/Kbuild
@@ -1,44 +1,5 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-header-y += ../arch-v10/arch/
-header-y += ../arch-v32/arch/
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += elf.h
-header-y += elf_v10.h
-header-y += elf_v32.h
-header-y += errno.h
-header-y += ethernet.h
-header-y += etraxgpio.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += ptrace_v10.h
-header-y += ptrace_v32.h
-header-y += resource.h
-header-y += rs485.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += sync_serial.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
+subdir-y += ../arch-v10/arch/
+subdir-y += ../arch-v32/arch/
diff --git a/arch/frv/include/uapi/asm/Kbuild b/arch/frv/include/uapi/asm/Kbuild
index 42a2b33461c0..b15bf6bc0e94 100644
--- a/arch/frv/include/uapi/asm/Kbuild
+++ b/arch/frv/include/uapi/asm/Kbuild
@@ -1,35 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += registers.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
diff --git a/arch/h8300/include/uapi/asm/Kbuild b/arch/h8300/include/uapi/asm/Kbuild
index fb6101a5d4f1..b15bf6bc0e94 100644
--- a/arch/h8300/include/uapi/asm/Kbuild
+++ b/arch/h8300/include/uapi/asm/Kbuild
@@ -1,30 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += siginfo.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
diff --git a/arch/hexagon/include/asm/Kbuild b/arch/hexagon/include/asm/Kbuild
index db8ddabc6bd2..f3b1ceb5c1e4 100644
--- a/arch/hexagon/include/asm/Kbuild
+++ b/arch/hexagon/include/asm/Kbuild
@@ -1,6 +1,3 @@
-
-header-y += ucontext.h
-
generic-y += auxvec.h
generic-y += barrier.h
generic-y += bug.h
diff --git a/arch/hexagon/include/uapi/asm/Kbuild b/arch/hexagon/include/uapi/asm/Kbuild
index c31706c38631..b15bf6bc0e94 100644
--- a/arch/hexagon/include/uapi/asm/Kbuild
+++ b/arch/hexagon/include/uapi/asm/Kbuild
@@ -1,15 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += kvm_para.h
-header-y += param.h
-header-y += ptrace.h
-header-y += registers.h
-header-y += setup.h
-header-y += sigcontext.h
-header-y += signal.h
-header-y += swab.h
-header-y += unistd.h
-header-y += user.h
diff --git a/arch/ia64/include/uapi/asm/Kbuild b/arch/ia64/include/uapi/asm/Kbuild
index 891002bbb995..13a97aa2285f 100644
--- a/arch/ia64/include/uapi/asm/Kbuild
+++ b/arch/ia64/include/uapi/asm/Kbuild
@@ -2,48 +2,3 @@
include include/uapi/asm-generic/Kbuild.asm
generic-y += kvm_para.h
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += break.h
-header-y += byteorder.h
-header-y += cmpxchg.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += fpu.h
-header-y += gcc_intrin.h
-header-y += ia64regs.h
-header-y += intel_intrin.h
-header-y += intrinsics.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += perfmon.h
-header-y += perfmon_default_smpl.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += ptrace_offsets.h
-header-y += resource.h
-header-y += rse.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += ucontext.h
-header-y += unistd.h
-header-y += ustack.h
diff --git a/arch/m32r/include/uapi/asm/Kbuild b/arch/m32r/include/uapi/asm/Kbuild
index 43937a61d6cf..b15bf6bc0e94 100644
--- a/arch/m32r/include/uapi/asm/Kbuild
+++ b/arch/m32r/include/uapi/asm/Kbuild
@@ -1,33 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
diff --git a/arch/m68k/include/uapi/asm/Kbuild b/arch/m68k/include/uapi/asm/Kbuild
index 6a2d257bdfb2..64368077235a 100644
--- a/arch/m68k/include/uapi/asm/Kbuild
+++ b/arch/m68k/include/uapi/asm/Kbuild
@@ -9,27 +9,3 @@ generic-y += socket.h
generic-y += sockios.h
generic-y += termbits.h
generic-y += termios.h
-
-header-y += a.out.h
-header-y += bootinfo.h
-header-y += bootinfo-amiga.h
-header-y += bootinfo-apollo.h
-header-y += bootinfo-atari.h
-header-y += bootinfo-hp300.h
-header-y += bootinfo-mac.h
-header-y += bootinfo-q40.h
-header-y += bootinfo-vme.h
-header-y += byteorder.h
-header-y += cachectl.h
-header-y += fcntl.h
-header-y += ioctls.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += setup.h
-header-y += sigcontext.h
-header-y += signal.h
-header-y += stat.h
-header-y += swab.h
-header-y += unistd.h
diff --git a/arch/metag/include/uapi/asm/Kbuild b/arch/metag/include/uapi/asm/Kbuild
index ab78be2b6eb0..b29731ebd7a9 100644
--- a/arch/metag/include/uapi/asm/Kbuild
+++ b/arch/metag/include/uapi/asm/Kbuild
@@ -1,14 +1,6 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-header-y += byteorder.h
-header-y += ech.h
-header-y += ptrace.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += swab.h
-header-y += unistd.h
-
generic-y += mman.h
generic-y += resource.h
generic-y += setup.h
diff --git a/arch/microblaze/include/uapi/asm/Kbuild b/arch/microblaze/include/uapi/asm/Kbuild
index 1aac99f87df1..2178c78c7c1a 100644
--- a/arch/microblaze/include/uapi/asm/Kbuild
+++ b/arch/microblaze/include/uapi/asm/Kbuild
@@ -2,35 +2,3 @@
include include/uapi/asm-generic/Kbuild.asm
generic-y += types.h
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += elf.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += unistd.h
diff --git a/arch/mips/include/uapi/asm/Kbuild b/arch/mips/include/uapi/asm/Kbuild
index f2cf41461146..a0266feba9e6 100644
--- a/arch/mips/include/uapi/asm/Kbuild
+++ b/arch/mips/include/uapi/asm/Kbuild
@@ -2,40 +2,3 @@
include include/uapi/asm-generic/Kbuild.asm
generic-y += ipcbuf.h
-
-header-y += auxvec.h
-header-y += bitfield.h
-header-y += bitsperlong.h
-header-y += break.h
-header-y += byteorder.h
-header-y += cachectl.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += inst.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += sgidefs.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += sysmips.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
diff --git a/arch/mn10300/include/uapi/asm/Kbuild b/arch/mn10300/include/uapi/asm/Kbuild
index 040178cdb3eb..b15bf6bc0e94 100644
--- a/arch/mn10300/include/uapi/asm/Kbuild
+++ b/arch/mn10300/include/uapi/asm/Kbuild
@@ -1,34 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
diff --git a/arch/nios2/include/uapi/asm/Kbuild b/arch/nios2/include/uapi/asm/Kbuild
index e0bb972a50d7..766455d0d291 100644
--- a/arch/nios2/include/uapi/asm/Kbuild
+++ b/arch/nios2/include/uapi/asm/Kbuild
@@ -1,5 +1,3 @@
+# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += elf.h
-
generic-y += ucontext.h
diff --git a/arch/openrisc/include/asm/Kbuild b/arch/openrisc/include/asm/Kbuild
index 2832f031fb11..561915716fd9 100644
--- a/arch/openrisc/include/asm/Kbuild
+++ b/arch/openrisc/include/asm/Kbuild
@@ -1,6 +1,3 @@
-
-header-y += ucontext.h
-
generic-y += atomic.h
generic-y += auxvec.h
generic-y += barrier.h
diff --git a/arch/openrisc/include/uapi/asm/Kbuild b/arch/openrisc/include/uapi/asm/Kbuild
index 80761eb82b5f..b15bf6bc0e94 100644
--- a/arch/openrisc/include/uapi/asm/Kbuild
+++ b/arch/openrisc/include/uapi/asm/Kbuild
@@ -1,10 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += byteorder.h
-header-y += elf.h
-header-y += kvm_para.h
-header-y += param.h
-header-y += ptrace.h
-header-y += sigcontext.h
-header-y += unistd.h
diff --git a/arch/parisc/include/uapi/asm/Kbuild b/arch/parisc/include/uapi/asm/Kbuild
index 348356c99514..3971c60a7e7f 100644
--- a/arch/parisc/include/uapi/asm/Kbuild
+++ b/arch/parisc/include/uapi/asm/Kbuild
@@ -2,31 +2,3 @@
include include/uapi/asm-generic/Kbuild.asm
generic-y += resource.h
-
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += pdc.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
diff --git a/arch/powerpc/include/uapi/asm/Kbuild b/arch/powerpc/include/uapi/asm/Kbuild
index dab3717e3ea0..b15bf6bc0e94 100644
--- a/arch/powerpc/include/uapi/asm/Kbuild
+++ b/arch/powerpc/include/uapi/asm/Kbuild
@@ -1,47 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += bootx.h
-header-y += byteorder.h
-header-y += cputable.h
-header-y += eeh.h
-header-y += elf.h
-header-y += epapr_hcalls.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += nvram.h
-header-y += opal-prd.h
-header-y += param.h
-header-y += perf_event.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ps3fb.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += spu_info.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += tm.h
-header-y += types.h
-header-y += ucontext.h
-header-y += unistd.h
diff --git a/arch/s390/include/uapi/asm/Kbuild b/arch/s390/include/uapi/asm/Kbuild
index bf736e764cb4..b15bf6bc0e94 100644
--- a/arch/s390/include/uapi/asm/Kbuild
+++ b/arch/s390/include/uapi/asm/Kbuild
@@ -1,54 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += chpid.h
-header-y += chsc.h
-header-y += clp.h
-header-y += cmb.h
-header-y += dasd.h
-header-y += debug.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += hypfs.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm.h
-header-y += kvm_para.h
-header-y += kvm_perf.h
-header-y += kvm_virtio.h
-header-y += mman.h
-header-y += monwriter.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += qeth.h
-header-y += resource.h
-header-y += schid.h
-header-y += sclp_ctl.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sie.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += tape390.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += ucontext.h
-header-y += unistd.h
-header-y += virtio-ccw.h
-header-y += vtoc.h
-header-y += zcrypt.h
diff --git a/arch/score/include/asm/Kbuild b/arch/score/include/asm/Kbuild
index a05218ff3fe4..128ca7ec0220 100644
--- a/arch/score/include/asm/Kbuild
+++ b/arch/score/include/asm/Kbuild
@@ -1,7 +1,3 @@
-
-header-y +=
-
-
generic-y += barrier.h
generic-y += clkdev.h
generic-y += cputime.h
diff --git a/arch/score/include/uapi/asm/Kbuild b/arch/score/include/uapi/asm/Kbuild
index 040178cdb3eb..b15bf6bc0e94 100644
--- a/arch/score/include/uapi/asm/Kbuild
+++ b/arch/score/include/uapi/asm/Kbuild
@@ -1,34 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
diff --git a/arch/sh/include/uapi/asm/Kbuild b/arch/sh/include/uapi/asm/Kbuild
index 60613ae78513..b15bf6bc0e94 100644
--- a/arch/sh/include/uapi/asm/Kbuild
+++ b/arch/sh/include/uapi/asm/Kbuild
@@ -1,25 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += byteorder.h
-header-y += cachectl.h
-header-y += cpu-features.h
-header-y += hw_breakpoint.h
-header-y += ioctls.h
-header-y += posix_types.h
-header-y += posix_types_32.h
-header-y += posix_types_64.h
-header-y += ptrace.h
-header-y += ptrace_32.h
-header-y += ptrace_64.h
-header-y += setup.h
-header-y += sigcontext.h
-header-y += signal.h
-header-y += sockios.h
-header-y += stat.h
-header-y += swab.h
-header-y += types.h
-header-y += unistd.h
-header-y += unistd_32.h
-header-y += unistd_64.h
diff --git a/arch/sparc/include/uapi/asm/Kbuild b/arch/sparc/include/uapi/asm/Kbuild
index b5843ee09fb5..b15bf6bc0e94 100644
--- a/arch/sparc/include/uapi/asm/Kbuild
+++ b/arch/sparc/include/uapi/asm/Kbuild
@@ -1,50 +1,2 @@
# UAPI Header export list
-# User exported sparc header files
-
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += apc.h
-header-y += asi.h
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += display7seg.h
-header-y += envctrl.h
-header-y += errno.h
-header-y += fbio.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += jsflash.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += openpromio.h
-header-y += param.h
-header-y += perfctr.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += psr.h
-header-y += psrcompat.h
-header-y += pstate.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += traps.h
-header-y += uctx.h
-header-y += unistd.h
-header-y += utrap.h
-header-y += watchdog.h
diff --git a/arch/tile/include/asm/Kbuild b/arch/tile/include/asm/Kbuild
index 2d1f5638974c..057eaa533877 100644
--- a/arch/tile/include/asm/Kbuild
+++ b/arch/tile/include/asm/Kbuild
@@ -1,6 +1,3 @@
-
-header-y += ../arch/
-
generic-y += bug.h
generic-y += bugs.h
generic-y += clkdev.h
diff --git a/arch/tile/include/uapi/arch/Kbuild b/arch/tile/include/uapi/arch/Kbuild
deleted file mode 100644
index 97dfbecec6b6..000000000000
--- a/arch/tile/include/uapi/arch/Kbuild
+++ /dev/null
@@ -1,17 +0,0 @@
-# UAPI Header export list
-header-y += abi.h
-header-y += chip.h
-header-y += chip_tilegx.h
-header-y += chip_tilepro.h
-header-y += icache.h
-header-y += interrupts.h
-header-y += interrupts_32.h
-header-y += interrupts_64.h
-header-y += opcode.h
-header-y += opcode_tilegx.h
-header-y += opcode_tilepro.h
-header-y += sim.h
-header-y += sim_def.h
-header-y += spr_def.h
-header-y += spr_def_32.h
-header-y += spr_def_64.h
diff --git a/arch/tile/include/uapi/asm/Kbuild b/arch/tile/include/uapi/asm/Kbuild
index c20db8e428bf..e0a50111e07f 100644
--- a/arch/tile/include/uapi/asm/Kbuild
+++ b/arch/tile/include/uapi/asm/Kbuild
@@ -1,21 +1,6 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += cachectl.h
-header-y += hardwall.h
-header-y += kvm_para.h
-header-y += mman.h
-header-y += ptrace.h
-header-y += setup.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += stat.h
-header-y += swab.h
-header-y += ucontext.h
-header-y += unistd.h
-
generic-y += ucontext.h
+
+subdir-y += ../arch
diff --git a/arch/unicore32/include/uapi/asm/Kbuild b/arch/unicore32/include/uapi/asm/Kbuild
index 0514d7ad6855..13a97aa2285f 100644
--- a/arch/unicore32/include/uapi/asm/Kbuild
+++ b/arch/unicore32/include/uapi/asm/Kbuild
@@ -1,10 +1,4 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-header-y += byteorder.h
-header-y += kvm_para.h
-header-y += ptrace.h
-header-y += sigcontext.h
-header-y += unistd.h
-
generic-y += kvm_para.h
diff --git a/arch/x86/include/uapi/asm/Kbuild b/arch/x86/include/uapi/asm/Kbuild
index 3dec769cadf7..83b6e9a0dce4 100644
--- a/arch/x86/include/uapi/asm/Kbuild
+++ b/arch/x86/include/uapi/asm/Kbuild
@@ -4,62 +4,3 @@ include include/uapi/asm-generic/Kbuild.asm
genhdr-y += unistd_32.h
genhdr-y += unistd_64.h
genhdr-y += unistd_x32.h
-header-y += a.out.h
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += boot.h
-header-y += bootparam.h
-header-y += byteorder.h
-header-y += debugreg.h
-header-y += e820.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += hw_breakpoint.h
-header-y += hyperv.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += ist.h
-header-y += kvm.h
-header-y += kvm_para.h
-header-y += kvm_perf.h
-header-y += ldt.h
-header-y += mce.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += msr-index.h
-header-y += msr.h
-header-y += mtrr.h
-header-y += param.h
-header-y += perf_regs.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += posix_types_32.h
-header-y += posix_types_64.h
-header-y += posix_types_x32.h
-header-y += prctl.h
-header-y += processor-flags.h
-header-y += ptrace-abi.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += sigcontext32.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += svm.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += ucontext.h
-header-y += unistd.h
-header-y += vm86.h
-header-y += vmx.h
-header-y += vsyscall.h
diff --git a/arch/xtensa/include/uapi/asm/Kbuild b/arch/xtensa/include/uapi/asm/Kbuild
index 56aad54e7fb7..b15bf6bc0e94 100644
--- a/arch/xtensa/include/uapi/asm/Kbuild
+++ b/arch/xtensa/include/uapi/asm/Kbuild
@@ -1,25 +1,2 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
-
-header-y += auxvec.h
-header-y += byteorder.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += swab.h
-header-y += termbits.h
-header-y += types.h
-header-y += unistd.h
diff --git a/include/Kbuild b/include/Kbuild
deleted file mode 100644
index bab1145bc7a7..000000000000
--- a/include/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# Top-level Makefile calls into asm-$(ARCH)
-# List only non-arch directories below
diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm
deleted file mode 100644
index d2ee86b4c091..000000000000
--- a/include/asm-generic/Kbuild.asm
+++ /dev/null
@@ -1 +0,0 @@
-include include/uapi/asm-generic/Kbuild.asm
diff --git a/include/scsi/fc/Kbuild b/include/scsi/fc/Kbuild
deleted file mode 100644
index e69de29bb2d1..000000000000
diff --git a/include/uapi/Kbuild b/include/uapi/Kbuild
deleted file mode 100644
index 245aa6e05e6a..000000000000
--- a/include/uapi/Kbuild
+++ /dev/null
@@ -1,15 +0,0 @@
-# UAPI Header export list
-# Top-level Makefile calls into asm-$(ARCH)
-# List only non-arch directories below
-
-
-header-y += asm-generic/
-header-y += linux/
-header-y += sound/
-header-y += mtd/
-header-y += rdma/
-header-y += video/
-header-y += drm/
-header-y += xen/
-header-y += scsi/
-header-y += misc/
diff --git a/include/uapi/asm-generic/Kbuild b/include/uapi/asm-generic/Kbuild
deleted file mode 100644
index b73de7bb7a62..000000000000
--- a/include/uapi/asm-generic/Kbuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# UAPI Header export list
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += errno-base.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += int-l64.h
-header-y += int-ll64.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += kvm_para.h
-header-y += mman-common.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += shmparam.h
-header-y += siginfo.h
-header-y += signal-defs.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += ucontext.h
-header-y += unistd.h
diff --git a/include/uapi/asm-generic/Kbuild.asm b/include/uapi/asm-generic/Kbuild.asm
index fcd50b759217..c13805d5a2a0 100644
--- a/include/uapi/asm-generic/Kbuild.asm
+++ b/include/uapi/asm-generic/Kbuild.asm
@@ -8,38 +8,38 @@ opt-header += a.out.h
#
# Headers that are mandatory in usr/include/asm/
#
-header-y += auxvec.h
-header-y += bitsperlong.h
-header-y += byteorder.h
-header-y += errno.h
-header-y += fcntl.h
-header-y += ioctl.h
-header-y += ioctls.h
-header-y += ipcbuf.h
-header-y += mman.h
-header-y += msgbuf.h
-header-y += param.h
-header-y += poll.h
-header-y += posix_types.h
-header-y += ptrace.h
-header-y += resource.h
-header-y += sembuf.h
-header-y += setup.h
-header-y += shmbuf.h
-header-y += sigcontext.h
-header-y += siginfo.h
-header-y += signal.h
-header-y += socket.h
-header-y += sockios.h
-header-y += stat.h
-header-y += statfs.h
-header-y += swab.h
-header-y += termbits.h
-header-y += termios.h
-header-y += types.h
-header-y += unistd.h
+generic-y += auxvec.h
+generic-y += bitsperlong.h
+generic-y += byteorder.h
+generic-y += errno.h
+generic-y += fcntl.h
+generic-y += ioctl.h
+generic-y += ioctls.h
+generic-y += ipcbuf.h
+generic-y += mman.h
+generic-y += msgbuf.h
+generic-y += param.h
+generic-y += poll.h
+generic-y += posix_types.h
+generic-y += ptrace.h
+generic-y += resource.h
+generic-y += sembuf.h
+generic-y += setup.h
+generic-y += shmbuf.h
+generic-y += sigcontext.h
+generic-y += siginfo.h
+generic-y += signal.h
+generic-y += socket.h
+generic-y += sockios.h
+generic-y += stat.h
+generic-y += statfs.h
+generic-y += swab.h
+generic-y += termbits.h
+generic-y += termios.h
+generic-y += types.h
+generic-y += unistd.h
-header-y += $(foreach hdr,$(opt-header), \
+generic-y += $(foreach hdr,$(opt-header), \
$(if \
$(wildcard \
$(srctree)/arch/$(SRCARCH)/include/uapi/asm/$(hdr) \
diff --git a/include/uapi/drm/Kbuild b/include/uapi/drm/Kbuild
deleted file mode 100644
index 9355dd8eff3b..000000000000
--- a/include/uapi/drm/Kbuild
+++ /dev/null
@@ -1,22 +0,0 @@
-# UAPI Header export list
-header-y += drm.h
-header-y += drm_fourcc.h
-header-y += drm_mode.h
-header-y += drm_sarea.h
-header-y += amdgpu_drm.h
-header-y += exynos_drm.h
-header-y += i810_drm.h
-header-y += i915_drm.h
-header-y += mga_drm.h
-header-y += nouveau_drm.h
-header-y += qxl_drm.h
-header-y += r128_drm.h
-header-y += radeon_drm.h
-header-y += savage_drm.h
-header-y += sis_drm.h
-header-y += tegra_drm.h
-header-y += via_drm.h
-header-y += vmwgfx_drm.h
-header-y += msm_drm.h
-header-y += vc4_drm.h
-header-y += virtgpu_drm.h
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
deleted file mode 100644
index a8b93e685239..000000000000
--- a/include/uapi/linux/Kbuild
+++ /dev/null
@@ -1,482 +0,0 @@
-# UAPI Header export list
-header-y += android/
-header-y += byteorder/
-header-y += can/
-header-y += caif/
-header-y += dvb/
-header-y += hdlc/
-header-y += hsi/
-header-y += iio/
-header-y += isdn/
-header-y += mmc/
-header-y += nfsd/
-header-y += raid/
-header-y += spi/
-header-y += sunrpc/
-header-y += tc_act/
-header-y += tc_ematch/
-header-y += netfilter/
-header-y += netfilter_arp/
-header-y += netfilter_bridge/
-header-y += netfilter_ipv4/
-header-y += netfilter_ipv6/
-header-y += usb/
-header-y += wimax/
-
-genhdr-y += version.h
-
-ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/a.out.h \
- $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h),)
-header-y += a.out.h
-endif
-
-header-y += acct.h
-header-y += adb.h
-header-y += adfs_fs.h
-header-y += affs_hardblocks.h
-header-y += agpgart.h
-header-y += aio_abi.h
-header-y += am437x-vpfe.h
-header-y += apm_bios.h
-header-y += arcfb.h
-header-y += atalk.h
-header-y += atmapi.h
-header-y += atmarp.h
-header-y += atmbr2684.h
-header-y += atmclip.h
-header-y += atmdev.h
-header-y += atm_eni.h
-header-y += atm.h
-header-y += atm_he.h
-header-y += atm_idt77105.h
-header-y += atmioc.h
-header-y += atmlec.h
-header-y += atmmpc.h
-header-y += atm_nicstar.h
-header-y += atmppp.h
-header-y += atmsap.h
-header-y += atmsvc.h
-header-y += atm_tcp.h
-header-y += atm_zatm.h
-header-y += audit.h
-header-y += auto_fs4.h
-header-y += auto_fs.h
-header-y += auxvec.h
-header-y += ax25.h
-header-y += b1lli.h
-header-y += baycom.h
-header-y += bcm933xx_hcs.h
-header-y += bfs_fs.h
-header-y += binfmts.h
-header-y += blkpg.h
-header-y += blktrace_api.h
-header-y += blkzoned.h
-header-y += bpf_common.h
-header-y += bpf_perf_event.h
-header-y += bpf.h
-header-y += bpqether.h
-header-y += bsg.h
-header-y += bt-bmc.h
-header-y += btrfs.h
-header-y += can.h
-header-y += capability.h
-header-y += capi.h
-header-y += cciss_defs.h
-header-y += cciss_ioctl.h
-header-y += cdrom.h
-header-y += cec.h
-header-y += cec-funcs.h
-header-y += cgroupstats.h
-header-y += chio.h
-header-y += cm4000_cs.h
-header-y += cn_proc.h
-header-y += coda.h
-header-y += coda_psdev.h
-header-y += coff.h
-header-y += connector.h
-header-y += const.h
-header-y += cramfs_fs.h
-header-y += cuda.h
-header-y += cyclades.h
-header-y += cycx_cfm.h
-header-y += dcbnl.h
-header-y += dccp.h
-header-y += devlink.h
-header-y += dlmconstants.h
-header-y += dlm_device.h
-header-y += dlm.h
-header-y += dlm_netlink.h
-header-y += dlm_plock.h
-header-y += dm-ioctl.h
-header-y += dm-log-userspace.h
-header-y += dn.h
-header-y += dqblk_xfs.h
-header-y += edd.h
-header-y += efs_fs_sb.h
-header-y += elfcore.h
-header-y += elf-em.h
-header-y += elf-fdpic.h
-header-y += elf.h
-header-y += errno.h
-header-y += errqueue.h
-header-y += ethtool.h
-header-y += eventpoll.h
-header-y += fadvise.h
-header-y += falloc.h
-header-y += fanotify.h
-header-y += fb.h
-header-y += fcntl.h
-header-y += fd.h
-header-y += fdreg.h
-header-y += fib_rules.h
-header-y += fiemap.h
-header-y += filter.h
-header-y += firewire-cdev.h
-header-y += firewire-constants.h
-header-y += flat.h
-header-y += fou.h
-header-y += fs.h
-header-y += fsl_hypervisor.h
-header-y += fuse.h
-header-y += futex.h
-header-y += gameport.h
-header-y += genetlink.h
-header-y += gen_stats.h
-header-y += gfs2_ondisk.h
-header-y += gigaset_dev.h
-header-y += gpio.h
-header-y += gsmmux.h
-header-y += gtp.h
-header-y += hdlcdrv.h
-header-y += hdlc.h
-header-y += hdreg.h
-header-y += hiddev.h
-header-y += hid.h
-header-y += hidraw.h
-header-y += hpet.h
-header-y += hsr_netlink.h
-header-y += hyperv.h
-header-y += hysdn_if.h
-header-y += i2c-dev.h
-header-y += i2c.h
-header-y += i2o-dev.h
-header-y += i8k.h
-header-y += icmp.h
-header-y += icmpv6.h
-header-y += if_addr.h
-header-y += if_addrlabel.h
-header-y += if_alg.h
-header-y += if_arcnet.h
-header-y += if_arp.h
-header-y += if_bonding.h
-header-y += if_bridge.h
-header-y += if_cablemodem.h
-header-y += if_eql.h
-header-y += if_ether.h
-header-y += if_fc.h
-header-y += if_fddi.h
-header-y += if_frad.h
-header-y += if.h
-header-y += if_hippi.h
-header-y += if_infiniband.h
-header-y += if_link.h
-header-y += if_ltalk.h
-header-y += if_macsec.h
-header-y += if_packet.h
-header-y += if_phonet.h
-header-y += if_plip.h
-header-y += if_ppp.h
-header-y += if_pppol2tp.h
-header-y += if_pppox.h
-header-y += if_slip.h
-header-y += if_team.h
-header-y += if_tun.h
-header-y += if_tunnel.h
-header-y += if_vlan.h
-header-y += if_x25.h
-header-y += igmp.h
-header-y += ila.h
-header-y += in6.h
-header-y += inet_diag.h
-header-y += in.h
-header-y += inotify.h
-header-y += input.h
-header-y += input-event-codes.h
-header-y += in_route.h
-header-y += ioctl.h
-header-y += ip6_tunnel.h
-header-y += ipc.h
-header-y += ip.h
-header-y += ipmi.h
-header-y += ipmi_msgdefs.h
-header-y += ipsec.h
-header-y += ipv6.h
-header-y += ipv6_route.h
-header-y += ip_vs.h
-header-y += ipx.h
-header-y += irda.h
-header-y += irqnr.h
-header-y += isdn_divertif.h
-header-y += isdn.h
-header-y += isdnif.h
-header-y += isdn_ppp.h
-header-y += iso_fs.h
-header-y += ivtvfb.h
-header-y += ivtv.h
-header-y += ixjuser.h
-header-y += jffs2.h
-header-y += joystick.h
-header-y += kcmp.h
-header-y += kdev_t.h
-header-y += kd.h
-header-y += kernelcapi.h
-header-y += kernel.h
-header-y += kernel-page-flags.h
-header-y += kexec.h
-header-y += keyboard.h
-header-y += keyctl.h
-
-ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm.h \
- $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h),)
-header-y += kvm.h
-endif
-
-
-ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm_para.h \
- $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h),)
-header-y += kvm_para.h
-endif
-
-header-y += hw_breakpoint.h
-header-y += l2tp.h
-header-y += libc-compat.h
-header-y += lirc.h
-header-y += limits.h
-header-y += llc.h
-header-y += loop.h
-header-y += lp.h
-header-y += lwtunnel.h
-header-y += magic.h
-header-y += major.h
-header-y += map_to_7segment.h
-header-y += matroxfb.h
-header-y += mdio.h
-header-y += media.h
-header-y += media-bus-format.h
-header-y += mei.h
-header-y += membarrier.h
-header-y += memfd.h
-header-y += mempolicy.h
-header-y += meye.h
-header-y += mic_common.h
-header-y += mic_ioctl.h
-header-y += mii.h
-header-y += minix_fs.h
-header-y += mman.h
-header-y += mmtimer.h
-header-y += mpls.h
-header-y += mpls_iptunnel.h
-header-y += mqueue.h
-header-y += mroute6.h
-header-y += mroute.h
-header-y += msdos_fs.h
-header-y += msg.h
-header-y += mtio.h
-header-y += nbd.h
-header-y += ncp_fs.h
-header-y += ncp.h
-header-y += ncp_mount.h
-header-y += ncp_no.h
-header-y += ndctl.h
-header-y += neighbour.h
-header-y += netconf.h
-header-y += netdevice.h
-header-y += net_dropmon.h
-header-y += netfilter_arp.h
-header-y += netfilter_bridge.h
-header-y += netfilter_decnet.h
-header-y += netfilter.h
-header-y += netfilter_ipv4.h
-header-y += netfilter_ipv6.h
-header-y += net.h
-header-y += netlink_diag.h
-header-y += netlink.h
-header-y += netrom.h
-header-y += net_namespace.h
-header-y += net_tstamp.h
-header-y += nfc.h
-header-y += nfs2.h
-header-y += nfs3.h
-header-y += nfs4.h
-header-y += nfs4_mount.h
-header-y += nfsacl.h
-header-y += nfs_fs.h
-header-y += nfs.h
-header-y += nfs_idmap.h
-header-y += nfs_mount.h
-header-y += nl80211.h
-header-y += n_r3964.h
-header-y += nubus.h
-header-y += nvme_ioctl.h
-header-y += nvram.h
-header-y += omap3isp.h
-header-y += omapfb.h
-header-y += oom.h
-header-y += openvswitch.h
-header-y += packet_diag.h
-header-y += param.h
-header-y += parport.h
-header-y += patchkey.h
-header-y += pci.h
-header-y += pci_regs.h
-header-y += perf_event.h
-header-y += personality.h
-header-y += pfkeyv2.h
-header-y += pg.h
-header-y += phantom.h
-header-y += phonet.h
-header-y += pktcdvd.h
-header-y += pkt_cls.h
-header-y += pkt_sched.h
-header-y += pmu.h
-header-y += poll.h
-header-y += posix_acl.h
-header-y += posix_acl_xattr.h
-header-y += posix_types.h
-header-y += ppdev.h
-header-y += ppp-comp.h
-header-y += ppp_defs.h
-header-y += ppp-ioctl.h
-header-y += pps.h
-header-y += prctl.h
-header-y += psci.h
-header-y += ptp_clock.h
-header-y += ptrace.h
-header-y += qnx4_fs.h
-header-y += qnxtypes.h
-header-y += quota.h
-header-y += radeonfb.h
-header-y += random.h
-header-y += raw.h
-header-y += rds.h
-header-y += reboot.h
-header-y += reiserfs_fs.h
-header-y += reiserfs_xattr.h
-header-y += resource.h
-header-y += rfkill.h
-header-y += rio_cm_cdev.h
-header-y += rio_mport_cdev.h
-header-y += romfs_fs.h
-header-y += rose.h
-header-y += route.h
-header-y += rtc.h
-header-y += rtnetlink.h
-header-y += scc.h
-header-y += sched.h
-header-y += scif_ioctl.h
-header-y += screen_info.h
-header-y += sctp.h
-header-y += sdla.h
-header-y += seccomp.h
-header-y += securebits.h
-header-y += selinux_netlink.h
-header-y += sem.h
-header-y += serial_core.h
-header-y += serial.h
-header-y += serial_reg.h
-header-y += serio.h
-header-y += shm.h
-header-y += signalfd.h
-header-y += signal.h
-header-y += smiapp.h
-header-y += snmp.h
-header-y += sock_diag.h
-header-y += socket.h
-header-y += sockios.h
-header-y += sonet.h
-header-y += sonypi.h
-header-y += soundcard.h
-header-y += sound.h
-header-y += stat.h
-header-y += stddef.h
-header-y += string.h
-header-y += suspend_ioctls.h
-header-y += swab.h
-header-y += synclink.h
-header-y += sync_file.h
-header-y += sysctl.h
-header-y += sysinfo.h
-header-y += target_core_user.h
-header-y += taskstats.h
-header-y += tcp.h
-header-y += tcp_metrics.h
-header-y += telephony.h
-header-y += termios.h
-header-y += thermal.h
-header-y += time.h
-header-y += times.h
-header-y += timex.h
-header-y += tiocl.h
-header-y += tipc_config.h
-header-y += tipc_netlink.h
-header-y += tipc.h
-header-y += toshiba.h
-header-y += tty_flags.h
-header-y += tty.h
-header-y += types.h
-header-y += udf_fs_i.h
-header-y += udp.h
-header-y += uhid.h
-header-y += uinput.h
-header-y += uio.h
-header-y += uleds.h
-header-y += ultrasound.h
-header-y += un.h
-header-y += unistd.h
-header-y += unix_diag.h
-header-y += usbdevice_fs.h
-header-y += usbip.h
-header-y += utime.h
-header-y += utsname.h
-header-y += uuid.h
-header-y += uvcvideo.h
-header-y += v4l2-common.h
-header-y += v4l2-controls.h
-header-y += v4l2-dv-timings.h
-header-y += v4l2-mediabus.h
-header-y += v4l2-subdev.h
-header-y += veth.h
-header-y += vfio.h
-header-y += vhost.h
-header-y += videodev2.h
-header-y += virtio_9p.h
-header-y += virtio_balloon.h
-header-y += virtio_blk.h
-header-y += virtio_config.h
-header-y += virtio_console.h
-header-y += virtio_gpu.h
-header-y += virtio_ids.h
-header-y += virtio_input.h
-header-y += virtio_net.h
-header-y += virtio_pci.h
-header-y += virtio_ring.h
-header-y += virtio_rng.h
-header-y += virtio_scsi.h
-header-y += virtio_types.h
-header-y += virtio_vsock.h
-header-y += virtio_crypto.h
-header-y += vm_sockets.h
-header-y += vt.h
-header-y += vtpm_proxy.h
-header-y += wait.h
-header-y += wanrouter.h
-header-y += watchdog.h
-header-y += wimax.h
-header-y += wireless.h
-header-y += x25.h
-header-y += xattr.h
-header-y += xfrm.h
-header-y += xilinx-v4l2-controls.h
-header-y += zorro.h
-header-y += zorro_ids.h
-header-y += userfaultfd.h
diff --git a/include/uapi/linux/android/Kbuild b/include/uapi/linux/android/Kbuild
deleted file mode 100644
index ca011eec252a..000000000000
--- a/include/uapi/linux/android/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += binder.h
diff --git a/include/uapi/linux/byteorder/Kbuild b/include/uapi/linux/byteorder/Kbuild
deleted file mode 100644
index 619225b9ff2e..000000000000
--- a/include/uapi/linux/byteorder/Kbuild
+++ /dev/null
@@ -1,3 +0,0 @@
-# UAPI Header export list
-header-y += big_endian.h
-header-y += little_endian.h
diff --git a/include/uapi/linux/caif/Kbuild b/include/uapi/linux/caif/Kbuild
deleted file mode 100644
index 43396612d3a3..000000000000
--- a/include/uapi/linux/caif/Kbuild
+++ /dev/null
@@ -1,3 +0,0 @@
-# UAPI Header export list
-header-y += caif_socket.h
-header-y += if_caif.h
diff --git a/include/uapi/linux/can/Kbuild b/include/uapi/linux/can/Kbuild
deleted file mode 100644
index 21c91bf25a29..000000000000
--- a/include/uapi/linux/can/Kbuild
+++ /dev/null
@@ -1,6 +0,0 @@
-# UAPI Header export list
-header-y += bcm.h
-header-y += error.h
-header-y += gw.h
-header-y += netlink.h
-header-y += raw.h
diff --git a/include/uapi/linux/dvb/Kbuild b/include/uapi/linux/dvb/Kbuild
deleted file mode 100644
index d40942cfc627..000000000000
--- a/include/uapi/linux/dvb/Kbuild
+++ /dev/null
@@ -1,9 +0,0 @@
-# UAPI Header export list
-header-y += audio.h
-header-y += ca.h
-header-y += dmx.h
-header-y += frontend.h
-header-y += net.h
-header-y += osd.h
-header-y += version.h
-header-y += video.h
diff --git a/include/uapi/linux/hdlc/Kbuild b/include/uapi/linux/hdlc/Kbuild
deleted file mode 100644
index 8c1d2cb75e33..000000000000
--- a/include/uapi/linux/hdlc/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += ioctl.h
diff --git a/include/uapi/linux/hsi/Kbuild b/include/uapi/linux/hsi/Kbuild
deleted file mode 100644
index a16a00544258..000000000000
--- a/include/uapi/linux/hsi/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += hsi_char.h cs-protocol.h
diff --git a/include/uapi/linux/iio/Kbuild b/include/uapi/linux/iio/Kbuild
deleted file mode 100644
index 86f76d84c44f..000000000000
--- a/include/uapi/linux/iio/Kbuild
+++ /dev/null
@@ -1,3 +0,0 @@
-# UAPI Header export list
-header-y += events.h
-header-y += types.h
diff --git a/include/uapi/linux/isdn/Kbuild b/include/uapi/linux/isdn/Kbuild
deleted file mode 100644
index 89e52850bf29..000000000000
--- a/include/uapi/linux/isdn/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += capicmd.h
diff --git a/include/uapi/linux/mmc/Kbuild b/include/uapi/linux/mmc/Kbuild
deleted file mode 100644
index 8c1d2cb75e33..000000000000
--- a/include/uapi/linux/mmc/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += ioctl.h
diff --git a/include/uapi/linux/netfilter/Kbuild b/include/uapi/linux/netfilter/Kbuild
deleted file mode 100644
index 03f194aeadc5..000000000000
--- a/include/uapi/linux/netfilter/Kbuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# UAPI Header export list
-header-y += ipset/
-header-y += nf_conntrack_common.h
-header-y += nf_conntrack_ftp.h
-header-y += nf_conntrack_sctp.h
-header-y += nf_conntrack_tcp.h
-header-y += nf_conntrack_tuple_common.h
-header-y += nf_log.h
-header-y += nf_tables.h
-header-y += nf_tables_compat.h
-header-y += nf_nat.h
-header-y += nfnetlink.h
-header-y += nfnetlink_acct.h
-header-y += nfnetlink_compat.h
-header-y += nfnetlink_conntrack.h
-header-y += nfnetlink_cthelper.h
-header-y += nfnetlink_cttimeout.h
-header-y += nfnetlink_log.h
-header-y += nfnetlink_queue.h
-header-y += x_tables.h
-header-y += xt_AUDIT.h
-header-y += xt_CHECKSUM.h
-header-y += xt_CLASSIFY.h
-header-y += xt_CONNMARK.h
-header-y += xt_CONNSECMARK.h
-header-y += xt_CT.h
-header-y += xt_DSCP.h
-header-y += xt_HMARK.h
-header-y += xt_IDLETIMER.h
-header-y += xt_LED.h
-header-y += xt_LOG.h
-header-y += xt_MARK.h
-header-y += xt_NFLOG.h
-header-y += xt_NFQUEUE.h
-header-y += xt_RATEEST.h
-header-y += xt_SECMARK.h
-header-y += xt_SYNPROXY.h
-header-y += xt_TCPMSS.h
-header-y += xt_TCPOPTSTRIP.h
-header-y += xt_TEE.h
-header-y += xt_TPROXY.h
-header-y += xt_addrtype.h
-header-y += xt_bpf.h
-header-y += xt_cgroup.h
-header-y += xt_cluster.h
-header-y += xt_comment.h
-header-y += xt_connbytes.h
-header-y += xt_connlabel.h
-header-y += xt_connlimit.h
-header-y += xt_connmark.h
-header-y += xt_conntrack.h
-header-y += xt_cpu.h
-header-y += xt_dccp.h
-header-y += xt_devgroup.h
-header-y += xt_dscp.h
-header-y += xt_ecn.h
-header-y += xt_esp.h
-header-y += xt_hashlimit.h
-header-y += xt_helper.h
-header-y += xt_ipcomp.h
-header-y += xt_iprange.h
-header-y += xt_ipvs.h
-header-y += xt_l2tp.h
-header-y += xt_length.h
-header-y += xt_limit.h
-header-y += xt_mac.h
-header-y += xt_mark.h
-header-y += xt_multiport.h
-header-y += xt_nfacct.h
-header-y += xt_osf.h
-header-y += xt_owner.h
-header-y += xt_physdev.h
-header-y += xt_pkttype.h
-header-y += xt_policy.h
-header-y += xt_quota.h
-header-y += xt_rateest.h
-header-y += xt_realm.h
-header-y += xt_recent.h
-header-y += xt_rpfilter.h
-header-y += xt_sctp.h
-header-y += xt_set.h
-header-y += xt_socket.h
-header-y += xt_state.h
-header-y += xt_statistic.h
-header-y += xt_string.h
-header-y += xt_tcpmss.h
-header-y += xt_tcpudp.h
-header-y += xt_time.h
-header-y += xt_u32.h
diff --git a/include/uapi/linux/netfilter/ipset/Kbuild b/include/uapi/linux/netfilter/ipset/Kbuild
deleted file mode 100644
index d2680423d9ab..000000000000
--- a/include/uapi/linux/netfilter/ipset/Kbuild
+++ /dev/null
@@ -1,5 +0,0 @@
-# UAPI Header export list
-header-y += ip_set.h
-header-y += ip_set_bitmap.h
-header-y += ip_set_hash.h
-header-y += ip_set_list.h
diff --git a/include/uapi/linux/netfilter_arp/Kbuild b/include/uapi/linux/netfilter_arp/Kbuild
deleted file mode 100644
index 62d5637cc0ac..000000000000
--- a/include/uapi/linux/netfilter_arp/Kbuild
+++ /dev/null
@@ -1,3 +0,0 @@
-# UAPI Header export list
-header-y += arp_tables.h
-header-y += arpt_mangle.h
diff --git a/include/uapi/linux/netfilter_bridge/Kbuild b/include/uapi/linux/netfilter_bridge/Kbuild
deleted file mode 100644
index 0fbad8ef96de..000000000000
--- a/include/uapi/linux/netfilter_bridge/Kbuild
+++ /dev/null
@@ -1,18 +0,0 @@
-# UAPI Header export list
-header-y += ebt_802_3.h
-header-y += ebt_among.h
-header-y += ebt_arp.h
-header-y += ebt_arpreply.h
-header-y += ebt_ip.h
-header-y += ebt_ip6.h
-header-y += ebt_limit.h
-header-y += ebt_log.h
-header-y += ebt_mark_m.h
-header-y += ebt_mark_t.h
-header-y += ebt_nat.h
-header-y += ebt_nflog.h
-header-y += ebt_pkttype.h
-header-y += ebt_redirect.h
-header-y += ebt_stp.h
-header-y += ebt_vlan.h
-header-y += ebtables.h
diff --git a/include/uapi/linux/netfilter_ipv4/Kbuild b/include/uapi/linux/netfilter_ipv4/Kbuild
deleted file mode 100644
index ecb291df390e..000000000000
--- a/include/uapi/linux/netfilter_ipv4/Kbuild
+++ /dev/null
@@ -1,10 +0,0 @@
-# UAPI Header export list
-header-y += ip_tables.h
-header-y += ipt_CLUSTERIP.h
-header-y += ipt_ECN.h
-header-y += ipt_LOG.h
-header-y += ipt_REJECT.h
-header-y += ipt_TTL.h
-header-y += ipt_ah.h
-header-y += ipt_ecn.h
-header-y += ipt_ttl.h
diff --git a/include/uapi/linux/netfilter_ipv6/Kbuild b/include/uapi/linux/netfilter_ipv6/Kbuild
deleted file mode 100644
index 75a668ca2353..000000000000
--- a/include/uapi/linux/netfilter_ipv6/Kbuild
+++ /dev/null
@@ -1,13 +0,0 @@
-# UAPI Header export list
-header-y += ip6_tables.h
-header-y += ip6t_HL.h
-header-y += ip6t_LOG.h
-header-y += ip6t_NPT.h
-header-y += ip6t_REJECT.h
-header-y += ip6t_ah.h
-header-y += ip6t_frag.h
-header-y += ip6t_hl.h
-header-y += ip6t_ipv6header.h
-header-y += ip6t_mh.h
-header-y += ip6t_opts.h
-header-y += ip6t_rt.h
diff --git a/include/uapi/linux/nfsd/Kbuild b/include/uapi/linux/nfsd/Kbuild
deleted file mode 100644
index c11bc404053c..000000000000
--- a/include/uapi/linux/nfsd/Kbuild
+++ /dev/null
@@ -1,6 +0,0 @@
-# UAPI Header export list
-header-y += cld.h
-header-y += debug.h
-header-y += export.h
-header-y += nfsfh.h
-header-y += stats.h
diff --git a/include/uapi/linux/raid/Kbuild b/include/uapi/linux/raid/Kbuild
deleted file mode 100644
index e2c3d25405d7..000000000000
--- a/include/uapi/linux/raid/Kbuild
+++ /dev/null
@@ -1,3 +0,0 @@
-# UAPI Header export list
-header-y += md_p.h
-header-y += md_u.h
diff --git a/include/uapi/linux/spi/Kbuild b/include/uapi/linux/spi/Kbuild
deleted file mode 100644
index 0cc747eff165..000000000000
--- a/include/uapi/linux/spi/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += spidev.h
diff --git a/include/uapi/linux/sunrpc/Kbuild b/include/uapi/linux/sunrpc/Kbuild
deleted file mode 100644
index 8e02e47c20fb..000000000000
--- a/include/uapi/linux/sunrpc/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += debug.h
diff --git a/include/uapi/linux/tc_act/Kbuild b/include/uapi/linux/tc_act/Kbuild
deleted file mode 100644
index e3db7403296f..000000000000
--- a/include/uapi/linux/tc_act/Kbuild
+++ /dev/null
@@ -1,15 +0,0 @@
-# UAPI Header export list
-header-y += tc_csum.h
-header-y += tc_defact.h
-header-y += tc_gact.h
-header-y += tc_ipt.h
-header-y += tc_mirred.h
-header-y += tc_nat.h
-header-y += tc_pedit.h
-header-y += tc_skbedit.h
-header-y += tc_vlan.h
-header-y += tc_bpf.h
-header-y += tc_connmark.h
-header-y += tc_ife.h
-header-y += tc_tunnel_key.h
-header-y += tc_skbmod.h
diff --git a/include/uapi/linux/tc_ematch/Kbuild b/include/uapi/linux/tc_ematch/Kbuild
deleted file mode 100644
index 53fca3925535..000000000000
--- a/include/uapi/linux/tc_ematch/Kbuild
+++ /dev/null
@@ -1,5 +0,0 @@
-# UAPI Header export list
-header-y += tc_em_cmp.h
-header-y += tc_em_meta.h
-header-y += tc_em_nbyte.h
-header-y += tc_em_text.h
diff --git a/include/uapi/linux/usb/Kbuild b/include/uapi/linux/usb/Kbuild
deleted file mode 100644
index 4cc4d6e7e523..000000000000
--- a/include/uapi/linux/usb/Kbuild
+++ /dev/null
@@ -1,12 +0,0 @@
-# UAPI Header export list
-header-y += audio.h
-header-y += cdc.h
-header-y += cdc-wdm.h
-header-y += ch11.h
-header-y += ch9.h
-header-y += functionfs.h
-header-y += g_printer.h
-header-y += gadgetfs.h
-header-y += midi.h
-header-y += tmc.h
-header-y += video.h
diff --git a/include/uapi/linux/wimax/Kbuild b/include/uapi/linux/wimax/Kbuild
deleted file mode 100644
index 1c97be49971f..000000000000
--- a/include/uapi/linux/wimax/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += i2400m.h
diff --git a/include/uapi/misc/Kbuild b/include/uapi/misc/Kbuild
deleted file mode 100644
index e96cae7d58c9..000000000000
--- a/include/uapi/misc/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# misc Header export list
-header-y += cxl.h
diff --git a/include/uapi/mtd/Kbuild b/include/uapi/mtd/Kbuild
deleted file mode 100644
index 5a691e10cd0e..000000000000
--- a/include/uapi/mtd/Kbuild
+++ /dev/null
@@ -1,6 +0,0 @@
-# UAPI Header export list
-header-y += inftl-user.h
-header-y += mtd-abi.h
-header-y += mtd-user.h
-header-y += nftl-user.h
-header-y += ubi-user.h
diff --git a/include/uapi/rdma/Kbuild b/include/uapi/rdma/Kbuild
deleted file mode 100644
index 82bdf5626859..000000000000
--- a/include/uapi/rdma/Kbuild
+++ /dev/null
@@ -1,18 +0,0 @@
-# UAPI Header export list
-header-y += ib_user_cm.h
-header-y += ib_user_mad.h
-header-y += ib_user_sa.h
-header-y += ib_user_verbs.h
-header-y += rdma_netlink.h
-header-y += rdma_user_cm.h
-header-y += hfi/
-header-y += rdma_user_rxe.h
-header-y += cxgb3-abi.h
-header-y += cxgb4-abi.h
-header-y += mlx4-abi.h
-header-y += mlx5-abi.h
-header-y += mthca-abi.h
-header-y += nes-abi.h
-header-y += ocrdma-abi.h
-header-y += hns-abi.h
-header-y += vmw_pvrdma-abi.h
diff --git a/include/uapi/rdma/hfi/Kbuild b/include/uapi/rdma/hfi/Kbuild
deleted file mode 100644
index ef23c294fc71..000000000000
--- a/include/uapi/rdma/hfi/Kbuild
+++ /dev/null
@@ -1,2 +0,0 @@
-# UAPI Header export list
-header-y += hfi1_user.h
diff --git a/include/uapi/scsi/Kbuild b/include/uapi/scsi/Kbuild
deleted file mode 100644
index d791e0ad509d..000000000000
--- a/include/uapi/scsi/Kbuild
+++ /dev/null
@@ -1,6 +0,0 @@
-# UAPI Header export list
-header-y += fc/
-header-y += scsi_bsg_fc.h
-header-y += scsi_netlink.h
-header-y += scsi_netlink_fc.h
-header-y += cxlflash_ioctl.h
diff --git a/include/uapi/scsi/fc/Kbuild b/include/uapi/scsi/fc/Kbuild
deleted file mode 100644
index 5ead9fac265c..000000000000
--- a/include/uapi/scsi/fc/Kbuild
+++ /dev/null
@@ -1,5 +0,0 @@
-# UAPI Header export list
-header-y += fc_els.h
-header-y += fc_fs.h
-header-y += fc_gs.h
-header-y += fc_ns.h
diff --git a/include/uapi/sound/Kbuild b/include/uapi/sound/Kbuild
deleted file mode 100644
index 9578d8bdbf31..000000000000
--- a/include/uapi/sound/Kbuild
+++ /dev/null
@@ -1,16 +0,0 @@
-# UAPI Header export list
-header-y += asequencer.h
-header-y += asoc.h
-header-y += asound.h
-header-y += asound_fm.h
-header-y += compress_offload.h
-header-y += compress_params.h
-header-y += emu10k1.h
-header-y += firewire.h
-header-y += hdsp.h
-header-y += hdspm.h
-header-y += sb16_csp.h
-header-y += sfnt_info.h
-header-y += tlv.h
-header-y += usb_stream.h
-header-y += snd_sst_tokens.h
diff --git a/include/uapi/video/Kbuild b/include/uapi/video/Kbuild
deleted file mode 100644
index ac7203bb32cc..000000000000
--- a/include/uapi/video/Kbuild
+++ /dev/null
@@ -1,4 +0,0 @@
-# UAPI Header export list
-header-y += edid.h
-header-y += sisfb.h
-header-y += uvesafb.h
diff --git a/include/uapi/xen/Kbuild b/include/uapi/xen/Kbuild
deleted file mode 100644
index 5c459628e8c7..000000000000
--- a/include/uapi/xen/Kbuild
+++ /dev/null
@@ -1,5 +0,0 @@
-# UAPI Header export list
-header-y += evtchn.h
-header-y += gntalloc.h
-header-y += gntdev.h
-header-y += privcmd.h
--git a/include/video/Kbuild b/include/video/Kbuild
deleted file mode 100644
index e69de29bb2d1..000000000000
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index 876b42cfede4..bb93f8466a35 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -1,17 +1,18 @@
# ==========================================================================
# Installing headers
#
-# header-y - list files to be installed. They are preprocessed
-# to remove __KERNEL__ section of the file
-# genhdr-y - Same as header-y but in a generated/ directory
+# All headers under include/uapi, include/generated/uapi,
+# arch/<arch>/include/uapi/asm and /include/generated/uapi/asm are exported.
+# They are preprocessed to remove __KERNEL__ section of the file.
#
# ==========================================================================
# generated header directory
gen := $(if $(gen),$(gen),$(subst include/,include/generated/,$(obj)))
+# Kbuild file is optional
kbuild-file := $(srctree)/$(obj)/Kbuild
-include $(kbuild-file)
+-include $(kbuild-file)
# called may set destination dir (when installing to asm/)
_dst := $(if $(dst),$(dst),$(obj))
@@ -25,9 +26,12 @@ include scripts/Kbuild.include
installdir := $(INSTALL_HDR_PATH)/$(subst uapi/,,$(_dst))
-header-y := $(sort $(header-y))
-subdirs := $(patsubst %/,%,$(filter %/, $(header-y)))
-header-y := $(filter-out %/, $(header-y))
+subdirs := $(patsubst $(srctree)/$(obj)/%/.,%,$(wildcard $(srctree)/$(obj)/*/.))
+subdirs += $(subdir-y)
+header-files := $(notdir $(wildcard $(srctree)/$(obj)/*.h))
+header-files += $(notdir $(wildcard $(srctree)/$(obj)/*.agh))
+genhdr-files := $(notdir $(wildcard $(srctree)/$(gen)/*.h))
+genhdr-files := $(filter-out $(header-files), $(genhdr-files))
# files used to track state of install/check
install-file := $(installdir)/.install
@@ -35,26 +39,17 @@ check-file := $(installdir)/.check
# generic-y list all files an architecture uses from asm-generic
# Use this to build a list of headers which require a wrapper
-wrapper-files := $(filter $(header-y), $(generic-y))
+generic-files := $(notdir $(wildcard $(srctree)/include/uapi/asm-generic/*.h))
+wrapper-files := $(filter $(generic-files), $(generic-y))
+wrapper-files := $(filter-out $(header-files), $(wrapper-files))
srcdir := $(srctree)/$(obj)
gendir := $(objtree)/$(gen)
# all headers files for this dir
-header-y := $(filter-out $(generic-y), $(header-y))
-all-files := $(header-y) $(genhdr-y) $(wrapper-files)
+all-files := $(header-files) $(genhdr-files) $(wrapper-files)
output-files := $(addprefix $(installdir)/, $(all-files))
-# Check that all expected files exist
-$(foreach hdr, $(header-y), \
- $(if $(wildcard $(srcdir)/$(hdr)),, \
- $(error Missing UAPI file $(srcdir)/$(hdr)) \
- ))
-$(foreach hdr, $(genhdr-y), \
- $(if $(wildcard $(gendir)/$(hdr)),, \
- $(error Missing generated UAPI file $(gendir)/$(hdr)) \
- ))
-
# Work out what needs to be removed
oldheaders := $(patsubst $(installdir)/%,%,$(wildcard $(installdir)/*.h))
unwanted := $(filter-out $(all-files),$(oldheaders))
@@ -67,8 +62,8 @@ printdir = $(patsubst $(INSTALL_HDR_PATH)/%/,%,$(dir $@))
quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
file$(if $(word 2, $(all-files)),s))
cmd_install = \
- $(CONFIG_SHELL) $< $(installdir) $(srcdir) $(header-y); \
- $(CONFIG_SHELL) $< $(installdir) $(gendir) $(genhdr-y); \
+ $(CONFIG_SHELL) $< $(installdir) $(srcdir) $(header-files); \
+ $(CONFIG_SHELL) $< $(installdir) $(gendir) $(genhdr-files); \
for F in $(wrapper-files); do \
echo "\#include <asm-generic/$$F>" > $(installdir)/$$F; \
done; \
--
2.8.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related
* Re: ubi_io_read: error -74 (ECC error)
From: Boris Brezillon @ 2017-01-06 11:30 UTC (permalink / raw)
To: Anurag Raghavan (RBEI/ETW11)
Cc: linux-mips@linux-mips.org, alsa-devel@alsa-project.org,
linux-ia64@vger.kernel.org, linux-doc@vger.kernel.org,
airlied@linux.ie, linux-fbdev@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-mtd@lists.infradead.org,
sparclinux@vger.kernel.org, linux-arch@vger.kernel.org,
linux-s390@vger.kernel.org, linux-am33-list@redhat.com,
linux-c6x-dev@linux-c6x.org, linux-rdma@vger.kernel.org,
linux-hexagon@vger.kernel.org
In-Reply-To: <38f0cfac3dbe4ea89da84c7fbf667833@SGPMBX1023.APAC.bosch.com>
Hi Raghavan,
On Fri, 6 Jan 2017 10:07:29 +0000
"Anurag Raghavan (RBEI/ETW11)" <Raghavan.Anurag@in.bosch.com> wrote:
> Hi All,
>
> My appdata partition could not be mounted or where the partition was not able to be used. Anyone can help me to find out the root cause of this. What are the possibilities of this ubifs corruption. Any patched are available to fix this issue.
Can you please stop sending over and over the same message in the hope
that someone will magically solve the problem for you. Pinging
maintainers is accepted but not 3 times in 2 days.
>
> I am using the kernel version-30.3.5
It's not even a valid kernel version (probably a kerne, and we'll need a
lot more than the 10 lines of log you provided to help you debug your
driver, like the boot logs, a reference to the kernel sources you're
using, after how much time this problem occurred...
> Any kernel patches are available to solve this issue...??
What's your NAND controller? It seems related to a NAND driver issue.
Regards,
Boris
>
> Error logs:
>
> [ 1.797141] UBI error: ubi_io_read: error -74 (ECC error) while reading 253952 bytes from PEB 445:8192, read 253952 bytes
> [ 1.808274] UBIFS error (pid 491): ubifs_scan: corrupt empty space at LEB 489:233760
> [ 1.816037] UBIFS error (pid 491): ubifs_scanned_corruption: corruption at LEB 489:233760
> [ 1.828660] UBIFS error (pid 491): ubifs_scan: LEB 489 scanning failed
> [ 1.835215] UBIFS warning (pid 491): ubifs_ro_mode: switched to read-only mode, error -117
> [ 1.843502] UBIFS error (pid 491): make_reservation: cannot reserve 58 bytes in jhead 2, error -117
> [ 1.852569] UBIFS error (pid 491): do_writepage: cannot write page 0 of inode 76584, error -117
> dpkg: error: unable to sync new file '/var/lib/dpkg/arch-new': Structure needs cleaning
>
> Best regards
>
> Raghavan Anurag
> RBEI/ETW1
>
> Tel. +91(422)667-4001 | Mobil 9986968950
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply
* RE: ubi_io_read: error -74 (ECC error)
From: Anurag Raghavan (RBEI/ETW11) @ 2017-01-06 11:58 UTC (permalink / raw)
To: Boris Brezillon
Cc: linux-mips@linux-mips.org, alsa-devel@alsa-project.org,
linux-ia64@vger.kernel.org, linux-doc@vger.kernel.org,
airlied@linux.ie, linux-fbdev@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-mtd@lists.infradead.org,
sparclinux@vger.kernel.org, linux-arch@vger.kernel.org,
linux-s390@vger.kernel.org, linux-am33-list@redhat.com,
linux-c6x-dev@linux-c6x.org, linux-rdma@vger.kernel.org,
linux-hexagon@vger.kernel.org
In-Reply-To: <20170106123053.4a5ffabc@bbrezillon>
[-- Attachment #1: Type: text/plain, Size: 4207 bytes --]
Sorry Boris, by mistake it happened.
I am attaching my full log here. This issue is happening very rarely. I am using mfg-tool to flash. I am recreating this issue by continuously flashing the partition.
And my kernel version is 3.0.35
Best regards
Raghavan Anurag
RBEI/ETW1
Tel. +91(422)667-4001 | Mobil 9986968950
-----Original Message-----
From: linux-mtd [mailto:linux-mtd-bounces@lists.infradead.org] On Behalf Of Boris Brezillon
Sent: Friday, January 06, 2017 5:01 PM
To: Anurag Raghavan (RBEI/ETW11) <Raghavan.Anurag@in.bosch.com>
Cc: linux-mips@linux-mips.org; alsa-devel@alsa-project.org; linux-ia64@vger.kernel.org; linux-doc@vger.kernel.org; airlied@linux.ie; linux-fbdev@vger.kernel.org; dri-devel@lists.freedesktop.org; linux-mtd@lists.infradead.org; sparclinux@vger.kernel.org; linux-arch@vger.kernel.org; linux-s390@vger.kernel.org; linux-am33-list@redhat.com; linux-c6x-dev@linux-c6x.org; linux-rdma@vger.kernel.org; linux-hexagon@vger.kernel.org; linux-sh@vger.kernel.org; coreteam@netfilter.org; fcoe-devel@open-fcoe.org; xen-devel@lists.xenproject.org; linux-snps-arc@lists.infradead.org; linux-media@vger.kernel.org; uclinux-h8-devel@lists.sourceforge.jp; linux-xtensa@linux-xtensa.org; arnd@arndb.de; linux-kbuild@vger.kernel.org; adi-buildroot-devel@lists.sourceforge.net; linux-raid@vger.kernel.org; linux-m68k@lists.linux-m68k.org; openrisc@lists.librecores.org; Nicolas Dichtel <nicolas.dichtel@6wind.com>; linux-metag@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-nfs@vger.kernel.org; linux-cris-kernel@axis.com; linux-parisc@vger.kernel.org; netdev@vger.kernel.org; linux-mmc@vger.kernel.org; linux-kernel@vger.kernel.org; linux-spi@vger.kernel.org; mmarek@suse.com; netfilter-devel@vger.kernel.org; linux-alpha@vger.kernel.org; nios2-dev@lists.rocketboards.org; linuxppc-dev@lists.ozlabs.org; davem@davemloft.net
Subject: Re: ubi_io_read: error -74 (ECC error)
Hi Raghavan,
On Fri, 6 Jan 2017 10:07:29 +0000
"Anurag Raghavan (RBEI/ETW11)" <Raghavan.Anurag@in.bosch.com> wrote:
> Hi All,
>
> My appdata partition could not be mounted or where the partition was not able to be used. Anyone can help me to find out the root cause of this. What are the possibilities of this ubifs corruption. Any patched are available to fix this issue.
Can you please stop sending over and over the same message in the hope that someone will magically solve the problem for you. Pinging maintainers is accepted but not 3 times in 2 days.
>
> I am using the kernel version-30.3.5
It's not even a valid kernel version (probably a kerne, and we'll need a lot more than the 10 lines of log you provided to help you debug your driver, like the boot logs, a reference to the kernel sources you're using, after how much time this problem occurred...
> Any kernel patches are available to solve this issue...??
What's your NAND controller? It seems related to a NAND driver issue.
Regards,
Boris
>
> Error logs:
>
> [ 1.797141] UBI error: ubi_io_read: error -74 (ECC error) while reading 253952 bytes from PEB 445:8192, read 253952 bytes
> [ 1.808274] UBIFS error (pid 491): ubifs_scan: corrupt empty space at LEB 489:233760
> [ 1.816037] UBIFS error (pid 491): ubifs_scanned_corruption: corruption at LEB 489:233760
> [ 1.828660] UBIFS error (pid 491): ubifs_scan: LEB 489 scanning failed
> [ 1.835215] UBIFS warning (pid 491): ubifs_ro_mode: switched to read-only mode, error -117
> [ 1.843502] UBIFS error (pid 491): make_reservation: cannot reserve 58 bytes in jhead 2, error -117
> [ 1.852569] UBIFS error (pid 491): do_writepage: cannot write page 0 of inode 76584, error -117
> dpkg: error: unable to sync new file '/var/lib/dpkg/arch-new':
> Structure needs cleaning
>
> Best regards
>
> Raghavan Anurag
> RBEI/ETW1
>
> Tel. +91(422)667-4001 | Mobil 9986968950
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
[-- Attachment #2: serial_logs.txt --]
[-- Type: text/plain, Size: 140079 bytes --]
Jan 1 00[ 5.153807] UBI: number of user volumes: 1
:00:04 BUI270 user.notice kernel:[ 5.161042] UBI: available PEBs: 0
[ 5.109240] UBI: number of go[ 5.168233] UBI: total number of reserved PEBs: 3344
od PEBs: 3344
Jan 1 00:0[ 5.176238] UBI: number of PEBs reserved for bad PEB handling: 33
0:04 BUI270 user.notice kernel: [[ 5.185123] UBI: max/mean erase counter: 178/112
5.116681] UBI: number of bad [ 5.192596] UBI: image sequence number: 1084247201
PEBs: 4
Jan 1 00:00:04 [ 5.200339] UBI: background thread "ubi_bgt1d" started, PID 861
BUI270 user.notice kernel: [ 5.124169] UBI: number of corrupted PEBs: 0
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.131397] UBI: max. allowed volumes: 128
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.138873] UBI: wear-leveling threshold: 4096
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.146325] UBI: number of internal [ 5.237997] UBIFS: recovery needed
volumes: 1
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.153807] UBI: number of user volumes: 1
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.161042] UBI: available PEBs: 0
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.168233] UBI: total number of reserved PEBs: 3344
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.176238] UBI: number of PEBs reserved for bad PEB handling: 33
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.185123] UBI: max/mean erase counter: 178/112
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.192596] UBI: image sequence number: 1084247201
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.200339] UBI: background thread "ubi_bgt1d" started, PID 861
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.237997] UBIFS: recovery needed
[ 5.320423] UBIFS: recovery completed
[ 5.324094] UBIFS: mounted UBI device 1, volume 0, name "appdata"
Jan 1 00:00:05 BUI270 user.notic[ 5.330588] UBIFS: file system size: 836517888 bytes (816912 KiB, 797 MiB, 3294 LEBs)
e kernel: [ 5.320423] UBIFS: r[ 5.341759] UBIFS: journal size: 33521664 bytes (32736 KiB, 31 MiB, 132 LEBs)
ecovery completed
Jan 1 00:00:0[ 5.351952] UBIFS: media format: w4/r0 (latest is w4/r0)
5 BUI270 user.notice kernel: [ [ 5.360628] UBIFS: default compressor: lzo
5.324094] UBIFS: mounted UBI dev[ 5.367468] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
ice 1, volume 0, name "appdata"
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.330588] UBIFS: file system size: 836517888 bytes (816912 KiB, 797 MiB, 3294 LEBs)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.341759] UBIFS: journal size: 33521664 bytes (32736 KiB, 31 MiB, 132 LEBs)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.351952] UBIFS: media format: w4/r0 (latest is w4/r0)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.360628] UBIFS: default compressor: lzo
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.367468] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
mv: can't rename '/var/log//S11-system-settings.28.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.27.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.26.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.25.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.24.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.23.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.22.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.21.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.20.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.19.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.18.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.17.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.16.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.15.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.14.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.13.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.12.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.11.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.10.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.9.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.8.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.7.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.6.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.5.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.4.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.3.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.2.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.1.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.0.gz': Read-only file system
gzip: can't open '/var/log//S11-system-settings.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.gz': No such file or directory
/etc/init.d/rc5.d/S11-system-settings: line 4: can't create /var/log//S11-system -settings: Read-only file system
mv: can't rename '/var/log//S12-swap.28.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.27.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.26.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.25.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.24.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.23.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.22.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.21.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.20.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.19.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.18.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.17.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.16.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.15.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.14.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.13.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.12.[ 5.746472] UBI: attaching mtd2 to ub i2
gz': Read-only file system
mv: c[ 5.752826] UBI: physical eraseblock size: 262144 bytes (256 KiB)
an't rename '/var/log//S12-swap.1[ 5.761672] UBI: logical eraseblock size: 253952 bytes
1.gz': Read-only file system
mv:[ 5.769896] UBI: smallest flash I/O unit: 4096
can't rename '/var/log//S12-swap[ 5.777337] UBI: VID header offset: 4096 (aligned 4096)
.10.gz': Read-only file system
m[ 5.786389] UBI: data offset: 8192
v: can't rename '/var/log//S12-swap.9.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.8.gz': Read-only file syst[ 5.803581] UB I: max. sequence number: 1016
em
mv: can't rename '/var/log//S12-swap.7.gz': Read-only file sy[ 5.813351] UBI: attached mtd2 to ubi2
stem
mv: can't rename '/var/log/[ 5.819241] UBI: MTD device name: "vers ion"
/S12-swap.6.gz': Read-only file s[ 5.827047] UBI: MTD device size: 6 MiB
ystem
mv: can't rename '/var/log[ 5.834911] UBI: number of good PEBs: 24
//S12-swap.5.gz': Read-only file [ 5.842207] UBI: number of bad PEBs: 0
system
mv: can't rename '/var/lo[ 5.849509] UBI: number of corrupted PEBs: 0
g//S12-swap.4.gz': Read-only file[ 5.856692] UBI: max. allowed volumes: 128
system
mv: can't rename '/var/l[ 5.864350] UBI: wear-leveling threshold: 4096
og//S12-swap.3.gz': Read-only fil[ 5.871849] UBI: number of internal volumes: 1
e system
mv: can't rename '/var/[ 5.879151] UBI: number of user volumes: 1
log//S12-swap.2.gz': Read-only fi[ 5.886337] UBI: available PEBs: 0
le system
mv: can't rename '/var[ 5.893818] UBI: total number of reserved PEBs: 24
/log//S12-swap.1.gz': Read-only f[ 5.901406] UBI: number of PEBs reserved for bad PEB handling: 2
ile system
mv: can't rename '/va[ 5.910272] UBI: max/mean erase counter: 54/41
r/log//S12-swap.0.gz': Read-only [ 5.917458] UBI: image sequence number: 127 650293
file system
gzip: can't open '/v[ 5.925292] UBI: background thread "ubi_bgt2d" started, P ID 983
ar/log//S12-swap.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.gz': No such file or directory
/etc/init.d/rc5.d/S12-swap: line 4: can't create /var/log//S12-swap: Read-only f ile system
mv: can't rename '/var/log//S13-partition-version.28.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.27.gz': Read-onl[ 5.963444] UBIFS: recovery needed
y file system
mv: can't rename '/var/log//S13-partition-version.26.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.25.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.24.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.23.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.22.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.21.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.20.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.19.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.18.gz': Read-only file system
mv: can't rename '/var/lo[ 6.034518] UBIFS: recovery completed
g//S13-partition-version.17.gz': [ 6.038658] UBIFS: mounted UBI device 2, vol ume 0, name "version"
Read-only file system
mv: can't [ 6.047670] UBIFS: file system size: 2539520 bytes (2480 KiB, 2 M iB, 10 LEBs)
rename '/var/log//S13-partition-v[ 6.057691] UBIFS: journal size: 17776 65 bytes (1736 KiB, 1 MiB, 5 LEBs)
ersion.16.gz': Read-only file sys[ 6.067671] UBIFS: media format: w4/r0 (latest is w4/r0)
tem
mv: can't rename '/var/log//[ 6.076351] UBIFS: default compressor: lzo
S13-partition-version.15.gz': Rea[ 6.083304] UBIFS: reserved for root: 11994 7 bytes (117 KiB)
d-only file system
mv: can't rename '/var/log//S13-partition-version.14.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.13.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.12.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.11.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.10.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.9.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.8.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.7.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.6.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.5.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.4.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.3.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.2.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.1.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.0.gz': Read-only file system
gzip: can't open '/var/log//S13-partition-version.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.gz': No such file or directory
/etc/init.d/rc5.d/S13-partition-version: line 4: can't create /var/log//S13-part ition-version: Read-only file system
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.746472] UBI: attaching mtd2 to ubi2
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.752826] UBI: physical eraseblo ck size: 262144 bytes (256 KiB)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.761672] UBI: logical erasebloc k size: 253952 bytes
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.769896] UBI: smallest flash I/ O unit: 4096
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.777337] UBI: VID header offset : 4096 (aligned 4096)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.786389] UBI: data offset: 8192
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.803581] UBI: max. sequence num ber: 1016
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.813351] UBI: attached mtd2 to ubi2
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.819241] UBI: MTD device name: Jan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.noticJan 1 00:00:0 5 BUI270 user.notice kernel: [ 5.849509] UBI: numJan 1 00:00:05 BUI270 user. noticJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.notice kernel: [ 5.879151] UBI: numJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.notice kernel: [ 5.910272] UBI: maxJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.notice kernel: [ 5.9 63444] UBIFS: recovery needed
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.034518] UBIFS: recovery comple ted
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.038658] UBIFS: mounted UBI dev ice 2, volume 0, name "version"
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.047670] UBIFS: file system siz e: 2539520 bytes (2480 KiB, 2 MiB, 10 LEBs)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.057691] UBIFS: journal size: 1777665 bytes (1736 KiB, 1 MiB, 5 LEBs)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.067671] UBIFS: media format: w4/r0 (latest is w4/r0)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.076351] UBIFS: default compres sor: lzo
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.083304] UBIFS: reserved for ro ot: 119947 bytes (117 KiB)
mv: can't rename '/var/log//S20-dbus-uuid.28.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.27.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.26.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.25.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.24.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.23.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.22.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.21.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.20.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.19.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.18.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.17.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.16.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.15.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.14.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.13.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.12.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.11.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.10.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.9.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.8.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.7.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.6.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.5.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.4.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.3.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.2.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.1.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.0.gz': Read-only file system
gzip: can't open '/var/log//S20-dbus-uuid.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.gz': No such file or directory
/etc/init.d/rc5.d/S20-dbus-uuid: line 4: can't create /var/log//S20-dbus-uuid: R ead-only file system
mv: can't rename '/var/log//S20-dbusd.28.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.27.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.26.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.25.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.24.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.23.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.22.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.21.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.20.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.19.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.18.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.17.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.16.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.15.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.14.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.13.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.12.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.11.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.10.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.9.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.8.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.7.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.6.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.5.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.4.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.3.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.2.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.1.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.0.gz': Read-only file system
gzip: can't open '/var/log//S20-dbusd.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.gz': No such file or directory
/etc/init.d/rc5.d/S20-dbusd: line 4: can't create /var/log//S20-dbusd: Read-only file system
mv: can't rename '/var/log//S23-ipcd.28.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.27.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.26.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.25.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.24.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.23.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.22.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.21.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.20.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.19.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.18.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.17.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.16.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.15.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.14.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.13.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.12.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.11.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.10.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.9.gz': Read-only[ 6.919903] spi_imx imx6 q-ecspi.1: probed
file system
mv: can't rename '/var/log//S23-ipcd.8.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.7.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.6.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.5.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.4.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.3.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.2.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.1.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.0.gz': Read-only file system
gzip: can't open '/var/log//S23-ipcd.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.gz': No such file or directory
/etc/init.d/rc5.d/S23-ipcd: line 4: can't create /var/log//S23-ipcd: Read-only f ile system
Jan 1 00:00:06 BUI270 user.info kernel: [ 6.919903] spi_imx imx6q-ecspi.1: p robed
mv: can't rename '/var/log//S24-clocksync.28.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.27.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.26.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.25.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.24.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.23.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.22.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.21.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.20.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.19.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.18.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.17.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.16.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.15.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.14.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.13.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.12.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.11.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.10.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.9.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.8.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.7.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.6.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.5.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.4.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.3.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.2.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.1.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.0.gz': Read-only file system
gzip: can't open '/var/log//S24-clocksync.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.gz': No such file or directory
/etc/init.d/rc5.d/S24-clocksync: line 4: can't create /var/log//S24-clocksync: R ead-only file system
mv: can't rename '/var/log//S28-shutdownd.28.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.27.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.26.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.25.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.24.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.23.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.22.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.21.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.20.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.19.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.18.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.17.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.16.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.15.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.14.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.13.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.12.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.11.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.10.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.9.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.8.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.7.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.6.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.5.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.4.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.3.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.2.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.1.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.0.gz': Read-only file system
gzip: can't open '/var/log//S28-shutdownd.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.gz': No such file or directory
/etc/init.d/rc5.d/S28-shutdownd: line 4: can't create /var/log//S28-shutdownd: R ead-only file system
mv: can't rename '/var/log//S70-configure-packages.28.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.27.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.26.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.25.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.24.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.23.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.22.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.21.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.20.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.19.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.18.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.16.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.15.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.14.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.13.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.12.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.11.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.10.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.9.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.8.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.7.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.6.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.5.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.4.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.3.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.2.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.1.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.0.gz': Read-only file system
gzip: can't open '/var/log//S70-configure-packages.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.gz': No such file or director y
/etc/init.d/rc5.d/S70-configure-packages: line 4: can't create /var/log//S70-con figure-packages: Read-only file system
mv: can't rename '/var/log//S85-usb-diag.28.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.27.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.26.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.25.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.24.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.23.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.22.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.21.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.20.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.19.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.18.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.17.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.16.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.15.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.14.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.13.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.12.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.11.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.10.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.9.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.8.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.7.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.6.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.5.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.4.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.3.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.2.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.1.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.0.gz': Read-only file system
gzip: can't open '/var/log//S85-usb-diag.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.gz': No such file or directory
/etc/init.d/rc5.d/S85-usb-diag: line 4: can't create /var/log//S85-usb-diag: Rea d-only file system
mv: can't rename '/var/log//S90-hotplugd.28.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.27.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.26.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.25.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.24.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.23.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.22.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.21.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.20.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.19.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.18.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.17.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.16.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.15.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.14.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.13.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.12.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.11.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.10.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.9.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.8.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.7.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.6.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.5.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.4.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.3.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.2.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.1.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.0.gz': Read-only file system
gzip: can't open '/var/log//S90-hotplugd.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.gz': No such file or directory
/etc/init.d/rc5.d/S90-hotplugd: line 4: can't create /var/log//S90-hotplugd: Rea d-only file system
mv: can't rename '/var/log//S93-ti-st.28.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.27.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.26.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.25.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.24.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.23.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.22.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.21.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.20.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.19.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.18.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.17.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.16.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.15.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.14.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.13.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.12.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.11.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.10.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.9.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.8.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.7.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.6.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.5.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.4.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.3.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.2.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.1.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.0.gz': Read-only file system
gzip: can't open '/var/log//S93-ti-st.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.gz': No such file or directory
/etc/init.d/rc5.d/S93-ti-st: line 4: can't create /var/log//S93-ti-st: Read-only file system
mv: can't rename '/var/log//S96-wifi.28.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.27.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.26.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.25.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.24.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.22.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.21.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.20.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.19.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.18.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.17.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.16.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.15.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.14.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.13.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.12.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.11.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.10.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.9.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.8.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.7.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.6.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.4.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.3.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.2.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.1.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.0.gz': Read-only file system
gzip: can't open '/var/log//S96-wifi.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.gz': No such file or directory
/etc/init.d/rc5.d/S96-wifi: line 4: can't create /var/log//S96-wifi: Read-only f ile system
mv: can't rename '/var/log//S97-ondemand.28.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.27.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.26.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.25.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.24.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.23.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.22.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.21.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.20.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.19.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.18.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.17.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.16.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.15.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.14.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.13.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.12.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.11.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.10.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.9.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.8.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.7.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.6.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.5.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.4.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.3.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.2.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.1.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.0.gz': Read-only file system
gzip: can't open '/var/log//S97-ondemand.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.gz': No such file or directory
/etc/init.d/rc5.d/S97-ondemand: line 4: can't create /var/log//S97-ondemand: Rea d-only file system
mv: can't rename '/var/log//S98-chargerdetect.28.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.27.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.26.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.25.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.24.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.23.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.22.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.21.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.20.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.19.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.18.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.17.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.16.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.15.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.14.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.13.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.12.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.11.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.10.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.9.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.8.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.7.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.6.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.5.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.4.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.3.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.2.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.1.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.0.gz': Read-only file system
gzip: can't open '/var/log//S98-chargerdetect.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.gz': No such file or directory
/etc/init.d/rc5.d/S98-chargerdetect: line 4: can't create /var/log//S98-chargerd etect: Read-only file system
mv: can't rename '/var/log//S98-kssupdater.28.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.27.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.26.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.25.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.24.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.23.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.22.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.21.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.20.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.19.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.18.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.17.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.16.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.15.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.14.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.13.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.12.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.11.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.10.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.9.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.8.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.7.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.6.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.5.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.4.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.3.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.2.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.1.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.0.gz': Read-only file system
gzip: can't open '/var/log//S98-kssupdater.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.gz': No such file or directory
/etc/init.d/rc5.d/S98-kssupdater: line 4: can't create /var/log//S98-kssupdater: Read-only file system
[ 17.697027] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
Jan 1 00:00:17 BUI270 user.info kernel: [ 17.697027] gadgetfs: USB Gadget fil esystem, version 24 Aug 2004
Jan 1 00:00:17 BUI270 user.debug kernel: [ 17.704741] retval -120
U-Boot 2012.10-00019-gcb1c2df (Feb 26 2016 - 11:09:32)
DRAM: 512 MiB
NAND: 1024 MiB
Using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x600000, size 0x280000
2621440 bytes read: OK
## Booting kernel from Legacy Image at 12000000 ...
Image Name: Linux-3.0.35-00062-g61ad1ad
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2314164 Bytes = 2.2 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
[ 0.000000] Linux version 3.0.35-00062-g61ad1ad (rse1cob@kor303101_Ubuntu1004 ) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- B uilt at 2011/08/10 09:20) ) #1 PREEMPT Fri Jan 29 10:42:55 CET 2016
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: eBike A1 Sample
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU identified as i.MX6DL/SOLO, silicon rev 1.1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 121600
[ 0.000000] Kernel command line: console=ttymxc3,115200 mem=512m ubi.mtd=3 ro ot=ubi0:rootfs rootfstype=ubifs rootwait rw mtdparts=gpmi-nand:6m(bootloader),5m (kernel),6m(version),170m(filesystem),-(appdata) video=mxcfb0:dev=lcd,EBIKE-LCD, if=RGB24,fbpix=RGB32,bpp=32 consoleblank=0 vt.global_cursor_default=0 lpj=790528 0 fb0base=0x17b00000 fbmem=1M info_kernel=original
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 123MB 100MB 256MB = 479MB total
[ 0.000000] Memory: 481000k/481000k available, 43288k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xf4600000 - 0xffe00000 ( 184 MB)
[ 0.000000] vmalloc : 0xa0800000 - 0xf2000000 (1304 MB)
[ 0.000000] lowmem : 0x80000000 - 0xa0000000 ( 512 MB)
[ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
[ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
[ 0.000000] .init : 0x80008000 - 0x80027000 ( 124 kB)
[ 0.000000] .text : 0x80027000 - 0x80450d24 (4264 kB)
[ 0.000000] .data : 0x80452000 - 0x8048fd08 ( 248 kB)
[ 0.000000] .bss : 0x8048fd2c - 0x804d6c40 ( 284 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, N odes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:496
[ 0.000000] MXC GPIO hardware
[ 0.000000] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 14 31655ms
[ 0.000000] Set periph_clk's parent to pll2_pfd_400M!
[ 0.000000] MXC_Early serial console at MMIO 0x21f0000 (options '115200')
[ 0.000000] bootconsole [ttymxc3] enabled
[ 0.000000] Console: colour dummy device 80x30
[ 0.240424] Calibrating delay loop (skipped) preset value.. 1581.05 BogoMIPS (lpj=7905280)
[ 0.248759] pid_max: default: 32768 minimum: 301
[ 0.253612] Mount-cache hash table entries: 512
[ 0.258528] CPU: Testing write buffer coherency: ok
[ 0.263578] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counter s available
[ 0.272189] devtmpfs: initialized
[ 0.282390] print_constraints: dummy:
[ 0.286323] NET: Registered protocol family 16
[ 0.295015] print_constraints: vddpu: 725 <--> 1300 mV at 1150 mV fast normal
[ 0.302713] print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast norm al
[ 0.310493] print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast norma l
[ 0.318269] print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast norm al
[ 0.326072] print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast norma l
[ 0.333805] print_constraints: vdd3p0: 2800 <--> 3150 mV at 3000 mV fast norm al
[ 0.348510] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.355474] hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-ste p.
[ 0.362809] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.368856] L310 cache controller enabled
[ 0.372883] l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x02050000, Cache si ze: 524288 B
[ 0.381919] IMX usb wakeup probe
[ 0.394528] bio: create slab <bio-0> at 0
[ 0.401070] mxs-dma mxs-dma-apbh: initialized
[ 0.406588] usbcore: registered new interface driver usbfs
[ 0.412205] usbcore: registered new interface driver hub
[ 0.417672] usbcore: registered new device driver usb
[ 0.424178] Bluetooth: Core ver 2.16
[ 0.427923] NET: Registered protocol family 31
[ 0.432379] Bluetooth: HCI device and connection manager initialized
[ 0.438824] Bluetooth: HCI socket layer initialized
[ 0.443715] Bluetooth: L2CAP socket layer initialized
[ 0.448846] Bluetooth: SCO socket layer initialized
[ 0.453754] Switching to clocksource mxc_timer1
[ 0.470291] NET: Registered protocol family 2
[ 0.474739] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.482419] TCP established hash table entries: 16384 (order: 5, 131072 bytes )
[ 0.489887] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.496547] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.503107] TCP reno registered
[ 0.506260] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.512127] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.518665] NET: Registered protocol family 1
[ 0.523207] RPC: Registered named UNIX socket transport module.
[ 0.529199] RPC: Registered udp transport module.
[ 0.533915] RPC: Registered tcp transport module.
[ 0.538642] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.545269] Static Power Management for Freescale i.MX6
[ 0.550546] wait mode is enabled for i.MX6
[ 0.554771] cpaddr = a0880000 suspend_iram_base=a082e000
[ 0.560188] PM driver module loaded
[ 0.563690] i.MXC CPU frequency driver
[ 0.583592] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.590780] msgmni has been set to 939
[ 0.595573] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 53)
[ 0.603030] io scheduler noop registered
[ 0.606963] io scheduler deadline registered
[ 0.611346] io scheduler cfq registered (default)
[ 0.616344] mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver lcd
[ 0.622837] imx-ipuv3 imx-ipuv3.0: Warning: channel already initialized 9
[ 0.629733] imx-ipuv3 imx-ipuv3.0: Warning: channel already enabled 9
[ 0.638966] imx-sdma imx-sdma: loaded firmware 1.1
[ 0.648066] imx-sdma imx-sdma: initialized
[ 0.652553] Serial: IMX driver
[ 0.655682] imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
[ 0.662556] imx-uart.1: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX
[ 0.669276] imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
[ 0.675946] imx-uart.3: ttymxc3 at MMIO 0x21f0000 (irq = 61) is a IMX
[ 0.682451] console [ttymxc3] enabled, bootconsole disabled
[ 0.682451] console [ttymxc3] enabled, bootconsole disabled
[ 0.695118] NAND device: Manufacturer ID: 0x98, Chip ID: 0xa3 (Toshiba NAND 1 GiB 1,8V 8-bit)
[ 0.704386] 5 cmdlinepart partitions found on MTD device gpmi-nand
[ 0.710622] Creating 5 MTD partitions on "gpmi-nand":
[ 0.715683] 0x000000000000-0x000000600000 : "bootloader"
[ 0.721827] 0x000000600000-0x000000b00000 : "kernel"
[ 0.727540] 0x000000b00000-0x000001100000 : "version"
[ 0.733404] 0x000001100000-0x00000bb00000 : "filesystem"
[ 0.739572] 0x00000bb00000-0x000040000000 : "appdata"
[ 0.745641] GPMI NAND driver registered. (IMX)
[ 0.750472] UBI: attaching mtd3 to ubi0
[ 0.754313] UBI: physical eraseblock size: 262144 bytes (256 KiB)
[ 0.760670] UBI: logical eraseblock size: 253952 bytes
[ 0.766070] UBI: smallest flash I/O unit: 4096
[ 0.770801] UBI: VID header offset: 4096 (aligned 4096)
[ 0.776808] UBI: data offset: 8192
[ 1.039017] UBI: max. sequence number: 45072
[ 1.047621] UBI: attached mtd3 to ubi0
[ 1.051402] UBI: MTD device name: "filesystem"
[ 1.056803] UBI: MTD device size: 170 MiB
[ 1.061790] UBI: number of good PEBs: 680
[ 1.066408] UBI: number of bad PEBs: 0
[ 1.070861] UBI: number of corrupted PEBs: 0
[ 1.075306] UBI: max. allowed volumes: 128
[ 1.079933] UBI: wear-leveling threshold: 4096
[ 1.084638] UBI: number of internal volumes: 1
[ 1.089090] UBI: number of user volumes: 1
[ 1.093534] UBI: available PEBs: 0
[ 1.097977] UBI: total number of reserved PEBs: 680
[ 1.102863] UBI: number of PEBs reserved for bad PEB handling: 6
[ 1.108878] UBI: max/mean erase counter: 200/65
[ 1.113409] UBI: image sequence number: 210784587
[ 1.118206] UBI: background thread "ubi_bgt0d" started, PID 459
[ 1.124154] ARC USBOTG Device Controller driver (1 August 2005)
[ 1.130199] add wake up source irq 75
[ 1.137399] my_batt_ext_power_changed!
[ 1.141193] It is not usb supply!
[ 1.144643] cpuidle: using governor ladder
[ 1.148780] cpuidle: using governor menu
[ 1.152846] sdhci: Secure Digital Host Controller Interface driver
[ 1.159048] sdhci: Copyright(c) Pierre Ossman
[ 1.164508] mmc0: no vmmc regulator found
[ 1.170709] Powering ON wl12xx
[ 1.173784] mmc0: SDHCI controller on platform [sdhci-esdhc-imx.0] using ADMA
[ 1.194135] Thermal calibration data is 0x57f4ed69
[ 1.198989] Thermal sensor with ratio = 182
[ 1.221302] Anatop Thermal registered as thermal_zone0
[ 1.227598] anatop_thermal_probe: default cooling device is cpufreq!
[ 1.235996] anatop_thermal_probe: Crit 388, hot 383, active 378
[ 1.241950] mmc0: card claims to support voltages below the defined range. These will be ignored.
[ 1.251228] NET: Registered protocol family 26
[ 1.255717] TCP cubic registered
[ 1.262012] NET: Registered protocol family 17
[ 1.266560] Bluetooth: RFCOMM TTY layer initialized
[ 1.274531] Bluetooth: RFCOMM socket layer initialized
[ 1.279710] Bluetooth: RFCOMM ver 1.11
[ 1.283501] lib80211: common routines for IEEE802.11 drivers
[ 1.289208] Registering the dns_resolver key type
[ 1.293951] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 1.301796] Bus freq driver module loaded
[ 1.305846] Bus freq driver Enabled
[ 1.311034] mxc_dvfs_core_probe
[ 1.314371] DVFS driver module loaded
[ 1.319099] regulator_init_complete: vddpu: incomplete constraints, leaving on
[ 1.342410] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
[ 1.349367] mmc0: new high speed SDIO card at address 0001
[ 1.355175] Powering OFF wl12xx
[ 1.373957] UBIFS: recovery needed
[ 1.458322] UBIFS: recovery completed
[ 1.461992] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 1.468002] UBIFS: file system size: 167608320 bytes (163680 KiB, 159 MiB, 660 LEBs)
[ 1.476008] UBIFS: journal size: 8380416 bytes (8184 KiB, 7 MiB, 33 LEBs)
[ 1.483715] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 1.489562] UBIFS: default compressor: lzo
[ 1.493660] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[ 1.500684] VFS: Mounted root (ubifs filesystem) on device 0:13.
[ 1.507744] devtmpfs: mounted
[ 1.510774] Freeing init memory: 124K
[ 1.797141] UBI error: ubi_io_read: error -74 (ECC error) while reading 253952 bytes from PEB 445:8192, read 253952 bytes
[ 1.808274] UBIFS error (pid 491): ubifs_scan: corrupt empty space at LEB 489:233760
[ 1.816037] UBIFS error (pid 491): ubifs_scanned_corruption: corruption at LEB 489:233760
[ 1.828660] UBIFS error (pid 491): ubifs_scan: LEB 489 scanning failed
[ 1.835215] UBIFS warning (pid 491): ubifs_ro_mode: switched to read-only mode, error -117
[ 1.843502] UBIFS error (pid 491): make_reservation: cannot reserve 58 bytes in jhead 2, error -117
[ 1.852569] UBIFS error (pid 491): do_writepage: cannot write page 0 of inode 76584, error -117
dpkg: error: unable to sync new file '/var/lib/dpkg/arch-new': Structure needs cleaning
Please press Enter to activate this console. mv: can't rename '/var/log//S01-pre vent-display-sleep.28.gz': Read-only file system
mv: can't rename '/var/log//S01-prevent-display-sleep.27.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.26.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.25.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.24.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.23.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.22.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.21.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.20.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.19.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.18.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.17.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.16.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.15.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.14.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.13.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.12.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.11.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.10.gz': Read-only file sys tem
mv: can't rename '/var/log//S01-prevent-display-sleep.9.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.8.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.7.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.6.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.5.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.4.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.3.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.2.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.1.gz': Read-only file syst em
mv: can't rename '/var/log//S01-prevent-display-sleep.0.gz': Read-only file syst em
gzip: can't open '/var/log//S01-prevent-display-sleep.gz': Read-only file system
mv: can't rename '/var/log//S01-prevent-display-sleep.gz': No such file or direc tory
/etc/init.d/rc5.d/S01-prevent-display-sleep: line 4: can't create /var/log//S01- prevent-display-sleep: Read-only file system
mv: can't rename '/var/log//messages.28.gz': Read-only file system
mv: can't rename '/var/log//messages.27.gz': Read-only file system
mv: can't rename '/var/log//messages.26.gz': Read-only file system
mv: can't rename '/var/log//messages.25.gz': Read-only file system
mv: can't rename '/var/log//messages.24.gz': Read-only file system
mv: can't rename '/var/log//messages.23.gz': Read-only file system
mv: can't rename '/var/log//messages.22.gz': Read-only file system
mv: can't rename '/var/log//messages.21.gz': Read-only file system
mv: can't rename '/var/log//messages.20.gz': Read-only file system
mv: can't rename '/var/log//messages.19.gz': Read-only file system
mv: can't rename '/var/log//messages.18.gz': Read-only file system
mv: can't rename '/var/log//messages.17.gz': Read-only file system
mv: can't rename '/var/log//messages.16.gz': Read-only file system
mv: can't rename '/var/log//messages.15.gz': Read-only file system
mv: can't rename '/var/log//messages.14.gz': Read-only file system
mv: can't rename '/var/log//messages.13.gz': Read-only file system
mv: can't rename '/var/log//messages.12.gz': Read-only file system
mv: can't rename '/var/log//messages.11.gz': Read-only file system
mv: can't rename '/var/log//messages.10.gz': Read-only file system
mv: can't rename '/var/log//messages.9.gz': Read-only file system
mv: can't rename '/var/log//messages.8.gz': Read-only file system
mv: can't rename '/var/log//messages.7.gz': Read-only file system
mv: can't rename '/var/log//messages.6.gz': Read-only file system
mv: can't rename '/var/log//messages.5.gz': Read-only file system
mv: can't rename '/var/log//messages.4.gz': Read-only file system
mv: can't rename '/var/log//messages.3.gz': Read-only file system
mv: can't rename '/var/log//messages.2.gz': Read-only file system
mv: can't rename '/var/log//messages.1.gz': Read-only file system
mv: can't rename '/var/log//messages.0.gz': Read-only file system
gzip: can't open '/var/log//messages.gz': Read-only file system
mv: can't rename '/var/log//messages.gz': No such file or directory
/etc/init.d/rc5.d/S01-syslogd: line 4: can't create /var/log//messages: Read-onl y file system
Jan 1 00:00:01 BUI270 syslog.info syslogd started: BusyBox v1.21.1
Jan 1 00:00:01 BUI270 user.notice kernel: klogd started: BusyBox v1.21.1 (2015- 07-30 17:20:12 IST)
Jan 1 00:00:01 BUI270 user.notice kernel: [ 0.000000] Linux version 3.0.35-0 0062-g61ad1ad (rse1cob@kor303101_Ubuntu1004) (gcc version 4.6.2 20110630 (prerel ease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #1 PREEMP T Fri Jan 29 10:42:55 CET 2016
Jan 1 00:00:01 BUI270 user.warn kernel: [ 0.000000] CPU: ARMv7 Processor [41 2fc09a] revision 10 (ARMv7), cr=10c53c7d
Jan 1 00:00:01 BUI270 user.warn kernel: [ 0.000000] CPU: VIPT nonaliasing da ta cache, VIPT aliasing instruction cache
Jan 1 00:00:01 BUI270 user.warn kernel: [ 0.000000] Machine: eBike A1 Sample
Jan 1 00:00:01 BUI270 user.warn kernel: [ 0.000000] Memory policy: ECC disab led, Data cache writeback
Jan 1 00:00:01 BUI270 user.info kernel: [ 0.000000] CPU identified as i.MX6D L/SOLO, silicon rev 1.1
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] On node 0 totalpages: 1 22624
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] free_area_init_node: no de 0, pgdat 8048480c, node_mem_map 8b800000
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] DMA zone: 368 pages u sed for memmap
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] DMA zone: 0 pages res erved
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] DMA zone: 46736 pages , LIFO batch:15
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] Normal zone: 656 page s used for memmap
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] Normal zone: 74864 pa ges, LIFO batch:15
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] pcpu-alloc: s0 r0 d3276 8 u32768 alloc=1*32768
Jan 1 00:00:01 BUI270 user.debug kernel: [ 0.000000] pcpu-alloc: [0] 0
Jan 1 00:00:01 BJan 1 00:00:01 BUI270 user.notiJan 1 00:00:01 BUI270 user.inf oJan 1 00:00:01 BUI270 user.infoJan 1 00:00:01 BUI270 user.infoJan 1 00:00:01 BUI270 user.notiJan 1 00:00:01 BUI270 user.infoJan 1 00:00:01 BUI270 user.not iJan 1 00:00:01 BUI270 user.debuJan 1 00:00:01 BUI270 user.debuJan 1 00:00:01 BUI270 user.debuJan 1 00:00:01 BUI270 user.debuJan 1 00:00:01 BUI270 user.deb uJan 1 00:00:01 BUI270 user.debuJan 1 00:00:01 BUI270 user.debumv: can't renam e '/var/log//S05-filesystems.28.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.27.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.26.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.25.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.24.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.23.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.22.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.21.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.20.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.19.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.18.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.17.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.16.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.15.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.14.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.13.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.12.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.11.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.10.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.9.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.8.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.7.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.6.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.5.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.4.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.3.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.2.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.1.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.0.gz': Read-only file system
gzip: can't open '/var/log//S05-filesystems.gz': Read-only file system
mv: can't rename '/var/log//S05-filesystems.gz': No such file or directory
/etc/init.d/rc5.d/S05-filesystems: line 4: can't create /var/log//S05-filesystem s: Read-only file system
mv: can't rename '/var/log//S06-mkdevices.28.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.27.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.26.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.25.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.24.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.23.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.22.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.21.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.20.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.19.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.18.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.17.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.16.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.15.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.14.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.13.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.12.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.11.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.10.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.9.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.8.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.7.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.6.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.5.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.4.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.3.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.2.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.1.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.0.gz': Read-only file system
gzip: can't open '/var/log//S06-mkdevices.gz': Read-only file system
mv: can't rename '/var/log//S06-mkdevices.gz': No such file or directory
/etc/init.d/rc5.d/S06-mkdevices: line 4: can't create /var/log//S06-mkdevices: R ead-only file system
mv: can't rename '/var/log//S07-network-lo.28.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.27.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.26.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.25.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.24.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.23.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.22.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.21.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.20.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.19.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.18.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.17.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.16.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.15.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.14.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.13.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.12.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.11.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.10.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.9.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.8.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.7.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.6.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.5.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.4.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.3.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.2.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.1.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.0.gz': Read-only file system
gzip: can't open '/var/log//S07-network-lo.gz': Read-only file system
mv: can't rename '/var/log//S07-network-lo.gz': No such file or directory
/etc/init.d/rc5.d/S07-network-lo: line 4: can't create /var/log//S07-network-lo: Read-only file system
mv: can't rename '/var/log//S08-sysctl.28.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.27.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.26.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.25.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.24.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.23.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.22.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.21.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.20.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.19.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.18.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.17.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.16.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.15.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.14.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.13.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.12.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.11.gz': Read-only file system
^Amv: can't rename '/var/log//S08-sysctl.10.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.9.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.8.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.7.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.6.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.5.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.4.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.3.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.2.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.1.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.0.gz': Read-only file system
gzip: can't open '/var/log//S08-sysctl.gz': Read-only file system
mv: can't rename '/var/log//S08-sysctl.gz': No such file or directory
/etc/init.d/rc5.d/S08-sysctl: line 4: can't create /var/log//S08-sysctl: Read-on ly file system
mv: can't rename '/var/log//S09-hostname.28.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.27.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.26.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.25.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.24.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.23.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.22.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.21.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.20.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.19.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.18.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.17.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.16.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.15.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.14.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.13.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.12.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.11.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.10.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.9.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.8.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.7.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.6.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.5.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.4.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.3.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.2.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.1.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.0.gz': Read-only file system
gzip: can't open '/var/log//S09-hostname.gz': Read-only file system
mv: can't rename '/var/log//S09-hostname.gz': No such file or directory
/etc/init.d/rc5.d/S09-hostname: line 4: can't create /var/log//S09-hostname: Rea d-only file system
mv: can't rename '/var/log//S09-progressbar.28.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.27.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.26.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.25.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.24.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.23.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.22.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.21.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.20.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.19.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.18.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.17.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.16.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.15.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.14.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.13.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.12.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.11.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.10.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.9.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.8.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.7.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.6.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.5.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.4.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.3.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.2.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.1.gz': Read-only file system
mv: can't rename '/var/log//S09-progressbar.0.gz': Read-only file system
gzip: can't open '/var/log//S09-progressbar.gz': Read-on[ 3.759364] UBI: atta ching mtd4 to ubi1
ly file system
mv: can't rename [ 3.764298] UBI: physical eraseblock size: 262144 bytes (2 56 KiB)
'/var/log//S09-progressbar.gz': N[ 3.773800] UBI: logical eraseblock size: 253952 bytes
o such file or directory
/etc/in[ 3.781821] UBI: smallest flash I/O unit: 4096
it.d/rc5.d/S09-progressbar: line [ 3.789362] UBI: VID header offset: 4096 (aligned 4096)
4: can't create /var/log//S09-pro[ 3.798109] UBI: data offset: 8192
gressbar: Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.28.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.27.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.26.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.25.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.24.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.23.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.22.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.21.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.20.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.19.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.18.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.17.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.16.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.15.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.14.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.13.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.12.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.11.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.10.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.9.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.8.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.7.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.6.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.5.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.4.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.3.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.2.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.1.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.0.gz': Read-only file system
gzip: can't open '/var/log//S10-partition-qtapp.gz': Read-only file system
mv: can't rename '/var/log//S10-partition-qtapp.gz': No such file or directory
/etc/init.d/rc5.d/S10-partition-qtapp: line 4: can't create /var/log//S10-partit ion-qtapp: Read-only file system
Jan 1 00:00:03 BUI270 user.notice kernel: [ 3.759364] UBI: attaching mtd4 to ubi1
Jan 1 00:00:03 BUI270 user.notice kernel: [ 3.764298] UBI: physical eraseblo ck size: 262144 bytes (256 KiB)
Jan 1 00:00:03 BUI270 user.notice kernel: [ 3.773800] UBI: logical erasebloc k size: 253952 bytes
Jan 1 00:00:03 BUI270 user.notice kernel: [ 3.781821] UBI: smallest flash I/ O unit: 4096
Jan 1 00:00:03 BUI270 user.notice kernel: [ 3.789362] UBI: VID header offset : 4096 (aligned 4096)
Jan 1 00:00:03 BUI270 user.notice kernel: [ 3.798109] UBI: data offset: 8192
[ 5.075234] UBI: max. sequence number: 377778
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.075234] UBI: max. sequence num ber: 377778[ 5.086458] UBI: attached mtd4 to ubi1
Jan 1 00:00:04 BUI270 user.notic[ 5.092729] UBI: MTD device name: "appdata"
e kernel: [ 5.086458] UBI: att[ 5.100841] UBI: MTD device size: 837 MiB
ached mtd4 to ubi1
Jan 1 00:00:[ 5.108634] UBI: number of good PEBs: 3344
04 BUI270 user.notice kernel: [ [ 5.116076] UBI: number of bad PEBs: 4
5.092729] UBI: MTD device name:[ 5.123564] UBI: number of corrupted PEBs: 0
"appdata"
Jan 1 00:[ 5.130792] UBI: max. allowed volumes: 128
00:04 BUI270 user.notice kernel: [ 5.138156] UBI: wear-leveling threshold: 4096
[ 5.100841] UBI: MTD device si[ 5.145903] UBI: number of internal volumes: 1
ze: 837 MiB
Jan 1 00[ 5.153135] UBI: number of user volumes: 1
:00:04 BUI270 user.notice kernel:[ 5.160437] UBI: available PEBs: 0
[ 5.108634] UBI: number of go[ 5.167628] UBI: total number of reserved PE Bs: 3344
od PEBs: 3344
Jan 1 00:0[ 5.175634] UBI: number of PEBs reserved for bad PEB handling: 33
0:04 BUI270 user.notice kernel: [[ 5.184518] UBI: max/mean erase counter: 178 /112
5.116076] UBI: number of bad [ 5.191992] UBI: image sequence number: 108 4247201
PEBs: 4
Jan 1 00:00:04 [ 5.199735] UBI: background thread "ubi_bgt1d" started, PID 8 61
BUI270 user.notice kernel: [ 5.123564] UBI: number of corrupted PEBs: 0
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.130792] UBI: max. allowed volu mes: 128
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.138156] UBI: wear-leveling thr eshold: 4096
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.145903] UBI: number of interna l [ 5.237302] UBIFS: recovery needed
volumes: 1
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.153135] UBI: number of user vo lumes: 1
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.160437] UBI: available PEBs: 0
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.167628] UBI: total number of r eserved PEBs: 3344
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.175634] UBI: number of PEBs re served for bad PEB handling: 33
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.184518] UBI: max/mean erase co unter: 178/112
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.191992] UBI: image sequence nu mber: 1084247201
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.199735] UBI: background thread "ubi_bgt1d" started, PID 861
Jan 1 00:00:04 BUI270 user.notice kernel: [ 5.237302] UBIFS: recovery needed
[ 5.324388] UBIFS: recovery completed
[ 5.328059] UBIFS: mounted UBI device 1, volume 0, name "appdata"
Jan 1 00:00:05 BUI270 user.notic[ 5.334586] UBIFS: file system size: 83651 7888 bytes (816912 KiB, 797 MiB, 3294 LEBs)
e kernel: [ 5.324388] UBIFS: r[ 5.345730] UBIFS: journal size: 33521 664 bytes (32736 KiB, 31 MiB, 132 LEBs)
ecovery completed
Jan 1 00:00:0[ 5.355922] UBIFS: media format: w4/r0 (latest is w4/r0)
5 BUI270 user.notice kernel: [ [ 5.364600] UBIFS: default compressor: lzo
5.328059] UBIFS: mounted UBI dev[ 5.371553] UBIFS: reserved for root: 49526 83 bytes (4836 KiB)
ice 1, volume 0, name "appdata"
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.334586] UBIFS: file system siz e: 836517888 bytes (816912 KiB, 797 MiB, 3294 LEBs)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.345730] UBIFS: journal size: 33521664 bytes (32736 KiB, 31 MiB, 132 LEBs)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.355922] UBIFS: media format: w4/r0 (latest is w4/r0)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.364600] UBIFS: default compres sor: lzo
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.371553] UBIFS: reserved for ro ot: 4952683 bytes (4836 KiB)
mv: can't rename '/var/log//S11-system-settings.28.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.27.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.26.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.25.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.24.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.23.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.22.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.21.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.20.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.19.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.18.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.17.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.16.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.15.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.14.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.13.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.12.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.11.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.10.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.9.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.8.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.7.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.6.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.5.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.4.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.3.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.2.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.1.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.0.gz': Read-only file system
gzip: can't open '/var/log//S11-system-settings.gz': Read-only file system
mv: can't rename '/var/log//S11-system-settings.gz': No such file or directory
/etc/init.d/rc5.d/S11-system-settings: line 4: can't create /var/log//S11-system -settings: Read-only file system
mv: can't rename '/var/log//S12-swap.28.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.27.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.26.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.25.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.24.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.23.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.22.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.21.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.20.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.19.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.18.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.17.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.16.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.15.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.14.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.13.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.12.[ 5.750260] UBI: attaching mtd2 to ub i2
gz': Read-only file system
mv: c[ 5.756364] UBI: physical eraseblock size: 262144 bytes (256 KiB)
an't rename '/var/log//S12-swap.1[ 5.765942] UBI: logical eraseblock size: 253952 bytes
1.gz': Read-only file system
mv:[ 5.773889] UBI: smallest flash I/O unit: 4096
can't rename '/var/log//S12-swap[ 5.781430] UBI: VID header offset: 4096 (aligned 4096)
.10.gz': Read-only file system
m[ 5.790290] UBI: data offset: 8192
v: can't rename '/var/log//S12-swap.9.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.8.gz': Read-only file syst[ 5.807609] UB I: max. sequence number: 1019
em
mv: can't rename '/var/log//S12-swap.7.gz': Read-only file sy[ 5.817304] UBI: attached mtd2 to ubi2
stem
mv: can't rename '/var/log/[ 5.823207] UBI: MTD device name: "vers ion"
/S12-swap.6.gz': Read-only file s[ 5.831169] UBI: MTD device size: 6 MiB
ystem
mv: can't rename '/var/log[ 5.838792] UBI: number of good PEBs: 24
//S12-swap.5.gz': Read-only file [ 5.846060] UBI: number of bad PEBs: 0
system
mv: can't rename '/var/lo[ 5.853549] UBI: number of corrupted PEBs: 0
g//S12-swap.4.gz': Read-only file[ 5.860782] UBI: max. allowed volumes: 128
system
mv: can't rename '/var/l[ 5.868142] UBI: wear-leveling threshold: 4096
og//S12-swap.3.gz': Read-only fil[ 5.875887] UBI: number of internal volumes: 1
e system
mv: can't rename '/var/[ 5.883123] UBI: number of user volumes: 1
log//S12-swap.2.gz': Read-only fi[ 5.890425] UBI: available PEBs: 0
le system
mv: can't rename '/var[ 5.897614] UBI: total number of reserved PEBs: 24
/log//S12-swap.1.gz': Read-only f[ 5.905442] UBI: number of PEBs reserved for bad PEB handling: 2
ile system
mv: can't rename '/va[ 5.914246] UBI: max/mean erase counter: 55/42
r/log//S12-swap.0.gz': Read-only [ 5.921545] UBI: image sequence number: 127 650293
file system
gzip: can't open '/v[ 5.929203] UBI: background thread "ubi_bgt2d" started, P ID 983
ar/log//S12-swap.gz': Read-only file system
mv: can't rename '/var/log//S12-swap.gz': No such file or directory
/etc/init.d/rc5.d/S12-swap: line 4: can't create /var/log//S12-swap: Read-only f ile system
mv: can't rename '/var/log//S13-partition-version.28.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.27.gz': Read-onl[ 5.967521] UBIFS: recovery needed
y file system
mv: can't rename '/var/log//S13-partition-version.26.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.25.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.24.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.23.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.22.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.21.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.20.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.19.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.18.gz': Read-only file system
mv: can't rename '/var/lo[ 6.038325] UBIFS: recovery completed
g//S13-partition-version.17.gz': [ 6.042312] UBIFS: mounted UBI device 2, vol ume 0, name "version"
Read-only file system
mv: can't [ 6.051685] UBIFS: file system size: 2539520 bytes (2480 KiB, 2 M iB, 10 LEBs)
rename '/var/log//S13-partition-v[ 6.061904] UBIFS: journal size: 17776 65 bytes (1736 KiB, 1 MiB, 5 LEBs)
ersion.16.gz': Read-only file sys[ 6.071646] UBIFS: media format: w4/r0 (latest is w4/r0)
tem
mv: can't rename '/var/log//[ 6.080321] UBIFS: default compressor: lzo
S13-partition-version.15.gz': Rea[ 6.087161] UBIFS: reserved for root: 11994 7 bytes (117 KiB)
d-only file system
mv: can't rename '/var/log//S13-partition-version.14.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.13.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.12.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.11.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.10.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.9.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.8.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.7.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.6.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.5.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.4.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.3.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.2.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.1.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.0.gz': Read-only file system
gzip: can't open '/var/log//S13-partition-version.gz': Read-only file system
mv: can't rename '/var/log//S13-partition-version.gz': No such file or directory
/etc/init.d/rc5.d/S13-partition-version: line 4: can't create /var/log//S13-part ition-version: Read-only file system
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.750260] UBI: attaching mtd2 to ubi2
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.756364] UBI: physical eraseblo ck size: 262144 bytes (256 KiB)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.765942] UBI: logical erasebloc k size: 253952 bytes
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.773889] UBI: smallest flash I/ O unit: 4096
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.781430] UBI: VID header offset : 4096 (aligned 4096)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.790290] UBI: data offset: 8192
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.807609] UBI: max. sequence num ber: 1019
Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.817304] UBI: attached mtd2 to ubi2
Jan 1 00:00:05 BUI270 user.notice kernel: [ Jan 1 00:00:05 BUI270 user.notic Jan 1 00:00:05 BUI270 user.notice kernel: [ 5.838792] UBI: numJan 1 00:00:0 5 BUI270 user.noticJan 1 00:00:05 BUI270 user.notice kernel: [ 5.860782] UBI : maxJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.noticJan 1 00 :00:05 BUI270 user.notice kernel: [ 5.890425] UBI: avaJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.noticJan 1 00:00:05 BUI270 user.notice kernel: [ 5.9 67521] UBIFS: recovery needed
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.038325] UBIFS: recovery comple ted
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.042312] UBIFS: mounted UBI dev ice 2, volume 0, name "version"
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.051685] UBIFS: file system siz e: 2539520 bytes (2480 KiB, 2 MiB, 10 LEBs)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.061904] UBIFS: journal size: 1777665 bytes (1736 KiB, 1 MiB, 5 LEBs)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.071646] UBIFS: media format: w4/r0 (latest is w4/r0)
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.080321] UBIFS: default compres sor: lzo
Jan 1 00:00:05 BUI270 user.notice kernel: [ 6.087161] UBIFS: reserved for ro ot: 119947 bytes (117 KiB)
mv: can't rename '/var/log//S20-dbus-uuid.28.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.27.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.26.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.25.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.24.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.23.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.22.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.21.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.20.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.19.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.18.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.17.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.16.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.15.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.14.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.13.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.12.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.11.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.10.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.9.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.8.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.7.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.6.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.5.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.4.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.3.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.2.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.1.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.0.gz': Read-only file system
gzip: can't open '/var/log//S20-dbus-uuid.gz': Read-only file system
mv: can't rename '/var/log//S20-dbus-uuid.gz': No such file or directory
/etc/init.d/rc5.d/S20-dbus-uuid: line 4: can't create /var/log//S20-dbus-uuid: R ead-only file system
mv: can't rename '/var/log//S20-dbusd.28.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.27.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.26.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.25.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.24.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.23.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.22.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.21.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.20.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.19.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.18.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.17.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.16.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.15.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.14.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.13.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.12.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.11.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.10.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.9.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.8.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.7.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.6.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.5.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.4.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.3.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.2.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.1.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.0.gz': Read-only file system
gzip: can't open '/var/log//S20-dbusd.gz': Read-only file system
mv: can't rename '/var/log//S20-dbusd.gz': No such file or directory
/etc/init.d/rc5.d/S20-dbusd: line 4: can't create /var/log//S20-dbusd: Read-only file system
mv: can't rename '/var/log//S23-ipcd.28.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.27.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.26.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.25.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.24.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.23.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.22.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.21.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.20.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.19.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.18.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.17.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.16.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.15.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.14.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.13.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.12.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.11.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.10.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.9.gz': Read-only[ 6.924296] spi_imx imx6 q-ecspi.1: probed
file system
mv: can't rename '/var/log//S23-ipcd.8.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.7.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.6.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.5.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.4.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.3.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.2.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.1.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.0.gz': Read-only file system
gzip: can't open '/var/log//S23-ipcd.gz': Read-only file system
mv: can't rename '/var/log//S23-ipcd.gz': No such file or directory
/etc/init.d/rc5.d/S23-ipcd: line 4: can't create /var/log//S23-ipcd: Read-only f ile system
Jan 1 00:00:06 BUI270 user.info kernel: [ 6.924296] spi_imx imx6q-ecspi.1: p robed
mv: can't rename '/var/log//S24-clocksync.28.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.27.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.26.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.25.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.24.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.23.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.22.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.21.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.20.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.19.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.18.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.17.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.16.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.15.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.14.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.13.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.12.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.11.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.10.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.9.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.8.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.7.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.6.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.5.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.4.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.3.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.2.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.1.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.0.gz': Read-only file system
gzip: can't open '/var/log//S24-clocksync.gz': Read-only file system
mv: can't rename '/var/log//S24-clocksync.gz': No such file or directory
/etc/init.d/rc5.d/S24-clocksync: line 4: can't create /var/log//S24-clocksync: R ead-only file system
mv: can't rename '/var/log//S28-shutdownd.28.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.27.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.26.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.25.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.24.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.23.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.22.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.21.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.20.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.19.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.18.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.17.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.16.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.15.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.14.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.13.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.12.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.11.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.10.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.9.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.8.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.7.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.6.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.5.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.4.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.3.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.2.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.1.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.0.gz': Read-only file system
gzip: can't open '/var/log//S28-shutdownd.gz': Read-only file system
mv: can't rename '/var/log//S28-shutdownd.gz': No such file or directory
/etc/init.d/rc5.d/S28-shutdownd: line 4: can't create /var/log//S28-shutdownd: R ead-only file system
mv: can't rename '/var/log//S70-configure-packages.28.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.27.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.26.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.25.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.24.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.23.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.22.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.21.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.20.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.19.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.18.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.16.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.15.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.14.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.13.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.12.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.11.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.10.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.9.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.8.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.7.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.6.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.5.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.4.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.3.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.2.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.1.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.0.gz': Read-only file system
gzip: can't open '/var/log//S70-configure-packages.gz': Read-only file system
mv: can't rename '/var/log//S70-configure-packages.gz': No such file or director y
/etc/init.d/rc5.d/S70-configure-packages: line 4: can't create /var/log//S70-con figure-packages: Read-only file system
mv: can't rename '/var/log//S85-usb-diag.28.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.27.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.26.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.25.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.24.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.23.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.22.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.21.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.20.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.19.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.18.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.17.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.16.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.15.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.14.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.13.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.12.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.11.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.10.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.9.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.8.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.7.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.6.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.5.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.4.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.3.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.2.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.1.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.0.gz': Read-only file system
gzip: can't open '/var/log//S85-usb-diag.gz': Read-only file system
mv: can't rename '/var/log//S85-usb-diag.gz': No such file or directory
/etc/init.d/rc5.d/S85-usb-diag: line 4: can't create /var/log//S85-usb-diag: Rea d-only file system
mv: can't rename '/var/log//S90-hotplugd.28.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.27.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.26.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.25.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.24.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.23.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.22.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.21.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.20.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.19.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.18.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.17.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.16.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.15.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.14.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.13.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.12.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.11.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.10.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.9.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.8.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.7.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.6.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.5.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.4.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.3.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.2.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.1.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.0.gz': Read-only file system
gzip: can't open '/var/log//S90-hotplugd.gz': Read-only file system
mv: can't rename '/var/log//S90-hotplugd.gz': No such file or directory
/etc/init.d/rc5.d/S90-hotplugd: line 4: can't create /var/log//S90-hotplugd: Rea d-only file system
mv: can't rename '/var/log//S93-ti-st.28.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.27.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.26.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.25.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.24.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.23.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.22.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.21.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.20.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.19.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.18.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.17.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.16.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.15.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.14.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.13.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.12.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.11.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.10.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.9.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.8.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.7.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.6.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.5.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.4.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.3.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.2.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.1.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.0.gz': Read-only file system
gzip: can't open '/var/log//S93-ti-st.gz': Read-only file system
mv: can't rename '/var/log//S93-ti-st.gz': No such file or directory
/etc/init.d/rc5.d/S93-ti-st: line 4: can't create /var/log//S93-ti-st: Read-only file system
mv: can't rename '/var/log//S96-wifi.28.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.27.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.26.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.25.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.24.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.22.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.21.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.20.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.19.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.18.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.17.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.16.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.15.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.14.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.13.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.12.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.11.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.10.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.9.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.8.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.7.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.6.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.4.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.3.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.2.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.1.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.0.gz': Read-only file system
gzip: can't open '/var/log//S96-wifi.gz': Read-only file system
mv: can't rename '/var/log//S96-wifi.gz': No such file or directory
/etc/init.d/rc5.d/S96-wifi: line 4: can't create /var/log//S96-wifi: Read-only f ile system
mv: can't rename '/var/log//S97-ondemand.28.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.27.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.26.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.25.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.24.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.23.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.22.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.21.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.20.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.19.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.18.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.17.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.16.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.15.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.14.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.13.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.12.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.11.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.10.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.9.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.8.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.7.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.6.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.5.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.4.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.3.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.2.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.1.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.0.gz': Read-only file system
gzip: can't open '/var/log//S97-ondemand.gz': Read-only file system
mv: can't rename '/var/log//S97-ondemand.gz': No such file or directory
/etc/init.d/rc5.d/S97-ondemand: line 4: can't create /var/log//S97-ondemand: Rea d-only file system
mv: can't rename '/var/log//S98-chargerdetect.28.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.27.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.26.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.25.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.24.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.23.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.22.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.21.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.20.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.19.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.18.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.17.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.16.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.15.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.14.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.13.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.12.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.11.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.10.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.9.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.8.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.7.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.6.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.5.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.4.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.3.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.2.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.1.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.0.gz': Read-only file system
gzip: can't open '/var/log//S98-chargerdetect.gz': Read-only file system
mv: can't rename '/var/log//S98-chargerdetect.gz': No such file or directory
/etc/init.d/rc5.d/S98-chargerdetect: line 4: can't create /var/log//S98-chargerd etect: Read-only file system
mv: can't rename '/var/log//S98-kssupdater.28.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.27.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.26.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.25.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.24.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.23.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.22.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.21.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.20.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.19.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.18.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.17.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.16.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.15.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.14.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.13.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.12.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.11.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.10.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.9.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.8.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.7.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.6.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.5.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.4.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.3.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.2.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.1.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.0.gz': Read-only file system
gzip: can't open '/var/log//S98-kssupdater.gz': Read-only file system
mv: can't rename '/var/log//S98-kssupdater.gz': No such file or directory
/etc/init.d/rc5.d/S98-kssupdater: line 4: can't create /var/log//S98-kssupdater: Read-only file system
^C[ 17.698405] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
Jan 1 00:00:17 BUI270 user.info kernel: [ 17.698405] gadgetfs: USB Gadget fil esystem, version 24 Aug 2004
Jan 1 00:00:17 BUI270 user.debug kernel: [ 17.705780] retval -120
[-- Attachment #3: Type: text/plain, Size: 169 bytes --]
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply
* Re: [PATCH v2 4/7] x86: put msr-index.h in uapi
From: Borislav Petkov @ 2017-01-06 12:14 UTC (permalink / raw)
To: Nicolas Dichtel
Cc: arnd, mmarek, linux-kbuild, linux-doc, linux-kernel, linux-alpha,
linux-snps-arc, linux-arm-kernel, adi-buildroot-devel,
linux-c6x-dev, linux-cris-kernel, uclinux-h8-devel, linux-hexagon,
linux-ia64, linux-m68k, linux-metag, linux-mips, linux-am33-list,
nios2-dev, openrisc, linux-parisc, linuxppc-dev, linux-s390,
linux-sh, sparclinux, linux-xtensa
In-Reply-To: <1483695839-18660-5-git-send-email-nicolas.dichtel@6wind.com>
On Fri, Jan 06, 2017 at 10:43:56AM +0100, Nicolas Dichtel wrote:
> This header file is exported, thus move it to uapi.
It should rather not be exported - please remove it from
arch/x86/include/uapi/asm/Kbuild instead.
Thanks.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
^ permalink raw reply
* Recommendation on new system Arrays
From: Benjammin2068 @ 2017-01-06 16:14 UTC (permalink / raw)
To: Linux-RAID
Hey guys,
I have a question for you now that I'm diving into a machine with more drives on a single system than I've ever worked with before.
Hardware:
Supermicro Rack PC with Avago MegaRAID SAS 9380-8e HBA. Motherboard has Dual Xeon E5-2640 V4 cpus (10 HT cores each)
Supermicro SC847 JBOD housing with room for 44 disk but currently populated with 22 drives (rear backplane)
(22) HGST 8TB drives - Model HUH728080AL5200 - https://www.hgst.com/products/hard-drives/ultrastar-he8
OS is CentOS 7.x (I think 7.2. I just downloaded and installed the other night)
Of course, I'd like to avoid HW raid.
but.. for this array, I was going to split into a couple of RAID6 arrays with a couple hot spares in the rack.
* one for owners data
* the other as a data drive for use with surveillance software (from Milestone probably) running in a VM as a secondary storage vault for company cameras/NVRs that are remote. (like a backup system)
But anything else I should look out for?
Thanks,
-Ben
^ permalink raw reply
* Re: [PATCH v2 1/1] block: fix blk_queue_split() resource exhaustion
From: Mikulas Patocka @ 2017-01-06 16:50 UTC (permalink / raw)
To: Mike Snitzer
Cc: NeilBrown, Jack Wang, Lars Ellenberg, Jens Axboe, linux-raid,
Michael Wang, Peter Zijlstra, Jiri Kosina, Ming Lei, linux-kernel,
Zheng Liu, linux-block, Takashi Iwai,
linux-bcache@vger.kernel.org, Ingo Molnar, Alasdair Kergon,
Martin K. Petersen, Keith Busch, device-mapper development,
Shaohua Li, Kent
In-Reply-To: <20170104185046.GA982@redhat.com>
On Wed, 4 Jan 2017, Mike Snitzer wrote:
> On Wed, Jan 04 2017 at 12:12am -0500,
> NeilBrown <neilb@suse.com> wrote:
>
> > On Tue, Jan 03 2017, Jack Wang wrote:
> >
> > > 2016-12-23 12:45 GMT+01:00 Lars Ellenberg <lars.ellenberg@linbit.com>:
> > >> On Fri, Dec 23, 2016 at 09:49:53AM +0100, Michael Wang wrote:
> > >>> Dear Maintainers
> > >>>
> > >>> I'd like to ask for the status of this patch since we hit the
> > >>> issue too during our testing on md raid1.
> > >>>
> > >>> Split remainder bio_A was queued ahead, following by bio_B for
> > >>> lower device, at this moment raid start freezing, the loop take
> > >>> out bio_A firstly and deliver it, which will hung since raid is
> > >>> freezing, while the freezing never end since it waiting for
> > >>> bio_B to finish, and bio_B is still on the queue, waiting for
> > >>> bio_A to finish...
> > >>>
> > >>> We're looking for a good solution and we found this patch
> > >>> already progressed a lot, but we can't find it on linux-next,
> > >>> so we'd like to ask are we still planning to have this fix
> > >>> in upstream?
> > >>
> > >> I don't see why not, I'd even like to have it in older kernels,
> > >> but did not have the time and energy to push it.
> > >>
> > >> Thanks for the bump.
> > >>
> > >> Lars
> > >>
> > > Hi folks,
> > >
> > > As Michael mentioned, we hit a bug this patch is trying to fix.
> > > Neil suggested another way to fix it. I attached below.
> > > I personal prefer Neil's version as it's less code change, and straight forward.
> > >
> > > Could you share your comments, we can get one fix into mainline.
> > >
> > > Thanks,
> > > Jinpu
> > > From 69a4829a55503e496ce9c730d2c8e3dd8a08874a Mon Sep 17 00:00:00 2001
> > > From: NeilBrown <neilb@suse.com>
> > > Date: Wed, 14 Dec 2016 16:55:52 +0100
> > > Subject: [PATCH] block: fix deadlock between freeze_array() and wait_barrier()
> > >
> > > When we call wait_barrier, we might have some bios waiting
> > > in current->bio_list, which prevents the array_freeze call to
> > > complete. Those can only be internal READs, which have already
> > > passed the wait_barrier call (thus incrementing nr_pending), but
> > > still were not submitted to the lower level, due to generic_make_request
> > > logic to avoid recursive calls. In such case, we have a deadlock:
> > > - array_frozen is already set to 1, so wait_barrier unconditionally waits, so
> > > - internal READ bios will not be submitted, thus freeze_array will
> > > never completes.
> > >
> > > To fix this, modify generic_make_request to always sort bio_list_on_stack
> > > first with lowest level, then higher, until same level.
> > >
> > > Sent to linux-raid mail list:
> > > https://marc.info/?l=linux-raid&m=148232453107685&w=2
> > >
> >
> > This should probably also have
> >
> > Inspired-by: Lars Ellenberg <lars.ellenberg@linbit.com>
> >
> > or something that, as I was building on Lars' ideas when I wrote this.
> >
> > It would also be worth noting in the description that this addresses
> > issues with dm and drbd as well as md.
>
> I never saw this patch but certainly like the relative simplicity of the
> solution when compared with other approaches taken, e.g. (5 topmost
> commits on this branch):
> http://git.kernel.org/cgit/linux/kernel/git/snitzer/linux.git/log/?h=wip
>
> > In fact, I think that with this patch in place, much of the need for the
> > rescue_workqueue won't exist any more. I cannot promise it can be
> > removed completely, but it should be to hard to make it optional and
> > only enabled for those few block devices that will still need it.
> > The rescuer should only be needed for a bioset which can be allocated
> > From twice in the one call the ->make_request_fn. This would include
> > raid0 for example, though raid0_make_reqest could be re-written to not
> > use a loop and to just call generic_make_request(bio) if bio != split.
>
> > > Suggested-by: NeilBrown <neilb@suse.com>
> > > Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
> > > ---
> > > block/blk-core.c | 20 ++++++++++++++++++++
> > > 1 file changed, 20 insertions(+)
> > >
> > > diff --git a/block/blk-core.c b/block/blk-core.c
> > > index 9e3ac56..47ef373 100644
> > > --- a/block/blk-core.c
> > > +++ b/block/blk-core.c
> > > @@ -2138,10 +2138,30 @@ blk_qc_t generic_make_request(struct bio *bio)
> > > struct request_queue *q = bdev_get_queue(bio->bi_bdev);
> > >
> > > if (likely(blk_queue_enter(q, __GFP_DIRECT_RECLAIM) == 0)) {
> > > + struct bio_list lower, same, hold;
> > > +
> > > + /* Create a fresh bio_list for all subordinate requests */
> > > + bio_list_init(&hold);
> > > + bio_list_merge(&hold, &bio_list_on_stack);
> > > + bio_list_init(&bio_list_on_stack);
> > >
> > > ret = q->make_request_fn(q, bio);
> > >
> > > blk_queue_exit(q);
> > > + /* sort new bios into those for a lower level
> > > + * and those for the same level
> > > + */
> > > + bio_list_init(&lower);
> > > + bio_list_init(&same);
> > > + while ((bio = bio_list_pop(&bio_list_on_stack)) != NULL)
> > > + if (q == bdev_get_queue(bio->bi_bdev))
> > > + bio_list_add(&same, bio);
> > > + else
> > > + bio_list_add(&lower, bio);
> > > + /* now assemble so we handle the lowest level first */
> > > + bio_list_merge(&bio_list_on_stack, &lower);
> > > + bio_list_merge(&bio_list_on_stack, &same);
> > > + bio_list_merge(&bio_list_on_stack, &hold);
> > >
> > > bio = bio_list_pop(current->bio_list);
> > > } else {
> > > --
> > > 2.7.4
>
> Mikulas, would you be willing to try the below patch with the
> dm-snapshot deadlock scenario and report back on whether it fixes that?
>
> Patch below looks to be the same as here:
> https://marc.info/?l=linux-raid&m=148232453107685&q=p3
>
> Neil and/or others if that isn't the patch that should be tested please
> provide a pointer to the latest.
>
> Thanks,
> Mike
The bad news is that this doesn't fix the snapshot deadlock.
I created a test program for the snapshot deadlock bug (it was originally
created years ago to test for a different bug, so it contains some cruft).
You also need to insert "if (ci->sector_count) msleep(100);" to the end of
__split_and_process_non_flush to make the kernel sleep when splitting the
bio.
And with the above above patch, the snapshot deadlock bug still happens.
Mikulas
#define _XOPEN_SOURCE 500
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <malloc.h>
#include <pthread.h>
#include <asm/unistd.h>
/*
* Change "VG" symbol to a volume group name that you are using.
*
* You must apply this patch to the kernel to trigger the bug:
* Index: linux-4.10-rc2/drivers/md/dm.c
* ===================================================================
* --- linux-4.10-rc2.orig/drivers/md/dm.c
* +++ linux-4.10-rc2/drivers/md/dm.c
* @@ -1223,6 +1223,9 @@ static int __split_and_process_non_flush
* ci->sector += len;
* ci->sector_count -= len;
*
* + if (ci->sector_count)
* + msleep(100);
* +
* return 0;
* }
*
*/
#define VG "vg1"
#define LV "test_lv"
#define LV_SNAP "test_snap"
#define MEGABYTES "12"
#define SNAP_MEGABYTES "16"
#define THREADS 1
#define BS 4096
#define SKEW 512
#define ORIG_PATTERN 'p'
#define NEW_PATTERN 'n'
enum {
IOPRIO_CLASS_NONE,
IOPRIO_CLASS_RT,
IOPRIO_CLASS_BE,
IOPRIO_CLASS_IDLE,
};
enum {
IOPRIO_WHO_PROCESS = 1,
IOPRIO_WHO_PGRP,
IOPRIO_WHO_USER,
};
#define IOPRIO_CLASS_SHIFT 13
static inline int ioprio_set(int which, int who, int ioprio)
{
return syscall(__NR_ioprio_set, which, who, ioprio);
}
static inline int ioprio_get(int which, int who)
{
return syscall(__NR_ioprio_get, which, who);
}
#define PRIO_READER ((IOPRIO_CLASS_IDLE << IOPRIO_CLASS_SHIFT) | 0xff)
#define PRIO_WRITER (IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT)
static void do_cmd(char *cmd, int ign_err)
{
int r;
fprintf(stderr, "* %s\n", cmd);
r = system(cmd);
if (r) {
if (r == -1) {
perror("system");
} else {
if (ign_err) return;
fprintf(stderr, "return code %x\n", r);
}
exit(1);
}
}
static char pattern[BS];
static int h_orig, h_snap;
static int n;
static long long test_of;
static pthread_rwlock_t rw_lock_1;
static pthread_rwlock_t rw_lock_2;
static pthread_rwlock_t rw_lock_3;
static volatile int started = 0;
static void pthread_error(int r)
{
fprintf(stderr, "pthread_error: %s\n", strerror(r));
exit(1);
}
static void *test_read(long long of)
{
int r;
char *t = memalign(BS, BS);
if (!t) perror("memalign"), exit(1);
if ((r = pread(h_snap, t, BS, of)) != BS) {
fprintf(stderr, "can't read (%d): %s\n", r, strerror(errno));
exit(1);
}
if (memcmp(pattern, t, BS)) {
int i;
for (i = 0; i < BS; i++) if (t[i] != pattern[i]) break;
fprintf(stderr, "!!!! SNAPSHOT VOLUME DAMAGE AT BLOCK OFFSET %llX, BYTE OFFSET %X: %02x != %02x\n", of, i, (unsigned char)t[i], (unsigned char)pattern[i]);
exit(2);
}
free(t);
return NULL;
}
static void *test_thread(void *_)
{
int r;
_ = _;
//fprintf(stderr, "start\n");
if ((r = ioprio_set(IOPRIO_WHO_PROCESS, 0, PRIO_READER))) perror("ioprio_set"), exit(1);
if ((r = pthread_rwlock_rdlock(&rw_lock_2))) pthread_error(r);
started = 1;
if ((r = ioprio_get(IOPRIO_WHO_PROCESS, 0)) != PRIO_READER) {
if (r == -1) perror("ioprio_get");
else fprintf(stderr, "reader priority not set: %x\n", r);
exit(1);
}
again:
if ((r = pthread_rwlock_rdlock(&rw_lock_1))) pthread_error(r);
if ((r = pthread_rwlock_unlock(&rw_lock_2))) pthread_error(r);
if (test_of == -1) {
if ((r = pthread_rwlock_unlock(&rw_lock_1))) pthread_error(r);
//fprintf(stderr, "return\n");
return NULL;
}
//fprintf(stderr, "test(%lld)\n", test_of);
test_read(test_of);
if ((r = pthread_rwlock_rdlock(&rw_lock_3))) pthread_error(r);
if ((r = pthread_rwlock_unlock(&rw_lock_1))) pthread_error(r);
if ((r = pthread_rwlock_rdlock(&rw_lock_2))) pthread_error(r);
if ((r = pthread_rwlock_unlock(&rw_lock_3))) pthread_error(r);
goto again;
}
int main(void)
{
int i, j, r;
char *np;
pthread_t thr[THREADS];
memset(pattern, ORIG_PATTERN, sizeof pattern);
do_cmd("lvremove -f "VG"/"LV_SNAP"", 1);
do_cmd("lvremove -f "VG"/"LV"", 1);
do_cmd("lvcreate -L "MEGABYTES" -n "LV" "VG"", 0);
h_orig = open("/dev/mapper/"VG"-"LV"", O_RDWR);
if (h_orig < 0) perror("open orig"), exit(1);
if (lseek(h_orig, SKEW, SEEK_SET) == -1) perror("lseek"), exit(1);
n = 0;
while (write(h_orig, pattern, BS) == BS) {
n++;
fprintf(stderr, "creating %llx...\r", (long long)n * BS + SKEW);
}
if (fsync(h_orig)) perror("fsync"), exit(1);
fprintf(stderr,"\n");
lseek(h_orig, 0, SEEK_SET);
close(h_orig);
do_cmd("lvcreate -L "SNAP_MEGABYTES" -n "LV_SNAP" -s "VG"/"LV"", 0);
h_orig = open("/dev/mapper/"VG"-"LV"", O_RDWR | O_DIRECT);
if (h_orig < 0) perror("open orig"), exit(1);
h_snap = open("/dev/mapper/"VG"-"LV_SNAP"", O_RDONLY | O_DIRECT);
if (h_snap < 0) perror("open snap"), exit(1);
if ((r = pthread_rwlock_init(&rw_lock_1, NULL))) pthread_error(r);
if ((r = pthread_rwlock_init(&rw_lock_2, NULL))) pthread_error(r);
if ((r = pthread_rwlock_init(&rw_lock_3, NULL))) pthread_error(r);
if ((r = pthread_rwlock_wrlock(&rw_lock_1))) pthread_error(r);
if ((r = pthread_rwlock_wrlock(&rw_lock_3))) pthread_error(r);
if ((r = ioprio_set(IOPRIO_WHO_PROCESS, 0, PRIO_WRITER))) perror("ioprio_set"), exit(1);
for (j = 0; j < THREADS; j++) {
if ((r = pthread_create(&thr[j], NULL, test_thread, NULL))) pthread_error(r);
}
while (!started) usleep(1000);
if ((r = ioprio_get(IOPRIO_WHO_PROCESS, 0)) != PRIO_WRITER) {
if (r == -1) perror("ioprio_get");
else fprintf(stderr, "writer priority not set: %x\n", r);
exit(1);
}
np = memalign(BS, BS);
if (!np) perror("memalign"), exit(1);
memset(np, NEW_PATTERN, BS);
for (i = 0; i < n; i++) {
test_of = (off_t)i * BS + SKEW;
fprintf(stderr, "testing %llx...\r", test_of);
if ((r = pthread_rwlock_unlock(&rw_lock_1))) pthread_error(r);
sched_yield();
if (pwrite(h_orig, np, BS, test_of) != BS) {
fprintf(stderr, "can't write (%d): %s\n", r, strerror(errno));
exit(1);
}
if ((r = pthread_rwlock_wrlock(&rw_lock_2))) pthread_error(r);
if ((r = pthread_rwlock_unlock(&rw_lock_3))) pthread_error(r);
if ((r = pthread_rwlock_wrlock(&rw_lock_1))) pthread_error(r);
if ((r = pthread_rwlock_unlock(&rw_lock_2))) pthread_error(r);
if ((r = pthread_rwlock_wrlock(&rw_lock_3))) pthread_error(r);
}
fprintf(stderr,"\n");
test_of = -1;
if ((r = pthread_rwlock_unlock(&rw_lock_1))) pthread_error(r);
for (j = 0; j < THREADS; j++) {
if ((r = pthread_join(thr[j], NULL))) pthread_error(r);
}
fprintf(stderr, "TEST PASSED OK.\n");
return 0;
}
^ permalink raw reply
* Re: [PATCH v2 1/1] block: fix blk_queue_split() resource exhaustion
From: Mikulas Patocka @ 2017-01-06 17:34 UTC (permalink / raw)
To: Mike Snitzer
Cc: NeilBrown, Jack Wang, Lars Ellenberg, Jens Axboe, linux-raid,
Michael Wang, Peter Zijlstra, Jiri Kosina, Ming Lei, linux-kernel,
Zheng Liu, linux-block, Takashi Iwai,
linux-bcache@vger.kernel.org, Ingo Molnar, Alasdair Kergon,
Martin K. Petersen, Keith Busch, device-mapper development,
Shaohua Li, Kent
In-Reply-To: <alpine.LRH.2.02.1701061139160.13944@file01.intranet.prod.int.rdu2.redhat.com>
On Fri, 6 Jan 2017, Mikulas Patocka wrote:
>
>
> On Wed, 4 Jan 2017, Mike Snitzer wrote:
>
> > On Wed, Jan 04 2017 at 12:12am -0500,
> > NeilBrown <neilb@suse.com> wrote:
> >
> > > > Suggested-by: NeilBrown <neilb@suse.com>
> > > > Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
> > > > ---
> > > > block/blk-core.c | 20 ++++++++++++++++++++
> > > > 1 file changed, 20 insertions(+)
> > > >
> > > > diff --git a/block/blk-core.c b/block/blk-core.c
> > > > index 9e3ac56..47ef373 100644
> > > > --- a/block/blk-core.c
> > > > +++ b/block/blk-core.c
> > > > @@ -2138,10 +2138,30 @@ blk_qc_t generic_make_request(struct bio *bio)
> > > > struct request_queue *q = bdev_get_queue(bio->bi_bdev);
> > > >
> > > > if (likely(blk_queue_enter(q, __GFP_DIRECT_RECLAIM) == 0)) {
> > > > + struct bio_list lower, same, hold;
> > > > +
> > > > + /* Create a fresh bio_list for all subordinate requests */
> > > > + bio_list_init(&hold);
> > > > + bio_list_merge(&hold, &bio_list_on_stack);
> > > > + bio_list_init(&bio_list_on_stack);
> > > >
> > > > ret = q->make_request_fn(q, bio);
> > > >
> > > > blk_queue_exit(q);
> > > > + /* sort new bios into those for a lower level
> > > > + * and those for the same level
> > > > + */
> > > > + bio_list_init(&lower);
> > > > + bio_list_init(&same);
> > > > + while ((bio = bio_list_pop(&bio_list_on_stack)) != NULL)
> > > > + if (q == bdev_get_queue(bio->bi_bdev))
> > > > + bio_list_add(&same, bio);
> > > > + else
> > > > + bio_list_add(&lower, bio);
> > > > + /* now assemble so we handle the lowest level first */
> > > > + bio_list_merge(&bio_list_on_stack, &lower);
> > > > + bio_list_merge(&bio_list_on_stack, &same);
> > > > + bio_list_merge(&bio_list_on_stack, &hold);
> > > >
> > > > bio = bio_list_pop(current->bio_list);
> > > > } else {
> > > > --
> > > > 2.7.4
> >
> > Mikulas, would you be willing to try the below patch with the
> > dm-snapshot deadlock scenario and report back on whether it fixes that?
> >
> > Patch below looks to be the same as here:
> > https://marc.info/?l=linux-raid&m=148232453107685&q=p3
> >
> > Neil and/or others if that isn't the patch that should be tested please
> > provide a pointer to the latest.
> >
> > Thanks,
> > Mike
>
> The bad news is that this doesn't fix the snapshot deadlock.
>
> I created a test program for the snapshot deadlock bug (it was originally
> created years ago to test for a different bug, so it contains some cruft).
> You also need to insert "if (ci->sector_count) msleep(100);" to the end of
> __split_and_process_non_flush to make the kernel sleep when splitting the
> bio.
>
> And with the above above patch, the snapshot deadlock bug still happens.
>
> Mikulas
>
>
> #define _XOPEN_SOURCE 500
> #define _GNU_SOURCE
> #include <stdio.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <fcntl.h>
> #include <string.h>
> #include <errno.h>
> #include <malloc.h>
> #include <pthread.h>
> #include <asm/unistd.h>
>
> /*
> * Change "VG" symbol to a volume group name that you are using.
> *
> * You must apply this patch to the kernel to trigger the bug:
> * Index: linux-4.10-rc2/drivers/md/dm.c
> * ===================================================================
> * --- linux-4.10-rc2.orig/drivers/md/dm.c
> * +++ linux-4.10-rc2/drivers/md/dm.c
> * @@ -1223,6 +1223,9 @@ static int __split_and_process_non_flush
> * ci->sector += len;
> * ci->sector_count -= len;
> *
> * + if (ci->sector_count)
> * + msleep(100);
> * +
> * return 0;
> * }
> *
> */
>
> #define VG "vg1"
> #define LV "test_lv"
> #define LV_SNAP "test_snap"
> #define MEGABYTES "12"
> #define SNAP_MEGABYTES "16"
> #define THREADS 1
> #define BS 4096
> #define SKEW 512
> #define ORIG_PATTERN 'p'
> #define NEW_PATTERN 'n'
>
> enum {
> IOPRIO_CLASS_NONE,
> IOPRIO_CLASS_RT,
> IOPRIO_CLASS_BE,
> IOPRIO_CLASS_IDLE,
> };
>
> enum {
> IOPRIO_WHO_PROCESS = 1,
> IOPRIO_WHO_PGRP,
> IOPRIO_WHO_USER,
> };
>
> #define IOPRIO_CLASS_SHIFT 13
>
> static inline int ioprio_set(int which, int who, int ioprio)
> {
> return syscall(__NR_ioprio_set, which, who, ioprio);
> }
>
> static inline int ioprio_get(int which, int who)
> {
> return syscall(__NR_ioprio_get, which, who);
> }
>
> #define PRIO_READER ((IOPRIO_CLASS_IDLE << IOPRIO_CLASS_SHIFT) | 0xff)
> #define PRIO_WRITER (IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT)
>
> static void do_cmd(char *cmd, int ign_err)
> {
> int r;
> fprintf(stderr, "* %s\n", cmd);
> r = system(cmd);
> if (r) {
> if (r == -1) {
> perror("system");
> } else {
> if (ign_err) return;
> fprintf(stderr, "return code %x\n", r);
> }
> exit(1);
> }
> }
>
> static char pattern[BS];
>
> static int h_orig, h_snap;
> static int n;
> static long long test_of;
> static pthread_rwlock_t rw_lock_1;
> static pthread_rwlock_t rw_lock_2;
> static pthread_rwlock_t rw_lock_3;
> static volatile int started = 0;
>
> static void pthread_error(int r)
> {
> fprintf(stderr, "pthread_error: %s\n", strerror(r));
> exit(1);
> }
>
> static void *test_read(long long of)
> {
> int r;
> char *t = memalign(BS, BS);
> if (!t) perror("memalign"), exit(1);
> if ((r = pread(h_snap, t, BS, of)) != BS) {
> fprintf(stderr, "can't read (%d): %s\n", r, strerror(errno));
> exit(1);
> }
> if (memcmp(pattern, t, BS)) {
> int i;
> for (i = 0; i < BS; i++) if (t[i] != pattern[i]) break;
> fprintf(stderr, "!!!! SNAPSHOT VOLUME DAMAGE AT BLOCK OFFSET %llX, BYTE OFFSET %X: %02x != %02x\n", of, i, (unsigned char)t[i], (unsigned char)pattern[i]);
> exit(2);
> }
> free(t);
> return NULL;
> }
>
> static void *test_thread(void *_)
> {
> int r;
> _ = _;
> //fprintf(stderr, "start\n");
> if ((r = ioprio_set(IOPRIO_WHO_PROCESS, 0, PRIO_READER))) perror("ioprio_set"), exit(1);
> if ((r = pthread_rwlock_rdlock(&rw_lock_2))) pthread_error(r);
> started = 1;
> if ((r = ioprio_get(IOPRIO_WHO_PROCESS, 0)) != PRIO_READER) {
> if (r == -1) perror("ioprio_get");
> else fprintf(stderr, "reader priority not set: %x\n", r);
> exit(1);
> }
> again:
> if ((r = pthread_rwlock_rdlock(&rw_lock_1))) pthread_error(r);
> if ((r = pthread_rwlock_unlock(&rw_lock_2))) pthread_error(r);
> if (test_of == -1) {
> if ((r = pthread_rwlock_unlock(&rw_lock_1))) pthread_error(r);
> //fprintf(stderr, "return\n");
> return NULL;
> }
> //fprintf(stderr, "test(%lld)\n", test_of);
> test_read(test_of);
> if ((r = pthread_rwlock_rdlock(&rw_lock_3))) pthread_error(r);
> if ((r = pthread_rwlock_unlock(&rw_lock_1))) pthread_error(r);
> if ((r = pthread_rwlock_rdlock(&rw_lock_2))) pthread_error(r);
> if ((r = pthread_rwlock_unlock(&rw_lock_3))) pthread_error(r);
> goto again;
> }
>
> int main(void)
> {
> int i, j, r;
> char *np;
> pthread_t thr[THREADS];
>
> memset(pattern, ORIG_PATTERN, sizeof pattern);
>
> do_cmd("lvremove -f "VG"/"LV_SNAP"", 1);
> do_cmd("lvremove -f "VG"/"LV"", 1);
> do_cmd("lvcreate -L "MEGABYTES" -n "LV" "VG"", 0);
>
> h_orig = open("/dev/mapper/"VG"-"LV"", O_RDWR);
> if (h_orig < 0) perror("open orig"), exit(1);
> if (lseek(h_orig, SKEW, SEEK_SET) == -1) perror("lseek"), exit(1);
> n = 0;
> while (write(h_orig, pattern, BS) == BS) {
> n++;
> fprintf(stderr, "creating %llx...\r", (long long)n * BS + SKEW);
> }
> if (fsync(h_orig)) perror("fsync"), exit(1);
> fprintf(stderr,"\n");
> lseek(h_orig, 0, SEEK_SET);
> close(h_orig);
>
> do_cmd("lvcreate -L "SNAP_MEGABYTES" -n "LV_SNAP" -s "VG"/"LV"", 0);
>
> h_orig = open("/dev/mapper/"VG"-"LV"", O_RDWR | O_DIRECT);
> if (h_orig < 0) perror("open orig"), exit(1);
>
> h_snap = open("/dev/mapper/"VG"-"LV_SNAP"", O_RDONLY | O_DIRECT);
> if (h_snap < 0) perror("open snap"), exit(1);
>
> if ((r = pthread_rwlock_init(&rw_lock_1, NULL))) pthread_error(r);
> if ((r = pthread_rwlock_init(&rw_lock_2, NULL))) pthread_error(r);
> if ((r = pthread_rwlock_init(&rw_lock_3, NULL))) pthread_error(r);
> if ((r = pthread_rwlock_wrlock(&rw_lock_1))) pthread_error(r);
> if ((r = pthread_rwlock_wrlock(&rw_lock_3))) pthread_error(r);
>
> if ((r = ioprio_set(IOPRIO_WHO_PROCESS, 0, PRIO_WRITER))) perror("ioprio_set"), exit(1);
>
> for (j = 0; j < THREADS; j++) {
> if ((r = pthread_create(&thr[j], NULL, test_thread, NULL))) pthread_error(r);
> }
> while (!started) usleep(1000);
>
> if ((r = ioprio_get(IOPRIO_WHO_PROCESS, 0)) != PRIO_WRITER) {
> if (r == -1) perror("ioprio_get");
> else fprintf(stderr, "writer priority not set: %x\n", r);
> exit(1);
> }
>
> np = memalign(BS, BS);
> if (!np) perror("memalign"), exit(1);
> memset(np, NEW_PATTERN, BS);
> for (i = 0; i < n; i++) {
> test_of = (off_t)i * BS + SKEW;
> fprintf(stderr, "testing %llx...\r", test_of);
> if ((r = pthread_rwlock_unlock(&rw_lock_1))) pthread_error(r);
> sched_yield();
> if (pwrite(h_orig, np, BS, test_of) != BS) {
> fprintf(stderr, "can't write (%d): %s\n", r, strerror(errno));
> exit(1);
> }
> if ((r = pthread_rwlock_wrlock(&rw_lock_2))) pthread_error(r);
> if ((r = pthread_rwlock_unlock(&rw_lock_3))) pthread_error(r);
> if ((r = pthread_rwlock_wrlock(&rw_lock_1))) pthread_error(r);
> if ((r = pthread_rwlock_unlock(&rw_lock_2))) pthread_error(r);
> if ((r = pthread_rwlock_wrlock(&rw_lock_3))) pthread_error(r);
> }
> fprintf(stderr,"\n");
>
> test_of = -1;
> if ((r = pthread_rwlock_unlock(&rw_lock_1))) pthread_error(r);
>
> for (j = 0; j < THREADS; j++) {
> if ((r = pthread_join(thr[j], NULL))) pthread_error(r);
> }
>
> fprintf(stderr, "TEST PASSED OK.\n");
>
> return 0;
> }
>
>
Here I post a patch that fixes the snapshot deadlock. On schedule(), it
redirects bios on current->bio_list to helper workqueues.
Mikulas
From f126e182a053ef2e44a3e70b86df84d2b003530b Mon Sep 17 00:00:00 2001
From: Mikulas Patocka <mpatocka@redhat.com>
Date: Tue, 27 May 2014 11:03:36 -0400
Subject: block: flush queued bios when process blocks to avoid deadlock
The block layer uses per-process bio list to avoid recursion in
generic_make_request. When generic_make_request is called recursively,
the bio is added to current->bio_list and generic_make_request returns
immediately. The top-level instance of generic_make_request takes bios
from current->bio_list and processes them.
Commit df2cb6daa4 ("block: Avoid deadlocks with bio allocation by
stacking drivers") created a workqueue for every bio set and code
in bio_alloc_bioset() that tries to resolve some low-memory deadlocks by
redirecting bios queued on current->bio_list to the workqueue if the
system is low on memory. However another deadlock (see below **) may
happen, without any low memory condition, because generic_make_request
is queuing bios to current->bio_list (rather than submitting them).
Fix this deadlock by redirecting any bios on current->bio_list to the
bio_set's rescue workqueue on every schedule call. Consequently, when
the process blocks on a mutex, the bios queued on current->bio_list are
dispatched to independent workqueus and they can complete without
waiting for the mutex to be available.
Also, now we can remove punt_bios_to_rescuer() and bio_alloc_bioset()'s
calls to it because bio_alloc_bioset() will implicitly punt all bios on
current->bio_list if it performs a blocking allocation.
** Here is the dm-snapshot deadlock that was observed:
1) Process A sends one-page read bio to the dm-snapshot target. The bio
spans snapshot chunk boundary and so it is split to two bios by device
mapper.
2) Device mapper creates the first sub-bio and sends it to the snapshot
driver.
3) The function snapshot_map calls track_chunk (that allocates a structure
dm_snap_tracked_chunk and adds it to tracked_chunk_hash) and then remaps
the bio to the underlying device and exits with DM_MAPIO_REMAPPED.
4) The remapped bio is submitted with generic_make_request, but it isn't
issued - it is added to current->bio_list instead.
5) Meanwhile, process B (dm's kcopyd) executes pending_complete for the
chunk affected be the first remapped bio, it takes down_write(&s->lock)
and then loops in __check_for_conflicting_io, waiting for
dm_snap_tracked_chunk created in step 3) to be released.
6) Process A continues, it creates a second sub-bio for the rest of the
original bio.
7) snapshot_map is called for this new bio, it waits on
down_write(&s->lock) that is held by Process B (in step 5).
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1267650
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Depends-on: df2cb6daa4 ("block: Avoid deadlocks with bio allocation by stacking drivers")
Cc: stable@vger.kernel.org
---
block/bio.c | 77 +++++++++++++++++++------------------------------
include/linux/blkdev.h | 24 ++++++++++-----
kernel/sched/core.c | 7 +---
3 files changed, 50 insertions(+), 58 deletions(-)
Index: linux-4.9-rc3/block/bio.c
===================================================================
--- linux-4.9-rc3.orig/block/bio.c 2016-11-02 23:05:03.000000000 +0100
+++ linux-4.9-rc3/block/bio.c 2016-11-02 23:05:21.000000000 +0100
@@ -353,35 +353,37 @@ static void bio_alloc_rescue(struct work
}
}
-static void punt_bios_to_rescuer(struct bio_set *bs)
+/**
+ * blk_flush_bio_list
+ * @tsk: task_struct whose bio_list must be flushed
+ *
+ * Pop bios queued on @tsk->bio_list and submit each of them to
+ * their rescue workqueue.
+ *
+ * If the bio doesn't have a bio_set, we leave it on @tsk->bio_list.
+ * If the bio is allocated from fs_bio_set, we must leave it to avoid
+ * deadlock on loopback block device.
+ * Stacking bio drivers should use bio_set, so this shouldn't be
+ * an issue.
+ */
+void blk_flush_bio_list(struct task_struct *tsk)
{
- struct bio_list punt, nopunt;
struct bio *bio;
+ struct bio_list list = *tsk->bio_list;
+ bio_list_init(tsk->bio_list);
- /*
- * In order to guarantee forward progress we must punt only bios that
- * were allocated from this bio_set; otherwise, if there was a bio on
- * there for a stacking driver higher up in the stack, processing it
- * could require allocating bios from this bio_set, and doing that from
- * our own rescuer would be bad.
- *
- * Since bio lists are singly linked, pop them all instead of trying to
- * remove from the middle of the list:
- */
-
- bio_list_init(&punt);
- bio_list_init(&nopunt);
-
- while ((bio = bio_list_pop(current->bio_list)))
- bio_list_add(bio->bi_pool == bs ? &punt : &nopunt, bio);
-
- *current->bio_list = nopunt;
-
- spin_lock(&bs->rescue_lock);
- bio_list_merge(&bs->rescue_list, &punt);
- spin_unlock(&bs->rescue_lock);
+ while ((bio = bio_list_pop(&list))) {
+ struct bio_set *bs = bio->bi_pool;
+ if (unlikely(!bs) || bs == fs_bio_set) {
+ bio_list_add(tsk->bio_list, bio);
+ continue;
+ }
- queue_work(bs->rescue_workqueue, &bs->rescue_work);
+ spin_lock(&bs->rescue_lock);
+ bio_list_add(&bs->rescue_list, bio);
+ queue_work(bs->rescue_workqueue, &bs->rescue_work);
+ spin_unlock(&bs->rescue_lock);
+ }
}
/**
@@ -421,7 +423,6 @@ static void punt_bios_to_rescuer(struct
*/
struct bio *bio_alloc_bioset(gfp_t gfp_mask, int nr_iovecs, struct bio_set *bs)
{
- gfp_t saved_gfp = gfp_mask;
unsigned front_pad;
unsigned inline_vecs;
struct bio_vec *bvl = NULL;
@@ -455,23 +456,11 @@ struct bio *bio_alloc_bioset(gfp_t gfp_m
* reserve.
*
* We solve this, and guarantee forward progress, with a rescuer
- * workqueue per bio_set. If we go to allocate and there are
- * bios on current->bio_list, we first try the allocation
- * without __GFP_DIRECT_RECLAIM; if that fails, we punt those
- * bios we would be blocking to the rescuer workqueue before
- * we retry with the original gfp_flags.
+ * workqueue per bio_set. If an allocation would block (due to
+ * __GFP_DIRECT_RECLAIM) the scheduler will first punt all bios
+ * on current->bio_list to the rescuer workqueue.
*/
-
- if (current->bio_list && !bio_list_empty(current->bio_list))
- gfp_mask &= ~__GFP_DIRECT_RECLAIM;
-
p = mempool_alloc(bs->bio_pool, gfp_mask);
- if (!p && gfp_mask != saved_gfp) {
- punt_bios_to_rescuer(bs);
- gfp_mask = saved_gfp;
- p = mempool_alloc(bs->bio_pool, gfp_mask);
- }
-
front_pad = bs->front_pad;
inline_vecs = BIO_INLINE_VECS;
}
@@ -486,12 +475,6 @@ struct bio *bio_alloc_bioset(gfp_t gfp_m
unsigned long idx = 0;
bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, bs->bvec_pool);
- if (!bvl && gfp_mask != saved_gfp) {
- punt_bios_to_rescuer(bs);
- gfp_mask = saved_gfp;
- bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, bs->bvec_pool);
- }
-
if (unlikely(!bvl))
goto err_free;
Index: linux-4.9-rc3/include/linux/blkdev.h
===================================================================
--- linux-4.9-rc3.orig/include/linux/blkdev.h 2016-11-02 23:05:03.000000000 +0100
+++ linux-4.9-rc3/include/linux/blkdev.h 2016-11-02 23:05:21.000000000 +0100
@@ -1118,6 +1118,22 @@ static inline bool blk_needs_flush_plug(
!list_empty(&plug->cb_list));
}
+extern void blk_flush_bio_list(struct task_struct *tsk);
+
+static inline void blk_flush_queued_io(struct task_struct *tsk)
+{
+ /*
+ * Flush any queued bios to corresponding rescue threads.
+ */
+ if (tsk->bio_list && !bio_list_empty(tsk->bio_list))
+ blk_flush_bio_list(tsk);
+ /*
+ * Flush any plugged IO that is queued.
+ */
+ if (blk_needs_flush_plug(tsk))
+ blk_schedule_flush_plug(tsk);
+}
+
/*
* tag stuff
*/
@@ -1729,16 +1745,10 @@ static inline void blk_flush_plug(struct
{
}
-static inline void blk_schedule_flush_plug(struct task_struct *task)
+static inline void blk_flush_queued_io(struct task_struct *tsk)
{
}
-
-static inline bool blk_needs_flush_plug(struct task_struct *tsk)
-{
- return false;
-}
-
static inline int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask,
sector_t *error_sector)
{
Index: linux-4.9-rc3/kernel/sched/core.c
===================================================================
--- linux-4.9-rc3.orig/kernel/sched/core.c 2016-11-02 23:05:03.000000000 +0100
+++ linux-4.9-rc3/kernel/sched/core.c 2016-11-02 23:05:21.000000000 +0100
@@ -3440,11 +3440,10 @@ static inline void sched_submit_work(str
if (!tsk->state || tsk_is_pi_blocked(tsk))
return;
/*
- * If we are going to sleep and we have plugged IO queued,
+ * If we are going to sleep and we have queued IO,
* make sure to submit it to avoid deadlocks.
*/
- if (blk_needs_flush_plug(tsk))
- blk_schedule_flush_plug(tsk);
+ blk_flush_queued_io(tsk);
}
asmlinkage __visible void __sched schedule(void)
@@ -5067,7 +5066,7 @@ long __sched io_schedule_timeout(long ti
long ret;
current->in_iowait = 1;
- blk_schedule_flush_plug(current);
+ blk_flush_queued_io(current);
delayacct_blkio_start();
rq = raw_rq();
^ permalink raw reply
* drivers/md/dm-mpath.c:478: suspicious code ?
From: David Binderman @ 2017-01-06 17:52 UTC (permalink / raw)
To: agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com,
shli@kernel.org, linux-raid@vger.kernel.org,
linux-kernel@vger.kernel.org
Hello there,
drivers/md/dm-mpath.c:478:19: warning: decrement of a boolean expression [-Wbool-operation]
Source code is
} while (bypassed--);
Suggest code rework. Maybe a boolean / int type mixup ?
Regards
David Binderman
^ permalink raw reply
* Re: [PATCH v2 1/1] block: fix blk_queue_split() resource exhaustion
From: Mike Snitzer @ 2017-01-06 19:52 UTC (permalink / raw)
To: Mikulas Patocka
Cc: NeilBrown, Jack Wang, Lars Ellenberg, Jens Axboe, linux-raid,
Michael Wang, Peter Zijlstra, Jiri Kosina, Ming Lei, linux-kernel,
Zheng Liu, linux-block, Takashi Iwai,
linux-bcache@vger.kernel.org, Ingo Molnar, Alasdair Kergon,
Martin K. Petersen, Keith Busch, device-mapper development,
Shaohua Li, Kent
In-Reply-To: <alpine.LRH.2.02.1701061151010.13944@file01.intranet.prod.int.rdu2.redhat.com>
On Fri, Jan 06 2017 at 12:34pm -0500,
Mikulas Patocka <mpatocka@redhat.com> wrote:
>
>
> On Fri, 6 Jan 2017, Mikulas Patocka wrote:
>
> >
> >
> > On Wed, 4 Jan 2017, Mike Snitzer wrote:
> >
> > > On Wed, Jan 04 2017 at 12:12am -0500,
> > > NeilBrown <neilb@suse.com> wrote:
> > >
> > > > > Suggested-by: NeilBrown <neilb@suse.com>
> > > > > Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
> > > > > ---
> > > > > block/blk-core.c | 20 ++++++++++++++++++++
> > > > > 1 file changed, 20 insertions(+)
> > > > >
> > > > > diff --git a/block/blk-core.c b/block/blk-core.c
> > > > > index 9e3ac56..47ef373 100644
> > > > > --- a/block/blk-core.c
> > > > > +++ b/block/blk-core.c
> > > > > @@ -2138,10 +2138,30 @@ blk_qc_t generic_make_request(struct bio *bio)
> > > > > struct request_queue *q = bdev_get_queue(bio->bi_bdev);
> > > > >
> > > > > if (likely(blk_queue_enter(q, __GFP_DIRECT_RECLAIM) == 0)) {
> > > > > + struct bio_list lower, same, hold;
> > > > > +
> > > > > + /* Create a fresh bio_list for all subordinate requests */
> > > > > + bio_list_init(&hold);
> > > > > + bio_list_merge(&hold, &bio_list_on_stack);
> > > > > + bio_list_init(&bio_list_on_stack);
> > > > >
> > > > > ret = q->make_request_fn(q, bio);
> > > > >
> > > > > blk_queue_exit(q);
> > > > > + /* sort new bios into those for a lower level
> > > > > + * and those for the same level
> > > > > + */
> > > > > + bio_list_init(&lower);
> > > > > + bio_list_init(&same);
> > > > > + while ((bio = bio_list_pop(&bio_list_on_stack)) != NULL)
> > > > > + if (q == bdev_get_queue(bio->bi_bdev))
> > > > > + bio_list_add(&same, bio);
> > > > > + else
> > > > > + bio_list_add(&lower, bio);
> > > > > + /* now assemble so we handle the lowest level first */
> > > > > + bio_list_merge(&bio_list_on_stack, &lower);
> > > > > + bio_list_merge(&bio_list_on_stack, &same);
> > > > > + bio_list_merge(&bio_list_on_stack, &hold);
> > > > >
> > > > > bio = bio_list_pop(current->bio_list);
> > > > > } else {
> > > > > --
> > > > > 2.7.4
> > >
> > > Mikulas, would you be willing to try the below patch with the
> > > dm-snapshot deadlock scenario and report back on whether it fixes that?
> > >
> > > Patch below looks to be the same as here:
> > > https://marc.info/?l=linux-raid&m=148232453107685&q=p3
> > >
> > > Neil and/or others if that isn't the patch that should be tested please
> > > provide a pointer to the latest.
> > >
> > > Thanks,
> > > Mike
> >
> > The bad news is that this doesn't fix the snapshot deadlock.
> >
> > I created a test program for the snapshot deadlock bug (it was originally
> > created years ago to test for a different bug, so it contains some cruft).
> > You also need to insert "if (ci->sector_count) msleep(100);" to the end of
> > __split_and_process_non_flush to make the kernel sleep when splitting the
> > bio.
> >
> > And with the above above patch, the snapshot deadlock bug still happens.
That is really unfortunate. Would be useful to dig in and understand
why. Because ordering of the IO in generic_make_request() really should
take care of it.
<snip>
> Here I post a patch that fixes the snapshot deadlock. On schedule(), it
> redirects bios on current->bio_list to helper workqueues.
<snip old patch>
That patch is included in the series of changes sequenced at the top of
this git branch:
http://git.kernel.org/cgit/linux/kernel/git/snitzer/linux.git/log/?h=wip
At the risk of repeating myself: unfortunately it doesn't have a way
forward with the timed offload implementation (which was done to appease
Ming Lei's concern about context switching causing reduced plugging that
results in less efficient IO).
^ permalink raw reply
* Re: drivers/md/dm-mpath.c:478: suspicious code ?
From: Mike Snitzer @ 2017-01-06 20:08 UTC (permalink / raw)
To: David Binderman
Cc: agk@redhat.com, dm-devel@redhat.com, shli@kernel.org,
linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org
In-Reply-To: <VI1PR08MB10227DFB2600B24201D3209D9C630@VI1PR08MB1022.eurprd08.prod.outlook.com>
On Fri, Jan 06 2017 at 12:52pm -0500,
David Binderman <dcb314@hotmail.com> wrote:
> Hello there,
>
> drivers/md/dm-mpath.c:478:19: warning: decrement of a boolean expression [-Wbool-operation]
>
> Source code is
>
> } while (bypassed--);
>
> Suggest code rework. Maybe a boolean / int type mixup ?
Yeah, should be cleaned up.
Thanks for reporting this.
^ permalink raw reply
* Re: [PATCH v2 4/7] x86: put msr-index.h in uapi
From: Andy Shevchenko @ 2017-01-06 20:50 UTC (permalink / raw)
To: Nicolas Dichtel
Cc: Arnd Bergmann, mmarek, linux-kbuild, Linux Documentation List,
linux-kernel@vger.kernel.org, linux-alpha, linux-snps-arc,
linux-arm Mailing List, adi-buildroot-devel, linux-c6x-dev, Cris,
uclinux-h8-devel, linux-hexagon, linux-ia64, linux-m68k,
linux-metag, linux-mips, linux-am33-list, nios2-dev, openrisc,
linux-parisc, LINUX
In-Reply-To: <1483695839-18660-5-git-send-email-nicolas.dichtel@6wind.com>
On Fri, Jan 6, 2017 at 11:43 AM, Nicolas Dichtel
<nicolas.dichtel@6wind.com> wrote:
> This header file is exported, thus move it to uapi.
Just hint for the future:
-M (move)
-C (copy)
-D (delete) [though this is NOT for applying]
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply
* Re: [PATCH v2 1/1] block: fix blk_queue_split() resource exhaustion
From: NeilBrown @ 2017-01-06 23:01 UTC (permalink / raw)
To: Mike Snitzer, Mikulas Patocka
Cc: Jack Wang, Lars Ellenberg, Jens Axboe, linux-raid, Michael Wang,
Peter Zijlstra, Jiri Kosina, Ming Lei, linux-kernel, Zheng Liu,
linux-block, Takashi Iwai, linux-bcache@vger.kernel.org,
Ingo Molnar, Alasdair Kergon, Martin K. Petersen, Keith Busch,
device-mapper development, Shaohua Li, Kent Overstreet
In-Reply-To: <20170106195216.GA15583@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 4866 bytes --]
On Sat, Jan 07 2017, Mike Snitzer wrote:
> On Fri, Jan 06 2017 at 12:34pm -0500,
> Mikulas Patocka <mpatocka@redhat.com> wrote:
>
>>
>>
>> On Fri, 6 Jan 2017, Mikulas Patocka wrote:
>>
>> >
>> >
>> > On Wed, 4 Jan 2017, Mike Snitzer wrote:
>> >
>> > > On Wed, Jan 04 2017 at 12:12am -0500,
>> > > NeilBrown <neilb@suse.com> wrote:
>> > >
>> > > > > Suggested-by: NeilBrown <neilb@suse.com>
>> > > > > Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
>> > > > > ---
>> > > > > block/blk-core.c | 20 ++++++++++++++++++++
>> > > > > 1 file changed, 20 insertions(+)
>> > > > >
>> > > > > diff --git a/block/blk-core.c b/block/blk-core.c
>> > > > > index 9e3ac56..47ef373 100644
>> > > > > --- a/block/blk-core.c
>> > > > > +++ b/block/blk-core.c
>> > > > > @@ -2138,10 +2138,30 @@ blk_qc_t generic_make_request(struct bio *bio)
>> > > > > struct request_queue *q = bdev_get_queue(bio->bi_bdev);
>> > > > >
>> > > > > if (likely(blk_queue_enter(q, __GFP_DIRECT_RECLAIM) == 0)) {
>> > > > > + struct bio_list lower, same, hold;
>> > > > > +
>> > > > > + /* Create a fresh bio_list for all subordinate requests */
>> > > > > + bio_list_init(&hold);
>> > > > > + bio_list_merge(&hold, &bio_list_on_stack);
>> > > > > + bio_list_init(&bio_list_on_stack);
>> > > > >
>> > > > > ret = q->make_request_fn(q, bio);
>> > > > >
>> > > > > blk_queue_exit(q);
>> > > > > + /* sort new bios into those for a lower level
>> > > > > + * and those for the same level
>> > > > > + */
>> > > > > + bio_list_init(&lower);
>> > > > > + bio_list_init(&same);
>> > > > > + while ((bio = bio_list_pop(&bio_list_on_stack)) != NULL)
>> > > > > + if (q == bdev_get_queue(bio->bi_bdev))
>> > > > > + bio_list_add(&same, bio);
>> > > > > + else
>> > > > > + bio_list_add(&lower, bio);
>> > > > > + /* now assemble so we handle the lowest level first */
>> > > > > + bio_list_merge(&bio_list_on_stack, &lower);
>> > > > > + bio_list_merge(&bio_list_on_stack, &same);
>> > > > > + bio_list_merge(&bio_list_on_stack, &hold);
>> > > > >
>> > > > > bio = bio_list_pop(current->bio_list);
>> > > > > } else {
>> > > > > --
>> > > > > 2.7.4
>> > >
>> > > Mikulas, would you be willing to try the below patch with the
>> > > dm-snapshot deadlock scenario and report back on whether it fixes that?
>> > >
>> > > Patch below looks to be the same as here:
>> > > https://marc.info/?l=linux-raid&m=148232453107685&q=p3
>> > >
>> > > Neil and/or others if that isn't the patch that should be tested please
>> > > provide a pointer to the latest.
>> > >
>> > > Thanks,
>> > > Mike
>> >
>> > The bad news is that this doesn't fix the snapshot deadlock.
>> >
>> > I created a test program for the snapshot deadlock bug (it was originally
>> > created years ago to test for a different bug, so it contains some cruft).
>> > You also need to insert "if (ci->sector_count) msleep(100);" to the end of
>> > __split_and_process_non_flush to make the kernel sleep when splitting the
>> > bio.
>> >
>> > And with the above above patch, the snapshot deadlock bug still happens.
>
> That is really unfortunate. Would be useful to dig in and understand
> why. Because ordering of the IO in generic_make_request() really should
> take care of it.
I *think* you might be able to resolve this by changing
__split_and_process_bio() to only ever perform a single split. No
looping.
i.e. if the bio is too big to handle directly, then split off the front
to a new bio, which you bio_chain to the original. The original then
has bio_advance() called to stop over the front, then
generic_make_request() so it is queued.
Then the code proceeds to __clone_and_map_data_bio() on the front that
got split off.
When that completes it *doesn't* loop round, but returns into
generic_make_request() which does the looping and makes sure to handle
the lowest-level bio next.
something vaguely like this:
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 3086da5664f3..06ee0960e415 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1216,6 +1216,14 @@ static int __split_and_process_non_flush(struct clone_info *ci)
len = min_t(sector_t, max_io_len(ci->sector, ti), ci->sector_count);
+ if (len < ci->sector_count) {
+ struct bio *split = bio_split(bio, len, GFP_NOIO, fs_bio_set);
+ bio_chain(split, bio);
+ generic_make_request(bio);
+ bio = split;
+ ci->sector_count = len;
+ }
+
r = __clone_and_map_data_bio(ci, ti, ci->sector, &len);
if (r < 0)
return r;
though I haven't tested, and the change (if it works) should probably be
more fully integrated into surrounding code.
You probably don't want to use "fs_bio_set" either - a target-local
pool would be best.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related
* [PATCH 0/1] md/raid5 - fix build error
From: Jes.Sorensen @ 2017-01-07 0:31 UTC (permalink / raw)
To: shli; +Cc: linux-raid
From: Jes Sorensen <Jes.Sorensen@redhat.com>
Hi,
commit 6995f0b247e15e34fbcd10852c08b30bdc1a78da
Author: Shaohua Li <shli@fb.com>
Date: Thu Dec 8 15:48:17 2016 -0800
md: takeover should clear unrelated bits
Introduced a bug comparing a pointer against an integer, which fails
the build when stricter checking is in place. This should ideally be
included in 4.10.
Cheers,
Jes
Jes Sorensen (1):
md/raid5: Use correct IS_ERR() variation on pointer check
drivers/md/raid5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.9.3
^ permalink raw reply
* [PATCH 1/1] md/raid5: Use correct IS_ERR() variation on pointer check
From: Jes.Sorensen @ 2017-01-07 0:31 UTC (permalink / raw)
To: shli; +Cc: linux-raid
In-Reply-To: <20170107003135.8276-1-Jes.Sorensen@redhat.com>
From: Jes Sorensen <Jes.Sorensen@redhat.com>
This fixes a build error on certain architectures, such as ppc64.
Fixes: 6995f0b247e("md: takeover should clear unrelated bits")
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
drivers/md/raid5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 06d7279..0e0646b 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -7829,7 +7829,7 @@ static void *raid5_takeover_raid1(struct mddev *mddev)
mddev->new_chunk_sectors = chunksect;
ret = setup_conf(mddev);
- if (!IS_ERR_VALUE(ret))
+ if (!IS_ERR(ret))
clear_bit(MD_FAILFAST_SUPPORTED, &mddev->flags);
return ret;
}
--
2.9.3
^ permalink raw reply related
* Re: Recommendation on new system Arrays
From: Wols Lists @ 2017-01-07 10:04 UTC (permalink / raw)
To: Benjammin2068, Linux-RAID
In-Reply-To: <4259f5ef-42f7-ad4c-c8af-7b6e5c19354c@gmail.com>
On 06/01/17 16:14, Benjammin2068 wrote:
> * the other as a data drive for use with surveillance software (from Milestone probably) running in a VM as a secondary storage vault for company cameras/NVRs that are remote. (like a backup system)
If you were planning on a raid-6, how about a mirror for this drive? I
believe it is not a good choice for a general raid, but if you're only
writing *NEW* stuff for the most part, and streaming big files to disk,
how about these new WD shingled disks (Purples, I believe).
This sounds like one of the few use cases where they might be a good
idea. Worth considering, at least. Might even work well in your planned
raid-6 config.
Cheers,
Wol
^ permalink raw reply
* Interesting mdadm quirk ...
From: Wols Lists @ 2017-01-07 13:21 UTC (permalink / raw)
To: linux-raid
Just been doing some raid testing, and this happened ...
linux-lfqf:/dev # mdadm md/parity
md/parity: 31.97GiB raid5 3 devices, 0 spares. Use mdadm --detail for
more detail.
linux-lfqf:/dev # mdadm --stop md/parity
mdadm: Cannot open md/parity
linux-lfqf:/dev # mdadm --stop /dev/md/parity
mdadm: stopped /dev/md/parity
Weird - why can it successfully stop it when passed an absolute path,
but not when passed a relative path? When I did the first variant, I
used tab completion, and then when I edited it I really did edit it, not
retype it, so I can't see any way the two arguments could refer to
different objects.
Oh - and
mdadm --version
mdadm - v3.4 - 28th January 2016
ie stock SuSE leap 42.2
Cheers,
Wol
^ permalink raw reply
* Re: [PATCH v2 1/1] block: fix blk_queue_split() resource exhaustion
From: Lars Ellenberg @ 2017-01-07 19:56 UTC (permalink / raw)
To: Mike Snitzer, Mikulas Patocka, NeilBrown
Cc: Eric Wheeler, Jens Axboe, linux-block, Martin K. Petersen,
Peter Zijlstra, Jiri Kosina, Ming Lei, Kirill A. Shutemov,
linux-kernel, linux-raid, Takashi Iwai, linux-bcache, Zheng Liu,
Kent Overstreet, Keith Busch, dm-devel, Shaohua Li, Ingo Molnar,
Alasdair Kergon, Roland Kammerer, Jack Wang,
Michael Wang <yun>
In-Reply-To: <20160719090024.GB20868@soda.linbit>
On Sat, Jan 07, 2017 at 10:01:07AM +1100, NeilBrown wrote:
> On Sat, Jan 07 2017, Mike Snitzer wrote:
> > On Fri, Jan 06 2017 at 12:34pm -0500,
> > Mikulas Patocka <mpatocka@redhat.com> wrote:
> >> On Fri, 6 Jan 2017, Mikulas Patocka wrote:
> >> > On Wed, 4 Jan 2017, Mike Snitzer wrote:
> >> > > On Wed, Jan 04 2017 at 12:12am -0500,
> >> > > NeilBrown <neilb@suse.com> wrote:
...
> >> > And with the above above patch, the snapshot deadlock bug still happens.
> >
> > That is really unfortunate. Would be useful to dig in and understand
> > why. Because ordering of the IO in generic_make_request() really should
> > take care of it.
>
> I *think* you might be able to resolve this by changing
> __split_and_process_bio() to only ever perform a single split. No
> looping.
> i.e. if the bio is too big to handle directly, then split off the front
> to a new bio, which you bio_chain to the original. The original then
> has bio_advance() called to stop over the front, then
> generic_make_request() so it is queued.
> Then the code proceeds to __clone_and_map_data_bio() on the front that
> got split off.
> When that completes it *doesn't* loop round, but returns into
> generic_make_request() which does the looping and makes sure to handle
> the lowest-level bio next.
>
> something vaguely like this:
>
> diff --git a/drivers/md/dm.c b/drivers/md/dm.c
> index 3086da5664f3..06ee0960e415 100644
> --- a/drivers/md/dm.c
> +++ b/drivers/md/dm.c
> @@ -1216,6 +1216,14 @@ static int __split_and_process_non_flush(struct clone_info *ci)
>
> len = min_t(sector_t, max_io_len(ci->sector, ti), ci->sector_count);
>
> + if (len < ci->sector_count) {
> + struct bio *split = bio_split(bio, len, GFP_NOIO, fs_bio_set);
> + bio_chain(split, bio);
> + generic_make_request(bio);
> + bio = split;
> + ci->sector_count = len;
> + }
> +
> r = __clone_and_map_data_bio(ci, ti, ci->sector, &len);
> if (r < 0)
> return r;
>
> though I haven't tested, and the change (if it works) should probably be
> more fully integrated into surrounding code.
>
> You probably don't want to use "fs_bio_set" either - a target-local
> pool would be best.
>
> NeilBrown
Which is pretty much what I suggested in this thread
back in July already, see below.
Cheers,
Lars
On Tue, Jul 19, 2016 at 11:00:24AM +0200, Lars Ellenberg wrote:
...
> > > C. [1/3] block: flush queued bios when process blocks to avoid deadlock
> > > by Mikulas Patocka: https://patchwork.kernel.org/patch/9204125/
> > > (was https://patchwork.kernel.org/patch/7398411/)
>
> As it stands now,
> this is yet an other issue, but related.
>
> From the link above:
>
> | ** Here is the dm-snapshot deadlock that was observed:
> |
> | 1) Process A sends one-page read bio to the dm-snapshot target. The bio
> | spans snapshot chunk boundary and so it is split to two bios by device
> | mapper.
> |
> | 2) Device mapper creates the first sub-bio and sends it to the snapshot
> | driver.
> |
> | 3) The function snapshot_map calls track_chunk (that allocates a
> | structure
> | dm_snap_tracked_chunk and adds it to tracked_chunk_hash) and then remaps
> | the bio to the underlying device and exits with DM_MAPIO_REMAPPED.
> |
> | 4) The remapped bio is submitted with generic_make_request, but it isn't
> | issued - it is added to current->bio_list instead.
> |
> | 5) Meanwhile, process B (dm's kcopyd) executes pending_complete for the
> | chunk affected be the first remapped bio, it takes down_write(&s->lock)
> | and then loops in __check_for_conflicting_io, waiting for
> | dm_snap_tracked_chunk created in step 3) to be released.
> |
> | 6) Process A continues, it creates a second sub-bio for the rest of the
> | original bio.
>
> Aha.
> Here is the relation.
> If "A" had only ever processed "just the chunk it can handle now",
> and "pushed back" the rest of the incoming bio,
> it could rely on all deeper level bios to have been submitted already.
>
> But this does not look like it easily fits into the current DM model.
>
> | 7) snapshot_map is called for this new bio, it waits on
> | down_write(&s->lock) that is held by Process B (in step 5).
>
> There is an other suggestion:
> Use down_trylock (or down_timeout),
> and if it fails, push back the currently to-be-processed bio.
> We can introduce a new bio helper for that.
> Kind of what blk_queue_split() does with my patch applied.
>
> Or even better, ignore the down_trylock suggestion,
> simply not iterate over all pieces first,
> but process one piece, and return back the the
> iteration in generic_make_request.
>
> A bit of conflict here may be that DM has all its own
> split and clone and queue magic, and wants to process
> "all of the bio" before returning back to generic_make_request().
>
> To change that, __split_and_process_bio() and all its helpers
> would need to learn to "push back" (pieces of) the bio they are
> currently working on, and not push back via "DM_ENDIO_REQUEUE",
> but by bio_list_add_head(¤t->bio_lists->queue, piece_to_be_done_later).
>
> Then, after they processed each piece,
> *return* all the way up to the top-level generic_make_request(),
> where the recursion-to-iteration logic would then
> make sure that all deeper level bios, submitted via
> recursive calls to generic_make_request() will be processed, before the
> next, pushed back, piece of the "original incoming" bio.
>
> And *not* do their own iteration over all pieces first.
>
> Probably not as easy as dropping the while loop,
> using bio_advance, and pushing that "advanced" bio back to
> current->...queue?
>
> static void __split_and_process_bio(struct mapped_device *md,
> struct dm_table *map, struct bio *bio)
> ...
> ci.bio = bio;
> ci.sector_count = bio_sectors(bio);
> while (ci.sector_count && !error)
> error = __split_and_process_non_flush(&ci);
> ...
> error = __split_and_process_non_flush(&ci);
> if (ci.sector_count)
> bio_advance()
> bio_list_add_head(¤t->bio_lists->queue, )
> ...
>
> Something like that, maybe?
> Just a thought.
^ permalink raw reply
* [MDADM PATCH 1/1] Add detail information when can not connect monitor
From: Xiao Ni @ 2017-01-08 2:59 UTC (permalink / raw)
To: linux-raid; +Cc: osamarin68, Jes.Sorensen
If it can't connect monitor, now the error message is just
Error waiting for xxx to be clean. Add detail error message
in connect_monitor.
Suggested-by: Oleg Samarin <osamarin68@gmail.com>
Signed-off-by: Xiao Ni <xni@redhat.com>
---
msg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/msg.c b/msg.c
index 45cd450..c66b0a1 100644
--- a/msg.c
+++ b/msg.c
@@ -171,6 +171,8 @@ int connect_monitor(char *devname)
addr.sun_family = PF_LOCAL;
strcpy(addr.sun_path, path);
if (connect(sfd, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
+ pr_err("Error connecting monitor with %s: %s\n",
+ addr.sun_path, strerror(errno));
close(sfd);
return -1;
}
--
2.7.4
^ permalink raw reply related
* Re: Recommendation on new system Arrays
From: Benjammin2068 @ 2017-01-08 4:04 UTC (permalink / raw)
To: Linux-RAID
In-Reply-To: <5870BD30.3020302@youngman.org.uk>
On 01/07/2017 04:04 AM, Wols Lists wrote:
> On 06/01/17 16:14, Benjammin2068 wrote:
>> * the other as a data drive for use with surveillance software (from Milestone probably) running in a VM as a secondary storage vault for company cameras/NVRs that are remote. (like a backup system)
> If you were planning on a raid-6, how about a mirror for this drive? I
> believe it is not a good choice for a general raid, but if you're only
> writing *NEW* stuff for the most part, and streaming big files to disk,
> how about these new WD shingled disks (Purples, I believe).
>
> This sounds like one of the few use cases where they might be a good
> idea. Worth considering, at least. Might even work well in your planned
> raid-6 config.
>
Yea, I thought about that too. So you're suggesting a RAID1 consisting of (2) RAID6 arrays.
Will mdadm do that?
Also in other news.... (maybe someone from this list can help since they've run into it before)
The motherboard of the computer has its own SATA controller as usual... as well as this Avago SAS controller.
When CentOS 7 boots up, it enumerates the external SAS drives starting at /dev/sda instead of the motherboard's drives.
The OCD in me wants the MB's SATA drives as /dev/sda-sdd.
Where does one even control that enumeration order? udev? Eeks.
(I'm not finding a query that google makes sense out of to give me a decent set of suggested links.)
-Ben
^ permalink raw reply
* Re: Recommendation on new system Arrays
From: Stan Hoeppner @ 2017-01-08 4:13 UTC (permalink / raw)
To: Benjammin2068, Linux-RAID
In-Reply-To: <6017e35e-6328-bf8b-fb25-eb8afbf163ba@gmail.com>
On 01/07/2017 10:04 PM, Benjammin2068 wrote:
> On 01/07/2017 04:04 AM, Wols Lists wrote:
>> On 06/01/17 16:14, Benjammin2068 wrote:
>>> * the other as a data drive for use with surveillance software (from Milestone probably) running in a VM as a secondary storage vault for company cameras/NVRs that are remote. (like a backup system)
>> If you were planning on a raid-6, how about a mirror for this drive? I
>> believe it is not a good choice for a general raid, but if you're only
>> writing *NEW* stuff for the most part, and streaming big files to disk,
>> how about these new WD shingled disks (Purples, I believe).
>>
>> This sounds like one of the few use cases where they might be a good
>> idea. Worth considering, at least. Might even work well in your planned
>> raid-6 config.
>>
> Yea, I thought about that too. So you're suggesting a RAID1 consisting of (2) RAID6 arrays.
That's not sane. RAID 10, or more precisely, RAID 0 over many RAID 1
pairs, will yield more usable capacity and without the parity penalty or
RMW cycles.
>
> Will mdadm do that?
>
> Also in other news.... (maybe someone from this list can help since they've run into it before)
>
> The motherboard of the computer has its own SATA controller as usual... as well as this Avago SAS controller.
>
> When CentOS 7 boots up, it enumerates the external SAS drives starting at /dev/sda instead of the motherboard's drives.
>
> The OCD in me wants the MB's SATA drives as /dev/sda-sdd.
>
> Where does one even control that enumeration order? udev? Eeks.
>
> (I'm not finding a query that google makes sense out of to give me a decent set of suggested links.)
>
> -Ben
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox