Defined in 1 files as a function:

Referenced in 15 files:

Smatch caller information:

drivers/gpu/drm/xe/xe_gsc_proxy.c proxy_query() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 36
PARAM_VALUE 4 len 16
NOCHECK_CALL
UNITS 3 src_offset unit_byte
UNITS 4 len unit_byte
LOCK2 &gsc->proxy.mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct xe_gsc)->proxy.mutex

drivers/gpu/drm/xe/xe_gsc_proxy.c proxy_query() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 52
NOCHECK_CALL
HOST_DATA 1 *dst s64min-s64max
UNITS 1 dst unit_byte
UNITS 3 src_offset unit_byte
UNITS 4 len unit_byte
LOCK2 &gsc->proxy.mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct xe_gsc)->proxy.mutex

drivers/gpu/drm/xe/xe_guc_ct.c g2h_read() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe->wedged.flag.counter 0
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 4 len 4
BUF_SIZE 1 dst 1024
DATA_SOURCE 0 xe r ct_to_xe
DATA_SOURCE 1 dst $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &ct->fast_lock
HALF_LOCKED2 irq
TYPE_LOCK (struct xe_guc_ct)->fast_lock

drivers/gpu/drm/xe/xe_guc_ct.c g2h_read() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe->wedged.flag.counter 0
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0-17179869180
PARAM_VALUE 4 len 0-17179869180
BUF_SIZE 1 dst 1020
CAPPED_DATA 3 src_offset 1
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r ct_to_xe
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ct->fast_lock
HALF_LOCKED2 irq
TYPE_LOCK (struct xe_guc_ct)->fast_lock

drivers/gpu/drm/xe/xe_guc_ct.c g2h_read() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe->wedged.flag.counter 0
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r ct_to_xe
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ct->fast_lock
HALF_LOCKED2 irq
TYPE_LOCK (struct xe_guc_ct)->fast_lock

drivers/gpu/drm/xe/xe_guc_ct.c g2h_read() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe->wedged.flag.counter 0
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0-17179869180
BUF_SIZE 1 dst 1020
CAPPED_DATA 3 src_offset 1
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r ct_to_xe
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ct->fast_lock
HALF_LOCKED2 irq
TYPE_LOCK (struct xe_guc_ct)->fast_lock

drivers/gpu/drm/xe/xe_guc_ct.c guc_ct_snapshot_capture() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 1-u64max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0
DATA_SOURCE 0 xe r ct_to_xe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &coredump->lock
HALF_LOCKED2 &m->lock
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_guc_ct.c guc_ct_snapshot_capture() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0
DATA_SOURCE 0 xe r ct_to_xe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &coredump->lock
HALF_LOCKED2 &m->lock
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_guc_ct.c guc_ctb_snapshot_capture() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0
PARAM_VALUE 4 len 64
BUF_SIZE 1 dst 64
DATA_SOURCE 0 xe $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
HALF_LOCKED2 &coredump->lock
HALF_LOCKED2 &m->lock
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_gsc.c memcpy_fw() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 16,4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0
PARAM_VALUE 4 len 0-4000000
BUF_SIZE 1 dst 0-u32max
BUF_SIZE 1 dst 0-u32max
DATA_SOURCE 1 dst r _kmalloc_noprof
NOCHECK_CALL
UNITS 4 len unit_byte
BYTE_COUNT 1 ==dst4 8050
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_guc_hwconfig.c xe_guc_hwconfig_copy() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0
BUF_SIZE 1 dst 1-s32max
BUF_SIZE 1 dst 1-s32max
DATA_SOURCE 0 xe r guc_to_xe
DATA_SOURCE 1 dst $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &m->lock

drivers/gpu/drm/xe/xe_oa.c xe_oa_copy_to_user() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 4 len 0-640,2147483648-u32max
BUF_SIZE 1 dst 64,128,192,256,320,576,640
CAPPED_DATA 3 src_offset 1
CAPPED_DATA 4 len 1
DATA_SOURCE 3 src_offset $2
DATA_SOURCE 4 len $3
NOCHECK_CALL
HOST_DATA 1 *dst s64min-s64max
NO_OVERFLOW_SIMPLE 1 dst
LOCK2 &stream->stream_lock
TYPE_LOCK (struct xe_oa_stream)->stream_lock

drivers/gpu/drm/xe/xe_gt.c xe_gt_record_default_lrcs() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe 4096-ptr_max
PARAM_VALUE 0 xe->drm.dev 4096-ptr_max
PARAM_VALUE 0 xe->pxp->status s32min-s32max
PARAM_VALUE 0 xe->ttm.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 xe->ttm.dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 xe->ttm.pool.dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 xe->ttm.pool.dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 xe->ttm.vma_manager->vm_lock.raw_lock.cnts.counter 0-s32max
PARAM_VALUE 0 xe->val.lock.first_waiter->handoff_set 0-1
PARAM_VALUE 1 dst 1-u64max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0-u32max
PARAM_VALUE 4 len 8192,12288,16384,20480,24576,28672,32768,36864,57344,61440
DATA_SOURCE 1 dst r drmm_kzalloc
BIT_INFO 4 len 0x0,0xffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_bo.c xe_bo_evict_pinned_copy() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe 4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0
BUF_SIZE 1 dst s32min-(-2),1-s32max
DATA_SOURCE 0 xe r ttm_to_xe_device
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 dst unit_byte
HALF_LOCKED2 bo->ttm.base.resv

