Commit graph

889,781 commits

Author SHA1 Message Date
Fenglin Wu
f2f00c3be1 defconfig: lahaina-gki: enable QPNP PBS driver
Enable QPNP PBS driver so that any other drivers that want to trigger
PBS sequence can use its API for triggering.

Change-Id: I71a52d464b1ffb65eb22b4954b61a40e8b1f7dc4
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-09-01 10:49:47 +08:00
qctecmdr
488de2480d Merge "defconfig: gki: Enable power delivery on Holi" 2020-08-31 03:20:23 -07:00
qctecmdr
95e456f7f9 Merge "arm64: defconfig: Remove SDCARD_FS for holi" 2020-08-31 03:20:23 -07:00
qctecmdr
94278fcf6e Merge "Revert "dwc3-msm: Add support to vote USB FORCE_MEM_CORE_ON"" 2020-08-31 03:20:23 -07:00
qctecmdr
dd24581938 Merge "sched/preemptirq: Use restricted trace hooks" 2020-08-31 03:20:22 -07:00
qctecmdr
7a0011a3d2 Merge "ABI: Add regmap_mmio_detach_clk API to QCOM whitelist" 2020-08-31 03:20:22 -07:00
qctecmdr
1fc44890fe Merge "clk: qcom: gcc-shima: Update CPUSS AHB clock frequency to 19.2MHz" 2020-08-31 03:20:22 -07:00
qctecmdr
56d2c7fe39 Merge "arm64: defconfig: Enable panic on corruption for holi" 2020-08-31 03:20:22 -07:00
Sriharsha Allenki
4aef53cef6 defconfig: gki: Enable power delivery on Holi
Enable policy_engine and pd phy drivers to support
power delivery feature on Holi.

Change-Id: I5048292c5b486a8801c9be6996ef3bff61d6f15a
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-08-30 13:56:37 +05:30
Sriharsha Allenki
7faa8ad616 usb: pd: Fix cyclic dependency of pd modules
The compilation of policy_engine.c and qpnp-pdphy.c as
loadble modules leads to the circular symbol dependency
of one module on the other.
Fix this by serializing this dependency and ensures that
no symbols from the qpnp-pdphy are directly used in
policy_engine driver.
Also, add the dependency of IIO for policy_engine driver.

