4.20-rc1が出たので.config
がどう変更されるのか見てみた.以下 -
は削除されたもの,+
は追加されたもの.汎用指向の環境.Linux 5.0 になるのは来年らしい.
-
+CONFIG_ARCH_CLOCKSOURCE_INIT=y
x86/time: Implement clocksource_arch_init()
X86
でselectされる. -
-CONFIG_NO_BOOTMEM=y
すべてのアーキテクチャで NO_BOOTMEM がselectされるので,削除したとのこと.
-
-CONFIG_HAVE_MEMBLOCK=y
mm: remove CONFIG_HAVE_MEMBLOCK
すべてのアーキテクチャで HAVE_MEMBLOCK がselectされるので,削除したとのこと.
-
+CONFIG_CPU_SUP_HYGON=y
x86/cpu: Create Hygon Dhyana architecture support file
CONFIG_PROCESSOR_SELECT=y
にして CONFIG_CPU_SUP_HYGON=n ついでに CONFIG_CPU_SUP_CENTAUR=n する(IntelとAMDのみサポート,の設定になる). -
+CONFIG_ACPI_ADXL=y
EDAC, skx_edac: Add address translation for non-volatile DIMMs
ACPI/ADXL: Add address translation interface using an ACPI DSMCONFIG_EDAC_SKX=m
で select されてた.このままで. -
+CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y
x86: ptrace: Add function argument access API
X86
でselectされる. -
+CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y
jump_label: Implement generic support for relative references
x86/jump_table: Use relative referencesX86
でselectされる. -
+CONFIG_HAVE_ARCH_STACKLEAK=y
x86/entry: Add STACKLEAK erasing the kernel stack at the end of syscalls
X86
でselectされる. -
+CONFIG_BLK_PM=y
block: Move power management code into a new source file
config BLK_PM def_bool BLOCK && PM
-
-CONFIG_MAC80211_RC_MINSTREL_HT=y
mac80211: minstrel: merge with minstrel_ht, always enable VHT support
-
+CONFIG_DRM_AMD_DC_DCN1_01=y
drm/amd/display: Add DC config flag for Raven2 (v2)
CONFIG_DRM_AMD_DC_DCN1_0 同様 CONFIG_DRM_AMD_DC で select される.
-
-CONFIG_CRYPTO_MCRYPTD=m
-CONFIG_CRYPTO_SHA1_MB=m
crypto: x86 - remove SHA multibuffer routines and mcryptd
壊れていてメンテナンス困難ということで一旦削除とのこと.
-
-CONFIG_RADIX_TREE_MULTIORDER=y
+CONFIG_XARRAY_MULTI=y
radix tree: Remove multiorder support
xarray: Add documentationXarray に移行.
DKMS
broadcom-sta-dkms (6.30.223.271-9.1)は以下で compile できない.
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
arch/x86/kernel/macros.s
を /usr/src/linux-headers-4.20.0-hoge-01/arch/x86/kernel/
に配置してあげると compile できる.
nvidia-kernel-dkms (390.87-2) は conftest の段階で以下の error.これ以上はひとまず追わず.
#error INIT_WORK() conftest failed!
#error kmem_cache_create() conftest failed!
#error on_each_cpu() conftest failed!
#error smp_call_function() conftest failed!
#error acpi_walk_namespace() conftest failed!
#error pci_dma_mapping_error() conftest failed!
#error wait_on_bit_lock() conftest failed!
#error radix_tree_replace_slot() conftest failed!
追記 (2018/12/14)
まず上記 conftest の失敗は arch/x86/kernel/macros.s
を見に行くことが原因.nvidia-legacy についても同様.以下で解決.Version は nvidia-kernel-dkms (390.87-3) と nvidia-legacy-340xx-kernel-dkms 340.107-3.
# cd /usr/src/nvidia-current-390.87
# ln -s /usr/src/linux-headers-4.20.0-rcX-hogege-01/arch .
# cd /usr/src/nvidia-legacy-340xx-340.107
# ln -s /usr/src/linux-headers-4.20.0-rcX-hogege-01/arch .
# cd /usr/src/nvidia-legacy-340xx-340.107/uvm
# ln -s /usr/src/linux-headers-4.20.0-rcX-hogege-01/arch .
nvidia-current (390.87-3) は以下で compile に失敗する.Kernel の mm: change return type to vm_fault_tによる変更に由来する.
/var/lib/dkms/nvidia/current-390.87/build/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function ‘__nv_drm_vma_fault’:
/var/lib/dkms/nvidia/current-390.87/build/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:240:11: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration]
ret = vm_insert_pfn(vma, address, pfn + page_offset);
^~~~~~~~~~~~~
vmf_insert_pfn
以下の patch で解決.
--- a/nvidia-drm/nvidia-drm-gem-nvkms-memory.c
+++ b/nvidia-drm/nvidia-drm-gem-nvkms-memory.c
@@ -230,31 +230,15 @@ static int __nv_drm_vma_fault(struct vm_area_struct *vma,
struct nv_drm_gem_nvkms_memory *nv_nvkms_memory = to_nv_nvkms_memory(
to_nv_gem_object(gem));
unsigned long page_offset, pfn;
- int ret = -EINVAL;
+ vm_fault_t ret;
pfn = (unsigned long)(uintptr_t)nv_nvkms_memory->pPhysicalAddress;
pfn >>= PAGE_SHIFT;
page_offset = vmf->pgoff - drm_vma_node_start(&gem->vma_node);
- ret = vm_insert_pfn(vma, address, pfn + page_offset);
-
- switch (ret) {
- case 0:
- case -EBUSY:
- /*
- * EBUSY indicates that another thread already handled
- * the faulted range.
- */
- return VM_FAULT_NOPAGE;
- case -ENOMEM:
- return VM_FAULT_OOM;
- default:
- WARN_ONCE(1, "Unhandled error in %s: %d\n", __FUNCTION__, ret);
- break;
- }
-
- return VM_FAULT_SIGBUS;
+ ret = vmf_insert_pfn(vma, address, pfn + page_offset);
+ return ret;
}
/*