Commit graph

884,342 commits

Author SHA1 Message Date
Harshdeep Dhatt
90da593e71 msm: kgsl: Create a6xx gmu power ops
Instead of overwhelming the legacy power up/down sequences,
create a6xx gmu specific power up/down sequences. The
gpudev power ops will be set during a6xx gmu probe so that
we don't have to do gmu checks in legacy probe.

Change-Id: I897d775bdc3c9f97d38d20bc39b56f2551703bce
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:20 -06:00
Harshdeep Dhatt
251880f82b msm: kgsl: Remove fault argument from target specific reset
It is unused in the target specific reset sequences.

Change-Id: I1af60c19c03c7cf116ef3178f1cf501c18b92e74
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:19 -06:00
Harshdeep Dhatt
8c7ac65bb8 msm: kgsl: Move bus counter allocation to its own function
This code will be called from  gmu and rgmu target specific boot
sequences.

Change-Id: If34641f0ad74d01b78c2638e674306248d082168
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:18 -06:00
Harshdeep Dhatt
9f28807f7f msm: kgsl: Move kgsl_idle_check to target specific probe
We will be re-purposing the idle check structures to run different
idle check functions for gmu and rgmu based targets. So move the
relevant bits to target specific probe.

Change-Id: I27b936eb46568f3e5511257d67dd93c23407fd18
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:18 -06:00
Harshdeep Dhatt
e7c78f113f msm: kgsl: Create adreno power operations
This enables us to define target specific device power up/down
sequences. Also create adreno_power_cycle for certain settings
to take effect by powering down, change the settings and then
resume the device.

Change-Id: Ie6a0feb224f0b0babcd0249c812674c31dc6c4ab
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:17 -06:00
Harshdeep Dhatt
f707fc737d msm: kgsl: Consolidate gmu register programming
Make a single function to configure gmu registers before
gmu boot. This will be used by hardware dispatcher as well.
Also, get rid of gmu->load_mode since it's always been
TCM BOOT.

Change-Id: I832b450e25cb1e76f0294a053eb9880759e65229
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:16 -06:00
Harshdeep Dhatt
3a9f35a787 msm: kgsl: Remove duplicated register write
This register is already being programmed in a6xx_start.
Also, remove duplicated register macros.

Change-Id: I3f59e23446b376e39df6abd5eee817317bfb2d67
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:16 -06:00
Harshdeep Dhatt
80150b7756 msm: kgsl: Remove gmu_core_dev_enable_lm function
This function writes to GMU CX/AO registers which can be
configured much earlier in gmu code itself instead.

Change-Id: I403ad8d2e0fa4f199663f0fb6234de3e59bd05f9
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:15 -06:00
Harshdeep Dhatt
317169acd3 msm: kgsl: Remove any eCP references
As this is not enabled for any a6xx.

Change-Id: I9f44301885dfcd24c79d18c857267a4225cdb26b
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-19 14:07:06 -06:00
Jordan Crouse
455046da21 msm: kgsl: Move RGMU to the a6xx target specific space
Much like the GMU code, the GMU code belongs in the a6xx target specific
space. Luckily, it is a lot easier to move. Move everything to
adreno_a6xx_rgmu.[ch] and rename the functions and structs.

Change-Id: Ic0dedbadf9f16f458f1cb1e540960a074464b348
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:29 -06:00
Jordan Crouse
4c11fb7793 msm: kgsl: Finish the GMU transition to a6xx
Finish the transition of the GMU code to a6xx. Rename the gmu_device to
a6xx_gmu_device and move the header files. All GMU code should now exist
entirely in the a6xx domain.

Change-Id: Ic0dedbad3640906599421373bef38217fafbf6dc
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:28 -06:00
Jordan Crouse
78ad235209 msm: kgsl: Move HFI to the a6xx space
The next step in the GMU transition is to move HFI to a6xx target specific
code. Rename the file, functions and kgsl_hfi struct.

