mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
drm/i915/dsb: Introduce intel_dsb_noop()
Add a helper for emitting a number of DSB NOOPs commands. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230606191504.18099-9-ville.syrjala@linux.intel.com Reviewed-by: Uma Shankar <uma.shankar@intel.com>
This commit is contained in:
parent
0c1c7a6499
commit
df3b919286
|
|
@ -234,6 +234,15 @@ void intel_dsb_reg_write(struct intel_dsb *dsb,
|
|||
}
|
||||
}
|
||||
|
||||
void intel_dsb_noop(struct intel_dsb *dsb, int count)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
intel_dsb_emit(dsb, 0,
|
||||
DSB_OPCODE_NOOP << DSB_OPCODE_SHIFT);
|
||||
}
|
||||
|
||||
static void intel_dsb_align_tail(struct intel_dsb *dsb)
|
||||
{
|
||||
u32 aligned_tail, tail;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ void intel_dsb_finish(struct intel_dsb *dsb);
|
|||
void intel_dsb_cleanup(struct intel_dsb *dsb);
|
||||
void intel_dsb_reg_write(struct intel_dsb *dsb,
|
||||
i915_reg_t reg, u32 val);
|
||||
void intel_dsb_noop(struct intel_dsb *dsb, int count);
|
||||
void intel_dsb_commit(struct intel_dsb *dsb,
|
||||
bool wait_for_vblank);
|
||||
void intel_dsb_wait(struct intel_dsb *dsb);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user