Commit graph

578207 commits

Author SHA1 Message Date
Taniya Das
b5d4c54e33 clk: qcom: Add support for RCGs with dynamic and fixed sources
Some RCGSs could have sources with dynamic frequencies and fixed sources
where if the RCG has the flag of CLK_SET_RATE_PARENT set, it would try to
propagate the clock rate to the fixed source PLLs too. To identify sources
of the RCGs where the rate should propagate to parent PLL, add a member in
freq_tbl to represent source frequency. This would be used by the
_freq_tbl_determine_rate to set its parent frequency on the PLL.

Change-Id: I7f1c0d9d84607821893a1e5d17934dae5acef5f4
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-15 20:20:10 -08:00
Taniya Das
e03bf33cb9 clk: qcom: Add support for debugfs support
Add the clock operation list_registers which would print the register
content of a clock. This is supported for PLL/RCG/Branch/Gate clocks.
Also add support for list_rate for the RCG clock which would list all the
frequencies/rates supported by the SW.

Change-Id: I3b4cf83e776750d993d53331142223109bf0862e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-16 09:16:52 +05:30
Taniya Das
b9b1975fe3 clk: Add support to allow client to print all enabled clocks
The clock api clock_debug_print_enabled would allow any client like low
power driver to print all the enabled clocks which include the
prepare_count/enable_count/rate/rate max vote.

Change-Id: I936496e553bc958c10e743fd8a225ffc7fbc0f79
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-16 09:16:52 +05:30
Taniya Das
dba9af81b8 clk: Add support for list_rates ops for clocks
Add support for clocks debugfs to be able to display
 - rates_max which indicates the frequency to voltage mapping of a clock.
 - list_rates, the list of clock frequencies supported by root clocks.
 - Also display the rate_max associated with enabled clocks list.

Change-Id: I0a202af6f46c7cf164036d65487db5c40aab4063
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-16 09:16:51 +05:30
Taniya Das
770f204fbd clk: add/modify debugfs support for clocks
Update clock debugfs to support the below functionalities.
 - Allow enable/disable a clock.
 - Allow set_rate on a clock.
 - Display the list of enabled_clocks along with prepare_count,
   enable_count and rate.
 - Display the register contents of all the clocks which support
  this clock operation.

Change-Id: Ib67b3a3409c9e7d8adb710bb524f54f543abf712
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-16 09:16:51 +05:30
Jack Pham
f50e4f2412 usb: pd: Stop processing SVDM if handler found
If a client matching the SVID for an incoming SVDM is found,
assume it has handled the message completely and simply return.
This avoids the case when it handles an Attention message by
queuing another VDM request, only to have it inadvertently
deleted in the generic handling below.

But we also lose tracking of Discover/Enter/Exit Mode
exchanges though that was only used for informational purposes.

Change-Id: Ie23d473302d7fbda9b243a150e5c52d025007e4f
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-11-15 19:36:29 -08:00
Meng Wang
dd076b8ad2 include: clock: Add audio external clock of_index extries
Add clock of_idx entries for audio external clock registered
to the qcom clock framework.

Change-Id: Ie592d06d2e09c2e263a2e9485a42eafb368e49cc
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-11-16 10:45:40 +08:00
Karthikeyan Periasamy
b8a19f3eee msm: vidc: fix mutex lock issue
vb2_queue_release uses mutex lock. So, the locks should be
destroyed at the end.

Change-Id: I8043a13d366fcb20a8a819c4739177258ad508ac
CRs-Fixed: 1086284
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
2016-11-15 18:00:02 -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