Commit graph

590772 commits

Author SHA1 Message Date
Ashwanth Goli
04e423aaa4 net: rps: send out pending IPI's on CPU hotplug
IPI's from the victim cpu are not handled in dev_cpu_callback.
So these pending IPI's would be sent to the remote cpu only when
NET_RX is scheduled on the victim cpu and since this trigger is
unpredictable it would result in packet latencies on the remote cpu.

This patch add support to send the pending ipi's of victim cpu.

Change-Id: I6e688bf0d09a952468eec18f80ce6b21bf370ef1
Signed-off-by: Ashwanth Goli <ashwanth@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-14 15:11:43 +05:30
Linux Build Service Account
f19eadaabe Merge "drm/msm: Use per-ring submit lists" 2017-06-13 16:29:03 -07:00
Linux Build Service Account
076704b374 Merge "drm/msm: fix leak in failed submit path" 2017-06-13 16:29:01 -07:00
Linux Build Service Account
c65d7c1cd9 Merge "msm: thermal: Probe sensor info prior to other feature probe" 2017-06-13 16:29:00 -07:00
Linux Build Service Account
55e1e2ea4e Merge "defconfig: msm: Enable CONFIG_MMC_RING_BUFFER for msm8998" 2017-06-13 16:28:59 -07:00
Linux Build Service Account
30559277e9 Merge "diag: dci: Add NULL pointer checks for dci buffers" 2017-06-13 16:28:58 -07:00
Linux Build Service Account
0bb8d348da Merge "drm/msm: Fix possible overflow issue in submit_cmd" 2017-06-13 16:28:58 -07:00
Linux Build Service Account
f32e95c637 Merge "ARM: dts: msm: Add clock config entry to vmem device on MSM8996" 2017-06-13 08:48:42 -07:00
Linux Build Service Account
c13834210f Merge "ARM: dts: msm: Align CB size to 128MB for SDM660 and SDM630" 2017-06-13 08:48:41 -07:00
Linux Build Service Account
379f393033 Merge "msm: vidc: Perform cache operations only on filled length" 2017-06-13 08:48:40 -07:00
Linux Build Service Account
57a66a97cf Merge "msm: vidc: Allocate memory dynamically for debugfs info_reads" 2017-06-13 08:48:39 -07:00
Linux Build Service Account
4d3e69274e Merge "msm: vidc: Return only active state VBs during flush" 2017-06-13 08:48:38 -07:00
Linux Build Service Account
650bcc069b Merge "diag: Synchronize mdlog read and write threads" 2017-06-13 08:48:37 -07:00
Linux Build Service Account
984393cfae Merge "ASoC: msm: qdspv6: Fix wrong smmu sid for ULL playback" 2017-06-13 08:48:37 -07:00
Linux Build Service Account
5d52e10d48 Merge "sdm660: adsprpc: Map uncached buffers as non-coherent" 2017-06-13 08:48:36 -07:00
Rohit Kumar
4282bbbb81 ASoC: msm: qdspv6: Fix wrong smmu sid for ULL playback
SMMU sid is set to 0 in q6asm_set_shared_circ_buff and
q6asm_set_shared_pos_buff in 32 bit arch. Fix it to
send proper SID to ADSP when sharing buffer.

Change-Id: I00cc0f881acd7a4a52292e65360ea7b03f2f0212
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-06-12 23:02:49 -07:00
Linux Build Service Account
c0f6993430 Merge "msm: ipa: fix hdr table full condition" 2017-06-12 21:43:19 -07:00
Linux Build Service Account
cfec669251 Merge "power: qpnp-fg-gen3: Qualify aborting capacity learning" 2017-06-12 21:43:18 -07:00
Linux Build Service Account
a5ab1b911f Merge "drm/msm: Fix kernel address issue of profile buffer" 2017-06-12 21:43:17 -07:00
Linux Build Service Account
54726d07cd Merge "qseecom: Fix accessing userspace memory in kernel space" 2017-06-12 21:43:16 -07:00
Linux Build Service Account
dd7a94047f Merge "msm: kgsl: Log clk set, enable and prepare failure" 2017-06-12 21:43:15 -07:00
Linux Build Service Account
b9d279f54f Merge "soc: qcom: update return value for minidump add region" 2017-06-12 21:43:14 -07:00
Linux Build Service Account
91e88c87dd Merge "clk: qcom: Add regmap mux-div clocks support" 2017-06-12 21:43:13 -07:00
Jordan Crouse
7851820e84 drm/msm: Use per-ring submit lists
To make it easier to determine what submit(s) are currently active
on any given ring, store the active submits in per-ring lists instead
of a master list.

