OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agoARM: dts: msm: add wil6210 node for msmcobalt
Maya Erez [Thu, 19 May 2016 17:26:35 +0000 (20:26 +0300)]
ARM: dts: msm: add wil6210 node for msmcobalt

Wil driver is needed for 11ad wireless card.

CRs-Fixed: 1001827
Change-Id: I9b6109ccaf2858732a779d781222422c928128a1
Signed-off-by: Maya Erez <merez@codeaurora.org>
8 years agodefconfig: Enable EA driver for msmcortex targets
Archana Sathyakumar [Wed, 18 May 2016 17:48:36 +0000 (11:48 -0600)]
defconfig: Enable EA driver for msmcortex targets

Enable energy aware driver for msmcortex targets to support energy aware
scheduler feature.

CRs-fixed: 1018108
Change-Id: I5745dbcbb946ee2f937d1e77a68a4e87bc85e08e
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
8 years agodiag: Fix possible kernel addresses leak
Manoj Prabhu B [Tue, 12 Apr 2016 05:57:39 +0000 (11:27 +0530)]
diag: Fix possible kernel addresses leak

This patch addresses kernel addresses leak by changing
the format specifier to adhere to the kptr_restrict system setting.

CRs-Fixed: 987013
Change-Id: I32649a26f54d96c56d80aa2a1bd5f5d9dd0dd9d3
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
8 years agosoc: qcom: pil: timeouts to be disabled from pil-imem
Puja Gupta [Sat, 14 May 2016 01:48:49 +0000 (18:48 -0700)]
soc: qcom: pil: timeouts to be disabled from pil-imem

Allow modem mba, modem pbl and err_ready timeouts to be disabled by
writing to starting of pil_imem region.

CRs-Fixed: 1015492
Change-Id: I786d8edcd89e3624ef05ffc9a6953a8f840bbac0
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
8 years agoARM: dts: msm: Add DSP memory region for msmcobalt
Sathish Ambley [Wed, 11 May 2016 02:08:36 +0000 (19:08 -0700)]
ARM: dts: msm: Add DSP memory region for msmcobalt

Add DSP memory region node that allows for buffers
to be created to be shared with DSP.

Change-Id: Iffd95234813a5dcd8ab7ec07a4ff1d2c679bb26f
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
8 years agoARM: dts: msm: disable PCIe on msmcobalt RUMI and SIM
Tony Truong [Tue, 17 May 2016 01:04:01 +0000 (18:04 -0700)]
ARM: dts: msm: disable PCIe on msmcobalt RUMI and SIM

PCIe is not used or tested on RUMI or SIM for msmcobalt.
Thus, disable PCIe on these platforms.

Change-Id: I0682801c0893a1b1516033b2ec0b0e2ec2713fdd
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agomsm: ADSPRPC: Support for secure context banks
Sathish Ambley [Fri, 11 Sep 2015 21:55:37 +0000 (14:55 -0700)]
msm: ADSPRPC: Support for secure context banks

Add support for secure session that checks whether the
buffer being passed was allocated from a secure heap and
appropriately maps the buffers in the secure context bank.

Change-Id: If590f65d033e264c04f0ad782895b02765ff4f3d
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
8 years agoARM: dts: msm: add HW event device for msmcobalt
Shashank Mittal [Mon, 2 May 2016 23:14:22 +0000 (16:14 -0700)]
ARM: dts: msm: add HW event device for msmcobalt

Add device node for HW event driver. HW event driver can be used to
configure HW events on msmcobalt device.

Change-Id: I5e633e798a0655d783554538b83b4642ec428c8c
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoARM: dts: msm: Add TCSR_USB3_DP_PHYMODE register on msmcobalt
Hemant Kumar [Fri, 13 May 2016 01:34:37 +0000 (18:34 -0700)]
ARM: dts: msm: Add TCSR_USB3_DP_PHYMODE register on msmcobalt

This register write allows to select the usb3 phy mode. It is
recommended to explicitly select the usb3 phy mode before
programming the phy init sequence.

Change-Id: I2cb648b976d72d2020357881768674241557c56b
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agousb: phy: qmp: Add support to select usb3 phy mode
Hemant Kumar [Thu, 12 May 2016 01:26:31 +0000 (18:26 -0700)]
usb: phy: qmp: Add support to select usb3 phy mode

qmp phy can run in display port mode or in usb3 mode.
It is recommended to explicitly select the usb3 phy
mode before programming the phy init sequence, since
TCSR_USB3_DP_PHYMODE register is commonly used to
select mode between display port driver as well as
ssphy driver.

Change-Id: I270596868762ccd4f2f2cc9b0daaca647a2bee88
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agomsm: vidc: Enabling DPB-OPB split for NV12 color format
Praneeth Paladugu [Tue, 5 Apr 2016 00:13:33 +0000 (17:13 -0700)]
msm: vidc: Enabling DPB-OPB split for NV12 color format

Video firmware will send a HFI_PIC_STRUCT field in sequence changed
event, which indicates whether the clip is interlaced or progressive.
If the color format is NV12 and the clip is interlaced, DPB mode
would be combined NV12 while the DPB mode is split i.e. DPB is in
UBWC and OPB is in NV12. Also combining the pic struct change and
bit depth change into a single event to the userspace.

CRs-fixed: 1017209
Change-Id: Ife71e31622a53d0ea4cc418d434998e710352e10
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
8 years agoiommu/arm-smmu: configure stream IDs for PCI-e devices dynamically
Mitchel Humpherys [Wed, 4 May 2016 23:07:54 +0000 (16:07 -0700)]
iommu/arm-smmu: configure stream IDs for PCI-e devices dynamically

PCI-e devices on MSM systems need to have their stream IDs configured at
device add time, since they're not known at system design time and
therefore can't be placed in the device tree.  Add the necessary calls
into the MSM PCI-e driver to obtain stream IDs for devices behind PCI-e
at device add time.

CRs-Fixed: 1012229
Change-Id: I3645a525c3ab5ef6d89eeaa99894542bd3aa261f
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
8 years agosoc: qcom: ramdump: Fix bug introduced in kernel upgrade
Puja Gupta [Wed, 18 May 2016 19:19:10 +0000 (12:19 -0700)]
soc: qcom: ramdump: Fix bug introduced in kernel upgrade

Uncomment some code which got commented during kernel upgrade by mistake

CRs-Fixed: 1015492
Change-Id: Id46bff3b3803d1316ea769581c0f1b0e7fa41498
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
8 years agoASoC: msmcobalt: Add slimbus_6_rx back-end dai-link and hostless
Kuirong Wang [Sat, 7 May 2016 22:06:58 +0000 (15:06 -0700)]
ASoC: msmcobalt: Add slimbus_6_rx back-end dai-link and hostless

Add slimbus 6 playback hostless and slimbus_6_rx back-end
dai-link to enable independent backend for different devices
during audio playback.

