Commit graph

575937 commits

Author SHA1 Message Date
Hareesh Gundu
641acaf018 msm: kgsl: Add facility to BUG_ON for a gpu fault
Few gpu faults need system level information like voltages,
interface clock etc. This information can't be extracted
through the snapshot dump. Add a facility to force panic
on gpu fault, which will help to extract additional
information from the ramdumps.

To trigger BUG_ON for a gpu fault:
echo 1  > /sys/class/kgsl/kgsl-3d0/snapshot/force_panic

Change-Id: I020b5518fcaedd4fecc572b580a989bf117f6ceb
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-10-03 00:04:19 -07:00
Chandana Kishori Chiluveru
5f7a2a2a57 usb: gadget: f_qc_rndis: Add RNDIS support using IPA over BAM2BAM
On some targets RNDIS function uses BAM to BAM transport, and is
handled by the f_qc_rndis driver. This change adds RNDIS support
using IPA over BAM2BAM. Also removes all different supported control
and data transports and assume BAM2BAM_IPA as default mode. RNDIS UL
changes using software path also removed as IPA supports both UL
and DL on latest products.

DPL support will be added in subsequent patches.

Change-Id: I8f7bf069523a8f3ea37e0a32a2e32830944a5c97
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-10-03 12:17:32 +05:30
Shantanu Jain
08c47ca822 defconfig: msm: disable RMI4 dev module
Synaptics driver supports an RMI4 dev module to
interact with userspace. Disable the module due to
security concerns.

CRs-Fixed: 1073043
Change-Id: I24e3f888167b7ff593373bfc4a55ce81cfc9e5c7
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-03 12:01:20 +05:30
Kuirong Wang
3a0f71b590 ARM: dts: msm: enable mi2s and aux pcm on msmcobalt
Add device tree changes to enable mi2s and aux pcm so audio
can be playback and capture via mi2s and aux pcm interfaces.

CRs-Fixed: 1047362 1047365
Change-Id: I6d8f31cf841cb977bd1d7af3441b9d2c1da9b85c
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-10-02 09:59:53 -07:00
Pavankumar Kondeti
a86b380f35 sched: Add a device tree property to specify the sched boost type
The HMP scheduler has two types of task placement boost policies.

(1) boost-on-big policy make use of all big CPUs up to their full capacity
before using the little CPUs. This improves performance on true b.L systems
where the big CPUs have higher efficiency compared to the little CPUs.

(2) boost-on-all policy place the tasks on the CPU having the highest
spare capacity. This policy is optimal for SMP like systems.

The scheduler sets the boost policy to boost-on-big on systems which has
CPUs of different efficiencies. However it is possible that CPUs of the
same micro architecture to have slight difference in efficiency due to
other factors like cache size. Selecting the boost-on-big policy based
on relative difference in efficiency is not optimal on such systems.
The boost-policy device tree property is introduced to specify the
required boost type and it overrides the default selection of boost
type in the scheduler. The possible values for this property are
"boost-on-big" and "boost-on-all".

Change-Id: Iac19183fa7d4bfd9e5746b02a02b2b19cf64b78d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2016-10-02 10:54:45 +05:30
Pavankumar Kondeti
c7e3dde08c sched: Add a stub function for init_clusters()
Add a stub function for init_cluster() and remove a ifdefry
for SCHED_HMP in sched_init()

Change-Id: I6745485152d735436d8398818f7fb5e70ce5ee65
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2016-10-02 10:52:15 +05:30
Pavankumar Kondeti
f1e9995fe4 sched: add a knob to prefer the waker CPU for sync wakeups
The current policy has a preference to select an idle CPU in the waker
cluster compared to the waker CPU running only 1 task. By selecting
an idle CPU, it eliminates the chance of waker migrating to a
different CPU after the wakee preempts it. This policy is also not
susceptible to the incorrect "sync" usage i.e the waker does not
goto sleep after waking up the wakee.

