Commit graph

592356 commits

Author SHA1 Message Date
Amir Levy
7329683194 msm: ipa3: fix compatibility with ipa user space
Add several defines and structs to allow IPA user space compile.

Change-Id: Icd6fe721bd0572b6c8f0c57dd65da3e7a6e69596
Acked-by: Dmitry Kogan <dmitryk@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2017-07-16 18:14:54 +03:00
Linux Build Service Account
9fa4a186c0 Merge "drm/msm: add YUV format support for HDMI" 2017-07-15 13:40:03 -07:00
Linux Build Service Account
a019f26af8 Merge "drm/msm: add RGB 30-bit deep color support for HDMI" 2017-07-15 13:40:02 -07:00
Utkarsh Saxena
db4e6d3de8 msm:ipa: using rate limit api for ioctl calls
ipav2/ipav3 ioctl calls input arguments validation failed cases,
replacing IPAERR() with IPAERR_RL() marco for controlling logs
printing on the console.

Change-Id: I0d1aabb9b500228e5fd5d94cf17657bf29bdf175
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-07-15 22:13:49 +05:30
Aravind Venkateswaran
a89db690ae msm: mdss: dp: do not program audio registers when DP core is off
It is possible that the DP core may already be shutdown when a
callback from the audio subsystem is invoked. In such cases, ensure
that the callbacks return gracefully without trying to do any
hardware programming.

CRs-Fixed: 2072592
Change-Id: Ib112c0791852e1c835c739167683f160723b3baa
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2017-07-14 23:13:24 -07:00
Aravind Venkateswaran
8832c1bced msm: mdss: hdcp2p2: fix check for sink support for HDCP 2.x
Current implementation only checks if the sink is HDCP capable.
In addition, it is required that the source also checks for the
HDCP version supported by the sink prior to initiating HDCP 2.x
authentication sequence.

CRs-Fixed: 2062951
Change-Id: I24901202a0abc2ff4336ab9c6c2fd708a53559f2
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2017-07-14 21:46:34 -07:00
Abhinav Kumar
3864a8ac3c drm/msm: fix Y420CMDB EDID block parsing
Fix the Y420CMDB EDID block parsing to handle
the case where the block does not include a capability
bitmap.

This case means that all the short video descriptors
support the YUV 420 mode as well.

Also fix the incorrect length check in the parser API.
The capability bitmap has no minimum length field.

Change-Id: I5d9c2d3ac11d5ddad8e36cb7acfebfb41175f4b7
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-07-14 20:21:20 -07:00
Linux Build Service Account
a09e027f86 Merge "ASoc: msm: Support TDM dai clk attribute and freq configuration" 2017-07-14 17:59:57 -07:00
Linux Build Service Account
e673df7b72 Merge "ASoc: msm: Support PRI_TDM_TX routing to QUAT_TDM_RX port mixer." 2017-07-14 17:59:56 -07:00
Linux Build Service Account
f99b15bc11 Merge "msm: mdss: do not resynchronize DSI FIFO if during device boot up" 2017-07-14 17:59:55 -07:00
Linux Build Service Account
5d33d4985a Merge "msm: sde: Set minimum traffic shaping in sde rotator" 2017-07-14 17:59:54 -07:00
Linux Build Service Account
d70bfa127b Merge "msm: mdss: Avoid direct dereference user input in pp cache config" 2017-07-14 17:59:53 -07:00
Linux Build Service Account
c25fd79e76 Merge "msm: sensor: Fix for variable being de-referenced without proper check" 2017-07-14 17:59:52 -07:00
Linux Build Service Account
6c18a826c7 Merge "serial: msm_serial_hs: Optimize the total tty port support" 2017-07-14 17:59:51 -07:00
Linux Build Service Account
b4bb5c107d Merge "diag: Protect mask updates for memory device session" 2017-07-14 17:59:50 -07:00
Sravan Kumar D.V.N
bb760cae59 msm: mdss: Fix possible leaks in PP LUT get functions
Possible user information leaks in post processing LUT get
functions are fixed by properly copying user data.

