Buildresult: powerpc-next/mpc85xx_smp_defconfig/powerpc-gcc5 built on Feb 28 2019, 16:20
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
OK
Date/Time:
Feb 28 2019, 16:20
Duration:
0:02:15.257652
Builder:
ka4
Revision:
powerpc/powernv/ioda: Fix locked_vm counting for memory used by IOMMU tables (
11f5acce2fa43b015a8120fa7620fa4efd0a2952)
Target:
powerpc-next/mpc85xx_smp_defconfig/powerpc-gcc5
Branch:
powerpc-next
Compiler:
powerpc-gcc5
(powerpc64-linux-gcc (GCC) 5.5.0 / GNU ld (GNU Binutils) 2.29.1.20170915)
Config:
mpc85xx_smp_defconfig
(
download
)
Log:
Download original
Possible warnings (3)
include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] arch/powerpc/boot/dts/fsl/mpc8541cds.dts:334.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) arch/powerpc/boot/dts/fsl/mpc8555cds.dts:334.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0)
Full Log
# git rev-parse -q --verify 11f5acce2fa43b015a8120fa7620fa4efd0a2952^{commit} 11f5acce2fa43b015a8120fa7620fa4efd0a2952 already have revision, skipping fetch # git checkout -q -f -B kisskb 11f5acce2fa43b015a8120fa7620fa4efd0a2952 # git clean -qxdf # < git log -1 # commit 11f5acce2fa43b015a8120fa7620fa4efd0a2952 # Author: Alexey Kardashevskiy <aik@ozlabs.ru> # Date: Wed Feb 13 14:38:18 2019 +1100 # # powerpc/powernv/ioda: Fix locked_vm counting for memory used by IOMMU tables # # We store 2 multilevel tables in iommu_table - one for the hardware and # one with the corresponding userspace addresses. Before allocating # the tables, the iommu_table_group_ops::get_table_size() hook returns # the combined size of the two and VFIO SPAPR TCE IOMMU driver adjusts # the locked_vm counter correctly. When the table is actually allocated, # the amount of allocated memory is stored in iommu_table::it_allocated_size # and used to decrement the locked_vm counter when we release the memory # used by the table; .get_table_size() and .create_table() calculate it # independently but the result is expected to be the same. # # However the allocator does not add the userspace table size to # .it_allocated_size so when we destroy the table because of VFIO PCI # unplug (i.e. VFIO container is gone but the userspace keeps running), # we decrement locked_vm by just a half of size of memory we are # releasing. # # To make things worse, since we enabled on-demand allocation of # indirect levels, it_allocated_size contains only the amount of memory # actually allocated at the table creation time which can just be a # fraction. It is not a problem with incrementing locked_vm (as # get_table_size() value is used) but it is with decrementing. # # As the result, we leak locked_vm and may not be able to allocate more # IOMMU tables after few iterations of hotplug/unplug. # # This sets it_allocated_size in the pnv_pci_ioda2_ops::create_table() # hook to what pnv_pci_ioda2_get_table_size() returns so from now on we # have a single place which calculates the maximum memory a table can # occupy. The original meaning of it_allocated_size is somewhat lost now # though. # # We do not ditch it_allocated_size whatsoever here and we do not call # get_table_size() from vfio_iommu_spapr_tce.c when decrementing # locked_vm as we may have multiple IOMMU groups per container and even # though they all are supposed to have the same get_table_size() # implementation, there is a small chance for failure or confusion. # # Fixes: 090bad39b237 ("powerpc/powernv: Add indirect levels to it_userspace") # Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> # Reviewed-by: David Gibson <david@gibson.dropbear.id.au> # Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 11f5acce2fa43b015a8120fa7620fa4efd0a2952 # < make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, 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] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # 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' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:334.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:334.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 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc16ed8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008870 Bytes = 5868.04 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008838 Bytes = 5868.01 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5978646 Bytes = 5838.52 KiB = 5.70 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008996 Bytes = 5868.16 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008322 Bytes = 5867.50 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008820 Bytes = 5867.99 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008319 Bytes = 5867.50 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6009082 Bytes = 5868.24 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008357 Bytes = 5867.54 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d00314 INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6009381 Bytes = 5868.54 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2770c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008360 Bytes = 5867.54 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008865 Bytes = 5868.03 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6009044 Bytes = 5868.21 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6009022 Bytes = 5868.19 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008864 Bytes = 5868.03 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.0.0-rc2-g11f5acce2fa4 Created: Thu Feb 28 16:23:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6008337 Bytes = 5867.52 KiB = 5.73 MiB Load Address: 00d00000 Entry Point: 00d002a4 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 # Build took: 0:02:15.257652
© Michael Ellerman 2006-2018.