Change-Id: Idac26ac45f1177db96fc3fb5d4a5e2f837f86d1b
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
8 years agoASoC: msmcobalt: Add USB audio via ADSP support
Kuirong Wang [Thu, 5 May 2016 17:37:58 +0000 (10:37 -0700)]
ASoC: msmcobalt: Add USB audio via ADSP support

Add USB audio via ADSP support in the machine driver.

Change-Id: I9773555fb025a41afd27e078f6ef23a4d140128f
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
8 years agoASoC: pcm: Add support for fixup callback
Anish Kumar [Tue, 9 Sep 2014 07:57:49 +0000 (00:57 -0700)]
ASoC: pcm: Add support for fixup callback

Fixup callback is added for dais which
do not follow the FE and BE convention
and is directly controlled by userspace
such as hostless dais. This will restrict
the hw_params based on what is supported by
hardware rather than blindly setting what
is given by userspace.

Change-Id: I401c70ab5de1df10363ec808cb68f72d8d74af96
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agoARM: dts: msm: do not configure secondary pon reset for pmicobalt
Subbaraman Narayanamurthy [Wed, 11 May 2016 00:46:41 +0000 (17:46 -0700)]
ARM: dts: msm: do not configure secondary pon reset for pmicobalt

As per the hardware documentation, PON device in pmicobalt need
not have to be configured during any type of reset. Hence remove
the DT property "qcom,secondary-pon-reset" from pmicobalt PON
device.

CRs-Fixed: 1001210
Change-Id: Iaf46a2247e70e17ed0b0032038860bfa64e7f7c6
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
8 years agoARM: dts: msm: Update MPM interrupt mappings for cobalt
Mahesh Sivasubramanian [Thu, 12 May 2016 16:59:26 +0000 (10:59 -0600)]
ARM: dts: msm: Update MPM interrupt mappings for cobalt

Update MPM interrupt mapping to monitor system wakeup interrupts per HW
specfication.

Change-Id: I0fff3caee8f4e2e1ed4e036f9fa9e6717f5cdfd7
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
8 years agoiommu/iommu-debug: Maintain list of domains during alloc
Susheel Khiani [Tue, 25 Aug 2015 11:55:42 +0000 (17:25 +0530)]
iommu/iommu-debug: Maintain list of domains during alloc

Current list of domains in iommu-debug was only
maintained during attach/detach calls. But for
masters like graphics this won't account for all
the domains, as it allocates multiple different
domains but attaches only one domain at a time.

Add support for maintaining list of unattached
domains too by adding them to debug_attachments
list during domain alloc but keeping dev as NULL.
We would add entry in debugfs attachment directory
only on actual attach call.

Change-Id: Ifde043e5c39f356b4187a30cbdf020ee943618f1
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
8 years agoarm64: process: Use continuation prints for show_data
Trilok Soni [Sun, 1 May 2016 22:38:50 +0000 (15:38 -0700)]
arm64: process: Use continuation prints for show_data

show_data messages for the value at the addresses
needs to printed in the continuation.

CRs-Fixed: 1010438
Change-Id: I41c48e090ec4c44aeccd0e8fbbcb814b55c0416d
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
8 years agoASoC: compare CPU DAI stream name to find BE DAI
Banajit Goswami [Sun, 5 Jul 2015 05:14:27 +0000 (22:14 -0700)]
ASoC: compare CPU DAI stream name to find BE DAI

While setting up route for a particular device, compare
stream name of CPU DAI and Backend DAI to find the correct
Backend DAI.

Change-Id: Ic3f7c0e5b2a1055e7fdf52c78ded797a9a126d03
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
8 years agomsm: wlan: Add new country XA
Amar Singhal [Tue, 17 May 2016 18:26:16 +0000 (11:26 -0700)]
msm: wlan: Add new country XA

New country XA is based on Japan. The channels 5170-5250 are marked
as PASSIVE.

CRs-Fixed: 990486
Change-Id: I6dad4ce061316680239b3f9c23e64b23a875eb75
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
8 years agousb: gadget: gsi: Use drain_workqueue instead of flush_workqueue
Mayank Rana [Thu, 12 May 2016 00:57:45 +0000 (17:57 -0700)]
usb: gadget: gsi: Use drain_workqueue instead of flush_workqueue

USB GSI function driver uses usb_ipa_w work to queue different events
like EVT_CONNECTED, EVT_DISCONNECTED and more. ipa_event_handler()
uses those events as inputs to make necessary decision about performing
connect and disconnect with IPA driver. It is required that before USB
GSI driver calls ipa_usb_deinit_teth_prot(), it has invoked IPA
disconnect API ipa_usb_xdci_disconnect() if it has called
ipa_usb_xdci_connect() API. Current code is making sure that any
running usb_ipa_w work is being completed before calling
ipa_usb_deinit_teth_prot() but if work is not scheduled and pending,
ipa_usb_xdci_connect() is not called (i.e. later when usb_ipw_w work is
scheduled, EVT_DISCONNECTED is being processed but gsi_unbind() has
changed sm_state as STATE_UNINITIALIZED which results into no-ops.)
which results into USB and IPA driver go out of sync in terms of
expected state machine. Hence calling ipa_usb_init_teth_prot() on next
USB cable connect from gsi_bind_config() fails which results into no
USB GSI functionality. Fix this issue by using drain_workqueue() instead
of flush_workqueue() which makes sure that re-queue work is flushed.

CRs-Fixed: 1005018
Change-Id: I64ff559b85f901688a4abd0110ebb32a5317e34d
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
8 years agodefconfig: arm64: msmcortex: enable QPNP_POWER_ON support for msmcobalt
Subbaraman Narayanamurthy [Fri, 8 Apr 2016 20:18:50 +0000 (13:18 -0700)]
defconfig: arm64: msmcortex: enable QPNP_POWER_ON support for msmcobalt

Enable QPNP_POWER_ON device support for msmcobalt platform so
that the power-on/off reasons of PMIC PON devices can be
printed out during bootup. Also, based on the reset type, PON
devices needs to be configured as per the hardware documentation.

CRs-Fixed: 1001210
Change-Id: I3db5f233e7c182e330f5144b4ab0d0769abf4a8d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
8 years agodefconfig: msm: Sync up with Kbuild defaults
Mitchel Humpherys [Tue, 17 May 2016 21:14:36 +0000 (14:14 -0700)]
defconfig: msm: Sync up with Kbuild defaults

The defconfigs have gotten out of sync again.  Sync them up.

CRs-Fixed: 1017606
Change-Id: I7d2ac7172396e5e08cde8ef156685222eb8941d8
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
8 years agoARM: dts: msm: Add snapshot of power-on.h
Subbaraman Narayanamurthy [Fri, 8 Apr 2016 01:46:48 +0000 (18:46 -0700)]
ARM: dts: msm: Add snapshot of power-on.h

