Linux kernel source tree
Go to file
Simon Xue c8410c0f81 iommu/rockchip: disable iommu by attaching NULL
Iommu framework introduce default_domain for automatic
attach which we were not interesting before, now rockchip
iommu driver following this way that make things different:

iommu_detach_device function is not able to disable iommu anymore.
It just do following things either:

1. Just return
   Like Vcodec/ISP who does not allocate new domain

2. Attach default_domain
   Like vop who allocate new domain by vop driver

We have no way to temporary disable iommu,to fix this issue, master
driver need to attach a NULL domain,also master driver need more step:

1. iommu_attach_device(NULL, dev) -> disable iommu
2. iommu_detach_device(NULL, dev) -> attach default_domain

Above two steps must comes in pairs.

Following order called by driver is not permitted:

1. iommu_attach_device(domain, dev)
2. iommu_attach_device(NULL, dev)
3. iommu_detach_device(NULL, dev)
4. iommu_detach_device(domain, dev)

Correct is:

1. iommu_attach_device(domain, dev)
2. iommu_detach_device(domain, dev)
3. iommu_attach_device(NULL, dev)
4. iommu_detach_device(NULL, dev)

Change-Id: I12b1e27e5119fb1abd05ccce57c9e941f03e9498
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2019-06-28 15:03:10 +08:00
arch arm64: dts: rockchip: convert rk-keys to adc-keys/gpio-keys for rk3399 board 2019-06-27 19:06:13 +08:00
block Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
certs rk: revert to v4.4 2019-02-10 00:33:21 +08:00
crypto This is the 4.19.45 stable release 2019-05-22 08:00:39 +02:00
Documentation Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
drivers iommu/rockchip: disable iommu by attaching NULL 2019-06-28 15:03:10 +08:00
firmware
fs Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
include UPSTREAM: cpufreq: Auto-register the driver as a thermal cooling device if asked 2019-06-27 18:10:00 +08:00
init Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
ipc This is the 4.19.51 stable release 2019-06-15 16:12:59 +02:00
kernel Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
lib Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
LICENSES
mm This is the 4.19.53 stable release 2019-06-19 10:10:24 +02:00
net Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
samples samples: mei: use /dev/mei0 instead of /dev/mei 2019-02-15 08:10:11 +01:00
scripts Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
security OP-TEE: build optee_linuxdriver into kernel 2019-06-27 20:02:27 +08:00
sound Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
tools This is the 4.19.53 stable release 2019-06-19 10:10:24 +02:00
usr
virt KVM: arm/arm64: Move cc/it checks under hyp's Makefile to avoid instrumentation 2019-06-19 08:18:04 +02:00
.checkpatch.conf
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore rk: .gitignore: ignore boot.img/kernel.img/resource.img/zboot.mg 2019-02-15 18:31:05 +08:00
.mailmap rk: revert to v4.4 2019-02-10 00:33:21 +08:00
.scmversion
build.config.cuttlefish.aarch64 ANDROID: Enable LTO and CFI 2019-05-22 17:25:23 +00:00
build.config.cuttlefish.x86_64 ANDROID: Enable LTO and CFI 2019-05-22 17:25:23 +00:00
COPYING
CREDITS
Kbuild rk: revert to v4.4 2019-02-10 00:33:21 +08:00
Kconfig
logo_kernel.bmp
logo.bmp
MAINTAINERS platform/x86: Add Intel AtomISP2 dummy / power-management driver 2019-04-20 09:16:02 +02:00
Makefile Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-06-22 22:26:14 +08:00
README

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.