Commit graph

879,345 commits

Author SHA1 Message Date
Saravana Kannan
6ac874f4f8 FROMGIT: driver core: Call sync_state() even if supplier has no consumers
The initial patch that added sync_state() support didn't handle the case
where a supplier has no consumers. This was because when a device is
successfully bound with a driver, only its suppliers were checked to see
if they are eligible to get a sync_state(). This is not sufficient for
devices that have no consumers but still need to do device state clean
up. So fix this.

Fixes: fc5a251d0fd7ca90 (driver core: Add sync_state driver/bus callback)
Signed-off-by: Saravana Kannan <saravanak@google.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200221080510.197337-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 21eb93f432b1a785df193df1a56a59e9eb3a985f
https: //git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-linus)
Bug: 150980623
Change-Id: I9bebc164f00d7797501f40080c12a04dbe3095b1
Git-repo: https://android.googlesource.com/kernel/common
Git-commit: a27e0934de
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-03-18 15:23:04 -07:00
qctecmdr
816c0efa14 Merge "defconfig: lahaina: Enable GPU driver" 2020-03-17 19:37:11 -07:00
qctecmdr
cf314fc5c9 Merge "msm: cvp: Disable CVP_DBG traces by default" 2020-03-17 19:37:10 -07:00
qctecmdr
22de23501b Merge "wil6210: Add support for 11ad platform driver" 2020-03-17 19:37:10 -07:00
qctecmdr
5c91c43dcd Merge "net: qrtr: mhi: Set mhi driver data before registering with qrtr" 2020-03-17 19:37:10 -07:00
qctecmdr
9829d2c4b3 Merge "defconfig: Disable fastrpc driver from kernel image" 2020-03-17 19:37:09 -07:00
qctecmdr
262793ca89 Merge "msm: kgsl: Use booleans for power control features" 2020-03-17 13:33:00 -07:00
Edgar Flores
ca8a9670fa defconfig: Disable fastrpc driver from kernel image
Disable fastrpc driver from Lahaina kernel image.

Change-Id: Iee1594be32934dc93b932107f8a16062f1a1e068
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2020-03-17 12:26:39 -07:00
qctecmdr
2fdb6c48bd Merge "msm: cvp: Reduce CVP dmabuf mapping overhead" 2020-03-17 09:20:19 -07:00
qctecmdr
93e87a288c Merge "arm64: kpti: force off kpti" 2020-03-17 09:20:18 -07:00
qctecmdr
2248785891 Merge "scsi: ufs-qcom: Add one vendor specific sysfs group" 2020-03-17 09:20:18 -07:00
qctecmdr
c160f5998e Merge "arm64: defconfig: Enable ION support on genericarmv8-64_defconfig" 2020-03-17 09:20:18 -07:00
Alexei Avshalom Lazar
5a5260fe01 wil6210: Add support for 11ad platform driver
Platform driver used to handle msm specific platform
requirement for 11ad chipset connected to msm platform.

Change-Id: I13c5b5a76bc17393e486c400bdfb90e4ef89e270
CRs-Fixed: 2143032
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
[liord@codeaurora.org: SPDX license, checkpatch errors]
Signed-off-by: Lior David <liord@codeaurora.org>
2020-03-17 08:32:32 -07:00
qctecmdr
c101c53524 Merge "clk: qcom: lahaina: Add sync_state callbacks" 2020-03-17 06:50:39 -07:00
qctecmdr
9e370393b3 Merge "arm64: defconfig: Enable QTI_IOMMU_SUPPORT only on target configurations" 2020-03-17 04:27:28 -07:00
qctecmdr
f2c2ad2be1 Merge "interconnect: qcom: Fix uninitialized tcs_cmd::wait" 2020-03-17 04:27:28 -07:00
qctecmdr
8cd651ce9c Merge "usb: gadget: f_diag: Expose DLOAD pid/serial entries to configfs" 2020-03-17 04:27:27 -07:00
qctecmdr
a7d9ad8821 Merge "msm: kgsl: Enable apb clock before isdb register writes" 2020-03-17 04:27:27 -07:00
Can Guo
a0289684e3 scsi: ufs-qcom: Add one vendor specific sysfs group
Add one vendor specific sysfs group to support additional sysfs nodes,
such as err_state and power_mode.

Change-Id: Ia69909fc3838a054221191259a015067dd962008
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-03-17 01:56:13 -07:00
Vinayak Menon
1edf9722d4 arm64: kpti: force off kpti
Since most of the CPUs aren't prone to meltdown,
force off the kpti feature. Enable on required
targets.

