On Wed, Dec 10, 2025 at 01:37:34PM +0000, Shameer Kolothum wrote:
> +    /*
> +     * CMDQ must not cross a physical RAM backend page. Adjust CMDQS so the
> +     * queue fits entirely within the smallest backend page size.
> +     * FIXME: Migration support requires this to be taken care.
> +     */
> +    pgsize = tegra241_cmdqv_min_ram_pagesize();
> +    val = FIELD_EX32(s->idr[1], IDR1, CMDQS);
> +    s->idr[1] = FIELD_DP32(s->idr[1], IDR1, CMDQS, MIN(log2(pgsize) - 4, 
> val));

Let's mention it is for the physical contiguity of the Q memory.

Nicolin

Reply via email to