Commit graph

791994 commits

Author SHA1 Message Date
Amit Shekhar
60c7014223 Revert "AndroidKernel.mk: Use Android's prebuilt "make" if available"
Temporarily revert back to the "make" installed on the host/build machine
until the build time increase with Android's prebuilt "make" is analyzed
and resolved.

This reverts commit a947f972e7.

Change-Id: Ie1be9ca0349ab29a14b00f855965d6247a3f85bb
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
Signed-off-by: David Ng <dave@codeaurora.org>
2019-03-13 10:46:40 -07:00
qctecmdr Service
da627679e5 Merge "dt-bindings: qpnp-smb5: Support disabling of USB-PD via DT" 2019-03-13 05:24:47 -07:00
qctecmdr Service
b0a81d00d3 Merge "psi: pressure stall information for CPU, memory, and IO" 2019-03-13 05:24:46 -07:00
qctecmdr Service
e10c3c8e78 Merge "dt-bindings: qpnp-smb5: Support HVDCP HW-autonomous operation" 2019-03-13 02:14:23 -07:00
qctecmdr Service
fc96777787 Merge "sched: loadavg: consolidate LOAD_INT, LOAD_FRAC, CALC_LOAD" 2019-03-13 02:14:22 -07:00
qctecmdr Service
8542e94c42 Merge "ARM: dts: msm: Add npu tpdms and dcc tpdm for Kona" 2019-03-12 22:28:06 -07:00
qctecmdr Service
02b1953a48 Merge "power: smb5: initialize Type-C to DRP mode on boot" 2019-03-12 22:28:05 -07:00
qctecmdr Service
7f893f6316 Merge "regulator: qpnp-amoled: Change the initcall order" 2019-03-12 22:28:05 -07:00
qctecmdr Service
4f5357f2df Merge "smp: Do not wake up all idle CPUs" 2019-03-12 22:28:05 -07:00
qctecmdr Service
2e57f75ec1 Merge "drivers: qcom: rpmh-rsc: do not read back the register write on trigger" 2019-03-12 22:28:05 -07:00
qctecmdr Service
d63c714c10 Merge "msm: ipa: Update right config on wdi ep" 2019-03-12 14:00:07 -07:00
qctecmdr Service
b25e0efb55 Merge "msm: ipa4: Fix race condition gsi channel polling mode variable" 2019-03-12 14:00:06 -07:00
qctecmdr Service
d42cd3d595 Merge "ARM: dts: msm: update the MDP SID mask for kona target" 2019-03-12 14:00:06 -07:00
qctecmdr Service
038a52ea57 Merge "drivers: thermal: cpu_cooling: Use CPU ID as cooling device ID" 2019-03-12 14:00:05 -07:00
qctecmdr Service
c13f79ace9 Merge "mmc: core: Disable SD Card UHS-1 Support" 2019-03-12 14:00:05 -07:00
qctecmdr Service
da879b9d36 Merge "ARM: dts: msm: Update DISPCC clock node for LITO" 2019-03-12 14:00:04 -07:00
qctecmdr Service
25222befa0 Merge "msm: ipa3: dynamic support qmap and qmapv5 format" 2019-03-12 14:00:03 -07:00
Olav Haugan
1774bac9f6 smp: Do not wake up all idle CPUs
Do not wake up cpus that are isolated.

Change-Id: I07702bb5b738c1c75c49a2ca4cb08be0231ccb12
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2019-03-12 13:17:52 -07:00
qctecmdr Service
711ee74655 Merge "regulator: qpnp-amoled: Add support to configure AB/IBB PD control in AOD" 2019-03-12 10:12:18 -07:00
qctecmdr Service
e970004eca Merge "ARM: dts: msm: Add led flash support for Kona platforms" 2019-03-12 10:12:18 -07:00
qctecmdr Service
51474ea6d3 Merge "drm/msm/sde: fix for buffer corruption issues with mst connectors" 2019-03-12 10:12:17 -07:00
qctecmdr Service
cd9011ba71 Merge "cnss2: Re-arch power related APIs" 2019-03-12 10:12:17 -07:00
Lina Iyer
780aa9bda0 drivers: qcom: rpmh-rsc: do not read back the register write on trigger
When triggering a TCS to send its contents, reading back the trigger
value may return an incorrect value. That is because, writing the
trigger may raise an interrupt which could be handled immediately and
the trigger value could be reset in the interrupt handler.