This DT bindings header file snapshot is taken as of msm-3.18
'commit 0b20839e37187 ("Merge "slim-msm: Synchronize SSR callbacks"")'.

CRs-Fixed: 1001210
Change-Id: Ic132efb650d4e8de561c3d1f95a281afeef4ce42
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
8 years agomsm: camera: sensor: Updating soc layer clock API for i2c drivers
Sureshnaidu Laveti [Tue, 3 May 2016 22:17:19 +0000 (15:17 -0700)]
msm: camera: sensor: Updating soc layer clock API for i2c drivers

Updating SOC layer clock API to support both platform drivers and
i2c driver.

Change-Id: I3d4a2e5c778c23dd80644080fdad7512c5e71e33
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
8 years agoblock: zram: Fix compilation issues
Satya Durga Srinivasu Prabhala [Wed, 11 May 2016 18:36:13 +0000 (11:36 -0700)]
block: zram: Fix compilation issues

While porting changes to 4.4, looks like some functionality lost
and causing below compilation issues if we try to enable ZRAM.

[1]
drivers/block/zram/zram_drv.c: In function 'zram_bvec_write':
drivers/block/zram/zram_drv.c:724:9: error: 'ALLOC_ERROR_LOG_RATE_MS' \
undeclared (first use in this function)
         ALLOC_ERROR_LOG_RATE_MS))
         ^
drivers/block/zram/zram_drv.c:724:9: note: each undeclared identifier \
is reported only once for each function it appears in
drivers/block/zram/zram_drv.c: In function 'zram_add':
drivers/block/zram/zram_drv.c:1239:34: error: 'struct zram' has no \
member named 'queue'
  __set_bit(QUEUE_FLAG_FAST, &zram->queue->queue_flags);
                                  ^
make[4]: *** [drivers/block/zram/zram_drv.o] Error 1
make[3]: *** [drivers/block/zram] Error 2
make[2]: *** [drivers/block] Error 2
make[1]: *** [drivers] Error 2

[2]
drivers/block/zram/zram_drv.c: In function 'zram_add':
drivers/block/zram/zram_drv.c:1241:34: error: 'struct zram' \
has no member named 'queue'
  __set_bit(QUEUE_FLAG_FAST, &zram->queue->queue_flags);
                                  ^
make[4]: *** [drivers/block/zram/zram_drv.o] Error 1
make[3]: *** [drivers/block/zram] Error 2
make[2]: *** [drivers/block] Error 2

CRs-Fixed: 1013947
Change-Id: I4f7944069306ba92e1fd82625bc15c7fa3bcdb0c
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
8 years agoARM: dts: msm: Enable Camera VFE, Pproc, jpeg nodes for msmcobalt
JinHee Kim [Sun, 8 May 2016 14:38:46 +0000 (07:38 -0700)]
ARM: dts: msm: Enable Camera VFE, Pproc, jpeg nodes for msmcobalt

Enable camera VFE, Pproc and jpeg nodes in dtsi.

CRs-Fixed: 1017151
Change-Id: I33b172ca712064dcc86a87ae413f868f8d7d4342
Signed-off-by: JinHee Kim <jinheek@codeaurora.org>
8 years agoperf: duplicate deletion of perf event
Srinivasarao P [Tue, 1 Mar 2016 06:46:03 +0000 (12:16 +0530)]
perf: duplicate deletion of perf event

a malicious app can open a perf event with constraint_duplicate
bit set, disable the event, and close the fd.  On closing the fd,
the perf_release() modification causes the kernel to clean up
the event as if it still were enabled, leading to the event
being removed from a list twice.

CRs-Fixed: 977563
Change-Id: I5fbec3722407d2f3d0ff0d9f7097c5889e31fd62
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
8 years agoextcon: Add support for type-c connector orientation
Hemant Kumar [Mon, 16 May 2016 23:31:00 +0000 (16:31 -0700)]
extcon: Add support for type-c connector orientation

Type-C cable can be connected in two different orientations.
Connector orientation information is required to configure
super speed phy lane. Extcon driver provides this information
using EXTCON_USB_CC.

Change-Id: Ib2c86970b30cb575146438611a11fde17ab106e8
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoclk: msm: osm: fix cores in retention as inactive selection
Osvaldo Banuelos [Fri, 13 May 2016 23:55:21 +0000 (16:55 -0700)]
clk: msm: osm: fix cores in retention as inactive selection

When SPM_CORE_RET_MAPPING is set to 1, cores in retention
are treated as inactive by the OSM. However, currently
this register is programmed to 0 when the flag to treat
cores in retention as inactive is specified. Fix this.

Change-Id: Ibc5df71ddd0cfdabf82d3c1e47efca0d88823a2f
CRs-Fixed: 1017123
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agousb: gadget: gsi: Decrement USB gadget pm usage count on cable disconnect
Mayank Rana [Thu, 12 May 2016 01:26:35 +0000 (18:26 -0700)]
usb: gadget: gsi: Decrement USB gadget pm usage count on cable disconnect

Currently USB GSI function driver increments USB gadget device's
pm usage count on set_alt() and decrements on USB bus suspend or
USB cable disconnect case. Current code is not decrementing this
usage count when sm_state is STATE_INITIALIZED and USB cable is
disconnected (i.e. event EVT_DISCONNECTED posted). Fix this issue
by decrementing USB gadget device's pm usage count by addding check
for event EVT_DISCONNECTED when sm_state is STATE_INITIALIZED.

CRs-Fixed: 1003242
Change-Id: I4d6c9ce254f4c4139313dfd33da6c8745f34a1d3
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
8 years agomsm: mdss: Add support for concurrent writeback
Jeykumar Sankaran [Mon, 29 Feb 2016 22:47:10 +0000 (14:47 -0800)]
msm: mdss: Add support for concurrent writeback

This change adds support for concurrent writeback in supported
targets. The client requests for concurrent writeback by
selecting the data point in output buffer flags.

Change-Id: Ic108ce94daef4f96d1fa27b4057e49c01b9e9b8e
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
8 years agosched: fix compile error where !CONFIG_SCHED_HMP
Joonwoo Park [Mon, 16 May 2016 18:14:24 +0000 (11:14 -0700)]
sched: fix compile error where !CONFIG_SCHED_HMP

Move trace event sched_get_task_cpu_cycles() under CONFIG_SCHED_HMP=y
to fix compile error.

Change-Id: Ie00cafeaceedb44100bda97f996ac3efa0e6c91f
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
8 years agoclk: msm: clock-alpha-pll: Program the fabia PLL calibration register
Deepak Katragadda [Wed, 4 May 2016 00:13:56 +0000 (17:13 -0700)]
clk: msm: clock-alpha-pll: Program the fabia PLL calibration register

Add programming the PLL_CAL_L_VAL register to the fabia PLL
set_rate sequence. This is required on MSMCOBALT v1 as a
workaround.

