From: jsg Date: Fri, 7 Oct 2022 03:05:28 +0000 (+0000) Subject: unstub guc_ct_buffer_reset() h2g_has_room() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=26bd93c02a25cdcd2042878a3656cf7bec514f42;p=openbsd unstub guc_ct_buffer_reset() h2g_has_room() --- diff --git a/sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c b/sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c index 83050b9c5ec..07496273273 100644 --- a/sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c +++ b/sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c @@ -131,8 +131,6 @@ static void guc_ct_buffer_desc_init(struct guc_ct_buffer_desc *desc) static void guc_ct_buffer_reset(struct intel_guc_ct_buffer *ctb) { - STUB(); -#ifdef notyet u32 space; ctb->broken = false; @@ -142,7 +140,6 @@ static void guc_ct_buffer_reset(struct intel_guc_ct_buffer *ctb) atomic_set(&ctb->space, space); guc_ct_buffer_desc_init(ctb->desc); -#endif } static void guc_ct_buffer_init(struct intel_guc_ct_buffer *ctb, @@ -596,14 +593,10 @@ static inline bool h2g_has_room(struct intel_guc_ct *ct, u32 len_dw) return false; } - STUB(); - return false; -#ifdef notyet space = CIRC_SPACE(ctb->tail, head, ctb->size); atomic_set(&ctb->space, space); return space >= len_dw; -#endif } static int has_room_nb(struct intel_guc_ct *ct, u32 h2g_dw, u32 g2h_dw)