Commit Graph

3 Commits

Author SHA1 Message Date
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
Sushmita Susheelendra
ef3f8530b4 msm: kgsl: Add new tracepoints for command batch ready and done
The new tracepoints adreno_cmdbatch_ready and adreno_cmdbatch_done
provide common begin and end reference points respectively
for comparison between dispatch on GMU and host.
adreno_cmdbatch_ready is logged after the sync dependencies
for a command have been resolved and the command is therefore
ready to be submitted. adreno_cmdbatch_done is logged on
both SW and HW dispatcher threads just before signaling
events for the command.

Change-Id: If9587bae0d4655be93bfc3fee855d6ffbe967e1f
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
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