linux/drivers
Palmer Dabbelt c23be918c5
Merge patch series "Add non-coherent DMA support for AX45MP"
Prabhakar <prabhakar.csengg@gmail.com> says:

From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

non-coherent DMA support for AX45MP
====================================

On the Andes AX45MP core, cache coherency is a specification option so it
may not be supported. In this case DMA will fail. To get around with this
issue this patch series does the below:

1] Andes alternative ports is implemented as errata which checks if the
IOCP is missing and only then applies to CMO errata. One vendor specific
SBI EXT (ANDES_SBI_EXT_IOCP_SW_WORKAROUND) is implemented as part of
errata.

Below are the configs which Andes port provides (and are selected by
RZ/Five):
      - ERRATA_ANDES
      - ERRATA_ANDES_CMO

OpenSBI patch supporting ANDES_SBI_EXT_IOCP_SW_WORKAROUND SBI is now
part v1.3 release.

2] Andes AX45MP core has a Programmable Physical Memory Attributes (PMA)
block that allows dynamic adjustment of memory attributes in the runtime.
It contains a configurable amount of PMA entries implemented as CSR
registers to control the attributes of memory locations in interest.
OpenSBI configures the PMA regions as required and creates a reserve memory
node and propagates it to the higher boot stack.

Currently OpenSBI (upstream) configures the required PMA region and passes
this a shared DMA pool to Linux.

    reserved-memory {
        #address-cells = <2>;
        #size-cells = <2>;
        ranges;

        pma_resv0@58000000 {
            compatible = "shared-dma-pool";
            reg = <0x0 0x58000000 0x0 0x08000000>;
            no-map;
            linux,dma-default;
        };
    };

The above shared DMA pool gets appended to Linux DTB so the DMA memory
requests go through this region.

3] We provide callbacks to synchronize specific content between memory and
cache.

4] RZ/Five SoC selects the below configs
        - AX45MP_L2_CACHE
        - DMA_GLOBAL_POOL
        - ERRATA_ANDES
        - ERRATA_ANDES_CMO

----------x---------------------x--------------------x---------------x----

* b4-shazam-merge:
  soc: renesas: Kconfig: Select the required configs for RZ/Five SoC
  cache: Add L2 cache management for Andes AX45MP RISC-V core
  dt-bindings: cache: andestech,ax45mp-cache: Add DT binding documentation for L2 cache controller
  riscv: mm: dma-noncoherent: nonstandard cache operations support
  riscv: errata: Add Andes alternative ports
  riscv: asm: vendorid_list: Add Andes Technology to the vendors list

