# git rev-parse -q --verify ba25b5ebe96a63940a12d9f8d73edebfcaad470c^{commit} ba25b5ebe96a63940a12d9f8d73edebfcaad470c already have revision, skipping fetch # git checkout -q -f -B kisskb ba25b5ebe96a63940a12d9f8d73edebfcaad470c # git clean -qxdf # < git log -1 # commit ba25b5ebe96a63940a12d9f8d73edebfcaad470c # Author: Aneesh Kumar K.V # Date: Fri Mar 13 15:18:42 2020 +0530 # # powerpc/hash64/devmap: Use H_PAGE_THP_HUGE when setting up huge devmap PTE entries # # H_PAGE_THP_HUGE is used to differentiate between a THP hugepage and # hugetlb hugepage entries. The difference is WRT how we handle hash # fault on these address. THP address enables MPSS in segments. We want # to manage devmap hugepage entries similar to THP pt entries. Hence use # H_PAGE_THP_HUGE for devmap huge PTE entries. # # With current code while handling hash PTE fault, we do set is_thp = # true when finding devmap PTE huge PTE entries. # # Current code also does the below sequence we setting up huge devmap # entries. # # entry = pmd_mkhuge(pfn_t_pmd(pfn, prot)); # if (pfn_t_devmap(pfn)) # entry = pmd_mkdevmap(entry); # # In that case we would find both H_PAGE_THP_HUGE and PAGE_DEVMAP set # for huge devmap PTE entries. This results in false positive error like # below. # # kernel BUG at /home/kvaneesh/src/linux/mm/memory.c:4321! # Oops: Exception in kernel mode, sig: 5 [#1] # LE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA pSeries # Modules linked in: # CPU: 56 PID: 67996 Comm: t_mmap_dio Not tainted 5.6.0-rc4-59640-g371c804dedbc #128 # .... # NIP [c00000000044c9e4] __follow_pte_pmd+0x264/0x900 # LR [c0000000005d45f8] dax_writeback_one+0x1a8/0x740 # Call Trace: # str_spec.74809+0x22ffb4/0x2d116c (unreliable) # dax_writeback_one+0x1a8/0x740 # dax_writeback_mapping_range+0x26c/0x700 # ext4_dax_writepages+0x150/0x5a0 # do_writepages+0x68/0x180 # __filemap_fdatawrite_range+0x138/0x180 # file_write_and_wait_range+0xa4/0x110 # ext4_sync_file+0x370/0x6e0 # vfs_fsync_range+0x70/0xf0 # sys_msync+0x220/0x2e0 # system_call+0x5c/0x68 # # This is because our pmd_trans_huge check doesn't exclude _PAGE_DEVMAP. # # To make this all consistent, update pmd_mkdevmap to set # H_PAGE_THP_HUGE and pmd_trans_huge check now excludes _PAGE_DEVMAP # correctly. # # Fixes: ebd31197931d ("powerpc/mm: Add devmap support for ppc64") # Cc: stable@vger.kernel.org # v4.13+ # Signed-off-by: Aneesh Kumar K.V # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20200313094842.351830-1-aneesh.kumar@linux.ibm.com # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 ba25b5ebe96a63940a12d9f8d73edebfcaad470c # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # Added to kconfig CONFIG_PPC_E500MC=y # Added to kconfig CONFIG_VIRTUALIZATION=y # Added to kconfig CONFIG_KVM_E500MC=y # Added to kconfig # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:4064:warning: override: reassigning to symbol PPC_E500MC .config:4065:warning: override: reassigning to symbol VIRTUALIZATION # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) | ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' 139 | if (IS_ERR_VALUE(fep->ring_mem_addr)) | ^~~~~~~~~~~~ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe629ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe521a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:08 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6755773 Bytes = 6597.43 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:08 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6753691 Bytes = 6595.40 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:08 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6752025 Bytes = 6593.77 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:08 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6755725 Bytes = 6597.39 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:08 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6753425 Bytes = 6595.14 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:08 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6752143 Bytes = 6593.89 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6755787 Bytes = 6597.45 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6720413 Bytes = 6562.90 KiB = 6.41 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6753650 Bytes = 6595.36 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6754211 Bytes = 6595.91 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6755772 Bytes = 6597.43 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6754014 Bytes = 6595.72 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6755724 Bytes = 6597.39 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:10 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6754077 Bytes = 6595.78 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:10 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6751983 Bytes = 6593.73 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.6.0-rc2-gba25b5ebe96a Created: Wed Mar 18 03:25:10 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6755789 Bytes = 6597.45 KiB = 6.44 MiB Load Address: 00f00000 Entry Point: 00f0031c Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 # Build took: 0:03:20.791200