Commit Graph

6812 Commits

Author SHA1 Message Date
4bf9c554b8 msm: cvp: Enhance CVP debugability
For better CVP debugability, the change provides HFI version
to user, clean up unnecessary driver logging.

Change-Id: I8685dfa76c0e61db48212d9ea900c061f07484cb
Signed-off-by: George Shen <sqiao@codeaurora.org>
2019-05-21 09:56:58 -07:00
09c5c17f39 Merge "uapi: msm: dolby: Support for TrueHD and MAT decoders" 2019-05-17 07:02:02 -07:00
16166276b9 msm: cvp: Enable async ICA
Enable ICA async path with synx for camera use case.

Change-Id: I47fd81d487617a2173b43d67464f6af92a98afad
Signed-off-by: Ruofei Ma <ruofeim@codeaurora.org>
Signed-off-by: George Shen <sqiao@codeaurora.org>
2019-05-13 17:45:41 -07:00
bf30361c0f Merge "asoc: msm: Add support for compressed perf mode" 2019-05-12 21:06:38 -07:00
5edab35399 Merge "uapi: sound: add support for TTP render mode" 2019-05-12 21:06:38 -07:00
49b19045ab uapi: sound: add new meta key to get DSP render position
Add meta key to query presentation position from DSP
in system time domain.

Change-Id: I1b17bdc2c94b4d694f7d968cd513812e4136e209
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-05-12 18:52:01 -07:00
29ae920d5a uapi: sound: add support for TTP render mode
TTP render mode is used to enable TTP module
in DSP. Add macro for TTP render mode.

Change-Id: I6afb3cf3e5169603b1befec69807d80fb028b437
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-05-12 18:50:51 -07:00
aec78f41d3 asoc: msm: Add support for compressed perf mode
Add support for compressed perf mode.
Compressed perf mode configures the DSP in low latency
mode. In low latency mode, DSP have reduced buffer
size for faster operations. Above layers may pass
this flag for configuring the DSP in low latency
mode.

Change-Id: Ib291d0fb9921edbaf2466d44c87aeed3367aec67
Signed-off-by: Deeraj Soman <sdeeraj@codeaurora.org>
2019-05-12 18:47:40 -07:00
4c13fa3870 msm: camera: Add uapi changes for axi bw voting v2
Adding uapi definitions for providing granular bw vote info
for camnoc, mnoc ab/ib and ddr paths.

Change-Id: I08a5dd6859b05f869baf9d7a133e00892a89b425
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-05-09 15:18:56 -07:00
0488af213f Merge "soc:qcom:spcom: add ioctl interface" 2019-04-30 10:52:46 -07:00
471ad4e98e soc:qcom:spcom: add ioctl interface
This change introduces ioctl() interface for following operations:
1. SPCOM_SET_IONFD
2. SPCOM_GET_IONFD
Shared with SPU ion buffer is allocated by userspace daemon and the
buffer descriptor is locked in the driver. After userspace daemon is
crashed or restarted, the buffer is intact.
This change need to set/get from the driver the ion buffer file
descriptor.

3. SPCOM_POLL_STATE
Support requests for link up/down state and specific channel connection
state. The request can be blocking (wait for state change) or
non-blocking.

Also removed old poll() implementation for the same
functionality.

Change-Id: Ibeb3743640c0b51e4f15b60947e2dabca658eee5
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2019-04-28 01:26:54 -07:00
c5df9f311d Merge "Indicate support for reporting rx FCS error rate" 2019-04-28 00:32:51 -07:00
fe7ca12935 Merge "msm: cvp: Update configuration for Pyramid feature" 2019-04-28 00:32:48 -07:00
8ece3fcd08 Merge "msm: camera: sensor: Fix wait command opcode mismatch" 2019-04-28 00:32:45 -07:00
6781c6afc1 Merge "msm: ipa4: Endpoint configuration and IPA driver changes for lito" 2019-04-27 23:32:10 -07:00
2e73c5db55 msm: cvp: Update configuration for Pyramid feature
Support CVP Pyramid feature with reduced number of
Octaves and scales per octave.

Change-Id: Id6c450ed2a0612bb5268c57d274ac006b07c4751
Signed-off-by: George Shen <sqiao@codeaurora.org>
2019-04-23 22:33:58 -07:00
68c8361719 msm: ipa4: Endpoint configuration and IPA driver changes for lito
Endpoint configuration and IPA driver changes for lito.

