# 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-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig KCONFIG_SEED=0xBCB15A50 # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # yes \n | make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/mm/slice.c: In function 'slice_get_unmapped_area': /kisskb/src/arch/powerpc/mm/slice.c:639:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/arch/powerpc/platforms/powernv/npu-dma.c:126:13: warning: 'pnv_npu_set_window' defined but not used [-Wunused-function] static long pnv_npu_set_window(struct iommu_table_group *table_group, int num, ^~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/platforms/powernv/npu-dma.c:96:28: warning: 'get_gpu_pci_dev_and_pe' defined but not used [-Wunused-function] static struct pnv_ioda_pe *get_gpu_pci_dev_and_pe(struct pnv_ioda_pe *npe, ^~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/fs/fat/dir.c: In function 'fat_add_new_entries': /kisskb/src/fs/fat/dir.c:1276:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/fat/dir.c: In function 'fat_alloc_new_dir': /kisskb/src/fs/fat/dir.c:1195:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/fat/fatent.c: In function 'fat_free_clusters': /kisskb/src/fs/fat/fatent.c:629:1: warning: the frame size of 1104 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/fat/fatent.c: In function 'fat_alloc_clusters': /kisskb/src/fs/fat/fatent.c:547:1: warning: the frame size of 1152 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/drivers/cpufreq/powernv-cpufreq.c: In function 'init_chip_info': /kisskb/src/drivers/cpufreq/powernv-cpufreq.c:1070:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/ntfs/aops.c: In function 'ntfs_read_block': /kisskb/src/fs/ntfs/aops.c:361:1: warning: the frame size of 1104 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/ext4/move_extent.c: In function 'mext_page_mkuptodate': /kisskb/src/fs/ext4/move_extent.c:227:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/ext4/readpage.c: In function 'ext4_mpage_readpages': /kisskb/src/fs/ext4/readpage.c:295:1: warning: the frame size of 1120 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/jffs2/xattr.c: In function 'jffs2_build_xattr_subsystem': /kisskb/src/fs/jffs2/xattr.c:887:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/mpage.c: In function '__mpage_writepage': /kisskb/src/fs/mpage.c:690:1: warning: the frame size of 1168 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/mpage.c: In function 'do_mpage_readpage': /kisskb/src/fs/mpage.c:338:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/fs/buffer.c: In function 'block_read_full_page': /kisskb/src/fs/buffer.c:2299:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/drivers/mfd/rk808.c:752:12: warning: 'rk8xx_resume' defined but not used [-Wunused-function] static int rk8xx_resume(struct device *dev) ^~~~~~~~~~~~ /kisskb/src/drivers/mfd/rk808.c:732:12: warning: 'rk8xx_suspend' defined but not used [-Wunused-function] static int rk8xx_suspend(struct device *dev) ^~~~~~~~~~~~~ /kisskb/src/drivers/scsi/cxlflash/main.c: In function 'send_afu_cmd': /kisskb/src/drivers/scsi/cxlflash/main.c:2347:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (rc) { ^ /kisskb/src/drivers/scsi/cxlflash/main.c:2357:2: note: here case -EAGAIN: ^~~~ /kisskb/src/drivers/scsi/cxlflash/main.c: In function 'term_intr': /kisskb/src/drivers/scsi/cxlflash/main.c:754:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (index == PRIMARY_HWQ) ^ /kisskb/src/drivers/scsi/cxlflash/main.c:756:2: note: here case UNMAP_TWO: ^~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:757:3: warning: this statement may fall through [-Wimplicit-fallthrough=] cfg->ops->unmap_afu_irq(hwq->ctx_cookie, 2, hwq); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:758:2: note: here case UNMAP_ONE: ^~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:759:3: warning: this statement may fall through [-Wimplicit-fallthrough=] cfg->ops->unmap_afu_irq(hwq->ctx_cookie, 1, hwq); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:760:2: note: here case FREE_IRQ: ^~~~ /kisskb/src/drivers/scsi/cxlflash/main.c: In function 'cxlflash_remove': /kisskb/src/drivers/scsi/cxlflash/main.c:975:3: warning: this statement may fall through [-Wimplicit-fallthrough=] cxlflash_release_chrdev(cfg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:976:2: note: here case INIT_STATE_SCSI: ^~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:978:3: warning: this statement may fall through [-Wimplicit-fallthrough=] scsi_remove_host(cfg->host); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:979:2: note: here case INIT_STATE_AFU: ^~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:980:3: warning: this statement may fall through [-Wimplicit-fallthrough=] term_afu(cfg); ^~~~~~~~~~~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:981:2: note: here case INIT_STATE_PCI: ^~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:983:3: warning: this statement may fall through [-Wimplicit-fallthrough=] pci_disable_device(pdev); ^~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/cxlflash/main.c:984:2: note: here case INIT_STATE_NONE: ^~~~ /kisskb/src/drivers/scsi/cxlflash/main.c: In function 'num_hwqs_store': /kisskb/src/drivers/scsi/cxlflash/main.c:3018:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (cfg->state == STATE_NORMAL) ^ /kisskb/src/drivers/scsi/cxlflash/main.c:3020:2: note: here default: ^~~~~~~ /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash'. /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash'. /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash'. Completed OK # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 # Build took: 0:04:23.857710