Commit Graph

6 Commits

Author SHA1 Message Date
Deepak Kumar
2537486de0 msm: kgsl: Move kgsl MMU and CBs to a component device
Currently, there is no dependency between kgsl driver probe and smmu
driver probe, this results in issues in case smmu driver probe is not
done before kgsl driver probe. To ensure kgsl driver probe/bind
happens only post smmu driver probe, add kgsl MMU and CBs as a component
device.

As CB nodes contain "iommus" property, fw_devlink ensures that CBs
are probed only after corresponding supplier (smmu driver) probe is
done. Adding CBs as a component device ensures master bind (adreno_bind)
is called only once all components are probed. So adding CBs as component
device ensures kgsl probe/bind are done only post smmu driver probe.

Change-Id: I369c406128dc7f5c8904792f5979b3d0692ced5a
Signed-off-by: Deepak Kumar <quic_dkumar@quicinc.com>
2023-03-29 04:48:51 -07:00
Hareesh Gundu
21504bd3ad msm: kgsl: Fix page table base address comparison
For LPAC context ttbr0 base address will be having pagetable
base address and ASID field. During fault process identification
pagetable base address comparison will fail with ttbr0. Hence mask
ASID field from the ttbr0 to correctly match it with pagetable base.

Change-Id: I791a8bd1f1e7933ec655b32f11451c8efe4312d9
Signed-off-by: Hareesh Gundu <quic_hareeshg@quicinc.com>
2022-12-07 10:35:12 -08:00
Urvashi Agrawal
35da388154 msm: kgsl: Add support for LPAC on hwsched
Make LPAC related changes to support LPAC on
hwsched.

Change-Id: I4316e2e4e36fc79d05d738669d75a67cd6e6a934
Signed-off-by: Urvashi Agrawal <quic_urvaagra@quicinc.com>
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
2022-05-06 19:56:51 +05:30
Hareesh Gundu
31bd71f6e9 msm: kgsl: Add support to query ASID number from mmu driver
ASID is used by SMMU in TLB invalidation path, query ASID
number from the MMU driver and program it while updating
the page table base address.

Change-Id: I3a141d5d50011ab68d17248339902ea5d73a5f5d
Signed-off-by: Hareesh Gundu <quic_hareeshg@quicinc.com>
2022-05-06 19:53:02 +05:30
Rohan Sethi
69e51b81ed msm: kgsl: Fix gpuaddr_in_range() to check upper bound
Currently gpuaddr_in_range() accepts only the gpuaddr & returns
true if it lies in valid range. But this does not mean that the
entire buffer is within range.
Modify the function to accept size as a parameter and check that
both starting & ending points of buffer lie within mmu range.

Change-Id: I1d722295b9a27e746bfdb6d3bf409ffe722193cb
Signed-off-by: Rohan Sethi <quic_rohsethi@quicinc.com>
2022-01-04 12:50:32 -08:00
Lynus Vaz
a38e9d3e98 msm: kgsl: Initial KGSL commit
Snapshot of the Adreno GPU (KGSL) driver from msm-5.10 commit
b809380cd817 (Merge "defconfig: enable new touch NT36XXX_SPI").

Add in the Makefile and other changes required to compile kgsl code
outside the kernel tree.

Change-Id: I63801a9c9ebcd6e2dbd20f023b664caf7255818c
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
2021-08-26 09:55:25 -07:00