Commit graph

892,914 commits

Author SHA1 Message Date
Jordan Crouse
ba7d8b8807 msm: kgsl: Finish up the last bits of the perfcounter transition
Now that all the perfcounter code is safely target specific finish up the
transition. First move the perfcounter definition from the gpudev to the
adreno_gpu_core so that we can specify the list per target which gives us
more control than modifying the gpudev at runtime or creating multiple
gpudev structs just for the perfcounter deltas.

Further drive home the point by marking the perfcounter and groups
as const. The perfcounter migration has now completed. You don't have
to go home, but you can't stay here.

Change-Id: Ic0dedbad4b4dbb8e9e49ed94dc23b97fc578324b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-09-25 12:41:37 -06:00
qctecmdr
1276e88a08 Merge "icc: dt-bindings: add endpoint IDs for interconnects for YUPIK" 2020-09-25 10:11:38 -07:00
qctecmdr
6d09adc73b Merge "defconfig: msm: Enable support for SCSI Generic(Sg)" 2020-09-25 10:11:38 -07:00
qctecmdr
c1cbc356a9 Merge "msm: cvp: Avoid referencing uninitialized variable" 2020-09-25 10:11:38 -07:00
qctecmdr
f5ea7fb93e Merge "cnss2: Assert when power on retry reaches maximum" 2020-09-25 10:11:37 -07:00
qctecmdr
11cd834e3c Merge "cnss2: Log a message after assert/de-assert WLAN_EN GPIO" 2020-09-25 10:11:37 -07:00
qctecmdr
4e16ed70f3 Merge "power: qpnp-smb5: Modify the usage of INPUT_CURRENT_LIMIT in batt_psy" 2020-09-25 10:11:37 -07:00
qctecmdr
0d177e5dc6 Merge "dma-buf: Handle dentry->d_fsdata being NULL" 2020-09-25 10:11:36 -07:00
Paras Singh Jain
cd7cefac9b msm: netfilter: NATTYPE Refresh Timer Changes
NATTYPE entry timeout will not be updated when packets
start flowing through IPA and eventually can timeout.
Make changes to refresh the NATTYPE entry timeout from
the connection tracking netlink module which is used by
IPANAT to update conntrack timeout. Also make the timeout
dynamic by taking the expiry timeout value from connection
tracking entry. Otherwise NATTYPE entry will not timeout
even when all the corresponding conntrack entries expire.
Also, This change takes care of porting of below changes
1) commit <083e4be118eff7f86b7021ec393d34a6028689e7>
("<netfilter: Add of NATTYPE COOKIE Check>")
2) commit <5daaf005c32bbc8ce17e01054b21c0b292bcd20f>
("<ipt_NATTYPE: Fix for changes in 
   c7232c9979>")
3) commit <fbdd4c2032b3019ab71d3ed8fbcecb7b090215c6>
("<netfilter: Move NATTYPE forward mode to POSTROUTING chain>").

CRs-FIXED: 490813
Change-Id: Ibb225d7b91070ca9948c7a11f0b5925a8435915c
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-09-25 21:35:31 +05:30
Paras Singh Jain
87581bec40 msm: netfilter: NATTYPE Refresh Timer Changes
When IPA is present, all the data packets go through IPA
and as a result NATTYPE entry timeout will not be refreshed
and eventually it times out. IPA periodically refreshes
the connection tracking entry timeout. So making changes to refresh
the NATTYPE entry timeout from the connection tracking module.

Change-Id: I5861427990af4bfd6046d21809a778409d0d8d5f
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-09-25 21:30:06 +05:30
Paras Singh Jain
989de097d6 Support full CONE NAT and ADDRESS RESTRICTED CONE NAT
Adding support for Full cone NAT and Address Restricted Cone
NAT by using the NATTYPE module.