However LPM exit latency associated with an idle CPU outweigh the
above benefits on some targets. So add a knob to prefer the waker
CPU having only 1 runnable task over idle CPUs in the waker cluster.

Change-Id: Id974748c07625c1b19112235f426a5d204dfdb33
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2016-10-02 10:52:06 +05:30
Linux Build Service Account
e4e58248ef Merge "usb: gadget: f_cdev: Fix memory leak with func_name" 2016-10-01 10:41:53 -07:00
Linux Build Service Account
2c2e30e5f3 Merge "usb: gadget: f_cdev: Remove func_name and port_num attributes" 2016-10-01 10:41:52 -07:00
Pavankumar Kondeti
7c3461a6ac sched: Fix a division by zero bug in scale_exec_time()
When cycle_counter is used to estimate the frequency, calling
update_task_ravg() twice on the same task without refreshing
the wallclock results in a division by zero bug. Add a safety
check in update_task_ravg() to prevent this.

The above bug is hit from __schedule() when next == prev. There
is no need to call update_task_ravg() twice for PUT_PREV_TASK
and PICK_NEXT_TASK events for the same task. Calling
update_task_ravg() with TASK_UPDATE event is sufficient.

Change-Id: Ib3af9004f2462618c535b8195377bedb584d0261
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2016-10-01 10:05:08 +05:30
Linux Build Service Account
0c1bf6e64e Merge "ASoC: soc: change audio cpe drivers to use %pK" 2016-09-30 18:24:04 -07:00
Linux Build Service Account
b9a2515e19 Merge "msm: secure_buffer: Add VMID_CP_CAMERA_PREVIEW" 2016-09-30 18:24:04 -07:00
Linux Build Service Account
9ee3ab3d93 Merge "scsi: ufs: gate ref_clk during aggressive clk gating" 2016-09-30 18:24:03 -07:00
Linux Build Service Account
d764916497 Merge "clk: qcom: Add support to register rpm-smd clocks" 2016-09-30 18:24:02 -07:00
Linux Build Service Account
8bfc0b3d0a Merge "msm: kgsl: Change GPU clock gating sequence for A4XX and A5XX" 2016-09-30 18:24:01 -07:00
Linux Build Service Account
456cfbdf20 Merge "msm: kgsl: Fix dispatch_q NULL dereference" 2016-09-30 18:24:01 -07:00
Linux Build Service Account
36b28a7842 Merge "ASoC: wcd934x: Add support for HPH surge recovery" 2016-09-30 18:23:59 -07:00
Linux Build Service Account
e33b7f64d3 Merge "ASoC: wcd934x: Use correct API for force enable micbias" 2016-09-30 18:23:58 -07:00
Linux Build Service Account
d556394bb8 Merge "ASoC: wcd934x: send TX/RX PGD register CFG to AFE" 2016-09-30 18:23:57 -07:00
Linux Build Service Account
cb9f10e366 Merge "ASoC: wcd934x: add decimator 5 and 6 volume controls" 2016-09-30 18:23:57 -07:00
Linux Build Service Account
4fdc1c78bc Merge "usb: pd: Print out source/sink subtypes" 2016-09-30 18:23:56 -07:00
Linux Build Service Account
bbcb8ab2b1 Merge "clk: qcom: Add support for GCC clock for MSMFalcon" 2016-09-30 18:23:55 -07:00
Linux Build Service Account
eabd3dd413 Merge "msm: ipa: Recycle wan buffer" 2016-09-30 18:23:55 -07:00
Linux Build Service Account
778103250b Merge "power: qpnp-fg-gen3: fix SRAM encodings" 2016-09-30 18:23:53 -07:00
Linux Build Service Account
511ce51b85 Merge "qpnp-smb2: add missing battery psy properties for healthd" 2016-09-30 18:23:53 -07:00
Linux Build Service Account
7d60e8e05c Merge "icnss: Add support for disabling vbatt notification" 2016-09-30 18:23:51 -07:00
Linux Build Service Account
0af03e722d Merge "msm: kgsl: Do not free gpuaddr range if unmap fails" 2016-09-30 18:23:50 -07:00
Linux Build Service Account
e8200cdfa9 Merge "clk: msm: clock-mmss-cobalt: Update the video core clock frequencies" 2016-09-30 18:23:50 -07:00
Linux Build Service Account
92d0361094 Merge "clk: msm: clock: Add the non_local_control_timeout flag to ahb_clk_src" 2016-09-30 18:23:49 -07:00
Linux Build Service Account
21be302cb3 Merge "mam: ipa: always add default flt rule at the end" 2016-09-30 18:23:48 -07:00
Linux Build Service Account
818156d2ac Merge "sched: don't assume higher capacity means higher power in lb" 2016-09-30 18:23:48 -07:00
Linux Build Service Account
627381d09a Merge "msm: sde: Adjust SDE rotator clock and BW calculation" 2016-09-30 18:23:47 -07:00
Linux Build Service Account
789809fbfc Merge "msm: camera: Add regulator enable and disable independent of CSID" 2016-09-30 18:23:46 -07:00
Linux Build Service Account
847de6a415 Merge "scsi: ufs-debugfs: Fix hba access" 2016-09-30 18:23:45 -07:00
Linux Build Service Account
e9ad6b6beb Merge "msm: ipa: unlock WLAN doorbell register access" 2016-09-30 18:23:45 -07:00
Linux Build Service Account
9aa659eeb2 Merge "ASoC: wcd934x: Add support for digital core power collapse" 2016-09-30 18:23:44 -07:00
Linux Build Service Account
3661c2fbd0 Merge "ARM: dts: msm: Add 2.3 GHz performance cluster support on MSMCOBALT v2" 2016-09-30 18:23:42 -07:00
Linux Build Service Account
1e2257a17f Merge "usb: pd: Clear requested_voltage/current values on disconnect" 2016-09-30 18:23:41 -07:00
Linux Build Service Account
74388a6568 Merge "clk: msm: Fix compilation for clock_debug_print_enabled" 2016-09-30 18:23:41 -07:00
Linux Build Service Account
d29edb4be4 Merge "ARM: dts: msm: Change L7A/L17A/L25A on msmcobalt" 2016-09-30 18:23:40 -07:00
Linux Build Service Account
e59d6b749b Merge "usb: pd: Add support to set the maximum speed via extcon" 2016-09-30 18:23:39 -07:00
Linux Build Service Account
abf71ed419 Merge "clk: qcom: Add support for regulator based GDSC control" 2016-09-30 18:23:36 -07:00
Linux Build Service Account
a19c18eb4e Merge "ASoC: msm: limit audiosphere driver logics to legacy soc" 2016-09-30 18:23:35 -07:00
Linux Build Service Account
131997f11f Merge "clk: msm: clock-mmss-cobalt: Update FMAXes for camera clocks on MSMCOBALT" 2016-09-30 18:23:35 -07:00
Linux Build Service Account
3c3421d8e0 Merge "ASoC: wsa881x: Avoid removing of already deleted timer object" 2016-09-30 18:23:34 -07:00
Linux Build Service Account
92654f0d1d Merge "PM / devfreq: bimc-bwmon: Fix rounding error" 2016-09-30 18:23:33 -07:00
Linux Build Service Account
9919a21fd9 Merge "arm64: Add back print of processor name and rev" 2016-09-30 18:23:33 -07:00
Linux Build Service Account
8c17676735 Merge "ecryptfs: forbid opening files without mmap handler" 2016-09-30 18:23:32 -07:00
Linux Build Service Account
4b2199d820 Merge "sched: panic on corrupted stack end" 2016-09-30 18:23:31 -07:00
Linux Build Service Account
d11cd1d072 Merge "netfilter: x_tables: validate e->target_offset early" 2016-09-30 18:23:30 -07:00