Commit graph

578319 commits

Author SHA1 Message Date
Benjamin Chan
e3ab6a909f msm: sde: Force setting SDE rotator clock even rate is the same
Due to a HW issue on the multimedia block on MSMCOBALT, the clock
sources or RCGs can end up running at XO frequency after a
multimedia power collapse. In order to avoid this issue, SDE rotator
as a multimedia clients need to call clk_set_rate() prior to
enabling its clocks.

CRs-Fixed: 1090358
Change-Id: Ib00b894f44a349fb3650df43f73f3599c09e46de
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-11-15 20:19:06 -05:00
Benet Clark
83147f1a66 msm: mdss: Remove backlight min level checks during backlight scaling
There is currently a check to prevent backlight scaling when the backlight
level is below the minimum level. This min level and scale are both sent by
userspace. There should be no check in driver comparing backlight to min
level when doing scaling. That check will be done in user mode. The
driver should have the flexibility to do scaling in all scenarios.

CRs-Fixed: 1090387
Change-Id: I6b036db5169c89091ca452c68d6773d9df6d5e06
Signed-off-by: Benet Clark <benetc@codeaurora.org>
2016-11-15 15:25:42 -08:00
Eric Dumazet
68b87a2b4a tcp: take care of truncations done by sk_filter()
With syzkaller help, Marco Grassi found a bug in TCP stack,
crashing in tcp_collapse()

Root cause is that sk_filter() can truncate the incoming skb,
but TCP stack was not really expecting this to happen.
It probably was expecting a simple DROP or ACCEPT behavior.

We first need to make sure no part of TCP header could be removed.
Then we need to adjust TCP_SKB_CB(skb)->end_seq

Many thanks to syzkaller team and Marco for giving us a reproducer.