Link: https://lore.kernel.org/r/20230818135723.80612-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-09-08 11:24:34 -07:00
..
accel Linux 6.5-rc7 2023-08-24 07:26:06 +10:00
accessibility
acpi - Some swap cleanups from Ma Wupeng ("fix WARN_ON in add_to_avail_list") 2023-08-29 14:25:26 -07:00
amba
android v6.6-vfs.ctime 2023-08-28 09:31:32 -07:00
ata ata,scsi: do not issue START STOP UNIT on resume 2023-08-02 17:01:12 +09:00
atm
auxdisplay drm for 6.6-rc1 2023-08-30 13:34:34 -07:00
base This pull request is full of clk driver changes. In fact, there aren't any 2023-08-30 19:53:39 -07:00
bcma
block for-6.6/block-2023-08-28 2023-08-29 20:21:42 -07:00
bluetooth Bluetooth: btusb: Do not call kfree_skb() under spin_lock_irqsave() 2023-08-24 12:24:37 -07:00
bus ARM: SoC cleanups for 6.6 2023-08-30 16:49:40 -07:00
cache cache: Add L2 cache management for Andes AX45MP RISC-V core 2023-09-01 09:08:59 -07:00
cdrom
cdx
char Minor fixes for IPMI 2023-08-30 19:20:35 -07:00
clk This pull request is full of clk driver changes. In fact, there aren't any 2023-08-30 19:53:39 -07:00
clocksource clocksource: Explicitly include correct DT includes 2023-08-28 13:30:57 -05:00
comedi
connector
counter First set of Counter fixes for 6.5 2023-08-04 15:17:29 +02:00
cpufreq ARM cpufreq updates for 6.6 2023-08-28 14:12:05 +02:00
cpuidle powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
crypto This update includes the following changes: 2023-08-29 11:23:29 -07:00
cxl cxl/memdev: Only show sanitize sysfs files when supported 2023-07-28 13:16:54 -06:00
dax mm: remove enum page_entry_size 2023-08-24 16:20:30 -07:00
dca
devfreq PM / devfreq: Fix leak in devfreq_dev_release() 2023-08-10 22:48:16 +09:00
dio
dma dmaengine: xilinx: xdma: Fix typo 2023-08-07 00:01:41 +05:30
dma-buf drm for 6.6-rc1 2023-08-30 13:34:34 -07:00
edac Intel EDAC fixes: 2023-08-30 19:23:00 -07:00
eisa EISA: Replace all non-returning strlcpy with strscpy 2023-07-27 10:04:42 -07:00
extcon
firewire
firmware Pin control bulk changes for the v6.6 kernel cycle: 2023-08-30 19:36:19 -07:00
fpga
fsi
genpd ARM: SoC drivers for 6.6 2023-08-30 16:42:21 -07:00
gnss
gpio gpio updates for v6.6 2023-08-29 10:21:56 -07:00
gpu VFIO updates for v6.6-rc1 2023-08-30 20:36:01 -07:00
greybus
hid drm for 6.6-rc1 2023-08-30 13:34:34 -07:00
hsi hsi: omap_ssi: Explicitly include correct DT includes 2023-07-31 23:17:57 +02:00
hte hte: Explicitly include correct DT includes 2023-08-28 13:31:06 -05:00
hv
hwmon hwmon updates for v6.6 2023-08-29 10:02:35 -07:00
hwspinlock
hwtracing
i2c i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue 2023-08-14 18:17:13 +02:00
i3c
idle Perf events changes for v6.6: 2023-08-28 16:35:01 -07:00
iio Add cs42l43 PC focused SoundWire CODEC 2023-08-22 12:48:04 +01:00
infiniband Networking changes for 6.6. 2023-08-29 11:33:01 -07:00
input
interconnect This pull request is full of clk driver changes. In fact, there aren't any 2023-08-30 19:53:39 -07:00
iommu iommufd for 6.6 2023-08-30 20:41:37 -07:00
ipack
irqchip Documentation work keeps chugging along; stuff for 6.6 includes: 2023-08-30 20:05:42 -07:00
isdn mISDN: Update parameter type of dsp_cmx_send() 2023-08-03 18:08:32 -07:00
leds Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-08-24 10:51:39 -07:00
macintosh powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
mailbox
mcb
md for-6.6/block-2023-08-28 2023-08-29 20:21:42 -07:00
media sound updates for 6.6-rc1 2023-08-30 13:45:05 -07:00
memory memory: tegra: add MC client for Tegra234 GPU 2023-08-05 09:01:31 +02:00
memstick
message
mfd spi: Updates for v6.6 2023-08-29 09:47:33 -07:00
misc powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
mmc Modules changes for v6.6-rc1 2023-08-29 17:32:32 -07:00
most
mtd mtd: key superblock by device number 2023-08-31 12:47:15 +02:00
mux mux: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
net powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
nfc nfc: virtual_ncidev: Use module_misc_device macro to simplify the code 2023-08-16 09:54:16 +01:00
ntb
nubus
nvdimm nvdimm changes for v6.6 merge window 2023-08-30 20:52:08 -07:00
nvme for-6.6/block-2023-08-28 2023-08-29 20:21:42 -07:00
nvmem
of Devicetree updates for v6.6: 2023-08-30 16:59:03 -07:00
opp OPP: Fix argument name in doc comment 2023-08-18 10:55:49 +05:30
parisc parisc: ccio-dma: Create private runway procfs root entry 2023-08-28 18:00:27 +02:00
parport Devicetree include cleanups for v6.6: 2023-08-30 17:04:28 -07:00
pci powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
pcmcia
peci
perf RISC-V Patches for the 6.6 Merge Window, Part 1 2023-09-01 08:09:48 -07:00
phy This pull request is full of clk driver changes. In fact, there aren't any 2023-08-30 19:53:39 -07:00
pinctrl Pin control bulk changes for the v6.6 kernel cycle: 2023-08-30 19:36:19 -07:00
platform Networking changes for 6.6. 2023-08-29 11:33:01 -07:00
pnp PNP: ACPI: Fix string truncation warning 2023-08-17 19:38:35 +02:00
power power: supply: qcom_pmi8998_charger: fix charger status 2023-08-03 02:23:42 +02:00
powercap Power management updates for 6.6-rc1 2023-08-28 18:04:39 -07:00
pps
ps3
ptp net: ptp: create a mock-up PTP Hardware Clock driver 2023-08-09 15:59:21 -07:00
pwm
rapidio
ras
regulator regulator: Updates for v6.6 2023-08-29 09:40:16 -07:00
remoteproc soc: qcom: aoss: Tidy up qmp_send() callers 2023-08-13 19:27:32 -07:00
reset This pull request is full of clk driver changes. In fact, there aren't any 2023-08-30 19:53:39 -07:00
rpmsg
rtc rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff 2023-08-02 11:18:22 -07:00
s390 VFIO updates for v6.6-rc1 2023-08-30 20:36:01 -07:00
sbus sbus: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
scsi for-6.6/block-2023-08-28 2023-08-29 20:21:42 -07:00
sh
siox
slimbus
soc Merge patch series "Add non-coherent DMA support for AX45MP" 2023-09-08 11:24:34 -07:00
soundwire Immutable branch between MFD, Pinctrl and soundwire due for the v6.6 merge window 2023-08-18 17:37:08 +01:00
spi spi: Updates for v6.6 2023-08-29 09:47:33 -07:00
spmi
ssb
staging sound updates for 6.6-rc1 2023-08-30 13:45:05 -07:00
target bio-integrity: update the payload size in bio_integrity_add_page() 2023-08-09 16:05:35 -06:00
tc
tee
thermal Thermal control updates for 6.6-rc1 2023-08-28 18:26:45 -07:00
thunderbolt thunderbolt: Fix memory leak in tb_handle_dp_bandwidth_request() 2023-08-04 16:17:47 +03:00
tty - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
ufs scsi: ufs: ufs-qcom: Clear qunipro_g4_sel for HW major version > 5 2023-08-21 17:32:55 -04:00
uio
usb v6.6-vfs.ctime 2023-08-28 09:31:32 -07:00
vdpa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-08-18 12:44:56 -07:00
vfio iommufd for 6.6 2023-08-30 20:41:37 -07:00
vhost vhost-scsi: Rename vhost_scsi_iov_to_sgl 2023-08-10 15:24:28 -04:00
video drm for 6.6-rc1 2023-08-30 13:34:34 -07:00
virt minmax: add in_range() macro 2023-08-24 16:20:18 -07:00
virtio virtio-mem: check if the config changed before fake offlining memory 2023-08-10 15:51:46 -04:00
vlynq
w1
watchdog
xen dma-maping updates for Linux 6.6 2023-08-29 20:32:10 -07:00
zorro zorro: Include zorro.h in names.c 2023-08-21 13:27:44 +02:00
Kconfig Merge patch series "Add non-coherent DMA support for AX45MP" 2023-09-08 11:24:34 -07:00
Makefile Merge patch series "Add non-coherent DMA support for AX45MP" 2023-09-08 11:24:34 -07:00