1
0
Fork 0
Commit Graph

721224 Commits (a5b3a6a114da7f79bbf61d7d57c080792fda177b)

Author SHA1 Message Date
Cedric Neveux a5b3a6a114 MLK-20052 L2 Cache TEE/Linux shared mutex
Modification of the L2 Cache operations to use
   a TEE/Linux Shared mutex

Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com>
2018-11-14 16:56:02 +01:00
Cosmin-Gabriel Samoila 0a1ce9e471 MLKU-24-7 sound:asoc: fix checkpatch paranthesis error
Remove paranthesis that are not needed.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-14 15:46:02 +02:00
Cosmin-Gabriel Samoila 9adc4e0542 MLKU-24-6 sound:asoc: remove comented code
Remove unused commented code.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-14 15:46:01 +02:00
Cosmin-Gabriel Samoila 83b78ca8c5 MLKU-24-5 sound:asoc: remove multiple empty rows
Fix checkpatch error by removin extra empty rows.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-14 15:46:01 +02:00
Cosmin-Gabriel Samoila 24853d2c40 MLKU-24-4 sound:asoc: fix checkpatch braces error
Braces {} are not necessary for single statement blocks.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-14 15:46:00 +02:00
Cosmin-Gabriel Samoila ecd01c473d MLKU-24-3 sound:asoc: fix missing space after if checkpatch errors
In order to upstream the micfil driver, we need to fix
missing space after if errors and warnings reported
by checkpatch.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-14 15:46:00 +02:00
Cosmin-Gabriel Samoila 91813ee2b4 MLKU-24-2 sound:asoc: fix line over 80 char errors
In order to upstream the micfil driver, we need to fix
line over 80 characters errors and warnings reported
by checkpatch.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-14 15:45:59 +02:00
Cosmin-Gabriel Samoila ecad04fcce MLKU-24-1 sound:asoc: fix alignment and code indent errors
In order to upstream the micfil driver, we need to fix allignment
and code indent errors and warnings reported by checkpatch.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-14 15:45:49 +02:00
Daniel Baluta de2f62c6a5 MLK-20189-10: ASoC: fsl: dsp: Avoid unnecessary check
strtab is always non-null so remove unnecessary check.