Change-Id: Ic0dedbadb331cd8e4e85dfcfa51cb1ceabe6efa9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-06-12 15:11:51 -06:00
Rob Clark
5fb0642400 drm/msm: fix leak in failed submit path
Change-Id: Ic0dedbadf485dd63ef727402b653a9d996a13632
Signed-off-by: Rob Clark <robdclark@gmail.com>
Git-commit: 40e6815bba6e34e5560e8855b43cd3eb17b24b09
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[jcrouse@codeaurora.org: fix merge conflicts and initialize node at create]
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-06-12 15:11:51 -06:00
Jordan Crouse
8416e67721 drm/msm: Improved rd_full buffer dumping
Always print the iova and size for every buffer in a commit when
rd_full is enabled but only dump the contents for input buffers.
Also make imported buffers work with vmap so that they can be
safely dumped.

Change-Id: Ic0dedbad6ed5c426dc85a9c089b6c86c95c727cc
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-06-12 15:11:50 -06:00
Rob Clark
8691a54109 drm/msm/rd: add module param to dump all bo's
By default, if using $debugfs/.../rd to log cmdstream, only the
cmdstream buffers themselves are logged.  But in some cases we want
to capture other buffers in the submit (to see VBO's or shaders).
So add a mod-param knob to control this.

Change-Id: Ic0dedbadf993d9ab2c7a44f14e7720e7567a6da1
Signed-off-by: Rob Clark <robdclark@gmail.com>
Git-commit: 79c21187ca370f37302f0d5c16c387985d7b8ba1
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[jcrouse@codeaurora.org: fix minor merge conflicts]
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-06-12 15:11:50 -06:00
Rob Clark
fdde54c4d4 drm/msm/rd: split out snapshot_buf helper
(reduce the noise in next patch)

Change-Id: Ic0dedbadd4b1100ff7b203f120f4acd0c4bf8d09
Signed-off-by: Rob Clark <robdclark@gmail.com>
Git-commit: 6507e799f432d9fa86ba398b095ef1139a70deac
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[jcrouse@codeaurora.org: fixed minor merge conflicts]
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-06-12 15:11:50 -06:00
Skylar Chang
6e0ccc547b msm: ipa: fix hdr table full condition
The header table is managed by IPA driver and header cannot be
moved. Instead a "free list" is maintained for deleted headers.
This change fixes a bug on header addition where the table is considered
full only if it is full and the free list is empty.

Change-Id: Ief8a384ea105c6f0179faaf95a98b9731fe6a01e
CRs-Fixed: 2048799
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-06-12 14:11:45 -07:00
Jordan Crouse
7949249042 drm/msm: Fix possible overflow issue in submit_cmd
When verifying that the submit_cmd offset and size do not exceed the
bounds of the GEM object make sure to cast the math operation
into a suitably large buffer to account for overflow.

Change-Id: Ic0dedbad97513ee538d539e771038b3cf0405e91
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-06-12 15:08:08 -06:00
Subbaraman Narayanamurthy
b9c7f08657 power: qpnp-fg-gen3: Qualify aborting capacity learning
Currently, capacity learning algorithm is aborted when the
charging status goes to not charging. This can happen with qnovo
enabled charging where stopping the pulsing can lead to charging
status change. Qualify aborting capacity learning based on the
qnovo enable status and input presence.

While at it, abort the capacity learning when the charging status
goes to discharging and charger is removed.

Change-Id: I4546e8880be0658748157cb13f048610eee932a3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-06-12 12:04:39 -07:00
Subbaraman Narayanamurthy
1a3659dcd4 power: qpnp-fg-gen3: fix an unbalanced irq disable for delta_bsoc irq
Currently, rerun_election() is called on delta_bsoc_irq_en
votable to disable delta_bsoc interrupt during probe. However, it
doesn't set the internal variable for votable to not allow a
similar vote again. When a vote is made later to disable the
interrupt again, it can end up in invoking the callback again.

This leads to an unbalanced interrupt disable warning. Fix it.

CRs-Fixed: 2058754
Change-Id: I30c35be5275b5b310cf9b17ea4660a3e2e89c59a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-06-12 12:04:38 -07:00
Linux Build Service Account
85baaeb2e2 Merge "Policy_engine: Add module parameter to disable PD" 2017-06-12 10:41:38 -07:00
Linux Build Service Account
5a580b8916 Merge "diag: Remove BOM in file" 2017-06-12 10:41:37 -07:00
Linux Build Service Account
584b2405fd Merge "usb: gadget: Bind android devices for all UDC gadgets" 2017-06-12 10:41:36 -07:00
Linux Build Service Account
0b271fdd58 Merge "ARM: dts: msm: specify a PWM mode threshold for BoB on SDM660" 2017-06-12 10:41:35 -07:00
Linux Build Service Account
86bcb4d5ab Merge "SDM660: ADSPRPC: Handle NULL pointer dereference" 2017-06-12 10:41:34 -07:00
Linux Build Service Account
5be8865912 Merge "defconfig: arch: arm64: Disable CONFIG_CC_OPTIMIZE_FOR_SIZE defconfig" 2017-06-12 10:41:33 -07:00
Linux Build Service Account
60ad3ce1b9 Merge "ASoC: sdm660_cdc: Update micbias regulator to power saving on use basis" 2017-06-12 10:41:32 -07:00
Brahmaji K
ed85b5e79f qseecom: Fix accessing userspace memory in kernel space
Use put_user API to write the data from kernel space to
userspace to avoid accessing userspace memory directly
in kernel space.

Change-Id: I649fe2597e80ccad50cf16b355e220734810e94c
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-06-12 04:01:36 -07:00
Lingutla Chandrasekhar
f172706351 soc: qcom: update return value for minidump add region
If minidump is not enabled, minidump add region api returns
error number, clients can log the error to log buffer, which
flood the log buffer unnecessarily.

So return quietly if minidump support is not enabled.

Change-Id: I9c6428015ca40c5233f80471896bacecd0872bf7
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-06-12 16:24:10 +05:30
Georgi Djakov
30d76c4a56 clk: qcom: Add regmap mux-div clocks support
Add support for hardware that can switch both parent clocks and divider
at the same time. This avoids generating intermediate frequencies from
either the old parent clock and new divider or new parent clock and
old divider combinations.

Change-Id: I1b3f7e9422f5c27eeb391d309374167dc139e8ca
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Git-commit: 549f1a4028350851f73837ad8cce3ac5fd2abd11
Git-repo: https://git.quicinc.com/?p=kernel/msm-4.4.git
[anischal@codeaurora.org: Fix compilation issue with
mux_div_get_safe_parent]
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-06-12 16:00:16 +05:30
Manoj Prabhu B
c579b5355e diag: Synchronize mdlog read and write threads
The patch defines the per peripheral packet length
inside the per peripheral structure replacing
corresponding global variables.

CRs-Fixed: 2050301
Change-Id: I0bb732d93cd98aa46c69c81eeae9872a801a9e18
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-06-12 15:41:28 +05:30
Mohit Aggarwal
780ffc2bf6 diag: Remove BOM in file
This file seems to have a BOM sequence to indicate the file is
UTF-8. There aren't any UTF sequences in the file though, and
this trips up sparse when running on files that include this
header. Remove the BOM so sparse is happy.

Change-Id: Ie25ce60077d1f2b4eb51bf0792635f02d1b33ae7
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2017-06-12 11:14:20 +05:30
c_mtharu
71733cb184 sdm660: adsprpc: Map uncached buffers as non-coherent
Map un-cached buffers as non io-coherent to avoid snooping overhead.

Change-Id: Iddbde76d6d8a13cd48c737f1046a53a2bc1ef2a5
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-06-11 22:37:30 -07:00
Linux Build Service Account
c1a2472056 Merge "fbdev: msm: Allocate fd with O_CLOEXEC flag" 2017-06-10 02:20:47 -07:00
Linux Build Service Account
73d6c8e7de Merge "msm: mdss: Buffer overflow while processing gamut table data" 2017-06-10 02:20:46 -07:00
Linux Build Service Account
1bfc4b2e71 Merge "fb: msm_dba: add post-on-sleep support for adv7533 vreg" 2017-06-10 02:20:45 -07:00
Linux Build Service Account
12cf20b0e9 Merge "ARM: dts: msm: update nt35597 panel properties for msm8998" 2017-06-10 02:20:43 -07:00
Linux Build Service Account
0ca5c4d703 Merge "msm: mdss: Do not attempt to request TE irq again if already requested" 2017-06-10 02:20:42 -07:00