Change-Id: Ib17f87757b86fdb88bbe25bab7d7193b0530f812
Git-commit: 4d71eea17c1eb4362f9d1ae13fce53815b6c9574
Git-repo: source.codeaurora.org/quic/le/kernel/msm/commit/?h=msm-3.4
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-09-25 21:26:24 +05:30
Mohammed Siddiq
02e42bd387 cnss2: Enable self-recovery only when host driver detects linkdown
Enable self recovery only when the host driver detects link down.

Change-Id: I415dd838ef9288922ceeb0ab46b7b6ea95d00ebb
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-09-25 17:40:02 +05:30
Jeya R
3cb776ebaa adsprpc: Move sleepable operations outside spin_lock
Use flag to inidcate the allocation of memory to the
buffer and move sleepable operation: kzalloc outside
spin_lock.

Change-Id: Ic5983be3d65a41dfa389f817db8d44a55e068771
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2020-09-25 17:18:29 +05:30
Sriharsha Allenki
8cc1c4a6a9 usb: gadget: Remove assigning the function descriptors
The usb_assign_descriptors copies the descriptors depending
on the maximum speed supported by the gadget.
If the function drivers unconditionally assign the
descriptors and the speed is limited to full, the switching
to the same function would lead to a use after free.
Fix this by removing unconditional assigning of descriptors
in the function drivers.

Change-Id: Id283c87d6f3ccf708507afb66a3b93121022e990
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-09-25 02:04:16 -07:00
Gopala Krishna Nuthaki
b2e3b21407 drivers: thermal: call TSENS re-init only when register is ready to update
If TSENS controller reset pin is held asserted for long duration
and the same time if TSENS software detects TSENS reset and tries
to re-initialize TSENS controller, TSENS initialization may not
reflect in TSENS register due to reset pin is held asserted.
Invoke TSENS re-init routine only if software is able to write
TSENS register successfully. It makes sure that TSENS re-init
routine is able to re-initialize TSENS controller.

Add a check whether TSENS is re-enabled or not on post TSENS re-init.
If it is not re-enabled, re-try TSENS re-init routine.

Change-Id: I1b0500b4d08b28c200d6b818d91650e272be709d
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
2020-09-25 01:42:21 -07:00
Sriharsha Allenki
af19ab9022 usb: dwc3: Fix invalid charger type detection for float
The charger driver on certain platform depends on the
USB to differentiate between a Standard Downstream Port
and a Float charger, so that the case of slow insertion
is taken care of. The USB driver has to set the current
to -ETIMEDOUT for float and a valid value (100mA, 500mA, 900mA)
for SDP so that the charger can differentiate between the two.

Add the support for the same by checking the linkstate
in a second in the case the charger detected is Float
to differentiate between Standard Downstream Port
and a Float charger.

Change-Id: Ibfbf1225543a8d3c097dae8772b0ce5f1bce0205
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-09-25 12:31:12 +05:30
Will McVicker
b8f04a0f4a ANDROID: drop KERNEL_DIR setting in build.config.common
And replace many references of ${ROOT_DIR}/common with
${ROOT_DIR}/${KERNEL_DIR}, which makes it a lot easier
to branch off of ACK and update the KERNEL_DIR.

The variable of KERNEL_DIR will be set in build/_setup_env.sh
to the directory of the build config file by default if it's
not set explicitly in the build config file or in environment.

Test: build test with following configs
        common/build.config.gki.aarch64
        common/build.config.db845c
        common/build.config.hikey960
        common-modules/virtual-device/build.config.cuttlefish.aarch64
        common-modules/virtual-device/build.config.goldfish.aarch64

Bug: 162785964
Change-Id: I790ac0ded10bd790484f14c6f93d53e06c38b830
Signed-off-by: Will McVicker <willmcvicker@google.com>
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
(cherry picked from commit 931718fa65fe5e34d143250c048f591a7d74e5f8)
2020-09-25 14:50:31 +08:00
Huadong Gao
b335340c44 input: touchscreen: focaltech: fix return value
When no touch panel, return proper value to exit driver probe.

