Commit graph

889,116 commits

Author SHA1 Message Date
Channagoud Kadabi
dca86b7f36 kernel: time: Fix accuracy for low resolution timer
timer wheel calculates the index for any timer based on the expiry
value and level granularity of the timer. Due to the level granularity
timer will not fire at the exact time instead expire at a time value
expires + granularity. This is done in the timer code when the index for
each timer is calculated based on the expiry and granularity at each
level:

 expires = (expires + LVL_GRAN(lvl)) >> LVL_SHIFT(lvl);

For devfreq drivers the requirement is to fire the timer at the exact
time. If the timer does not expire at the exact time then it'll take
much longer to react and increase the device frequency. Devfreq driver
registers timer for 10ms expiry and due to slack in timer code the
expirty happens at 20 ms. For eg: Frame rendering time is 16ms.
If devfreq driver reacts after 20ms instead of 10ms, that's
way past a frame rendering time.

Timers with 10ms to 630ms expiry fall under level 0, to overcome the
granularity issue for level 0 with low expirty values do not add the
granularity by introducing a new function calc_index_min_granularity.

Change-Id: I60f6f4394de4b5f409829de9734645e1a0d7659e
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
[eberman@codeaurora.org: simplify to one function]
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-08-12 10:53:10 -07:00
qctecmdr
227e7597cb Merge "arm64: defconfig: Enable GENI and slimbus drivers" 2020-08-12 01:56:15 -07:00
qctecmdr
913ca7122f Merge "defconfig: holi: enable recommended memory configs" 2020-08-12 01:56:14 -07:00
Akash Asthana
b53e2a331c arm64: defconfig: Enable GENI and slimbus drivers
Enable GENI and slimbus drivers.

Change-Id: I01ccd2126efb31d7cf03725add8159692f05ff84
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-08-11 22:21:27 -07:00
qctecmdr
eacbc69c72 Merge "msm: adsprpc: Put upper limit on IOMMU mapping size" 2020-08-11 15:30:43 -07:00
qctecmdr
be08d2a05d Merge "leds: qti-flash: Fix error logging in qti_flash_led_symmetry_config()" 2020-08-11 15:30:43 -07:00
qctecmdr
75ffc40f70 Merge "usb: dwc3: gadget: Prevent core from processing stale TRBs" 2020-08-11 15:30:43 -07:00
qctecmdr
b55b0200a9 Merge "clk: qcom: gpucc-lahaina: Fix "stuck at on" warning" 2020-08-11 15:30:43 -07:00
qctecmdr
79f084ee9e Merge "icnss2: Do not clear SHUTDOWN_DONE flag until reinit is done" 2020-08-11 15:30:42 -07:00
qctecmdr
6b3e33ff9a Merge "usb: dwc3-msm: Add orientation setting capability via sysfs" 2020-08-11 15:30:42 -07:00
qctecmdr
3f51b8647d Merge "icnss2: Add support for Runtime PM" 2020-08-11 15:30:42 -07:00
qctecmdr
50ea7fd3ee Merge "cnss2: Add support for PCIE gen switch" 2020-08-11 15:30:41 -07:00
qctecmdr
f1c8a01984 Merge "defconfig: sdxlemur: add support for qdss" 2020-08-11 15:30:41 -07:00
qctecmdr
327618025b Merge "usb: u_ether: Add null pointer check for sk_buff in eth_start_xmit" 2020-08-11 15:30:41 -07:00
qctecmdr
139febc37f Merge "Add support for returning power sources status" 2020-08-11 15:30:40 -07:00
Sriharsha Allenki
ee57532638 usb: dwc3: gadget: Prevent core from processing stale TRBs
With CPU re-ordering on write instructions, there might
be a chance that the HWO is set before the TRB is updated
with the new mapped buffer address.
And in the case where core is processing a list of TRBs
it is possible that it fetched the TRBs when the HWO is set
but before the buffer address is updated.
Prevent this by adding a memory barrier before the HWO
is updated to ensure that the core always process the
updated TRBs.

