Removed unused scm calls.
Copy to userspace only on successful hw version call.
Cleanup during probe failure.
During driver removal, update regs only if power ON was successful.
Change-Id: I7acc165bdb80b32e377c7c5704fa3863a3819b39
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
Unlock before free.
Keep dmabuf ref until complete processing is done during set attr.
Change-Id: Idf0739bc9571cba91add8299f7b27f9a7c51e819
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
qmaa mode exposes dependencies on ubwcp.ko compilation
need to guard compilation of ubqcp.ko by dlkm flag
Change-Id: I2e171f2ae837b8ca7aa3e1e0d62731d4d3dde750
Signed-off-by: Anthony Adamo <quic_aadamo@quicinc.com>
Ensure buffer size is sufficient during re-configuration.
Ensure unused ioctl values are set to 0.
Fix use of uninitialized value when only plane-1 data is present.
Register mmap ula pa only if ubwcp configuration is successful.
Clarify failure handling of set attribute call.
Cleanup related code.
Change-Id: Ia6ac54e13aa2be1c4a1dc2d4b4a7715dad3aa142
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
Put driver in fault state on critical failures.
Other minor cleanup.
Change-Id: I79154178ae57fe12a3ef87b51626fd420ccb55c0
Signed-off-by: Amol Jadi <quic_ajadi@quicinc.com>
Currently, the Bazel build fails due to a missing header file that
is not copied to the sandbox.
Add the missing file.
Change-Id: I2301eb9d072e07433b4eea06479986c25a0894c5
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
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>
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>