Change-Id: I422f14ba6c942252346c46df5ccbc2f1f8be7731
Signed-off-by: Huadong Gao <huadgao@codeaurora.org>
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-09-25 14:15:05 +08:00
Fei Mao
eedb3f1f9b input: touchscreen: mxt: add callback from drm panel
Add callback function from drm panel, so touch driver can be
notified when panel is on or off.

Change-Id: Icd80ef60db3574b3eed3f9d2b8430923580baf69
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-09-25 10:39:11 +08:00
Raghavendra Rao Ananta
e32adae0a6 ANDROID: ABI: Update allowed list for QCOM
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added
function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added
variable

1 Added function:

  [A] 'function int check_zeroed_user(void*, unsigned long int)'

Bug: 169321538
Change-Id: Iaa693ec807daf12485d14c54a7205b4703c12de7
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-09-24 11:22:02 -07:00
Ravikanth Tuniki
c8d43f1825 Revert "dt-bindings: input: touchscren: add description for synaptics_dsx"
This reverts commit 9fed4d8bdd.
Revert the description for synaptics_dsx to avoid unnecessary
documentation.

Change-Id: Ied0263529bca79c083a3e2e67e3559f5a32087d1
Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
2020-09-24 22:36:08 +05:30
Greg Kroah-Hartman
7dded4ebf0 Revert "UPSTREAM: ehci-hcd: Move include to keep CRC stable"
Revert submission 1437052

Reason for revert: ABI is changed.  While is is correct, we will hold off doing this for another week.

Reverted Changes:
Iae19ae10f:UPSTREAM: ehci-hcd: Move include to keep CRC stabl...
I85a933434:ANDROID: Update android/abi_gki_aarch64.xml

Change-Id: I2859f7b3ffa293371f842c01ecf433a84d5e1179
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2020-09-24 16:22:26 +00:00
Greg Kroah-Hartman
a24fabe78a Revert "ANDROID: Update android/abi_gki_aarch64.xml"
Revert submission 1437052

Reason for revert: ABI is changed.  While is is correct, we will hold off doing this for another week.

Reverted Changes:
Iae19ae10f:UPSTREAM: ehci-hcd: Move include to keep CRC stabl...
I85a933434:ANDROID: Update android/abi_gki_aarch64.xml

Change-Id: If22472924ae1a42956123806eeb4fed750db5204
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2020-09-24 16:21:58 +00:00
Quentin Perret
9ed03658fe ANDROID: Update android/abi_gki_aarch64.xml
Leaf changes summary: 5 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 5 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

5 functions with some sub-type change:

  [C] 'function int ehci_handshake(ehci_hcd*, void*, u32, u32, int)' at ehci-hcd.c:148:1 has some sub-type changes:

    CRC value (modversions) changed from 0xab5f23a3 to 0xe32dc66c

  [C] 'function void ehci_init_driver(hc_driver*, const ehci_driver_overrides*)' at ehci.h:879:1 has some sub-type changes:

    CRC value (modversions) changed from 0x70c01a65 to 0x5bd6ac93

  [C] 'function int ehci_resume(usb_hcd*, bool)' at ehci.h:887:1 has some sub-type changes:

    CRC value (modversions) changed from 0x51dbddda to 0xa250ac83

  [C] 'function int ehci_setup(usb_hcd*)' at ehci.h:881:1 has some sub-type changes:

    CRC value (modversions) changed from 0x175f644c to 0xda517721

  [C] 'function int ehci_suspend(usb_hcd*, bool)' at ehci-hcd.c:1085:1 has some sub-type changes:

    CRC value (modversions) changed from 0x3afe7f3 to 0x5a7df441

Bug: 167230325
Signed-off-by: Quentin Perret <qperret@google.com>
Change-Id: I85a93343482eacce6e989f545dcd89432ad70c85
2020-09-24 13:56:52 +01:00
Quentin Perret
ce50287a2b UPSTREAM: ehci-hcd: Move include to keep CRC stable
The CRC calculation done by genksyms is triggered when the parser hits
EXPORT_SYMBOL*() macros. At this point, genksyms recursively expands the
types of the function parameters, and uses that as the input for the CRC
calculation. In the case of forward-declared structs, the type expands
to 'UNKNOWN'. Following this, it appears that the result of the
expansion of each type is cached somewhere, and seems to be re-used
when/if the same type is seen again for another exported symbol in the
same C file.