Change-Id: Idc008b2d4e37dd0c10c8ae40ab5af1ffd0775877
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-08-10 12:53:53 -07:00
Prakash Gupta
c30d9d3326 defconfig: holi: enable recommended memory configs
Enable recommended memory and iommu configs

Change-Id: I52618ccc42e69650a5158b2dd171362f8ac56fed
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-08-10 11:01:37 +05:30
Subbaraman Narayanamurthy
27ca1ceb92 leds: qti-flash: Fix error logging in qti_flash_led_symmetry_config()
If symmetry is enabled and user sets the brightness on switch
device directly without setting brightness on flash or torch
devices, then an error log is printed. Fix it.

Change-Id: I10cc9e3143173fb4ea9dad0ed078fde3594b6e54
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-08-07 16:31:03 -07:00
Jeya R
29854ac2bb msm: adsprpc: Put upper limit on IOMMU mapping size
Place appropriate validation checks for IOMMU mapping size. Without
these checks, a mapping in an invalid kernel space could be created
and fail during access.

Change-Id: I995c8c2a9ef8d746b8fc2433d6510dfa92596adc
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2020-08-07 16:16:28 -07:00
Mike Tipton
f489c7adcf clk: qcom: gpucc-lahaina: Fix "stuck at on" warning
The gpu_cc_hlos1_vote_gpu_smmu_clk clock is votable by multiple masters,
so it won't always turn off when requested, since other masters can
still be voting for it. Change its halt_check to BRANCH_HALT_VOTED to
skip polling for it to turn off.

Change-Id: I8c8a0160a0055b3462c76df3fdd3403e12352e53
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-08-07 11:31:03 -07:00
priyankar
e540b89dd6 Add support for returning power sources status
This patch contains changes for returning power sources status
to BT HAL and also setting value of SW CTRL for CHE chip.

