Commit graph

878,436 commits

Author SHA1 Message Date
Jordan Crouse
00a1ef124f msm: kgsl: Move the IOMMU clocks to the KGSL device
Move ownership of the IOMMU clocks to the KGSL device and get them from
there during IOMMU probe.  This ensures that the clocks are owned by a
proper platform device that can sync_state() after we are done probing.

Change-Id: Ic0dedbad97783984f7d8d1c3c2252a1a8a812d77
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-03 15:49:10 -07:00
Jordan Crouse
0c46c9a35b msm: kgsl: Move GMU to a component device
Traditionally the GMU/RGMU device has been a child of the adreno device
and probed manually. That has worked despite the fact that the GMU/RGMU
device has resources of its own and it really should be a top level
platform device.

Finally do the right thing, make GMU a top level platform device and
driver and bind it to Adreno as a component. This will make sure we
get the advantages of all of the platform level initialization without
having to code in half a dozen hacks to make everything work and then
break again next kernel version.

Change-Id: Ic0dedbadf6776e1a4f5e0eb1e093241e5103b3ff
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-03 15:49:09 -07:00
Jordan Crouse
c7ae23947d msm: kgsl: Minor cleanups for kgsl bus probe
The KGSL bus probe was not quite resilient for a deferred probe. Move
a memory allocation to devm and make sure that the interconnect handle
is properly put away on failure.

Change-Id: Ic0dedbad261c483a157161a43da0b54459ed46ff
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-03 15:49:09 -07:00
qctecmdr
535241a5fb Merge "iommu/arm-smmu: Remove DOMAIN_ATTR_DEBUG" 2020-03-03 07:08:23 -08:00
qctecmdr
0f7dd8d723 Merge "msm: cvp: avoid OOB write while accessing memory" 2020-03-03 03:08:34 -08:00
Govindaraj Rajagopal
4267dcfae7 msm: cvp: avoid OOB write while accessing memory
Exclude 4 bytes which holds the size of the buffer while calculating
the actual buffer size to avoid OOB write.

Change-Id: I79704181e0bafc905064621d7cd6e682cca15982
Signed-off-by: suchawla <suchawla@codeaurora.org>
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
2020-03-03 11:49:57 +05:30
qctecmdr
1b081c88d1 Merge "drm: Add DisplayPort colorspace property creation function" 2020-03-02 21:33:44 -08:00
qctecmdr
b090557030 Merge "iommu/arm-smmu: Rationalize TLB sync timeout handling" 2020-03-02 21:33:43 -08:00
qctecmdr
f3ed56f0e1 Merge "msm: pcie: add option to disable L1ss TO for DRV suspend" 2020-03-02 18:28:28 -08:00
qctecmdr
2194df887b Merge "msm: kgsl: Set default bus control to true" 2020-03-02 18:28:27 -08:00
qctecmdr
59c71da3d6 Merge "msm: kgsl: Make a device specific scales_bandwidth function" 2020-03-02 18:28:27 -08:00
qctecmdr
f5b276ebbd Merge "interconnect: qcom: Remove duplicate compatible string" 2020-03-02 15:30:40 -08:00
Isaac J. Manjarres
24edad3d95 iommu/arm-smmu: Remove DOMAIN_ATTR_DEBUG
DOMAIN_ATTR_DEBUG is queried by the qsmmuv500_iova_to_phys()
function, which will move outside of arm-smmu.c, requiring
arm_smmu_domain_get_attr() to be exposed, which doesn't make
sense for only one attribute.

Thus, remove this domain attribute and inform the SMMU driver
that it is operating on a debug domain by introducing a new
marker in the msm_iommu_domain for debug domains. This patch
has no functional impact.

Change-Id: I86dfbadab0a74f9018acc602eea28b2a3a2c38b5
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-02 12:14:32 -08:00
Isaac J. Manjarres
b5f2204f08 iommu/arm-smmu: Cleanup arm_smmu_init()
arm_smmu_init() has retained some workarounds for
back when it could be invoked multiple times as either
part of the initcall sequences, or through the IOMMU
OF table. This was necessary before the driver
core handled dependencies between an IOMMU master
and an IOMMU device. Since this is no longer the case,
we can remove this logic. Also, while we're here,
unregister the TBU driver if the SMMU driver cannot
be registered.

Change-Id: I5c2ed4a046c63babb3bd60390c468a4e5e27de6e
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-02 12:14:31 -08:00
Isaac J. Manjarres
90c4319e85 iommu/arm-smmu: Rationalize TLB sync timeout handling
The current TLB sync timeout handling doesn't make sense
in the context of non QSMMU-V500 SMMU V2 implementations, so
introduce the notion of architecture specific handling
for TLB sync timeouts.