Change-Id: I965f887e5c0b5a0cd372cc83353380bad5d8c839
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-08-30 13:55:57 +05:30
Mayank Rana
14bd7f0a99 Revert "dwc3-msm: Add support to vote USB FORCE_MEM_CORE_ON"
This change reverts commit ("f1984dceeb dwc3-msm: Add support to vote
USB FORCE_MEM_CORE_ON") which is using dummy clock to update USB
master clock for keeping USB controller CSR retain while going into
CXPC. There is new API qcom_clk_set_flags() propose which supports
same functionality without USB dummy clock.

Change-Id: I0e35e4dac265a22eac2c3e95946cc9171c309508
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-08-29 09:44:04 -07:00
Jagadeesh Kona
b5fef2d563 ABI: Add regmap_mmio_detach_clk API to QCOM whitelist
Add regmap_mmio_detach_clk API to QCOM whitelist.

Change-Id: I3eb6e4f0f96f20c41b8f2354712ec79389049aa7
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-08-29 20:46:07 +05:30
qctecmdr
99e8c41675 Merge "usb: dwc3: Set FORCE_MEM_CORE_ON bit of GCC_USB30_MASTER_CLK" 2020-08-29 00:51:30 -07:00
qctecmdr
fe2aa494de Merge "interconnect: qcom: sdxlemur: Remove stub functions" 2020-08-28 21:18:09 -07:00
qctecmdr
39074278cc Merge "arm: defconfig: Enable gcc clock driver for sdxlemur" 2020-08-28 21:18:08 -07:00
qctecmdr
d89ce61309 Merge "byte-cntr: Add mutex_unlock when rwp_offset is invalid" 2020-08-28 21:18:08 -07:00
qctecmdr
b58d44d0c6 Merge "Merge android11-5.4.58+ (33cc3e7) into msm-5.4" 2020-08-28 21:18:07 -07:00
qctecmdr
8c8fbafeba Merge "pci: msm: Configure L23 ready poll timeout using sysfs" 2020-08-28 17:56:37 -07:00
qctecmdr
39b229314c Merge "cnss2: Disable LPASS full power collapse on DRV suspend" 2020-08-28 17:56:37 -07:00
qctecmdr
df5fbccdc6 Merge "power: supply: qcom: Update SMB5 charger properties for GKI compliance" 2020-08-28 17:56:36 -07:00
qctecmdr
54dded298e Merge "mhi: core: Check for RDDM cookie set by device to indicate readiness" 2020-08-28 17:56:36 -07:00
Bhaumik Bhatt
0e5a6b80ff mhi: core: Check for RDDM cookie set by device to indicate readiness
If the device is unable to send the mission mode execution
environment change event but has already entered mission mode
with the ability to allow ramdump collection, it can set a unique
cookie pattern to indicate the availability of ramdumps. Allow
the controller to query for this unique pattern upon any bootup
failure or timeout.

Change-Id: Id1f58b75d3f22e9e21b142cbea74d61cc65615b4
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-08-28 14:53:32 -07:00
Bhaumik Bhatt
739281396c mhi: core: Move to error state if firmware could not be loaded
Move MHI to a firmware download error state for any bootup
failures such as unable to find firmware files or load images via
BHI/BHIe. This helps detect an error state sooner and shortens
the wait for a synchronous power up timeout. It also negates the
need to provide additional callbacks due to any intermediate
bootup failures.

Change-Id: I3307e432063f59e978f1e055453155803a6475b2
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
2020-08-28 14:52:01 -07:00
qctecmdr
16a14a1745 Merge "i2c-msm-geni: Add log to print the i2c bus frequency" 2020-08-28 14:21:55 -07:00
qctecmdr
a29a3d5721 Merge "serial: msm_geni_serial: Log CTS and RX IO line status" 2020-08-28 14:21:54 -07:00
qctecmdr
98b3301eae Merge "msm: kgsl: Make ACD QMP message sending failure non fatal" 2020-08-28 14:21:54 -07:00
qctecmdr
8d1b5f677b Merge "defconfig: Avoid disabling temp_alarm driver for holi" 2020-08-28 14:21:54 -07:00
qctecmdr
7212d14052 Merge "regulator: rpm-smd: Update sync_state call" 2020-08-28 14:21:53 -07:00
qctecmdr
2d3abc765c Merge "kernel: crypto: Possible null pointer dereference" 2020-08-28 14:21:53 -07:00
qctecmdr
6278f1358d Merge "cnss2: Add support to use new ramdump APIs" 2020-08-28 14:21:52 -07:00
qctecmdr
ba4ba78525 Merge "msm: cvp: enable cache op by default" 2020-08-28 14:21:51 -07:00
qctecmdr
8356a39a60 Merge "Merge android11-5.4.58 (3a9b53b) into msm-5.4" 2020-08-28 14:21:51 -07:00
Jagadeesh Kona
6ba578d221 clk: qcom: gcc-shima: Update CPUSS AHB clock frequency to 19.2MHz
Set CPUSS AHB clock frequency to 19.2MHz.

Change-Id: I9f21883bcffc5ba1363aacdb22db9c1d367e06d2
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-08-29 00:37:01 +05:30
Blagovest Kolenichev
7546983cd7 Merge android11-5.4.58+ (33cc3e7) into msm-5.4
* refs/heads/tmp-33cc3e7:
  ANDROID: db845c: set BUILD_INITRAMFS=1
  ANDROID: GKI: Build CEC_{CORE,NOTIFIER,PIN} in
  ANDROID: GKI: Enable CEC support
  ANDROID: ABI: Update ABI snapshot after additions to struct io_pgtable_cfg
  ANDROID: iommu/io-pgtable: Allow IOMMU drivers to allocate/free page-table memory
  ANDROID: update ABI
  UPSTREAM: update to latest version of scripts/checkpatch.pl
  FROMLIST: ufs: change the way to complete fDeviceInit
  ANDROID: GKI: add built-in BCM Bluetooth driver
  Revert "Revert "genetlink: remove genl_bind""
  ANDROID: GKI: enable CONFIG_LEDS_TRIGGER_TIMER
  ANDROID: GKI: add abi_gki_aarch64_oplus
  ANDROID: GKI: fix up abi .xml file due to previous changes.
  ANDROID: GKI: add some padding to some driver core structures
  ANDROID: vendor_hooks: add waiting information for blocked tasks
  ANDROID: GKI: Update abi_gki_aarch64_exynos
  ANDROID: include/linux: add low power mode and fps to notifier
  BACKPORT: scsi: ufs: Fix and simplify setup_xfer_req variant operation
  ANDROID: GKI: enable USB UVC drivers
  ANDROID: GKI: enabled CONFIG_USB_CONFIGFS_NCM=y
  ANDROID: GKI: enable LEDS_CLASS_FLASH

Conflicts:
	drivers/iommu/io-pgtable-arm.c
	drivers/iommu/io-pgtable.c
	include/linux/io-pgtable.h
	scripts/checkpatch.pl

Change-Id: I6cbac7d913653388280a4c58f4f98e6f8b6b29f7
Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-08-28 11:58:00 -07:00
Manikandan Mohan
41f0ad0de9 cnss2: Disable LPASS full power collapse on DRV suspend
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>
2020-08-28 11:35:20 -07:00
Hemant Kumar
7db2e7aacd pci: msm: Add support to send vote against DRV PC
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>
2020-08-28 11:33:49 -07:00
qctecmdr
3a1174add0 Merge "soc: jtagv8: Correct the sequence of restoring the etm registers" 2020-08-28 10:46:01 -07:00
qctecmdr
dda93521e4 Merge "sched/walt: Improve the scheduler" 2020-08-28 10:46:00 -07:00
qctecmdr
a3ebedb4e6 Merge "interconnect: qcom: Add sync_state for Shima" 2020-08-28 10:46:00 -07:00
Jishnu Prakash
fd8fcf0789 power: supply: qcom: Update SMB5 charger properties for GKI compliance
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>
2020-08-28 23:14:57 +05:30
Jishnu Prakash
a1e476a841 dt-bindings: iio: Add PSY_IIO_TYPEC_ACCESSORY_MODE for SMB5
Add PSY_IIO_TYPEC_ACCESSORY_MODE for audio use case.

Change-Id: I1bea78a57479d755627e7442be03d7f92467031f
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-08-28 23:13:25 +05:30
Stephen Dickey
6de989b946 sched/preemptirq: Use restricted trace hooks
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>
2020-08-28 10:31:06 -07:00
Blagovest Kolenichev
8d910feef8 Merge android11-5.4.58 (3a9b53b) into msm-5.4
* 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>
2020-08-28 10:11:12 -07:00
Blagovest Kolenichev
e4904ae047 Revert "binder: Prevent context manager from incrementing ref 0"
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>
2020-08-28 08:32:28 -07:00
Mao Jinlong
03de04b810 byte-cntr: Add mutex_unlock when rwp_offset is invalid
Need add the mutex_unlock when rwp_offset is invalid.

Change-Id: I24fb3ae187d9fad33d073a33710f162c8d1a9c58
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
2020-08-28 22:31:49 +08:00
Jishnu Prakash
4103c39ad5 defconfig: Avoid disabling temp_alarm driver for holi
Avoid disabling CONFIG_QCOM_SPMI_TEMP_ALARM in holi QGKI and
debug config fragments.

Change-Id: I2a036af67cc7334d1d801188cf270f2cd2188e6d
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-08-28 19:54:52 +05:30
qctecmdr
2542e1edab Merge "cpuidle: record state entry failed statistics" 2020-08-28 07:16:00 -07:00
qctecmdr
e7ded32c7a Merge "usb: pd: Add support for IIO based properties" 2020-08-28 07:16:00 -07:00
qctecmdr
eadb3200ae Merge "NFC: Fix NFC firmware download issue" 2020-08-28 07:15:59 -07:00
qctecmdr
6712a5f2f7 Merge "interconnect: qcom: Add support for utility factor" 2020-08-28 07:15:59 -07:00