# git rev-parse -q --verify 7c3dc440b1f5c75f45e24430f913e561dc82a419^{commit} 7c3dc440b1f5c75f45e24430f913e561dc82a419 already have revision, skipping fetch # git checkout -q -f -B kisskb 7c3dc440b1f5c75f45e24430f913e561dc82a419 # git clean -qxdf # < git log -1 # commit 7c3dc440b1f5c75f45e24430f913e561dc82a419 # Merge: d8e473182ab9 e686c32590f4 # Author: Linus Torvalds # Date: Sat Feb 25 09:19:23 2023 -0800 # # Merge tag 'cxl-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl # # Pull Compute Express Link (CXL) updates from Dan Williams: # "To date Linux has been dependent on platform-firmware to map CXL RAM # regions and handle events / errors from devices. With this update we # can now parse / update the CXL memory layout, and report events / # errors from devices. This is a precursor for the CXL subsystem to # handle the end-to-end "RAS" flow for CXL memory. i.e. the flow that # for DDR-attached-DRAM is handled by the EDAC driver where it maps # system physical address events to a field-replaceable-unit (FRU / # endpoint device). In general, CXL has the potential to standardize # what has historically been a pile of memory-controller-specific error # handling logic. # # Another change of note is the default policy for handling RAM-backed # device-dax instances. Previously the default access mode was "device", # mmap(2) a device special file to access memory. The new default is # "kmem" where the address range is assigned to the core-mm via # add_memory_driver_managed(). This saves typical users from wondering # why their platform memory is not visible via free(1) and stuck behind # a device-file. At the same time it allows expert users to deploy # policy to, for example, get dedicated access to high performance # memory, or hide low performance memory from general purpose kernel # allocations. This affects not only CXL, but also systems with # high-bandwidth-memory that platform-firmware tags with the # EFI_MEMORY_SP (special purpose) designation. # # Summary: # # - CXL RAM region enumeration: instantiate 'struct cxl_region' objects # for platform firmware created memory regions # # - CXL RAM region provisioning: complement the existing PMEM region # creation support with RAM region support # # - "Soft Reservation" policy change: Online (memory hot-add) # soft-reserved memory (EFI_MEMORY_SP) by default, but still allow # for setting aside such memory for dedicated access via device-dax. # # - CXL Events and Interrupts: Takeover CXL event handling from # platform-firmware (ACPI calls this CXL Memory Error Reporting) and # export CXL Events via Linux Trace Events. # # - Convey CXL _OSC results to drivers: Similar to PCI, let the CXL # subsystem interrogate the result of CXL _OSC negotiation. # # - Emulate CXL DVSEC Range Registers as "decoders": Allow for # first-generation devices that pre-date the definition of the CXL # HDM Decoder Capability to translate the CXL DVSEC Range Registers # into 'struct cxl_decoder' objects. # # - Set timestamp: Per spec, set the device timestamp in case of # hotplug, or if platform-firwmare failed to set it. # # - General fixups: linux-next build issues, non-urgent fixes for # pre-production hardware, unit test fixes, spelling and debug # message improvements" # # * tag 'cxl-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl: (66 commits) # dax/kmem: Fix leak of memory-hotplug resources # cxl/mem: Add kdoc param for event log driver state # cxl/trace: Add serial number to trace points # cxl/trace: Add host output to trace points # cxl/trace: Standardize device information output # cxl/pci: Remove locked check for dvsec_range_allowed() # cxl/hdm: Add emulation when HDM decoders are not committed # cxl/hdm: Create emulated cxl_hdm for devices that do not have HDM decoders # cxl/hdm: Emulate HDM decoder from DVSEC range registers # cxl/pci: Refactor cxl_hdm_decode_init() # cxl/port: Export cxl_dvsec_rr_decode() to cxl_port # cxl/pci: Break out range register decoding from cxl_hdm_decode_init() # cxl: add RAS status unmasking for CXL # cxl: remove unnecessary calling of pci_enable_pcie_error_reporting() # dax/hmem: build hmem device support as module if possible # dax: cxl: add CXL_REGION dependency # cxl: avoid returning uninitialized error code # cxl/pmem: Fix nvdimm registration races # cxl/mem: Fix UAPI command comment # cxl/uapi: Tag commands from cxl_query_cmd() # ... # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux-ld --version # < git log --format=%s --max-count=1 7c3dc440b1f5c75f45e24430f913e561dc82a419 # < make -s -j 160 ARCH=sh O=/kisskb/build/linus_sh-allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- allyesconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # < make -s -j 160 ARCH=sh O=/kisskb/build/linus_sh-allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- help # make -s -j 160 ARCH=sh O=/kisskb/build/linus_sh-allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- olddefconfig # make -s -j 160 ARCH=sh O=/kisskb/build/linus_sh-allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1517:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:85: Warning: overflow in branch to __restore_all; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:357: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:360: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence In file included from /kisskb/src/arch/sh/include/asm/hw_irq.h:6, from /kisskb/src/include/linux/irq.h:596, from /kisskb/src/include/asm-generic/hardirq.h:17, from /kisskb/src/arch/sh/include/asm/hardirq.h:9, from /kisskb/src/include/linux/hardirq.h:11, from /kisskb/src/include/linux/interrupt.h:11, from /kisskb/src/include/linux/serial_core.h:13, from /kisskb/src/include/linux/serial_sci.h:6, from /kisskb/src/arch/sh/kernel/cpu/sh2/setup-sh7619.c:11: /kisskb/src/include/linux/sh_intc.h:100:63: error: division 'sizeof (void *) / sizeof (void)' does not compute the number of array elements [-Werror=sizeof-pointer-div] 100 | #define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a) | ^ /kisskb/src/include/linux/sh_intc.h:105:31: note: in expansion of macro '_INTC_ARRAY' 105 | _INTC_ARRAY(vectors), _INTC_ARRAY(groups), \ | ^~~~~~~~~~~ /kisskb/src/include/linux/sh_intc.h:124:15: note: in expansion of macro 'INTC_HW_DESC' 124 | .hw = INTC_HW_DESC(vectors, groups, mask_regs, \ | ^~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/cpu/sh2/setup-sh7619.c:58:8: note: in expansion of macro 'DECLARE_INTC_DESC' 58 | static DECLARE_INTC_DESC(intc_desc, "sh7619", vectors, NULL, | ^~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/sh_intc.h:100:63: error: division 'sizeof (void *) / sizeof (void)' does not compute the number of array elements [-Werror=sizeof-pointer-div] 100 | #define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a) | ^ /kisskb/src/include/linux/sh_intc.h:106:9: note: in expansion of macro '_INTC_ARRAY' 106 | _INTC_ARRAY(mask_regs), _INTC_ARRAY(prio_regs), \ | ^~~~~~~~~~~ /kisskb/src/include/linux/sh_intc.h:124:15: note: in expansion of macro 'INTC_HW_DESC' 124 | .hw = INTC_HW_DESC(vectors, groups, mask_regs, \ | ^~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/cpu/sh2/setup-sh7619.c:58:8: note: in expansion of macro 'DECLARE_INTC_DESC' 58 | static DECLARE_INTC_DESC(intc_desc, "sh7619", vectors, NULL, | ^~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/sh_intc.h:100:63: error: division 'sizeof (void *) / sizeof (void)' does not compute the number of array elements [-Werror=sizeof-pointer-div] 100 | #define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a) | ^ /kisskb/src/include/linux/sh_intc.h:107:9: note: in expansion of macro '_INTC_ARRAY' 107 | _INTC_ARRAY(sense_regs), _INTC_ARRAY(ack_regs), \ | ^~~~~~~~~~~ /kisskb/src/include/linux/sh_intc.h:124:15: note: in expansion of macro 'INTC_HW_DESC' 124 | .hw = INTC_HW_DESC(vectors, groups, mask_regs, \ | ^~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/cpu/sh2/setup-sh7619.c:58:8: note: in expansion of macro 'DECLARE_INTC_DESC' 58 | static DECLARE_INTC_DESC(intc_desc, "sh7619", vectors, NULL, | ^~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/sh_intc.h:100:63: error: division 'sizeof (void *) / sizeof (void)' does not compute the number of array elements [-Werror=sizeof-pointer-div] 100 | #define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a) | ^ /kisskb/src/include/linux/sh_intc.h:107:34: note: in expansion of macro '_INTC_ARRAY' 107 | _INTC_ARRAY(sense_regs), _INTC_ARRAY(ack_regs), \ | ^~~~~~~~~~~ /kisskb/src/include/linux/sh_intc.h:124:15: note: in expansion of macro 'INTC_HW_DESC' 124 | .hw = INTC_HW_DESC(vectors, groups, mask_regs, \ | ^~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/cpu/sh2/setup-sh7619.c:58:8: note: in expansion of macro 'DECLARE_INTC_DESC' 58 | static DECLARE_INTC_DESC(intc_desc, "sh7619", vectors, NULL, | ^~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[6]: *** [/kisskb/src/scripts/Makefile.build:252: arch/sh/kernel/cpu/sh2/setup-sh7619.o] Error 1 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [/kisskb/src/scripts/Makefile.build:504: arch/sh/kernel/cpu/sh2] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:504: arch/sh/kernel/cpu] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:504: arch/sh/kernel] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:504: arch/sh] Error 2 make[2]: *** Waiting for unfinished jobs.... {standard input}: Assembler messages: {standard input}: Warning: end of file not at end of a line; newline inserted {standard input}:1118: Error: unknown pseudo-op: `.' sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[5]: *** [/kisskb/src/scripts/Makefile.build:252: drivers/net/pcs/pcs-xpcs.o] Error 4 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:504: drivers/net/pcs] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:504: drivers/net] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:504: drivers] Error 2 make[1]: *** [/kisskb/src/Makefile:2028: .] Error 2 make: *** [Makefile:242: __sub-make] Error 2 Command 'make -s -j 160 ARCH=sh O=/kisskb/build/linus_sh-allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_sh-allyesconfig_sh4-gcc11 # Build took: 0:03:39.362200