- Jan 14, 2022
-
-
Zhipeng Wang authored
On the i.MX8M*, the TF-A exposes a SiP (Silicon Provider) service for DDR frequency scaling. The imx8m-ddrc-devfreq driver calls the SiP and then does clk_set_parent on the DDR muxes to synchronize the clock tree. Since 936c3836 ("clk: imx: fix composite peripheral flags"), these TF-A managed muxes have SET_PARENT_GATE set, which results in imx8m-ddrc-devfreq's clk_set_parent after SiP failing with -EBUSY: clk_set_parent(dram_apb_src, sys1_pll_40m);(busfreq-imx8mq.c) This is safe to do, because updating the Linux clock tree to reflect reality will always be glitch-free. Since 926bf912("clk: imx8m: fix clock tree update of TF-A managed clocks"), it adds this method and enables 8mm, 8mn and 8mq. I think 8mp is also needed. Another reason I added this patch is that powersave image BT music requires dram to be 400MTS, so clk_set_parent(dram_alt_src, sys1_pll_800m); is required. Without this patch, it will not succeed. Change-Id: I4f07573dea4ac9a8a88b04cf795b346299940635 Signed-off-by:
Zhipeng Wang <zhipeng.wang_1@nxp.com>
-
- Jan 05, 2022
-
-
Ondrej Lutera authored
Signed-off-by:
Ondrej Lutera <ondrej.lutera@nxp.com>
-
- Jan 04, 2022
-
-
Jindong Yue authored
evk_8mn will meet system hang when resume (using "echo mem > /sys/power/state" to make system suspend while display on). The reason is that imx-drm driver resumes before imx-lcdif driver, and access some hardware while those resources not ready. fw_devlink will affect the suspend/resume sequence by parsing dts to create dependency btw drivers. But these two drivers doesn't have supported dts property for fw_devlink. This patch explicitly defers the suspend sequence of imx-lcdif driver to fix it. Change-Id: Ifd266101650c07fecdbfcbdcb9231f9aa4b4f70a Signed-off-by:
Jindong Yue <jindong.yue@nxp.com>
-
yuan.tian authored
Update gc_feature_database.h to 429850 Change-Id: I5b630fb43354ed12e71fe0736b6c20806ab1cb83 Signed-off-by:
yuan.tian <yuan.tian@nxp.com>
-
yuan.tian authored
6.4.x_234062: Merge CL430717 from 6.4.x. Fix Bug 31480. HW bug 2030, accoriding to the feature bit gcvFEATURE_BIT_PE_64BPP_LINEAR_FORMAT to deteminate whether to support 64BPP to draw clear. By: xuan.huang. Signed-off-by:
Ke Feng <ke.feng@verisilicon.com> Change-Id: I0acd7c6e7e9306114a19b6ae798fdc9292bc8b29 Signed-off-by:
yuan.tian <yuan.tian@nxp.com>
-
yuan.tian authored
64x_234062, imx-2693: Implemented YUV planar formats to YUY2 packed format conversion using compute shader to avoid UI freeze when playing youtube with ads on MP Android platform. Signed-off-by:
Ke Feng <ke.feng@verisilicon.com> Change-Id: I4294634f240a4a8a541986cb92f84a6991ff2d5f Signed-off-by:
yuan.tian <yuan.tian@nxp.com>
-
yang.tian authored
Add compat_ioctl file_operation for dma-buf-imx driver for 32/64 binary ioctl compatable. Also update head file to use __u32 and uint64_t type to avoid 32/64 compatable issue. Change-Id: I92040d6b2c3e3fac9af9b3e16f6fc6638a5f6c58 Signed-off-by:
yang.tian <yang.tian@nxp.com>
-
Zhang Bo authored
The minimum clock of GPU is variable and can be set through sysfs file /sys/bus/platform/drivers/galcore/gpu3DMinClock. This value should read every time when thermal event generated. The original scale of GPU frequence is the one when boot up. Change-Id: I6f1786ae46403d216f3f6dbf715c1aa332cd3351 Signed-off-by:
Zhang Bo <bo.zhang@nxp.com>
-
Xiaojun.Chen authored
CL433206 [KERNEL SPACE] After the internal command is executed, check the idle status of other modules to determine whether the command is executed. Signed-off-by:
Ke Feng <ke.feng@verisilicon.com> Signed-off-by:
Jiyu Yang <jiyu.yang@nxp.com>
-
zhai.he authored
does not use this driver Because the hantro driver is built in on imx8m boards except imx8mq. But hantro driver need api of trusty driver, and trusty driver is build as module. So there will be build error: "error: undefined symbol: trusty_fast_call32" We should disable hantro driver on imx8mm/imx8mp/imx8mn/imx8ulp boards. Change-Id: Ifb6badc092efa2de16bc41b7e2dfb79376cdde1d Signed-off-by:
zhai.he <zhai.he@nxp.com>
-
zhai.he authored
For the use of registers, the decoder are all passed to TEE through smc. Use trusty_vpu_write/read to wrap the smc interface and iowrite32/ioread32, for sensitive registers such as input and output,we use the OPT_SECURE_WRITE smc type to store the buffer address in the TEE cache.When the decoding is started, the VPU is turned on through the OPT_SECURE_CTRL_WRITE type smc interface. Change-Id: I06ee0cb493d2620204e9b3fdc08d636bff920f83 Signed-off-by:
zhai.he <zhai.he@nxp.com>
-
zhai.he authored
Change-Id: I0f5c4a24611ceee7ecaa06cf68d74a3841b32dfb Signed-off-by:
zhai.he <zhai.he@nxp.com>
-
Jindong Yue authored
It is ready to use GKI boot.img Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: Ibfc83f6dcb4fba2a7b531cb9e4c0d019ba89f116
-
Jindong Yue authored
CONFIG_FB_DEFERRED_IO will change the struct fb_info, then break the GKI image boot: pwm_bl: disagrees about version of symbol backlight_device_register Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I09efbf6baeaba16e68ae7a24bf33f9ed05907cdc
-
Jindong Yue authored
Split lpuart early console driver from fsl_lpuart.c to imx_earlycon.c Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I55ec183aa6039e4666e985053caf669b78fef5b8
-
Jindong Yue authored
System will hang if clk driver closes uart clock while earlycon is working. This issue happens when earlycon driver built in, and clk driver built as module. Add a CLK_IS_CRITICAL flag for lpuart5 to tell clk driver not gate off its clock when register. Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: Idee35a616b7feebdb6cbea8e36385eae8de10096
-
Jindong Yue authored
CONFIG_HAVE_IMX_BUSFREQ is disabled in imx8ulp_gki.fragment. We need to enable it when generate imx symbol lists to fix below build error: drivers/soc/imx/busfreq-imx8mq.c:339:6: error: redefinition of 'request_bus_freq' include/linux/busfreq-imx.h:58:20: note: previous definition is here Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I3836a7c39756e0dc912c82a909c23cf24db81fe9
-
Zhipeng Wang authored
The core and bus clocks are default enabled when SoC power on, and bootloader not gate off the clocks when booting Linux Kernel. So Linux Kernel is not aware the peripheral clocks are enabled and still take them as disabled because of enable count is zero. After we enable GKI, disable_unused_clk does not work. This causes unused core and bus clocks to remain on, so turn them off here. Change-Id: If7994c6ea05724f1d16d512c03df6fad1d6c1823 Signed-off-by:
Zhipeng Wang <zhipeng.wang_1@nxp.com>
-
Jessie Hao authored
There are no /dev/dma_heap/system and /dev/dma_heap/system-uncached. It's because below commit remove CONFIG_DMABUF_HEAPS_SYSTEM.Here add it back. 245777a0 Jindong Yue MA-18983-3 defconfig: Sync defconfig after kernel merge Change-Id: I38259bebf177ebe711b6a543dabb6c952232e241 Signed-off-by:
Jessie Hao <juan.hao@nxp.com>
-
Jessie Hao authored
add dmabuf and remove ion configure. Below patch only changes gki platform config, here align the change for non gki platform. eee95206 MA-19204-9 [Android] enable dmabuf heap defconfig Change-Id: I7bfda85d25e8b2b4f15d7e8209484ae63826743f Signed-off-by:
Jessie Hao <juan.hao@nxp.com>
-
Ye Li authored
Current driver may meet reconfigure failure caused by below reasons: 1. The wdog on iMX7ULP has different behavior after RCS valid. It needs to wait more than 2.5 wdog clock for clock sync before next reconfiguration, while imx8ulp wdog does not need such delay. 2. After unlock, there is 128 bus clock window opened for reconfiguration, but on iMX8ULP, the HW can't guarantee the latency. So it is possible the window is closed before the writing arrives to wdog. 3. If the PRES is enabled, the RCS valid time becomes x256 to the time of PRES disabled. It is about 1715ms on iMX8ULP. So We have to increase the RCS timeout and can't wait it in IRQ disabled. The patch updates the driver to handle failures 1. Using different wait for unlock and RCS. Unlock valid time is very short and only related to bus clock. It must be in IRQ disabled to avoid being interrupted in 128 clock window. But for RCS time, it is longer and ok for IRQ enabled. 2. Add retry for any reconfigure failure with default 5 times. 3. Add "fsl,imx8ulp-wdt" compatile string for iMX8ULP and afterwards platform which don't need more 2.5 wdog clock after RCS valid. For imx7ulp, add post delay of 2.5 clock after RCS valid. Signed-off-by:
Ye Li <ye.li@nxp.com> Reviewed-by:
Jacky Bai <ping.bai@nxp.com>
-
Frank Li authored
This issue was found at android12 MTP. 1. MTP submit many out urb request. 2. Cancel left requests (>20) when enough data get from host 3. Send ACK by IN endpoint. 4. MTP submit new out urb request. 5. 4's urb never complete. TRACE LOG: MtpServer-2157 [000] d..3 1287.150391: cdns3_ep_dequeue: ep1out: req: 00000000299e6836, req buff 000000009df42287, length: 0/16384 zsi, status: -115, trb: [start:87, end:87: virt addr 0x80004000ffd50420], flags:1 SID: 0 MtpServer-2157 [000] d..3 1287.150410: cdns3_gadget_giveback: ep1out: req: 00000000299e6836, req buff 000000009df42287, length: 0/16384 zsi, status: -104, trb: [start:87, end:87: virt addr 0x80004000ffd50420], flags:0 SID: 0 MtpServer-2157 [000] d..3 1287.150433: cdns3_ep_dequeue: ep1out: req: 0000000080b7bde6, req buff 000000009ed5c556, length: 0/16384 zsi, status: -115, trb: [start:88, end:88: virt addr 0x80004000ffd5042c], flags:1 SID: 0 MtpServer-2157 [000] d..3 1287.150446: cdns3_gadget_giveback: ep1out: req: 0000000080b7bde6, req buff 000000009ed5c556, length: 0/16384 zsi, status: -104, trb: [start:88, end:88: virt addr 0x80004000ffd5042c], flags:0 SID: 0 .... MtpServer-2157 [000] d..1 1293.630410: cdns3_alloc_request: ep1out: req: 00000000afbccb7d, req buff 0000000000000000, length: 0/0 zsi, status: 0, trb: [start:0, end:0: virt addr (null)], flags:0 SID: 0 MtpServer-2157 [000] d..2 1293.630421: cdns3_ep_queue: ep1out: req: 00000000afbccb7d, req buff 00000000871caf90, length: 0/512 zsi, status: -115, trb: [start:0, end:0: virt addr (null)], flags:0 SID: 0 MtpServer-2157 [000] d..2 1293.630445: cdns3_wa1: WA1: ep1out set guard MtpServer-2157 [000] d..2 1293.630450: cdns3_wa1: WA1: ep1out restore cycle bit MtpServer-2157 [000] d..2 1293.630453: cdns3_prepare_trb: ep1out: trb 000000007317b3ee, dma buf: 0xffd5bc00, size: 512, burst: 128 ctrl: 0x00000424 (C=0, T=0, ISP, IOC, Normal) SID:0 LAST_SID:0 MtpServer-2157 [000] d..2 1293.630460: cdns3_doorbell_epx: ep1out, ep_trbaddr ffd50414 .... irq/241-5b13000-2154 [000] d..1 1293.680849: cdns3_epx_irq: IRQ for ep1out: 01000408 ISP , ep_traddr: ffd508ac ep_last_sid: 00000000 use_streams: 0 irq/241-5b13000-2154 [000] d..1 1293.680858: cdns3_complete_trb: ep1out: trb 0000000021a11b54, dma buf: 0xffd50420, size: 16384, burst: 128 ctrl: 0x00001810 (C=0, T=0, CHAIN, LINK) SID:0 LAST_SID:0 irq/241-5b13000-2154 [000] d..1 1293.680865: cdns3_request_handled: Req: 00000000afbccb7d not handled, DMA pos: 185, ep deq: 88, ep enq: 185, start trb: 184, end trb: 184 Actually DMA pos already bigger than previous submit request afbccb7d's TRB (184-184). The reason of (not handled) is that deq position is wrong. The TRB link is below when irq happen. DEQ LINK LINK LINK LINK LINK .... TRB(afbccb7d):START DMA(EP_TRADDR). Original code check LINK TRB, but DEQ just move one step. LINK DEQ LINK LINK LINK LINK .... TRB(afbccb7d):START DMA(EP_TRADDR). This patch skip all LINK TRB and sync DEQ to trb's start. LINK LINK LINK LINK LINK .... DEQ = TRB(afbccb7d):START DMA(EP_TRADDR). Acked-by:
Peter Chen <peter.chen@kernel.org> Cc: stable <stable@vger.kernel.org> Signed-off-by:
Frank Li <Frank.Li@nxp.com> Signed-off-by:
Jun Li <jun.li@nxp.com> Link: https://lore.kernel.org/r/20211130154239.8029-1-Frank.Li@nxp.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
Jacky Bai authored
The clock will be get failed if the clock name is not 'snvs', it is not what we expected if the clock need to be managed by driver. As for the SNVS module, there is only one clock for it, so assigned a unspecified clock name 'NULL'. Signed-off-by:
Jacky Bai <ping.bai@nxp.com> Reviewed-by:
Ye Li <ye.li@nxp.com>
-
Jacky Bai authored
The SNVS moudule is not used only by the linux, it may also used by other SW component is secure world. No sense to gate it by linux, so mark it as critical clock. Signed-off-by:
Jacky Bai <ping.bai@nxp.com> Reviewed-by:
Ye Li <ye.li@nxp.com>
-
Robin Gong authored
Fix Coverity Issue:17611886 Uninitialized scalar variable, though DEV_TO_DEV case never care residue of current transfer by calling dmaengine_tx_status. Signed-off-by:
Robin Gong <yibin.gong@nxp.com> Reviewed-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 78b358bd)
-
Jindong Yue authored
Build timer-imx-tpm clocksource as module. Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I19bfc8dc886c0f1c7ccb4a583c57a2372422746b
-
Jindong Yue authored
Change defconfig as tristate type and add platform driver to support building it as a module. Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I4b013a916c496efd1f7f41650ebcd0a6f32895b0
-
Jindong Yue authored
Give a chance to build CLKSRC_IMX_TPM as module. Fixes: f4775509 ("LF-4481-03 arm64: mxc: select the tpm timer by default") Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I9c2cb1915f6f802cc920a09df114c8be6c4bd401
-
Jindong Yue authored
Add these defconfigs to support epdc on 8ulp gki image. Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: Ia54655999a97ffec75c87e5cb5c3f3639999055f
-
Jindong Yue authored
CONFIG_FB_NOTIFY is not enabled in gki image, so make it build as module. Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: If7da9e22c530c5aaa5da8fbba54b1372706bb84e
-
Jindong Yue authored
- #ifdef CONFIG_FB_FENCE is true only when CONFIG_FB_FENCE=y - #if IS_ENABLED(CONFIG_FB_FENCE) is true when CONFIG_FB_FENCE=y or CONFIG_FB_FENCE=m Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I67aeb127d38026c900da211f8d549becdb60f1d6
-
Jindong Yue authored
Export three symbols required by timer-imx-tpm.ko Leaf changes summary: 3 artifacts changed Changed leaf types summary: 0 leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 3 Added functions Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable 3 Added functions: [A] 'function int clocksource_mmio_init(void*, const char*, unsigned long int, int, unsigned int, long long unsigned int (clocksource*)*)' [A] 'function u64 clocksource_mmio_readl_up(clocksource*)' [A] 'function void sched_clock_register(long long unsigned int ()*, int, unsigned long int)' Bug: 194108974 Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I123996fc08740d3e4bf242a1913b22ca83b2e2b9
-
Jindong Yue authored
Export clocksource_mmio_init and clocksource_mmio_readl_up to support building clocksource driver as module. Bug: 194108974 Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: I63bab35efa6ca2c8b0c6283f6d42c13db66568af
-
Jindong Yue authored
clocksource driver may use sched_clock_register to resigter itself as a sched_clock source. Export it to support building such driver as module, like timer-imx-tpm.c Bug: 194108974 Signed-off-by:
Jindong Yue <jindong.yue@nxp.com> Change-Id: Id23f3da624a1e70fc1a44daf6f827c03dc1d053d
-
Jaegeuk Kim authored
This information can be used to check how much time we need to give to issue all the discard commands. Bug: 206863097 Reviewed-by:
Chao Yu <chao@kernel.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from commit fc4ae5492ca4afd7a8a9d261f4908b09f221d314 git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev) Change-Id: Ibd2f1d6c171f584ec9ca3817d9ea561db98f4693
-
zhengding chen authored
Export symbol of the function wq_worker_comm() in kernel/workqueue.c for dlkm to get the description of the kworker process. Bug: 208394207 Signed-off-by:
zhengding chen <chenzhengding@oppo.com> Change-Id: I2e7ddd52a15e22e99e6596f16be08243af1bb473
-
Liujie Xie authored
Update symbols to symbol list externed by oem modules. Leaf changes summary: 2 artifacts changed Changed leaf types summary: 0 leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added variable 1 Added function: [A] 'function int __traceiter_android_vh_binder_proc_transaction_end(void*, task_struct*, task_struct*, task_struct*, unsigned int, bool, bool)' 1 Added variable: [A] 'tracepoint __tracepoint_android_vh_binder_proc_transaction_end' Bug: 193384408 Signed-off-by:
Liujie Xie <xieliujie@oppo.com> Change-Id: Ifa86e945c159203f321f6bec22f7c6b75e1ed8cb
-
Liujie Xie authored
When binder transaction happened, We want to know it's transaction code and it is oneway or not. Bug: 208910215 Signed-off-by:
Liujie Xie <xieliujie@oppo.com> Change-Id: Ic03e5481e96e120a1953a101895714db04ca2bdf
-
Donnie Pollitz authored
Leaf changes summary: 4 artifacts changed Changed leaf types summary: 0 leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 3 Added functions Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added variable 3 Added functions: [A] 'function int kernel_sock_shutdown(socket*, sock_shutdown_cmd)' [A] 'function int sock_recvmsg(socket*, msghdr*, int)' [A] 'function socket* sockfd_lookup(int, int*)' 1 Added variable: [A] 'device platform_bus' Bug: 207100354 Test: Manually, Emulator boots up. Signed-off-by:
Donnie Pollitz <donpollitz@google.com> Change-Id: Iba6b282d4a21d641b992867d0519d1da9edd5cec
-
Pat Tjin authored
Remove executable bit on abi_gki_aarch64_mtk file. This file was added in 55d7c4ec, the mode of abi_gki_aarch64.xml was fixed in eb02ea0e, this patch fixes the other file that from the 55d7c4ec patch. Bug: 149040612 Fixes: 55d7c4ec ("ANDROID: Update symbol list for mtk") Signed-off-by:
Pat Tjin <pattjin@google.com> Change-Id: I3800136eb7d7f54a89508660ae40e662ee5ac571
-