Change-Id: If78c70bcaeac2b157a901e5036190aaf9e5aabf6
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-03-16 23:46:49 -07:00
qctecmdr
fafcdeebed Merge "trace: Add warning threshold for irqsoff time" 2020-03-16 22:55:50 -07:00
qctecmdr
d1f345796a Merge "scsi: ufs-qcom: Configure LPM timer settings" 2020-03-16 22:55:50 -07:00
qctecmdr
f0e348558a Merge "msm: kgsl: Fix to record NR_KERNEL_MISC_RECLAIMABLE in page units" 2020-03-16 22:55:49 -07:00
George Shen
b1d298dc7a msm: cvp: Reduce CVP dmabuf mapping overhead
To reduce computation overhead in searching and matching un-used
or used CVP iommu mappings.

Change-Id: I57f2849c1fcd81d534bb55f24b51b66d3b321cb4
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-03-16 20:21:57 -07:00
qctecmdr
d3fc7ea1c3 Merge "leds: qti-flash: Add support for on_time and off_time parameters" 2020-03-16 20:03:19 -07:00
qctecmdr
b2d9f86807 Merge "haven: doorbell: Add neuron and qrtr labels" 2020-03-16 20:03:18 -07:00
qctecmdr
2c406b9ecf Merge "sched/fair: Change PELT half-life to 8ms" 2020-03-16 20:03:18 -07:00
Jordan Crouse
9cfc90b482 defconfig: lahaina: Enable GPU driver
Enable the GPU driver and the dependent QFPROM driver.

Change-Id: Ic0dedbadf13a34d778bec51151d1c9f00e29a258
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-16 13:08:47 -06:00
Mohammed Mirza Mandayappurath Manzoor
3c339456eb msm: kgsl: Enable apb clock before isdb register writes
KGSL must enable the apb clock before accessing QDSS register space.

Change-Id: I4fb20741c54ef665bf2652c13c4c87fd9b0b3329
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <mmandaya@codeaurora.org>
2020-03-16 12:05:56 -07:00
George Shen
7bb1a82ce9 msm: cvp: Disable CVP_DBG traces by default
It caused tracing spam in kernel log.

Change-Id: Iaddb5e95138638b6dbfe63e51eb14db80a202c9d
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-03-16 10:35:02 -07:00
Jay Jayanna
d7067f6740 net: qrtr: mhi: Set mhi driver data before registering with qrtr
The original design was to not send anything from qrtr-mhi until
a packet was received from the remote side. This would leave
enough time for the probe function to set up the driver_date.

With the new requirement to queue a hello packet (for Linux to
Linux communication), we may see the hello packet being scheduled
and sent before we can return and set the drvdata.

The changes to address the above requirement brings in a
possibility that driver_data in mhi layer is NULL sometimes.
Check device pointer for NULL in ul callback and return if
it is NULL.

Move the setting of driver data before registering it as an
endpoint with the qrtr framework.

Change-Id: Ida94d95485d2432f38e6cb0c82fa21af7bc73af3
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
2020-03-16 10:29:32 -07:00
Jordan Crouse
ed253b59c0 msm: kgsl: Use booleans for power control features
Currently we use a bitmask for the power control features (SPTP, ACD, LM,
etc).  Move to individual booleans for each feature instead. Booleans
are less unweidly to use and require less if () statements.

Additionally if we properly use the Adreno feature flags when setting
and/or modifying the booleans we can get rid of the feature flag checks in
the rest of the code and use the control booleans as they are intended.

And finally, move some of the target specific control features to the
target specific code. This ensures that the target specific code can
control the feature and the other targets don't accidentally specify
the wrong state through sysfs. For example, if SPTP power collapse is
only available for a5xx then the sysfs file should only ever return
false for the other targets.

Change-Id: Ic0dedbad1828ae9163a1a1357828156cb3281914
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-16 09:51:52 -06:00
Jordan Crouse
8152ccc95e msm: kgsl: Fixup the GMU probe
Clean up the GMU probe to use standard functions and proper reference to
make it more defer tolerant.

Change-Id: Ic0dedbad7c561e24c07053ea3b19ef62e34621cb
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-16 09:51:52 -06:00
Jordan Crouse
76f54bf67f msm: kgsl: Fixup the RGMU probe
Fix the RGMU probe to use standard helper functions and do proper
reference counting.