Change-Id: I18fcbfcd99fa854ba59a094d7f8d3c005147e2bb
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2019-04-18 16:53:44 +05:30
26c53c085b Merge "cfg80211/nl80211: Offload OWE processing to user space in AP mode" 2019-04-17 00:37:30 -07:00
cd22865b1e Merge "msm: camera: isp: Add support to update write master" 2019-04-16 07:38:39 -07:00
9cda37b2d7 Merge "uapi: Fix linear color format alignment" 2019-04-16 00:28:31 -07:00
0563121f3e uapi: msm: dolby: Support for TrueHD and MAT decoders
Audio codec addition of MAT and TrueHD decoders for
decoding in DSP.

Change-Id: I049c1210d3600da723850bae1dd61b6ad4b3a78a
Acked-by: Janamaddi Sravan Kumar <c_jsrava@qti.qualcomm.com>
Signed-off-by: Nidhisha Dhananjayan <nidhis@codeaurora.org>
2019-04-16 14:36:31 +08:00
79baead708 Merge "msm: camera: Add support for IFE features" 2019-04-15 21:27:42 -07:00
bcb966a644 nl80211: Add per peer statistics to compute FCS error rate
Add support for drivers to report the total number of MPDUs received
and the number of MPDUs received with an FCS error from a specific
peer. These counters will be incremented only when the TA of the
frame matches the MAC address of the peer irrespective of FCS
error.
It should be noted that the TA field in the frame might be corrupted
when there is an FCS error and TA matching logic would fail in such
cases. Hence, FCS error counter might not be fully accurate, but it can
provide help in detecting bad RX links in significant number of cases.
This FCS error counter without full accuracy can be used, e.g., to
trigger a kick-out of a connected client with a bad link in AP mode to
force such a client to roam to another AP.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 0d4e14a32dcab9c4bd559d02874120fbb86b1322
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
CRs-Fixed: 2336798
Change-Id: I081304f25d50cd875b9d9867819ae3464627de79
Signed-off-by: Ankita Bajaj <bankita@codeaurora.org>
2019-04-16 00:30:33 +05:30
cafac95d7d msm: camera: isp: Add support to update write master
This change adds support to enable the userspace to
update certain write master configurations on the fly.

Change-Id: I7bf4f46e5fa2f4d58b65d19d9d56947cc1bb7300
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
2019-04-11 12:08:14 -07:00
24d069998a msm: camera: Add support for IFE features
1. Add support to listen multiple virtual channels and data
   types from the input stream at CSID.
2. Update to user driver about the selected HW.
3. Add support for picking right HW when custom node is enabled.

Change-Id: I69f2b880892d3c23103ea5b5352303864932eb67
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2019-04-10 21:45:19 -07:00
45affb9be4 msm: camera: sensor: Fix wait command opcode mismatch
Corrected conditional wait opcode offset to parse and
update delay for poll operation.

Change-Id: I26a647cb8e0e7c4374d39bf10bfaabf528c038bd
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2019-04-10 08:15:18 -07:00
08177d39db cfg80211/nl80211: Offload OWE processing to user space in AP mode
This interface allows the host driver to offload OWE processing
to user space. This intends to support OWE (Opportunistic Wireless
Encryption) AKM by the drivers that implement SME but rely on the
user space for the cryptographic/OWE processing in AP mode. Such
drivers are not capable of processing/deriving the DH IE.

A new NL80211 command - NL80211_CMD_UPDATE_OWE_INFO is introduced
to send the request/event between the host driver and user space.

Driver shall provide the OWE info (MAC address and DH IE) of
the peer to user space for cryptographic processing of the DH IE
through the event. Accordingly, the user space shall update the
OWE info/DH IE to the driver.

Following is the sequence in AP mode for OWE authentication.

Driver passes the OWE info obtained from the peer in the
Association Request to the user space through the event
cfg80211_update_owe_info_event. User space shall process the
OWE info received and generate new OWE info. This OWE info is
passed to the driver through NL80211_CMD_UPDATE_OWE_INFO
request. Driver eventually uses this OWE info to send the
Association Response to the peer.

This OWE info in the command interface carries the IEs that include
PMKID of the peer if the PMKSA is still valid or an updated DH IE
for generating a new PMKSA with the peer.