CRs-Fixed: 1016938
Change-Id: I298acf633228b2c565736bf7bfd446d96f4e1983
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agoKconfig: arm64: Update dependencies for CONFIG_FORCE_PAGES
Liam Mark [Wed, 28 Oct 2015 21:07:12 +0000 (14:07 -0700)]
Kconfig: arm64: Update dependencies for CONFIG_FORCE_PAGES

Currently we don't support having both CONFIG_DEBUG_RODATA
and CONFIG_FORCE_PAGES enabled at the same time.
Update the dependencies for CONFIG_FORCE_PAGES to enforce
this.

If there is a need for read only support with
CONFIG_FORCE_PAGES enabled then enable
CONFIG_KERNEL_TEXT_RDONLY instead of CONFIG_DEBUG_RODATA.

Change-Id: I9ee1732ed0673edc7272d32469d08133fba9637f
Signed-off-by: Liam Mark <lmark@codeaurora.org>
8 years agomm: cma: sleep between retries in cma_alloc
Liam Mark [Fri, 23 Oct 2015 19:14:11 +0000 (12:14 -0700)]
mm: cma: sleep between retries in cma_alloc

Port support from 3.10 for retrying cma allocations
to 3.18 to help resolve cma allocation failures.

It was observed that CMA pages are sometimes getting
pinned down by BG processes scheduled out in their exit
path. Since BG processes have lower priority they end up
getting less time slice by scheduler there by consuming
more time to free up CMA pages.

Also when a process is being forked copy_one_pte
may create copy-on-write mappings, when this is done
the page _count and page _mapcount are each
incremented sequentially. If the process is context
switched out after incrementing the _count but before
incrementing the _mapcount then the page will appear
temporarily pinned.

So instead of failing to allocate and directly
returning an error on the CMA allocation path we do 2
retries, with sleeps, to give the system an opportunity
to unpin any pinned pages.

Change-Id: I022a9341f8ee44f281c7cb34769695843e97d684
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Liam Mark <lmark@codeaurora.org>
8 years agoarm64: mm: skip 1GB mappings on force pages
Shiraz Hashim [Sat, 12 Sep 2015 06:27:31 +0000 (11:57 +0530)]
arm64: mm: skip 1GB mappings on force pages

While force mapping regions as page, do not go for 1GB
block mapping.

Change-Id: I85ca7046626048acb7a138dc174dc40efbba4ac9
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
8 years agoarm64: mmu: dma remap fail with 1GB block mapping
Shiraz Hashim [Fri, 5 Jun 2015 14:41:40 +0000 (20:11 +0530)]
arm64: mmu: dma remap fail with 1GB block mapping

The provision to map 1GB block, gives a problem during
dma_contiguous_remap when it attempts to remaps the dma
buffers into 4K. During this attempt to remap dma buffers
it overwrites pgd mapping for 1G block, thus leaving an
unmapped hole.

Managing remapping of dma regions with 1G block mapping is
difficult hence avoid mapping 1G block and switch to
SECTION_SIZE mapping (2MB) when memory region overlaps
with dma buffers range.

Change-Id: I2aa4119b3aeb328a2b95cf22656d2ec36012716f
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
8 years agomsm: kgsl: Port GPU bus dcvs to kernel 4.4
Oleg Perelet [Wed, 11 May 2016 00:30:07 +0000 (17:30 -0700)]
msm: kgsl: Port GPU bus dcvs to kernel 4.4

Port GPU dcvs from kernel 3.18 to kernel 4.4.

CRs-Fixed: 1013343
Change-Id: Ide662b12aa59effa541febcd758426e72b4a1b12
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
8 years agodefconfig: arm64: msmcortex: Enable nqx nfc driver
Gaurav Singhal [Thu, 12 May 2016 06:13:04 +0000 (11:43 +0530)]
defconfig: arm64: msmcortex: Enable nqx nfc driver

Enabled the NQxxx nfc driver on msmcobalt.

Change-Id: Ia56a64c9fa5973afe8c9830d42bd2f4228065f2f
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
8 years agoNFC: Add snapshot of NQxxx NFC driver
Gaurav Singhal [Thu, 5 May 2016 07:38:19 +0000 (13:08 +0530)]
NFC: Add snapshot of NQxxx NFC driver

Add the latest version of NQxxx NFC driver
from msm-3.18.

This change is a combination of following changes:

1) NFC: add NQxxxx driver

commit <356203701b7fd61b2d9776fac4fac6427735248b>

2) NFC: change reset and read flow

commit <7620346454865b81d7086167d531aea7bb716926>

3) NFC: Enable DMA and CLK_REQ gpio config issue fix

commit <150dbf117709b5677f86e5ced86b468731019b8b>

4) NFC: Fix function descriptions

commit <c0248d70200c8e09a983758750632b7a75e422d3>

5) nq-nci: enable NFCC hardware check and clock to NQxx

commit <2a92c1d6135f2d1e8fe3f2afcd290a2b1311a5a2>

6) nq-nci: XO shut down issue fix

commit <8938151d4650fca6d42efdbce138aea9bad7eca0>

7) NFC: Remove sleep from irq handler

commit <8ea2c805108cbf59b8e2abf87ee207fbf08fad97>

8) NFC: Remove DMA allocation and stack use in write

commit <c1552090e4c46e1eeca756d0a7b4427f94eab0c3>

CRs-Fixed: 890678, 892310, 955860, 968399, 993292
Change-Id: Ibb861ebdc63d45699369e23c077589d37e024b5e
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
8 years agodefconfig: msmcortex: enable bonding and TC drivers
Maya Erez [Wed, 11 May 2016 08:42:54 +0000 (11:42 +0300)]
defconfig: msmcortex: enable bonding and TC drivers

bonding and TC drivers (sch_multiq) are required
for fast session transfer feature.

CRs-Fixed: 1001827
Change-Id: I08ee482ddc6c189241a69452fb12335d1ffb626f
Signed-off-by: Maya Erez <merez@codeaurora.org>
8 years agomsm: ipa: Fix to memory leak when sending non-linear data
Sridhar Ancha [Tue, 10 May 2016 12:36:17 +0000 (18:06 +0530)]
msm: ipa: Fix to memory leak when sending non-linear data

In cases where source ep or dest ep is not valid, descriptor
memory allocated for frag skb's is not freed. Make a change
to free the memory in such error cases.

Change-Id: Ie15c48ae1bb34e304795607a09c753360eb015ec
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
8 years agomsm: ipa3: make function names consistent with ipav2
Sridhar Ancha [Thu, 12 May 2016 12:30:49 +0000 (18:00 +0530)]
msm: ipa3: make function names consistent with ipav2

Make changes to use consistent function names across v2 and V3
during SSR functionality.

Change-Id: Ib9c79f4795d0be9ca00b3cda984ed89b61e58b02
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
8 years agodefconfig: msm64: msm: Enable v4l2 video driver
Chinmay Sawarkar [Wed, 20 Apr 2016 03:16:50 +0000 (20:16 -0700)]
defconfig: msm64: msm: Enable v4l2 video driver

