718601 Commits

Author SHA1 Message Date
Vikram Mulukutla
eac9d4d393 sched: walt: Optimize cycle counter reads
The cycle counter read is a bit of an expensive operation and requires
locking across all CPUs in a frequency domain. Optimize this by
returning the same value if the delta between two reads is zero i.e
two reads are done in the same sched context for the same CPU.

Change-Id: I99da5a704d3652f53c8564ba7532783d3288f227
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
[pkondeti@codeaurora.org: limit the optimization to the
same CPU for the sched context]
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2018-04-24 11:50:17 -07:00
Pavankumar Kondeti
308ef5aa3c sched/fair: Consider an idle CPU outside c-state as an active CPU
The find_best_target() selects an active CPU and an idle CPU as
two candidate CPUs. Whichever CPUs saves the most energy compared
to the previous CPU is selected finally. An idle CPU i.e no runnable
tasks but also outside c-state is a good candidate to run the
waking task since the task can run immediately and there is no
idle exit latency. Hence consider such CPU as an active CPU which
helps both power and performance.

Change-Id: I34f40c2dbca70995a8e6b4a8d5876f802bc000bc
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[satyap@codeaurora.org: Bring in is_packing_eligible functionality
from msm-4.9 to check whether packing can be done or not as part of
dependency]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2018-04-24 11:38:35 -07:00
Puja Gupta
a220103495 sched: Fix incorrect usage of SCHED_CPUFREQ_INTERCLUSTER_MIG flag
Mark the source/destination CPUs correctly for inter cluster
migration.

Change-Id: I771b9357d20cb0270465abd594fb94bb3669c936
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2018-04-20 17:25:43 -07:00
qctecmdr Service
74454aa889 Merge "drm/msm/sde: update rgba4444 and rgba5551 color component order" 2018-04-20 13:22:52 -07:00
qctecmdr Service
81b1a2df49 Merge "ARM: config: Enable different CONFIG_MMC flags for sdm640" 2018-04-20 13:22:51 -07:00
qctecmdr Service
2753c606fe Merge "ARM: dts: msm: Add support for I2C, SPI, UART and Slimbus on QCS405" 2018-04-20 13:22:51 -07:00
qctecmdr Service
1cb31e0d37 Merge "AndroidKernel: Update the LLVM path" 2018-04-20 13:22:51 -07:00
qctecmdr Service
8d60da4553 Merge "drm/msm/sde: make sure all locks are acquired during lastclose" 2018-04-20 13:22:50 -07:00
Lingutla Chandrasekhar
6b72d6ea27 soc: qcom: update ss structure for alignment support minidump
Some sub systems operates in 32 bit mode, which could lead
to alignment issues with sub system toc structures.
So update ss toc to use variable instead of pointer.

Change-Id: I4904410f9a86e9c947a377ddd28303204f04bc34
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2018-04-20 10:03:07 -07:00
Vijay Viswanath
3bbd0dbf4b ARM: config: Enable different CONFIG_MMC flags for sdm640
Enable various features such as clock gating, deferred resume,
paranoid_sd_init, perf profiling and ring buffer for sdm640. The ring
buffer config should only be enabled for debug builds because of perf
impact.

Change-Id: Iba5831cce301988260eee70a1c423085d321f657
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2018-04-20 15:16:21 +05:30
Vijay Viswanath
2ff2021ba9 ARM: dts: msm: Add sdhc1 and sdhc2 for sdm640-rumi
Add entried for sdhc1(eMMC) and sdhc2(sdcard). But enable only sdhc1 for
now. Enabling SD card without cd-gpio will result in continuous polling.