Change-Id: I529f74a79e5857902177c8054d136b4544370be2
Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
2017-07-14 07:55:48 -07:00
Linux Build Service Account
4bf2e9f455 Merge "msm:ipa: Fix to incorrect structure access" 2017-07-14 04:01:33 -07:00
Linux Build Service Account
ed591f0f78 Merge "ASoC: msm8998: Add MM front end DAI links for interactive streams" 2017-07-14 04:01:30 -07:00
Linux Build Service Account
09e0532f9d Merge "ASoC: msm: Support mixer controls for Pan/scale & downmix" 2017-07-14 04:01:29 -07:00
Linux Build Service Account
b90525b5f0 Merge "ASoC: q6dspv2: Support for pan-scale and downmix set param" 2017-07-14 04:01:29 -07:00
Linux Build Service Account
eaea16f0b2 Merge "fbdev: msm: Add check for fence count" 2017-07-14 04:01:28 -07:00
Linux Build Service Account
a189faf365 Merge "msm: mdss: apply bus throughput factor for high downscale cases" 2017-07-14 04:01:27 -07:00
Linux Build Service Account
de4967ee70 Merge "ARM: dts: msm: rename mdss_mdp to sde_kms for msm8996" 2017-07-14 04:01:26 -07:00
Linux Build Service Account
20f79f9e8f Merge "msm_11ad: Compile as module instead of built-in" 2017-07-14 04:01:22 -07:00
Linux Build Service Account
bcad6b5748 Merge "msm-core: Align the trace log temp in same scale factor" 2017-07-14 04:01:21 -07:00
Linux Build Service Account
2f3a5aede8 Merge "usb: pd: Add delay before sending Source Capabilities" 2017-07-14 04:01:20 -07:00
Linux Build Service Account
52da1d7a4f Merge "ARM: dts: msm: Enable pmic gpio13 so neutrino driver can toggle it in probe" 2017-07-14 04:01:17 -07:00
Linux Build Service Account
b971eaa3a0 Merge "net: ipv6: reset daddr and dport in socket if connect() fails" 2017-07-14 04:01:14 -07:00
Linux Build Service Account
bd63fad4d1 Merge "ARM: dts: msm: Use wlan carveout region for sdm660/sdm630" 2017-07-14 04:01:11 -07:00
Linux Build Service Account
5c64544466 Merge "smb-lib: fix usbin_icl_change interrupt storm" 2017-07-14 04:00:26 -07:00
Linux Build Service Account
6cc3f85f8c Merge "msm: ADSPRPC: define separate signals for port and link states" 2017-07-14 04:00:25 -07:00
Linux Build Service Account
a4e0503bd2 Merge "diag: Update stream for active PD mdlog session" 2017-07-14 04:00:24 -07:00
Linux Build Service Account
12b782766d Merge "ARM: dts: msm: Add IPA dtsi entries for MSM8996 Auto" 2017-07-14 04:00:23 -07:00
Linux Build Service Account
2869ecde31 Merge "coresight: tmc: Fix use after free issue with tmc read" 2017-07-14 04:00:21 -07:00
Yuan Zhao
33113c048c drm/msm: add YUV format support for HDMI
This change adds YUV format support for HDMI.
Also, chooses the best mode for turning on the
sink based on sink source capabilities. This
can be either RGB or YUV. For YUV formats adjust
the pixel clock and also configure the relevant
hardware blocks in SDE.

Change-Id: I48a36a991c194badb3ddca4bbf5bcbc21d838b8f
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2017-07-14 17:24:25 +08:00
Yuan Zhao
fcef1e04ef drm/msm: add RGB 30-bit deep color support for HDMI
Check if the TV supports deep color and adjust the
pixel clock accordingly before setting the mode. Also
make sure that this pixel clock is within the limits
of the sink.

Change-Id: I3c44c06ea54b6c49e19c8c41d693000f7c3feeb7
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2017-07-14 16:59:58 +08:00
Yuan Zhao
d2df88ebbc msm: mdss: sink mode needs to be read from EDID
DVI/HDMI mode of sink could be read from EDID. Now, we set
the mode according to the video format. For a HDMI device,
if we choose VIC mode larger than 127, it would be set as
DVI mode. It would be confused that a HDMI device is treated
as a DVI device, and would lead some issue for display.

CRs-Fixed: 2030216
Change-Id: I122faf6f4f8d7e620bc6ce7ce1b5757caa188b8e
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
2017-07-14 14:10:31 +08:00
Venkateswara Rao Tadikonda
468fc93432 msm: kgsl: Change pwrlevels array index type to unsigned int
Change the array index 'i' of pwrlevels[] to unsigned int, which can't be
decremented beyond zero.

Change-Id: I9b646fccf03437f6facf0d5938f097916d13d2f2
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
2017-07-14 11:24:53 +05:30
Ramesh V
39540088e6 msm: camera: isp: Avoid to detect out of sync using time
Detect frame out of sync based on interfaces, instead of
time to avoid synchronization issues.

Change-Id: I76d9d5a3c83ed8017607fd452e5503260cad659a
Signed-off-by: Ramesh V <ramev@codeaurora.org>
2017-07-14 11:20:50 +05:30
Ajay Agarwal
6787d25926 usb: dwc3-msm: Add sysfs node to enable SS host compliance
xHCI specs revision 1.1 mentions that if Compliance Transition
Capability (CTC) flag is set, then xHC supports software control
of the transition to Compliance mode. For this, we need to write
a value of 10 to Port Link State(PLS) field of PORTSC register
during dwc3_otg_start_host time after the xhci platform device
has been added. Then the link transitions to compliance state
on detection of first LFPS timeout.

