1
0
Fork 0
Commit Graph

881527 Commits (8e298b9ca4eef2e5b29f4e0dbdd51ef2446ed596)

Author SHA1 Message Date
Peter Chen 809e95fe71
MLK-23677-5 usb: chipidea: udc: use tracepoint
Use tracepoint for adding td and td completion.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:22:00 +08:00
Peter Chen d74f8108dc
MLK-23677-4 usb: chipidea: add tracepoint support for udc
Add basic tracepoint support for udc driver.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:21:59 +08:00
Peter Chen 104a42c649
MLK-23677-3 usb: chipidea: udc: put as many as sg buffers per TD
At most of cases, the system allocated sg buffers for 4KB, but
the TD could contain 5 * 4KB non-contiguous buffers at most. In order
to avoid more chained TDs, we tried to put more sg buffers in one
TD instead of putting only one sg buffer.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:21:59 +08:00
Peter Chen 4fa36b5b4c
MLK-23677-2 usb: chipidea: udc: fix the kernel doc for udc.h
The kernel doc for td_node is outdated, update it.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:21:59 +08:00
Peter Chen 64c25ec54b
MLK-23677-1 usb: cdns3: gadget: the initialize value for trb->length should be zero
With commit d2e892c29d ("MLK-23595-1 usb: cdns3:
gadget: calculate TDL per TD"), the first trb->length assignment
is moved before the do-while loop, but only considering DEV_VER_V2
situation, in fact, we need to initialize trb->length for all situations.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:21:59 +08:00
Peter Chen 89a49f36e0
MLK-23676 ARM64: imx8dxl-ss-conn: change USBOTG2 compatible
"fsl,imx8qm-usb" is not defined at driver, and "fsl,imx27-usb"
is older model. We need to use the closest model for it to get
the newer features, like runtime pm.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:21:59 +08:00
Peter Chen f304da5ac1
MLK-23639 ARM64: imx8dxl.dtsi: enable USB1 and USB2 wakeup interrupt
Enabe USB1 and USB2 wakeup interrupt for system suspend.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-03-27 11:21:59 +08:00
Jacky Bai bd0cec49f7 MLK-23678 arm64: dts: imx8m: Add arm pmu node for imx8mn/mp
Add the pmu node on i.MX8MN/MP to enable the ARM PMU support.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2020-03-26 20:12:12 +08:00
Jacky Bai 5aaceda10a MLK-23671-02 arm64: dts: imx8mp: Add the rpm-always-on flag for hsiomix domain
The hsiomix power domain need to be runtime always-on to maintain USB's
wakeup ability. As this domain need to be boot on by default, no one will
call the power on callback during system boot up, the clock enable/disable
will mismatch, so remove the clocks from this domain. the necessary clocks
will be handled in TF-A.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-03-26 20:12:12 +08:00
Jacky Bai d376118ae3 MLK-23671-01 soc: imx: Add the rpm always on flag if necessary
Some power domain need to be runtime always on to keep
the peripherals's weekup ability, for such power domain,
add the 'GENPD_FLAG_RPM_ALWAYS_ON' flag.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-03-26 20:12:12 +08:00
Shijie Qin fedb5f3827 LF-1181 mxc: vpu_malone: Not send res_change event until dst done_list is empty
As eos event, when receive res change event from FW,
don't send it to framework until dst done_list is empty.
Avoid to framework ignore a few decoded frames.

Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
Reviewed-by: ming_qian <ming.qian@nxp.com>
2020-03-26 18:12:18 +08:00
Fugang Duan 81e0e6c356 MLK-23687-02 arm64: dts: imx8dxl: update enet wakeup irq number
Update enet wakeup interrupt number since they are different
with imx8qxp.

Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:44 +08:00
Fugang Duan 443806dbfd MLK-23687-01 net: fec: add stop mode support for imx8dxl
Enable stop mode for imx8dxl.

Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:44 +08:00
Fugang Duan 2aceec97c0 MLK-23685 arm64: dts: imx8dxl: add aliases for ethernet node
Add aliases for ethernet node to support set mac
address by uboot ethnaddr env.

Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:44 +08:00
Fugang Duan 531b44e5c4 MLK-23686 dts: imx8dxl: read mac address from efuse
Add mac address support by reading from efuse.

Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:44 +08:00
Fugang Duan e251c11def LF-289 ARM: dts: imx6qdl: move erratum ERR006687 workaround into *enetirq.dts
Move erratum ERR006687 workaround into *enetirq.dts file.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:28 +08:00
Anson Huang d5df9a7355 MLK-11739-2 ARM: dts: imx6qdl: fec interrupt should be in GPC domain
GPC irq domain is child domain of GIC, all of platform
irqs should be inside GPC domain.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 17:50:18 +08:00
Richard Zhu 7fb4da245b MLK-23669 arm64: dts: imx8qm: add pcieax2pciebx1 usecase
Different HSIO usecase may be used by customers.
- add PCIEAx2PCIEBx1 usecase for example.
Only verified PCIA one lane refer to the iMX8QM MEK and Baseboard
hardware limitation.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 16:40:48 +08:00
Richard Zhu 8c28614abf MLK-23668-2 PCI: imx: add the pcieb for imx8qm
Enable the second PCIe port PCIEB on i.MX8QM platforms.
- PCIEB has one more PER clock, since that the PCIEA CSR register
would be configuired when PCIEB is initialized.
- Use CLKREQ override on i.MX8QM/i.MX8QXP
- In the PCIEAX1PCIEBx1SATA usecase, the PHYX2_PCLK[0] is mandatory
required by PCIEB. Otherwise PCIEB can't link up when exist from L2
mode when only PCIEB is used.
- Regarding to the base board HW limitation(two Disable#) are not
connected. Only the standard PCIe EP device is supported on PCIEB port.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 16:40:48 +08:00
Richard Zhu c24b099bb5 MLK-23668-1 arm64: dts: imx8qm: add multi-pcie ports support
- Enable the PCIEB port on the i.MX8QM MEK and base board.
- In the PCIEAX1PCIEBx1SATA usecase, the PHYX2_PCLK[0] is mandatory
required by PCIEB. Otherwise PCIEB can't link up when exist from
L2 mode when only PCIEB is used.
- PCIEB has one more PER clock, since that the PCIEA CSR register
would be configuired when PCIEB is initialized.
- Regarding to the base board HW limitation(two Disable#) are not
connected. Only the standard PCIe EP device is supported on PCIEB port.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-26 16:40:48 +08:00
Ming Qian 7c1e5ff049 LF-1180:[8QM_MEK/8QXP_MEK]mxc:vpu_malone:v4l2 buffer of output stream use virtual memory instead of dma
only cpu will access the v4l2 buffer of output stream,
so there is no need for allocate dma for it
use virtual memory can decreate the usage of dma,
and won't bring side effort

Signed-off-by: Ming Qian <ming.qian@nxp.com>
2020-03-26 13:17:56 +08:00
Joakim Zhang 1b43d34c6e MLK-23528 arm64: dts: imx8dxl: add CAN wakeup irq
Add CAN wakeup irq.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-03-26 10:58:29 +08:00
Richard Zhu b8a7102caa MLK-23637 dts: arm64: imx8mp: enable the pcie ep rc on imx8mp evk
Add the PCIe DMA IRQ name.
Enable the PCIe EP RC validation on iMX8MP EVK boards.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-25 19:39:51 +08:00
Viorel Suman a063fac437 MLK-23603-6: ASoC: fsl_xcvr: move clks management into suspend/resume
Move clocks prepare_enable and disable_unprepare calls
into runtime_resume and runtime_suspend respectively.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-03-25 10:49:09 +02:00
Viorel Suman 9c6b7f731a MLK-23603-5: ASoC: fsl_xcvr: move static IP config code into fw load
Move static XCVR IP configuration code into firmware load
method in order to avoid the need to have bus clock started
in "startup" callback.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-03-25 10:49:09 +02:00
Viorel Suman 6bd55541d4 MLK-23603-4: ASoC: fsl_xcvr: adjust watermark and max burst values
Set watermarks values at half FIFO size, and max burst to 1/8
of FIFO size.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-03-25 10:49:09 +02:00
Viorel Suman ff5a36241f MLK-23603-3: ASoC: fsl_xcvr: prepare for suspend/resume
"startup" callback is not called in a subsequent
"runtime_resume" sequence, so move IP init code
into "prepare" callback. Aside of this move
constraint check code from "prepare" to "startup"
since constraint checking is required once at stream
startup.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-03-25 10:49:09 +02:00
Viorel Suman 8a05c23ef2 MLK-23603-2: ASoC: fsl_xcvr: refactor constraint handling
Refactor constraint handling in order to facilitate
unimplemented cases, such as for ARC and SPDIF.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-03-25 10:49:09 +02:00
Viorel Suman 6a3380a43a MLK-23603-1: ASoC: fsl_xcvr: fix compliation warnings
Fix two compilation warnings.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2020-03-25 10:49:08 +02:00
Sandor Yu adbec527e0 MLK-23545-2: drm: imx: mhdp: weston8 UI recovery after cable plugout/in
Workaround that force mode_set to recovery hdmi2.0 and DP display
after cable plugin could work for weston 7.0,
But it failed work for weston 8.0 becuase atomic check will break.

Fixed it with force mode_set only when drm_atomic_state.allow_modeset is true.
and drm_atomic_check_only will success.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2020-03-25 16:42:32 +08:00
Sandor Yu 1d17933d18 MLK-23545-1: drm: bridge: hdp: Remove force_mode_set flag when cable plugin
Keep force_mode_set flag when cable plugin,
remove it from cable plugout.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2020-03-25 16:42:32 +08:00
Guoniu.zhou 72155acb74 MLK-23665: arm64: dts: ov5640: add new dts for imx8qxp ov5640 rpmsg
Because our relase image include m4 image by default, but dts for two
ov5640 don't include rpmsg, so user need to burn non-rpmsg flash.bin
if they want to test two ov5640 case. Test team and more and more guys
request to add rpmsg ov5640. The patch is used for the purpose.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
2020-03-25 14:07:42 +08:00
Guoniu.zhou abf0676295 MLK-23526: media: ov5640: fix black frame issue when resolution change
Ov5640 will output some black frames at first when switch to other
resolution. So add about 100ms delay and software powerdown sensor
after finishing current video stream and before starting another
video stream to wait for sensor stable.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
2020-03-25 14:07:42 +08:00
Richard Liu d39a68543c MGS-5565-1 staging: android: ion: Flush outer cache after zero CMA allocated memory
Need flush outer cache after zero CMA allocated memory on arm32 platform.

Change-Id: Ieaa7c62bf65e4490f904d68bed1fa16fb7c5d8fa
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
Reviewed-by: Bing Song <bing.song@nxp.com>
2020-03-24 16:16:41 +00:00
Ming Qian 005804e23f LF-1078-2:[8QM_MEK/8QXP_MEK]mxc:vpu_windsor:compatible with ffmpeg h264_v4l2m2m encoder
set the last_buffer_queued flag

Signed-off-by: Ming Qian <ming.qian@nxp.com>
2020-03-24 15:44:47 +08:00
Ming Qian 7c5d76d7a1 LF-1078:[8QM_MEK/8QXP_MEK]mxc:vpu_windsor:compatible with ffmpeg h264_v4l2m2m encoder
1.calcuate a timestamp for the eos frame
2.send eos event after all frames are dequeueed

Signed-off-by: Ming Qian <ming.qian@nxp.com>
2020-03-24 15:41:25 +08:00
Ming Qian fa99601894 LF-1077:[8QM_MEK/8QXP_MEK]mxc:vpu_malone:compatible with ffmpeg h264_v4l2m2m decoder
supply a default sizeimage for output

Signed-off-by: Ming Qian <ming.qian@nxp.com>
2020-03-24 15:41:25 +08:00
Ming Qian 0cd3c661b9 MLK-23220:mxc:vpu_malone:kfifo_alloc failure in VPU driver when memory fragment
Suggest to use vmalloc for fifo entity.
Then use kfifo_init to init the fifo structure.
Then we do not have to require contiguous memory from buddy,
especially in a high pressure of memory resource.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
2020-03-24 15:41:25 +08:00
Shengjiu Wang b45c81db62 MLK-23653-3: arm64: dts: imx8mm-evk: change sai to master for bt-sco
Change sai to master for bt-sco to resolve the long latence issue
for uplink

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-24 11:47:24 +08:00
Richard Zhu f3db6a0c22 MLK-23666 arm64: dts: correct the legacy intx of imx8dxl pcie
Correct the legacy INTX numbers of the iMX8DXL PCIe.
Use the internal PLL as PCIe REF clock.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-03-24 11:24:49 +08:00
Frank Li dc62e993e1 MLK-23646 i.MX8DXL support DDR3 EVK board
support only basic function
eqos network
USB1 and USB2 basic work
Only total 512MB in DDR3 evk boards

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
2020-03-23 09:17:32 -05:00
Jacky Bai 985d669e1e MLK-23658 arm64: dts: imx8mm: Add ddr3l val board for imx8mm
Add the DDR3L val board for i.MX8MM.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2020-03-23 20:44:49 +08:00
Shengjiu Wang 6a895a2c4c MLK-23650-2: ASoC: fsl_asrc_m2m: Fix oops error
Don't need to add one more buffer, if the buffer
size is same as ASRC_MAX_BUFFER_SIZE.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-23 17:48:15 +08:00
Shengjiu Wang 091d9d8e65 MLK-23650-1: ASoC: fsl_easrc_m2m: Fix oops error
swiotlb don't allow the buffer length is zero. So
we should not add one more buffer, if the buffer
size is same as max_buf_size.

[ 1853.382383] ------------[ cut here ]------------
[ 1853.387011] kernel BUG at kernel/dma/swiotlb.c:497!
[ 1853.391889] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[ 1853.397372] Modules linked in: crct10dif_ce flexcan can_dev
[ 1853.402950] CPU: 2 PID: 17298 Comm: easrc_testapp Not tainted 5.4.3-2.0.0+gfd263a3edd95 #1
[ 1853.411210] Hardware name: FSL i.MX8MP EVK (DT)
[ 1853.415739] pstate: 80000005 (Nzcv daif -PAN -UAO)
[ 1853.420535] pc : swiotlb_tbl_map_single+0x1fc/0x310
[ 1853.425413] lr : swiotlb_map+0x60/0x148
[ 1853.429245] sp : ffff800025fdba80
[ 1853.432557] x29: ffff800025fdba80 x28: 0000000000000000
[ 1853.437867] x27: ffff000177818638 x26: ffff800011b14000
[ 1853.443176] x25: ffff800011b149f8 x24: 0000000000000000
[ 1853.448485] x23: 00000001b1e0c000 x22: 0000000000000000
[ 1853.453793] x21: ffff0001763ef410 x20: 0000000000180000
[ 1853.459102] x19: ffff0001763ef410 x18: 0000000000000000
[ 1853.464411] x17: 0000000000000000 x16: 0000000000000000
[ 1853.469720] x15: 0000000000000000 x14: 001df82f001df82f
[ 1853.475029] x13: ffff00017f34e000 x12: 0000000000000018
[ 1853.480338] x11: 00000000001fffff x10: 0001000000000000
[ 1853.485646] x9 : 0000000000000000 x8 : 0000000000000000
All test[s  1p8a5s3s.e4d90 w95i5] x7 : 0000000000000000 x6 : 0000000000000000
h success
[ 1853.497911] x5 : 0000000000200000 x4 : 0000000000000000
[ 1853.504171] x3 : 0000000000000001 x2 : 00000001b1e0c000
[ 1853.509480] x1 : 00000000c0000000 x0 : 0000000000000000
[ 1853.514789] Call trace:
[ 1853.517237]  swiotlb_tbl_map_single+0x1fc/0x310
[ 1853.521766]  swiotlb_map+0x60/0x148
[ 1853.525253]  dma_direct_map_page+0xf0/0x130
[ 1853.529434]  dma_direct_map_sg+0x78/0xe0
[ 1853.533356]  fsl_easrc_dmaconfig+0x10c/0x398
[ 1853.537624]  fsl_easrc_ioctl+0xcf4/0x1490
[ 1853.541633]  do_vfs_ioctl+0x964/0xb48
[ 1853.545293]  ksys_ioctl+0x78/0xa8
[ 1853.548607]  __arm64_sys_ioctl+0x1c/0x28
[ 1853.552530]  el0_svc_common.constprop.0+0x68/0x160
[ 1853.557320]  el0_svc_handler+0x20/0x80
[ 1853.561067]  el0_svc+0x8/0xc
[ 1853.563949] Code: 912e4021 9417b69a a94363f7 17ffffd5 (d4210000)
[ 1853.570042] ---[ end trace 5e9c94fcfabda124 ]---

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-23 17:44:00 +08:00
Shengjiu Wang 614ecd7e6c MLK-23653-2: arm64: dts: imx8mm-evk: enable sound card for bt-sco
enable sound card for bt-sco

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-23 17:43:57 +08:00
Shengjiu Wang 10f61ee0a5 MLk-23653-1: arm64: imx_v8_defconfig: Built-in BT-SCO
Built-in BT-SCO for BT headset profile

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-23 17:43:53 +08:00
Shengjiu Wang bb6511173a MLK-23651: ASoC: fsl_spdif: Fix hang issue in reboot
In reboot, system will try to access regisers through
the dai controls, but the clock is not bind with regmap,
then system hang.

So we enable regcache_cache_only in probe to fix this
issue.

Fixes: d55d453fdf ("MLK-23618-11: ASoC: fsl_spdif: Don't bind clock with regmap")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2020-03-23 17:43:48 +08:00
Bing Song c459da2814 MLK-23394 XUVI/PPM: fix coverity issues
Fixed coverity reported issues. Needn't check if point isn't be NULL.

Signed-off-by: Bing Song <bing.song@nxp.com>
Reviewed-by: Jian Li <jian.li@nxp.com>
Reviewed-by: Zhou Peng <eagle.zhou@nxp.com>
2020-03-23 15:59:37 +08:00
Han Xu d2093743f2 MLK-23649: spi: spi-fsl-qspi: fix the build warning
fix the build warning introduced by following commit.

commit 41bfdd516e
Author: Kuldeep Singh <kuldeep.singh@nxp.com>
Date:   Tue Jan 7 18:56:49 2020 +0530

    LF-18-3 spi: fsl-qspi: Allocate AHB memory dynamically for imx platforms

Signed-off-by: Han Xu <han.xu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2020-03-22 23:04:14 -05:00
Richard Liu 3d549870d9 MGS-5565 staging: android: ion: Flush cache after zero CMA allocated memory
ION CMA memory default is cacheable, need flush cache after memset(),
else cache and physical memory not sync may cause problem.

Issue case:
VPU Video playback or GPU render have dirty line issue.

Root cause:
ION CMA allocate cacheable buffer and do memset(), some data still in cache
not in physical memory, VPU or GPU write the buffer with physical address,
or user call ion_mmap() to map the buffer through pgprot_writecombine() as
no-cache and write the buffer, later some CPU cache access trigger cache
flush, previous memset() data go to physical memory as dirty data.

Change-Id: I82b4cb61bbe6cffc687d452f9f81c1e35914d2f1
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
Reviewed-by: Bing Song <bing.song@nxp.com>
2020-03-23 11:49:37 +00:00