Change-Id: I5fd71e1d5d177083600e67d46243d5bfa9171b49
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2018-04-20 15:16:08 +05:30
qctecmdr Service
75958773c1 Merge "msm: kgsl: Keep the IRQ pending count accurate" 2018-04-20 02:24:07 -07:00
qctecmdr Service
73f27391cf Merge "ARM: dts: msm: Add audio device tree properties on sdmshrike" 2018-04-20 02:24:07 -07:00
qctecmdr Service
1d0f51b6c6 Merge "ARM: dts: msm: Update SID entries for iommu test devices for sm8150" 2018-04-20 02:24:07 -07:00
qctecmdr Service
eae75cff6e Merge "usb: configfs: Set USB gadget speed as super speed plus" 2018-04-20 02:24:06 -07:00
qctecmdr Service
eca4db7f0d Merge "msm: kgsl: Separate out A6xx GMU specific code" 2018-04-20 02:24:06 -07:00
Mukesh Kumar Savaliya
7f9a3caadc ARM: dts: msm: Add support for I2C, SPI, UART and Slimbus on QCS405
Initial support for all BLSP I2C, SPI, UART and Slimbus instances
with default configuration and disabled state such that clients
can overwrite and enable respective instance as per need.

Change-Id: Ideb28e7af6ffd80d040182c2b7bf2167afa3fb67
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
2018-04-20 14:30:52 +05:30
Lynus Vaz
8dd980c0a1 msm: kgsl: Keep the IRQ pending count accurate
If the IRQ pending count is incremented, make sure it is decremented
even in case of errors.

Change-Id: I63443d4430b24ff82eb58d729e42f7115607ff25
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
2018-04-20 01:35:56 -07:00
qctecmdr Service
e9cd0bd8d3 Merge "misc: qpnp: add snapshot of qpnp-misc documentation" 2018-04-20 00:15:38 -07:00
qctecmdr Service
873317b6b3 Merge "cpuidle: lpm-levels: Add premature count to module parameter" 2018-04-19 22:02:30 -07:00
qctecmdr Service
3dc33941a9 Merge "platform: msm: Export register_codec ops API for audio" 2018-04-19 22:02:29 -07:00
qctecmdr Service
f017b4ef96 Merge "cnss: Add support to program MAC address thru debugfs" 2018-04-19 22:02:29 -07:00
qctecmdr Service
853ddc3c8f Merge "net: qualcomm: rmnet: Fix warning seen with fill_info" 2018-04-19 22:02:29 -07:00
qctecmdr Service
c915da6a81 Merge "defconfig: sm8150: Enable EXT4 encryption" 2018-04-19 22:02:28 -07:00
qctecmdr Service
183a0a7ef8 Merge "iommu: arm-smmu: Disable io-coherency in bypass mode" 2018-04-19 19:46:36 -07:00
Sudarshan Rajagopalan
cf315933b2 ARM: dts: msm: Update SID entries for iommu test devices for sm8150
Update the sid entries as per the new smmu configuration settings
for ksgl and apps test devices.

Change-Id: I7cac8ea4aac5aa3d01330061dfc1d8f11395189a
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2018-04-19 19:14:49 -07:00
Sudheer Papothi
d326f95c8a ARM: dts: msm: Add audio device tree properties on sdmshrike
Add audio device tree properties to enable audio support on
sdmshrike.

Change-Id: I38f616b727657199d5c6ba0e610956c8e865b780
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-04-19 18:07:55 -07:00
qctecmdr Service
e4d2692055 Merge "Merge android-4.14.35 (07e1389) into msm-4.14" 2018-04-19 17:38:37 -07:00
qctecmdr Service
ef2c23423b Merge "drm/msm/dp: configure AUX switch on connect/disconnect" 2018-04-19 17:38:36 -07:00
qctecmdr Service
c966891829 Merge "dwc3-msm: Add check before calling stop host in restart callback" 2018-04-19 17:38:36 -07:00
qctecmdr Service
8bc46e396d Merge "ARM: dts: msm: Update glink nodes for sm8150" 2018-04-19 17:38:36 -07:00
qctecmdr Service
061e98095d Merge "staging: android: ion: Track total memory allocations per heap" 2018-04-19 17:38:35 -07:00
qctecmdr Service
a7861c3a7d Merge "drivers: cpuidle: lpm-levels: Do not set affinity level for 0 mode id" 2018-04-19 17:38:35 -07:00
qctecmdr Service
ee4c79c574 Merge "defconfig: sdmshrike: enable CONFIG_QCOM_SECURE_BUFFER" 2018-04-19 17:38:35 -07:00
qctecmdr Service
d04b4caf76 Merge "defconfig: sm8150: Enable MHI transport for qrtr" 2018-04-19 17:38:34 -07:00
Raghavendra Kakarla
a211388121 cpuidle: lpm-levels: Add premature count to module parameter
Add premature count prediction parameter as module parameter.

