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>
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>
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>
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>
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>
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>
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>
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>
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>
Add audio device tree properties to enable audio support on
sdmshrike.
Change-Id: I38f616b727657199d5c6ba0e610956c8e865b780
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
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>
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>
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>
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>
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>
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>
Enable ext4 encryption in order to support ext4 encryption
for enabling software FBE.
Change-Id: I83e4038a1e12a7979cacae1b586d30371cbe5322
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
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>
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>
* 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>