Unfortunately, this can cause CRC 'stability' issues when a struct
definition becomes visible in the middle of a C file. For example, let's
assume code with the following pattern:

    struct foo;

    int bar(struct foo *arg)
    {
	/* Do work ... */
    }
    EXPORT_SYMBOL_GPL(bar);

    /* This contains struct foo's definition */
    #include "foo.h"

    int baz(struct foo *arg)
    {
	/* Do more work ... */
    }
    EXPORT_SYMBOL_GPL(baz);

Here, baz's CRC will be computed using the expansion of struct foo that
was cached after bar's CRC calculation ('UNKOWN' here). But if
EXPORT_SYMBOL_GPL(bar) is removed from the file (because of e.g. symbol
trimming using CONFIG_TRIM_UNUSED_KSYMS), struct foo will be expanded
late, during baz's CRC calculation, which now has visibility over the
full struct definition, hence resulting in a different CRC for baz.

The proper fix for this certainly is in genksyms, but that will take me
some time to get right. In the meantime, we have seen one occurrence of
this in the ehci-hcd code which hits this problem because of the way it
includes C files halfway through the code together with an unlucky mix
of symbol trimming.

In order to workaround this, move the include done in ehci-hub.c early
in ehci-hcd.c, hence making sure the struct definitions are visible to
the entire file. This improves CRC stability of the ehci-hcd exports
even when symbol trimming is enabled.

Bug: 167230325
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20200916171825.3228122-1-qperret@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 29231826f3bd65500118c473fccf31c0cf14dbc0)
Change-Id: Iae19ae10feb15fd775076acdd2e0b29d7ccb6b20
2020-09-24 12:47:37 +00:00
Vipin Deep Kaur
dab3bb095d i2c-msm-v2: Add snapshot of I2C MSM V2 driver
This change adds a snapshot of I2C MSM V2 driver
from the 4.19 branch.
This is snapshot of the I2C MSM V2 driver as of
msm-4.19 'commit dc71920da99e ("Merge "i2c-msm-v2:
Add snapshot of I2C MSM V2 driver"")'.

Change-Id: I25ca3134fe80e5fdefcbfdb568f22692955e863a
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-09-24 17:59:17 +05:30
Fei Mao
4c39257324 input: touchscreen: mxt: irq handler return value
This irq is only for touchscreen, not shared with others.
When meets errors, just ignore it, and don't throw again.

Change-Id: I926f645bd1e763792386aa74cedcf649d88b18a9
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-09-24 18:34:49 +08:00
Masahiro Yamada
bc93285fae UPSTREAM: kbuild: use CONFIG_CC_VERSION_TEXT to construct LINUX_COMPILER macro
scripts/mkcompile_h runs $(CC) just for getting the version string.
Reuse CONFIG_CC_VERSION_TEXT for optimization.

For GCC, this slightly changes the version string. I do not think it
is a big deal as we do not have the defined format for LINUX_COMPILER.
In fact, the recent commit 4831f7ad6c ("kbuild: mkcompile_h:
Include $LD version in /proc/version") added the linker version.

Bug: 168274246

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit 9a950154668729a472d17b8e307d92e7c60f45f7)
Signed-off-by: Mars Lin <marslin@google.com>
Change-Id: I66bac5b44bf764e7c0e432ae17bcdf06d79c96d0
2020-09-24 10:02:57 +00:00
Masahiro Yamada
68aee2bc3d UPSTREAM: kbuild: do not pass $(KBUILD_CFLAGS) to scripts/mkcompile_h
scripts/mkcompile_h uses $(CC) only for getting the version string.