Signed-off-by: Liangwei Dong <liangwei@codeaurora.org>
Signed-off-by: Sunil Dutt <usdutt@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: cb74e9775871f8c82a1297cf76209f10ab5bbe3d
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
Change-Id: I3b0391cd6da1ff033f4d8383013deb4ad5ecbe64
CRs-Fixed: 2414077
Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org>
2019-04-09 04:58:11 -07:00
b1096dd100 cfg80211: Sync nl80211 commands/feature with upstream
Update header for nl80211 nl80211_ext_feature_index and
nl80211_commands enum from master branch of upstream repoistory
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
which includes the following changes (with changes to extract
"enum" value change only):
91b5ab6289 cfg80211: support 4-way handshake offloading for WPA/WPA2-PSK
3a00df5707 cfg80211: support 4-way handshake offloading for 802.1X
2d23d0736e nl80211: add OCE scan and capability flags
65026002d6 nl80211: add an option to allow MFP without requiring it
5037a00992 nl80211: Introduce scan flags to emphasize requested scan
behavior
13cf6dec93 cfg80211/nl80211: add DFS offload flag
2576a9ace4 nl80211: Implement TX of control port frames
9c06602b1b9 cfg80211: clarify frames covered by average ACK signal report
52539ca89f cfg80211: Expose TXQ stats and parameters to userspace
2e076f1990 nl80211: add scan features for improved scan privac
2b815b04dfe nl80211: Add CAN_REPLACE_PTK0 API
81e54d08d9d cfg80211: support FTM responder configuration/statistics
36647055b37 cfg80211: Add airtime statistics and settings
466b9936bf cfg80211: Add support to notify station's opmode change to
userspace
6a671a50f8 nl80211: Add CMD_CONTROL_PORT_FRAME API
9bb7e0f24e7 cfg80211: add peer measurement with FTM initiator API
30c63115e20 nl80211: Add support to notify radar event info received from
STA.

CRs-Fixed: 2396941
Change-Id: I976a9177b9dd705c6131a3a9a62d64432e3d715a
Signed-off-by: Liangwei Dong <liangwei@codeaurora.org>
Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org>
2019-04-09 15:43:55 +05:30
df4e66baff Merge "defconfig: kona: enable QTI crypto driver" 2019-04-07 23:09:54 -07:00
ab3b8db5a4 uapi: Fix linear color format alignment
Fix linear color format alignment. Alignment follows:
Y_Stride: Width should be aligned to 512.
UV_Stride: Width should be aligned to 512.
Y_Scanlines: Height should be aligned to 512.
UV_Scanlines: Height/2 should be aligned to 256.

Change-Id: Id858b656746b574a2b2ef0db6de5478e73eeb136
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
2019-04-05 17:18:53 -07:00
84eedef2cb crypto: msm: Add QTI crypto drivers
This is a snapshot of the crypto drivers as of msm-4.14
commit <0c0f7fab791> (crypto: qcedev: Fix out of memory issue)
with changes to comply with msm-4.19 format requirement.

Change-Id: Ic566a15e41511d229a9e476c03962753da583946
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2019-04-05 12:50:03 -07:00
9d2bc76ae9 Merge "msm: ipa: Support Modem distinction of LE MBB and LE MHI" 2019-03-27 16:55:19 -07:00
55be9a0880 msm: ipa: Support Modem distinction of LE MBB and LE MHI
Add support for MHI protocol for QMI msg types.

Change-Id: I98c5fe64ef5fae31954ffe62d40adb759851c86c
Acked-by: Michal Amsterdam <mamsterd@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-03-26 05:56:28 -07:00
4ee5d88131 msm: ipa: Define WLAN FW SSR event
Define WLAN FW SSR max event to handle FW rejuvenate
scenario.

Change-Id: I2626f32841ac6e554661e448c98272745af781a0
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2019-03-25 23:18:54 -07:00
041a4fc27e Merge "drm/msm/sde: add seamless dsi panel operating mode transition" 2019-03-25 18:25:04 -07:00
a0ea5cbbc1 Merge "msm: camera: Add support for enabling DSx, stats and input select" 2019-03-25 11:46:23 -07:00
84f05e713a drm/msm/sde: add seamless dsi panel operating mode transition
DSI display may support video mode and command mode both and
it may support transition between these two modes.
This change adds seamless transition between these two modes
for any display by avoiding crtc enable/disable during modeset.
It creates video and command mode physical encoders respectively
to support dynamic panel operating mode switch.

