Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5f1de82 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Initialize DSP QTBL and UCREGION registers



Video firmware expects DSP QTBL and UCREGION registers
are initialized with CPU queues if DSP queues are not
allocated. This change will do the required initialization.

Change-Id: I186bcfef43998f8e1121acb993dd1944f5af7678
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent 3f5d64ff
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1539,6 +1539,12 @@ static void __setup_ucregion_memory_map(struct venus_hfi_device *device)
	if (device->qdss.align_device_addr)
		__write_register(device, VIDC_MMAP_ADDR,
				(u32)device->qdss.align_device_addr);
	/* initialize DSP QTBL & UCREGION with CPU queues */
	__write_register(device, HFI_DSP_QTBL_ADDR,
			(u32)device->iface_q_table.align_device_addr);
	__write_register(device, HFI_DSP_UC_REGION_ADDR,
			(u32)device->iface_q_table.align_device_addr);
	__write_register(device, HFI_DSP_UC_REGION_SIZE, SHARED_QSIZE);
	if (device->res->domain_cvp) {
		__write_register(device, HFI_DSP_QTBL_ADDR,
			(u32)device->dsp_iface_q_table.align_device_addr);