Enable v4l2 video driver on msmcobalt for decode
and encode sessions.

Change-Id: Ibda63abad6a469c0a5f738c51ee1e740d0f1ce7a
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
8 years agoARM: dts: msm: Enable VMEM node
Vikash Garodia [Sat, 14 May 2016 00:43:26 +0000 (17:43 -0700)]
ARM: dts: msm: Enable VMEM node

Enable VMEM node and configure the
size as per msmcobalt.

CRs-Fixed: 1008076
Change-Id: I8bbb827e6fcddb12bf452279f5f7d60b614c2915
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
8 years agodefconfig: arm64: enable common log driver for msmcobalt
Shashank Mittal [Tue, 3 May 2016 19:54:13 +0000 (12:54 -0700)]
defconfig: arm64: enable common log driver for msmcobalt

Common log driver can be used to register entries for memory dump table.

Change-Id: I75be0d467c8f7c2db854987598770f9798688e51
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agodefconfig: arm64: enable DCC device driver
Shashank Mittal [Tue, 3 May 2016 19:47:16 +0000 (12:47 -0700)]
defconfig: arm64: enable DCC device driver

Set MSM_DCC config to enable support for Data Capture and Compare(DCC)
device.

Change-Id: Ibc2de3c142b8df4ac86e4628199726750f19dac3
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agomemory-dump: add support to allocate memory for scan dumps
Shashank Mittal [Thu, 25 Feb 2016 19:24:09 +0000 (11:24 -0800)]
memory-dump: add support to allocate memory for scan dumps

Add support to allocate memory for CPU scan dumps. This momeory can be
used to save CPU scan dumps at the time of a crash.

Change-Id: I9d644f18882729d187075e885bc2e8c02c5caf36
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoARM: dts: msm: add DCC device on msmcobalt
Shashank Mittal [Thu, 10 Mar 2016 22:31:29 +0000 (14:31 -0800)]
ARM: dts: msm: add DCC device on msmcobalt

Add node to add support for Data Capture and Compare (DCC) device on
msmcobalt.
DCC block can be used to capture user programmed memory mapped registers
or to run CRC on user programmed memory region.

Change-Id: I1d302e51693315998d915ca44f739fb58ef9e4a5
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoARM: dts: msm: Add clock rates in camera node for all boards
Sureshnaidu Laveti [Fri, 13 May 2016 23:48:38 +0000 (16:48 -0700)]
ARM: dts: msm: Add clock rates in camera node for all boards

Adding clock rates to camera node instead of statically
reading from sensor driver so that clock names and
rates can be read from camera node using common software on chip
API and if needed it can be overrided with the values obtained from
userspace sensor drivers.

Change-Id: Icf950194191cbd0887740d692bb88cc650430fb8
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
8 years agosoc: qcom: dcc: add check if sram data oversteps
Xiaogang Cui [Fri, 9 Oct 2015 08:33:08 +0000 (16:33 +0800)]
soc: qcom: dcc: add check if sram data oversteps

If the size of captured data oversteps over SRAM boundary then
it causes corruption of configuration data. Add boundary check
while programming configuration linked list in SRAM, to avoid
this problem.

Change-Id: Idd33f53560585fdbfee4d3822fd93d6f3a365e17
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: dcc: update errno of dcc probe failure
Xiaogang Cui [Thu, 5 Nov 2015 06:00:36 +0000 (11:30 +0530)]
soc: qcom: dcc: update errno of dcc probe failure

Acorrding to function really_probe, the ENODEV will not throw
any error message. Changing ENODEV to EINVAL to notify error
message if probe fails.

Change-Id: Ia3187fadd4f0073e5e141595810bb8b3c7aab429
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: dcc: update xpu probe logic to fix failure
Xiaogang Cui [Fri, 16 Oct 2015 09:16:22 +0000 (17:16 +0800)]
soc: qcom: dcc: update xpu probe logic to fix failure

TZ image which has registered SCM_SVC_DISABLE_XPU sevice maybe used by
none-dcc-xpu device. Update the xpu check logic to fix the probe
failure issue.

Change-Id: Id2b38d93e7c12648292546592144eda1e82d76be
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: dcc: add support for DCC XPU lock/unlock request
Shashank Mittal [Wed, 24 Jun 2015 00:11:22 +0000 (17:11 -0700)]
soc: qcom: dcc: add support for DCC XPU lock/unlock request

Add support to request TZ to lock and unlock DCC XPU.

DCC XPU is unlocked before accessing DCC and is locked back again after
configuring DCC.

Change-Id: I8815f65551df0b80f7ecdcaa338a50db8d9b04f5
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoARM: dts: msm: Disable LMH driver probe for msmhamster rumi
Ram Chandrasekar [Wed, 11 May 2016 18:43:42 +0000 (12:43 -0600)]
ARM: dts: msm: Disable LMH driver probe for msmhamster rumi

Tsens controller wont be able to send any temperature data in RUMI.
This will block LMH driver in HLOS during profile switch.

Disable LMH driver probe for RUMI to avoid this profile switch.

CRs-Fixed: 1015361
Change-Id: I729af5235109cf8b09d4c89a339a4b4f14926d26
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
8 years agosoc: qcom: dcc: replace readx_poll_timeout with readl_poll_timeout
Shashank Mittal [Wed, 20 May 2015 22:30:13 +0000 (15:30 -0700)]
soc: qcom: dcc: replace readx_poll_timeout with readl_poll_timeout

Use readl_poll_timeout instead of readx_poll_timeout because
readl_poll_timeout already uses __raw_readl to read IO register.

Change-Id: I86d93bc63cf3282e360eed29732a708ee02cf6df
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: dcc: change configuration programming interface
Shashank Mittal [Thu, 14 May 2015 00:01:45 +0000 (17:01 -0700)]
soc: qcom: dcc: change configuration programming interface

Currently user needs to provide base, offset, and length to program
a configuration in DCC.

To simplify user input, this change requires  user to provide just start
address and length. Driver is going to calculate most optimized base,
offset and length to configure user request in SRAM.

Change-Id: Ic1b7b2d4d4ed4baa9e8d33a2b60c10d2e799b211
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: dcc: add support to send SW trigger on/off req to RPM
Shashank Mittal [Fri, 15 May 2015 03:03:07 +0000 (20:03 -0700)]
soc: qcom: dcc: add support to send SW trigger on/off req to RPM

Add support to request RPM to turn on/off DCC SW trigger.

This request can be used to enable/disable DDR training data verification
before DDR frequency switch.

After receiving enable request RPM assumes that DCC is configured in CRC
mode to verify DDR training data. Hence it starts to send SW trigger to
DCC to run CRC on configured data before DDR frequency switch.