Change-Id: Ibceb5422d6488f9e67cc4c4ed968348ad92aa834
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-02 12:14:26 -08:00
qctecmdr
1723ebdd64 Merge "msm: cvp: Add AXI reset pulse" 2020-03-02 11:58:08 -08:00
qctecmdr
e834b0464c Merge "usb: dwc3: Do not initiate remote wakeup from core layer" 2020-03-02 11:58:08 -08:00
qctecmdr
1dc2d12bba Merge "msm: kgsl: Remove the extra recovery hop" 2020-03-02 11:58:08 -08:00
qctecmdr
692509a8fa Merge "Merge fbe changes from upstream 5.4" 2020-03-02 11:58:08 -08:00
qctecmdr
0963e5d909 Merge "phy: ufs: Refactor phy_power_on and phy_calibrate callbacks" 2020-03-02 09:05:58 -08:00
qctecmdr
8b6560577f Merge "dt-bindings: clock: Add support for clock ids for SHIMA" 2020-03-02 09:05:58 -08:00
Jordan Crouse
88dcd53516 msm: kgsl: Make a device specific scales_bandwidth function
To make it easier for the upcoming change to move GMU to a component
device make a real function to test if the target is capable of
scaling the bus bandwidth on the GMU.

Change-Id: Ic0dedbad255622428de2ac01a5833a9e28c9c3ac
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-02 09:33:10 -07:00
qctecmdr
9ee272676c Merge "arm64: Honor limits set by boot parameter" 2020-03-02 04:36:30 -08:00
qctecmdr
1ab609531c Merge "arm64: mm: improve the mem-offline device node availability check" 2020-03-02 04:36:30 -08:00
qctecmdr
592ae25d40 Merge "defconfig: arm64: Enable data defconfigs" 2020-03-02 04:36:29 -08:00
qctecmdr
bdbcfb1ea2 Merge "msm: kgsl: Add A660 hardware clock gating register values" 2020-03-02 00:26:49 -08:00
qctecmdr
ca6ad9e77f Merge "iommu/arm-smmu: Cleanup context fault logging logic" 2020-03-02 00:26:48 -08:00
qctecmdr
fc4dced779 Merge "ion: don't wakeup refill threads for order-0 requests" 2020-03-02 00:26:48 -08:00
Can Guo
5409868760 phy: ufs: Refactor phy_power_on and phy_calibrate callbacks
Move UFS PHY calibration, starting serdes and PCS ready status polling
from phy_power_on callback to phy_calibrate callback.

Change-Id: I772978735f00ac31539eb3bec471d4d7e5f16d73
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-03-01 21:04:01 -08:00
qctecmdr
201f211f2d Merge "sched: walt: Improve the scheduler" 2020-03-01 20:58:29 -08:00
Taniya Das
087303dadb dt-bindings: clock: Add support for clock ids for SHIMA
Add clock IDs for CAMCC/DISPCC/GCC/GPUCC/VIDEOCC for clients to be able to
request for clocks from these clock controllers.

Change-Id: Ic809b350cfb15d7dce4667907fe6176a7293bdcd
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-03-01 19:58:56 -08:00
qctecmdr
93655ae632 Merge "msm: ipa: Fix ipa3_wwan_xmit return type" 2020-03-01 18:13:00 -08:00
qctecmdr
36bcbe78a2 Merge "mmc: sdhci-msm: Support Retention of SDCC Regs in CX Collapse" 2020-03-01 18:13:00 -08:00
qctecmdr
2e946461cd Merge "msm: kgsl: Override UBWC configuration for A660 based on DDR type" 2020-03-01 18:13:00 -08:00
qctecmdr
4367382eb6 Merge "mm/oom-kill: Remove obsolete IS_ENABLED check" 2020-03-01 15:21:59 -08:00
Gwan-gyeong Mun
043874de92 drm: Add DisplayPort colorspace property creation function
Because between HDMI and DP have different colorspaces, it adds
drm_mode_create_dp_colorspace_property() function for creating of DP
colorspace property.

v3: Addressed review comments from Ville
    - Add new colorimetry options for DP 1.4a spec.
    - Separate set of colorimetry enum values for DP.
v4: Add additional comments to struct drm_prop_enum_list.
    Polishing an enum string of struct drm_prop_enum_list
v5: Change definitions of DRM_MODE_COLORIMETRYs to follow HDMI prefix and
    DP abbreviations.
    Add missed variables on dp_colorspaces.
    Fix typo. [Uma]
v6: Addressed review comments from Ilia and Ville
   - Split drm_mode_create_colorspace_property() to DP and HDMI connector.
v7: Fix typo [Jani Saarinen]
    Fix white space.
v8: Addressed review comments from Ville
   - Drop colorimetries which have another way to distinguish or which
     would not be used.
v9: Addressed review comments from Ville
   - Split hunk into renaming and adding of code.

Change-Id: I7fa6831aeca1ae2e8dca79bad4f1dec373b53199
Link: https://patchwork.freedesktop.org/patch/msgid/20190919195311.13972-5-gwan-gyeong.mun@intel.com
Git-commit: 45cf0e91df8c75c3a0c69e54d01cf42e24af365b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2020-02-28 17:02:44 -08:00
Gwan-gyeong Mun
a9a0e9e7ff drm: Rename HDMI colorspace property creation function
As between HDMI and DP have different colorspaces, in order to distinguish
colorspace of DP and HDMI, it renames drm_mode_create_colorspace_property()
function to drm_mode_create_hdmi_colorspace_property() function for HDMI
connector.
In order to apply changed drm api, i915 driver has channged.

