Lines Matching full:vblank
2 * drm_irq.c IRQ and vblank support
43 * DOC: vblank handling
54 * scanlines is referred to as the vertical blanking region, or vblank for
98 * this programming has to both start and end in the same vblank. To help
101 * The interrupt is in this context named the vblank interrupt.
103 * The vblank interrupt may be fired at different points depending on the
122 * drm_crtc_handle_vblank() in its vblank interrupt handler for working vblank
129 * call drm_crtc_vblank_get() and release the vblank reference again with
130 * drm_crtc_vblank_put(). In between these two calls vblank interrupts are
133 * On many hardware disabling the vblank interrupt cannot be done in a race-free
135 * &drm_driver.max_vblank_count. In that case the vblank core only disables the
141 * automatically generate fake vblank events as part of the display update.
152 * vblank irq in drm_handle_vblank(). 1 msec should be ok.
166 MODULE_PARM_DESC(vblankoffdelay, "Delay until vblank irq auto-disable [msecs] (0: never disable, <0…
173 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in store_vblank() local
177 vblank->last = last; in store_vblank()
179 write_seqlock(&vblank->seqlock); in store_vblank()
180 vblank->time = t_vblank; in store_vblank()
181 atomic64_add(vblank_count_inc, &vblank->count); in store_vblank()
182 write_sequnlock(&vblank->seqlock); in store_vblank()
187 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_max_vblank_count() local
189 return vblank->max_vblank_count ?: dev->max_vblank_count; in drm_max_vblank_count()
218 * Reset the stored timestamp for the current vblank count to correspond
219 * to the last vblank occurred.
224 * device vblank fields.
245 * Only reinitialize corresponding vblank timestamp if high-precision query in drm_reset_vblank_timestamp()
246 * available and didn't fail. Otherwise reinitialize delayed at next vblank in drm_reset_vblank_timestamp()
254 * vblank counter value before and after a modeset in drm_reset_vblank_timestamp()
262 * Call back into the driver to update the appropriate vblank counter
271 * device vblank fields.
276 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_update_vblank_count() local
281 int framedur_ns = vblank->framedur_ns; in drm_update_vblank_count()
288 * here if the register is small or we had vblank interrupts off for in drm_update_vblank_count()
291 * We repeat the hardware vblank counter & timestamp query until in drm_update_vblank_count()
294 * corresponding vblank timestamp. in drm_update_vblank_count()
303 diff = (cur_vblank - vblank->last) & max_vblank_count; in drm_update_vblank_count()
305 u64 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_update_vblank_count()
329 * interval? If so then vblank irqs keep running and it will likely in drm_update_vblank_count()
330 * happen that the hardware vblank counter is not trustworthy as it in drm_update_vblank_count()
331 * might reset at some point in that interval and vblank timestamps in drm_update_vblank_count()
334 * random large forward jumps of the software vblank counter. in drm_update_vblank_count()
336 if (diff > 1 && (vblank->inmodeset & 0x2)) { in drm_update_vblank_count()
338 "clamping vblank bump to 1 on crtc %u: diffr=%u" in drm_update_vblank_count()
343 drm_dbg_vbl(dev, "updating vblank count on crtc %u:" in drm_update_vblank_count()
345 pipe, (unsigned long long)atomic64_read(&vblank->count), in drm_update_vblank_count()
346 diff, cur_vblank, vblank->last); in drm_update_vblank_count()
349 drm_WARN_ON_ONCE(dev, cur_vblank != vblank->last); in drm_update_vblank_count()
354 * Only reinitialize corresponding vblank timestamp if high-precision query in drm_update_vblank_count()
355 * available and didn't fail, or we were called from the vblank interrupt. in drm_update_vblank_count()
356 * Otherwise reinitialize delayed at next vblank interrupt and assign 0 in drm_update_vblank_count()
367 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_vblank_count() local
373 count = atomic64_read(&vblank->count); in drm_vblank_count()
388 * drm_crtc_accurate_vblank_count - retrieve the master vblank counter
392 * interpolates to handle a race with vblank interrupts using the high precision
402 u64 vblank; in drm_crtc_accurate_vblank_count() local
407 "This function requires support for accurate vblank timestamps."); in drm_crtc_accurate_vblank_count()
412 vblank = drm_vblank_count(dev, pipe); in drm_crtc_accurate_vblank_count()
416 return vblank; in drm_crtc_accurate_vblank_count()
434 * Disable vblank irq's on crtc, make sure that last vblank count
435 * of hardware and corresponding consistent software vblank counter
436 * are preserved, even if there are any spurious vblank irq's after
441 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_vblank_disable_and_save() local
446 /* Prevent vblank irq processing while disabling vblank irqs, in drm_vblank_disable_and_save()
453 * Update vblank count and disable vblank interrupts only if the in drm_vblank_disable_and_save()
458 if (!vblank->enabled) in drm_vblank_disable_and_save()
469 vblank->enabled = false; in drm_vblank_disable_and_save()
477 struct drm_vblank_crtc *vblank = from_timer(vblank, t, disable_timer); in vblank_disable_fn() local
478 struct drm_device *dev = vblank->dev; in vblank_disable_fn()
479 unsigned int pipe = vblank->pipe; in vblank_disable_fn()
483 if (atomic_read(&vblank->refcount) == 0 && vblank->enabled) { in vblank_disable_fn()
484 drm_dbg_core(dev, "disabling vblank on crtc %u\n", pipe); in vblank_disable_fn()
492 struct drm_vblank_crtc *vblank = ptr; in drm_vblank_init_release() local
494 drm_WARN_ON(dev, READ_ONCE(vblank->enabled) && in drm_vblank_init_release()
497 drm_vblank_destroy_worker(vblank); in drm_vblank_init_release()
498 del_timer_sync(&vblank->disable_timer); in drm_vblank_init_release()
502 * drm_vblank_init - initialize vblank support
506 * This function initializes vblank support for @num_crtcs display pipelines.
521 dev->vblank = drmm_kcalloc(dev, num_crtcs, sizeof(*dev->vblank), GFP_KERNEL); in drm_vblank_init()
522 if (!dev->vblank) in drm_vblank_init()
528 struct drm_vblank_crtc *vblank = &dev->vblank[i]; in drm_vblank_init() local
530 vblank->dev = dev; in drm_vblank_init()
531 vblank->pipe = i; in drm_vblank_init()
532 init_waitqueue_head(&vblank->queue); in drm_vblank_init()
533 timer_setup(&vblank->disable_timer, vblank_disable_fn, 0); in drm_vblank_init()
534 seqlock_init(&vblank->seqlock); in drm_vblank_init()
537 vblank); in drm_vblank_init()
541 ret = drm_vblank_worker_init(vblank); in drm_vblank_init()
555 * Drivers may call this function to test if vblank support is
573 * drm_crtc_vblank_waitqueue - get vblank waitqueue for the CRTC
574 * @crtc: which CRTC's vblank waitqueue to retrieve
576 * This function returns a pointer to the vblank waitqueue for the CRTC.
577 * Drivers can use this to implement vblank waits using wait_event() and related
582 return &crtc->dev->vblank[drm_crtc_index(crtc)].queue; in drm_crtc_vblank_waitqueue()
588 * drm_calc_timestamping_constants - calculate vblank timestamp constants
592 * Calculate and store various constants which are later needed by vblank and
603 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_calc_timestamping_constants() local
635 vblank->linedur_ns = linedur_ns; in drm_calc_timestamping_constants()
636 vblank->framedur_ns = framedur_ns; in drm_calc_timestamping_constants()
637 drm_mode_copy(&vblank->hwmode, mode); in drm_calc_timestamping_constants()
649 * drm_crtc_vblank_helper_get_vblank_timestamp_internal - precise vblank
651 * @crtc: CRTC whose vblank timestamp to retrieve
657 * need to apply some workarounds for gpu-specific vblank irq quirks
663 * Implements calculation of exact vblank timestamps from given drm_display_mode
688 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_crtc_vblank_helper_get_vblank_timestamp_internal() local
708 mode = &vblank->hwmode; in drm_crtc_vblank_helper_get_vblank_timestamp_internal()
773 * vblank_time timestamp for end of vblank. in drm_crtc_vblank_helper_get_vblank_timestamp_internal()
795 * drm_crtc_vblank_helper_get_vblank_timestamp - precise vblank timestamp
797 * @crtc: CRTC whose vblank timestamp to retrieve
803 * need to apply some workarounds for gpu-specific vblank irq quirks
806 * Implements calculation of exact vblank timestamps from given drm_display_mode
838 * recent vblank interval
839 * @crtc: CRTC whose vblank timestamp to retrieve
843 * need to apply some workarounds for gpu-specific vblank irq quirks
847 * vblank interval on specified CRTC. May call into kms-driver to
851 * call, i.e., it isn't very precisely locked to the true vblank.
890 * drm_crtc_vblank_count - retrieve "cooked" vblank counter value
893 * Fetches the "cooked" vblank count value that represents the number of
894 * vblank events since the system was booted, including lost events due to
896 * vblank interrupt (since it only reports the software vblank counter), see
899 * Note that for a given vblank counter value drm_crtc_handle_vblank()
903 * functions, if the vblank count is the same or a later one.
908 * The software vblank counter.
917 * drm_vblank_count_and_time - retrieve "cooked" vblank counter value and the
918 * system timestamp corresponding to that vblank counter value.
921 * @vblanktime: Pointer to ktime_t to receive the vblank timestamp.
923 * Fetches the "cooked" vblank count value that represents the number of
924 * vblank events since the system was booted, including lost events due to
926 * of the vblank interval that corresponds to the current vblank counter value.
933 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_vblank_count_and_time() local
943 seq = read_seqbegin(&vblank->seqlock); in drm_vblank_count_and_time()
944 vblank_count = atomic64_read(&vblank->count); in drm_vblank_count_and_time()
945 *vblanktime = vblank->time; in drm_vblank_count_and_time()
946 } while (read_seqretry(&vblank->seqlock, seq)); in drm_vblank_count_and_time()
952 * drm_crtc_vblank_count_and_time - retrieve "cooked" vblank counter value
953 * and the system timestamp corresponding to that vblank counter value
955 * @vblanktime: Pointer to time to receive the vblank timestamp.
957 * Fetches the "cooked" vblank count value that represents the number of
958 * vblank events since the system was booted, including lost events due to
960 * of the vblank interval that corresponds to the current vblank counter value.
962 * Note that for a given vblank counter value drm_crtc_handle_vblank()
966 * functions, if the vblank count is the same or a later one.
979 * drm_crtc_next_vblank_start - calculate the time of the next vblank
980 * @crtc: the crtc for which to calculate next vblank time
981 * @vblanktime: pointer to time to receive the next vblank timestamp.
983 * Calculate the expected time of the start of the next vblank period,
984 * based on time of previous vblank and frame duration
989 struct drm_vblank_crtc *vblank; in drm_crtc_next_vblank_start() local
996 vblank = &crtc->dev->vblank[pipe]; in drm_crtc_next_vblank_start()
997 mode = &vblank->hwmode; in drm_crtc_next_vblank_start()
999 if (!vblank->framedur_ns || !vblank->linedur_ns) in drm_crtc_next_vblank_start()
1006 (u64)vblank->framedur_ns * mode->crtc_vblank_start, in drm_crtc_next_vblank_start()
1051 * drm_crtc_arm_vblank_event - arm vblank event after pageflip
1052 * @crtc: the source CRTC of the vblank event
1055 * A lot of drivers need to generate vblank events for the very next vblank
1057 * flip gets armed, but not when it actually executes within the next vblank
1058 * period. This helper function implements exactly the required vblank arming
1062 * atomic commit must ensure that the next vblank happens at exactly the same
1064 * does **not** protect against the next vblank interrupt racing with either this
1067 * 1. Driver commits new hardware state into vblank-synchronized registers.
1068 * 2. A vblank happens, committing the hardware state. Also the corresponding
1069 * vblank interrupt is fired off and fully processed by the interrupt
1072 * 4. The event is only send out for the next vblank, which is wrong.
1077 * The only way to make this work safely is to prevent the vblank from firing
1085 * Caller must hold a vblank reference for the event @e acquired by a
1086 * drm_crtc_vblank_get(), which will be dropped when the next vblank arrives.
1103 * drm_crtc_send_vblank_event - helper to send vblank event after pageflip
1104 * @crtc: the source CRTC of the vblank event
1108 * vblank, and sends it to userspace. Caller must hold event lock.
1150 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_vblank_enable() local
1157 if (!vblank->enabled) { in drm_vblank_enable()
1159 * Enable vblank irqs under vblank_time_lock protection. in drm_vblank_enable()
1160 * All vblank count & timestamp updates are held off in drm_vblank_enable()
1163 * prevent double-accounting of same vblank interval. in drm_vblank_enable()
1166 drm_dbg_core(dev, "enabling vblank on crtc %u, ret: %d\n", in drm_vblank_enable()
1169 atomic_dec(&vblank->refcount); in drm_vblank_enable()
1174 * to mark the vblank as enabled after the call in drm_vblank_enable()
1177 WRITE_ONCE(vblank->enabled, true); in drm_vblank_enable()
1188 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_vblank_get() local
1200 if (atomic_add_return(1, &vblank->refcount) == 1) { in drm_vblank_get()
1203 if (!vblank->enabled) { in drm_vblank_get()
1204 atomic_dec(&vblank->refcount); in drm_vblank_get()
1214 * drm_crtc_vblank_get - get a reference count on vblank events
1217 * Acquire a reference count on vblank events to avoid having them disabled
1231 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_vblank_put() local
1236 if (drm_WARN_ON(dev, atomic_read(&vblank->refcount) == 0)) in drm_vblank_put()
1240 if (atomic_dec_and_test(&vblank->refcount)) { in drm_vblank_put()
1244 vblank_disable_fn(&vblank->disable_timer); in drm_vblank_put()
1246 mod_timer(&vblank->disable_timer, in drm_vblank_put()
1252 * drm_crtc_vblank_put - give up ownership of vblank events
1255 * Release ownership of a given vblank counter, turning off interrupts
1265 * drm_wait_one_vblank - wait for one vblank
1269 * This waits for one vblank to pass on @pipe, using the irq driver interfaces.
1270 * It is a failure to call this when the vblank irq for @pipe is disabled, e.g.
1277 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_wait_one_vblank() local
1285 if (drm_WARN(dev, ret, "vblank not available on crtc %i, ret=%i\n", in drm_wait_one_vblank()
1291 ret = wait_event_timeout(vblank->queue, in drm_wait_one_vblank()
1295 drm_WARN(dev, ret == 0, "vblank wait timed out on crtc %i\n", pipe); in drm_wait_one_vblank()
1302 * drm_crtc_wait_one_vblank - wait for one vblank
1305 * This waits for one vblank to pass on @crtc, using the irq driver interfaces.
1306 * It is a failure to call this when the vblank irq for @crtc is disabled, e.g.
1316 * drm_crtc_vblank_off - disable vblank events on a CRTC
1319 * Drivers can use this function to shut down the vblank interrupt handling when
1320 * disabling a crtc. This function ensures that the latest vblank frame count is
1323 * Drivers must use this function when the hardware vblank counter can get
1330 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_crtc_vblank_off() local
1339 * Grab event_lock early to prevent vblank work from being scheduled in drm_crtc_vblank_off()
1340 * while we're in the middle of shutting down vblank interrupts in drm_crtc_vblank_off()
1345 drm_dbg_vbl(dev, "crtc %d, vblank enabled %d, inmodeset %d\n", in drm_crtc_vblank_off()
1346 pipe, vblank->enabled, vblank->inmodeset); in drm_crtc_vblank_off()
1348 /* Avoid redundant vblank disables without previous in drm_crtc_vblank_off()
1350 if (drm_core_check_feature(dev, DRIVER_ATOMIC) || !vblank->inmodeset) in drm_crtc_vblank_off()
1353 wake_up(&vblank->queue); in drm_crtc_vblank_off()
1357 * the vblank interrupt by bumping the refcount. in drm_crtc_vblank_off()
1359 if (!vblank->inmodeset) { in drm_crtc_vblank_off()
1360 atomic_inc(&vblank->refcount); in drm_crtc_vblank_off()
1361 vblank->inmodeset = 1; in drm_crtc_vblank_off()
1365 /* Send any queued vblank events, lest the natives grow disquiet */ in drm_crtc_vblank_off()
1371 drm_dbg_core(dev, "Sending premature vblank event on disable: " in drm_crtc_vblank_off()
1379 /* Cancel any leftover pending vblank work */ in drm_crtc_vblank_off()
1380 drm_vblank_cancel_pending_works(vblank); in drm_crtc_vblank_off()
1386 vblank->hwmode.crtc_clock = 0; in drm_crtc_vblank_off()
1388 /* Wait for any vblank work that's still executing to finish */ in drm_crtc_vblank_off()
1389 drm_vblank_flush_worker(vblank); in drm_crtc_vblank_off()
1394 * drm_crtc_vblank_reset - reset vblank state to off on a CRTC
1397 * Drivers can use this function to reset the vblank state to off at load time.
1400 * drm_crtc_vblank_off() is that this function doesn't save the vblank counter
1409 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_crtc_vblank_reset() local
1413 * Prevent subsequent drm_vblank_get() from enabling the vblank in drm_crtc_vblank_reset()
1416 if (!vblank->inmodeset) { in drm_crtc_vblank_reset()
1417 atomic_inc(&vblank->refcount); in drm_crtc_vblank_reset()
1418 vblank->inmodeset = 1; in drm_crtc_vblank_reset()
1423 drm_WARN_ON(dev, !list_empty(&vblank->pending_work)); in drm_crtc_vblank_reset()
1428 * drm_crtc_set_max_vblank_count - configure the hw max vblank counter value
1430 * @max_vblank_count: max hardware vblank counter value
1432 * Update the maximum hardware vblank counter value for @crtc
1434 * hardware vblank counter depends on the currently active
1437 * For example, if the hardware vblank counter does not work
1449 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_crtc_set_max_vblank_count() local
1452 drm_WARN_ON(dev, !READ_ONCE(vblank->inmodeset)); in drm_crtc_set_max_vblank_count()
1454 vblank->max_vblank_count = max_vblank_count; in drm_crtc_set_max_vblank_count()
1459 * drm_crtc_vblank_on - enable vblank events on a CRTC
1462 * This functions restores the vblank interrupt state captured with
1472 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_crtc_vblank_on() local
1478 drm_dbg_vbl(dev, "crtc %d, vblank enabled %d, inmodeset %d\n", in drm_crtc_vblank_on()
1479 pipe, vblank->enabled, vblank->inmodeset); in drm_crtc_vblank_on()
1482 if (vblank->inmodeset) { in drm_crtc_vblank_on()
1483 atomic_dec(&vblank->refcount); in drm_crtc_vblank_on()
1484 vblank->inmodeset = 0; in drm_crtc_vblank_on()
1491 * user wishes vblank interrupts to be enabled all the time. in drm_crtc_vblank_on()
1493 if (atomic_read(&vblank->refcount) != 0 || drm_vblank_offdelay == 0) in drm_crtc_vblank_on()
1502 struct drm_vblank_crtc *vblank; in drm_vblank_restore() local
1515 vblank = &dev->vblank[pipe]; in drm_vblank_restore()
1517 drm_debug_enabled(DRM_UT_VBL) && !vblank->framedur_ns, in drm_vblank_restore()
1519 framedur_ns = vblank->framedur_ns; in drm_vblank_restore()
1526 diff_ns = ktime_to_ns(ktime_sub(t_vblank, vblank->time)); in drm_vblank_restore()
1533 diff, diff_ns, framedur_ns, cur_vblank - vblank->last); in drm_vblank_restore()
1534 vblank->last = (cur_vblank - diff) & max_vblank_count; in drm_vblank_restore()
1538 * drm_crtc_vblank_restore - estimate missed vblanks and update vblank count.
1541 * Power manamement features can cause frame counter resets between vblank
1545 * vblank counter.
1550 * time-stamping functions are race-free against vblank hardware counter
1567 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_queue_vblank_event() local
1596 * vblank disable, so no need for further locking. The reference from in drm_queue_vblank_event()
1597 * drm_vblank_get() protects against vblank disable from another source. in drm_queue_vblank_event()
1599 if (!READ_ONCE(vblank->enabled)) { in drm_queue_vblank_event()
1612 drm_dbg_core(dev, "event on vblank count %llu, current %llu, crtc %u\n", in drm_queue_vblank_event()
1693 struct drm_vblank_crtc *vblank; in drm_wait_vblank_ioctl() local
1742 vblank = &dev->vblank[pipe]; in drm_wait_vblank_ioctl()
1745 * queries to return the cached timestamp of the last vblank. in drm_wait_vblank_ioctl()
1749 READ_ONCE(vblank->enabled)) { in drm_wait_vblank_ioctl()
1757 "crtc %d failed to acquire vblank counter, %d\n", in drm_wait_vblank_ioctl()
1785 /* must hold on to the vblank ref until the event fires in drm_wait_vblank_ioctl()
1794 drm_dbg_core(dev, "waiting on vblank count %llu, crtc %u\n", in drm_wait_vblank_ioctl()
1796 wait = wait_event_interruptible_timeout(vblank->queue, in drm_wait_vblank_ioctl()
1798 !READ_ONCE(vblank->enabled), in drm_wait_vblank_ioctl()
1822 drm_dbg_core(dev, "crtc %d vblank wait interrupted by signal\n", in drm_wait_vblank_ioctl()
1849 drm_dbg_core(dev, "vblank event on %llu, current %llu\n", in drm_handle_vblank_events()
1864 * drm_handle_vblank - handle a vblank event
1868 * Drivers should call this routine in their vblank interrupt handlers to
1869 * update the vblank counter and send any signals that may be pending.
1875 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_handle_vblank() local
1888 * vblank enable/disable, as this would cause inconsistent in drm_handle_vblank()
1889 * or corrupted timestamps and vblank counts. in drm_handle_vblank()
1893 /* Vblank irq handling disabled. Nothing to do. */ in drm_handle_vblank()
1894 if (!vblank->enabled) { in drm_handle_vblank()
1904 wake_up(&vblank->queue); in drm_handle_vblank()
1907 * we finish processing the following vblank after all events have in drm_handle_vblank()
1913 !atomic_read(&vblank->refcount)); in drm_handle_vblank()
1916 drm_handle_vblank_works(vblank); in drm_handle_vblank()
1921 vblank_disable_fn(&vblank->disable_timer); in drm_handle_vblank()
1928 * drm_crtc_handle_vblank - handle a vblank event
1931 * Drivers should call this routine in their vblank interrupt handlers to
1932 * update the vblank counter and send any signals that may be pending.
1936 * Note that for a given vblank counter value drm_crtc_handle_vblank()
1940 * functions, if the vblank count is the same or a later one.
1954 * Get crtc VBLANK count.
1965 struct drm_vblank_crtc *vblank; in drm_crtc_get_sequence_ioctl() local
1984 vblank = &dev->vblank[pipe]; in drm_crtc_get_sequence_ioctl()
1985 vblank_enabled = dev->vblank_disable_immediate && READ_ONCE(vblank->enabled); in drm_crtc_get_sequence_ioctl()
1991 "crtc %d failed to acquire vblank counter, %d\n", in drm_crtc_get_sequence_ioctl()
2010 * Queue a event for VBLANK sequence
2021 struct drm_vblank_crtc *vblank; in drm_crtc_queue_sequence_ioctl() local
2049 vblank = &dev->vblank[pipe]; in drm_crtc_queue_sequence_ioctl()
2058 "crtc %d failed to acquire vblank counter, %d\n", in drm_crtc_queue_sequence_ioctl()
2082 * vblank disable, so no need for further locking. The reference from in drm_crtc_queue_sequence_ioctl()
2083 * drm_crtc_vblank_get() protects against vblank disable from another source. in drm_crtc_queue_sequence_ioctl()
2085 if (!READ_ONCE(vblank->enabled)) { in drm_crtc_queue_sequence_ioctl()