Change-Id: I6f356e63f12ab9a0701d01aca2b968798d7e5dcc
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2018-04-19 15:25:26 -07:00
Maulik Shah
fbcf003ddf cpuidle: lpm-levels: Remove sched_set_cpu_cstate calls
Scheduler no more need to know current c-state of cpu.
Remove unused calls to set c-state.

Change-Id: I2ddb3676527a20e00c0dfc192751a86e14eb0965
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2018-04-19 15:25:16 -07:00
qctecmdr Service
ea8bcecfe2 Merge "Merge remote-tracking branch 'quic/dev/msm-4.14-display' into msm-4.14" 2018-04-19 15:16:52 -07:00
Mayank Rana
51f8475a0a usb: configfs: Set USB gadget speed as super speed plus
This change sets maximum allowed USB speed as super speed plus
with configfs based gadget to support USB SSP functionality.

Change-Id: Idc76b817d962207e471354812933da4bfeda0530
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2018-04-19 15:09:37 -07:00
Mayank Rana
1c955dd27a ARM: dts: msm: Update USB QMP DP PHY initialization sequence on SM8150
Update USB QMP DP PHY initialization sequence (version 2.4) for USB SSP
functionality on SM8150.

Change-Id: Ic3c30e11b652abbaf77021e2cd7f18b2c1f2c6e5
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2018-04-19 15:09:24 -07:00
Vijayavardhan Vennapusa
5adf17c184 dwc3-msm: Return zero if max speed requested is already active
USB PD driver calls restart_usb_host_mode callback to start host mode
in high speed to release SS lanes.  If current maximum speed is same
as requested maximum speed i.e HIGH speed, then return zero instead
of ERROR to notify as success.

Change-Id: I45f3aaf4a8ecb85f0551e67fdc36263f6da50ed6
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2018-04-19 14:56:01 -07:00
Vijayavardhan Vennapusa
079a9e5442 policy_engine: Clear ss_lane_svid in reset_vdm_state()
During insertion of DP adaptor, our target might start in SINK mode
as well. In that case, DP adaptor sends DR_SWAP to change data role
from UFP to DFP. While starting host mode, driver is not clearing
ss_lane_svid variable due to which usb_pd_release_ss_lanes() will
return -EBUSY even though DP client is requesting. Fix the issue by
clearing ss_lane_svid in reset_vdm_state() unconditionally.

Change-Id: I62e775623295d795ad3e203590634f669cbf7537
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2018-04-19 14:55:02 -07:00
Ajay Singh Parmar
e8ebd9424b platform: msm: Export register_codec ops API for audio
Merge back Ic4010c204a12155437f6eb44dbbd66d56774fdba as
this is needed for audio DLKM.

CRs-Fixed: 2206904
Change-Id: Icbae30abf66d3893e0a74494f1a39e4603de0782
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2018-04-19 12:27:04 -07:00
Subash Abhinov Kasiviswanathan
f789bf2cc8 net: qualcomm: rmnet: Fix warning seen with fill_info
When the last rmnet device attached to a real device is removed, the
real device is unregistered from rmnet. As a result, the real device
lookup fails resulting in a warning when the fill_info handler is
called as part of the rmnet device unregistration.

Fix this by returning the rmnet flags as 0 when no real device is
present.