drivers/gpu/drm/xe/xe_bo.c xe_ttm_access_memory() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe 4096-ptr_max
PARAM_VALUE 2 src 4076072236734345216
PARAM_VALUE 2 src->is_iomem 1
PARAM_VALUE 2 src->vaddr 4096-ptr_max
PARAM_VALUE 2 src->vaddr_iomem 4096-ptr_max
PARAM_VALUE 3 src_offset 0-4095
PARAM_VALUE 4 len 1-4096
BUF_SIZE 1 dst (-1),4,8,15,24,64,128,168-s32max
BUF_SIZE 1 dst (-1),4,8,15,24,64,128,168-s32max
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r ttm_to_xe_device
DATA_SOURCE 1 dst $2 [m]
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 *dst s64min-s64max
USER_DATA 1 dst 4096-ptr_max[c][u]
USER_DATA 3 src_offset 0-4095[c]
USER_DATA 4 len 1-4096[c]
USER_PTR 1 dst
LOCK2 ttm_bo->base.resv
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_lrc.c xe_lrc_snapshot_capture_delayed() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe 4096-ptr_max
PARAM_VALUE 1 dst 1-18446744073709551614
PARAM_VALUE 2 src 8268368356959367168
PARAM_VALUE 2 src->vaddr 1-u64max
PARAM_VALUE 2 src->vaddr_iomem 1-u64max
BUF_SIZE 1 dst 0-u64max
DATA_SOURCE 1 dst r __kvmalloc_node_noprof
NOCHECK_CALL
UNITS 3 src_offset unit_byte
UNITS 4 len unit_byte
BYTE_COUNT 1 ==dst4 8050
LOCK2 bo->ttm.base.resv
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_lrc.c xe_lrc_update_memirq_regs_with_address() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 2 src 7270513640042909696
PARAM_VALUE 3 src_offset 0
PARAM_VALUE 4 len 320,384
DATA_SOURCE 1 dst $2
DATA_SOURCE 4 len r xe_lrc_reg_size
NOCHECK_CALL
LOCK2 &guc->submission_state.lock
LOCK2 &pool->lock
TYPE_LOCK (struct xe_guc)->submission_state.lock

drivers/gpu/drm/xe/xe_uc_fw.c xe_uc_fw_copy_rsa() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 1254349869512167424
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0-u32max
PARAM_VALUE 4 len 0-256
BUF_SIZE 1 dst 256
BUF_SIZE 1 dst 256
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r uc_fw_to_xe
DATA_SOURCE 1 dst $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte

drivers/gpu/drm/xe/xe_sa.c xe_sa_bo_sync_read() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 2 src->is_iomem 1
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_mem_pool.c xe_mem_pool_bo_sync_read() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 2 src->is_iomem 1
NOCHECK_CALL
UNITS 1 dst unit_byte

drivers/gpu/drm/xe/xe_guc_log.c xe_guc_log_snapshot_capture() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0-s32max,18446744071562067968-u64max
PARAM_VALUE 4 len 0-2097152
BUF_SIZE 1 dst 1-2097152
CAPPED_DATA 3 src_offset 1
CAPPED_DATA 4 len 1
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r log_to_xe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
HALF_LOCKED2 &coredump->lock
HALF_LOCKED2 &m->lock
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_guc_capture.c __guc_capture_process_output() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 1 dst 7502716232230391808
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 72
PARAM_VALUE 4 len 36
BUF_SIZE 1 dst 36
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
HALF_LOCKED2 &ct->lock

drivers/gpu/drm/xe/xe_guc_capture.c guc_capture_log_remove_bytes() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 0-u32max
PARAM_VALUE 4 len 0-s32max,18446744071562067968-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte
HALF_LOCKED2 &ct->lock

drivers/gpu/drm/xe/xe_pxp_submit.c gsccs_send_message() -> xe_map_memcpy_from()

Type Parameter Key Value
PARAM_VALUE 0 xe 4096-ptr_max
PARAM_VALUE 1 dst 478276304268435456,1907491080389136384
PARAM_VALUE 2 src 4096-ptr_max
PARAM_VALUE 3 src_offset 36
PARAM_VALUE 4 len 0-48
BUF_SIZE 1 dst 20,48
BUF_SIZE 1 dst 20,48
CAPPED_DATA 4 len 1
DATA_SOURCE 1 dst $3
FUZZY_MAX 4 len 48
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 4 len 0-48[c]
UNITS 4 len unit_byte