unstub guc_ct_buffer_reset() h2g_has_room()
authorjsg <jsg@openbsd.org>
Fri, 7 Oct 2022 03:05:28 +0000 (03:05 +0000)
committerjsg <jsg@openbsd.org>
Fri, 7 Oct 2022 03:05:28 +0000 (03:05 +0000)
sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c

index 83050b9..0749627 100644 (file)
@@ -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)