CRs-Fixed: 1089895
Change-Id: I84185558fa6e80b13d7d0078bda9d75143680941
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Marco Grassi <marco.gra@gmail.com>
Reported-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: ac6e780070e30e4c35bd395acfe9191e6268bdd3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
[subashab@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-11-15 14:54:51 -07:00
Willem de Bruijn
f36f22a49d rose: limit sk_filter trim to payload
Sockets can have a filter program attached that drops or trims
incoming packets based on the filter program return value.

Rose requires data packets to have at least ROSE_MIN_LEN bytes. It
verifies this on arrival in rose_route_frame and unconditionally pulls
the bytes in rose_recvmsg. The filter can trim packets to below this
value in-between, causing pull to fail, leaving the partial header at
the time of skb_copy_datagram_msg.

Place a lower bound on the size to which sk_filter may trim packets
by introducing sk_filter_trim_cap and call this for rose packets.

CRs-Fixed: 1089895
Change-Id: Idc52737bc96097a9220dfe47bb76e94ff1026a05
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: f4979fcea7fd36d8e2f556abef86f80e0d5af1ba
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>
2016-11-15 14:54:51 -07:00
Sreelakshmi Gownipalli
bddd67fc5c diag: Set the diag write buffers to busy state on channel close
Set the diag forward write buffers to busy state when glink
diag channel receives remote disconnected event.

Change-Id: I3c9422f3a790c0c1633ab64d4213a088faaeb9e5
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
2016-11-15 13:46:08 -08:00
Patrick Daly
16517bb150 ARM: dts: msm: Correct interrupt assignments for msmcobalt
Some smmu context banks are reserved for use by secure software. Do not
attempt to use the interrupts associated with those context banks.

Change-Id: I92e98ab46107fbcfd843898423b41716a204c2ae
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-11-15 12:48:02 -08:00
Satish Babu Patakokila
c4f25275d8 ASoc: msm: qdsp6v2: Add support for compress capture
Add support for compress capture in compress driver.
Add audio record support through compress driver.

CRs-fixed: 1072067
Change-Id: I7c6ab8bc0e88010eb221788cf8ce4c182e3128d9
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
2016-11-15 23:53:17 +05:30
Tony Truong
f7f2185840 ARM: dts: msm: ensure contiguous MSI for PCIe on msmcobalt
PCIe MSI have to be contiguous by spec. Relocated
PCIe node so that it receives contiguous MSIs from
GIC driver.

Change-Id: Ia73ab1ba51df7b501d246bb45141018409496d01
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-11-15 10:01:55 -08:00
Tony Truong
ef48989c47 ARM: dts: msm: enable QGIC MSI for PCIe on msmcobalt
Add all SPIs for MSI, the base address, and the base SPI
to PCIe node to support and enable QGIC MSI on msmcobalt.

Change-Id: I1e74f1b03c3e15880efdac7ff07aca2f628de99d
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-11-15 09:41:32 -08:00
Asutosh Das
9931a7ca47 ARM: dts: msm: Add ufs regulators for msmfalcon interposer
Add device tree support for msmcobalt interposer platform
for regulators of UFS.

Change-Id: I78d2c27743d30b90a96e3d8df60859f67db7ddb8
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2016-11-15 18:04:45 +05:30
Linux Build Service Account
1e17007652 Merge "msm: ipa3: retry on IPA_HW_CONS_DISABLE_CMD_GSI_STOP_FAILURE" 2016-11-15 04:07:58 -08:00
Linux Build Service Account
76fb91705e Merge "pinctrl: qcom: msmfalcon: Split function groups based on mirrors" 2016-11-15 04:07:57 -08:00
Linux Build Service Account
e8d37e0204 Merge "pinctrl: qcom: Add all the gpios to pingroups for msmfalcon" 2016-11-15 04:07:56 -08:00
Linux Build Service Account
5c2a834f84 Merge "msm: pcie: support configurable wr halt size for PCIe" 2016-11-15 04:07:55 -08:00
Linux Build Service Account
2db8e29779 Merge "iio: adc: qcom-tadc: cast raw ADC readings before conversion" 2016-11-15 04:07:54 -08:00
Linux Build Service Account
adb38b4519 Merge "ARM: dts: msm: update TADC ibatt scale for MSMCOBALT" 2016-11-15 04:07:54 -08:00
Linux Build Service Account
bda0cf17e9 Merge "usb: gadget: f_mtp: Increase default TX buffer size" 2016-11-15 04:07:53 -08:00
Linux Build Service Account
126f773020 Merge "qcom-cpufreq: skip frequencies that round to same rate" 2016-11-15 04:07:52 -08:00
Linux Build Service Account
276980d3e2 Merge "ARM: dts: msm: Remove min svs level for A540 in msmcobaltv2" 2016-11-15 04:07:51 -08:00
Linux Build Service Account
8ca1dae0da Merge "Revert "clk: msm: clock-gpu-cobalt: Update the graphics core clock frequency"" 2016-11-15 04:07:50 -08:00
Linux Build Service Account
16a21bcd77 Merge "ARM: dts: msm: update APC0/APC1/GFX aging allowed revisions for msm8998v2" 2016-11-15 04:07:50 -08:00
Linux Build Service Account
2ce4f26719 Merge "core_ctl: Export boost function" 2016-11-15 04:07:49 -08:00
Linux Build Service Account
86060df701 Merge "msm: pcie: support QGIC MSI for multiple clients" 2016-11-15 04:07:48 -08:00
Linux Build Service Account
21a0144d38 Merge "msm: mdss: Avoid accessing pipe out of the boundaries" 2016-11-15 04:07:47 -08:00
Linux Build Service Account
abd62e397f Merge "msm: mdss: fix logic to enable secure display/camera" 2016-11-15 04:07:46 -08:00
Linux Build Service Account
7e6b3ca920 Merge "qpnp-fg-gen3: add support to show time to full and empty" 2016-11-15 04:07:45 -08:00
Linux Build Service Account
24eb8e0963 Merge "iommu/arm-smmu: support mapping before enabling S1 translations" 2016-11-15 04:07:44 -08:00
Linux Build Service Account
126f5e5e99 Merge "nf: IDLETIMER: Fix use after free condition during work" 2016-11-15 04:07:44 -08:00
Linux Build Service Account
316debf36c Merge "net: rmnet_data: Handle buffer bloat for TCP scenarios" 2016-11-15 04:07:43 -08:00
Linux Build Service Account
a8bcbb0330 Merge "msm: vidc: Allow clients to suggest I-frame sizes" 2016-11-15 04:07:42 -08:00
Linux Build Service Account
41e0ebbfe7 Merge "msm: vidc: Allocate raw packet memory one time" 2016-11-15 04:07:42 -08:00
Linux Build Service Account
dc5372bca9 Merge "msm: vidc: increase timeout value for hw response and power collapse" 2016-11-15 04:07:41 -08:00
Linux Build Service Account
27433b0bdc Merge "msm: vidc: Avoid unnecessary buffer requirements call" 2016-11-15 04:07:40 -08:00
Linux Build Service Account
6389e371fe Merge "ARM: dts: msm: Set max secure sessions to 6 for msmcobalt" 2016-11-15 04:07:39 -08:00
Linux Build Service Account
04d8bb1d09 Merge "msm: vidc: Invalidate cache for input buffers" 2016-11-15 04:07:38 -08:00
Linux Build Service Account
b4dfbe5662 Merge "ARM: dts: msm: Add battery profile for FG in QRD SKUK and vr1" 2016-11-15 04:07:38 -08:00
Linux Build Service Account
4c5039d26a Merge "ARM: dts: msm: update the battery data for cobalt" 2016-11-15 04:07:37 -08:00
Linux Build Service Account
77b8b660d6 Merge "qpnp-smb2: allow parallel charging during supplemental mode" 2016-11-15 04:07:35 -08:00
Linux Build Service Account
c7c1cfc485 Merge "msm: mdss: avoid removing wrong multirect on validate failures" 2016-11-15 04:07:34 -08:00
Linux Build Service Account
7bff6300e1 Merge "msm: mdss: fix race condition with overlay off in doze mode" 2016-11-15 04:07:33 -08:00
Linux Build Service Account
c1d8acc698 Merge "iio: rradc: Update RRADC USBIN scaling" 2016-11-15 04:07:33 -08:00
Linux Build Service Account
22061fef2b Merge "ARM: dts: msm: add PMFALCON/PM2FALCON devices for msmcobalt interposer QRD" 2016-11-15 04:07:32 -08:00
Linux Build Service Account
ce36badf07 Merge "ARM: dts: msm: Add rpm-smd node for msmtriton" 2016-11-15 04:07:31 -08:00
Linux Build Service Account
7e04964229 Merge "ARM: dts: msm: Change GPU clock plan for msmcobalt interposer" 2016-11-15 04:07:30 -08:00
Linux Build Service Account
ff25044ed2 Merge "msm: kgsl: Fix pt NULL pointer dereference" 2016-11-15 04:07:29 -08:00
Linux Build Service Account
1f68dcac66 Merge "qcom-charger: WA for cc2 removal with medium and high rd" 2016-11-15 04:07:28 -08:00
Linux Build Service Account
59c99dc4e4 Merge "qcom-charger: WA for typec cc2 sink removal with rdstd" 2016-11-15 04:07:27 -08:00
Linux Build Service Account
c67b4632c7 Merge "ARM: dts: msm: add new mapping table for memlat" 2016-11-15 04:07:26 -08:00
Linux Build Service Account
4c014824b9 Merge "leds: qpnp-flash-v2: Add support for programming led clamp currents" 2016-11-15 04:07:25 -08:00
Linux Build Service Account
d05c65bf95 Merge "msm: pcie: remove PCIe PHY and PARF dump in linkdown" 2016-11-15 04:07:24 -08:00