Change-Id: Ic0dedbad7efcda12f03fbd37bb2267296ee7a5ac
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:27 -06:00
Jordan Crouse
c359b1dd27 msm: kgsl: Make all GMU code target specific
Move all the GMU code to a6xx target specific code. This is the first in
several steps to make the GMU code more modular and flexibile for
various usecases.

Change-Id: Ic0dedbad0e70771c301705a0eb4ed422efb4c80a
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:25 -06:00
Jordan Crouse
3c09b03d0c msm: kgsl: Remove gmu_core_regulator_isenabled()
Commit 0d44684cab ("msm: kgsl: Take GMU snapshot on GMU failures")
removed the only usage of gmu_core_regulator_isenabled().

Change-Id: Ic0dedbadb40e1faed4a9e0629e9d0babb718f6b3
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:23 -06:00
Jordan Crouse
4d0eb9d995 msm: kgsl: Add a6xx probe function
Add the a6xx specific probe function. With this we no longer
need the generic helper nor the platform_setup function so
they can be removed.

Change-Id: Ic0dedbadd317f8489f8451541dbb77a76c925719
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:22 -06:00
Jordan Crouse
f86d4770a8 msm: kgsl: Add a5xx probe function
Add the a5xx specific probe function.

Change-Id: Ic0dedbad38737fdea9e6f34dd791200e9e477ca7
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:21 -06:00
Jordan Crouse
2561b2928e msm: kgsl: Add a3xx probe function
Add a target specific function for a3xx probe and create a helper
function to set up the register offset array.

Change-Id: Ic0dedbad2f8f54ee2635da3cb8256fce531ab8dd
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:20 -06:00
Jordan Crouse
c96f021616 msm: kgsl: Add target specific probe functions
Add support for target specific probe functions to give individual
targets the flexibility to define their own device structs and do
other target specific setup that doesn't belong in the generic init.
To start all targets use a common helper probe function but that
is expected to change soon.

Change-Id: Ic0dedbad9e159be724368c7d2a496af151226cc0
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-06-15 15:37:20 -06:00
qctecmdr
bbc7f2d3ed Merge "ion: Add support for the display non-secure CMA heap" 2020-06-15 09:59:41 -07:00
qctecmdr
46c87ffa77 Merge "msm: kgsl: Use BW_STEP as 50 for AB voting" 2020-06-15 09:59:40 -07:00
qctecmdr
57af170498 Merge "arm64: enable internal regdb for lahaina" 2020-06-15 09:59:40 -07:00
qctecmdr
0dce8a9d5e Merge "Use data format as unspecified for voice" 2020-06-15 09:59:40 -07:00
Satish Kodishala
30b53d277a Use data format as unspecified for voice
For voice usecases, while opening the slimbus
slave ports, currently data format LPCM(1) is used.
SB master uses data format as unspecified(0). SB master's
data format overwrites the slave side configuration.
In the rare cases, this mismatch may lead to pop sound
in SCO Tx(BT FW->LPASS) at the very beginning when
voice is switched from speaker/handset to BT from call UI.
To fix this, use the data format as unspecified during
opening of the slimbus slave ports for voice cases.

