- Jul 20, 2022
-
-
Guoniu.zhou authored
Fix kernel cash issue when no ap1302.fw in rootfs Signed-off-by:
Guoniu.zhou <guoniu.zhou@nxp.com>
-
Jacky Bai authored
Return directly from 'schedule_delayed_work' is not correct in probe callback as its function type is 'bool', return true when success, but probe is 'int', need to return '0' for success. so refine the code to fix the probe failure issue. Signed-off-by:
Jacky Bai <ping.bai@nxp.com> Reviewed-by:
Ye Li <ye.li@nxp.com> Reviewed-by:
Peng Fan <peng.fan@nxp.com>
-
Haibo Chen authored
PMIC_nINT use the 11th pad of PCAL6524 IO expander, so correct it. Acked-by:
Jacky Bai <ping.bai@nxp.com> Signed-off-by:
Haibo Chen <haibo.chen@nxp.com>
-
Haibo Chen authored
[ Upstream commit 43624eda86c98b0de726d0b6f2516ccc3ef7313f ] For regcache_sync_region, need to use pca953x_recalc_addr() to get the real register address. Fixes: b7657430 ("gpio: pca953x: Restore registers after suspend/resume cycle") Signed-off-by:
Haibo Chen <haibo.chen@nxp.com> Signed-off-by:
Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by:
Sasha Levin <sashal@kernel.org>
-
Liu Ying authored
The bridge is added in __dw_mipi_dsi_probe(), so it should be removed in __dw_mipi_dsi_remove(). Otherwise, it will be left in the global bridge list and leaked to drivers which try to find the bridge. Fixes: c206c7fa ("drm/bridge: dw-mipi-dsi: Find the possible DSI devices") Cc: Sandor Yu <Sandor.yu@nxp.com> Reviewed-by:
Sandor Yu <Sandor.yu@nxp.com> Signed-off-by:
Liu Ying <victor.liu@nxp.com>
-
Guoniu.zhou authored
Add V4L2_PIX_FMT_NV12M new format support Signed-off-by:
Guoniu.zhou <guoniu.zhou@nxp.com> Reviewed-by:
Robby Cai <robby.cai@nxp.com>
-
- Jul 19, 2022
-
-
Peng Fan authored
set m33 startup to 500ms to make sure when start finish, m33 has done all the vring initialization Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Peng Fan authored
There is case that after remoteproc start remote processor[M4], the M4 runs slow and before M4 finish its own rpmsg framework initialization, linux sends out vring kick message, then M4 firmware drops the kick message. Some NXP released Cortex-M[x] images has such limitation that it requires linux sends out vring kick message after M4 firmware finish its rpmsg framework initialization. Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Peng Fan authored
During MU initialization, there maybe pending GSR and RSR pending interrupt, clear them to avoid unexpected kernel dump when requesting mailbox channel Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Peng Fan authored
Move cm33 to default dts to enable it by default Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Clark Wang authored
When do system suspend/resume, the runtime pm will be disabled after dpm_suspend_late() and before dpm_resume_early(). If still need some i2c transfers between these two phases, it will failed to request runtime wakeup. Then data transfer will failed. So enable runtime pm temporarily when try to do i2c transfer. Signed-off-by:
Clark Wang <xiaoning.wang@nxp.com> Reviewed-by:
Jun Li <jun.li@nxp.com>
-
Mirela Rabulea authored
Align with upstream version. Fixes: 997b139f ("media: imx-jpeg: Disable slot interrupt when frame done") Signed-off-by:
Mirela Rabulea <mirela.rabulea@oss.nxp.com>
-
Jian Zhang authored
In function mxc_jpeg_probe(), when devm_clk_get() fail, the return value will be unexpected, and it should be the devm_clk_get's error code. Fixes: 4c2e5156 ("media: imx-jpeg: Add pm-runtime support for imx-jpeg") Reported-by:
Hulk Robot <hulkci@huawei.com> Signed-off-by:
Jian Zhang <zhangjian210@huawei.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Ming Qian authored
v4l2 m2m has supplied some helper function to handle drain, so the driver can use the helper function directly. Fixes: d8ebe298 ("media: imx-jpeg: Set V4L2_BUF_FLAG_LAST at eos") Signed-off-by:
Ming Qian <ming.qian@nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Ming Qian authored
The hardware can support any image size WxH, with arbitrary W (image width) and H (image height) dimensions. Align upwards buffer size for both encoder and decoder. and leave the picture resolution unchanged. For decoder, the risk of memory out of bounds can be avoided. For both encoder and decoder, the driver will lift the limitation of resolution alignment. For example, the decoder can support jpeg whose resolution is 227x149 the encoder can support nv12 1080P, won't change it to 1920x1072. Fixes: 2db16c6e ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder") Signed-off-by:
Ming Qian <ming.qian@nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Mirela Rabulea authored
Fix smatch warning in mxc_jpeg_queue_setup, check *nplanes against current format: drivers/media/platform/imx-jpeg/mxc-jpeg.c:1070 mxc_jpeg_queue_setup() warn: potential user controlled iterator 'i' (array size 2 vs 7) Signed-off-by:
Mirela Rabulea <mirela.rabulea@oss.nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Ming Qian authored
The interrupt STMBUF_HALF may be triggered after frame done. It may led to system hang if driver try to access the register after power off. Disable the slot interrupt when frame done. Fixes: 2db16c6e ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder") Signed-off-by:
Ming Qian <ming.qian@nxp.com> Reviewed-by:
Mirela Rabulea <mirela.rabulea@nxp.com>
-
Ming Qian authored
the register CAST_NOMFRSIZE_LO should be equal to CAST_STATUS16 the register CAST_NOMFRSIZE_HI should be equal to CAST_STATUS17 the register CAST_OFBSIZE_LO should be equal to CAST_STATUS18 the register CAST_OFBSIZE_HI should be equal to CAST_STATUS19 Fixes: 2db16c6e ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder") Signed-off-by:
Ming Qian <ming.qian@nxp.com> Reviewed-by:
Mirela Rabulea <mirela.rabulea@nxp.com>
-
Ming Qian authored
The core will fill this in v4l_fill_fmtdesc(), ensuring consistent format description names. Signed-off-by:
Ming Qian <ming.qian@nxp.com>
-
Mirela Rabulea authored
Align with linux-nxp and upstream repos. Use "git log --folow" to see full history, but be aware --follow works only for a single file. Signed-off-by:
Mirela Rabulea <mirela.rabulea@oss.nxp.com> Reviewed-by:
Ming Qian <ming.qian@nxp.com>
-
Ming Qian authored
fix some typo of memory address Signed-off-by:
Ming Qian <ming.qian@nxp.com>
-
- Jul 18, 2022
-
-
Liu Ying authored
div_u64() should be used to divide u64 by u32, otherwise, the below build error may happen. ERROR: modpost: "__aeabi_uldivmod" [drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.ko] undefined! This fixes the below patch: LF-6253 drm/bridge: synopsys: dw-mipi-dsi: Use better lbcc calculation Reported-by:
Jun Zhu <junzhu@nxp.com> Cc: Sandor Yu <Sandor.yu@nxp.com> Reviewed-by:
Sandor Yu <Sandor.yu@nxp.com> Signed-off-by:
Liu Ying <victor.liu@nxp.com>
-
Clark Wang authored
Add NACK check after start byte is sent. It is possible to detect early that a device is not on the bus and avoid invalid transmissions thereafter. Signed-off-by:
Clark Wang <xiaoning.wang@nxp.com> Reviewed-by:
Haibo Chen <haibo.chen@nxp.com>
-
Clark Wang authored
pm_runtime_resume_and_get() may call sleep(). It cannot be used in svc_i3c_master_start_xfer_locked(), because it is in a spin lock. Move the pm runtime operations to svc_i3c_master_enqueue_xfer(). Fixes: a58872ed ("LF-4166-6 i3c: master: svc: add runtime pm support") Signed-off-by:
Clark Wang <xiaoning.wang@nxp.com> Reviewed-by:
Haibo Chen <haibo.chen@nxp.com>
-
TaoJiang authored
1.move fps setting to output queue Signed-off-by:
TaoJiang <tao.jiang_2@nxp.com>
-
TaoJiang authored
1.add invoke timeout Signed-off-by:
TaoJiang <tao.jiang_2@nxp.com>
-
- Jul 15, 2022
-
-
Sherry Sun authored
Add a new dts file for uart test on imx93-11x11-evk board. We multiplex the lpuart5 and lpuart6 test ports from the GPIO pins of J1001 interface on imx93-11x11-evk board. Signed-off-by:
Sherry Sun <sherry.sun@nxp.com> Reviewed-by:
Li Jun <jun.li@nxp.com>
-
Ming Qian authored
dts add amphion vpu entry. Signed-off-by:
Ming Qian <ming.qian@nxp.com>
-
- Jul 14, 2022
-
-
Chancel Liu authored
The codec is changed to wm8962. Reviewed-by:
Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by:
Chancel Liu <chancel.liu@nxp.com>
-
- Jul 13, 2022
-
-
Ming Qian authored
1. prevent to allocate buffer to firmware during abort 2. release buffer when clear the slots Fixes: 6de8d628 ("media: amphion: add v4l2 m2m vpu decoder stateful driver") Signed-off-by:
Ming Qian <ming.qian@nxp.com>
-
Ming Qian authored
Don't set last_buffer_dequeued during dynamic resolution change, otherwise it may be cleared in handling resolution change, as streamoff may be called in dynamic resolution change. Normally, this does not happen. But we encounter a special testcase, User issue V4L2_DEC_CMD_STOP after enqueue one buffer that only contains codec config header, but not any frame data. So VPU report the parsed resolution, then report the eos event. So driver should notify user to handle resolution change first, after it's handled, set the last_buffer_dequeued. then the user can exit decoding normally. Otherwise the user may be stalled. Fixes: 6de8d628 ("media: amphion: add v4l2 m2m vpu decoder stateful driver") Signed-off-by:
Ming Qian <ming.qian@nxp.com>
-
Ming Qian authored
For format V4L2_PIX_FMT_VC1_ANNEX_L, the amphion vpu requires driver to help insert some custom startcode before sequence and frame. but only the first sequence startcode is needed, the extra startcode will cause decoding error. So after seek, we don't need to insert the sequence startcode. In other words, for V4L2_PIX_FMT_VC1_ANNEX_L, the vpu doesn't support dynamic resolution change. Fixes: 145e9363 ("media: amphion: implement malone decoder rpc interface") Signed-off-by:
Ming Qian <ming.qian@nxp.com>
-
Ming Qian authored
In reset vpu core, driver will wait for a response event, but if there are still some events unhandled, they will be handled first, driver may acquire core lock for that. So if we do reset in core lock, it may led to reset timeout. Fixes: 9f599f35 ("media: amphion: add vpu core driver") Signed-off-by:
Ming Qian <ming.qian@nxp.com>
-
Ming Qian authored
Firmware may send the error event with some error message, and it help locate the firmware error, so output the error message if it exists Fixes: 61cbf1c1 ("media: amphion: implement vpu core communication based on mailbox") Signed-off-by:
Ming Qian <ming.qian@nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Ziyang Xuan authored
vfree(NULL) is safe. NULL check before vfree() is not needed. Delete them to simplify the code. Generated by coccinelle script: scripts/coccinelle/free/ifnullfree.cocci Signed-off-by:
Ziyang Xuan <william.xuanziyang@huawei.com> Reviewed-by:
ming_qian <ming.qian@nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Kees Cook authored
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2][3]. [1] https://en.wikipedia.org/wiki/Flexible_array_member [2] https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays [3] https://github.com/KSPP/linux/issues/78 Fixes: 9f599f35 ("media: amphion: add vpu core driver") Cc: Ming Qian <ming.qian@nxp.com> Cc: Shijie Qin <shijie.qin@nxp.com> Cc: Zhou Peng <eagle.zhou@nxp.com> Signed-off-by:
Kees Cook <keescook@chromium.org> Reviewed-by:
Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by:
ming_qian <ming.qian@nxp.com> Reviewed-by:
Tommaso Merciai <tommaso.merciai@amarulasolutions.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Ming Qian authored
return error if format is unsupported by vpu, otherwise the vpu will be stalled at decoding Fixes: 3cd08451 ("media: amphion: add vpu v4l2 m2m support") Signed-off-by:
Ming Qian <ming.qian@nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Ming Qian authored
vdec check the pixel format is supported by vpu, or is it disabled. And don't report it if the result is false Signed-off-by:
Ming Qian <ming.qian@nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Ming Qian authored
As there is no interface to power off vpu core. So it need to boot from cold on first load. but on the second load, driver need to restore the status instead of booting. Signed-off-by:
Ming Qian <ming.qian@nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-
Ming Qian authored
G/S_PARM doesn't make sense for the capture queue of a stateful encoder, unless V4L2_FMT_FLAG_ENC_CAP_FRAME_INTERVAL is set to reserve hardware resources. Otherwise it will fail the v4l2-compliance Signed-off-by:
Ming Qian <ming.qian@nxp.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org>
-