Change-Id: I825702de04b728976dd081e0169bb8e0af520b7b
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
2019-03-24 19:21:40 -07:00
e2739dee5b Merge "Merge android-4.19.27 (36d178b) into msm-4.19" 2019-03-22 09:56:33 -07:00
517c38125c msm: camera: Add support for enabling DSx, stats and input select
DSx, stats and input select are part of core config registers.
Add support to enable them.

Change-Id: I8e7ea618a57c235d23c4fb65c9fce8087f153cbc
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2019-03-21 14:56:20 -07:00
ceff904453 Merge "msm: ipa: include file changes fo MHI PRIME channels support" 2019-03-21 13:37:42 -07:00
bd72c908a7 Merge android-4.19.27 (36d178b) into msm-4.19
* refs/heads/tmp-36d178b:
  Linux 4.19.27
  x86/uaccess: Don't leak the AC flag into __put_user() value evaluation
  MIPS: eBPF: Fix icache flush end address
  MIPS: BCM63XX: provide DMA masks for ethernet devices
  MIPS: fix truncation in __cmpxchg_small for short values
  hugetlbfs: fix races and page leaks during migration
  drm: Block fb changes for async plane updates
  mm: enforce min addr even if capable() in expand_downwards()
  mmc: sdhci-esdhc-imx: correct the fix of ERR004536
  mmc: cqhci: Fix a tiny potential memory leak on error condition
  mmc: cqhci: fix space allocated for transfer descriptor
  mmc: core: Fix NULL ptr crash from mmc_should_fail_request
  mmc: tmio: fix access width of Block Count Register
  mmc: tmio_mmc_core: don't claim spurious interrupts
  mmc: spi: Fix card detection during probe
  kvm: selftests: Fix region overlap check in kvm_util
  KVM: nSVM: clear events pending from svm_complete_interrupts() when exiting to L1
  svm: Fix AVIC incomplete IPI emulation
  cfg80211: extend range deviation for DMG
  mac80211: Add attribute aligned(2) to struct 'action'
  mac80211: don't initiate TDLS connection if station is not associated to AP
  ibmveth: Do not process frames after calling napi_reschedule
  net: dev_is_mac_header_xmit() true for ARPHRD_RAWIP
  net: usb: asix: ax88772_bind return error when hw_reset fail
  drm/msm: Fix A6XX support for opp-level
  nvme-multipath: drop optimization for static ANA group IDs
  nvme-rdma: fix timeout handler
  hv_netvsc: Fix hash key value reset after other ops
  hv_netvsc: Refactor assignments of struct netvsc_device_info
  hv_netvsc: Fix ethtool change hash key error
  net: altera_tse: fix connect_local_phy error path
  scsi: csiostor: fix NULL pointer dereference in csio_vport_set_state()
  scsi: lpfc: nvmet: avoid hang / use-after-free when destroying targetport
  scsi: lpfc: nvme: avoid hang / use-after-free when destroying localport
  writeback: synchronize sync(2) against cgroup writeback membership switches
  direct-io: allow direct writes to empty inodes
  staging: android: ion: Support cpu access during dma_buf_detach
  drm/sun4i: hdmi: Fix usage of TMDS clock
  serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling
  tty: serial: qcom_geni_serial: Allow mctrl when flow control is disabled
  drm/amd/powerplay: OD setting fix on Vega10
  locking/rwsem: Fix (possible) missed wakeup
  futex: Fix (possible) missed wakeup
  sched/wake_q: Fix wakeup ordering for wake_q
  sched/wait: Fix rcuwait_wake_up() ordering
  mac80211: fix miscounting of ttl-dropped frames
  staging: rtl8723bs: Fix build error with Clang when inlining is disabled
  drivers: thermal: int340x_thermal: Fix sysfs race condition
  ARC: show_regs: lockdep: avoid page allocator...
  ARC: fix __ffs return value to avoid build warnings
  irqchip/gic-v3-mbi: Fix uninitialized mbi_lock
  selftests: gpio-mockup-chardev: Check asprintf() for error
  selftests: seccomp: use LDLIBS instead of LDFLAGS
  phy: ath79-usb: Fix the main reset name to match the DT binding
  phy: ath79-usb: Fix the power on error path
  selftests/vm/gup_benchmark.c: match gup struct to kernel
  ASoC: imx-audmux: change snprintf to scnprintf for possible overflow
  ASoC: dapm: change snprintf to scnprintf for possible overflow
  ASoC: rt5682: Fix PLL source register definitions
  x86/mm/mem_encrypt: Fix erroneous sizeof()
  genirq: Make sure the initial affinity is not empty
  selftests: rtc: rtctest: add alarm test on minute boundary
  selftests: rtc: rtctest: fix alarm tests
  usb: gadget: Potential NULL dereference on allocation error
  usb: dwc3: gadget: Fix the uninitialized link_state when udc starts
  usb: dwc3: gadget: synchronize_irq dwc irq in suspend
  thermal: int340x_thermal: Fix a NULL vs IS_ERR() check
  clk: vc5: Abort clock configuration without upstream clock
  clk: sysfs: fix invalid JSON in clk_dump
  clk: tegra: dfll: Fix a potential Oop in remove()
  ASoC: Variable "val" in function rt274_i2c_probe() could be uninitialized
  ALSA: compress: prevent potential divide by zero bugs
  ASoC: Intel: Haswell/Broadwell: fix setting for .dynamic field
  drm/msm: Unblock writer if reader closes file
  scsi: libsas: Fix rphy phy_identifier for PHYs with end devices attached
  mac80211: Change default tx_sk_pacing_shift to 7
  genirq/matrix: Improve target CPU selection for managed interrupts.
  irq/matrix: Spread managed interrupts on allocation
  irq/matrix: Split out the CPU selection code into a helper
  FROMGIT: binder: create node flag to request sender's security context

  Modify include/uapi/linux/android/binder.h, as commit:

  FROMGIT: binder: create node flag to request sender's security context

  introduces enums and structures, which are already defined in other
  userspace files that include the binder uapi file. Thus, the
  redeclaration of these enums and structures can lead to
  build errors. To avoid this, guard the redundant declarations
  in the uapi header with the __KERNEL__ header guard, so they
  are not exported to userspace.

