Commit Graph

77 Commits

Author SHA1 Message Date
Ingrid Gallardo
c344a18254 mm-drivers: hw_fence: add timestamp to the queue
Add qtimer timestamps to queue payloads.
This timestamp is to be updated by the client
that adds the entry to the queue.

Change-Id: I69dd4420ec18b7470f99d5cfe46129c10b3f3391
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
2022-07-27 10:00:50 -07:00
qctecmdr
03e7e8481a Merge "mm-drivers: add support for build.sh techpack display_tp" 2022-07-20 22:22:45 -07:00
qctecmdr
03cd341241 Merge "mm-drivers: sync: export sync_fence module symbols" 2022-07-20 16:11:13 -07:00
qctecmdr
e8d79e489e Merge "mm-drivers: hw_fence: move mem barrier before mem read" 2022-07-20 16:11:13 -07:00
qctecmdr
3179dca621 Merge "mm-drivers: hw-fence: add hardware fence driver validation ioctls" 2022-07-20 16:11:13 -07:00
Ashwin Pillai
05b50f9290 mm-drivers: add support for build.sh techpack display_tp
add environment variable to be used by display-techpack.mk
for build.sh techpack display_tp.

Change-Id: I46b0ac3fb40371e3282191c75a501230243d9f52
Signed-off-by: Ashwin Pillai <quic_ashwpill@quicinc.com>
2022-07-19 13:52:02 -04:00
Ingrid Gallardo
93afde537d mm-drivers: hw_fence: move mem barrier before mem read
Move memory barriers to ensure data is available before
the read of indexes from the queues.

Change-Id: I3b5a7903f038cc62b461fbfc9cbeb143b862a1f1
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
2022-07-12 16:07:58 -07:00
Bruce Hoo
8ad0ce90d2 mm-drivers: spec_fence: increasing device_available
Spec_fence device is already used by surfaceflinger, increase
device_available by 1.

Change-Id: I3795ffc40fb2ca95e933d4ed056dc9a4c628ba1e
Signed-off-by: Bruce Hoo <quic_bingchua@quicinc.com>
2022-07-10 20:18:26 -07:00
Grace An
0a5f30607f mm-drivers: hw_fence: enable hw-fence driver based on cmdline var
This change ensures that the hw-fence driver is disabled by default and
can be enabled or disabled based on a kernel command line argument. If
the hw-fence driver is disabled, msm_hw_fence_probe returns an error.

Change-Id: I248f29158c17a43151aa8b0c980a7ce0f5e758d6
Signed-off-by: Grace An <quic_gracan@quicinc.com>
2022-07-06 15:14:24 -07:00
Christina Oliveira
c11e6e06aa mm-drivers: sync: export sync_fence module symbols
This change updates makefile to export sync_fence
module symbols, so these can be imported by other
external kernel modules.

Change-Id: Idd64fae8f8797cbcb4b4012666ed5621fa83062f
Signed-off-by: Christina Oliveira <quic_coliveir@quicinc.com>
2022-06-29 15:04:42 -07:00
Shirisha Kollapuram
f73a4b179a mm-drivers: hw-fence: add hardware fence driver validation ioctls
This change adds support to validate the hw_fence driver
by adding IOCTLs that expose the hw_fence interfaces so that
validation clients can register/unregister, create/destroy
and wait/signal fences. IOCTL's will be available for debug
purpose only when the debugfs config is set.

Change-Id: Idb0d04ee245718e9b19ccd12ac760829831426b0
Signed-off-by: Shirisha Kollapuram <quic_kshirish@quicinc.com>
2022-06-20 11:41:21 +05:30
Prabhanjan Kandula
91cfcb8220 mm-drivers: add support for compiling out mm driver modules
This change provides required support to disable mm driver modules
compilation along with all modules and supports specific flag for
override to enable compilation if required.

Change-Id: I3ea1383855a6be49ed12a23a3585e9d6ebb1810a
Signed-off-by: Prabhanjan Kandula <quic_pkandula@quicinc.com>
(cherry picked from commit 91a337989da77e6071fdfbd03b43c423356c14c0)
2022-06-13 11:27:12 -07:00
qctecmdr
c4f48ccb1d Merge "mm-drivers: hw_fence: avoid hw fences creation until fctl ready" 2022-06-12 18:22:33 -07:00
Ingrid Gallardo
2ae3dcadde mm-drivers: hw_fence: avoid hw fences creation until fctl ready
This change adds a check to avoid hw-fences creation until
the fence controller is ready.

Change-Id: I613c19d9dfd8836f8ded6bcb0162bef647df7bc3
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
2022-06-03 11:00:48 -07:00
Ingrid Gallardo
47157b1397 mm-drivers: hw_fence: populate payload size in hfi header
Populate the payload size for the ctrl, rx and tx queues
that communicate with the fence controller.