Change-Id: I8a0349171a5bbd516b098cc5a070804a454c2b7d
Signed-off-by: priyankar <prigup@codeaurora.org>
2020-08-07 16:20:14 +05:30
Blagovest Kolenichev
66b69d62de Merge android11-5.4.56 (fcb0d3e) into msm-5.4
* refs/heads/tmp-fcb0d3e:
  Linux 5.4.56
  perf bench: Share some global variables to fix build with gcc 10
  perf env: Do not return pointers to local variables
  perf tests bp_account: Make global variable static
  x86/i8259: Use printk_deferred() to prevent deadlock
  KVM: LAPIC: Prevent setting the tscdeadline timer if the lapic is hw disabled
  KVM: arm64: Don't inherit exec permission across page-table levels
  drivers/net/wan: lapb: Corrected the usage of skb_cow
  RISC-V: Set maximum number of mapped pages correctly
  xen-netfront: fix potential deadlock in xennet_remove()
  cxgb4: add missing release on skb in uld_send()
  x86/stacktrace: Fix reliable check for empty user task stacks
  x86/unwind/orc: Fix ORC for newly forked tasks
  Revert "i2c: cadence: Fix the hold bit setting"
  net: ethernet: ravb: exit if re-initialization fails in tx timeout
  parisc: add support for cmpxchg on u8 pointers
  scsi: core: Run queue in case of I/O resource contention failure
  nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame
  selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support
  qed: Disable "MFW indication via attention" SPAM every 5 minutes
  selftests: fib_nexthop_multiprefix: fix cleanup() netns deletion
  usb: hso: Fix debug compile warning on sparc32
  vxlan: fix memleak of fdb
  perf tools: Fix record failure when mixed with ARM SPE event
  net/mlx5e: fix bpf_prog reference count leaks in mlx5e_alloc_rq
  net: gemini: Fix missing clk_disable_unprepare() in error path of gemini_ethernet_port_probe()
  net: nixge: fix potential memory leak in nixge_probe()
  Bluetooth: fix kernel oops in store_pending_adv_report
  arm64: csum: Fix handling of bad packets
  arm64/alternatives: move length validation inside the subsection
  mac80211: mesh: Free pending skb when destroying a mpath
  mac80211: mesh: Free ie data when leaving mesh
  bpf: Fix map leak in HASH_OF_MAPS map
  ibmvnic: Fix IRQ mapping disposal in error path
  mlxsw: core: Free EMAD transactions using kfree_rcu()
  mlxsw: core: Increase scope of RCU read-side critical section
  mlx4: disable device on shutdown
  rhashtable: Fix unprotected RCU dereference in __rht_ptr
  net: lan78xx: fix transfer-buffer memory leak
  net: lan78xx: add missing endpoint sanity check
  net/mlx5e: Fix kernel crash when setting vf VLANID on a VF dev
  net/mlx5e: Modify uplink state on interface up/down
  net/mlx5: Verify Hardware supports requested ptp function on a given pin
  net/mlx5e: Fix error path of device attach
  net/mlx5: E-switch, Destroy TSAR when fail to enable the mode
  net: hns3: fix aRFS FD rules leftover after add a user FD rule
  net: hns3: fix a TX timeout issue
  sh: Fix validation of system call number
  sh/tlb: Fix PGTABLE_LEVELS > 2
  selftests/net: so_txtime: fix clang issues for target arch PowerPC
  selftests/net: psock_fanout: fix clang issues for target arch PowerPC
  selftests/net: rxtimestamp: fix clang issues for target arch PowerPC
  nvme-tcp: fix possible hang waiting for icresp response
  ARM: dts: armada-38x: fix NETA lockup when repeatedly switching speeds
  xfrm: Fix crash when the hold queue is used.
  ARM: dts sunxi: Relax a bit the CMA pool allocation range
  xfrm: policy: match with both mark and mask on user interfaces
  net/x25: Fix null-ptr-deref in x25_disconnect
  net/x25: Fix x25_neigh refcnt leak when x25 disconnect
  libtraceevent: Fix build with binutils 2.35
  rds: Prevent kernel-infoleak in rds_notify_queue_get()
  drm: hold gem reference until object is no longer accessed
  drm/dbi: Fix SPI Type 1 (9-bit) transfer
  drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()
  drm/amd/display: Clear dm_state for fast updates
  Revert "drm/amdgpu: Fix NULL dereference in dpm sysfs handlers"
  virtio_balloon: fix up endian-ness for free cmd id
  ARM: dts: imx6qdl-icore: Fix OTG_ID pin and sdcard detect
  ARM: dts: imx6sx-sdb: Fix the phy-mode on fec2
  ARM: dts: imx6sx-sabreauto: Fix the phy-mode on fec2
  ARM: 8986/1: hw_breakpoint: Don't invoke overflow handler on uaccess watchpoints
  wireless: Use offsetof instead of custom macro.
  9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work
  vhost/scsi: fix up req type endian-ness
  IB/rdmavt: Fix RQ counting issues causing use of an invalid RWQE
  ALSA: hda/hdmi: Fix keep_power assignment for non-component devices
  ALSA: hda/realtek - Fixed HP right speaker no sound
  ALSA: hda/realtek: Fix add a "ultra_low_power" function for intel reference board (alc256)
  ALSA: hda/realtek: typo_fix: enable headset mic of ASUS ROG Zephyrus G14(GA401) series with ALC289
  ALSA: hda/realtek: enable headset mic of ASUS ROG Zephyrus G15(GA502) series with ALC289
  ALSA: usb-audio: Add implicit feedback quirk for SSL2
  mm/filemap.c: don't bother dropping mmap_sem for zero size readahead
  PCI/ASPM: Disable ASPM on ASMedia ASM1083/1085 PCIe-to-PCI bridge
  ath10k: enable transmit data ack RSSI for QCA9884
  sunrpc: check that domain table is empty at module unload.
  media: rc: prevent memory leak in cx23888_ir_probe
  crypto: ccp - Release all allocated memory if sha type is invalid
  ANDROID: ABI: Update allowed list for QCOM
  Revert "ANDROID: GKI: update abi symbol lists now that CONFIG_DWC3 is enabled."
  ANDROID: kallsyms: increase KSYM_NAME_LEN
  ANDROID: GKI: update KMI after RCU CONFIGs added
  ANDROID: GKI: enable RCU configs
  ANDROID: KABI updates for db845c (USB_DWC3 whiplash fixups)
  ANDROID: Revert "ANDROID: db845c_gki.fragment: Remove DWC3 modules built into GKI"
  ANDROID: Open-code OWNERS emails for now
  ANDROID: Initial OWNERS for abi metafiles
  ANDROID: ABI: update symbols of charger-manager.ko to unisoc
  ANDROID: GKI: fix symbol_get/put() build error on arm64 defconfig
  ANDROID: GKI: Fix up "do not export symbol_get/put()" commit