Conflicts:
	drivers/staging/android/ion/ion.c
	sound/core/compress_offload.c

Change-Id: Ibf422b9b32ea1315515c33036b20ae635b8c8e4c
Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-03-21 01:42:04 -07:00
93d032cef4 Merge "ARM: dts: msm: add support for QBT_HANDLER on kona" 2019-03-20 15:29:36 -07:00
c9728676db drivers: soc: qti: Add support for fingerprint sensor driver
Add snapshot for qbt_handler from msm-4.14 commit a139cb68a211
(soc: qcom: add support for fingerprint sensor driver).

Change-Id: I9209db5e1deeb7a70e32142b49dfab4eb93d3f02
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2019-03-20 08:53:29 -07:00
876f730dde Merge "msm: vidc: support setting bitrate savings" 2019-03-20 06:30:06 -07:00
d7e572828b msm: ipa: include file changes fo MHI PRIME channels support
This change enables MHI PRIME channels for IPA tethering
offload support.

Change-Id: Ie92ee012f4aebf2f687237e26b035efecdcfcfe8
Acked-by: Jyothi J <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2019-03-18 18:16:13 -07:00
2ae010463e msm: cvp: optimize CVP HFI packet handling
Remove redundant handling logic. Rename CVP system call
command structure to avoid name conflict with video driver.
Add new commands needed by camera processing pipeline.

Change-Id: I59a628f7ae2bf9ad7c6e075ed3e1a3794f25e05c
Signed-off-by: George Shen <sqiao@codeaurora.org>
2019-03-18 11:33:02 -07:00
56023da4c4 msm: ipa: Move NAT invalid protocol define to uapi
NAT invalid protocol is needed by user space process.
Move it to uapi to make it accessible to user space.

Change-Id: I4d1700176483c93f78f48979d602f7568867b378
Acked-by: Michal Amsterdam <mamsterd@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-03-17 10:19:14 -07:00
5a61139117 Merge "msm: ipa: IPA IS_APPS_CONS MACRO changes" 2019-03-17 06:45:23 -07:00
34861af9f0 Merge "FBE: Add support for hardware based FBE on f2fs and adapt ext4 fs" 2019-03-17 06:45:23 -07:00
78d9e2d9f2 Merge "Merge android-4.19.26 (c97d2b5) into msm-4.19" 2019-03-17 00:56:17 -07:00