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

Commit 5f5f45c2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Vote for buses immediately after allocing and freeing ocmem"

parents 0240dd85 903f112c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1015,6 +1015,15 @@ static int __alloc_ocmem(void *dev, unsigned long size, bool locked)
			dprintk(VIDC_ERR, "Failed to set ocmem: %d\n", rc);
			goto ocmem_set_failed;
		}

		rc = venus_hfi_vote_buses(device, device->bus_load,
				device->res->bus_set.count);
		if (rc) {
			dprintk(VIDC_ERR,
					"Failed to scale buses after setting ocmem: %d\n",
					rc);
			goto ocmem_set_failed;
		}
	} else
		dprintk(VIDC_DBG,
			"OCMEM is enough. reqd: %lu, available: %lu\n",