Commit-Graf

11 Incheckningar

Upphovsman SHA1 Meddelande Datum
Amol Jadi
1d12729839 ubwcp: update failure handling
Put driver in fault state on critical failures.
Other minor cleanup.

Change-Id: I79154178ae57fe12a3ef87b51626fd420ccb55c0
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
2023-04-24 16:05:34 -07:00
qctecmdr
d310882b06 Merge "ubwcp: limit error logs" 2023-04-11 08:10:24 -07:00
Amol Jadi
d9bea7f7f4 ubwcp: limit error logs
Enable read & decode irq only for debug.
Rate limit error logs.

Change-Id: I782d5af9049bdb501d14f3cbc6a7f868d49da581
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
2023-04-07 14:14:24 -07:00
Liam Mark
3c0b9be4c9 ubwcp: Replace add_memory with memremap_pages
Replace add_memory with memremap_pages as that will ensure that
ULA PA pages are not added to buddy.

Change-Id: I66dd4c533011f9e7ed4ed45697216ba947a4e3a3
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
2023-04-07 13:17:49 -07:00
Amol Jadi
7049c53fc2 ubwcp: ioctl for stride alignment and bytes per pixels
Implements stride alignment and stride validate IOCTL.
Additional checks on stride value.
Fixes spell error in ioctl interface.

Change-Id: Ic4a41a12e2ffa8d45fd71938133accd069dff863
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
2023-03-28 16:11:50 -07:00
Liam Mark
14742c1cfb ubwcp: optimize power and mem offline perf
Optimize the UBWC-P driver for power by ensuring that UBWC-P is only
powered up when there is a non-linear UBWC-P buffer allocated.

Optimize the performance of the memory offlining by
adding support for the CMO component to be interrupted by the
allocation of a new UBWC-P buffer.

Change-Id: Ib473c00b996782131799fd223eaf1ad7feca058b
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
2023-03-28 09:54:00 -07:00
Liam Mark
b5312c5129 ubwcp: Set ULA PA range size from DT
Use the UBWC-P ula_range DT property to configure the
UBWC-P ULA PA range size.

Change-Id: I46579146904f76160c0f984d8e377e8d28a56dd7
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
2023-03-28 09:53:32 -07:00
Liam Mark
fcb70f9328 ubwcp: add ftrace support
Add ftrace support to help with performance
measurements.

Change-Id: I21f762a9e25b2b745fbf4f72990c9932f823634b
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
2023-03-22 16:25:49 -07:00
Liam Mark
bc6e2ce23d ubwcp: Re-map as uncached and invalidate
Re-map ULA PA as uncached and invalidate before power
collapse.

Change-Id: Ice676b98a472512c0be1ad83b5b592fec079e7ee
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
2023-02-02 16:19:42 -08:00
Liam Mark
7a0417fe15 Revert "ubwcp: Keep UBWC-P powered on after buffer alloc"
This reverts commit ff2498ad42.

No longer needed now that we are doing CMOs with an
un-cached mapping.

Change-Id: I927b93aaf869755a9fe36e77a24874e5b83a331d
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
2023-02-02 16:18:10 -08:00
Amol Jadi
47907f98a1 ubwcp: bazel support
Add support for bazel build system

Change-Id: I9ec76c8341d7d1c909725016c0387beb13302570
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
2023-02-01 18:15:28 -08:00