Reset net/wireless to upstream commit 460f3fd8a4 ("Merge
android11-5.4.61+ (d240b69) into msm-5.4"). This change re-introduces
removal of support for built-in regdb by commit 7478b98826 ("Revert
"cfg80211: reg: remove support for built-in regdb"").
Change-Id: Id6e87eb589d246448e005d0daed1edd57473e880
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Checkpatch tests that commit references follow the format:
commit 19c146a64c ("checkpatch: make sure a commit reference
description uses parentheses")
If a commit is a revert commit, its title line is frequently like:
Revert "checkpatch: make sure a commit reference uses parantheses"
Checkpatch doesn't handle quotation marks in commit message properly, so
use a lookahead to detect the "), which is less frequently found in
commit message title lines. Since a lookahead is used, commits with ")
in the title line, such as commit 8ac68dc455d9 ("revert: 1320a4052ea1
("audit: trigger accompanying records when no rules present")"), is
handled properly.
There is at least one case not properly handled, where the title spans
two lines and there is a ") on the first line. There are approximately 5
such possible commits on 5.9-rc8.
Change-Id: Ia3355103aa6d15d4109fa11155d07b14bd7d9f0f
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Write the RDPM frequency register for GPU and GMU frequency changes.
Change-Id: I58f1f388859212663cb4d324c83e53dcfce4cbaf
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
* refs/heads/tmp-e17d9fc:
ANDROID: GKI: Enable CONFIG_X86_X2APIC
ANDROID: GKI: update xiaomi symbol list
ANDROID: GKI: fix ABI breakage in module.h
UPSTREAM: modules: inherit TAINT_PROPRIETARY_MODULE
UPSTREAM: modules: return licensing information from find_symbol
UPSTREAM: modules: rename the licence field in struct symsearch to license
UPSTREAM: modules: unexport __module_address
UPSTREAM: modules: unexport __module_text_address
UPSTREAM: modules: mark each_symbol_section static
UPSTREAM: modules: mark find_symbol static
UPSTREAM: modules: mark ref_module static
ANDROID: GKI: Update abi_gki_aarch64_exynos
ANDROID: ABI: update allowed list for QCOM
UPSTREAM: binder: fix UAF when releasing todo list
Change-Id: I6db85b4587d3b60f386c58fd6b1589746e9281c5
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
Update Galaxy list of symbols with ones that are already in the .xml
file to make further patches much smaller and easier to review.
Bug: 171954519
Cc: Jeehong Kim <jhez.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ic30a89e6254cddb7669a473e06263d2aef8f9703
We do call _kgsl_pool_get_page() when pool is empty through
page pool allocation path. This will cause incorrect page
stats accounting for NR_KERNEL_MISC_RECLAIMABLE. Hence Add
a NULL check before page stats to fix it.
Change-Id: I5823177d7e242db25aeca2da5a9ddf6d1982859b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
After a drawobj is added to context drawqueue, if kmem_cache_alloc
fails, we destroy the drawobj. This could lead to use-after-free if
the context gets detached and drawobj is already destroyed meanwhile.
Avoid this by doing allocation before the drawobj is added to the queue.
Change-Id: I6d1f989b7795669f85756284db790f00f5fc2b9f
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
DYNAMIC_MINORS value has been set to 64.
Due to this reason, we are facing a module loading fail problem of
device driver like below.
[ 45.712771] pdic_misc_init - return error : -16
We need to increase this value for registering more misc devices.
Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>
Bug: 171370390
Link: https://lore.kernel.org/lkml/20201029070552.GA3062343@kroah.com/
Change-Id: I04ab486ce7674dde3118506c3d783f0e4e211bac
Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>
Set default value of flags gpu_llc_slice_enable and
gpuhtw_llc_slice_enable to false and disable change
via sysfs nodes.
Change-Id: I1446a04b25a793cdebf5428de2e84870a6b33b7c
Signed-off-by: Rohan Sethi <rohsethi@codeaurora.org>
Request ipcc irq with irqf no suspend flag.
This is required as to handle IPCC interrupt,
during suspend phase.
Change-Id: I5c34c5d446bd2cc2187550455071f35637a2c4b3
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
Removed conditional assignment of
smcinvoke_obj->fd. This handles the condition
when fd created in get_uhandle_from_tzhandle is
less than zero.
Change-Id: I824795ba2f14bbf363d86ef21499f71d74f45537
Signed-off-by: Jiten Patel <jitepate@codeaurora.org>
The function get_uhandle_from_tzhandle is passed a temporary
fd of type int32_t instead of passing a typecasted
smcinvoke_obj->fd which of type int64_t. This will prevent any
garbage value to remain in 32 msb after successful creation
of the new fd.
Change-Id: I695a85fd7762f7eca0d46721ac60c8cd1b59f163
Signed-off-by: Pranay Raj Anand <prajanan@codeaurora.org>
Send power save enter/exit via SMP2P instead of QMI.
Change-Id: I8aeeab3efd2f7c39e4e7ac134af98c58827ff6d5
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
If the sbi->ckpt->next_free_nid is not NAT block aligned and if there
are free nids in that NAT block between the start of the block and
next_free_nid, then those free nids will not be scanned in scan_nat_page().
This results into mismatch between nm_i->available_nids and the sum of
nm_i->free_nid_count of all NAT blocks scanned. And nm_i->available_nids
will always be greater than the sum of free nids in all the blocks.
Under this condition, if we use all the currently scanned free nids,
then it will loop forever in f2fs_alloc_nid() as nm_i->available_nids
is still not zero but nm_i->free_nid_count of that partially scanned
NAT block is zero.
Fix this to align the nm_i->next_scan_nid to the first nid of the
corresponding NAT block.
Change-Id: Ib979f5529a531ee6f4960eaadebc4d7340317bf5
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
VM has to go into suspend state outside of use case boundary. Delay in
transitioning to system suspend or spurious wake-ups after the use case
is completed will result in a system regression.
Adding a mechanism to track both the scenarios of delay in system
suspend and spurious wake-ups of the VM by checking the VPM Group state
associated with the VM.
Change-Id: I2a5990989033ffd3cc57ae1cba93b8ba6b63a3c7
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
Since TCS resource is shared between BT and WLAN, remove
reservation of TCS register space in cnss2.
Change-Id: I38f40ccad491bdfcac814de13f3cc6099d91d032
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
Enable general and invalid crypto error encounterd with command
queue engine during data transfer.
Change-Id: Idfaefcc44ece3144896619d6426bfc70eb4cc2cf
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
Adding GKI_VERSION to kernel source it and
will be maintain in sync with LTS version.
And point to latest GKI images corresponding
to latest LTS tag.
Format of directory holding GKI images will be as
LTS_<LTS version>_<12 character sha key of LTS change>
Example: LTS_5.4.61_8540985fd2ad.
Change-Id: I182e35395e9c870a97982963c749ecf5622cf52a
Signed-off-by: Yogesh Lal <ylal@codeaurora.org>
Explicitly memset struct to zero before sending
to userspace. This is to prevent padded bytes
from possibly leaking kernel memory contents to
userspace.
Change-Id: Id3e873164430c34195344884b2899e61aa060dfc
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
This is a squash of below two minor fixes:
8fec754f57a8 mmc: cmdq: trigger get queue status after dcmd
327fd3225911 mmc: cqhci: CQ Register changes for v5.0 onwards.
Change-Id: I1bb6cae5a647c4ea189a992d5ace7b6c1e3a1c87
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
This change adds IPC logging config option for eMMC
and SD card to log significant events used in debugging.
Change-Id: I9fab24bb0fedd57446f96a2b980b29b5dd72e46e
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
Modify the sequence of ETR disable,drvdata->mode is set to
CS_MODE_DISABLE before calling usb_qdss_close().
Change-Id: I575867cee95f4db5ba155a2619ab1eca954d6387
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
This changes adds IPC tracing events for eMMC and SD card
to trace significant events used for debug purpose.
Change-Id: I9b2f86110e9be8a914c51b8796fef5a0ef2c06ad
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
If device is boot up by rtc alarm, the alarm irq will still be
enabled and the alarm time is smaller than current rtc time before
any alarm is set or canceled. If device is powered off now, it will
boot up automatically as the alarm irq is enabled.
So disable alarm irq if alarm is enabled and alarm time is in the
past.
Change-Id: I53dc7cdb1fa7c56eea07ed01d1f6cb63f0bb8a8d
Signed-off-by: Guixiong Wei <guixiong@codeaurora.org>
Configure flush and reset cti trigger number in device tree.
Replace configuring cti trigger number by hard code since some
platforms don't have same cti trigger number.
Change-Id: Ib26802b3bd3449566954752b100d6ea188e98e13
Signed-off-by: Tao,Zhang <taozha@codeaurora.org>
Check if page is valid before dma_map_page to avoid the exception.
Change-Id: Ia92c7c86c437615f2a314511049bd4ffb655a41c
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Add sync-state callback for the clk-aop-qmp driver to ensure its clocks
don't turn off before all consumers probe. This also addresses
performance issues during boot since a large number of amba devices
toggle the QDSS clock in their probe function. Keeping the clock enabled
until all consumers probe means we don't make multiple expensive
round-trips to AOP.
Change-Id: Ic8ae6e563c4083c5cb7bfa9d5e18e17d58a3bb24
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
The PM framework prevents runtime_suspend() callbacks after
device_prepare() is called by calling pm_runtime_get_noresume(), which
increments the usage_count. If consumers don't disable their clocks
until after device_prepare(), then the clock provider will remain active
since usage_count=1. This results in regulator votes persisting after
suspend, which blocks system low power modes.
Register for the standard pm_runtime_force_suspend() and
pm_runtime_force_resume() callbacks, which force the device into suspend
even if usage_count=1. Register them in suspend_late, since consumer
clock votes will be removed earlier in suspend.
Change-Id: I73d46bdcc1664239001b7a38ed4aeadba75e57a7
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Enable CONFIG_QPNP_SMB5 to enable the charger peripheral present in
PM7250B.
Change-Id: I7e60a792e298a208e4361ac65d9ae995008aec49
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>