WARNING: CPU: 0 PID: 1779 at net/core/rtnetlink.c:3254
rtmsg_ifinfo_build_skb+0xca/0x10d
Modules linked in:
CPU: 0 PID: 1779 Comm: ip Not tainted 4.16.0-11872-g7ce2367 #1
Stack:
 7fe655f0 60371ea3 00000000 00000000
 60282bc6 6006b116 7fe65600 60371ee8
 7fe65660 6003a68c 00000000 900000000
Call Trace:
 [<6006b116>] ? printk+0x0/0x94
 [<6001f375>] show_stack+0xfe/0x158
 [<60371ea3>] ? dump_stack_print_info+0xe8/0xf1
 [<60282bc6>] ? rtmsg_ifinfo_build_skb+0xca/0x10d
 [<6006b116>] ? printk+0x0/0x94
 [<60371ee8>] dump_stack+0x2a/0x2c
 [<6003a68c>] __warn+0x10e/0x13e
 [<6003a82c>] warn_slowpath_null+0x48/0x4f
 [<60282bc6>] rtmsg_ifinfo_build_skb+0xca/0x10d
 [<60282c4d>] rtmsg_ifinfo_event.part.37+0x1e/0x43
 [<60282c2f>] ? rtmsg_ifinfo_event.part.37+0x0/0x43
 [<60282d03>] rtmsg_ifinfo+0x24/0x28
 [<60264e86>] dev_close_many+0xba/0x119
 [<60282cdf>] ? rtmsg_ifinfo+0x0/0x28
 [<6027c225>] ? rtnl_is_locked+0x0/0x1c
 [<6026ca67>] rollback_registered_many+0x1ae/0x4ae
 [<600314be>] ? unblock_signals+0x0/0xae
 [<6026cdc0>] ? unregister_netdevice_queue+0x19/0xec
 [<6026ceec>] unregister_netdevice_many+0x21/0xa1
 [<6027c765>] rtnl_delete_link+0x3e/0x4e
 [<60280ecb>] rtnl_dellink+0x262/0x29c
 [<6027c241>] ? rtnl_get_link+0x0/0x3e
 [<6027f867>] rtnetlink_rcv_msg+0x235/0x274

CRs-Fixed: 2156182
Change-Id: I47a3f313902f8d0ce34fb52d1dc1de52beb172ea
Fixes: be81a85f5f87 ("net: qualcomm: rmnet: Implement fill_info")
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2018-04-19 13:25:58 -06:00
Zhen Kong
91f591cf84 defconfig: sm8150: Enable EXT4 encryption
Enable ext4 encryption in order to support ext4 encryption
for enabling software FBE.

Change-Id: I83e4038a1e12a7979cacae1b586d30371cbe5322
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2018-04-19 11:58:16 -07:00
Steve Cohen
ec0b11a3cb drm/msm/sde: make sure all locks are acquired during lastclose
Ensure that we actually acquired all locks before proceeding to
disable modes and revert custom properties back to their default
values.  This patch adds the typical grab locks and backoff dance
to avoid lock contention.

Change-Id: Iaaea9fd75a79be8978d048f93d61ea0f7d4f8a4d
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
2018-04-19 11:32:46 -07:00
Narendra Muppalla
33b57724f6 Merge remote-tracking branch 'quic/dev/msm-4.14-display' into msm-4.14
* quic/dev/msm-4.14-display:
  ARM: dts: msm: add simulator panel support for sm8150
  drm/msm/sde: enable display mdp features for sdmshrike
  ARM: dts: msm: fix intf register size for sm8150

Change-Id: Id55559a7fedf295edde127b3aae95a374b903add
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2018-04-19 10:44:23 -07:00
qctecmdr Service
4b577146c4 Merge "drm/msm/dsi-staging: add parser sub-module" 2018-04-19 10:39:40 -07:00
Liam Mark
986dc35b2a staging: android: ion: Track total memory allocations per heap
Add support to track the total amount of memory allocated by each ION
heap. This information makes it easier to identify if an ION client is
responsible for a memory leak.

