/linux/drivers/gpu/host1x/ |
H A D | syncpt.c | 15 #include "syncpt.h" 62 struct host1x_syncpt *sp = host->syncpt; in host1x_syncpt_alloc() 138 struct host1x_syncpt *sp_base = host->syncpt; in host1x_syncpt_restore() 143 * Unassign syncpt from channels for purposes of Tegra186 in host1x_syncpt_restore() 165 struct host1x_syncpt *sp_base = host->syncpt; in host1x_syncpt_save() 283 struct host1x_syncpt *syncpt; in host1x_syncpt_init() local 286 syncpt = devm_kcalloc(host->dev, host->info->nb_pts, sizeof(*syncpt), in host1x_syncpt_init() 288 if (!syncpt) in host1x_syncpt_init() 297 syncpt[i].id = i; in host1x_syncpt_init() 298 syncpt[i].host = host; in host1x_syncpt_init() [all …]
|
H A D | debug.c | 92 u32 max = host1x_syncpt_read_max(m->syncpt + i); in show_syncpts() 93 u32 min = host1x_syncpt_load(m->syncpt + i); in show_syncpts() 96 spin_lock_irqsave(&m->syncpt[i].fences.lock, irqflags); in show_syncpts() 97 list_for_each(pos, &m->syncpt[i].fences.list) in show_syncpts() 99 spin_unlock_irqrestore(&m->syncpt[i].fences.lock, irqflags); in show_syncpts() 101 if (!kref_read(&m->syncpt[i].ref)) in show_syncpts() 109 i, m->syncpt[i].name, min, max, waiters); in show_syncpts() 115 base_val = host1x_syncpt_load_wait_base(m->syncpt + i); in show_syncpts()
|
H A D | dev.h | 21 #include "syncpt.h" 67 void (*restore)(struct host1x_syncpt *syncpt); 68 void (*restore_wait_base)(struct host1x_syncpt *syncpt); 69 void (*load_wait_base)(struct host1x_syncpt *syncpt); 70 u32 (*load)(struct host1x_syncpt *syncpt); 71 int (*cpu_incr)(struct host1x_syncpt *syncpt); 72 void (*assign_to_channel)(struct host1x_syncpt *syncpt, 137 struct host1x_syncpt *syncpt; member
|
H A D | intr.c | 77 struct host1x_syncpt *sp = &host->syncpt[id]; in host1x_intr_handle_interrupt() 108 struct host1x_syncpt *syncpt = &host->syncpt[id]; in host1x_intr_init() local 110 spin_lock_init(&syncpt->fences.lock); in host1x_intr_init() 111 INIT_LIST_HEAD(&syncpt->fences.list); in host1x_intr_init()
|
H A D | cdma.c | 282 cdma->timeout.syncpt = job->syncpt; in cdma_start_timer_locked() 320 struct host1x_syncpt *sp = job->syncpt; in update_cdma_locked() 322 /* Check whether this syncpt has completed, and bail if not */ in update_cdma_locked() 325 /* Start timer on next pending syncpt */ in update_cdma_locked() 370 syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); in host1x_cdma_update_sync_queue() 377 * completed based on the current HW syncpt value. It's likely there in host1x_cdma_update_sync_queue() 379 * where a syncpt incr happens just prior/during the teardown. in host1x_cdma_update_sync_queue() 441 host1x_syncpt_set_locked(job->syncpt); in host1x_cdma_update_sync_queue() 447 if (job->syncpt != failed_job->syncpt) in host1x_cdma_update_sync_queue() 559 if (job->syncpt->locked) { in host1x_cdma_begin()
|
H A D | cdma.h | 47 struct host1x_syncpt *syncpt; /* buffer completion syncpt */ member 48 u32 syncpt_val; /* syncpt value when completed */
|
H A D | Makefile | 4 syncpt.o \
|
H A D | job.c | 22 #include "syncpt.h" 101 if (job->syncpt) in job_free() 102 host1x_syncpt_put(job->syncpt); in job_free() 684 dev_dbg(dev, " SYNCPT_ID %d\n", job->syncpt->id); in host1x_job_dump()
|
H A D | fence.c | 16 #include "syncpt.h"
|
/linux/drivers/gpu/host1x/hw/ |
H A D | channel_hw.c | 165 struct host1x_syncpt *sp = job->syncpt; in synchronize_syncpt_base() 215 struct host1x_syncpt *sp = job->syncpt; in channel_program_cdma() 231 HOST1X_UCLASS_INCR_SYNCPT_INDX_F(job->syncpt->id) | in channel_program_cdma() 233 submit_wait(job, job->syncpt->id, fence, job->class); in channel_program_cdma() 243 HOST1X_UCLASS_INCR_SYNCPT_INDX_F(job->syncpt->id) | in channel_program_cdma() 245 submit_wait(job, job->syncpt->id, fence, job->class); in channel_program_cdma() 259 host1x_class_host_wait_syncpt(job->syncpt->id, in channel_program_cdma() 290 struct host1x_syncpt *sp = job->syncpt; in channel_submit() 298 job->syncpt->id, job->syncpt_incrs); in channel_submit()
|
H A D | debug_hw_1x01.c | 43 host1x_debug_output(o, "waiting on syncpt %d val %d\n", in host1x_debug_show_channel_cdma() 53 host1x_debug_output(o, "waiting on syncpt %d val %d (base %d = %d; offset = %d)\n", in host1x_debug_show_channel_cdma()
|
H A D | syncpt_hw.c | 11 #include "../syncpt.h"
|
H A D | debug_hw_1x06.c | 52 host1x_debug_output(o, "waiting on syncpt\n"); in host1x_debug_show_channel_cdma()
|
/linux/fs/jfs/ |
H A D | jfs_logmgr.h | 276 * SYNCPT: log sync point 278 * replay log up to syncpt address specified; 281 __le32 sync; /* 4: syncpt address (0 = here) */ 282 } syncpt; member 356 * before writing syncpt. 379 /* syncpt */ 380 int nextsync; /* 4: bytes to write before next syncpt */ 394 int syncpt; /* 4: addr of last syncpt record */ member 485 diff = (lsn) - (log)->syncpt;\
|
H A D | jfs_logmgr.c | 276 * commit time to allow forwarding log syncpt past log in lmLog() 317 * forward log syncpt if log reached next syncpt trigger in lmLog() 907 * FUNCTION: write log SYNCPT record for specified log 924 int written; /* written since last syncpt */ in lmLogSync() 940 * forward syncpt in lmLogSync() 942 /* if last sync is same as last syncpt, in lmLogSync() 946 if (log->sync == log->syncpt) { in lmLogSync() 959 /* if sync is different from last syncpt, in lmLogSync() 960 * write a SYNCPT record with syncpt = sync. in lmLogSync() 961 * reset syncpt = sync in lmLogSync() [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | submit.c | 332 if (args->syncpt.flags) { in submit_get_syncpt() 333 SUBMIT_ERR(context, "invalid flag specified for syncpt"); in submit_get_syncpt() 337 /* Syncpt ref will be dropped on job release */ in submit_get_syncpt() 338 sp = xa_load(syncpoints, args->syncpt.id); in submit_get_syncpt() 340 SUBMIT_ERR(context, "syncpoint specified in syncpt was not allocated"); in submit_get_syncpt() 344 job->syncpt = host1x_syncpt_get(sp); in submit_get_syncpt() 345 job->syncpt_incrs = args->syncpt.increments; in submit_get_syncpt() 457 if (cmd->wait_syncpt.id != args->syncpt.id) { in submit_create_job() 646 args->syncpt.value = job->syncpt_end; in tegra_drm_ioctl_channel_submit() 649 struct dma_fence *fence = host1x_fence_create(job->syncpt, job->syncpt_end, true); in tegra_drm_ioctl_channel_submit()
|
H A D | drm.c | 177 struct drm_tegra_syncpt syncpt; in tegra_drm_submit() local 303 if (copy_from_user(&syncpt, user_syncpt, sizeof(syncpt))) { in tegra_drm_submit() 309 sp = host1x_syncpt_get_by_id(host1x, syncpt.id); in tegra_drm_submit() 317 job->syncpt_incrs = syncpt.incrs; in tegra_drm_submit() 318 job->syncpt = sp; in tegra_drm_submit() 520 struct host1x_syncpt *syncpt; in tegra_get_syncpt() local 536 syncpt = context->client->base.syncpts[args->index]; in tegra_get_syncpt() 537 args->id = host1x_syncpt_id(syncpt); in tegra_get_syncpt() 574 struct host1x_syncpt *syncpt; in tegra_get_syncpt_base() local 585 if (args->syncpt >= context->client->base.num_syncpts) { in tegra_get_syncpt_base() [all …]
|
H A D | dc.c | 1767 if (dc->syncpt && !dc->soc->has_nvdisplay) in tegra_dc_get_vblank_counter() 1768 return host1x_syncpt_read(dc->syncpt); in tegra_dc_get_vblank_counter() 2170 if (dc->syncpt) { in tegra_crtc_atomic_enable() 2171 u32 syncpt = host1x_syncpt_id(dc->syncpt), enable; in tegra_crtc_atomic_enable() local 2181 value = enable | syncpt; in tegra_crtc_atomic_enable() 2636 dc->syncpt = host1x_syncpt_request(client, flags); in tegra_dc_init() 2637 if (!dc->syncpt) in tegra_dc_init() 2721 host1x_syncpt_put(dc->syncpt); in tegra_dc_init() 2746 host1x_syncpt_put(dc->syncpt); in tegra_dc_exit()
|
/linux/Documentation/devicetree/bindings/display/tegra/ |
H A D | nvidia,tegra20-host1x.yaml | 133 - const: syncpt 170 - const: syncpt 252 interrupts = <0 65 0x04>, /* mpcore syncpt */ 254 interrupt-names = "syncpt", "host1x"; 388 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>, /* mpcore syncpt */ 390 interrupt-names = "syncpt", "host1x";
|
/linux/drivers/staging/media/tegra-video/ |
H A D | tegra210.c | 432 * Tegra VI block interacts with host1x syncpt to synchronize in tegra_channel_capture_frame() 438 * register are added to HW syncpt FIFO and when HW triggers, in tegra_channel_capture_frame() 439 * syncpt condition is removed from the FIFO and counter at in tegra_channel_capture_frame() 449 /* Program FRAME_START trigger condition syncpt request */ in tegra_channel_capture_frame() 459 /* Program MW_ACK_DONE trigger condition syncpt request */ in tegra_channel_capture_frame() 473 * Wait for syncpt counter to reach frame start event threshold in tegra_channel_capture_frame() 491 "frame start syncpt timeout: %d\n", err); in tegra_channel_capture_frame() 517 * Wait for syncpt counter to reach MW_ACK_DONE event threshold in tegra_channel_capture_done() 534 "MW_ACK_DONE syncpt timeout: %d\n", ret); in tegra_channel_capture_done() 620 /* clear syncpt errors */ in tegra210_vi_start_streaming()
|
H A D | vi.h | 128 * OUT_1 syncpt) 172 * @syncpt_timeout_retry: syncpt timeout retry count for the capture
|
H A D | tegra20.c | 387 /* Wait for syncpt counter to reach frame start event threshold */ in tegra20_channel_capture_frame() 392 dev_err_ratelimited(&chan->video.dev, "frame start syncpt timeout: %d\n", err); in tegra20_channel_capture_frame()
|
/linux/include/uapi/drm/ |
H A D | tegra_drm.h | 235 * @syncpt: 239 __u32 syncpt; member 377 * @syncpt: 381 __u32 syncpt; member 991 struct drm_tegra_submit_syncpt syncpt; member
|
/linux/net/tipc/ |
H A D | node.c | 1938 u16 rcv_nxt, syncpt, dlv_nxt, inputq_len; in tipc_node_check_state() local 1996 syncpt = oseqno + exp_pkts - 1; in tipc_node_check_state() 2014 /* If pkts arrive out of order, use lowest calculated syncpt */ in tipc_node_check_state() 2015 if (less(syncpt, n->sync_point)) in tipc_node_check_state() 2016 n->sync_point = syncpt; in tipc_node_check_state() 2036 syncpt = msg_syncpt(hdr); in tipc_node_check_state() 2038 syncpt = msg_seqno(msg_inner_hdr(hdr)) + exp_pkts - 1; in tipc_node_check_state() 2042 n->sync_point = syncpt; in tipc_node_check_state()
|
/linux/Documentation/gpu/ |
H A D | tegra.rst | 58 .. kernel-doc:: drivers/gpu/host1x/syncpt.c
|