linux/drivers
Jianqun Xu dde8daabfc dma-buf: dump each dmabuf info
Loop into each dmabuf and dump its info, including name, exp_name, size
and physical address range from the scatterlist table(sgt).

Since the sgt of dmabuf only exist after device attach/map, but some
dmabufs have not be attach/map by device yet. This patch creates a fake
platform device to do attach/map for a dmabuf who has a empty attachment
list, and unmap/detach after all.

Tested on RV1106 evb: cat /proc/rk_dmabuf

NAME	                          EXPORT       SIZE:KiB   SGLIST

vmpi	                 rk-dma-heap-cma          4 KiB   0: 0x04548000..0x04548fff
vmpi	                 rk-dma-heap-cma          4 KiB   0: 0x04547000..0x04547fff
vmpi	                 rk-dma-heap-cma       5584 KiB   0: 0x05400000..0x05973fff
vmpi	                 rk-dma-heap-cma        920 KiB   0: 0x05300000..0x053e5fff
vmpi	                 rk-dma-heap-cma        232 KiB   0: 0x045c0000..0x045f9fff
vmpi	                 rk-dma-heap-cma          4 KiB   0: 0x04546000..0x04546fff
vmpi	                 rk-dma-heap-cma       5584 KiB   0: 0x04d00000..0x05273fff
vmpi	                 rk-dma-heap-cma        920 KiB   0: 0x04c00000..0x04ce5fff
vmpi	                 rk-dma-heap-cma        232 KiB   0: 0x04580000..0x045b9fff
vmpi	                 rk-dma-heap-cma       5400 KiB   0: 0x04600000..0x04b45fff
vmpi	                 rk-dma-heap-cma       5400 KiB   0: 0x04000000..0x04545fff
(null)	               videobuf2_vmalloc         12 KiB
(null)	               videobuf2_vmalloc         12 KiB
(null)	               videobuf2_vmalloc         12 KiB
(null)	               videobuf2_vmalloc         12 KiB

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Icf46e9d585847ef6dafbddcd24e589046e3ff015
2022-03-28 16:23:49 +08:00
..
accessibility
acpi
amba
android ANDROID: vendor_hooks: Add hooks for binder proc transaction 2021-12-03 12:42:11 +08:00
ata Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
atm
auxdisplay
base MALI: rockchip: upgrade bifrost DDK to g11p0-01eac0, from g10p0-01eac0 2022-03-01 19:53:20 +08:00
bcma
block
bluetooth Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
bus
cdrom
char Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
clk clk : rockchip: rv1106: add grf clk 2022-03-25 14:44:59 +08:00
clocksource Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
connector
counter
cpufreq cpufreq: rockchip: support to disable cpuidle according to cpu frequency 2022-03-17 16:00:41 +08:00
cpuidle
crypto crypto: rockchip: v2: akcipher: add mutex for multi-threaded support 2022-03-25 19:42:48 +08:00
dax
dca
devfreq PM / devfreq: rockchip-dfi: build depends on CPU config 2022-03-10 11:42:20 +08:00
dio
dma
dma-buf dma-buf: dump each dmabuf info 2022-03-28 16:23:49 +08:00
edac
eisa
extcon Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
firewire
firmware soc: rockchip: sip: Fix sip_fiq_control parameter passing error 2022-03-21 16:14:23 +08:00
fpga
fsi
gnss
gpio Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
gpu drm/bridge: analogix_dp: Validate link config values 2022-03-26 16:16:03 +08:00
greybus
headset_observe rk_headset: enable rk_headset and fix complie error 2021-10-29 18:06:44 +08:00
hid Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
hsi
hv
hwmon
hwspinlock
hwtracing
i2c BACKPORT: i2c: rk3x: Handle a spurious start completion interrupt flag 2022-03-14 15:28:45 +08:00
i3c
ide
idle
iio Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
infiniband
input input: sensor: light/proximity sensor: support ucs14620 2022-02-18 16:56:01 +08:00
interconnect
iommu iommu/rockchip: fix issue for read the value for the MMU_DTE_ADDR 2022-03-14 17:56:48 +08:00
ipack
irqchip Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
isdn
leds Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
lightnvm
macintosh
mailbox Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
mcb
md
media media: common: videobuf2-cma-sg: depends on DMA_CMA || DMABUF_HEAPS_ROCKCHIP_CMA_HEAP 2022-03-28 10:37:42 +08:00
memory
memstick
message
mfd driver: rk630: Add RK630 MAC PHY support 2022-03-02 19:55:02 +08:00
misc Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
mmc mmc: core: make the mmc queue depth configurable 2022-03-25 19:48:53 +08:00
most
mtd mtd: spi-nor: fmsh: Add code 2022-03-25 19:43:52 +08:00
mux
net Revert "net: ethernet: stmmac: Add STMMAC_MMC config option" 2022-03-24 14:17:56 +08:00
nfc
ntb
nubus
nvdimm
nvme
nvmem nvmem: rockchip-otp: build depends on CPU config 2022-03-10 11:39:22 +08:00
of Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
opp opp: Ignore unavailable opp when show opp summary 2022-03-08 11:43:55 +08:00
oprofile
parisc
parport
pci PCI: rockchip: dw: ignore udma initialization if not support 2022-03-24 18:48:42 +08:00
pcmcia
perf
phy phy: rockchip: csi2-dphy: fixed grf write error for rv1106 dual camera 2022-03-24 17:40:28 +08:00
pinctrl pinctrl: rockchip: fix rv1106 pin banks 2022-03-22 11:45:56 +08:00
platform
pnp
power power: supply: bq25890: disable auto dp/dm detection if pd support 2022-02-22 18:11:04 +08:00
powercap
pps
ps3
ptp
pwm Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
rapidio
ras
regulator regulator: rk806: use dvs mode instead of sleep mode 2022-01-15 20:08:31 +08:00
remoteproc ANDROID: rproc: Add vendor hook when setting recovery mode 2021-11-08 20:26:18 +00:00
reset
rk_nand
rkflash
rknpu driver: rknpu: Set intermediate rate before change read margin 2022-03-03 18:01:38 +08:00
rpmsg
rtc rtc: hym8563: align the alarm time settings 2022-03-07 15:11:48 +08:00
s390
sbus
scsi BACKPORT: FROMLIST: scsi: ufs: Fix a deadlock in the error handler 2021-11-08 10:01:41 -08:00
sfi
sh
siox
slimbus
soc soc: rockchip: pvtm: Add support for RV1106 SoCs 2022-03-26 17:51:41 +08:00
soundwire
spi spi: rockchip-sfc: Embedded DMA only support 4B aligned address 2022-03-25 19:49:17 +08:00
spmi
ssb
staging fiq_debugger_arm: Replace %pF with %pS to print Symbols or Function 2022-03-10 14:16:52 +08:00
switch
target
tc
tee
thermal thermal: rockchip: update the initialize function for rv1106 2022-03-22 20:22:33 +08:00
thunderbolt
tty serial: 8250: fix programmable transmit interrupt mode 2022-01-04 19:19:37 +08:00
uio
usb FROMLIST: usb: gadget: f_uac2: fix superspeed transfer 2022-03-25 19:15:14 +08:00
vdpa
vfio
vhost
video video: rockchip: mpp: vepu2: Fix multi-core vepu2 stuck on RK3588 2022-03-26 17:44:31 +08:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig rk_headset: enable rk_headset and fix complie error 2021-10-29 18:06:44 +08:00
Makefile rk_headset: enable rk_headset and fix complie error 2021-10-29 18:06:44 +08:00