I suspected there was a specific reason why the additional flags were
needed, and dug the commit history. This code dates back to at least
2002 [1], but I could not get any more clue.

Just get rid of it.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=29f3df7eba8ddf91a55183f9967f76fbcc3ab742

Bug: 168274246

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
(cherry picked from commit 01a6126b5f7efdf75480a2b970377f5724cb885a)
Signed-off-by: Mars Lin <marslin@google.com>
Change-Id: If887ea1e9e43b9ce83bf8fe9cc0db809818c3bb8
2020-09-24 10:02:48 +00:00
Masahiro Yamada
eed9382d52 UPSTREAM: kbuild: ensure full rebuild when the compiler is updated
Commit 21c54b7747 ("kconfig: show compiler version text in the top
comment") added the environment variable, CC_VERSION_TEXT in the comment
of the top Kconfig file. It can detect the compiler update, and invoke
the syncconfig because all environment variables referenced in Kconfig
files are recorded in include/config/auto.conf.cmd

This commit makes it a CONFIG option in order to ensure the full rebuild
when the compiler is updated.

This works like follows:

include/config/kconfig.h contains "CONFIG_CC_VERSION_TEXT" in the comment
block.

The top Makefile specifies "-include $(srctree)/include/linux/kconfig.h"
to guarantee it is included from all kernel source files.

fixdep parses every source file and all headers included from it,
searching for words prefixed with "CONFIG_". Then, fixdep finds
CONFIG_CC_VERSION_TEXT in include/config/kconfig.h and adds
include/config/cc/version/text.h into every .*.cmd file.

When the compiler is updated, syncconfig is invoked because init/Kconfig
contains the reference to the environment variable CC_VERTION_TEXT.
CONFIG_CC_VERSION_TEXT is updated to the new version string, and
include/config/cc/version/text.h is touched.

In the next rebuild, Make will rebuild every files since the timestamp
of include/config/cc/version/text.h is newer than that of target.

Bug: 168274246

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit 8b59cd81dc5e724eaea283fa6006985891c7bff4)
Signed-off-by: Mars Lin <marslin@google.com>
Change-Id: Ie52bb8e33b95d0e97998024d28c0d8d7caf8aa59
2020-09-24 10:02:38 +00:00
George Shen
9fcafd916f msm: cvp: Avoid referencing uninitialized variable
Initialize a local variable before referening it.

Change-Id: I469eb892b418fb1906ebf4c093ac28d249412cdd
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-09-23 16:31:04 -07:00
Chris Lew
222b6522d0 net: qrtr: Force wakeups for data packets
Force a wakeup when queueing packets to a socket. This is needed to
give userspace clients a chance to run if the device is going into
system suspend. The wakeup event should force the device to abort
suspend.

The only node that should not behave this way is the SLPI node because
sensor stream race conditions cause suspend issues and power drain
issues.

Change-Id: I4375e36261dd18da7bae5a5a4f3f708ed00ed62f
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-09-23 16:27:13 -07:00
Jordan Crouse
4b3d0da614 msm: kgsl: Move a3xx perfcounters to target specific
Add support for per-group enable and read functions and move all of the
3xx perfcounters to target specific code with specialized functions.
The a3xx functions are the most "non-standard" of the bunch because of
the freeze/unfreeze wrappers we need for most registers.

Change-Id: Ic0dedbad110eeaf667f6f44d809d4cd90942451a
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-09-23 13:48:07 -06:00
Jordan Crouse
cbc0071600 msm: kgsl: Move a5xx perfcounters to target specific code
Continuing to migrate the perfcounters by moving the a5xx counters
to the target specific side.

Change-Id: Ic0dedbad0ff3876e291a9daedb2349daf1e1916c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-09-23 13:48:07 -06:00
Raghavendra Rao Ananta
97a29ab161 soc: qcom: llcc-lahaina: Disable 'retain on PC' for Audio
Disable the retain on PC for Audio's slice-id.

