summaryrefslogtreecommitdiff
path: root/include/uapi
AgeCommit message (Collapse)Author
2019-12-05SHE-17 soc: imx8: SECO MU driverStephane Dion
Driver to communicate with SECO over messaging unit. Expose a char device to user-space so user can write messages that will be sent to SECO and read messages received from it. Data that should be exchanged with SECO through shared memory are indicated to this driver through ioctl calls. Signed-off-by: Stephane Dion <stephane.dion_1@nxp.com> (cherry picked from commit eb721810fdc309b6a32a7a64c7686eaa6052cdc7) (cherry picked from commit db41bf52c2edf7c0936686d806eb4b2373b385a0)
2019-09-06tcp: tcp_fragment() should apply sane memory limitsEric Dumazet
commit f070ef2ac66716357066b683fb0baf55f8191a2e upstream. Jonathan Looney reported that a malicious peer can force a sender to fragment its retransmit queue into tiny skbs, inflating memory usage and/or overflow 32bit counters. TCP allows an application to queue up to sk_sndbuf bytes, so we need to give some allowance for non malicious splitting of retransmit queue. A new SNMP counter is added to monitor how many times TCP did not allow to split an skb if the allowance was exceeded. Note that this counter might increase in the case applications use SO_SNDBUF socket option to lower sk_sndbuf. CVE-2019-11478 : tcp_fragment, prevent fragmenting a packet when the socket is already using more than half the allowed space Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Jonathan Looney <jtl@netflix.com> Acked-by: Neal Cardwell <ncardwell@google.com> Acked-by: Yuchung Cheng <ycheng@google.com> Reviewed-by: Tyler Hicks <tyhicks@canonical.com> Cc: Bruce Curtis <brucec@netflix.com> Cc: Jonathan Lemon <jonathan.lemon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 9daf226ff92679d09aeca1b5c1240e3607153336)
2019-06-06MLK-21940-1: ASoC: fsl_asrc: Update mxc_asrc uapiShengjiu Wang
In order to support the new ASRC in i.MX815, we update the user api file mxc_asrc.h. The reason is that the new ASRC support more sample width, and support endianness, sign, float format, iec958 format setting, All these type can be expressed by snd_pcm_format_t type. So we use the in(out)put_format to instead the in(out)put_word_width. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2019-05-20MLK-21770: media: v4l: Add packed YUV444 24bpp pixel formatMirela Rabulea
The added format is V4L2_PIX_FMT_YUV24, this is a packed YUV 4:4:4 format, with 8 bits for each component, 24 bits per sample. Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com> Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com> Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
2019-03-14MA-12470 Fix get dma phys can't work on 32bit kernel.ivan.liu
Change unsigned long to __u64 to align 32bit and 64bit kernel. Change-Id: Id2e393812311c4556a31ff8ac83e4a4b5c8573f1 Signed-off-by: ivan.liu <xiaowen.liu@nxp.com>
2019-02-12drm: content-type property for HDMI connectorStanislav Lisovskiy
Added content_type property to drm_connector_state in order to properly handle external HDMI TV content-type setting. v2: * Moved helper function which attaches content type property to the drm core, as was suggested. Removed redundant connector state initialization. v3: * Removed caps in drm_content_type_enum_list. After some discussion it turned out that HDMI Spec 1.4 was wrongly assuming that IT Content(itc) bit doesn't affect Content type states, however itc bit needs to be manupulated as well. In order to not expose additional property for itc, for sake of simplicity it was decided to bind those together in same "content type" property. v4: * Added it_content checking in intel_digital_connector_atomic_check. Fixed documentation for new content type enum. v5: * Moved patch revision's description to commit messages. v6: * Minor naming fix for the content type enumeration string. v7: * Fix parameter name for documentation and parameter alignment in order not to get warning. Added Content Type description to new HDMI connector properties section. v8: * Thrown away unneeded numbers from HDMI content-type property description. Switch to strings desription instead of plain definitions. v9: * Moved away hdmi specific content-type enum from drm_connector_state. Content type property should probably not be bound to any specific connector interface in drm_connector_state. Same probably should be done to hdmi_picture_aspect_ration enum which is also contained in drm_connector_state. Added special helper function to get derive hdmi specific relevant infoframe fields. v10: * Added usage description to HDMI properties kernel doc. v11: * Created centralized function for filling HDMI AVI infoframe, based on correspondent DRM property value. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180515135928.31092-2-stanislav.lisovskiy@intel.com [vsyrjala: clean up checkpatch multiple blank lines warnings] Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2019-02-12drm: Add Content Protection propertySean Paul
This patch adds a new optional connector property to allow userspace to enable protection over the content it is displaying. This will typically be implemented by the driver using HDCP. The property is a tri-state with the following values: - OFF: Self explanatory, no content protection - DESIRED: Userspace requests that the driver enable protection - ENABLED: Once the driver has authenticated the link, it sets this value The driver is responsible for downgrading ENABLED to DESIRED if the link becomes unprotected. The driver should also maintain the desiredness of protection across hotplug/dpms/suspend. If this looks familiar, I posted [1] this 3 years ago. We have been using this in ChromeOS across exynos, mediatek, and rockchip over that time. Changes in v2: - Pimp kerneldoc for content_protection_property (Daniel) - Drop sysfs attribute Changes in v3: - None Changes in v4: - Changed kerneldoc to recommend userspace polling (Daniel) - Changed kerneldoc to briefly describe how to attach the property (Daniel) Changes in v5: - checkpatch whitespace noise - Change DRM_MODE_CONTENT_PROTECTION_OFF to DRM_MODE_CONTENT_PROTECTION_UNDESIRED Changes in v6: - None Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Sean Paul <seanpaul@chromium.org> [1] https://lists.freedesktop.org/archives/dri-devel/2014-December/073336.html Link: https://patchwork.freedesktop.org/patch/msgid/20180108195545.218615-4-seanpaul@chromium.org
2019-02-12MLK-20724: m2m: add RGBA to exend V4L2 standard format for android usageGuoniu.Zhou
Android has RGBA format output but V4L2 framework do not have this format .In order to support this in our mem2mem driver, we need to extend V4L2 format. Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2019-02-12MLK-18497-7: ASoC: fsl: xaf_afi: Introduce component APIDaniel Baluta
This is based on Xtensa Audio framework userspace implemention API. Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-02-12MLK-18497-6: ASoC: fsl: dsp: Add Xtensa library handling APIDaniel Baluta
This is based on RF-2016.4-linux package received from Cadence and introduce the API for loading shared libraries into memory. Based on this we create xf_load_lib/xf_load_unlib functions which are used to tell DSP framework that codec libraries are mapped in memory and it can start using them. Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-02-12MLK-18869 - [i.MX8MM/Hantro]: Integrate 20180710 releaseZhou Peng
Implement different sync method, replace previous signal with ioctl Related functions were added (cherry-pick from : adc4bc267e5c3a33ca802de83e2693638a7be8e8) Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2019-02-12MA-11994 Add get phys address ioctl to dma-buf.ivan.liu
Add structure dma_buf_phys to store physical address. Add DMA_BUF_IOCTL_PHYS to export physical address. Change-Id: Ib2f24b33462d603f2cbeef975689aaf82447d088 Signed-off-by: ivan.liu <xiaowen.liu@nxp.com>
2019-02-12MLK-18301-2 - [i.MX8MM/Hantro]: Enable hantro vpu on mscale 845S platformZhou Peng
Add hantro 845 h1 encoder driver source Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2019-02-12MLK-17747: dsp: use the name of dsp instead of hifiWeiguang Kong
In order to avoid the name problem going forward with integration with Qcom, Qcom has their own dsp and hifi is competitor, so the hifi name should not be used in our code. So use the name of dsp instead of hifi to fix this problem. Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
2019-02-12MLK-17635-1: ASoC: fsl_dsp: change dsp driver to support new dsp frameworkWeiguang Kong
The architecture of dsp framework has been changed, the role of dsp driver is transferring messages between dsp framework and user space application, so change dsp driver to support this function. Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
2019-02-12MLK-17703-2: drm: change HDR metadata infoframe structureLaurentiu Palcu
According to ANSI-CTA-861-G specification: * EOTF is 8 bit, not 16; * metadata type is 8 bit, not 16; * There's no "Minimum Content Light Level" This patch will change the HDR metadata structures to reflect that. Also, this will fix problems seen on some TVs that were rejecting HDR metadata because it's size was too big (more than 26 bytes). Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com> CC: Sandor Yu <sandor.yu@nxp.com>
2019-02-12MLK-17634-6: drm: imx: dcss: add P010 drm formatLaurentiu Palcu
This is 10-bit per channel YUV420 semi-planar. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2019-02-12drm: Add HDR source metadata propertyUma Shankar
This patch adds a blob property to get HDR metadata information from userspace. This will be send as part of AVI Infoframe to panel. Signed-off-by: Uma Shankar <uma.shankar@intel.com>
2019-02-12MLK-17473-1 drm/fourcc: add modifier for vivante compressed tiled layoutFancy Fang
Add a new fb modifier for Vivante compressed and tiled pixle layout which can be decompressed by DEC400D module in DCSS. Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12MLK-17368-1: drm: add fourcc codes for Verisilicon tiled formatsBing Song
These formats will be used by VPU and DCSS. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2019-02-12MLK-17311-3 drm,imx: Add struct drm_imx_dpu_frame_infoMeng Mingming
Add struct drm_imx_dpu_frame_info. Signed-off-by: Meng Mingming <mingming.meng@nxp.com>
2019-02-12MLK-17309-1: uapi: mxc_hifi4: provide new interface for user spaceWeiguang Kong
In order to avoid license problem of Cadence header files, these license files has been wrappered into a library and new interface has been abstracted to replace the interface of Cadence header files. So update the mxc_hifi4.h file to provide new interface for user space to use. Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
2019-02-12MLK-15110-1 drm/fourcc: Add Amphion tiled layout format modifierLiu Ying
Amphion VPU has a tiled layout using 8x128 pixel vertical strips, where each strip contains 1x16 groups of 8x8 pixels in a row-major layout. Signed-off-by: Song Bing <bing.song@nxp.com> Signed-off-by: Liu Ying <victor.liu@nxp.com>
2019-02-12tee: add TEE_IOCTL_PARAM_ATTR_METAJens Wiklander
Adds TEE_IOCTL_PARAM_ATTR_META with can be used to indicate meta parameters when communicating with user space. These meta parameters can be used by supplicant support multiple parallel requests at a time. Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Modified from: From: https://github.com/linaro-swg/linux.git Conflicts: drivers/tee/tee_core.c (cherry picked from commit 66d81fcf145fdc55322c0a11764c76a43d90ecad)
2019-02-12tee: new ioctl to a register tee_shm from a dmabuf file descriptorEtienne Carriere
This change allows userland to create a tee_shm object that refers to a dmabuf reference. Userland provides a dmabuf file descriptor as buffer reference. The created tee_shm object exported as a brand new dmabuf reference used to provide a clean fd to userland. Userland shall closed this new fd to release the tee_shm object resources. The initial dmabuf resources are tracked independently through original dmabuf file descriptor. Once the buffer is registered and until it is released, TEE driver keeps a refcount on the registered dmabuf structure. This change only support dmabuf references that relates to physically contiguous memory buffers. New tee_shm flag to identify tee_shm objects built from a registered dmabuf: TEE_SHM_EXT_DMA_BUF. Such tee_shm structures are flagged both TEE_SHM_DMA_BUF and TEE_SHM_EXT_DMA_BUF. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> From: https://github.com/linaro-swg/linux.git (cherry picked from commit 41e21e5c405530590dc2dd10b2a8dbe64589840f)
2019-02-12drm: Add four ioctls for managing drm mode object leases [v7]Keith Packard
drm_mode_create_lease Creates a lease for a list of drm mode objects, returning an fd for the new drm_master and a 64-bit identifier for the lessee drm_mode_list_lesees List the identifiers of the lessees for a master file drm_mode_get_lease List the leased objects for a master file drm_mode_revoke_lease Erase the set of objects managed by a lease. This should suffice to at least create and query leases. Changes for v2 as suggested by Daniel Vetter <daniel.vetter@ffwll.ch>: * query ioctls only query the master associated with the provided file. * 'mask_lease' value has been removed * change ioctl has been removed. Changes for v3 suggested in part by Dave Airlie <airlied@gmail.com> * Add revoke ioctl. Changes for v4 suggested by Dave Airlie <airlied@gmail.com> * Expand on the comment about the magic use of &drm_lease_idr_object * Pad lease ioctl structures to align on 64-bit boundaries Changes for v5 suggested by Dave Airlie <airlied@gmail.com> * Check for non-negative object_id in create_lease to avoid debug output from the kernel. Changes for v6 provided by Dave Airlie <airlied@gmail.com> * For non-universal planes add primary/cursor planes to lease If we aren't exposing universal planes to this userspace client, and it requests a lease on a crtc, we should implicitly export the primary and cursor planes for the crtc. If the lessee doesn't request universal planes, it will just see the crtc, but if it does request them it will then see the plane objects as well. This also moves the object look ups earlier as a side effect, so we'd exit the ioctl quicker for non-existant objects. * Restrict leases to crtc/connector/planes. This only allows leasing for objects we wish to allow. Changes for v7 provided by Dave Airlie <airlied@gmail.com> * Check pad args are 0 * Check create flags and object count are valid. * Check return from fd allocation * Refactor lease idr setup and add some simple validation * Use idr_mutex uniformly (Keith) Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit 62884cd386b876638720ef88374b31a84ca7ee5f)
2019-02-12MLK-16545-1: uapi: mxc_hifi4: add reset command for hifi4Weiguang Kong
add reset command declaration into mxc_hifi4.h file, this command is used to reset hifi4 codec when seeking Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2019-02-12MLK-16468-1: include: uapi: add multi-codec support for hifi4Weiguang Kong
update the mxc_hifi4.h header file to support multi-codec decoding or encoding together for hifi4 dsp. Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com> Reviewed-by: Mihai Serban <mihai.serban@nxp.com>
2019-02-12MLK-16374-3: PxP: improve stride parameter setting compatibleGuoniu.Zhou
In pxp lib, the unit of stride parameter is pixel and stride is not equal with width parameter of out buffer in some cases. In order to use latest pxp lib in old version rootfs, PXP_DEVICE_LEGACY macro is used to distinguish pxp drvier version. Because the new pxp driver define a new variable and pxp lib can know this through PXP_DEVICE_LEGACY, and determine if use it. Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com> Reviewed-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 91da74e81cfdd2774b39a7574edf93de3f2a3f25)
2019-02-12MLK-15321-3 drm/imx: dpu: Add render feature supportMeng Mingming
Implement Blt engine as DRM renderer. Add dpu ioctl to support imx-drm render feature. Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com> Signed-off-by: Marius Vlad <marius-cristian.vlad@nxp.com> Signed-off-by: Meng Mingming <mingming.meng@nxp.com>
2019-02-12MLK-16171: [i.MX8MQ/Hantro]: Refine coding style of hantro driverZhou Peng-B04994
Remove error reported by Linux coding style script Remove unnecessary macro: MULTI_CORE,CLK_CFG,VSI Remove unnecessary variables: base_port,elements,irq_x,mmp_timer_xxx Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
2019-02-12MLK-16129: ASoC: fsl_hifi4: refine the copyrightShengjiu Wang
As the fsl_hifi4.c uses the function from uboot/cmd/elf.c, so need to add the copyright of elf.c, and change licence to Dual BSD/GPL. And mxc_hifi4.h is used by user space, so change license to BSD. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com> Reviewed-by: Frank Li <frank.li@nxp.com>
2019-02-12MLK-15356-2:[i.MX8MQ/Hantro] Add support for android platformZhou Peng-B04994
Add compat ioctl for 32 bit application This is re-commit: only reserve hantro driver change remove mxc_ion change Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
2019-02-12MLK-15337: pxp-v3: add pxp v3 crop featureGuoniu.Zhou
Add pxp v3 crop feature support. Update the pxp_dma.h file. Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2019-02-12MLK-15934-3: ASoc: fsl: add hifi4 firmware's status transfer supportWeiguang Kong
1. add cases to receive error value from hifi4 firmware and return this error to hifi4 driver's caller. 2. add cases to receive input over indicator variable from hifi4 dirver's caller and pass this value to hifi4 firmware Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
2019-02-12MLK-15296-2: include: uapi: add consumed cyclesWeiguang Kong
add a new structure element(cycles) to save the consumed cycles that returned from dsp framework Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
2019-02-12MLK-15132-3: Enable Hantro decoder on i.MX8MQZhou Peng-B04994
Move hantrodec.h to uapi directory Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
2019-02-12MLK-15001-9 media: bus format: Add RGB101010_1X7X5_SPWG/JEIDA supportLiu Ying
This patch adds 30bit RGB101010 LVDS pixel formats support for the SPWG and JEIDA LVDS mapping standards. Each pixel is transferred on 5 lanes with 7bit respectively. Signed-off-by: Liu Ying <victor.liu@nxp.com>
2019-02-12MLK-15001-8 media: bus format: Add RGB666_1X30_PADLO supportLiu Ying
This patch adds 30bit RGB666 with low padding support. Signed-off-by: Liu Ying <victor.liu@nxp.com>
2019-02-12MLK-15001-7 media: bus format: Add RGB888_1X30_PADLO supportLiu Ying
This patch adds 30bit RGB888 with low padding support. Signed-off-by: Liu Ying <victor.liu@nxp.com>
2019-02-12MLK-14997-2: include: uapi: add hifi header fileShengjiu Wang
add hifi header file, which is used by user space. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
2019-02-12MLK-14844 pxp: Add RGB32 format to back-compatible.Guoniu.Zhou
The latest pxp_dma.h file change PXP_PIX_FMT_RGB32 to PXP_PIX_FMT_XRGB32 format, but the userspace still use PXP_PIX_FMT_RGB32, so add back it and keep the same with PXP_PIX_FMT_XRGB32 format. Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2019-02-12MLK-14771 dma: pxp-v3: add new added 2D features supportGuoniu.Zhou
The V3 version PXP has added below new 2D features: 1. Input fetch/store blocks to accept different formats input/output. 2. Add Rotation1 block to do rotation before alpha blending. 3. Add Composite1 block to accept source from input fetch. 4. AS and PS have increased supported pixel formats. Signed-off-by: Fancy Fang <chen.fang@nxp.com> Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com> (cherry picked from commit 4daef24b19890ca65135c48fc24018f64761444f)
2019-02-12MLK-14314-7 dma: pxp: add some new pixel formats definition.Fancy Fang
Add several new pixel formats definition which are supported by PXP V3 ip. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 5195602ac0225902bd416647fb9cd0636fa11e89)
2019-02-12MLK-14314-6 dma: pxp: change some RGB formats definitionFancy Fang
Some RGB formats fourcc definition are not precise according to its original meaning. So make some changes for them. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit b0b4ad680e267bdf542d2c9a3202c0192bde9cb0)
2019-02-12MLK-14314-5 dma: pxp-v3: divide whole pxp into four partsFancy Fang
According to the pxp high level architecture diagram, it is better to divide the whole big pxp module into four sub-modules: 1. 2D operation module(legacy pxp and input fetch & store). 2. Dithering module. 3. WFE_A module. 4. WFE_B module. This division will simplify driver implementations and management. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 5e57840b41adb195515bd652d9624feaadf3448e)
2019-02-12MLK-14314-3 pxp-v3: add 'need_yuv_swap' fieldFancy Fang
Add 'need_yuv_swap' field to 'pxp_proc_data' structure to record the yuv formats which needs byte swap. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 28ce43b27faad915e93f47b438d23f4ebfe020b5)
2019-02-12MLK-14314-1 dma: pxp: remove unused multiple overlay layers supportFancy Fang
The multiple overlay layers are not used on pxp v2 and v3 module, so remove this. Signed-off-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit c4fd8b36dbf9b53079d88d55ccfedde3a444ec29)
2019-02-12ASoC: fsl: refine the asrc driver for imx8qmViorel Suman
The clock source of ASRC in imx8qm is changed. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
2019-02-12MLK-13917 pxp: fix build error for pxp library in user spaceRobby Cai
Fix following build error by changing type to '__u64'. include/uapi/linux/pxp_dma.h:230:2: error: unknown type name 'u64' u64 lut_sels; ^~~ Signed-off-by: Robby Cai <robby.cai@nxp.com>