Conflicts:
	android/abi_gki_aarch64_qcom
	mm/filemap.c

Change-Id: I24f59bf5cf2a9ab41ae0864beb8756eed0998345
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-08-06 17:12:45 -07:00
Blagovest Kolenichev
be455bc542 Merge android11-5.4.55 (53b501f) into msm-5.4
* refs/heads/tmp-53b501f:
  Revert "qrtr: orphan socket in qrtr_release()"
  ANDROID: GKI: fix up abi definition files
  Revert "ANDROID: GKI: Enable CONFIG_USB_DWC3"
  ANDROID: GKI: remove symbols from sunxi for uas driver
  Linux 5.4.55
  Revert "dpaa_eth: fix usage as DSA master, try 3"
  PM: wakeup: Show statistics for deleted wakeup sources again
  regmap: debugfs: check count when read regmap file
  udp: Improve load balancing for SO_REUSEPORT.
  udp: Copy has_conns in reuseport_grow().
  sctp: shrink stream outq when fails to do addstream reconf
  sctp: shrink stream outq only when new outcnt < old outcnt
  AX.25: Prevent integer overflows in connect and sendmsg
  tcp: allow at most one TLP probe per flight
  rxrpc: Fix sendmsg() returning EPIPE due to recvmsg() returning ENODATA
  rtnetlink: Fix memory(net_device) leak when ->newlink fails
  qrtr: orphan socket in qrtr_release()
  net: udp: Fix wrong clean up for IS_UDPLITE macro
  net-sysfs: add a newline when printing 'tx_timeout' by sysfs
  ip6_gre: fix null-ptr-deref in ip6gre_init_net()
  drivers/net/wan/x25_asy: Fix to make it work
  dev: Defer free of skbs in flush_backlog
  AX.25: Prevent out-of-bounds read in ax25_sendmsg()
  AX.25: Fix out-of-bounds read in ax25_connect()
  Revert "Revert "ANDROID: ALSA: jack: Update supported jack switch types""
  Revert "Revert "ANDROID: ASoC: compress: fix unsigned integer overflow check""
  ANDROID: GKI: enable CONFIG_VIDEO_V4L2_SUBDEV_API
  FROMLIST: power: add "Wireless" to power_supply_type and power_supply_type_text
  Revert "ANDROID: ASoC: compress: fix unsigned integer overflow check"
  Revert "ANDROID: ALSA: jack: Update supported jack switch types"
  BACKPORT: FROMLIST: cpuidle: change enter_s2idle() prototype

Change-Id: I0dfd8e6b5e2a26997f144e542498f18f5f89408a
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-08-06 16:52:09 -07:00
qctecmdr
d8534164bb Merge "build.config.common: Move to clang-11" 2020-08-06 12:39:32 -07:00
qctecmdr
e434ce8db2 Merge "arm64: defconfig: Enable interconnect driver for Holi" 2020-08-06 12:39:32 -07:00
qctecmdr
d0debf0f84 Merge "iommu/arm-smmu: add support to configure IOVA range" 2020-08-06 12:39:32 -07:00
qctecmdr
15a4ecc85f Merge "msm: cvp: adding new target and read fw name from dtsi" 2020-08-06 12:39:31 -07:00
qctecmdr
11a6194bdd Merge "soc: qcom: llcc: Add support for CPU TLB System Cache Id" 2020-08-06 12:39:31 -07:00
qctecmdr
b186c50739 Merge "msm: adsprpc: Fix concurrency in early wake of fastrpc" 2020-08-06 12:39:30 -07:00
Yuanfang Zhang
5343d04f71 defconfig: sdxlemur: add support for qdss
Enable qdss component on sdxlemur.