Change-Id: Ia75a692da2455e3d6afcaeccc6f045683e2ca7ee
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-09-23 12:19:07 -07:00
Yue Ma
74bb9a8d87 cnss2: Assert when power on retry reaches maximum
In order to catch the issue immediately, assert when power on retry
for PCIe resume reaches maximum.

Change-Id: Ie370e031e68721b531aae909f56bc45b9d9b59d8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-09-23 12:04:01 -07:00
Yue Ma
a3c77b62e8 cnss2: Log a message after assert/de-assert WLAN_EN GPIO
Print after successfully assert/de-assert WLAN_EN GPIO for
debug purpose.

Change-Id: I3094252cf2f14d7a5e438ea8a8983b9b30fc75ed
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-09-23 11:49:16 -07:00
Tony Truong
f6ff45ddca msm: pcie: update PCIe internal AUX CLK from boolean to a programmable type
PCIe internal AUX clock frequency used to be either 1MHz or
19.2MHz. The devicetree entry was a boolean type to determine
which frequency to program in PCIe controller. Newer chipsets
may support other frequencies such as 16.6MHz. Update the
devicetree entry so that it accepts a decimal value for the
desired frequency to be programmed in PCIe controller.

Change-Id: Idd672bfb2908a15b9ee3e72654eb4d40a6d9b624
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-09-23 11:40:44 -07:00
Yongqin Liu
3a95b9057a ANDROID: abi: update for hikey960
Leaf changes summary: 9 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 9 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

9 Added functions:

  [A] 'function void tcpm_cc_change(tcpm_port*)'
  [A] 'function void tcpm_pd_hard_reset(tcpm_port*)'
  [A] 'function void tcpm_pd_receive(tcpm_port*, const pd_message*)'
  [A] 'function void tcpm_pd_transmit_complete(tcpm_port*, tcpm_transmit_status)'
  [A] 'function tcpm_port* tcpm_register_port(device*, tcpc_dev*)'
  [A] 'function void tcpm_tcpc_reset(tcpm_port*)'
  [A] 'function void tcpm_unregister_port(tcpm_port*)'
  [A] 'function void tcpm_vbus_change(tcpm_port*)'
  [A] 'function usb_role usb_role_switch_get_role(usb_role_switch*)'

and fix insmod failures reported like the following when use the gki kernel:
    [    5.829264] hisi_hikey_usb: Unknown symbol usb_role_switch_get_role (err -2)

    [    7.989462] tcpci: Unknown symbol tcpm_cc_change (err -2)
    [    7.994896] tcpci: Unknown symbol tcpm_tcpc_reset (err -2)
    [    8.000384] tcpci: Unknown symbol tcpm_vbus_change (err -2)
    [    8.005961] tcpci: Unknown symbol tcpm_pd_receive (err -2)
    [    8.011462] tcpci: Unknown symbol tcpm_pd_hard_reset (err -2)
    [    8.017221] tcpci: Unknown symbol tcpm_pd_transmit_complete (err -2)
    [    8.023576] tcpci: Unknown symbol tcpm_register_port (err -2)
    [    8.029323] tcpci: Unknown symbol tcpm_unregister_port (err -2)

Via the following commands:
    $ ./build/abi/bootstrap
    <follow instructions for adding needed path variables>
    $ BUILD_CONFIG=common/build.config.hikey960 build/build_abi.sh --update --print-report
    $ BUILD_CONFIG=common/build.config.gki.aarch64 build/build_abi.sh --update --print-report

Test: boot tested with hikey960 android11 builds

Fixes: bb765ef8427e ("ANDROID: GKI: enable QCOM and HISI UFS drivers")
Fixes: 5625a6460e96 ("ANDROID: GKI: enable CONFIG_TYPEC_TCPM")
Fixes: f82716d6b7 ("ANDROID: hikey960_gki.fragment: Remove UFS and USB bits")

Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: I700cc535d7281ea43b72a5268493656151c77d3d
2020-09-23 18:23:27 +00:00
Puranam V G Tejaswi
dacc441b32 msm: kgsl: Make sure GPU is idle before changing the CPAPRIV bit
Add WAIT_FOR_IDLE and WAIT_FOR_ME/WAIT_FOR_CP_FLUSH commands before
adding commands to change the CPAPRIV bit. In absence of these
synchronizing commands write permission faults to pagetable_desc
are observed.

