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>
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>
Add ftrace support to help with performance
measurements.
Change-Id: I21f762a9e25b2b745fbf4f72990c9932f823634b
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
Re-map ULA PA as uncached and invalidate before power
collapse.
Change-Id: Ice676b98a472512c0be1ad83b5b592fec079e7ee
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
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>
Add support in the UBWC-P driver to enable the clocks
listed in the DT.
Change-Id: Ib94eadb89cc7e9901641570ff0b25d45306b0a13
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
- workaround is not needed for read-only cases on v1
Change-Id: I6977f0ff1e7990ecfdcea5319e17b47c0106be27
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
remove_memory doesn't work when memory hotplug has been enabled, switch
to using offline_and_remove_memory.
Change-Id: Ia62efc9394326cde5bb0a5dd76ba811f9b1d4b17
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
Always keep UBWC-P powered on after first UBWC-P buffer is allocated.
Change-Id: If1785e53f8b9015032094ba20ead7b2cb6f05f63
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>
- Program height in bytes for non-v1 hardware
- Additional error checking at various places
to prevent regulator call with NULL vdd
- Set_ops fails when we do rmmod and then insmod
ignore the return value so we can successfully insmod
This is a hack that needs to be removed for final product
Change-Id: Ib0252d7ddb7fa34aeeea7b1e1e3f81216e0cc5d3
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
Implements driver to interface with ubwcp hw block
Change-Id: I092e45acfedd01978c383bc596e48da23f3e873e
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
Signed-off-by: Liam Mark <quic_lmark@quicinc.com>