# git rev-parse -q --verify 49a940dbdc3107fecd5e6d3063dc07128177e058^{commit} 49a940dbdc3107fecd5e6d3063dc07128177e058 already have revision, skipping fetch # git checkout -q -f -B kisskb 49a940dbdc3107fecd5e6d3063dc07128177e058 # git clean -qxdf # < git log -1 # commit 49a940dbdc3107fecd5e6d3063dc07128177e058 # Author: Gaurav Batra # Date: Mon Apr 22 15:51:41 2024 -0500 # # powerpc/pseries/iommu: LPAR panics during boot up with a frozen PE # # At the time of LPAR boot up, partition firmware provides Open Firmware # property ibm,dma-window for the PE. This property is provided on the PCI # bus the PE is attached to. # # There are execptions where the partition firmware might not provide this # property for the PE at the time of LPAR boot up. One of the scenario is # where the firmware has frozen the PE due to some error condition. This # PE is frozen for 24 hours or unless the whole system is reinitialized. # # Within this time frame, if the LPAR is booted, the frozen PE will be # presented to the LPAR but ibm,dma-window property could be missing. # # Today, under these circumstances, the LPAR oopses with NULL pointer # dereference, when configuring the PCI bus the PE is attached to. # # BUG: Kernel NULL pointer dereference on read at 0x000000c8 # Faulting instruction address: 0xc0000000001024c0 # Oops: Kernel access of bad area, sig: 7 [#1] # LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA pSeries # Modules linked in: # Supported: Yes # CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.4.0-150600.9-default #1 # Hardware name: IBM,9043-MRX POWER10 (raw) 0x800200 0xf000006 of:IBM,FW1060.00 (NM1060_023) hv:phyp pSeries # NIP: c0000000001024c0 LR: c0000000001024b0 CTR: c000000000102450 # REGS: c0000000037db5c0 TRAP: 0300 Not tainted (6.4.0-150600.9-default) # MSR: 8000000002009033 CR: 28000822 XER: 00000000 # CFAR: c00000000010254c DAR: 00000000000000c8 DSISR: 00080000 IRQMASK: 0 # ... # NIP [c0000000001024c0] pci_dma_bus_setup_pSeriesLP+0x70/0x2a0 # LR [c0000000001024b0] pci_dma_bus_setup_pSeriesLP+0x60/0x2a0 # Call Trace: # pci_dma_bus_setup_pSeriesLP+0x60/0x2a0 (unreliable) # pcibios_setup_bus_self+0x1c0/0x370 # __of_scan_bus+0x2f8/0x330 # pcibios_scan_phb+0x280/0x3d0 # pcibios_init+0x88/0x12c # do_one_initcall+0x60/0x320 # kernel_init_freeable+0x344/0x3e4 # kernel_init+0x34/0x1d0 # ret_from_kernel_user_thread+0x14/0x1c # # Fixes: b1fc44eaa9ba ("pseries/iommu/ddw: Fix kdump to work in absence of ibm,dma-window") # Signed-off-by: Gaurav Batra # Signed-off-by: Michael Ellerman # Link: https://msgid.link/20240422205141.10662-1-gbatra@linux.ibm.com # < /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 49a940dbdc3107fecd5e6d3063dc07128177e058 # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc86xx_defconfig Using /kisskb/src/arch/powerpc/configs/mpc86xx_base.config as base Merging /kisskb/src/arch/powerpc/configs/86xx-hw.config Merging /kisskb/src/arch/powerpc/configs/fsl-emb-nonhw.config # # merged configuration written to .config (needs make) # # < make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:135.22-137.4: Warning (pci_bridge): /pcie@f1008000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:92.7-117.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:102.9-116.4: Warning (pci_bridge): /pcie@f1008000/pcie@0: missing ranges for PCI bridge (or not a bridge) /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:139.22-141.4: Warning (pci_bridge): /pcie@f1009000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:119.7-144.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:129.9-143.4: Warning (pci_bridge): /pcie@f1009000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (unit_address_format): Failed prerequisite 'pci_bridge' arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (pci_device_reg): Failed prerequisite 'pci_bridge' arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:30.11-32.6: Warning (i2c_bus_reg): /soc@f1000000/i2c@3000/rtc@68: missing or empty reg property /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:135.22-137.4: Warning (interrupt_provider): /pcie@f1008000: '#interrupt-cells' found, but node is not an interrupt provider also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:92.7-117.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:139.22-141.4: Warning (interrupt_provider): /pcie@f1009000: '#interrupt-cells' found, but node is not an interrupt provider also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:119.7-144.3 arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (interrupt_map): Failed prerequisite 'interrupt_provider' Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc86xx_defconfig_powerpc-gcc5 # Build took: 0:01:09.546580