Change-Id: Ia832601cd02bbd0073eecbfb79d4005d57c6b993
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-08-06 19:05:09 +08:00
suchawla
46ad5b6720 msm: cvp: adding new target and read fw name from dtsi
Adding changes for the new target and reading the FW name
from dtsi.

Change-Id: I224ebe001126c33c55fc039e74f42555a4dce1f8
Signed-off-by: suchawla <suchawla@codeaurora.org>
2020-08-06 03:55:23 -07:00
qctecmdr
1fa28c49fb Merge "input: touchscreen: focaltech_touch: support dynamic report rate" 2020-08-06 03:32:50 -07:00
qctecmdr
50499d00d0 Merge "msm: cvp: Add support of mdt loader" 2020-08-06 03:32:50 -07:00
qctecmdr
c430af9f3a Merge "arm64: defconfig: Enable dmabuf destructor support on all targets" 2020-08-06 03:32:49 -07:00
qctecmdr
382aafa472 Merge "soc: qcom: hyp_core_ctl: Minor cleanup" 2020-08-06 03:32:49 -07:00
qctecmdr
402d0f255e Merge "defconfig: Shima: enable recommended memory configs" 2020-08-06 03:32:49 -07:00
qctecmdr
f7021dc9b9 Merge "serial: msm_geni_serial: Do not place msm_geni_console_setup under __init" 2020-08-06 03:32:48 -07:00
Odelu Kukatla
49f651e328 arm64: defconfig: Enable interconnect driver for Holi
Enable the interconnect driver so that consumers are
able to obtain their path handles properly.

Change-Id: Ic9b11ac283beb5d1c00ba98564377d214d323a82
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-08-06 13:37:52 +05:30
qctecmdr
64d377e6a2 Merge "soc-compress: Update error handling to cleanup backend" 2020-08-06 00:53:21 -07:00
qctecmdr
60fd474f45 Merge "msm: msi: add support for Synopsys MSI" 2020-08-06 00:53:21 -07:00
qctecmdr
95e9552b1a Merge "sched/walt: Improve the scheduler" 2020-08-06 00:53:20 -07:00
qctecmdr
734fd627ac Merge "power: supply: qti_battery_charger: update USB power supply type runtime" 2020-08-06 00:53:20 -07:00
qctecmdr
e3dad1cb95 Merge "cnss2: Check device power state for Suspend / Resume operations" 2020-08-06 00:53:19 -07:00
qctecmdr
98161b4faa Merge "ABI: Disable USB_ROLE_SWITCH and TYPEC in GKI" 2020-08-06 00:53:19 -07:00
qctecmdr
60c110ac9c Merge "msm: adsprpc: check for fastrpc session ctx initialization" 2020-08-05 19:48:50 -07:00
qctecmdr
581a648da0 Merge "usb: phy: snps: Enable auto-resume during host mode bus suspend" 2020-08-05 19:48:49 -07:00
qctecmdr
562c20cd32 Merge "sched/fair: Add policy for restricting prefer_spread to newly idle balance" 2020-08-05 19:48:49 -07:00
qctecmdr
28b12c5b97 Merge "spi: spi-msm-geni: Add lock/unlock tre support in SPI GSI mode" 2020-08-05 19:48:49 -07:00
qctecmdr
64b7fed46b Merge "soc: qcom: Skip setting wakeup for ipcc irqchip" 2020-08-05 19:48:48 -07:00
qctecmdr
cbabda2667 Merge "defconfig: Support for SSG HLOS drivers" 2020-08-05 19:48:48 -07:00