A write_tcs_reg_sync() would read back the value that is written and try
to match it to the value written to ensure that the value is written,
but if that value is different, we are stuck in loop forever. In this
case the call stack shows -

   dump_backtrace+0x0/0x190
   show_stack+0x20/0x30
   dump_stack+0xe8/0x13c
   ipi_cpu_stop+0xc0/0xd8
   ipi_cpu_stop+0x0/0xd8
   gic_handle_irq+0x110/0x1d4
   el1_irq+0xb4/0x130
   __const_udelay+0x8c/0xb0
   write_tcs_reg_sync+0x84/0xe0
   __tcs_trigger+0xc4/0xd8
   rpmh_rsc_send_data+0x4b4/0x4c0
   rpmh_write_batch+0x1b4/0x320
   msm_bus_commit_data+0x7a4/0xa00
   update_client_paths+0x1f8/0x270
   update_request_adhoc+0x180/0x488
   msm_bus_scale_client_update_request+0x34/0x60
   _sde_power_data_bus_set_quota+0x3cc/0x570
   sde_power_data_bus_set_quota+0x234/0x298
   sde_rsc_client_trigger_vote+0x1b0/0x290
   sde_core_perf_crtc_update+0xa34/0xe88
   sde_crtc_disable+0x2b0/0x530
   msm_atomic_helper_commit_modeset_disables+0x434/0x790
   complete_commit+0x7c/0xc10
   _msm_drm_commit_work_cb+0x178/0x300

There is a drv->lock to protect against threads writing the TCS enable
register but the interrupt handler that modifies this variable does not
use the lock. Hence the race. We could solve this by locking in the
interrupt handler, however that will add more latency to the path. The
alternate is not to use the _sync variant for the TCS write and that is
because we don't care when the write actually happens. Only when the
write happens, the interrupt response could happen and therefore we are
protected from the race with the interrupt handler.

Change-Id: I54866b9b9d85fa79c8df84aecd502764b9f9158a
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2019-03-12 09:02:46 -06:00
Mao Jinlong
4c287151bb ARM: dts: msm: Add npu tpdms and dcc tpdm for Kona
Add npu tpdms and dcc tpdm for Kona to support hardware events
collection of npu and dcc list via atb of DCC.

Change-Id: Ib80adbac47ea2a61eaed93bd951444c354269767
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2019-03-12 19:52:09 +08:00
qctecmdr Service
99638f957d Merge "drm/msm: enable support for custom power ioctl" 2019-03-12 01:59:36 -07:00
qctecmdr Service
72fd98bd94 Merge "clk: correct vdd_class voting scheme used during clock rate changes" 2019-03-12 01:59:35 -07:00
qctecmdr Service
62f9d9efd3 Merge "msm: ipa: Update WDI3 AOS and prefetch config" 2019-03-12 01:59:35 -07:00
qctecmdr Service
e74afccdda Merge "ARM: dts: msm: Disable HBM mode for SW43404 cmd panel" 2019-03-12 01:59:35 -07:00
qctecmdr Service
8849b8b835 Merge "regulator: qpnp-amoled: Prevent premature AOD exit configuration" 2019-03-12 01:59:34 -07:00
qctecmdr Service
3ed8bbd939 Merge "msm: camera: vfe: Fix logs" 2019-03-11 22:56:26 -07:00
qctecmdr Service
750e62a752 Merge "msm: camera: isp: Correct number of cores" 2019-03-11 22:56:26 -07:00
qctecmdr Service
62fc3d8340 Merge "msm: camera: vfe: Correct bytes to sample conversion" 2019-03-11 22:56:25 -07:00
qctecmdr Service
3f07e70140 Merge "msm: ipa3: qmi changes for sdxprairie" 2019-03-11 22:56:25 -07:00
qctecmdr Service
f40258c9b2 Merge "diag: Pass correct device id from bridge to mhi" 2019-03-11 22:56:24 -07:00
Subbaraman Narayanamurthy
b7a510e22b regulator: qpnp-amoled: Change the initcall order
Change the initcall order of AMOLED regulator driver so that it
can probe early and consumers like display panel driver can get
it early.

Change-Id: Iea0efacfcf9c10b31f8f264d498cf4e7e53f843f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2019-03-11 20:36:55 -07:00
Subbaraman Narayanamurthy
f627980592 regulator: qpnp-amoled: Add support to configure AB/IBB PD control in AOD
As per the hardware recommendation, add support to configure
AB/IBB PD control dynamically during AOD entry/exit.

Change-Id: Ib8f3ef4222dd06f41c0609391717e66e30bc6d5b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2019-03-11 20:36:54 -07:00
Abhijeet Dharmapurikar
573896481a mfd: qcom-spmi-pmic: instantiate pmic peripherals at arch_initcall
The spmi_devices spawn platform devices for pmic peripherals. Some of these
devices are required early on in the boot process.

Initialize the driver at arch_initcall to avoid unnecessary probe
deferrals.

Change-Id: I38474bedcb284ed5a7df1ec8d26f680787f2c074
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2019-03-11 20:36:54 -07:00
Subbaraman Narayanamurthy
9522b09297 regulator: qpnp-amoled: Prevent premature AOD exit configuration
Currently, when the display driver notifies to exit AOD mode,
AOD configuration is attempted after polling for VREG_OK high.
On some AMOLED panels, SWIRE can pulse for a shorter period in
AOD mode which can cause AOD exit configuration to be made
prematurely. Prevent this by polling for VREG_OK for another
80 ms after it is found to be set high. If it goes low, then it
is an intermittent SWIRE pulse. Poll VREG_OK for another 100 ms
for a valid SWIRE pulse which if fails would timeout as before.