CRs-Fixed: 2710472
Change-Id: Ia9b1d23cbf04d1b8056d7b7f7c84a066437e1682
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2020-06-15 07:12:03 -07:00
qctecmdr
19a5a7fa3b Merge "iommu: arm-smmu: Add support for new attributes" 2020-06-15 06:15:40 -07:00
qctecmdr
df997bf3be Merge "cnss2: Ignore debugfs non availability during init" 2020-06-15 06:15:39 -07:00
qctecmdr
766387ed99 Merge "power: qti_battery_charger: call power_supply_changed() if fake_soc is set" 2020-06-15 06:15:39 -07:00
qctecmdr
c8bbc5bda6 Merge "msm: kgsl: Enable IFPC on A660 target" 2020-06-15 06:15:39 -07:00
qctecmdr
9a94640833 Merge "lib: stackdepot: Add support to configure STACK_HASH_SIZE" 2020-06-15 06:15:38 -07:00
qctecmdr
da16bbb59f Merge "soc: qcom: mem-buf: Add support for consumers to import dma-bufs" 2020-06-15 06:15:37 -07:00
qctecmdr
514fa165a3 Merge "taskstats: handle NULL nla case in taskstats2" 2020-06-15 02:08:40 -07:00
qctecmdr
3309ec470b Merge "clk: qcom: videocc: Update frequency table of video_cc_mvs0_clk_src" 2020-06-15 02:08:39 -07:00
qctecmdr
1806fc87aa Merge "ABI: Update internal whitelist with debugfs symbols" 2020-06-15 02:08:39 -07:00
qctecmdr
5655d2b2cc Merge "genirq/cpuhotplug: Reduce logging level for couple of prints" 2020-06-15 02:08:39 -07:00
qctecmdr
eac6ffcdf1 Merge "uapi: sound: add support for TTP render mode" 2020-06-15 02:08:38 -07:00
qctecmdr
c122110c39 Merge "build.config: Add build.config files for Lahaina" 2020-06-15 02:08:38 -07:00
qctecmdr
8b9a1aa61f Merge "dma-mapping-fast: reduce TLBI during map" 2020-06-15 02:08:38 -07:00
qctecmdr
1b86a92815 Merge "scsi: ufs-qcom: Remove unnecessary devm_kfree" 2020-06-15 02:08:37 -07:00
Deepak Kumar
04ec9fc196 msm: kgsl: Use BW_STEP as 50 for AB voting
AB voting is done in multiples of BW_STEP. Using a big
BW_STEP can result in AB overvoting because of roundup.
Use BW_STEP as 50 instead of 160. This will reduce AB
overvoting and will improve power.

Change-Id: Ieff338685be9650218fd7accc4ed3bcf0d2756ec
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2020-06-15 13:03:22 +05:30
qctecmdr
acc5971e09 Merge "mmc: sdhci_msm: keep a reference to the sdhc host instance" 2020-06-14 20:37:55 -07:00
qctecmdr
773bbee1f1 Merge "msm: kgsl: PERFCNTR_CTRL needs to be at end of restore list" 2020-06-14 20:37:55 -07:00
qctecmdr
978ed221d8 Merge "qcom: whitelist: Remove symbol from whitelist" 2020-06-14 20:37:54 -07:00
qctecmdr
a925659342 Merge "msm: synx: default user callback fix" 2020-06-14 20:37:54 -07:00
qctecmdr
acaddaaadd Merge "defconfig: Update initial defconfig fragments for Holi" 2020-06-14 20:37:54 -07:00
qctecmdr
55235dfe2c Merge "pci: controller: msm: Remove support for loopback" 2020-06-14 20:37:54 -07:00
qctecmdr
e69d2cded7 Merge "ABI: Update rmnet_ctl symbols" 2020-06-14 11:32:34 -07:00
qctecmdr
cdfa64e6ac Merge "arm64: defconfig: enable USB redriver on Lahaina QRD" 2020-06-14 11:32:34 -07:00
qctecmdr
177466fc36 Merge "PM / devfreq: bw_hwmon: remove unused variable" 2020-06-14 11:32:33 -07:00
qctecmdr
756620e2bb Merge "uapi: qg: Fix UAPI header to enable UAPI_HEADER_TEST" 2020-06-14 11:32:33 -07:00
qctecmdr
1e20a25a5b Merge "ion: Derive CMA buffer struct page without using priv_virt" 2020-06-14 11:32:33 -07:00
qctecmdr
75a9e21c8d Merge "net: qrtr: Use radix_tree_iter_delete" 2020-06-14 11:32:33 -07:00