Change-Id: I491bc3e41e11a5366162c65907f41f7cbcdd7809
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: dcc: add support for CRC mode
Shashank Mittal [Mon, 11 May 2015 21:57:24 +0000 (14:57 -0700)]
soc: qcom: dcc: add support for CRC mode

In CRC mode DCC can perform CRC on configuration data or system memory
after receiving SW or HW trigger.

Change-Id: Iab0a6ffa92ef6e311054756cfe85d1b2b91743c9
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: dcc: fix uninitialized variable bug in dcc_ll_cfg function
Shashank Mittal [Fri, 15 May 2015 18:13:50 +0000 (11:13 -0700)]
soc: qcom: dcc: fix uninitialized variable bug in dcc_ll_cfg function

Fix bug due to use of uninitialized 'prev_off' variable.

Change-Id: I773f64209b395eb9f2fc82a53d4a2f1b79b081eb
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: dcc: add support for DCC driver
Shashank Mittal [Tue, 14 Apr 2015 01:39:59 +0000 (18:39 -0700)]
soc: qcom: dcc: add support for DCC driver

DCC (Data Capture and Compare) is a DMA engine which is used to save
configuration data or system memory contents during catastrophic failure
or SW trigger.

It can also perform CRC over the same configuration or memory space.

Change-Id: Ic8a804250ab8b7ac501bd186d2e6f7506bb9b21a
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoARM: dts: msm: Enable Silver frequency scaling up to SVS on msmcobalt
Osvaldo Banuelos [Mon, 9 May 2016 18:55:24 +0000 (11:55 -0700)]
ARM: dts: msm: Enable Silver frequency scaling up to SVS on msmcobalt

Add the necessary frequency configuration to the OSM and CPUfreq
device nodes to allow frequency scaling of the Silver cluster in
msmcobalt to SVS Fmax.

Change-Id: I8153e1c2ad9cb320a4c116593b15898dbe2f6ca2
CRs-Fixed: 1014894
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agoARM: dts: msm: restrict VDD_APC voltages to NOM for CPR rev 0 on msmcobalt
Osvaldo Banuelos [Thu, 12 May 2016 00:24:17 +0000 (17:24 -0700)]
ARM: dts: msm: restrict VDD_APC voltages to NOM for CPR rev 0 on msmcobalt

Raise the VDD_APC0 and VDD_APC1 CPR floor voltages to be equal to
the Nominal ceiling voltage on CPR revision 0 parts. Also, increase
the number of supported fuse combos to 8, to support up to 8 CPR
revisions using a single speed bin. This ensures stable operation
on some msmcobalt CPR revision 0 parts that cannot operate
reliably with SVS2/SVS voltages and has no impact to CPR rev 1 and
greater parts.

Change-Id: I6913a168596b34f527f689360f93fdf15b7d2f10
CRs-Fixed: 1014782
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agomsm: mdss: account for multirect when enumerating pipe formats
Adrian Salido-Moreno [Tue, 10 May 2016 19:15:44 +0000 (12:15 -0700)]
msm: mdss: account for multirect when enumerating pipe formats

The pipe format enumeration is not accounting for multi-rect on the
pipe list. Update the loop enumerating formats to account for multiple
rectangles per pipe.

Change-Id: Ief1980e2888525434e876f7cec4357403ca20cb1
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
8 years agosched: use correct Kconfig macro name CONFIG_SCHED_HMP_CSTATE_AWARE
Joonwoo Park [Wed, 11 May 2016 22:05:57 +0000 (15:05 -0700)]
sched: use correct Kconfig macro name CONFIG_SCHED_HMP_CSTATE_AWARE

Fix macro name so CONFIG_SCHED_HMP_CSTATE_AWARE=y to take effect.

Change-Id: I0218b36b2d74974f50a173a0ac3bc59156c57624
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
8 years agosoc: qcom: pil: Fix error path sequence
Puja Gupta [Tue, 10 May 2016 23:09:19 +0000 (16:09 -0700)]
soc: qcom: pil: Fix error path sequence

Fix the clock error path sequence.

CRs-Fixed: 1015492
Change-Id: I20eeadbfcdae16ce9c2feb8b882471683766ec4f
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
8 years agoARM: dts: msm: Disable LMH driver probe for msmcobalt rumi
Ram Chandrasekar [Wed, 11 May 2016 16:55:30 +0000 (10:55 -0600)]
ARM: dts: msm: Disable LMH driver probe for msmcobalt rumi

Tsens controller wont be able to send any temperature data in RUMI.
This will block LMH driver in HLOS during profile switch.

Disable LMH driver probe for RUMI to avoid this profile switch and
lock up.

CRs-Fixed: 1015361
Change-Id: Id54c09e0cf2c3701c10c71d6688417d3f5d4c08e
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
8 years agoRevert "sched: set HMP scheduler's default initial task load to 100%"
Joonwoo Park [Fri, 13 May 2016 21:08:40 +0000 (14:08 -0700)]
Revert "sched: set HMP scheduler's default initial task load to 100%"

