1
0
Fork 0
Commit Graph

721241 Commits (bef231b948e40447a7a06d8ff856378446ed1b5b)

Author SHA1 Message Date
Peng Fan bef231b948 MLK-20384 soc: imx: drop xenvm soc data
Drop xenvm soc data, we have userspace tool stack generate correct model
compatile and this soc data will also trigger issue on i.MX8QXP.

So drop it.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit 9be6db046ac435f2caab7ab3561ea1a66144cdda)
2018-11-16 18:58:15 +08:00
Peng Fan cc98fe35bb MLK-20392 ARM64: dts: imx8qxp: fix dom0 boot
Rename fsl-imx8qxp-mek.dts to fsl-imx8qxp-mek.dtsi.
remove /dts-v1/ from dtsi.
Add memreserve for dom0 dts.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 491045dead2f3294cb5ca78a6e667af00495ae48)
2018-11-16 18:57:15 +08:00
ming_qian 3e04d2cfcc MLK-20334:VPU Encoder:implement crop and scaling
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-16 15:12:11 +08:00
Huang Chaofan 18580d12be MLK-20350 VPU: Reduce RPC size and remove decoder_str in dts
Reduce RPC size and remove decoder_str in dts for vpu decoder

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:54 +08:00
Huang Chaofan 60709c8ae9 MLK-20323: Enable 8 instaces for vpu decoder
1. #define VPU_MAX_NUM_STREAMS 8
   #define VID_API_NUM_STREAMS 8
2. #define MAX_BUFFER_SIZE 0xc00000

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:54 +08:00
Huang Chaofan 4b9a6c4601 MLK-20321 VPU: Adjust reset strategy for vpu decoder
Adjust reset strategy for vpu decoder

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:53 +08:00
Huang Chaofan c1e7697f08 MLK-20244 VPU: Config mem_printf base and size through structure DebugBufferDesc for vpu decoder
Config mem_printf base and size through structure DebugBufferDesc for
vpu decoder for debug on M0 core

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:53 +08:00
Laurentiu Palcu 228eebe7be MLK-20216-6: video/fbdev/mxc_dcic: fix return value
This fixes Coverity issue where an unsigned variable is tested for
less-than-zero value.

Make val a signed integer instead.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
CC: Sandor Yu <sandor.yu@nxp.com>
2018-11-15 15:21:51 +02:00
Laurentiu Palcu 2036a2a4ea MLK-20216-5: video/fbdev/mxc_dcic: remove needless comparison
This fixes less-then-zero comparison Coverity issue. roi_param->roi_n is
unsigned, hence the comparison is not needed.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
CC: Sandor Yu <sandor.yu@nxp.com>
2018-11-15 15:21:51 +02:00
Laurentiu Palcu 80f016350a MLK-20216-4: video/fbdev/imx_dcss: remove useless function call
This fixes Coverity issue since the function does nothing. The function
only returns some values which are never used.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
CC: Fancy Fang <chen.fang@nxp.com>
2018-11-15 15:21:51 +02:00
Laurentiu Palcu bcc3555f44 MLK-20216-3: video/fbdev/imx_dcss: remove unnecessary BUG_ONs
This fixes Coverity issue since num_pix_x and num_pix_y are unsigned and
the conditions are never true.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
CC: Fancy Fang <chen.fang@nxp.com>
2018-11-15 15:21:51 +02:00
Laurentiu Palcu 0c645d3601 MLK-20216-2: drm/imx/dcss: remove dead code
This fixes Coverity issue since enable is always true.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-11-15 15:21:51 +02:00
Laurentiu Palcu e03498dcdd MLK-20216-1: drm/imx/dcss: fix suspicious sign extension
This addresses Coverity issues related to "Suspicious sign extension"
when an u16 is promoted to int (32bit signed) and then to u64. If the
resulting int is greater than 0x7fffffff the upper bits of the u64 will
all be 1.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-11-15 15:21:51 +02:00
ming_qian 4aba3c0368 MLK-20303-3:VPU Encoder:sw reset after resume from devices mode suspend
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-15 18:40:01 +08:00
Flynn xu f210076aad MLK-20380: i2c: xenfront: fix i2cdetect bug
The bug is when using i2cdetect in DomU, some i2c device will be
skiped, fixed this through add I2C_FUNC_SMBUS_QUICK functionality.

Signed-off-by: Flynn xu <flynn.xu@nxp.com>
2018-11-15 16:30:24 +08:00
Shengjiu Wang 0827d5636a MLK-20357-2: ARM: dts: add audio routing for wm8960
add audio routing for wm8960 in dts.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-15 10:25:02 +08:00
Shengjiu Wang 5e76ecfef1 MLK-20357-1: ASoC: imx-rpmsg: add audio routing for wm8960
The rpmsg wm8960 codec driver is completed to support
full function, not only the volume control. which cause
an issue that there is no sound when recording, the reason
is that the MIC Bias not enabled, and it should be enabled
through audio routing.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-15 10:25:02 +08:00
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