Change-Id: Ic0dedbadf5af14338de83cd9041674cc6f1ea304
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-16 09:51:51 -06:00
Jordan Crouse
05fb678662 msm: kgsl: Move hw_isidle to target specific code
Currently, there is a custom hw_isidle function defined for a6xx but the
function pointer is removed in a6xx_start for non GMU/RGMU a6xx targets
which has the effect of falling back to the generic adreno_hw_isidle
function which confused at least two of us before we figured out what
was happening.

Instead of having a generic adreno_hw_isidle function except for a6xx, add
a hw_isidle function hook for all targets and do the GMU check in the
a6xx specific function. This also has the advantage of moving a a540
specific hack into the a5xx code and removes one of two usages of the
gpucore specific busy mask and the other is in soft fault detect.
Arguably we should get rid that too but for now we can just hardcode
the mask in there and remove the busy mask from the gpucore struct.

And finally it looks like adreno_isidle isn't used as a function hook,
so remove it from the device function tables and mark it static.

Change-Id: Ic0dedbad47fa5dee0e5d903a8f9dd9bf7230b759
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-16 09:51:51 -06:00
Jordan Crouse
c744ab5d9c msm: kgsl: Clean up the reset and soft reset paths
a6xx added a new function hook and path for doing a GPU reset that fell
back to the default reset path for a610 but a610 purposely skipped
soft reset and the hard reset path is very similar to that used by
GMU/RGMU enabled devices except for one little bit.

Furthermore, if a610 skipped soft reset then there are no a6xx targets
that do soft reset so there is no reason to have an a6xx specific
soft reset path. And further to that, there isn't any reason to have
any a6xx specific functions (like oob) in the generic soft reset path.

Make the a6xx reset support all a6xx targets, remove unused infrastructure
from the rest of the generic code and cleanup the generic functions
to be a little bit easier to understand.

Change-Id: Ic0dedbadd3570fe148a464ff0dc647d91099ae09
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-16 09:51:50 -06:00
Jishnu Prakash
108427ae28 leds: qpnp: Add snapshot of vibrator LDO driver
This is a snapshot of the vibrator LDO driver as of msm-4.19
'commit c527cd5c987ac (Merge "mhi: cntrl: qcom: allow printing
large strings to IPC logs")' with the following modifications:
	- Replace snprintf with scnprintf.

Change-Id: Id58fbcc33607c309366104fe72282c09c86a3227
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-03-15 08:19:03 -07:00
qctecmdr
058b861752 Merge "usb: dwc3: gadget: update the return value of pullup function" 2020-03-15 03:11:03 -07:00
qctecmdr
baa8778afd Merge "cnss_nl: Add new attributes for cld80211 attr list" 2020-03-15 03:11:03 -07:00
qctecmdr
d9918c71df Merge "NFC: Add timeout when waiting for responses in probe" 2020-03-15 03:11:03 -07:00
qctecmdr
99a3ac3183 Merge "msm: ipa3: Updating SRAM locations for lito" 2020-03-15 03:11:02 -07:00
qctecmdr
f8c0f9b08b Merge "msm: kgsl: Move event groups to the KGSL device" 2020-03-15 00:41:45 -07:00
qctecmdr
2da77626ea Merge "platform: msm: Add snapshot of msm_11ad driver" 2020-03-15 00:41:45 -07:00
qctecmdr
b5db7e5fa0 Merge "msm: ipa: Update source and dest resource group config values" 2020-03-15 00:41:45 -07:00
qctecmdr
ea6490aa33 Merge "arm64: defconfig: select CONFIG_USB_CONFIGFS_NCM on Lahaina" 2020-03-15 00:41:44 -07:00
qctecmdr
5f7d6431db Merge "usb: phy: qmp: Perform DP_COM_SW_RESET during portselect" 2020-03-15 00:41:44 -07:00
qctecmdr
543d28f8d8 Merge "USB: f_accessory: Check dev pointer before decoding ctrl request" 2020-03-15 00:41:43 -07:00
qctecmdr
95130fde9d Merge "dt-bindings: thermal_qti: Add thermal devicetree Macro" 2020-03-14 21:42:38 -07:00
qctecmdr
644e2c8cb3 Merge "usb: gsi: Dont mask read api for dpl_ctl node" 2020-03-14 21:42:38 -07:00
qctecmdr
501bac76d0 Merge "clk: qcom: clk-debug: Add mc_cc_debug_mux in gcc debug parent list" 2020-03-14 21:42:37 -07:00