Linux kernel source tree
Go to file
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
android ANDROID: GKI: Update symbols to symbol list 2021-12-06 09:16:05 +08:00
arch ARM: configs: rv1106_defconfig enable CONFIG_INOTIFY_USER 2022-03-28 16:13:12 +08:00
block Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
certs
crypto ANDROID: fips140: add userspace interface for evaluation testing 2021-11-23 18:02:43 +00:00
Documentation FROMGIT: usb: gadget: f_uac2: Optionally determine bInterval for HS and SS 2022-03-18 14:48:07 +08:00
drivers dma-buf: dump each dmabuf info 2022-03-28 16:23:49 +08:00
fs Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
include media: rockchip: isp: add the rockit buff 2022-03-25 17:32:34 +08:00
init init: Introduce call initcall async 2022-03-14 19:37:36 +08:00
ipc
kernel soc: rockchip: add different performance level support 2022-03-17 15:08:40 +08:00
lib UPSTREAM: lib/iov_iter: initialize "flags" in new pipe_buffer 2022-03-09 16:28:11 +08:00
LICENSES
mm mm/cma: support cma inactive feature 2022-03-26 20:35:55 +08:00
net net: rfkill-wlan: Export rfkill_get_wifi_power_state() 2022-02-28 18:58:36 +08:00
samples ANDROID: fips140: add userspace interface for evaluation testing 2021-11-23 18:02:43 +00:00
scripts rk: scripts/mkimg: Clean out directory before repack fit image 2022-03-22 11:45:55 +08:00
security
sound ASoC: rockchip: i2s-tdm: Don't do soft reset for slave mode 2022-03-26 20:07:52 +08:00
tools tools: testing: selftests: add iomux instance 2022-03-19 18:45:46 +08:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.scmversion
boot.its rk: scripts/mkimg: Support Create U-Boot FIT Image use ${BOOT_ITS} 2021-11-29 15:17:46 +08:00
build.config.aarch64
build.config.allmodconfig
build.config.allmodconfig.aarch64
build.config.allmodconfig.arm
build.config.allmodconfig.x86_64
build.config.amlogic
build.config.arm
build.config.common
build.config.db845c
build.config.gki
build.config.gki_kasan
build.config.gki_kasan.aarch64
build.config.gki_kasan.x86_64
build.config.gki_kprobes
build.config.gki_kprobes.aarch64
build.config.gki_kprobes.x86_64
build.config.gki-debug.aarch64
build.config.gki-debug.x86_64
build.config.gki.aarch64
build.config.gki.aarch64.fips140
build.config.gki.aarch64.fips140_eval_testing ANDROID: fips140: support "evaluation testing" builds via build.sh 2021-11-30 17:55:05 +00:00
build.config.gki.x86_64
build.config.hikey960
build.config.khwasan
build.config.rockchip
build.config.x86_64
COPYING
CREDITS
Kbuild
Kconfig
logo_kernel.bmp
logo.bmp
MAINTAINERS
Makefile Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
OWNERS
README
README.md

How do I submit patches to Android Common Kernels

  1. BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.

    • Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux, additions of EXPORT_SYMBOL_GPL() require an in-tree modular driver that uses the symbol -- so include the new driver or changes to an existing driver in the same patchset as the export.
    • When sending patches upstream, the commit message must contain a clear case for why the patch is needed and beneficial to the community. Enabling out-of-tree drivers or functionality is not not a persuasive case.
  2. LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with kernel-team@android.com. If you want to proceed, post a patch that conforms to the patch requirements below.

Common Kernel patch requirements

  • All patches must conform to the Linux kernel coding standards and pass script/checkpatch.pl
  • Patches shall not break gki_defconfig or allmodconfig builds for arm, arm64, x86, x86_64 architectures (see https://source.android.com/setup/build/building-kernels)
  • If the patch is not merged from an upstream branch, the subject must be tagged with the type of patch: UPSTREAM:, BACKPORT:, FROMGIT:, FROMLIST:, or ANDROID:.
  • All patches must have a Change-Id: tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html)
  • If an Android bug has been assigned, there must be a Bug: tag.
  • All patches must have a Signed-off-by: tag by the author and the submitter

Additional requirements are listed below based on patch type

Requirements for backports from mainline Linux: UPSTREAM:, BACKPORT:

  • If the patch is a cherry-pick from Linux mainline with no changes at all
    • tag the patch subject with UPSTREAM:.
    • add upstream commit information with a (cherry picked from commit ...) line
    • Example:
      • if the upstream commit message is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>
  • then Joe Smith would upload the patch for the common kernel as
        UPSTREAM: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch requires any changes from the upstream version, tag the patch with BACKPORT: instead of UPSTREAM:.
    • use the same tags as UPSTREAM:
    • add comments about the changes under the (cherry picked from commit ...) line
    • Example:
        BACKPORT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        [joe: Resolved minor conflict in drivers/foo/bar.c ]
        Signed-off-by: Joe Smith <joe.smith@foo.org>

Requirements for other backports: FROMGIT:, FROMLIST:,

  • If the patch has been merged into an upstream maintainer tree, but has not yet been merged into Linux mainline
    • tag the patch subject with FROMGIT:
    • add info on where the patch came from as (cherry picked from commit <sha1> <repo> <branch>). This must be a stable maintainer branch (not rebased, so don't use linux-next for example).
    • if changes were required, use BACKPORT: FROMGIT:
    • Example:
      • if the commit message in the maintainer tree is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>
  • then Joe Smith would upload the patch for the common kernel as
        FROMGIT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        (cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace
         https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch)
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch has been submitted to LKML, but not accepted into any maintainer tree
    • tag the patch subject with FROMLIST:
    • add a Link: tag with a link to the submittal on lore.kernel.org
    • add a Bug: tag with the Android bug (required for patches not accepted into a maintainer tree)
    • if changes were required, use BACKPORT: FROMLIST:
    • Example:
        FROMLIST: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Link: https://lore.kernel.org/lkml/20190619171517.GA17557@someone.com/
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>

Requirements for Android-specific patches: ANDROID:

  • If the patch is fixing a bug to Android-specific code
    • tag the patch subject with ANDROID:
    • add a Fixes: tag that cites the patch with the bug
    • Example:
        ANDROID: fix android-specific bug in foobar.c

        This is the detailed description of the important fix

        Fixes: 1234abcd2468 ("foobar: add cool feature")
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch is a new feature
    • tag the patch subject with ANDROID:
    • add a Bug: tag with the Android bug (required for android-specific features)