It addresses review comments from Ville.
 - Split hunk into renaming and adding of code.

Change-Id: I4dc4b5e46ec52dd0e3f3970901c4149e5f295c69
Link: https://patchwork.freedesktop.org/patch/msgid/20190919195311.13972-4-gwan-gyeong.mun@intel.com
Git-commit: 8806cd3aa025ad9351678e7b8377080dec1315a9
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2020-02-28 17:00:12 -08:00
Charan Teja Reddy
703ccaaab4 arm64: mm: improve the mem-offline device node availability check
Even if we use status = "disabled" in mem-offline node, still the
update_memory_limit() will go and update memory_limit variable and
thus the removed memory is never added to system as the
mem-offline driver is disabled. Correct this logic.

Change-Id: I80102830f0a5a82dcd4cddfaddb0de21bfdd0110
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-28 15:15:12 -08:00
Vijayanand Jitta
cdab8bbfe2 arm64: Honor limits set by boot parameter
Consider the memory limit enforced by boot parameter and
restrict adding beyond this boundary during a memory hotplug.

Change-Id: Ibd13e47ee13004381a1ddff649150fae13429c87
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-02-28 15:03:03 -08:00
George Shen
165addafd8 msm: cvp: Add AXI reset pulse
Hardware programming guide requires reset AXI clock in
CVP power on sequence.

Change-Id: Idf153e8dac1237f677c267162727173eee724317
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-02-28 14:36:51 -08:00
Mohammed Mirza Mandayappurath Manzoor
c9d8f0d483 msm: kgsl: Set default bus control to true
All the targets now do independent bus calculations.

Change-Id: Ie3303499cc4bb9a1f58c830e366a75f8f0058c42
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <mmandaya@codeaurora.org>
2020-02-28 11:26:39 -08:00
Mohammed Mirza Mandayappurath Manzoor
6888ee0104 defconfig: lahaina: Enable gpu devfreq governors on lahaina
Enable gpu governors to dynamically scale gpu frequency and bus frequency
based on gpu load.

Change-Id: I76a067a76481fa34b364c7d5699bb40168bea9de
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <mmandaya@codeaurora.org>
2020-02-28 10:23:16 -08:00
qctecmdr
41dfbf027b Merge "leds: qti-flash: Add maximum available flash current prediction" 2020-02-28 09:29:37 -08:00
qctecmdr
c6aacf321e Merge "defconfig: lahaina: enable QBT_HANDLER" 2020-02-28 07:11:58 -08:00
qctecmdr
40287648fd Merge "slim-msm-ngd: Check current state of sub system restart notifier" 2020-02-28 04:39:55 -08:00
qctecmdr
32e8550ed0 Merge "scsi: ufs-qcom: Refactor phy_power_on/off calls" 2020-02-28 04:39:55 -08:00
Prudhvi Yarlagadda
80269d295f slim-msm-ngd: Check current state of sub system restart notifier
Check for the current state of sub system restart notifier when
the LOCATOR_UP notification is given to slimbus driver and do the
slimbus initialization if the current state is already set to
SERVREG_NOTIF_SERVICE_STATE_UP_V01.

This change is needed in the cases where LOCATOR_UP notification
to slimbus driver got delayed and the state of the sub system restart
notifier is already set to SERVREG_NOTIF_SERVICE_STATE_UP_V01 as
slimbus will be expecting the SERVREG_NOTIF_SERVICE_STATE_UP_V01
notification which is not going to come as the notifier state is
already changed.

Change-Id: I4804bbb13e065ac78be7a442993286532402db9d
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2020-02-27 23:24:25 -08:00
Prudhvi Yarlagadda
e7761f93ac slim-msm-ngd: Prevent system suspend during initialization
Prevent system suspend from happening during slimbus initialization
process where the NGD Slimbus component gets enummerated with
ADSP slimbus component and then queries the logical addresses of
the clients connected.

This is to prevent the issue where the slimbus driver goes to
suspend due to system suspend after the enumeration phase is
done after an SSR/PDR. Driver again resumes for querying logical
addresses of clients connected assuming enumeration process is
already done whereas it has to be re-enumerated as driver got
suspened and resumed.

Change-Id: I42ab3f7a6061a1c464d436aa13e43d27eb312fd4
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2020-02-27 23:23:23 -08:00
Abir Ghosh
7db2b2ff28 defconfig: lahaina: enable QBT_HANDLER
Enable support for ultrasonic fingerprint
driver in lahaina defconfig.

Change-Id: Ib66316b7b3e6fc186f6f5a92c50e62e1332e92b8
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-02-27 22:42:35 -08:00
qctecmdr
b0866600a2 Merge "scripts: gki: Ensure HOSTLD and HOSTAR are not changed" 2020-02-27 22:33:41 -08:00