This reverts commit 28f67e5a50d7c1bfc ("sched: set HMP scheduler's
default initial task load to 100%") since 100% of init task load
makes too much of power inefficiency on some targets.

CRs-fixed: 1006303
Change-Id: I81b4ba8fdc2e2fe1b40f18904964098fa558989b
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
8 years agoclk: msm: mdss: fix pclk_src_mux clock ops for DSI PLL on msmcobalt
Aravind Venkateswaran [Wed, 11 May 2016 22:17:20 +0000 (15:17 -0700)]
clk: msm: mdss: fix pclk_src_mux clock ops for DSI PLL on msmcobalt

The DSI pixel clock path in the DSI PLL has a mux clock (pclk_src_mux)
which allows the pixel clock to be either sourced out of the VCO clock
or the bitclock.  In the current code, the ops for this mux clock is
overloaded incorrectly which results in the pixel clock being always
sourced out of the bit clock. Fix this by using the default mux clock
ops for this clock.

Change-Id: I39c23b52d17994e28bd3b0d93e8e3dabdb687940
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
8 years agosoc: qcom: glink: Fix race condition in dummy xprt cleanup
Chris Lew [Fri, 6 May 2016 02:59:53 +0000 (19:59 -0700)]
soc: qcom: glink: Fix race condition in dummy xprt cleanup

In glink_core_channel_cleaup there is a race condition while
traversing the channels list. This change holds the xprt
channel spinlock during the list manipulation.

CRs-Fixed: 988266
Change-Id: Idcff59ca1483fd98173255d6258e6771d91dec19
Signed-off-by: Chris Lew <clew@codeaurora.org>
8 years agodefconfig: msm: enable CONFIG_SCHED_DEBUG
Joonwoo Park [Thu, 12 May 2016 21:18:18 +0000 (14:18 -0700)]
defconfig: msm: enable CONFIG_SCHED_DEBUG

Enable CONFIG_SCHED_DEBUG for debugging purpose.

CRs-fixed: 1006303
Change-Id: Iceee806479bc41d7aa32cb78b6ede59cb85fc259
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
8 years agoRevert "defconfig: enable msm serial console on msmcortex perf config"
Runmin Wang [Thu, 12 May 2016 23:49:31 +0000 (16:49 -0700)]
Revert "defconfig: enable msm serial console on msmcortex perf config"

This reverts commit 7b1a1d226391 ("defconfig: enable msm serial console
on msmcortex perf config").
We do not need this change since USB issue is fixed. No longer need
console to connect or disconnect USB.

CRs-Fixed: 1015006
Change-Id: I49154af38f0c59f6add8a38ebbc06f7dcfc85373
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agomsm: mdss: fix wb format enumeration
Adrian Salido-Moreno [Tue, 3 May 2016 20:23:31 +0000 (13:23 -0700)]
msm: mdss: fix wb format enumeration

Enumeration for writeback is not properly done because not all
information from device tree has been retrieved before setting up
supported formats. Moved this call until all data has been retrieved
from device tree and hw pre initialization.

Change-Id: Id228bf7ec564669fa8e9e739e27052de0133cc4d
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
8 years agoqcom: memory_dump: add support to dump DCC data.
Shashank Mittal [Tue, 21 Apr 2015 19:01:58 +0000 (12:01 -0700)]
qcom: memory_dump: add support to dump DCC data.

Data Capture and Compare (DCC) is a DMA engine, to capture or to
perform CRC over configuration data or system memory.

Add ids for DCC registers and sram data.

Change-Id: If76ef1325b1be623626742b0f0172a1675f21d63
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agosoc: qcom: common_log: Fix a memory leak in common_log driver
Prasad Sodagudi [Tue, 12 May 2015 04:35:14 +0000 (10:05 +0530)]
soc: qcom: common_log: Fix a memory leak in common_log driver

Fix the memory leak in common_log_register_log_buf() function
when registering log_first_idx with the memory with dump v2 driver.
Also use kmemleak_not_leak when msm_dump_data_register() calls
are successful to ensure that kmemleak doesn't report it as a memory
leak.

CRs-Fixed: 832905
Change-Id: I36eaeebf821f64dd7503ec823aca3c7aec846bd0
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoqcom: common_log: add support to dump rpm code ram
Sarangdhar Joshi [Fri, 22 May 2015 18:50:19 +0000 (11:50 -0700)]
qcom: common_log: add support to dump rpm code ram

Allocate memory to dump RPM CODE RAM at the time of crash.

Change-Id: I5062d65a095538a508944315e6cc06f430382bf5
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoqcom: common_log: add support to dump VSENSE registers
Shashank Mittal [Wed, 20 May 2015 21:37:36 +0000 (14:37 -0700)]
qcom: common_log: add support to dump VSENSE registers

Allocate memory to dump VSENSE registers at the time of crash.

Change-Id: Ibd896873bc40b723071c66ca7cf1a4bc9b38ad5e
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoqcom: common_log: add support to dump PMIC registers
Neeti Desai [Fri, 19 Sep 2014 01:16:27 +0000 (18:16 -0700)]
qcom: common_log: add support to dump PMIC registers

Register for dumping 4KB of memory to dump PMIC
registers which can be parsed in case of device crash.

Change-Id: Idbf26d6241ab9a87e4dcea42723428289f2a869d
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
[spjoshi@codeaurora.org: fix merge conflict]
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
[mittals@codeaurora.org: fix merge conflict]
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agocommon_log: add common_log support snapshot
Wu Jin [Fri, 7 Mar 2014 07:51:12 +0000 (15:51 +0800)]
common_log: add common_log support snapshot

This snapshot is taken as of msm-3.10 commit:
 78c36fa0ef (Merge "msm: mdss: Prevent backlight update during
 continuous splash")

Common log registers the kernel log buffer address with the
memory dump driver so that the __log_buf can be collected from
ramdumps without the need of an external System.map file.

Change-Id: Ibeb74ca064e78fe7522e46b3c32bb362082d5d24
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
[spjoshi@codeaurora.org: fix merge conflict]
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
[mittals@codeaurora.org: fix merge conflict]
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
8 years agoARM: dts: msm: create PCIe devicetree node for msmcobalt
Tony Truong [Wed, 16 Dec 2015 21:35:47 +0000 (13:35 -0800)]
ARM: dts: msm: create PCIe devicetree node for msmcobalt

Create and add PCIe resources such as register bases, clocks,
regulators, GPIOs, etc. to msmcobalt devicetree and pinctrl
devicetree.

Change-Id: I7a41ed6dd0f78cba140a15661d44b2f6c2745e39
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agodefconfig: msm: enable PCIe bus driver in msmcobalt defconfig
Tony Truong [Thu, 14 Apr 2016 01:15:41 +0000 (18:15 -0700)]
defconfig: msm: enable PCIe bus driver in msmcobalt defconfig

Enable MSM PCIe bus driver in defconfig for msmcobalt.

Change-Id: I44ece35ed1d8dda4d8139dfb54adc7a2e9c49383
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agomsm: pcie: update misc register offsets on msmcobalt
Tony Truong [Thu, 12 May 2016 00:51:00 +0000 (17:51 -0700)]
msm: pcie: update misc register offsets on msmcobalt

Some msmcobalt PCIe configuration registers have different
offsets than other chipsets. Update these offsets so
that PCIe can be correctly configured on msmcobalt.

Change-Id: I42c7f545a48e6a431ccdba062399776e8c1c64f2
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agomsm: pcie: add device and vendor ID for PCIe on msmcobalt
Tony Truong [Wed, 11 May 2016 00:31:11 +0000 (17:31 -0700)]
msm: pcie: add device and vendor ID for PCIe on msmcobalt

Add device and vendor ID for PCIe on msmcobalt based on PCIe
core's configurations. This value is required to enable
PCIe low power management features.

Change-Id: I972c35c79327e3baa38573318ed0909d4daa9516
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agomsm: pcie: retrieve PCIe SMMU SID base from DT
Tony Truong [Fri, 6 May 2016 02:06:08 +0000 (19:06 -0700)]
msm: pcie: retrieve PCIe SMMU SID base from DT

SMMU SIDs allocated for PCIe varies across chipsets.
Thus, add support to retrieve the base SID from
PCIe devicetree node so that PCIe bus driver can
use it to calculate and assign to each PCI device.

Change-Id: I7651f2cbc53587f5b48501855260c87af2a2db01
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agomsm: pcie: update PCIe PHY registers and sequences for msmcobalt
Tony Truong [Mon, 9 May 2016 23:36:50 +0000 (16:36 -0700)]
msm: pcie: update PCIe PHY registers and sequences for msmcobalt

PCIe PHY on msmcobalt has different register offsets and does not
support the same PHY sequences as other platforms. Thus, update
the PHY register offsets and sequences for msmcobalt.

Change-Id: If87bd507228476fee9713f88c06a1cf04b13f163
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agotrace: cpu_freq_switch: use tracefs instead of debugfs
David Keitel [Mon, 9 May 2016 21:27:48 +0000 (14:27 -0700)]
trace: cpu_freq_switch: use tracefs instead of debugfs

Rather than using debugfs, switch to tracefs which trace
moved to in kernel 4.4.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Change-Id: I52ef7d45cabb20cc61fbd2fb3ef5016b041bc56c

8 years agomsm: pcie: add support to get PCIe PHY init sequence from DT
Tony Truong [Tue, 12 Apr 2016 18:58:22 +0000 (11:58 -0700)]
msm: pcie: add support to get PCIe PHY init sequence from DT

PCIe PHY varies between each chipset. Thus, the PHY init sequence on
each of these chipsets are also different. Therefore, add the support
to read PCIe PHY init sequence from devicetree.

Change-Id: I21c2ce2b7d3bf1541a5d3580db4bc40497701095
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agomsm: sde: Add error code for unsupported rotator version
Alan Kwong [Fri, 13 May 2016 13:42:55 +0000 (09:42 -0400)]
msm: sde: Add error code for unsupported rotator version

Although rotator driver checks for hardware version, and rejects
unsupported version.  But it does not return error code to indicate
error condition, and causes driver crash.

This fix adds error code to unsupported version, so upper layer can
properly handling the condition.

CRs-Fixed: 1015335
Change-Id: If83199b5990a3623b1018058d2164862352902b7
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
8 years agoARM: dts: msm: Disable OSM vred FSM for msmcobalt
Osvaldo Banuelos [Fri, 8 Apr 2016 21:28:55 +0000 (14:28 -0700)]
ARM: dts: msm: Disable OSM vred FSM for msmcobalt

Disable the OSM vred FSM until core-count adjustments are enabled
for the CPRh VDD_APC0 and VDD_APC1 devices.

Change-Id: I467f49edbc65449f29f761c6b873ca702d24fa72
CRs-Fixed: 1014894
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agoARM: dts: msm: Add rotator clocks MNOC AHB/AXI for msmcobalt
Alan Kwong [Tue, 3 May 2016 20:18:48 +0000 (16:18 -0400)]
ARM: dts: msm: Add rotator clocks MNOC AHB/AXI for msmcobalt

Add additional required clocks to mdss device tree to enable
mmss smmu and ahb access for rotator.

CRs-Fixed: 1008505
Change-Id: I5bfc16e3d6ac3c6052b8dca55b42b57480ec650e
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
8 years agoAndroidKernel.mk: additional fixes for multi-kernel tree
Lior David [Tue, 10 May 2016 07:47:37 +0000 (10:47 +0300)]
AndroidKernel.mk: additional fixes for multi-kernel tree

Fixes 2 problems related to multi-kernel tree support:

1. Copying of modules to /system/lib/modules is broken when building
in a multi-kernel tree. This is because INSTALL_MOD_PATH is not
set correctly. When building a multi-kernel tree, the output
directory is one additional directory deep, so modules end up
under <out>/obj/system/lib/modules instead of
<out>/system/lib/modules. Fix this by using BUILD_ROOT_LOC
which is set appropriately for multi-kernel and standard trees.
2. When running "make kernelconfig" on a multi-kernel tree,
the generated defconfig is copied to the wrong location,
since it uses the old-style location under kernel, instead
of kernel/<kernel name>.

Change-Id: I90563104a5b6219472eaeae1964fc34b52586536
CRs-Fixed: 1014872
Signed-off-by: Lior David <liord@codeaurora.org>
8 years agoARM: dts: msm: restrict VDD_GFX voltage to Nom for CPR Rev 0 on msmcobalt
David Collins [Thu, 12 May 2016 00:00:28 +0000 (17:00 -0700)]
ARM: dts: msm: restrict VDD_GFX voltage to Nom for CPR Rev 0 on msmcobalt

Some MSMCOBALT parts with CPR revision 0 are unable to operate at
low voltage.  Therefore, raise the CPR floor voltage to be equal
to the Nominal ceiling voltage for all corners.  Also increase
the ceiling voltages for corners accordingly to ensure that the
ceiling >= floor voltage requirement is met.

Change-Id: I346a909984519c2522503f842d449c6f3217b746
CRs-Fixed: 1014407
Signed-off-by: David Collins <collinsd@codeaurora.org>
8 years agoARM: dts: msm: Enable super speed mode support on msmcobalt
Hemant Kumar [Wed, 11 May 2016 20:38:49 +0000 (13:38 -0700)]
ARM: dts: msm: Enable super speed mode support on msmcobalt

Enable ssphy and update the qmp phy initialization sequence
to enumerate in super speed mode. By default Lane A is
selected for super speed mode.

Change-Id: Ibd5fdd0a1f48ecd8a828d187ac86513e3f48ae6f
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoARM: dts: msm: Add mnoc_ahb clock for msmcobalt
Abhijit Kulkarni [Wed, 4 May 2016 02:03:37 +0000 (19:03 -0700)]
ARM: dts: msm: Add mnoc_ahb clock for msmcobalt

Add mmss_mnoc_ahb clock to mdss device tree as this clock needs to be
turned on before turning on ahb_clk.

CRs-Fixed: 1008505
Change-Id: I43ccff9774d098d551c4ba25ad5678fee13aca1f
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
8 years agoASoC: msm: Add USB audio via ADSP support
Kuirong Wang [Mon, 9 May 2016 21:35:30 +0000 (14:35 -0700)]
ASoC: msm: Add USB audio via ADSP support

Add new USB rx and tx afe ports and routing to different
fe dais to enable USB audio via ADSP.

Change-Id: I4f82ba27becee1f3b62c410be0d00876961f9b18
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
8 years agoarm64: enable HAVE_IRQ_TIME_ACCOUNTING for arm64
Steve Muckle [Thu, 13 Nov 2014 23:51:49 +0000 (15:51 -0800)]
arm64: enable HAVE_IRQ_TIME_ACCOUNTING for arm64

The only dependency for irq time accounting is a sufficiently high
resolution timer. Plenty of arm64 platforms will have this, so enable
this feature.

CRs-Fixed: 1013947
Change-Id: Id675a541a6813a14ae0b7e1bb66670bf7467a97f
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
[satyap@codeaurora.org: trivial merge conflict resolution.]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
8 years agodefconfig: Enable CPUSS dump driver
Runmin Wang [Tue, 3 May 2016 23:59:13 +0000 (16:59 -0700)]
defconfig: Enable CPUSS dump driver

Enable CPUSS dump driver to dump cpu subsystem during crash.

CRs-Fixed: 1011333
Change-Id: Id4a8bca3eb77db4f998c790f1927fe373684048a
Signed-off-by: Runmin Wang <runminw@codeaurora.org>