Janghyuck Kim [Tue, 25 Oct 2016 10:29:53 +0000 (19:29 +0900)]
[COMMON] iommu/exynos: support no-suspend feature
This patch supports no-suspend mode that not to disable sysmmu when it
is going to suspend state. It is necessary for the master driver like
abox that should operate in suspend mode.
Change-Id: I1ff1ccd83997f3852d5b962767c43bc0d6cd6819
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Mon, 5 Sep 2016 03:21:20 +0000 (12:21 +0900)]
[COMMON] iommu/exynos: check condition before pointer access
Fix Svace : 64214, 64219
Change-Id: I5ab4d2e84d4a510693978b6aac97ebf8c037119e
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Thu, 11 Aug 2016 04:23:33 +0000 (13:23 +0900)]
[COMMON] iommu/exynos: add shareablity setting in iommu_map
Current exynos iommu driver supports shareability setting by userptr
case only, and prot was ignored in case of iommu_map().
This patch enables shareability setting for iommu_map().
Change-Id: I5431a029746b5d9b89ceb8d4b0a6b2190e8d43e6
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Sat, 6 Aug 2016 07:20:47 +0000 (16:20 +0900)]
[COMMON] iommu/exynos: support secure sysmmu interrupt
Abnormal situation like page fault can be happened when sysmmu is
operating in secure context. To ease debugging with maintaining secure
state, secure interrupt handler is added. In this handler, useful
information of sysmmu status can be obtained through exynos_smc().
Change-Id: I066f70f655e41eda9ba5d7f2d8dd83f1cea94176
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Thu, 7 Jul 2016 14:01:16 +0000 (23:01 +0900)]
[COMMON] iommu/exynos: fix overflow check condition
Considering 32bit dma address, overflow checking condition is fixed.
Change-Id: I98066be8a219f9a26e076b2f64285455f48d057d
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Mon, 1 May 2017 08:28:04 +0000 (17:28 +0900)]
[COMMON] include: add definition for prefetch read/write
Change-Id: Ibac9935d7ed568bcc62845643e7fb00af003f926
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Tue, 8 Nov 2016 11:33:51 +0000 (20:33 +0900)]
[COMMON] include: add definition for TLB port setting
Change-Id: I49560e481edc20b8134861f9314cbda19cb48925
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Mon, 16 May 2016 12:19:54 +0000 (21:19 +0900)]
[COMMON] iommu/exynos: parsing DT for sysmmu properties
Sysmmu properties that read from DT are parsed and stored into driver
data.
1) QoS property is defined like below in DT.
sysmmu_node:
qos = <4>;
2) TLB properties are defined like below in DT.
sysmmu_node:
sysmmu,tlb_property =
<PRIV_WAY_CFG ID SYSMMU_ID(X)>,
<PRIV_WAY_CFG ID SYSMMU_ID(X)>,
<PUBLIC_WAY_CFG SYSMMU_NOID>;
Refer to include/dt-bindings/sysmmu/sysmmu.h for detailed definitions.
Change-Id: Ibdca6081351e997ba3a01f0173c751d30bb69a1d
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Wed, 11 May 2016 02:25:18 +0000 (11:25 +0900)]
[COMMON] iommu/exynos: add dma-window property parsing
Each domain may need different dma ranges for client device's
requirement. 'dma-window' property specifies dma ranges
for each domain.
This property is optional, so if it doesn't exist,
default dma ranges from 0x10000000 to 0xD0000000 are used.
If this property is used, address and size cells should be described.
Below is an example.
iommu-domain_something {
compatible = "samsung,exynos-iommu-bus";
#dma-address-cells = <1>;
#dma-size-cells = <1>;
/* start address, size */
dma-window = <0x10000000 0xC0000000>;
domain-clients = <&something>;
};
Change-Id: I2765f8a4a6b142475c5de80aa73234bef0bd3248
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Thu, 16 Jun 2016 08:12:46 +0000 (17:12 +0900)]
[COMMON] iommu/exynos: add dump of TLB status
Dumping TLB status and TLB set/way information are added to provide
useful information in sysmmu status dumping
Change-Id: I37bfdfbd1baa2c6f10275c93f3d43b055ad0b6e7
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Wed, 1 Jun 2016 05:10:39 +0000 (14:10 +0900)]
[COMMON] iommu/exynos: support fault handler for v7
Reading interrupt status and displaying information are changed to
support sysmmu v7.
Change-Id: I29acc8fd8427933a58a2330526f74f283a0d2d01
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Wed, 1 Jun 2016 05:13:13 +0000 (14:13 +0900)]
[COMMON] iommu/exynos: fix return value in attach_dev
IOMMU framework considers error if attach_dev returns non-zero value.
If sysmmu is already enabled by other master device, return value can be
one, which means already enabled. It is normal situation, so return
value is changed to zero in this case.
Change-Id: I4a344cedc2d3729de3b46c9c1cf0f6e44072d2a5
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Fri, 27 May 2016 01:23:56 +0000 (10:23 +0900)]
[COMMON] exynos/iommu: add suspended state
This patch added suspended state that becomes true when sysmmu goes to
suspend state. No SFR access is allowed if sysmmu is in suspended.
Without suspended state, some operation involving SFR access like tlb
invalidation would make external abort because it only checks internal
reference count before SFR access, and internal reference count is
remained after sysmmu becomes suspend state.
Change-Id: I7460e8b0b96de5f46584cc299dc2e659fc34da44
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Mon, 9 May 2016 06:16:24 +0000 (15:16 +0900)]
[COMMON] iommu/exynos: add fault handler API
By fault handler API, master driver can register their own fault handler
that would be called when related sysmmu fault occurred.
In fault handler, master driver can print out their useful information
like SFR for debugging.
Change-Id: Ica6b7df8108d3165a7e1a3632aba027f328d1ecf
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Sat, 7 May 2016 06:45:32 +0000 (15:45 +0900)]
[COMMON] iommu/exynos: add iova_to_phys
iova_to_phys() is implemented to return physical address from iova.
Change-Id: I0e0d0f91231889efadb10a18b1e07d60b01ce1dc
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Thu, 19 May 2016 11:22:08 +0000 (20:22 +0900)]
[COMMON] iommu/exynos: remove rpm-enabled check in suspend/resume
After removing CONFIG_PM_RUNTIME, pm_runtime_enabled() always returns
zero because sysmmu driver calls pm_runtime_enable() at probe time.
It results SFR access in suspend/resume callback even though power block
is off. To avoid SFR access, condition checking by pm_runtime_enabled()
is removed by this patch.
Change-Id: I2afea1ad4b3bdc57cb50d71423e44358b3023696
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Tue, 3 May 2016 11:52:34 +0000 (20:52 +0900)]
[COMMON] iommu/exynos: add userptr map/unmap
user virtual address mapping/unmapping should be supported.
Change-Id: Iff0398588a1d295d86ea9285303a558453f0baba
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Tue, 3 May 2016 11:55:58 +0000 (20:55 +0900)]
[COMMON] iommu/exynos: add sysmmu irq handler
Sysmmu interrupt occurred when sysmmu detected illegal request.
Sysmu irq handler displays detected fault type and related information.
Change-Id: Ie12909182f722f85480a285fc05573ad5af7759a
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Thu, 28 Apr 2016 06:49:40 +0000 (15:49 +0900)]
[COMMON] iommu/exynos: add cache sync operation
Cache sync operation for device and cpu is added.
Change-Id: I6167a51997d50978e1bc22bbe2c1c33a18cf0666
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Tue, 26 Apr 2016 07:09:29 +0000 (16:09 +0900)]
[COMMON] iommu/exynos: add temporal function for master driver
Frequently used function for master driver is added temporally to avoid
compile error.
Change-Id: Ieb3986467e9fadcc77aee01f40bb5e9e7d7c04c8
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Tue, 26 Apr 2016 05:00:47 +0000 (14:00 +0900)]
[COMMON] iommu/exynos: add iommu group for each domain
iommu group is not important for exynos iommu driver, however, without
iommu group, getting domain from master device is failed.
This patch added one to one relationship for iommu group and domain.
Change-Id: Ia31bd028226e228c14091cd8ec5ee0412155228d
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Mon, 25 Apr 2016 09:30:17 +0000 (18:30 +0900)]
[COMMON] iommu/exynos: add suspend/resume callback
To support suspend and resume of APM, suspend and resume callback is
added to disable and enable sysmmu properly.
Change-Id: Ie2cf804b50219c1c820de794fe2e6aad68ae3d94
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Mon, 25 Apr 2016 09:27:20 +0000 (18:27 +0900)]
[COMMON] iommu/exynos: runtime suspend/resume callback
Sysmmu operation is implicitly enabled and disabled when master device
turned on the power and off the power.
This patch replaces runtime pm suspend/resume callback of platform bus
with exynos_iommu_runtime_suspend/resume that added sysmmu handling.
Change-Id: I5e5e1f5fb485a9943c84c0e6a379b8720de57094
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Mon, 25 Apr 2016 05:20:05 +0000 (14:20 +0900)]
[COMMON] iommu/exynos: add tlb invalidation
TLB invalidation is mandatory when page table entry is added or removed.
Without this, sysmmu might translate wrong address results.
Change-Id: I3fe24d211256b8f503d1fbabc78dc3f6790faf4e
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Mon, 25 Apr 2016 02:28:06 +0000 (11:28 +0900)]
[COMMON] iommu/exynos: add map/unmap
mapping makes page table entry to translate virtual address to physical
address. unmapping removes page table entry.
Change-Id: I82c053b40868deba948c60affd96074661987f15
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Sat, 23 Apr 2016 10:26:37 +0000 (19:26 +0900)]
[COMMON] iommu/exynos: add sysmmu enable/disable
Sysmmu checks activation status and runtime activation by master
driver to control properly.
At enabling time, sysmmu configuration and page table are set.
At disabling time, sysmmu is blocked and disabled.
Change-Id: Ia8cfee103bdb259d295c18edb7d3b033f85c2662
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Sat, 23 Apr 2016 07:51:50 +0000 (16:51 +0900)]
[COMMON] iommu/exynos: add attach/detach device
Client device is attached to domain by attach_device.
It enables sysmmu for all clients that attached to domain.
Client device is detached from domain by detach_device.
All enabled sysmmus for clients are disabled.
Change-Id: Ib261369344516ee034a3fae0498137f983ca5bd6
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Sat, 23 Apr 2016 07:00:10 +0000 (16:00 +0900)]
[COMMON] iommu/exynos: add domain alloc/free
iommu domain represents virtual address spaces for client device.
domain_alloc creates page table for each domain and initialize domain
related data structures.
domain_free cleans up attached client list and releases domain related
information.
Change-Id: I61d6621c5598be459e963ecdb58711fc76d083ed
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Fri, 22 Apr 2016 11:13:54 +0000 (20:13 +0900)]
[COMMON] iommu/exynos: of_xlate for master and sysmmu
of_xlate is called when master device is added.
Purpose of of_xlate is making relationship between master and sysmmu
devices. Domain and client relationship is also created at this time.
Change-Id: I4b7f5a2d9d1237b61beee1a6f216ef39c60df722
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Fri, 22 Apr 2016 12:03:30 +0000 (21:03 +0900)]
[COMMON] iommu/exynos: add probe function
resources like SFR and IRQ are registered and main structure for sysmmu
is created in probe function.
Change-Id: I3266acf9b97bea4395804a5bf1f814c7b0f4815f
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Fri, 22 Apr 2016 06:13:15 +0000 (15:13 +0900)]
[COMMON] iommu/exynos: creating iommu domain
iommu domain is created at booting time and it parses device tree with
"samsung,exynos-iommu-bus" to clarify relationship between domain and
client devices. At this time, client device is not added yet, so parsed
informations are stored into exynos_client_list for later.
Change-Id: I7928fbdf0898fef2b9e9004e3b45c3520c2c1c18
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Fri, 22 Apr 2016 05:21:02 +0000 (14:21 +0900)]
[COMMON] iommu/exynos: enable IOVMM
IOVMM is Exynos I/O Virtual Memory Manager.
It manages device virtual address region like allocation and free.
IOVMM is connected with exynos iommu domain.
Some dummy function is added in exynos-iommu to avoid compilie error.
Change-Id: Icdd0fe1acc81240b97361ae495276d920c129ad9
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Thu, 21 Apr 2016 10:19:53 +0000 (19:19 +0900)]
[COMMON] iommu/exynos: add initialization
This is the starting point for exynos iommu driver.
It registers sysmmu driver and iommu api to platform_bus_type.
Change-Id: Iae165ce448ab4334ca956c5c2aaaa6bbe4997d7a
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Tue, 19 Apr 2016 05:28:16 +0000 (14:28 +0900)]
[COMMON] iommu/exynos: add skeleton exynos iommu driver
Basic structures for domain, master and sysmmu are defined.
Skeleton functions of iommu_ops are added.
Change-Id: I501f6a82357a1e37e3d14bbb0f2c7ad4c516090f
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Janghyuck Kim [Tue, 9 Jan 2018 02:18:00 +0000 (11:18 +0900)]
[COMMON] iommu/exynos: remove exynos-iommu.c
Original file is removed.
Change-Id: Ibe28c914b294d22326222dbf994511dbc7a80e52
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Jaehyoung Choi [Mon, 14 May 2018 09:16:56 +0000 (18:16 +0900)]
[9610][ERD] arm64: config: Fix CONFIG_NR_CPUS
Change-Id: Iec2fb5cbbf63e82769c6caf4f8cbe3372a6eb89f
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
Jaehyoung Choi [Mon, 14 May 2018 07:16:55 +0000 (16:16 +0900)]
Revert "[HACK] remove clock setting code"
This reverts commit
c6d418b50aeb5fedbbac7ce5e4a120c4757c00f3.
Jaehyoung Choi [Mon, 14 May 2018 06:59:34 +0000 (15:59 +0900)]
[9610][ERD] arm64: config: Enable config related to full treble
Change-Id: If5076d25a6c1ec00192268f704ae0e1cb82e54e0
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
Taekki Kim [Wed, 9 May 2018 05:48:43 +0000 (14:48 +0900)]
[COMMON] soc: samsung: fix build error
This patch fixes build error as below.
- fix build error when exynos_pd is disabled.
- add sched clock header prevent build error.
Change-Id: Ibcc337660f066a45ee6d10dcb4794dd0d87b38e0
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Taekki Kim [Wed, 9 May 2018 05:47:14 +0000 (14:47 +0900)]
[COMMON] soc: samsung: add bcm config
Change-Id: I0a202641d8d079be63ee5d36eb5f889ce900dfd0
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Seokju Yoon [Mon, 14 Nov 2016 09:41:55 +0000 (18:41 +0900)]
[COMMON] soc: samsung: bcm: remove setting iotable.
Change-Id: I319d57b0011da2c519717fba01084187fc0489c0
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Taekki Kim [Fri, 14 Apr 2017 08:35:46 +0000 (17:35 +0900)]
[COMMON] bcm: add header for slab
Change-Id: I02cc719350a91cd78d1685e1d4c75fac97e61f8c
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Seokju Yoon [Wed, 7 Dec 2016 04:19:12 +0000 (13:19 +0900)]
[COMMON] bcm: fix stack overflow possibility.
Change-Id: Ia87174a7f0f04dfaf2e03935f66348ec1119d50b
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Seokju Yoon [Fri, 30 Sep 2016 01:02:27 +0000 (10:02 +0900)]
[common] bcm: unlimit log size in panic
Change-Id: I0502681f657dffdf3c952ca6a086dc15d896d4d5
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Seokju Yoon [Thu, 18 Aug 2016 10:10:23 +0000 (19:10 +0900)]
[COMMON] bcm: panic log size increase
Change-Id: Ie387592a4bc88a859a91633e2b8fcfdedf1de344
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Seokju Yoon [Mon, 18 Jul 2016 13:13:06 +0000 (22:13 +0900)]
[COMMON] bcm: enable bcm panic logging
Change-Id: I474702088501f6aaba2a2cab733cdd183ef2de4b
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Seokju Yoon [Mon, 11 Jul 2016 02:22:22 +0000 (11:22 +0900)]
[COMMON] bcm: split print log buffer to support long sentences
Change-Id: I110ea98f5be98c7bf12359884063308dbaf2ab5a
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Seokju Yoon [Mon, 20 Jun 2016 02:19:09 +0000 (11:19 +0900)]
[COMMON] soc: samsung: Add the bcm driver
Change-Id: Ibe3ce4189b269d21fb9781160b6c119dcdb82e07
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Taekki Kim [Fri, 4 May 2018 05:46:06 +0000 (14:46 +0900)]
[9610] arm64: dtsi: add pdma device node
Change-Id: I587f504d44c3651472ca3d20ca51c18bdc63de93
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Eunok Jo [Mon, 22 May 2017 05:44:37 +0000 (14:44 +0900)]
change dma_attrs to unsigned long
Due to patch "dma-mapping: use unsigned long for dma_attrs",
dma_attrs should be unsigned long to be used.
Change-Id: Ia68dfee7ff5e4b1e89c921e161bb8891c0278e5e
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
KangNam Park [Wed, 30 Jul 2014 14:38:57 +0000 (23:38 +0900)]
arch64: dma: add the dma interface for audio
Change-Id: I8037f12b582668ed6c7fb3031dca768685a909db
Signed-off-by: KangNam Park <kn0710.park@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Jaejoon Yoo [Wed, 14 Mar 2018 04:24:44 +0000 (13:24 +0900)]
[COMMON] pl330: Add exynos_pd config
Change-Id: I5a71d4f6ef5722c3db2204da33e46a2669bf7aff
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Eunok Jo [Fri, 11 Nov 2016 09:23:34 +0000 (18:23 +0900)]
Set CPU Affinity for handling interrupt
When HMP for exynos series is enabled, cpu affinity for
handling interrupt will be set only for little cores.
Otherwise, all cores can catch interrupt and handle it.
Change-Id: Id6a37fd0e7e97ed240c94f47c91d096b5f5211cd
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Eunok Jo [Mon, 24 Oct 2016 07:24:30 +0000 (16:24 +0900)]
dma: pl330: remove unnecessary spinlock
Change-Id: I3e17fd6d5fd90999974de89621d860e229aed4e5
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Taekki Kim [Fri, 30 Sep 2016 09:17:25 +0000 (18:17 +0900)]
dma: pl330: support IRQF_GIC_MULTI_TARGET
Change-Id: I467307919c0bf47421c0d9b52a9306518369cbba
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Taekki Kim [Fri, 30 Sep 2016 09:13:26 +0000 (18:13 +0900)]
dma: of: add multi irq get API for support IRQF_GIC_MULTI_TARGET.
Change-Id: Ie58232a9fe0f1a5228fa8c7505fd30d856873caf
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Jaejoon Yoo [Thu, 18 Jan 2018 04:25:32 +0000 (13:25 +0900)]
[COMMON] dma: Modify dma code for kernel 4.14
Change-Id: Ifaadf8bf3cdf19a126fc109a9da05cdf44c05359
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Eunok Jo [Mon, 22 May 2017 10:48:28 +0000 (19:48 +0900)]
samsung: dma: add samsung dma
Change-Id: I817574379d67e5605517dd409cf8f012f59b3653
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Jaejoon Yoo [Wed, 29 Nov 2017 06:29:07 +0000 (15:29 +0900)]
[COMMON] dma: change MCODE_BUFFER size.
Change-Id: Id92b11a013db9cbd20c9715108cf465a0bc82ae0
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Wed, 29 Nov 2017 00:24:40 +0000 (09:24 +0900)]
[COMMON] DMA: Add configurable burst length in cyclic mode.
Change-Id: Iaa152f26fac528b9fdb4b125cd5206377c55db54
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Eunok Jo [Thu, 14 Sep 2017 05:43:14 +0000 (14:43 +0900)]
[COMMON] dma: Remove FLUSHP for dev2mem transfer
In Dev2mem transfer, peripheral de-asserts the PERIPHERAL_REQUEST
on the very next clock edge of its finished request because
data transfer is already completed on the peripheral side.
In this case, micro code does not have to do FLUSHP
because there should not be any synchronization issues.
Change-Id: I7370b526759422b1d056f0c54c65899597e327a4
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Eunok Jo [Mon, 22 May 2017 07:48:58 +0000 (16:48 +0900)]
Revert "dmaengine: Remove the context argument to the prep_dma_cyclic operation"
This reverts commit
31c1e5a1350ae8d1bc2018f5de8264266d9773e1.
Change-Id: I0d1eb6fe5cf845935d219bcf31c1902c548240b4
Eunok Jo [Tue, 7 Feb 2017 10:51:42 +0000 (19:51 +0900)]
dma: svace fix: fix variable type mismatch
WGID: 95862, 96284, 96746, 96796, 97246
Change-Id: I7bfbd10408e7982fe01884435dcb396052c6e42f
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Jaejoon Yoo [Fri, 6 Jan 2017 08:21:33 +0000 (17:21 +0900)]
DMA: svace fix: add type cast code to loop function(WGID: 2490).
Change-Id: Ie2d0d68c975e2c0b8e51330783c577bff1523b37
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Tue, 10 Jan 2017 10:05:01 +0000 (19:05 +0900)]
DMA: Support 36bit address when call getposition function.
Change-Id: I542860611c550d25b014e6cb112e64edf94e4e02
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Taekki Kim [Mon, 9 Jan 2017 04:07:34 +0000 (13:07 +0900)]
dma: pl330: add critical section for list operation
Change-Id: I8505ac36fcc13a9d0c376bd4dba7fae6558f50cb
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Jaejoon Yoo [Tue, 3 Jan 2017 09:51:05 +0000 (18:51 +0900)]
DMA: Fix SFR address when debug log print.
Change-Id: Ib52934854f5d238e60b48e908256552b537d6483
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Mon, 2 Jan 2017 12:06:20 +0000 (21:06 +0900)]
DMA: Modify register base address
Change-Id: Ia9e0e042cbbaaf12f5e15b29f5506a15f57de736
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Wed, 28 Dec 2016 06:19:54 +0000 (15:19 +0900)]
DMA: svace fix: Add code for handling null (WGID: 58265).
Change-Id: I168bd2e9effaa27ff1bdcdcce946905697f298b9
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Thu, 15 Dec 2016 08:16:38 +0000 (17:16 +0900)]
DMA: Add more information to pl330_dma_debug function.
Change-Id: Ideca8099a73ef3aec2ce13af71c37d68ede6228b
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Eunok Jo [Tue, 10 Nov 2015 06:55:36 +0000 (06:55 +0000)]
dma: set mask bit as 36
Change-Id: I4cd8af74c2b2033c0105de4580d19d16381a36f1
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Jaejoon Yoo [Mon, 24 Oct 2016 06:42:46 +0000 (15:42 +0900)]
dma: Modify FLUSHP instuction for DP audio.
Change-Id: I353a38327e5b5265045547c6ced6c2a072f20a47
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jaejoon Yoo [Wed, 5 Oct 2016 02:19:41 +0000 (11:19 +0900)]
Revert "dmaengine: pl330: fix bug that cause start the same descs in cyclic"
This reverts commit
0091b9d6c1ef2caab6cb3b6c0aa75f9948307856.
Change-Id: Ideaea8c9a415a544335452f8e6bec969040c02d0
Jaejoon Yoo [Tue, 2 Aug 2016 02:17:09 +0000 (11:17 +0900)]
dma: Introduce DMA register dump.
Change-Id: I4316c39a062fb862450c5e3bb9ff21055aade6e0
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Seokju Yoon [Tue, 24 Nov 2015 06:02:43 +0000 (15:02 +0900)]
dma: pl330: clear interrupt flag in dma stop
Change-Id: Ibd286459dfd26d2d2cbdea4f127bf1eaccf646ba
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Seokju Yoon [Fri, 27 Nov 2015 08:17:06 +0000 (17:17 +0900)]
DMA: fixed time loop code
Change-Id: I53e9216c0e015709219fb91f1b0cc36a716f13f3
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Eunok Jo [Mon, 20 Jul 2015 02:20:19 +0000 (02:20 +0000)]
dma: restore instruction wrapper register
Wrapper register for instruction address should be restored after power mode.
Change-Id: Icbaf3fe80be32fc496cfdc22dc7ebc34dd00671a
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Seokju Yoon [Thu, 18 Jun 2015 14:09:12 +0000 (23:09 +0900)]
dma: of-dma: Support to set number of dma mask bit property.
Change-Id: I329b65fa71cacddbc1be4df5bc32d142a8598c6d
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Soohyun Kim [Fri, 4 Jul 2014 07:18:24 +0000 (16:18 +0900)]
DMA: pl330: Fixed wrong operation in pl330 interrupt handler
Channel release operation can occur while running interrupt handler.
It can causes the various side effect. This patch is adding
check usage count to avoid above problem.
Change-Id: I45a68b49837bd5abdb9a7404f2441e94393f2afe
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Lee Yongjin [Mon, 20 Apr 2015 11:21:34 +0000 (20:21 +0900)]
dma: Added the DMA wrapper control.
Change-Id: Ifaf27560957bd0c35e1bfc4fd5c8f553fe10eb33
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Eunok Jo [Thu, 16 Apr 2015 09:02:19 +0000 (18:02 +0900)]
dma: set AxCACHE[1] as modifiable.
Differ to NOC, TREX cannot chunk burst data
unless AxCACHE is set to high.
Change-Id: Ie54ccc6cb6ebf3570019a2bf9b34dd61d9581191
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Kang Nam Park [Mon, 29 Dec 2014 06:54:25 +0000 (15:54 +0900)]
dma: support 4burst mode for dev-to-mem and mem-to-dev transmit
Change-Id: I19b1d7f068a1774f693d9b3c3c201fb3042afa80
Signed-off-by: Kang Nam Park <kn0710.park@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Woncheon Ahn [Mon, 22 Dec 2014 04:21:47 +0000 (13:21 +0900)]
dma: resolve prevent '52720'
Change-Id: Icace7fafc9ffc27cfa70636589ce2f275d82e370
Signed-off-by: Woncheon Ahn <woncheon.an@samsung.com>
Soohyun Kim [Tue, 14 Oct 2014 12:46:05 +0000 (21:46 +0900)]
dma: pl330: Remove unaligned access code
If cpu has not allowed unaligned access, this code maybe
has a problem. This patch is prevent above problem.
Change-Id: I4df50f6e7079a32801ba749654f1c8930bc4d142
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
lakkyung jung [Mon, 25 Aug 2014 05:51:56 +0000 (14:51 +0900)]
dma: pl330: Add timeout error on transient states
Change-Id: I096698308a88376073588a7b1da42ed407261514
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
Yongjin Lee [Sun, 9 Feb 2014 11:37:51 +0000 (20:37 +0900)]
dma: pl330: Changed the timeout function
Change-Id: I52449c51ade4ca3a4fe24a4988bc9912d7aecfb7
Signed-off-by: Yongjin Lee <yongjin0.lee@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Lee Yongjin [Fri, 26 Jul 2013 08:59:04 +0000 (17:59 +0900)]
dma: pl330: add guard codes for pre-released request
Rarely, pl330_update() function is called for already freed request.
In that case, pl330_update gets id which value is -1, then kernel panic is occurred.
Change-Id: I6e426e576e2bba25891a280e8539d0c5b3dba7fe
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
Seokju Yoon [Tue, 16 Jun 2015 08:03:44 +0000 (17:03 +0900)]
dma: pl330: add infinite loop functionality
This patch adds an infinite loop feature to PL330 driver.
This feature removes the stop period of PL330 HW.
Change-Id: I5cb5be0eca76497c80ba0ad44021e62776c843d9
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Lee Yongjin [Fri, 13 Sep 2013 05:39:19 +0000 (14:39 +0900)]
dma: pl330: support the arm_exynos_dma_mcode_ops in device tree
This patch is dma micro code allocation in special memory area.
Change-Id: Ic40c162e3a6ec317e70d8af675304304f2e5886c
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Seokju Yoon [Mon, 15 Jun 2015 08:07:34 +0000 (17:07 +0900)]
dma: pl330: add getposition() API
This patch adds a getposition() API to provide the current DMA buffer
position.
Change-Id: I8627e4c0d494701fe272fda55ac3e64792065074
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
Eunok Jo [Fri, 12 Jan 2018 07:06:38 +0000 (16:06 +0900)]
[HACK] dma: add header file to support dma
Change-Id: If73781484a96c550bc0315140b5677b877da7acc
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Jaehyoung Choi [Mon, 14 May 2018 05:41:19 +0000 (14:41 +0900)]
[9610][ERD] arm64: config: Enable gpio_key
Change-Id: I31aa8cf3bf81e85ac206f7d2db9a6fb7b7bee35a
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
Jaehyoung Choi [Mon, 14 May 2018 05:41:00 +0000 (14:41 +0900)]
[9610][ERD] arm64: dts: Add gpio_key device node
Change-Id: I6e4e1d1e1fe6c6bc8672211153b3ceeefa6319cd
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
Soohyun Kim [Thu, 2 Nov 2017 01:00:02 +0000 (10:00 +0900)]
[COMMON] irq: Bound irq to boot cluster when multi target irq scenario.
IRQD_GIC_MULTI_TARGET flag is enabled, All CPU can receive
interrupts. It cause increase power consumption, so we need to
limits the interrupt only to the boot cluster.
Change-Id: I9a44a07fd12220f8a2cfdd5539ccf52aec80677d
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Eunki Kim [Fri, 14 Feb 2014 06:00:48 +0000 (15:00 +0900)]
[COMMON] irqchip: gic: map irq_enable/irq_disable to gic_unmask_irq/gic_mask_irq
It's possible to occur the spurious interrupt from the device.
However, it could be problem when it used for level interrupt.
This patch declares irq_disable to mask_irq in order to prevent
from the spurious interrupts and does irq_enable to unmak_irq
pairly.
Change-Id: Iec8de4232f67d2f9ab8762b481c2e4049bf7898c
Signed-off-by: Eunki Kim <eunki_kim@samsung.com>
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
Hyunki Koo [Fri, 15 Apr 2016 07:47:11 +0000 (16:47 +0900)]
[COMMON] irqchip: gic: add dmb(ish) in gic_handle_irq
Change-Id: I09e180d1d7133d5c306531dd4db3ce8d3c0d176b
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Hosung Kim [Sun, 9 Apr 2017 11:49:29 +0000 (20:49 +0900)]
[COMMON] irqchip: gic: implement multiple cpu targeted interrupt
Current gic driver only supports single cpu targeted interrupt
though GIC HW supports multiple cpu targeted interrupt.
This patch implements this multiple cpu targeted interrupt
by controlling interrupt processor target registers in GIC HW.
Because use of multiple cpu targeted interrupt can cause
unnecessary wakeups of targeted cpus, use this feature
only when minimal interrupt latency is required
Change-Id: Iefb8625564e790eede677190aa2190290f7aee00
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Hyunki Koo [Thu, 8 Mar 2018 09:07:29 +0000 (18:07 +0900)]
[COMMON] kernel: irq: don't migrate irqs with IRQD_GIC_MULTI_TARGET set
Don't migrate multi targeted interrupts during cpu hotplug out
if their masks include any onlie cpus.
This patch was missing by kernel version up, because this code was
in arch/arm64/kernel. But it is in kernel/irq now.
Change-Id: If1acc4c5acac8ca65bc4a3308db40530bdd1e17c
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
Hosung Kim [Thu, 8 Mar 2018 12:36:09 +0000 (21:36 +0900)]
genirq: move setting GIC_MULTI_TARGET flag
This commit moves setting the code of GIC_MULTI_TARGET flag
over to calling irq_startup function. Because of applying
genirq: Move initial affinity setup to irq_startup() by Thomas Gleixner
Patch, calling setup_affinity function was gone.
So there was no way to set affinity.
Change-Id: I68846906f35f45015ceff56450606c917fd8749d
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Hyunki Koo [Fri, 26 Jan 2018 08:32:40 +0000 (17:32 +0900)]
[HACK] irq: irqchip: do not check irqd_irq_masked
Change-Id: Ieb2a610892000b536130629ae6238bcd139955e9
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>