[PATCH 2/5] drm/xe/lrc: Extract post context restore function

Lucas De Marchi lucas.demarchi at intel.com
Sun May 25 03:30:29 UTC 2025


On Fri, May 23, 2025 at 12:32:10PM -0700, Umesh Nerlige Ramappa wrote:
>>+static void setup_wa_bb(struct xe_lrc *lrc)
>>+{
>>+	u32 *cmd, *cmd0;
>>+
>>+	cmd0 = lrc->bb_per_ctx_bo->vmap.vaddr;
>>+	cmd = cmd0;
>>+
>>+	cmd += wa_bb_write_utilization_state(lrc, cmd);
>>	*cmd++ = MI_BATCH_BUFFER_END;
>
>Why not just assert right here for cmd - cmd0 instead of putting it 
>into the next patch?

this is purely a code move with no addition/subtraction. However, given
the simplicity of next I can squash it in the next rev.

Lucas De Marchi


More information about the Intel-xe mailing list