Steps to enable compliance transition:
  1. Do not connect host cable
  2. echo y > /sys/devices/soc/a800000.ssusb/xhci_link_compliance
  3. Connect host cable with breakout fixture and start testing

Steps to disable compliance transition:
  1. Disconnect the host cable
  2. echo n > /sys/devices/soc/a800000.ssusb/xhci_link_compliance
  3. Connect host cable

Change-Id: I73225ccad105414d3ebd60f95138b9ecf65005d4
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-07-14 10:42:07 +05:30
Skylar Chang
898db47a78 msm: ipa3: disable clock gating for MISC
As per design recommendation on clock gating
of MISC block for IPA 3.1, as a workaround,
clock gating for MISC needs to be disabled
using IPA_CLKON_CFG register.

Change-Id: If38741933f2700231977b87f1eaa7b4d95efd478
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-07-13 18:22:20 -07:00
Vikash Garodia
638619e161 msm: vdec: Allocate max internal buffers
During port reconfiguration, reallocating internal
buffers adds to the reconfiguration delay. This change
ensures that maximum supported size of internal
buffers are allocated to avoid reallocation during
port reconfiguration.
Remove the RECONFIG_HINT command as userspace client
does not use this command.

CRs-Fixed: 2071064
Change-Id: I66b5b472f08b9264841dae4f2339f85e3ba879ff
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
2017-07-14 02:04:48 +05:30
Varun Balaraj
f829f46128 ASoC: msm8998: Add MM front end DAI links for interactive streams
Add MM front end DAI links to support concurrent interactive
streams

Change-Id: I9cd95d855f2ddc3345453807e4be235c430b9ef3
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
2017-07-13 01:59:24 -07:00
Varun Balaraj
a48f734c3b ASoC: msm: Support mixer controls for Pan/scale & downmix
Add changes to register and receive parameters for pan/scale
and downmix operations.

Change-Id: If0e747304595f9ed3bd19b25e3f4eab2db382a67
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
2017-07-13 01:47:39 -07:00
Varun Balaraj
701ac49eb7 ASoC: q6dspv2: Support for pan-scale and downmix set param
Add support for set params on ASM/ADM for MFC and
Volume modules. Make PSPD mitrix set param api generic.

Change-Id: I75a5b9e3fd2316b75be41439848f89190944bc36
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
2017-07-13 01:47:22 -07:00
Narender Ankam
fd68f1b43f msm: mdss: dp: avoid aux transactions if dp cable is disconnected
There might be cases where DP cable can be disconnected while
read/write aux transactions are in progress. Avoid retrying
aux transactions if DP cable is disconnected.

Change-Id: Ie6f884c047c6ef3a1584160820e6d41ec0b1e01b
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2017-07-13 13:34:26 +05:30
Mukesh Kumar Savaliya
a86501a108 serial: msm_serial_hs: Optimize the total tty port support
No need of having high number of tty port for HSUART which just wastes
resources. Make this optimal based on the use cases.

Change-Id: If82fc1a3457fae7503d7557817ca776f19027da7
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2017-07-13 13:01:09 +05:30
Vijayavardhan Vennapusa
3e268eebd0 USB: policy_engine: Enable VBUS after VCONN before PE_SRC_Startup
Currently driver is enabling VBUS first and then enable VCONN before
PE_SRC_startup when type C mode is POWER_SUPPLY_TYPEC_SINK_POWERED_CABLE.
On some platforms, enabling VBUS is taking time which is causing VCONN
reaching 2.7V after VBUS reaches VsafeV. This is exceeding 2msec timelimit
mentioned in type C specification and causes type C complaince tests
failure. Hence enable VCONN first and then enable VBUS to pass below
type C compliance tests:
TD 4.8.3 DRP Connect Vconn Accessory Test
TD 4.9.1 Source Suspend Test

Change-Id: I2697acdcaa063f251dd37035475392510037bee5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-07-13 12:12:54 +05:30
Haibin Liu
ba8d8654d4 msm: sensor: actuator: add conditional check for ioctl
Add conditional check when sending VIDIOC_MSM_ACTUATOR_CFG32.

CRs-Fixed: 2060371
Change-Id: I9cfaff05b1fff6969a2543c3816d41ed1fabf897
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2017-07-12 21:40:06 -07:00
Maria Yu
3551dc315a msm-core: Align the trace log temp in same scale factor
Temp in trace_temp_notification is not divided with
scaling factor while cpu_node->temp is. Use temp after
scale for better log understanding.

Change-Id: Iadf4a1c39211651fee67cc18f68a65785f28fa58
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
2017-07-13 10:09:41 +08:00