summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)AuthorFilesLines
2024-09-18Merge remote-tracking branch 'sdk/jh7110-6.6.y-devel' into vf2-6.6.y-develJH7110_VF2_6.6_v5.13.1JH7110_VisionFive2_6.6.y_develAndy Hu1-2/+145
2024-09-14riscv: configs: visionfive2: Disable unused modulesHal Feng1-2/+145
Some drivers are built as modules by default, disable them. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-09-13riscv: configs: visionfive2: Disable unused modulesHal Feng1-2/+145
Some drivers are built as modules by default, disable them. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-05-31configs: enable AMP,rpmsg and mailbox driver.Minda Chen1-0/+4
enable AMP, rpmsg and mailbox driver. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-05-31dts: Add vf2 AMP dts fileMinda Chen2-0/+60
Add vf2 AMP dts file. Now just support 1.3b only. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-05-31Merge remote-tracking branch 'sdk/jh7110-6.6.y-devel' into vf2-6.6.y-develAndy Hu8-4/+162
2024-05-31configs: enable AMP ,rpmsg and mailbox driver.Minda Chen1-0/+3
enable AMP, rpmsg and mailbox driver. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-05-31sbi: riscv: add AMP ipi supportMinda Chen7-4/+159
Add AMP opensbi command support and add IPI AMP interrupt process. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-05-22Merge tag 'JH7110_SDK_6.6_v5.12.1' into vf2-6.6.y-develAndy Hu1-6/+6
2024-05-22riscv: dts: starfive: jh7110: Increase the voltage to 0.9V when cores ↵Hal Feng1-6/+6
running at low frequency For stability, increase the voltage from 0.8V to 0.9V when cores running at low frequency. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-04-26Merge branch 'CR_10494_vf2_6.6_mipi_touchscreen_shengyang.chen' into ↵andy.hu1-0/+1
'vf2-6.6.y-devel' CR_10494_vf2_6.6: input: touchscreen: Add goodix gt911 touchscreen support for vf2 6.6 See merge request sbc/linux!211
2024-04-26Merge branch 'CR_9841_hibernation_6.6_hal.feng' into 'vf2-6.6.y-devel'andy.hu1-0/+3
CR_9841_hibernation_6.6_hal.feng See merge request sbc/linux!210
2024-04-26Merge tag 'JH7110_SDK_6.6_v1.4.0' into vf2-6.6.y-develAndy Hu1-6/+6
2024-04-24riscv: dts: starfive: Add goodix gt911 touchscreen supportChanghuang Liang1-0/+1
Add goodix gt911 touchscreen support. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2024-04-24riscv: dts: starfive: visionfive 2: Quote corresponding regulators in hdmi ↵Hal Feng1-0/+3
and vin So PMIC can start to work before HDMI and VIN. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-04-23riscv: Don't use PGD entries for the linear mappingAlexandre Ghiti1-6/+6
Propagating changes at this level is cumbersome as we need to go through all the page tables when that happens (either when changing the permissions or when splitting the mapping). Note that this prevents the use of 4MB mapping for sv32 and 1GB mapping for sv39 in the linear mapping. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20231108075930.7157-2-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-04-19Merge branch 'CR_10016_dts_6.6_hal.feng' into 'vf2-6.6.y-devel'andy.hu3-6/+6
CR_10016_dts_6.6_hal.feng See merge request sbc/linux!208
2024-04-19drm/panel: sync 6.6 mipi code with 6.1 and add 4lane mipi supportshengyang.chen1-1/+1
1.sync kernel 6.6 dsi and dphytx code with 6.1 2.add 4lane screen support add new panel-starfive-jadard.c instead of using panel-jadard-jd9365da-h3.c Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
2024-04-15riscv: dts: starfive: visionfive 2: Sync the sound card names with v5.15 and ↵Hal Feng3-6/+6
v6.1 Sync the sound card names. So we can build Debian images with the same process. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-22Merge branch 'CR_9959_dts_6.6_hal.feng' into 'vf2-6.6.y-devel'andy.hu5-0/+106
CR_9959_dts_6.6_hal.feng See merge request sbc/linux!203
2024-03-22Merge branch 'CR_9968_VF2_BT_SCO_6.6_ziv.xu' into 'vf2-6.6.y-devel'andy.hu1-2/+1
CR_9968_VF2_BT_SCO_6.6_ziv.xu See merge request sbc/linux!204
2024-03-22Merge branch 'CR_9841_defconfig_6.6_hal.feng' into 'vf2-6.6.y-devel'andy.hu1-0/+1
CR_9841_defconfig_6.6_hal.feng See merge request sbc/linux!202
2024-03-22Merge tag 'JH7110_SDK_6.6_v1.1.0' into vf2-6.6.y-develAndy Hu3-0/+11
2024-03-22Merge branch 'CR_9958_6.6_usb_perf_minda' into 'jh7110-6.6.y-devel'andy.hu1-0/+1
CR_9958 usb:xhci:To improve performance,usb using lowmem for bulk xfer. See merge request sdk/linux!1037
2024-03-22Merge branch 'CR_9860_SPI_6.6_hal.feng' into 'jh7110-6.6.y-devel'andy.hu1-0/+7
CR_9860_SPI_6.6_hal.feng See merge request sdk/linux!1036
2024-03-22driver: bluetooth: add aic8800 driver supportziv.xu1-2/+1
add aic8800 driver that can support sco profile Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2024-03-22riscv: dts: starfive: visionfive 2: Add aliases for i2c* and uart3Hal Feng1-0/+4
Fix the numbers of i2c and uart3. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-22riscv: dts: starfive: Add vf2-overlay dtso subdirHal Feng4-0/+102
Create subdir vf2-overlay/ and add overlay .dtso for VF2 board. The code is ported from tag JH7110_VF2_6.1_v5.11.4 Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-22usb:xhci:To improve performance,usb using lowmem for bulk xfer.minda.chen1-0/+1
Generate an usb low memory pool for usb 3.0 host read/write transfer, default size is 8M. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2024-03-21riscv: configs: visionfive2: Add standard partition for hibernationHal Feng1-0/+1
Add CONFIG_PM_STD_PARTITION="PARTLABEL=hibernation". Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-20riscv: dts: starfive: evb-overlay: Support SPI overlayHal Feng1-0/+7
Add new compatibles to support SPI overlay. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-13riscv: configs: add visionfive2 defconfig to kernel 6.6Ziv Xu1-0/+427
add visionfive2 defconfig to kernel 6.6 Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-03-13riscv: dts: starfive: update dts to kernel 6.6Ziv Xu5-4/+634
update dts to kernel 6.6 Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-03-11riscv: dts: starfive: jh7110-evb: Add qspi norflash partition for uboot-envHal Feng1-0/+3
Add qspi norflash partition "uboot-env@f0000", for synchronizing with other branches. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-05riscv: Implement non-coherent DMA support via SiFive cache flushingEmil Renner Berthing2-1/+35
This variant is used on the StarFive JH7100 SoC. Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
2024-03-05riscv/purgatory: Change memcpy to the aligned versionHal Feng1-2/+5
Change memcpy to the aligned version, for purgatory. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-05riscv: Optimize memcpy with aligned versionMason Huo3-32/+273
Optimizing the 128 byte align case, this will improve the performance of large block memcpy. Here we combine the memcpy of glibc and kernel. Signed-off-by: Mason Huo <mason.huo@starfivetech.com> Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-05riscv: configs: Add starfive_jh7110_defconfigHal Feng1-0/+368
Add starfive_jh7110_defconfig for JH7110 EVB. The code is ported from tag JH7110_SDK_6.1_v5.11.3 Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-05riscv: dts: starfive: Add evb-overlay dtso subdirHal Feng8-0/+428
Create subdir evb-overlay/ and add overlay .dtso for JH7110 EVB. The code is ported from tag JH7110_SDK_6.1_v5.11.3 Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-05riscv: dts: starfive: Add JH7110 EVB expanded device treeHal Feng10-1/+662
Add JH7110 EVB expanded device tree. The code is ported from tag JH7110_SDK_6.1_v5.11.3 Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-05riscv: dts: starfive: Add JH7110 EVB device treeHal Feng6-7/+2444
Add JH7110 evaluation board device tree. The code is ported from tag JH7110_SDK_6.1_v5.11.3 Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-05riscv: dts: starfive: Add full support (except VIN and VOUT) for JH7110 and ↵Hal Feng2-0/+432
VisionFive 2 board Merge all StarFive dts patches together except VIN and VOUT. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-05riscv: dts: starfive: pinfunc: Fix the pins name of I2STX1Xingyu Wu1-2/+2
These pins are actually I2STX1 clock input, not I2STX0, so their names should be changed. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> Reviewed-by: Walker Chen <walker.chen@starfivetech.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
2024-03-01s390: use the correct count for __iowrite64_copy()Jason Gunthorpe1-1/+1
[ Upstream commit 723a2cc8d69d4342b47dfddbfe6c19f1b135f09b ] The signature for __iowrite64_copy() requires the number of 64 bit quantities, not bytes. Multiple by 8 to get to a byte length before invoking zpci_memcpy_toio() Fixes: 87bc359b9822 ("s390/pci: speed up __iowrite64_copy by using pci store block insn") Acked-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/0-v1-9223d11a7662+1d7785-s390_iowrite64_jgg@nvidia.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspendMark Brown1-0/+2
[ Upstream commit d7b77a0d565b048cb0808fa8a4fb031352b22a01 ] The fields in SMCR_EL1 reset to an architecturally UNKNOWN value. Since we do not otherwise manage the traps configured in this register at runtime we need to reconfigure them after a suspend in case nothing else was kind enough to preserve them for us. Do so for SMCR_EL1.EZT0. Fixes: d4913eee152d ("arm64/sme: Add basic enumeration for SME2") Reported-by: Jackson Cooper-Driver <Jackson.Cooper-Driver@arm.com> Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20240213-arm64-sme-resume-v3-2-17e05e493471@kernel.org Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01arm64/sme: Restore SME registers on exit from suspendMark Brown3-0/+19
[ Upstream commit 9533864816fb4a6207c63b7a98396351ce1a9fae ] The fields in SMCR_EL1 and SMPRI_EL1 reset to an architecturally UNKNOWN value. Since we do not otherwise manage the traps configured in this register at runtime we need to reconfigure them after a suspend in case nothing else was kind enough to preserve them for us. The vector length will be restored as part of restoring the SME state for the next SME using task. Fixes: a1f4ccd25cc2 ("arm64/sme: Provide Kconfig for SME") Reported-by: Jackson Cooper-Driver <Jackson.Cooper-Driver@arm.com> Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20240213-arm64-sme-resume-v3-1-17e05e493471@kernel.org Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01parisc: Fix stack unwinderGuenter Roeck1-8/+6
[ Upstream commit 882a2a724ee964c1ebe7268a91d5c8c8ddc796bf ] Debugging shows a large number of unaligned access traps in the unwinder code. Code analysis reveals a number of issues with this code: - handle_interruption is passed twice through dereference_kernel_function_descriptor() - ret_from_kernel_thread, syscall_exit, intr_return, _switch_to_ret, and _call_on_stack are passed through dereference_kernel_function_descriptor() even though they are not declared as function pointers. To fix the problems, drop one of the calls to dereference_kernel_function_descriptor() for handle_interruption, and compare the other pointers directly. Fixes: 6414b30b39f9 ("parisc: unwind: Avoid missing prototype warning for handle_interruption()") Fixes: 8e0ba125c2bf ("parisc/unwind: fix unwinder when CONFIG_64BIT is enabled") Cc: Helge Deller <deller@gmx.de> Cc: Sven Schnelle <svens@stackframe.org> Cc: John David Anglin <dave.anglin@bell.net> Cc: Charlie Jenkins <charlie@rivosinc.com> Cc: David Laight <David.Laight@ACULAB.COM> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01powerpc/pseries/iommu: DLPAR add doesn't completely initialize pci_controllerGaurav Batra3-6/+31
[ Upstream commit a5c57fd2e9bd1c8ea8613a8f94fd0be5eccbf321 ] When a PCI device is dynamically added, the kernel oopses with a NULL pointer dereference: BUG: Kernel NULL pointer dereference on read at 0x00000030 Faulting instruction address: 0xc0000000006bbe5c Oops: Kernel access of bad area, sig: 11 [#1] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA pSeries Modules linked in: rpadlpar_io rpaphp rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache netfs xsk_diag bonding nft_compat nf_tables nfnetlink rfkill binfmt_misc dm_multipath rpcrdma sunrpc rdma_ucm ib_srpt ib_isert iscsi_target_mod target_core_mod ib_umad ib_iser libiscsi scsi_transport_iscsi ib_ipoib rdma_cm iw_cm ib_cm mlx5_ib ib_uverbs ib_core pseries_rng drm drm_panel_orientation_quirks xfs libcrc32c mlx5_core mlxfw sd_mod t10_pi sg tls ibmvscsi ibmveth scsi_transport_srp vmx_crypto pseries_wdt psample dm_mirror dm_region_hash dm_log dm_mod fuse CPU: 17 PID: 2685 Comm: drmgr Not tainted 6.7.0-203405+ #66 Hardware name: IBM,9080-HEX POWER10 (raw) 0x800200 0xf000006 of:IBM,FW1060.00 (NH1060_008) hv:phyp pSeries NIP: c0000000006bbe5c LR: c000000000a13e68 CTR: c0000000000579f8 REGS: c00000009924f240 TRAP: 0300 Not tainted (6.7.0-203405+) MSR: 8000000000009033 <SF,EE,ME,IR,DR,RI,LE> CR: 24002220 XER: 20040006 CFAR: c000000000a13e64 DAR: 0000000000000030 DSISR: 40000000 IRQMASK: 0 ... NIP sysfs_add_link_to_group+0x34/0x94 LR iommu_device_link+0x5c/0x118 Call Trace: iommu_init_device+0x26c/0x318 (unreliable) iommu_device_link+0x5c/0x118 iommu_init_device+0xa8/0x318 iommu_probe_device+0xc0/0x134 iommu_bus_notifier+0x44/0x104 notifier_call_chain+0xb8/0x19c blocking_notifier_call_chain+0x64/0x98 bus_notify+0x50/0x7c device_add+0x640/0x918 pci_device_add+0x23c/0x298 of_create_pci_dev+0x400/0x884 of_scan_pci_dev+0x124/0x1b0 __of_scan_bus+0x78/0x18c pcibios_scan_phb+0x2a4/0x3b0 init_phb_dynamic+0xb8/0x110 dlpar_add_slot+0x170/0x3b8 [rpadlpar_io] add_slot_store.part.0+0xb4/0x130 [rpadlpar_io] kobj_attr_store+0x2c/0x48 sysfs_kf_write+0x64/0x78 kernfs_fop_write_iter+0x1b0/0x290 vfs_write+0x350/0x4a0 ksys_write+0x84/0x140 system_call_exception+0x124/0x330 system_call_vectored_common+0x15c/0x2ec Commit a940904443e4 ("powerpc/iommu: Add iommu_ops to report capabilities and allow blocking domains") broke DLPAR add of PCI devices. The above added iommu_device structure to pci_controller. During system boot, PCI devices are discovered and this newly added iommu_device structure is initialized by a call to iommu_device_register(). During DLPAR add of a PCI device, a new pci_controller structure is allocated but there are no calls made to iommu_device_register() interface. Fix is to register the iommu device during DLPAR add as well. Fixes: a940904443e4 ("powerpc/iommu: Add iommu_ops to report capabilities and allow blocking domains") Signed-off-by: Gaurav Batra <gbatra@linux.ibm.com> Reviewed-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240215221833.4817-1-gbatra@linux.ibm.com Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01x86/numa: Fix the sort compare func used in numa_fill_memblks()Alison Schofield1-1/+1
[ Upstream commit b626070ffc14acca5b87a2aa5f581db98617584c ] The compare function used to sort memblks into starting address order fails when the result of its u64 address subtraction gets truncated to an int upon return. The impact of the bad sort is that memblks will be filled out incorrectly. Depending on the set of memblks, a user may see no errors at all but still have a bad fill, or see messages reporting a node overlap that leads to numa init failure: [] node 0 [mem: ] overlaps with node 1 [mem: ] [] No NUMA configuration found Replace with a comparison that can only result in: 1, 0, -1. Fixes: 8f012db27c95 ("x86/numa: Introduce numa_fill_memblks()") Signed-off-by: Alison Schofield <alison.schofield@intel.com> Acked-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Link: https://lore.kernel.org/r/99dcb3ae87e04995e9f293f6158dc8fa0749a487.1705085543.git.alison.schofield@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01x86/numa: Fix the address overlap check in numa_fill_memblks()Alison Schofield1-12/+7
[ Upstream commit 9b99c17f7510bed2adbe17751fb8abddba5620bc ] numa_fill_memblks() fills in the gaps in numa_meminfo memblks over a physical address range. To do so, it first creates a list of existing memblks that overlap that address range. The issue is that it is off by one when comparing to the end of the address range, so memblks that do not overlap are selected. The impact of selecting a memblk that does not actually overlap is that an existing memblk may be filled when the expected action is to do nothing and return NUMA_NO_MEMBLK to the caller. The caller can then add a new NUMA node and memblk. Replace the broken open-coded search for address overlap with the memblock helper memblock_addrs_overlap(). Update the kernel doc and in code comments. Suggested by: "Huang, Ying" <ying.huang@intel.com> Fixes: 8f012db27c95 ("x86/numa: Introduce numa_fill_memblks()") Signed-off-by: Alison Schofield <alison.schofield@intel.com> Acked-by: Mike Rapoport (IBM) <rppt@kernel.org> Acked-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Link: https://lore.kernel.org/r/10a3e6109c34c21a8dd4c513cf63df63481a2b07.1705085543.git.alison.schofield@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>