Sandy Huang f26aeace67 Revert "drm/rockchip: gem: fix dma_free_attrs() parameter error"
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>
2021-07-21 16:16:47 +08:00
2019-02-10 00:33:21 +08:00
2019-02-10 00:33:21 +08:00
2019-08-29 19:45:37 +08:00
2019-08-29 19:45:37 +08:00

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
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%