Change-Id: I1d47fd050a9d9f97858ee24b22a2a3cf99cc5e69
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
2020-09-23 22:10:53 +05:30
Pankaj Gupta
9bf0dd076a msm: kgsl: Poll GDSCR to ensure CX collapse
The regulator_is_enabled() API doesn't guarantee that CX gdsc has
collapsed at hardware. There could be a vote on the GDSC from another
subsystem like TZ. So poll the CX GDSCR register to ensure that CX has
indeed collapsed.

Change-Id: Id98c5318d5358b16f4277cb5d96027add63ad801
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
Signed-off-by: Indira Biruduraju <ibirudur@codeaurora.org>
2020-09-23 21:01:25 +05:30
Nitin Rawat
b277b51bab defconfig: msm: Enable support for SCSI Generic(Sg)
This config enable the support for scsi generic driver.

Change-Id: Ib895134d3bd1635f612b9254900162160fbd67ea
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-09-23 20:27:24 +05:30
Odelu Kukatla
1fb35297c9 icc: dt-bindings: add endpoint IDs for interconnects for YUPIK
Add master and slave ID constants for all Qualcomm Technologies, Inc.
Yupik interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.

Change-Id: I0098d170786dacc3869485b86917b1a0a7491bfc
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-09-23 06:27:55 -07:00
Mohammed Siddiq
aabb9a2b65 cnss2: Change to add prints on link down callback
Change to add prints on link down callback.

Change-Id: I7cfe38fa2185f97b4c0c2b784c143cd1acc4cca5
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-09-23 17:42:02 +05:30
Mohammed Siddiq
9fd46d70d9 cnss2: change to enable self recovery
Change to enable self recovery if the param
cnss-enable-self-recovery is present in the
dt node.

Change-Id: I4c88153a161054162e99182a0ea89041d8960b3b
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-09-23 17:13:34 +05:30
Vijayanand Jitta
d0f6d49a8d tracing: Add CONFIG_KPROBES_DEBUG config
Add CONFIG_KPROBES_DEBUG which exports the required function
and structures used by the kprobe module to search for a
synthetic event and aid in debugging.

Change-Id: Iea395b012d3ad8b40ace1f6e19dc9bf74c5fb5c8
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-23 01:06:00 -07:00
John Stultz
1d65a4b7a6 ANDROID: dts: hi3660: Fix duplicate adv7533 nodes
The adv7533 node had a duplicate entry in the hi3660.dtsi
which is misplaced as that hardware is board specific and
not soc specific.

A recent changes upstream were backported to -stable which
recently broke the driver from loading properly, so this
patch moves the details from the incorrect node into its
proper place, resolving the issue.

Fixes: 274f4e9c57 ("arm64: dts: hisilicon: hikey: fixes to comply with adi, adv7533 DT binding")
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: Iffe78badb08a1a49ed99fb8ab2257cb95e368f3f
(cherry picked from commit 623715b470c6c51e54344a274ca90df19556b56a)
2020-09-23 07:34:28 +00:00
qctecmdr
6a91a7d54b Merge "msm: pcie: Add additional logging in msm_pcie_drv_resume" 2020-09-22 21:18:49 -07:00
qctecmdr
c112c25edc Merge "cnss2: change for fixed link speed" 2020-09-22 21:18:48 -07:00
Prasad Sodagudi
b7b35d377a drivers: edac: Disable panic for the correctable errors
Add check for "qcom,disable-panic-on-ce" property
to override the kconfig settings and disable panic
for correctable errors.

Change-Id: I34a562df23cb8e91c8bafb1f7b6e5aa09362603d
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-09-22 19:17:20 -07:00