mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
f26aeace6701e1a7a508cd61388f14470c15e1d3
This reverts commit 42256c1a8f will lead to
DMA buffer + IOMMU free buffer error:
when we use DMA continue buffer, we have the following two use case:
case 1: DMA + IOMMU, we have two addr
alloc:
dma_handle = dma_alloc_attrs()
dma_addr = rockchip_gem_iommu_map() --> config to vop register
free:
rockchip_gem_iommu_unmap(dma_addr)
dma_free_attrs(dma_handle)
case 2: DMA + no IOMMU, we have one addr
alloc:
dma_handle = dma_alloc_attrs()
dma_addr = dma_handle --> config to vop register
free:
dma_free_attrs(dma_handle)
After convert this commit, we still fix the dma_free_attrs() parameter
error at rockchip_gem_alloc_dma(), detail:
...
dma_free_attrs(drm->dev, obj->size, rk_obj->kvaddr,
old: rk_obj->dma_addr, rk_obj->dma_attrs);
new: rk_obj->dma_handle, rk_obj->dma_attrs);
...
Change-Id: I3c05d632b42e09b082d7e378dc7510548a794727
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
…
…
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%