This reverts commit c5665cafbe.
This patch was causing display hangs for Qualcomm after the 5.4.58
merge.
Bug: 166779391
Change-Id: Iaf22ede68247422709b00f059e5c4d517f219adf
Signed-off-by: Todd Kjos <tkjos@google.com>
Disable LPASS full power collapse on DRV suspend for WLAN latency
requirement to access DDR over PCIE.
Change-Id: I6643916f80c2778daba33a13fc6d558b0bd84754
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
Some endpoints require to prevent DRV processor power
collapse in order to meet the latency requirement to
access DDR over PCIe link. Send the vote info as part
of DRV enable command over rpmsg.
Change-Id: Iac3e6a0cd4978be877ae305aad31ed02570e4f3c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Add support for PSY_IIO_TYPEC_ACCESSORY_MODE property needed for
audio use case. Replace QTI_POWER_SUPPLY_CHARGE_TYPE_TAPER with
POWER_SUPPLY_CHARGE_TYPE_ADAPTIVE to ensure reported charge
type always aligns with allowed types.
In addition, correct read failues seen for dc voltage and
typec_src_rp properties.
Change-Id: I7e39c002488049686dd0dedcf433b9c19687075d
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Currently the software implements preemptirq notation
points as unrestricted hooks. This causes unacceptable
delays as those *types* of hooks perform rcu_lock() for
a long period of time (uS, but 1000s of these per s).
This in turn reduces system performance, and impacts
our metrics.
Fix by re-doing the preempt irq trace-points as
restricted hooks, based upon vendor_hooks.
Change-Id: Ib3022ceb41407f93543c30e695880f9070aae78a
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
* refs/heads/tmp-3a9b53b
Revert "binder: Prevent context manager from incrementing ref 0"
Revert "drm/drm_fb_helper: fix fbdev with sparc64"
ANDROID: fix redefinition error for restricted vendor hooks
Linux 5.4.58
nfsd: Fix NFSv4 READ on RDMA when using readv
ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime
tcp: apply a floor of 1 for RTT samples from TCP timestamps
selftests/net: relax cpu affinity requirement in msg_zerocopy test
Revert "vxlan: fix tos value before xmit"
openvswitch: Prevent kernel-infoleak in ovs_ct_put_key()
net: thunderx: use spin_lock_bh in nicvf_set_rx_mode_task()
net: gre: recompute gre csum for sctp over gre tunnels
hv_netvsc: do not use VF device if link is down
dpaa2-eth: Fix passing zero to 'PTR_ERR' warning
appletalk: Fix atalk_proc_init() return path
net: lan78xx: replace bogus endpoint lookup
vxlan: Ensure FDB dump is performed under RCU
rxrpc: Fix race between recvmsg and sendmsg on immediate call failure
net: ethernet: mtk_eth_soc: fix MTU warnings
ipv6: Fix nexthop refcnt leak when creating ipv6 route info
ipv6: fix memory leaks on IPV6_ADDRFORM path
ipv4: Silence suspicious RCU usage warning
PCI: tegra: Revert tegra124 raw_violation_fixup
Revert "powerpc/kasan: Fix shadow pages allocation failure"
xattr: break delegations in {set,remove}xattr
Drivers: hv: vmbus: Ignore CHANNELMSG_TL_CONNECT_RESULT(23)
tools lib traceevent: Fix memory leak in process_dynamic_array_len
atm: fix atm_dev refcnt leaks in atmtcp_remove_persistent
igb: reinit_locked() should be called with rtnl_lock
cfg80211: check vendor command doit pointer before use
firmware: Fix a reference count leak.
ALSA: hda: fix NULL pointer dereference during suspend
net: ethernet: mtk_eth_soc: Always call mtk_gmac0_rgmii_adjust() for mt7623
usb: hso: check for return value in hso_serial_common_create()
i2c: slave: add sanity check when unregistering
i2c: slave: improve sanity check when registering
drm/drm_fb_helper: fix fbdev with sparc64
nvme-pci: prevent SK hynix PC400 from using Write Zeroes command
drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure
drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason
net/9p: validate fds in p9_fd_open
leds: 88pm860x: fix use-after-free on unbind
leds: lm3533: fix use-after-free on unbind
leds: da903x: fix use-after-free on unbind
leds: lm36274: fix use-after-free on unbind
leds: wm831x-status: fix use-after-free on unbind
mtd: properly check all write ioctls for permissions
vgacon: Fix for missing check in scrollback handling
scripts: add dummy report mode to add_namespace.cocci
Smack: fix use-after-free in smk_write_relabel_self()
binder: Prevent context manager from incrementing ref 0
omapfb: dss: Fix max fclk divider for omap36xx
Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_with_rssi_evt()
Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_evt()
Bluetooth: Fix slab-out-of-bounds read in hci_extended_inquiry_result_evt()
Staging: rtl8188eu: rtw_mlme: Fix uninitialized variable authmode
staging: rtl8712: handle firmware load failure
staging: android: ashmem: Fix lockdep warning for write operation
ALSA: seq: oss: Serialize ioctls
ALSA: hda/ca0132 - Fix AE-5 microphone selection commands.
ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.
ALSA: hda/ca0132 - Add new quirk ID for Recon3D.
ALSA: hda/realtek: Add alc269/alc662 pin-tables for Loongson-3 laptops
Revert "ALSA: hda: call runtime_allow() for all hda controllers"
io_uring: Fix use-after-free in io_sq_wq_submit_work()
io_uring: prevent re-read of sqe->opcode
usb: xhci: Fix ASMedia ASM1142 DMA addressing
usb: xhci: define IDs for various ASMedia host controllers
USB: iowarrior: fix up report size handling for some devices
perf/core: Fix endless multiplex timer
USB: serial: qcserial: add EM7305 QDL product ID
ANDROID: GKI: update abi based on wifi 6GHz changes
BACKPORT: cfg80211: require HE capabilities for 6 GHz band
BACKPORT: cfg80211: reject HT/VHT capabilities on 6 GHz band
BACKPORT: cfg80211: treat 6 GHz channels as valid regardless of capability
BACKPORT: mac80211: Add HE 6GHz capabilities element to probe request
BACKPORT: mac80211: add HE 6 GHz Band Capability element
BACKPORT: cfg80211: add and expose HE 6 GHz band capabilities
BACKPORT: cfg80211: handle 6 GHz capability of new station
BACKPORT: ieee80211: add HE ext EIDs and 6 GHz capability defines
BACKPORT: ieee80211: add code to obtain and parse 6 GHz operation field
BACKPORT: cfg80211: add a helper to identify 6 GHz PSCs
BACKPORT: cfg80211: adapt to new channelization of the 6GHz band
BACKPORT: cfg80211: fix 6 GHz frequencies to kHz
BACKPORT: cfg80211: express channels with a KHz component
Revert "Revert "Revert "ANDROID: ALSA: jack: Update supported ja..."
UPSTREAM: loop: Fix wrong masking of status flags
UPSTREAM: loop: Add LOOP_CONFIGURE ioctl
UPSTREAM: loop: Clean up LOOP_SET_STATUS lo_flags handling
UPSTREAM: loop: Rework lo_ioctl() __user argument casting
UPSTREAM: loop: Move loop_set_status_from_info() and friends up
BACKPORT: loop: Factor out configuring loop from status
UPSTREAM: loop: Remove figure_loop_size()
UPSTREAM: loop: Refactor loop_set_status() size calculation
UPSTREAM: loop: Factor out setting loop device size
UPSTREAM: loop: Remove sector_t truncation checks
UPSTREAM: loop: Call loop_config_discard() only after new config is applied
ANDROID: Revert "module: Refactor section attr into bin attribute"
ANDROID: Revert "module: Do not expose section addresses to non-CAP_SYSLOG"
FROMLIST: rpmsg: Guard against null endpoint ops in destroy
ANDROID: GKI: Add some symbols to symbol list
Conflicts:
android/abi_gki_aarch64_qcom
Change-Id: I626db7277bb4eb964d24336294e6a2a5ce3fab0a
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
We have two knobs to flush for write booster, i.e.
fWriteBoosterBufferFlushDuringHibernate and fWriteBoosterBufferFlushEn.
However, many product makers uses only fWriteBoosterBufferFlushDuringHibernate,
because this can reportedly cover most scenarios and
there have been some reports that flush by fWriteBoosterBufferFlushEn
could lead to raise power consumption thanks to unexpected internal
operations. So we need a way to enable or disable fWriteBoosterEn
operations. For those case, this quirk will allow to avoid manual flush
Bug: 165776315
Link: https://lore.kernel.org/linux-scsi/cover.1598319701.git.kwmad.kim@samsung.com/T/#t
Change-Id: Ia8297c7372e276d74ae7143ab1e9bf332630de87
Signed-off-by: Kiwoong Kim <kwmad.kim@samsung.com>
This reverts commit c5665cafbe.
This is a preparation change for merging android-5.4.58 into
msm-5.4 branch. The reverted change is causing UI unresponsive
issue.
Change-Id: I00a837a8706c3625ef736a4de8ce501df233f9a0
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
Need add the mutex_unlock when rwp_offset is invalid.
Change-Id: I24fb3ae187d9fad33d073a33710f162c8d1a9c58
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
The GPU is usually clock gated when idle i.e NAP state.
Introduce a new state after NAP which lowers the GPU
bandwidth vote to minimum non-zero value so that memory
related components can run at a lower frequency corner,
if possible when GPU is idle.
Change-Id: Iee568e8c3039b35d6b58d7fc0fe72880eee2cace
Signed-off-by: Pranav Patel <pranavp@codeaurora.org>
Call sync_state for regulator resource to remove proxy votes
in late bootup.
Change-Id: I329c1f6a6a67876108d5f07b0b7e6b328e43d878
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Enable CONFIG_PANIC_ON_DATA_CORRUPTION for holi debug
defconfig, to crash early on data corruption.
Change-Id: Ibe243795d78a8375b363e61cc7a35490d7a80c78
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Add log to print the i2c bus frequency. Currently log is
present only to print the default frequency which won't
work if the frequency is defined in dtsi node by i2c client.
Change-Id: I0463c6980d5812c99b737b2472081ac8a041d85d
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
Update gdsc_is_enable and gdsc_enable to return 0 for the GDSC
which needs only GDSC disable support from HLOS.
Change-Id: Ie1e9faf806f504fc56419c5c557d3063d031d804
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
Change closes the frontend pcm substream followed by the
backend substream to ensure correct playback shutdown
sequence.
Change-Id: Ie8e62487ce9efd08eb24326850c33fbb9d5f62a1
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
Add sync_state functionality to remove threshold held during initial
boot up and clean up any linger proxy resources that were voted for
from bootloaders.
Change-Id: I8926c80e522a4980a1d3f6f40916f223231e7f58
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Set specific bit masks to read-modify-write a few GMU registers.
Change-Id: Ie8a8ca03d606ac3edbbc898b2c25de4adadbaef1
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
Background:
We can allocate buffer from ion_system_heap for general case,
if the buffer is needed to access by HW, we need to map/unmap
dma_address by iommu driver before and after HW engine access for
iommu case. For example, if the same buffer is accessed by three
HW engines, then every device driver needs to map/unmap dma_address
by iommu driver respectively.
For MTK platform, all the multimedia HW engines use the same
iommu HW and share the same iommu page table, so multiple map/unmap
dma_address by iommu driver maybe reduce performance seriously for
above case, especially for big size buffer. In order to improve
performance for MTK platform, we want to add ion_mtk_iommu_heap
and implement map/unmap dma_address by ion_mtk_iommu_heap:
a.heap->buf_ops.map_dma_buf: If more than one attachments map
dma_address by iommu driver about the same buffer, the function
only map once in first attachment, the other attachments of buffer
copy sg_table which has already mapped to respective sg_table directly
and don't mapping dma_address truly.
b.heap->buf_ops.unmap_dma_buf: Do nothing.
c.heap->buf_ops.release: unmap dma_address by iommu driver about buffer
and free the buffer.
Based on above description:
We will build ion_mtk_iommu_heap as a kernel module and ion_mtk_iommu_heap
also use some APIs like ion_system_heap but they not do export symbol
ion_page_pool_alloc()
ion_page_pool_free()
ion_page_pool_nr_pages()
ion_page_pool_shrink()
ion_page_pool_create()
ion_page_pool_destroy()
Bug: 158729041
Change-Id: If3897d5e0105edefe03a51ac52c7b3d423aaa988
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
This change adds the status of UART input lines namely CTS and RX.
These two lines are driven from peer device hence it helps in debug
to confirm peer device status.
This is requested by BT HOST driver to help understand logs clearly.
Change-Id: I892961a5889aea1f46fed1fbde2c924844bc3946
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Utility factor needs to be applied for aggregated bandwidth
so as to run the bus clock at required frequency.
Change-Id: Ic166f72b0719fa88db4c04b9acdc163483faf538
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Enable config required for wifi calling and perf scenarios
for holi.
Change-Id: I4ff83a9a61d65d42bf25f63895390e1ac0b688c3
Signed-off-by: Kaustubh Pandey <kapandey@codeaurora.org>
Sdcardfs source code was removed as a part of fusefs switchover
starting from 5.4 kernels. Hence remove SDCARD_FS config on holi.
Change-Id: Ia8ead6e302ef75ed5fa10b4ac2c58195da707db9
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>