This is a follow up of patch
167a6d79f ("ASoC: fsl: Skip checking for string section type")
and finally fixes CID3901026

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-14 09:47:51 +02:00
Yong Gan 1bbc273bd5 MGS-4381 [#ccc] Refined the licence for the file viv-metadata.h
Change the licence to GPL.

Signed-off-by: Yong Gan <yong.gan@nxp.com>
2018-11-15 22:55:30 +08:00
Oliver Brown 81c7646749 MLK-20332 drm: imx hdp: Display version information for HDMI/DP firmware
The HDMI/DP firmware verison will now be displayed.
Moved firmware handling to common file for HDMI and DisplayPort.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2018-11-13 08:56:23 -06:00
Laurentiu Palcu 34e6d1babc MLK-20117 drm/imx/dcss: fix color issue when Adobe_ARGB gamut is used
Adobe ARGB gamut was selected even if the output pipe pixel encoding was
YUV. That produced a pink tint on the screen.

This patch will make sure the Adobe ARGB gamut is selected only when the
output pipe pixel encoding is RGB.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-11-13 16:11:35 +02:00
Laurentiu Palcu 08ac01ad71 MLK-20304-2 imx/drm/dcss: get the hdmi controller CS from private_flags
DCSS HDR10 output pipe is always 10-bit. All we need to know to better
setup the LUTs and/or CSC matrices is the output colorspace.

This patch will fetch the CS from adjusted_mode's private_flags, as
indicated in the connector's mode_fixup phase.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-11-13 16:11:35 +02:00
Laurentiu Palcu 31d0619322 MLK-20304-1 drm/imx/hdp: add mode_fixup hook and better handling of DC and CS
The HDMI sink may support different color depths for RGB and/or YUV
colorspaces. Currently, for mscale, 10-bit YUV420 is used only for
2160p@60. For the rest of modes 8-bit RGB is used.

This patch will add a mode_fixup() hook in the hdp_ops struct, allowing
each platform to perform a better handling of the various color depths
and colorspaces.

With the current patch, the RGB output will always be preferred to YUV
colorspaces, given the same color depth, since YUV colorspaces perform
UV subsampling, producing less quality. Also, whenever possible, better
color depth will be preferred (12-bit, 10-bit and, lastly, 8-bit).

The chosen colorspace and color depth will always be based on EDID's
Capability Map Data Block and YUV420 Video Data Block, as well as on
HDMI controller's known clock constraints.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-11-13 16:11:35 +02:00
Colin Ian King 1e58af346c ASoC: sgtl5000: avoid division by zero if lo_vag is zero
In the case where lo_vag <= SGTL5000_LINE_OUT_GND_BASE, lo_vag
is set to zero and later vol_quot is computed by dividing by
lo_vag causing a division by zero error.  Fix this by avoiding
a zero division and set vol_quot to zero in this specific case
so that the lowest setting for i is correctly set.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-11-13 15:09:09 +02:00
Viorel Suman 302259f814 MLK-20189-9: ASoC: fsl: amix: remove dead code
Remove the dead code.

This fixes Coverity issue: CID1529915

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2018-11-13 15:09:09 +02:00
Viorel Suman 7b73200fa6 MLK-20189-8: ASoC: fsl_sai: use signed offset variable
Both dataline_off and dataline_off_dsd fields are unsigned,
thus checking negative values make no sense. Use a signed
variable to calculate offset instead.

This fixes Coverity issue: CID1899299

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2018-11-13 15:09:09 +02:00
Viorel Suman 9386717093 MLK-20189-7: ASoC: ak4458: check reset control status
Save error so that the following error checking now make sense.

This fixes Coverity issue: CID2828734

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2018-11-13 15:09:09 +02:00
Cosmin-Gabriel Samoila ad0ab32c08 MLK-20308 sound:asoc: fix re-enablement bug
When hwvad is enabled, if you try to re-enable it again, it should fail.
However, we were also double setting state to OFF on fail, which is
wrong because it resets the state and allows the second retry to enable
even if it wasn't disabled before.
Now we only return EBUSY.

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
2018-11-13 14:34:36 +02:00
Cosmin-Gabriel Samoila 8c94563a3f MLK-20189 sound: asoc: fix unsigned compared against 0
An unsigned value can never be negative, so this test will always
evaluate the same way.

Fixes Coverity issue CID3618200

Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
2018-11-13 14:26:42 +02:00
Cosmin-Gabriel Samoila c262dde8ac MLK-20189 sound: asoc: fix dereference before null check
There may be a null pointer dereference, or else the comparison against
null is unnecessary.

Fixes Coverity issue CID5327850

Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
2018-11-13 13:55:36 +02:00
ming_qian 51824db235 MLK-20345:VPU Encoder:statistics on dma memory usage
1.statistics on dma memory usage
2.fix alloc_dma_buffer error return value
3.remove unused member encoder_mem

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-13 18:51:23 +08:00
Richard Liu 0a64d9dccb MA-12928-2 [#imx-1199] Use gcdANDROID MARCO to control android build
Should use the correct build MARCO gcdANDROID to control android build.

Change-Id: I56a745b228a24ba502dc9771596aad78c1d8d808
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
2018-11-14 02:59:40 +08:00
Xianzhong 4a3186ac3a MGS-4376 [#imx-1238] fix low performance with CMA allocator
there are lots of PFNs busy message when run GPU tests:
 [  622.370671] alloc_contig_range: [4ea70, 4ea7c) PFNs busy
 [  626.518072] alloc_contig_range: [4ea90, 4ea9c) PFNs busy

this problem is related with CMA migration for fragments,

move CMA allocator after GFP to avoid memory migration,
also fix CMA preempt for contiguous memory request.

can improve CTS and gpubench benchmarks on M850D.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2018-11-14 02:58:04 +08:00
Peng Fan d7aab679ca MLK-20349 i2c: xen front: fix build warning
Fixes build warning introduced by
90e818a0abcc("MLK-20342 i2c: xen-i2cback/front: Add i2c_smbus interface")

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-11-13 18:19:01 +08:00
Peng Fan 09586d25af MLK-20347 ARM64: imx8qm: not assign HDMI for domu
HDMI power domain is under DC0, however DC0 is used by the first OS,
so domu has no permission to use HDMI.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-13 18:13:45 +08:00
Flynn xu 90e818a0ab MLK-20342 i2c: xen-i2cback/front: Add i2c_smbus interface
Add smbus_xfer interface in xen-i2cback/front driver.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Flynn xu <flynn.xu@nxp.com>
2018-11-13 17:46:50 +08:00
Ivan.liu 7c114c457a MA-13203-2 [#imx-1237] Fix kernel panic when do video plaback with dual display on 8mq.
BUG: scheduling while atomic: swapper/0/0/0x00010002
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.62 #1
Call trace:
[<ffff00000808b2e0>] dump_backtrace+0x0/0x414
[<ffff00000808b708>] show_stack+0x14/0x1c
[<ffff000008fbd00c>] dump_stack+0x90/0xb0
[<ffff00000810b8fc>] __schedule_bug+0x50/0x6c
[<ffff000008fd3b18>] __schedule+0x720/0x8a8
[<ffff000008fd3cd8>] schedule+0x38/0x9c
[<ffff000008fd40f0>] schedule_preempt_disabled+0x20/0x38
[<ffff000008fd51d8>] __mutex_lock.isra.9+0x4dc/0x4fc
[<ffff000008fd5208>] __mutex_lock_slowpath+0x10/0x18
[<ffff000008fd5240>] mutex_lock+0x30/0x38
[<ffff000008b79960>] gckOS_DestroySignal+0x30/0xcc
[<ffff000008baa3b8>] viv_fence_release+0x24/0x38
[<ffff0000087babcc>] dma_fence_release+0x38/0xf4
[<ffff0000087bb55c>] dma_fence_array_release+0x78/0xac
[<ffff0000087babcc>] dma_fence_release+0x38/0xf4
[<ffff0000087bb748>] irq_dma_fence_array_work+0x40/0x4c
[<ffff0000081d2878>] irq_work_run_list+0x68/0xa8
[<ffff0000081d28dc>] irq_work_run+0x24/0x40
[<ffff000008092440>] handle_IPI+0x300/0x330
[<ffff00000808197c>] gic_handle_irq+0x8c/0x184

Replace signal mutex lock with spin lock to handle signal in irq.

Change-Id: Id18e68f03bcb96c2aaf3ca8a0055fe6a64e8d10a
Signed-off-by: Ivan.liu <xiaowen.liu@nxp.com>
2018-11-14 00:59:05 +08:00
ming_qian dd0a75e998 VPU Encoder:fix fail to resume from pause
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-13 13:56:27 +08:00
Guoniu.Zhou 181d90507a MLK-20335: ov5640: add QVGA resolution support for mipi ov5640
Add QVGA resolution support for mipi ov5640

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-11-13 11:01:14 +08:00
Guoniu.Zhou 4aee62ccc3 MLK-20325: ISI: fix reference count error when camera is not connected
If camera is not connected and user try to use mem2mem function,
driver will return error but isi channel0 reference counter is
still increased by one. This will lead to mem2mem driver return
EBUSY error when user open mem2mem device, so correct this bug
in this patch.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-11-13 10:07:48 +08:00
Guoniu.Zhou c9357f5816 MLK-20326-4: ISI: enable alpha insertion for mem2mem
Enable global alpha insertion for memory to memory function
of ISI

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-11-13 10:07:48 +08:00
Guoniu.Zhou 81aabc880c MLK-20326-3: ISI: enable alpha insertion feature for camera
Enable global alpha insertion feature for camera

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-11-13 10:07:48 +08:00
Guoniu.Zhou 316bcec7f9 MLK-20326-2: ISI: enable horizonal and vertical flip for mem2mem
Eanble horizonal and vertical flip for memory to memory function
of ISI

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-11-13 10:07:48 +08:00
Guoniu.Zhou 9e33846dd4 MLK-20326-1: ISI: enable horizonal and vertical flip for camera
Enable horizonal and vertical flip for camera image

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-11-13 10:07:48 +08:00
Guoniu.Zhou 03c8d9b87d MLK-19291: ISI: correct color mapping between V4L2 and ISI
Correct color mapping between V4L2 and ISI

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2018-11-13 10:07:48 +08:00
Liu Ying 3ec344d6fa MLK-20324 gpu: imx: dpu: tcon: Initialize tmp_m in tcon_cfg_videomode()
The video mode tmp_m, as a local variable in tcon_cfg_videomode(),
is uninitialized and used to store a copy instance from the real
video mode.  tcon_cfg_videomode() would change the timing of it if
side_by_side mode is enabled.  Theoretically, there should be no
problem even if we don't initialize tmp_m.  However, coverity
reports that tmp_m is an uninitialized scalar variable when the copy
is being done(CID 5233067: Uninitialized scalar variable (UNINIT)).
This patch fixes the issue reported by coverity.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-12 17:42:35 +08:00
Liu Ying 95bc1eb150 MLK-20318 gpu: imx: dpu: scaler: Avoid out-of-bounds array read on src_sels[i][j]
The logic in function h/vscaler_pixengcfg_dynamic_src_sel() to avoid
overrunning array src_sel[i][j] is wrong.  The correct one is to check
on the index i which should be less than the array size of h/vs_id_array[].
This patch fixes the potential array overrunning issue, that is,
out-of-bounds array read issue.  The issue is reported by coverity -
CID 1477349 and CID 1477345.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-12 17:42:35 +08:00
Xianzhong 6d8398135f MGS-4376: gpu: dts: increase reserved size to 256M for imx8
alloc_contig_range easily return -EBUSY when try to isolate pages,
there are lots of messages with PFNs busy when run GPU tests.
[  622.370671] alloc_contig_range: [4ea70, 4ea7c) PFNs busy
[  626.518072] alloc_contig_range: [4ea90, 4ea9c) PFNs busy

these problems are related wht CMA migration for fragments,
need enlarge GPU reserved size to reduce CMA fragments.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2018-11-13 01:51:43 +08:00
ming_qian 8b88898f4d MLK-20303:VPU Encoder:re download firmware after resume in some case
if suspend before configure codec,
the firmware should be re downloaded after resume

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 17:07:36 +08:00
Flynn xu 8063964e4f MLK-20319 i2c:xen-i2cfront: fix uninitalized variable
Fix uninitalized variable

Signed-off-by: Flynn xu <flynn.xu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-11-12 14:26:43 +08:00
Liu Ying d95b6b9740 MLK-20316 gpu: imx: dpu: Avoid out-of-bound array access in dpu_{unit}_init()
The callers of dpu_{unit}_init() might provide an invalid id as
the parameter, it may cause overrunning dpu->{unit}_priv[] and
cf_shdlreqs[] arrays and out-of-bound array access.  Although
the current only caller is dpu_submodules_init() and it always
provides valid ids, it would be good to fix the potential issue.
This patch fixes several issues reported by coverity - CID 1477330,
CID 1477335, CID 1477348, CID 1477346, CID 3298619, CID 1477347,
CID 5233021 and CID 1477321.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-12 10:48:39 +08:00
Liu Ying 92899d70e5 MLK-20307 gpu: imx: dpu: extdst: Fix get_xval()
The function get_xval() returns the C_XVAL and L_XVAL fields of
the CURPIXELCNT and LASTPIXELCNT registers.  They are 16bit and
sit in the low 16bit of the registers.  This patch fixes the way
we mask the register and read the fields out.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-12 09:55:19 +08:00
ming_qian 846e41c2e7 MLK-20275:VPU Encoder:set proper rpc size
boot-region: 2M per core
rpc-buf-size: 512K per core
print-buf-size: 512K per core

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:34:40 +08:00
ming_qian 47e078c3eb MLK-20303:VPU Encoder:avoid configure codec after snapshot
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:22:44 +08:00
ming_qian e9c1de03a4 MLK-20291:VPU Encoder:drop frame whose size is 0
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:22:36 +08:00
ming_qian d89e81d6e0 MLK-20271:VPU Encoder:reduce the event msg data copy
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:22:17 +08:00
ming_qian 6962ec6cc5 MLK-20174-2:VPU Encoder:remove PRINT_BUF_OFFSET
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:21:49 +08:00
ming_qian b4105a4a93 MLK-20232:VPU Encoder:firmware report the max stream number
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:21:31 +08:00
Daniel Baluta 167a6d79f4 MLK-20189-6: ASoC: fsl: Skip checking for string section type
e_shstrndx already contains the section header index, so
shdr->sh_type will always be SHT_STRTAB.

Remove this redundant check and make Coverity happy.

Fixes: CID3901026
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 13:08:30 +02:00