Change-Id: Ib480e15206ce941c03fbecd751b88168613d44c1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2019-03-11 20:36:53 -07:00
Subbaraman Narayanamurthy
4e654050fb dt-bindings: qpnp-amoled: Add support to configure PD control in AOD
Add support to configure AB and IBB PD control for different
modes of operation in AOD through "qcom,aod-pd-control" property
under AB/IBB regulator subnodes.

Change-Id: Ice9c4117d61bd4235ece828fa0d45da11d73016e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2019-03-11 20:36:53 -07:00
Yuan Zhao
3bc58ab6eb ARM: dts: msm: Disable HBM mode for SW43404 cmd panel
For OLED panel, if we always worked on high brightness,
that should make the panel damage.

Change-Id: I8043c2a27657bd0f7b396b84d57695633f678125
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2019-03-11 20:08:13 -07:00
qctecmdr Service
a5d36bfa52 Merge "msm: ipa: Fix compile warnings" 2019-03-11 19:41:45 -07:00
qctecmdr Service
161fcfb9cd Merge "msm: camera: vfe: Remove unsupported bus client" 2019-03-11 19:41:45 -07:00
qctecmdr Service
51f9307c4b Merge "msm: vidc: Update HDR10Plus extradata size correctly" 2019-03-11 19:41:45 -07:00
Samantha Tran
2192a603ff drm/msm/sde: fix for buffer corruption issues with mst connectors
Current implementation of get_output_fence is depending on
atomic_state to extract the connector details. There is a
possibility to have no connectors in atomic_state if no
connector property is processed by the time of executing
get_output_fence property and this results in wrong fence
handling.

This change depends on crtc encoder_mask field to extract
the drm_encoder tied to drm_crtc and extracts the panel
mode, video or command, information from sde_encoder object.

Change-Id: I3145b543382dcac038f38ee2769309b179395b3c
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-03-11 14:41:32 -07:00
Ram Chandrasekar
3342cd6aa7 drivers: thermal: cpu_cooling: Use CPU ID as cooling device ID
CPU cooling device will use IDR to get integer numbers for defining
the CPU cooling device ID. With having one cooling device per policy,
it will be tough to correlate a cooling device ID to the policy it is
mitigating.

Use the CPU ID from the policy as cooling device ID, which will allow
easy mapping of cooling device to CPU.

Change-Id: I249112ac467b84aea4f08466d91d6be520fbbc14
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2019-03-11 15:29:36 -06:00
Ram Chandrasekar
3acf3b039e drivers: thermal: cpu_cooling: Snapshot of cpu cooling driver
Add a snapshot of CPU cooling device driver changes from
msm-4.14 from 'commit <2c89a516da31> ("drivers: cpu_cooling: Remove
cooling list lock during post suspend handling")'. This snapshot
includes just the support for platform cooling device and doesn't include
core isolation.

Change-Id: Ib82394f76539b04f806def2cc0b932308675dd10
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2019-03-11 15:29:33 -06:00
Yuanyuan Liu
90fde779f5 cnss2: Re-arch power related APIs
Re-arch power related APIs so that it can support different
LDO groups.

CRs-Fixed: 2413838
Change-Id: I2c95cec332e9ddd07bbf943d8ef18fe92ad6763d
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2019-03-11 14:23:19 -07:00
Venkat Chinta
56a0c77c10 msm: camera: vfe: Correct bytes to sample conversion
Byte to sample conversion for Plain8 formats for 10 bit
pipeline should be one byte per sample. This change
corrects the same.

Change-Id: I97a66df8106f1e74f70a9a8df6bfa4ac7f506057
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
2019-03-11 14:17:07 -07:00
Venkat Chinta
df2566a53a msm: camera: isp: Correct number of cores
This change updates the maximum number of IFE cores
available.

Change-Id: I8087034fbbeb764696208b3aa4b500dcf2390eee
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
2019-03-11 13:38:51 -07:00
Jordan Crouse
94d59b1b63 msm: ipa: Fix compile warnings
Fix the following compiler warning(s) from gcc 6.1.1 with -Werror enabled:

 drivers/platform/msm/gsi/gsi.c:208:
   format '%lu' expects argument of type 'long unsigned int', but argument 7
     has type 'uint32_t {aka unsigned int}' [-Werror=format=]
   GSIDBG("GSI wait on chan_hld=%lu irqtyp=%lu state=%u intr=%u\n",

 drivers/platform/msm/gsi/gsi.c:4155:
   format '%d' expects argument of type 'int', but argument 6 has type
     'long unsigned int' [-Werror=format=]
  GSIDBG("reg dump ch id %d\n", chan_hdl);

Fixes: 20faea8 ("msm: ipa4: Increase the GSI command poll timeout to 10")
Fixes: b1d184d ("msm: IPA: support WDI3 over GSI")
Change-Id: Ic0dedbade232e2265477510288db45b0b906446f
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2019-03-11 14:33:23 -06:00