Change-Id: Idc7dafcccd6ea16821e4f595bdab7395a5e0745b
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
2022-05-27 15:06:56 -07:00
Ingrid Gallardo
efe7847b7a mm-drivers: hw_fence: avoid compiling hw_fence driver for taro
hw_fence driver is not required for taro variants.
Since the Display SI 3.0 is shared with taro dev SI variant,
avoid compiling hw_fence as dlkm for taro target.

Change-Id: I84637f2546fd0818d956880fbc1bb86a30a7c916
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
2022-04-25 12:28:00 -07:00
Ingrid Gallardo
77ae3f31f0 mm-drivers: hw_fence: Add support for hw-fence driver
This change adds support for the hw-fence driver that initialize, expose
and manage the interfaces for the hw-fences, which are the synchronization
primitives to allow the hardware to hardware signalization of the fences
for the frame buffers shared between gpu and display hw-cores.

Change-Id: If2313585d5a9f3ac90e16aad3464600641a6fa04
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
2022-04-21 13:46:12 -07:00
Ingrid Gallardo
136755f181 mm-drivers: sync: resolve compilation of sync fence driver
Sync fence driver setup only compiles if the CONFIG flag for
sync driver is set, however, this requires config files of the
parent folder to be included, which currently is not happening.
Resolve this problem by including the parent mm-drivers
config files.

Change-Id: I812612b71003ed007d60c046dcef5bcbe09f6e7c
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
2022-04-18 20:54:58 -07:00
qctecmdr
2fd13d5a10 Merge "mm-drivers: sync: add api to wait for sync fence bind" 2022-04-16 11:02:44 -07:00
Ingrid Gallardo
7deaa67238 mm-drivers: sync: add api to wait for sync fence bind
This change adds an api to check if a given speculative
fence is bound. If fence is not bound, it will wait for the
speculative fence ioctl to bind the fence, or else timeout.

Change-Id: I9a86d09df410e89137264be47763ae39f06eea2b
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
2022-04-08 12:02:20 -07:00
Narendra Muppalla
03173f7cc8 mm-drivers: sync-fence: add changes to serialize fence operations
This change acquires fence_lock to serialize the enable_sw
signalling operation on dma_fence_array. It bails out
safely if the bind operation is called twice on the spec
fence. The error level for bind failure with invalid user fd
is changed to warning as this case can be treated non fatal.

Change-Id: I688cbc84ba3cfb49c54de9b5e1bf8a9ec9d8da3a
Signed-off-by: Narendra Muppalla <quic_nmuppall@quicinc.com>
2022-04-07 14:28:17 -07:00
Jeykumar Sankaran
5b5214916c mm-drivers: sync_fence: avoid compiling spec_fence driver for taro
sync_fence driver is maintained in kernel SI for all the taro variants.
Since the Display SI 3.0 is shared with taro dev SI variant,
avoid compiling sync_fence as dlkm for taro target.

Change-Id: Icc7990812256a42efad7a8945c08338f83ee0914
Signed-off-by: Jeykumar Sankaran <quic_jeykumar@quicinc.com>
2022-04-01 19:07:41 -07:00
Sandeep Gangadharaiah
40f846646b mm-drivers: msm_ext_display: export msm-ext-display module symbols
msm_ext_display module symbols have to be exported before they can be
used by external kernel modules. This change updates the makefile 
for the same.

Change-Id: I86dbc2d8bbc0a3a0d640172ef0aebc03723eecc8
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-02-08 15:09:04 -05:00
Jeykumar Sankaran
559a6bee2c mm-drivers: enable mm-driver modules compilation
Enable compilation of mm-driver modules and add scripts to copy
the uapi header files.

Change-Id: I0af6581ca96aa630c9707ef05abc4cccbfe92bab
Signed-off-by: Jeykumar Sankaran <quic_jeykumar@quicinc.com>
2022-01-06 13:38:25 -08:00
Shashank Babu Chinta Venkata
03c0ab32cb mm-drivers: msm_ext_display: add snapshot
Add snapshot of msm_ext_display driver in mm-drivers repo.

Change-Id: Iaf70f09d3a95f564e08105d33cdc26cbb4981048
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Signed-off-by: Jeykumar Sankaran <quic_jeykumar@quicinc.com>
2022-01-06 13:38:25 -08:00
Shashank Babu Chinta Venkata
f29d4d57e1 mm-drivers: sync-fence: add sync fence driver snapshot
Add snapshot for syncfence driver in mm-drivers repo.

Change-Id: I43556e3479b45399b1ac0e8ba7a423f36bb21cf9
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Signed-off-by: Jeykumar Sankaran <quic_jeykumar@quicinc.com>
2022-01-06 13:38:25 -08:00
Gerrit SelfHelp Service Account
6bf912d7a9 Initial empty repository 2021-11-15 11:17:00 -08:00