Commit graph

592220 commits

Author SHA1 Message Date
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
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
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
Philippe Gravel
0ad9633b9e ARM: dts: msm: Enable pmic gpio13 so neutrino driver can toggle it in probe
Enables pmic gpio13 on msm8996 so that the neutrino driver can toggle it
during probe to bring the hardware out of reset. This is required for
suspend/resume when neutrino resx is disconnected from pcie_reset.

Change-Id: I21a8e556903756ed39abdde5a17e8b6d353c0504
Signed-off-by: Philippe Gravel <pgravel@codeaurora.org>
2017-07-12 16:27:14 -07:00
Wei Wang
a0271af208 net: ipv6: reset daddr and dport in socket if connect() fails
In __ip6_datagram_connect(), reset socket->socket_v6_daddr and inet->dport if
error occurs.
In udp_v6_early_demux(), check for socket_state to make sure it is in
TCP_ESTABLISHED state.
Together, it makes sure unconnected UDP socket won't be considered as a
valid candidate for early demux.

v3: add TCP_ESTABLISHED state check in udp_v6_early_demux()
v2: fix compilation error

CRs-Fixed: 2057820
Change-Id: Ifa9c2ddfaa5b51d4082b7b1dd8a5d03b3c290705
Fixes: 5425077d73e0 ("net: ipv6: Add early demux handler for UDP unicast")
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 85cb73ff9b74785a7fc752875d7f0fe17ca3ea7c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[subashab@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-07-12 15:09:29 -06:00
Subash Abhinov Kasiviswanathan
c4a6990537 net: ipv6: Fix UDP early demux lookup with udp_l3mdev_accept=0"
David Ahern reported that "net: ipv6: Add early demux
handler for UDP unicast" breaks udp_l3mdev_accept=0 since early
demux for IPv6 UDP was doing a generic socket lookup which does not
require an exact match. Fix this by making UDPv6 early demux match
connected sockets only.

v1->v2: Take reference to socket after match as suggested by Eric
v2->v3: Add comment before break

CRs-Fixed: 2057820
Change-Id: Ief9fd4a51561b7a49efa3780ebe8dc3632bdfa1c
Fixes: 5425077d73e0c ("net: ipv6: Add early demux handler for UDP unicast")
Reported-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Cc: Eric Dumazet <edumazet@google.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Tested-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 0bd84065b19bca12f07f288c8ea470e2c1b2de7a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[subashab@codeaurora.org: resolve trivial merge conflicts]
2017-07-12 15:02:18 -06:00
Linux Build Service Account
d9fbe4b921 Merge "ARM: dts: msm: Remove WLED short circuit properties for PM660" 2017-07-12 12:47:39 -07:00
Linux Build Service Account
1e6e80aa0e Merge "ARM: dts: msm: Add phy related properties for ethernet on msm8996" 2017-07-12 12:47:38 -07:00
Linux Build Service Account
56c8e3ec0d Merge "defconfig: Disable CGROUP_DEBUG config for msm8998 in perf" 2017-07-12 12:47:37 -07:00
Linux Build Service Account
27ee915218 Merge "msm: kgsl: Use vma_area_struct with proper locks" 2017-07-12 12:47:36 -07:00
Benjamin Chan
d7ead4950a msm: sde: Set minimum traffic shaping in sde rotator
SDE rotator cannot accept 0 value for traffic shaping. This fix is to
limit the minimum traffic shaping value to be 1.

CRs-Fixed: 2074997
Change-Id: I5c96d600d77a5bfe09fe2667b914cb498371391e
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2017-07-12 10:24:22 -04:00
Mohammed Khajapasha
a87cd547f6 ARM: dts: msm: Add initial support for msm8998-9x55
Add initial set of device tree files for msm8998-9x55 target.

Change-Id: Icd2d5555a2b48cd935fc4ced54c9a061f3a62a10
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
2017-07-12 17:55:32 +05:30
Hardik Kantilal Patel
d8e33bd351 ARM: dts: msm: Use wlan carveout region for sdm660/sdm630
Add DT entry to use wlan carveout region for WLAN MSA0.

CRs-Fixed: 2075205
Change-Id: I86d90247155884488e639bd8d487157524b977e9
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2017-07-12 16:23:38 +05:30
Linux Build Service Account
92ccb29455 Merge "cnss2: Set PCIe to D3hot state before suspending PCIe link" 2017-07-12 03:29:34 -07:00
Linux Build Service Account
7438a89b3c Merge "Merge android-4.4@64a73ff (v4.4.76) into msm-4.4" 2017-07-12 03:29:33 -07:00
Linux Build Service Account
d03efe4d51 Merge "ASoC: wsa881x: Assign device number in reset" 2017-07-12 03:29:32 -07:00
Rahul Sharma
23ab6f01d2 msm: ais: Fix NULL pointer dereference in msm.c.
Added check to avoid NULL pointer dereference in msm.c

Change-Id: I1cdfd695a11d826d3650261061c281e391df7139
CRs-Fixed: 2034953
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-07-12 03:23:10 -07:00
Rahul Sharma
b1d4d653cc msm: ais: fix crash during dumping io register
Check whether ispif->base is null before dumping.

Change-Id: I7d9738d5361052b01a5e4a205d9f18a9e36b64bd
CRs-Fixed: 2046207
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-07-12 03:20:41 -07:00
Manoj Prabhu B
ecf448c50b diag: Update stream for active PD mdlog session
The patch sets the stream for user PD based on
its active mdlog session. The patch updates proper
peripheral information required for hdlc encoding.

CRs-Fixed: 2063972
Change-Id: Iedfad5161b1145245883282b29811a82343e79ba
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-07-12 15:29:29 +05:30
Hamad Kadmany
306055a7a6 msm_11ad: Compile as module instead of built-in
Remove compilation of the module as built-in
by default.

Change-Id: Iadb70814c02df68b75ae4efae66637beaf520b9e
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
2017-07-12 11:29:52 +03:00
Zou Shunxiang
40e39c6095 ARM: dts: msm: Add phy related properties for ethernet on msm8996
Add mdio_bus_id and phy_addr to access phy device
instead of scanning mdio bus. It will reduce time
cost during ethernet driver loading.

Change-Id: Ifb1574d4a68944a087dcafb12bc79098bc3156e4
Signed-off-by: Zou Shunxiang <shunxian@codeaurora.org>
2017-07-11 22:26:24 -07:00
Mohit Aggarwal
ccab495a2f diag: Protect mask updates for memory device session
Currently, there is a possibility of using already freed
memory device session members during mask updates. The
patch fixes the issue by adding proper protection.

CRs-Fixed: 2074264
Change-Id: Iff2009a498506ffe574655badfe0a0f9f0dece9a
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2017-07-12 10:12:55 +05:30
Mohammed Khajapasha
b03fe4c43b defconfig: Disable CGROUP_DEBUG config for msm8998 in perf
Disable CGROUP_DEBUG config for msm8998 in perf defconfig.

Change-Id: Ib321201ea0761548fb26db42d59cad07a08eca85
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
2017-07-12 10:06:15 +05:30
Kiran Gunda
0fd1ce1807 ARM: dts: msm: Remove WLED short circuit properties for PM660
WLED module does not have the SC protection feature on PM660l.
Hence remove the SC properties from the WLED device tree node.

CRs-Fixed: 2071302
Change-Id: I45ea0b7581780988b51ab3665c08d8a67a3ce4d3
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-07-12 10:05:23 +05:30
Linux Build Service Account
3629cb733f Merge "drm/msm/sde: Expose the HDR support capability of the chipset" 2017-07-11 17:57:53 -07:00
Linux Build Service Account
d68ac604a3 Merge "net: Kconfig: Add config entry for WLAN QCA6290 chipset" 2017-07-11 17:57:52 -07:00
Linux Build Service Account
69cc51bcab Merge "msm: isp: fix the issue during overflow recovery" 2017-07-11 17:57:51 -07:00
Linux Build Service Account
9a74724cda Merge "USB: phy-msm-qusb-v2: Enable autoresume only when device is connected" 2017-07-11 17:57:51 -07:00
Linux Build Service Account
b0e2239e53 Merge "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails" 2017-07-11 17:57:50 -07:00
Linux Build Service Account
9165ab4e7a Merge "ASoC: msm_sdw: Move the delay logic inside bulk write loop" 2017-07-11 17:57:49 -07:00
Linux Build Service Account
38c7257a21 Merge "soc: qcom: SCM front-end over QCPE" 2017-07-11 17:57:48 -07:00
Abhijeet Dharmapurikar
fed0617ff2 smb-lib: fix usbin_icl_change interrupt storm
We observed an interrupt storm on that interrupt
even after the usb path is suspended.

So keep this interrupt disabled as long as the usb
path is suspended.

Note that since the current limit votes can come in
prior to interrupt registration, rerun the election
on the votable after interrupts are registered.

Change-Id: Ib43b071b7b0decf8e50d27d585bea04b727f9475
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-07-11 16:14:32 -07:00
Yue Ma
aace9713d6 cnss2: Set PCIe to D3hot state before suspending PCIe link
As per PCIe spec, PCIe link needs to be set to D3hot state before
entering D3cold state.

Change-Id: I68defc4cf29fe88262e92fe8fb934948ad13aef4
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-11 14:37:24 -07:00
Nicholas Troast
faee17bff3 power: smb138x-charger: set buck freq to 700kHz in slave mode
Currently the buck frequency is set to 700kHz only when the smb138x is
in master mode. The buck frequency needs to be 700kHz in both master and
slave mode to prevent ADC errors. Do it.

Change-Id: Ib2cea9b38b6b23f9f229ee85c2bde5a5fd6220fd
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-07-11 12:33:37 -07:00
Yue Ma
022e1f5a20 net: Kconfig: Add config entry for WLAN QCA6290 chipset
WLAN QCA6290 chipset specific changes are featurized under
this config entry.

Change-Id: I9283ea5dcac702018b2483cdcd4aea254e96c51a
CRs-fixed: 2071634
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-11 10:36:28 -07:00
Linux Build Service Account
d8ff341d38 Merge "ARM: dts: msm: add wlan carveout region for sdm660/sdm630" 2017-07-11 09:17:36 -07:00