Enable the SM8150 interconnect driver so that consumers are
able to obtain their path handles properly.
Change-Id: Ie099accf2dbfa587f23dd9f434bf04c7eca6b348
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
To improve OVP handling increase the min-offtime and dead-time
as per hardware recommendation.
Change-Id: I28040808d6c114b718aad0e0ab63554683e7746f
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Currently, interrupts of qcom-spmi-adc5 driver are registered
with name "pm-adc5". However on platforms with multiple PMICs
that can have different ADC types (adc5 or adc7), this naming
is not user friendly when looking at interrupt data. Add a name
that looks unique for different adc types so that they can be
interpreted easily.
Change-Id: Iac1080dc8e02d278b30cff0d61eca40e081bc306
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
USB secondary event ring is being freed before it is being unmap.
Fix this by calling xhci_sec_event_ring_cleanup() after unmapping.
Also move secondary event ring cleanup and unmap related duplicate
code into one API.
Change-Id: I420f53d9e3ad6aa7b310dc354c7d35ce139afbe9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Make local device pointer NULL when .remove is
invoked.
Change-Id: I5bf91367b633abf79cbc60ef5bdf93cca955902c
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
Set ref_clk_src to NULL if clk_get() API fails to get handle
in probe(), else it results in invalid pointer derefernce.
Change-Id: I1ba5f64bc2a691923cbac1c7b4e9288b6071ff57
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Attribute pointer used while creating the common
and monitor pmu events, needs to be freed while returning
from function.
Change-Id: I7862e8ec81754102d2700cac03bb739c9bcdf32b
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Update available freuqency output format, previously entries in the
output is separated with new line, update this format to have space
after each entry instead of new line.
Also update the available frequency node from available_freq to
available_frequencies.
Change-Id: I2b2409168713477cbc801c8837a11c5c4613e996
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Sometimes probably crashdump timeout scenarios accessing addr_mode_cntl
registers through the host path resulting to slave timeout issue.
Hence revert this commit 'fca32c53c237("msm: kgsl: Add addr_mode_cntl
registers for legacy snapshot for holi gpu")'.
Change-Id: I771d9aecad69dd03d7e2ab771aee164c1cdfeabd
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
In case of Qsee_log we are not using the tzbsp_diag_buf
so there is no need to copy that.
Change-Id: Iabffd1708507e16ef8d75102637fd45bb7182549
Signed-off-by: Monika Singh <monising@codeaurora.org>
To prevent leakage in ship-mode toggle OVP_IGNORE_UVLO after
USB-removal and during shutdown.
Change-Id: Idb482dd63d4939be5b19594385c642a61531e662
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Correct the parameters passed to GENMASK macro
for H8_ENTER_COND_MASK.
Change-Id: If9997c7fb18d28aacce58697666c1c36a56b9a68
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
Correct start_rx sequence to keep the dma buffers available
before starting rx engine.
This is needed to handle rx data which might come between
starting of rx engine and having dma buffer available.
Change-Id: I194890ba8f51d6a917d6b1682f6b21ca443ca38b
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
The inclusion of draw object flag for msm_perf_events_update.
Since user-space thread is triggered based on kgsl events
this will be vital to distinguish the events based on frame
states and prevent undesirable user-space thread wake-ups.
Change-Id: I28040808d6c114b718aad0e0ab63554683e77460
Signed-off-by: Aman Mehta <amanmeht@codeaurora.org>
Hyp uart is default disabled from ABL now. There is no need of
CONFIG_HH_DISABLE_UART option anymore. Hyp uart now can be controlled
using DEBUG_FS interface.
Change-Id: Ie1a0986399d30b89bf62468a23633994c8d6b11b
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
By default, the system firmware enables the mpm wakeup functionality
of all the supported GPIOs. However, certain usecases demand that
this capability be disabled on certain gpios. Hence, provide a
generic interface to disable the GPIOs as needed.
Change-Id: I3b051bf676a157410880a3c596b784212a927a36
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Hyp uart is disabled default today in ABL. Provide debugfs
interface to users when they want to enable hyp uart to
debug hypervisor and VM issues.
Change-Id: I5e2c0501ed309a65c9dff1304b2e88e0d58917ae
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Snapshot of PCIe MHI device driver as of msm-4.14.
'commit <adeff59> (""drivers: clk: msm:
fix compilation for non DEBUG_FS build"")'.
Fix several warnings as part of propagation to 5.4.
Change-Id: I48b88d8e8900cb6e166c24ad2322a6fa2ec6fb8a
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Enabled ram dump collection for CMA memory
that is used for remote heap and dynamic loading memory.
Change-Id: I07fe071ee90b39204822aee368b52b7e63b5600d
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
Signed-off-by: Vamsi krishna Gattupalli <vgattupa@codeaurora.org>
Commit 09854ba94c6a ("mm: do_wp_page() simplification") reorganized all
the code around the page re-use vs copy, but in the process also moved
the final unlock_page() around to after the wp_page_reuse() call.
That normally doesn't matter - but it means that the unlock_page() is
now done after releasing the page table lock. Again, not a big deal,
you'd think.
But it turns out that it's very wrong indeed, because once we've
released the page table lock, we've basically lost our only reference to
the page - the page tables - and it could now be free'd at any time. We
do hold the mmap_sem, so no actual unmap() can happen, but madvise can
come in and a MADV_DONTNEED will zap the page range - and free the page.
So now the page may be free'd just as we're unlocking it, which in turn
will usually trigger a "Bad page state" error in the freeing path. To
make matters more confusing, by the time the debug code prints out the
page state, the unlock has typically completed and everything looks fine
again.
This all doesn't happen in any normal situations, but it does trigger
with the dirtyc0w_child LTP test. And it seems to trigger much more
easily (but not expclusively) on s390 than elsewhere, probably because
s390 doesn't do the "batch pages up for freeing after the TLB flush"
that gives the unlock_page() more time to complete and makes the race
harder to hit.
Fixes: 09854ba94c6a ("mm: do_wp_page() simplification")
Link: https://lore.kernel.org/lkml/a46e9bbef2ed4e17778f5615e818526ef848d791.camel@redhat.com/
Link: https://lore.kernel.org/linux-mm/c41149a8-211e-390b-af1d-d5eee690fecb@linux.alibaba.com/
Reported-by: Qian Cai <cai@redhat.com>
Reported-by: Alex Shi <alex.shi@linux.alibaba.com>
Bisected-and-analyzed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Tested-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: be068f29034fb00530a053d18b8cf140c32b12b3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[zhenhuah@codeaurora.org: resolved conflict]
Change-Id: I775e3706aa5d6be6b8352e8f59cb10e8d9326c5c
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
With the more strict (but greatly simplified) page reuse logic in
do_wp_page(), we can safely go back to the world where cow is not
enforced with writes.
This essentially reverts commit 17839856fd58 ("gup: document and work
around 'COW can break either way' issue"). There are some context
differences due to some changes later on around it:
2170ecfa7688 ("drm/i915: convert get_user_pages() --> pin_user_pages()", 2020-06-03)
376a34efa4ee ("mm/gup: refactor and de-duplicate gup_fast() code", 2020-06-03)
Some lines moved back and forth with those, but this revert patch should
have striped out and covered all the enforced cow bits anyways.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: a308c71bf1e6e19cc2e4ced31853ee0fc7cb439a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[zhenhuah@codeaurora.org: resolve trivial merge conflict]
Change-Id: I1e72c780c74b324efe6dbeed17ab131657254f16
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>