Change-Id: I44638316b6462d28ec182f58b3b3e5cc99716f33
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2018-04-19 09:07:04 -07:00
Blagovest Kolenichev
bce6a97741 Merge android-4.14.35 (07e1389) into msm-4.14
* refs/heads/tmp-07e1389
  Linux 4.14.35
  nfsd: fix incorrect umasks
  hugetlbfs: fix bug in pgoff overflow checking
  xen: xenbus_dev_frontend: Fix XS_TRANSACTION_END handling
  ovl: fix lookup with middle layer opaque dir and absolute path redirects
  blk-mq: don't keep offline CPUs mapped to hctx 0
  lib: fix stall in __bitmap_parselist()
  f2fs: fix heap mode to reset it back
  sunrpc: remove incorrect HMAC request initialization
  ath9k: Protect queue draining by rcu_read_lock()
  hwmon: (ina2xx) Fix access to uninitialized mutex
  x86/mce/AMD: Get address from already initialized block
  x86/mce/AMD, EDAC/mce_amd: Enumerate Reserved SMCA bank type
  x86/mce/AMD: Pass the bank number to smca_get_bank_type()
  x86/MCE: Report only DRAM ECC as memory errors on AMD systems
  rtl8187: Fix NULL pointer dereference in priv->conf_mutex
  Bluetooth: hci_bcm: Treat Interrupt ACPI resources as always being active-low
  Bluetooth: Fix connection if directed advertising and privacy is used
  getname_kernel() needs to make sure that ->name != ->iname in long case
  get_user_pages_fast(): return -EFAULT on access_ok failure
  s390/ipl: ensure loadparm valid flag is set
  s390/qdio: don't merge ERROR output buffers
  s390/qdio: don't retry EQBS after CCQ 96
  nfit: fix region registration vs block-data-window ranges
  block/loop: fix deadlock after loop_set_status
  apparmor: fix resource audit messages when auditing peer
  apparmor: fix display of .ns_name for containers
  apparmor: fix logging of the existence test for signals
  scsi: qla2xxx: Fix small memory leak in qla2x00_probe_one on probe failure
  x86/MCE/AMD: Define a function to get SMCA bank type
  radeon: hide pointless #warning when compile testing
  perf/core: Fix use-after-free in uprobe_perf_close()
  perf intel-pt: Fix timestamp following overflow
  perf intel-pt: Fix error recovery from missing TIP packet
  perf intel-pt: Fix sync_switch
  perf intel-pt: Fix overlap detection to identify consecutive buffers correctly
  KVM: PPC: Book3S HV: trace_tlbie must not be called in realmode
  PCI: hv: Serialize the present and eject work items
  Drivers: hv: vmbus: do not mark HV_PCIE as perf_device
  parisc: Fix HPMC handler by increasing size to multiple of 16 bytes
  parisc: Fix out of array access in match_pci_device()
  media: v4l: vsp1: Fix header display list status check in continuous mode
  media: v4l2-compat-ioctl32: don't oops on overlay
  lan78xx: Correctly indicate invalid OTP
  vhost: Fix vhost_copy_to_user()
  vhost: fix vhost_vq_access_ok() log check
  slip: Check if rstate is initialized before uncompressing
  rds: MP-RDS may use an invalid c_path
  cdc_ether: flag the Cinterion AHS8 modem by gemalto as WWAN
  netfilter: ipset: Missing nfnl_lock()/nfnl_unlock() is added to ip_set_net_exit()
  ANDROID: Add build server config for cuttlefish.
  ANDROID: Add defconfig for cuttlefish.
  FROMLIST: staging: Android: Add 'vsoc' driver for cuttlefish.
  ANDROID: cpufreq: Add time_in_state to /proc/uid directories
  ANDROID: proc: Add /proc/uid directory
  ANDROID: cpufreq: times: track per-uid time in state
  ANDROID: cpufreq: track per-task time in state
  f2fs/fscrypt: updates to v4.17-rc1

Change-Id: I0fdc9762e63ff9a9abb25e6adea0c723e517a2a6
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2018-04-19 08:58:41 -07:00