# git rev-parse -q --verify 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8^{commit} 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8 already have revision, skipping fetch # git checkout -q -f -B kisskb 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8 # git clean -qxdf # < git log -1 # commit 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8 # Author: Greg Kurz # Date: Wed Sep 11 17:52:18 2019 +0200 # # powerpc/xive: Fix bogus error code returned by OPAL # # There's a bug in skiboot that causes the OPAL_XIVE_ALLOCATE_IRQ call # to return the 32-bit value 0xffffffff when OPAL has run out of IRQs. # Unfortunatelty, OPAL return values are signed 64-bit entities and # errors are supposed to be negative. If that happens, the linux code # confusingly treats 0xffffffff as a valid IRQ number and panics at some # point. # # A fix was recently merged in skiboot: # # e97391ae2bb5 ("xive: fix return value of opal_xive_allocate_irq()") # # but we need a workaround anyway to support older skiboots already # in the field. # # Internally convert 0xffffffff to OPAL_RESOURCE which is the usual error # returned upon resource exhaustion. # # Cc: stable@vger.kernel.org # v4.12+ # Signed-off-by: Greg Kurz # Reviewed-by: Cédric Le Goater # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/156821713818.1985334.14123187368108582810.stgit@bahia.lan # < /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 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_skiroot_defconfig_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- skiroot_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_skiroot_defconfig_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/platforms/powernv/npu-dma.c:96:28: error: 'get_gpu_pci_dev_and_pe' defined but not used [-Werror=unused-function] static struct pnv_ioda_pe *get_gpu_pci_dev_and_pe(struct pnv_ioda_pe *npe, ^ /kisskb/src/arch/powerpc/platforms/powernv/npu-dma.c:126:13: error: 'pnv_npu_set_window' defined but not used [-Werror=unused-function] static long pnv_npu_set_window(struct iommu_table_group *table_group, int num, ^ cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:273: arch/powerpc/platforms/powernv/npu-dma.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:490: arch/powerpc/platforms/powernv] Error 2 make[2]: *** [/kisskb/src/scripts/Makefile.build:490: arch/powerpc/platforms] Error 2 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/arch/powerpc/kernel/eeh_event.c: In function '__eeh_send_failure_event': /kisskb/src/arch/powerpc/kernel/eeh_event.c:124:23: error: implicit declaration of function 'stack_trace_save' [-Werror=implicit-function-declaration] pe->trace_entries = stack_trace_save(pe->stack_trace, ^ cc1: all warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:274: arch/powerpc/kernel/eeh_event.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:490: arch/powerpc/kernel] Error 2 make[1]: *** [/kisskb/src/Makefile:1079: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:179: sub-make] Error 2 Command 'make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_skiroot_defconfig_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_skiroot_defconfig_ppc64le-gcc5 # Build took: 0:01:23.957024