Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/drm
File: msm_drm.h
/*
[0] Fix | Delete
* Copyright (C) 2013 Red Hat
[1] Fix | Delete
* Author: Rob Clark <robdclark@gmail.com>
[2] Fix | Delete
*
[3] Fix | Delete
* Permission is hereby granted, free of charge, to any person obtaining a
[4] Fix | Delete
* copy of this software and associated documentation files (the "Software"),
[5] Fix | Delete
* to deal in the Software without restriction, including without limitation
[6] Fix | Delete
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
[7] Fix | Delete
* and/or sell copies of the Software, and to permit persons to whom the
[8] Fix | Delete
* Software is furnished to do so, subject to the following conditions:
[9] Fix | Delete
*
[10] Fix | Delete
* The above copyright notice and this permission notice (including the next
[11] Fix | Delete
* paragraph) shall be included in all copies or substantial portions of the
[12] Fix | Delete
* Software.
[13] Fix | Delete
*
[14] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[15] Fix | Delete
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[16] Fix | Delete
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
[17] Fix | Delete
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
[18] Fix | Delete
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
[19] Fix | Delete
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
[20] Fix | Delete
* SOFTWARE.
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
#ifndef __MSM_DRM_H__
[24] Fix | Delete
#define __MSM_DRM_H__
[25] Fix | Delete
[26] Fix | Delete
#include "drm.h"
[27] Fix | Delete
[28] Fix | Delete
#if defined(__cplusplus)
[29] Fix | Delete
extern "C" {
[30] Fix | Delete
#endif
[31] Fix | Delete
[32] Fix | Delete
/* Please note that modifications to all structs defined here are
[33] Fix | Delete
* subject to backwards-compatibility constraints:
[34] Fix | Delete
* 1) Do not use pointers, use __u64 instead for 32 bit / 64 bit
[35] Fix | Delete
* user/kernel compatibility
[36] Fix | Delete
* 2) Keep fields aligned to their size
[37] Fix | Delete
* 3) Because of how drm_ioctl() works, we can add new fields at
[38] Fix | Delete
* the end of an ioctl if some care is taken: drm_ioctl() will
[39] Fix | Delete
* zero out the new fields at the tail of the ioctl, so a zero
[40] Fix | Delete
* value should have a backwards compatible meaning. And for
[41] Fix | Delete
* output params, userspace won't see the newly added output
[42] Fix | Delete
* fields.. so that has to be somehow ok.
[43] Fix | Delete
*/
[44] Fix | Delete
[45] Fix | Delete
#define MSM_PIPE_NONE 0x00
[46] Fix | Delete
#define MSM_PIPE_2D0 0x01
[47] Fix | Delete
#define MSM_PIPE_2D1 0x02
[48] Fix | Delete
#define MSM_PIPE_3D0 0x10
[49] Fix | Delete
[50] Fix | Delete
/* The pipe-id just uses the lower bits, so can be OR'd with flags in
[51] Fix | Delete
* the upper 16 bits (which could be extended further, if needed, maybe
[52] Fix | Delete
* we extend/overload the pipe-id some day to deal with multiple rings,
[53] Fix | Delete
* but even then I don't think we need the full lower 16 bits).
[54] Fix | Delete
*/
[55] Fix | Delete
#define MSM_PIPE_ID_MASK 0xffff
[56] Fix | Delete
#define MSM_PIPE_ID(x) ((x) & MSM_PIPE_ID_MASK)
[57] Fix | Delete
#define MSM_PIPE_FLAGS(x) ((x) & ~MSM_PIPE_ID_MASK)
[58] Fix | Delete
[59] Fix | Delete
/* timeouts are specified in clock-monotonic absolute times (to simplify
[60] Fix | Delete
* restarting interrupted ioctls). The following struct is logically the
[61] Fix | Delete
* same as 'struct timespec' but 32/64b ABI safe.
[62] Fix | Delete
*/
[63] Fix | Delete
struct drm_msm_timespec {
[64] Fix | Delete
__s64 tv_sec; /* seconds */
[65] Fix | Delete
__s64 tv_nsec; /* nanoseconds */
[66] Fix | Delete
};
[67] Fix | Delete
[68] Fix | Delete
/* Below "RO" indicates a read-only param, "WO" indicates write-only, and
[69] Fix | Delete
* "RW" indicates a param that can be both read (GET_PARAM) and written
[70] Fix | Delete
* (SET_PARAM)
[71] Fix | Delete
*/
[72] Fix | Delete
#define MSM_PARAM_GPU_ID 0x01 /* RO */
[73] Fix | Delete
#define MSM_PARAM_GMEM_SIZE 0x02 /* RO */
[74] Fix | Delete
#define MSM_PARAM_CHIP_ID 0x03 /* RO */
[75] Fix | Delete
#define MSM_PARAM_MAX_FREQ 0x04 /* RO */
[76] Fix | Delete
#define MSM_PARAM_TIMESTAMP 0x05 /* RO */
[77] Fix | Delete
#define MSM_PARAM_GMEM_BASE 0x06 /* RO */
[78] Fix | Delete
#define MSM_PARAM_PRIORITIES 0x07 /* RO: The # of priority levels */
[79] Fix | Delete
#define MSM_PARAM_PP_PGTABLE 0x08 /* RO: Deprecated, always returns zero */
[80] Fix | Delete
#define MSM_PARAM_FAULTS 0x09 /* RO */
[81] Fix | Delete
#define MSM_PARAM_SUSPENDS 0x0a /* RO */
[82] Fix | Delete
#define MSM_PARAM_SYSPROF 0x0b /* WO: 1 preserves perfcntrs, 2 also disables suspend */
[83] Fix | Delete
#define MSM_PARAM_COMM 0x0c /* WO: override for task->comm */
[84] Fix | Delete
#define MSM_PARAM_CMDLINE 0x0d /* WO: override for task cmdline */
[85] Fix | Delete
#define MSM_PARAM_VA_START 0x0e /* RO: start of valid GPU iova range */
[86] Fix | Delete
#define MSM_PARAM_VA_SIZE 0x0f /* RO: size of valid GPU iova range (bytes) */
[87] Fix | Delete
[88] Fix | Delete
/* For backwards compat. The original support for preemption was based on
[89] Fix | Delete
* a single ring per priority level so # of priority levels equals the #
[90] Fix | Delete
* of rings. With drm/scheduler providing additional levels of priority,
[91] Fix | Delete
* the number of priorities is greater than the # of rings. The param is
[92] Fix | Delete
* renamed to better reflect this.
[93] Fix | Delete
*/
[94] Fix | Delete
#define MSM_PARAM_NR_RINGS MSM_PARAM_PRIORITIES
[95] Fix | Delete
[96] Fix | Delete
struct drm_msm_param {
[97] Fix | Delete
__u32 pipe; /* in, MSM_PIPE_x */
[98] Fix | Delete
__u32 param; /* in, MSM_PARAM_x */
[99] Fix | Delete
__u64 value; /* out (get_param) or in (set_param) */
[100] Fix | Delete
__u32 len; /* zero for non-pointer params */
[101] Fix | Delete
__u32 pad; /* must be zero */
[102] Fix | Delete
};
[103] Fix | Delete
[104] Fix | Delete
/*
[105] Fix | Delete
* GEM buffers:
[106] Fix | Delete
*/
[107] Fix | Delete
[108] Fix | Delete
#define MSM_BO_SCANOUT 0x00000001 /* scanout capable */
[109] Fix | Delete
#define MSM_BO_GPU_READONLY 0x00000002
[110] Fix | Delete
#define MSM_BO_CACHE_MASK 0x000f0000
[111] Fix | Delete
/* cache modes */
[112] Fix | Delete
#define MSM_BO_CACHED 0x00010000
[113] Fix | Delete
#define MSM_BO_WC 0x00020000
[114] Fix | Delete
#define MSM_BO_UNCACHED 0x00040000 /* deprecated, use MSM_BO_WC */
[115] Fix | Delete
#define MSM_BO_CACHED_COHERENT 0x080000
[116] Fix | Delete
[117] Fix | Delete
#define MSM_BO_FLAGS (MSM_BO_SCANOUT | \
[118] Fix | Delete
MSM_BO_GPU_READONLY | \
[119] Fix | Delete
MSM_BO_CACHE_MASK)
[120] Fix | Delete
[121] Fix | Delete
struct drm_msm_gem_new {
[122] Fix | Delete
__u64 size; /* in */
[123] Fix | Delete
__u32 flags; /* in, mask of MSM_BO_x */
[124] Fix | Delete
__u32 handle; /* out */
[125] Fix | Delete
};
[126] Fix | Delete
[127] Fix | Delete
/* Get or set GEM buffer info. The requested value can be passed
[128] Fix | Delete
* directly in 'value', or for data larger than 64b 'value' is a
[129] Fix | Delete
* pointer to userspace buffer, with 'len' specifying the number of
[130] Fix | Delete
* bytes copied into that buffer. For info returned by pointer,
[131] Fix | Delete
* calling the GEM_INFO ioctl with null 'value' will return the
[132] Fix | Delete
* required buffer size in 'len'
[133] Fix | Delete
*/
[134] Fix | Delete
#define MSM_INFO_GET_OFFSET 0x00 /* get mmap() offset, returned by value */
[135] Fix | Delete
#define MSM_INFO_GET_IOVA 0x01 /* get iova, returned by value */
[136] Fix | Delete
#define MSM_INFO_SET_NAME 0x02 /* set the debug name (by pointer) */
[137] Fix | Delete
#define MSM_INFO_GET_NAME 0x03 /* get debug name, returned by pointer */
[138] Fix | Delete
#define MSM_INFO_SET_IOVA 0x04 /* set the iova, passed by value */
[139] Fix | Delete
#define MSM_INFO_GET_FLAGS 0x05 /* get the MSM_BO_x flags */
[140] Fix | Delete
[141] Fix | Delete
struct drm_msm_gem_info {
[142] Fix | Delete
__u32 handle; /* in */
[143] Fix | Delete
__u32 info; /* in - one of MSM_INFO_* */
[144] Fix | Delete
__u64 value; /* in or out */
[145] Fix | Delete
__u32 len; /* in or out */
[146] Fix | Delete
__u32 pad;
[147] Fix | Delete
};
[148] Fix | Delete
[149] Fix | Delete
#define MSM_PREP_READ 0x01
[150] Fix | Delete
#define MSM_PREP_WRITE 0x02
[151] Fix | Delete
#define MSM_PREP_NOSYNC 0x04
[152] Fix | Delete
[153] Fix | Delete
#define MSM_PREP_FLAGS (MSM_PREP_READ | MSM_PREP_WRITE | MSM_PREP_NOSYNC)
[154] Fix | Delete
[155] Fix | Delete
struct drm_msm_gem_cpu_prep {
[156] Fix | Delete
__u32 handle; /* in */
[157] Fix | Delete
__u32 op; /* in, mask of MSM_PREP_x */
[158] Fix | Delete
struct drm_msm_timespec timeout; /* in */
[159] Fix | Delete
};
[160] Fix | Delete
[161] Fix | Delete
struct drm_msm_gem_cpu_fini {
[162] Fix | Delete
__u32 handle; /* in */
[163] Fix | Delete
};
[164] Fix | Delete
[165] Fix | Delete
/*
[166] Fix | Delete
* Cmdstream Submission:
[167] Fix | Delete
*/
[168] Fix | Delete
[169] Fix | Delete
/* The value written into the cmdstream is logically:
[170] Fix | Delete
*
[171] Fix | Delete
* ((relocbuf->gpuaddr + reloc_offset) << shift) | or
[172] Fix | Delete
*
[173] Fix | Delete
* When we have GPU's w/ >32bit ptrs, it should be possible to deal
[174] Fix | Delete
* with this by emit'ing two reloc entries with appropriate shift
[175] Fix | Delete
* values. Or a new MSM_SUBMIT_CMD_x type would also be an option.
[176] Fix | Delete
*
[177] Fix | Delete
* NOTE that reloc's must be sorted by order of increasing submit_offset,
[178] Fix | Delete
* otherwise EINVAL.
[179] Fix | Delete
*/
[180] Fix | Delete
struct drm_msm_gem_submit_reloc {
[181] Fix | Delete
__u32 submit_offset; /* in, offset from submit_bo */
[182] Fix | Delete
__u32 or; /* in, value OR'd with result */
[183] Fix | Delete
__s32 shift; /* in, amount of left shift (can be negative) */
[184] Fix | Delete
__u32 reloc_idx; /* in, index of reloc_bo buffer */
[185] Fix | Delete
__u64 reloc_offset; /* in, offset from start of reloc_bo */
[186] Fix | Delete
};
[187] Fix | Delete
[188] Fix | Delete
/* submit-types:
[189] Fix | Delete
* BUF - this cmd buffer is executed normally.
[190] Fix | Delete
* IB_TARGET_BUF - this cmd buffer is an IB target. Reloc's are
[191] Fix | Delete
* processed normally, but the kernel does not setup an IB to
[192] Fix | Delete
* this buffer in the first-level ringbuffer
[193] Fix | Delete
* CTX_RESTORE_BUF - only executed if there has been a GPU context
[194] Fix | Delete
* switch since the last SUBMIT ioctl
[195] Fix | Delete
*/
[196] Fix | Delete
#define MSM_SUBMIT_CMD_BUF 0x0001
[197] Fix | Delete
#define MSM_SUBMIT_CMD_IB_TARGET_BUF 0x0002
[198] Fix | Delete
#define MSM_SUBMIT_CMD_CTX_RESTORE_BUF 0x0003
[199] Fix | Delete
struct drm_msm_gem_submit_cmd {
[200] Fix | Delete
__u32 type; /* in, one of MSM_SUBMIT_CMD_x */
[201] Fix | Delete
__u32 submit_idx; /* in, index of submit_bo cmdstream buffer */
[202] Fix | Delete
__u32 submit_offset; /* in, offset into submit_bo */
[203] Fix | Delete
__u32 size; /* in, cmdstream size */
[204] Fix | Delete
__u32 pad;
[205] Fix | Delete
__u32 nr_relocs; /* in, number of submit_reloc's */
[206] Fix | Delete
__u64 relocs; /* in, ptr to array of submit_reloc's */
[207] Fix | Delete
};
[208] Fix | Delete
[209] Fix | Delete
/* Each buffer referenced elsewhere in the cmdstream submit (ie. the
[210] Fix | Delete
* cmdstream buffer(s) themselves or reloc entries) has one (and only
[211] Fix | Delete
* one) entry in the submit->bos[] table.
[212] Fix | Delete
*
[213] Fix | Delete
* As a optimization, the current buffer (gpu virtual address) can be
[214] Fix | Delete
* passed back through the 'presumed' field. If on a subsequent reloc,
[215] Fix | Delete
* userspace passes back a 'presumed' address that is still valid,
[216] Fix | Delete
* then patching the cmdstream for this entry is skipped. This can
[217] Fix | Delete
* avoid kernel needing to map/access the cmdstream bo in the common
[218] Fix | Delete
* case.
[219] Fix | Delete
*/
[220] Fix | Delete
#define MSM_SUBMIT_BO_READ 0x0001
[221] Fix | Delete
#define MSM_SUBMIT_BO_WRITE 0x0002
[222] Fix | Delete
#define MSM_SUBMIT_BO_DUMP 0x0004
[223] Fix | Delete
#define MSM_SUBMIT_BO_NO_IMPLICIT 0x0008
[224] Fix | Delete
[225] Fix | Delete
#define MSM_SUBMIT_BO_FLAGS (MSM_SUBMIT_BO_READ | \
[226] Fix | Delete
MSM_SUBMIT_BO_WRITE | \
[227] Fix | Delete
MSM_SUBMIT_BO_DUMP | \
[228] Fix | Delete
MSM_SUBMIT_BO_NO_IMPLICIT)
[229] Fix | Delete
[230] Fix | Delete
struct drm_msm_gem_submit_bo {
[231] Fix | Delete
__u32 flags; /* in, mask of MSM_SUBMIT_BO_x */
[232] Fix | Delete
__u32 handle; /* in, GEM handle */
[233] Fix | Delete
__u64 presumed; /* in/out, presumed buffer address */
[234] Fix | Delete
};
[235] Fix | Delete
[236] Fix | Delete
/* Valid submit ioctl flags: */
[237] Fix | Delete
#define MSM_SUBMIT_NO_IMPLICIT 0x80000000 /* disable implicit sync */
[238] Fix | Delete
#define MSM_SUBMIT_FENCE_FD_IN 0x40000000 /* enable input fence_fd */
[239] Fix | Delete
#define MSM_SUBMIT_FENCE_FD_OUT 0x20000000 /* enable output fence_fd */
[240] Fix | Delete
#define MSM_SUBMIT_SUDO 0x10000000 /* run submitted cmds from RB */
[241] Fix | Delete
#define MSM_SUBMIT_SYNCOBJ_IN 0x08000000 /* enable input syncobj */
[242] Fix | Delete
#define MSM_SUBMIT_SYNCOBJ_OUT 0x04000000 /* enable output syncobj */
[243] Fix | Delete
#define MSM_SUBMIT_FENCE_SN_IN 0x02000000 /* userspace passes in seqno fence */
[244] Fix | Delete
#define MSM_SUBMIT_FLAGS ( \
[245] Fix | Delete
MSM_SUBMIT_NO_IMPLICIT | \
[246] Fix | Delete
MSM_SUBMIT_FENCE_FD_IN | \
[247] Fix | Delete
MSM_SUBMIT_FENCE_FD_OUT | \
[248] Fix | Delete
MSM_SUBMIT_SUDO | \
[249] Fix | Delete
MSM_SUBMIT_SYNCOBJ_IN | \
[250] Fix | Delete
MSM_SUBMIT_SYNCOBJ_OUT | \
[251] Fix | Delete
MSM_SUBMIT_FENCE_SN_IN | \
[252] Fix | Delete
0)
[253] Fix | Delete
[254] Fix | Delete
#define MSM_SUBMIT_SYNCOBJ_RESET 0x00000001 /* Reset syncobj after wait. */
[255] Fix | Delete
#define MSM_SUBMIT_SYNCOBJ_FLAGS ( \
[256] Fix | Delete
MSM_SUBMIT_SYNCOBJ_RESET | \
[257] Fix | Delete
0)
[258] Fix | Delete
[259] Fix | Delete
struct drm_msm_gem_submit_syncobj {
[260] Fix | Delete
__u32 handle; /* in, syncobj handle. */
[261] Fix | Delete
__u32 flags; /* in, from MSM_SUBMIT_SYNCOBJ_FLAGS */
[262] Fix | Delete
__u64 point; /* in, timepoint for timeline syncobjs. */
[263] Fix | Delete
};
[264] Fix | Delete
[265] Fix | Delete
/* Each cmdstream submit consists of a table of buffers involved, and
[266] Fix | Delete
* one or more cmdstream buffers. This allows for conditional execution
[267] Fix | Delete
* (context-restore), and IB buffers needed for per tile/bin draw cmds.
[268] Fix | Delete
*/
[269] Fix | Delete
struct drm_msm_gem_submit {
[270] Fix | Delete
__u32 flags; /* MSM_PIPE_x | MSM_SUBMIT_x */
[271] Fix | Delete
__u32 fence; /* out (or in with MSM_SUBMIT_FENCE_SN_IN flag) */
[272] Fix | Delete
__u32 nr_bos; /* in, number of submit_bo's */
[273] Fix | Delete
__u32 nr_cmds; /* in, number of submit_cmd's */
[274] Fix | Delete
__u64 bos; /* in, ptr to array of submit_bo's */
[275] Fix | Delete
__u64 cmds; /* in, ptr to array of submit_cmd's */
[276] Fix | Delete
__s32 fence_fd; /* in/out fence fd (see MSM_SUBMIT_FENCE_FD_IN/OUT) */
[277] Fix | Delete
__u32 queueid; /* in, submitqueue id */
[278] Fix | Delete
__u64 in_syncobjs; /* in, ptr to array of drm_msm_gem_submit_syncobj */
[279] Fix | Delete
__u64 out_syncobjs; /* in, ptr to array of drm_msm_gem_submit_syncobj */
[280] Fix | Delete
__u32 nr_in_syncobjs; /* in, number of entries in in_syncobj */
[281] Fix | Delete
__u32 nr_out_syncobjs; /* in, number of entries in out_syncobj. */
[282] Fix | Delete
__u32 syncobj_stride; /* in, stride of syncobj arrays. */
[283] Fix | Delete
__u32 pad; /*in, reserved for future use, always 0. */
[284] Fix | Delete
[285] Fix | Delete
};
[286] Fix | Delete
[287] Fix | Delete
/* The normal way to synchronize with the GPU is just to CPU_PREP on
[288] Fix | Delete
* a buffer if you need to access it from the CPU (other cmdstream
[289] Fix | Delete
* submission from same or other contexts, PAGE_FLIP ioctl, etc, all
[290] Fix | Delete
* handle the required synchronization under the hood). This ioctl
[291] Fix | Delete
* mainly just exists as a way to implement the gallium pipe_fence
[292] Fix | Delete
* APIs without requiring a dummy bo to synchronize on.
[293] Fix | Delete
*/
[294] Fix | Delete
struct drm_msm_wait_fence {
[295] Fix | Delete
__u32 fence; /* in */
[296] Fix | Delete
__u32 pad;
[297] Fix | Delete
struct drm_msm_timespec timeout; /* in */
[298] Fix | Delete
__u32 queueid; /* in, submitqueue id */
[299] Fix | Delete
};
[300] Fix | Delete
[301] Fix | Delete
/* madvise provides a way to tell the kernel in case a buffers contents
[302] Fix | Delete
* can be discarded under memory pressure, which is useful for userspace
[303] Fix | Delete
* bo cache where we want to optimistically hold on to buffer allocate
[304] Fix | Delete
* and potential mmap, but allow the pages to be discarded under memory
[305] Fix | Delete
* pressure.
[306] Fix | Delete
*
[307] Fix | Delete
* Typical usage would involve madvise(DONTNEED) when buffer enters BO
[308] Fix | Delete
* cache, and madvise(WILLNEED) if trying to recycle buffer from BO cache.
[309] Fix | Delete
* In the WILLNEED case, 'retained' indicates to userspace whether the
[310] Fix | Delete
* backing pages still exist.
[311] Fix | Delete
*/
[312] Fix | Delete
#define MSM_MADV_WILLNEED 0 /* backing pages are needed, status returned in 'retained' */
[313] Fix | Delete
#define MSM_MADV_DONTNEED 1 /* backing pages not needed */
[314] Fix | Delete
#define __MSM_MADV_PURGED 2 /* internal state */
[315] Fix | Delete
[316] Fix | Delete
struct drm_msm_gem_madvise {
[317] Fix | Delete
__u32 handle; /* in, GEM handle */
[318] Fix | Delete
__u32 madv; /* in, MSM_MADV_x */
[319] Fix | Delete
__u32 retained; /* out, whether backing store still exists */
[320] Fix | Delete
};
[321] Fix | Delete
[322] Fix | Delete
/*
[323] Fix | Delete
* Draw queues allow the user to set specific submission parameter. Command
[324] Fix | Delete
* submissions specify a specific submitqueue to use. ID 0 is reserved for
[325] Fix | Delete
* backwards compatibility as a "default" submitqueue
[326] Fix | Delete
*/
[327] Fix | Delete
[328] Fix | Delete
#define MSM_SUBMITQUEUE_FLAGS (0)
[329] Fix | Delete
[330] Fix | Delete
/*
[331] Fix | Delete
* The submitqueue priority should be between 0 and MSM_PARAM_PRIORITIES-1,
[332] Fix | Delete
* a lower numeric value is higher priority.
[333] Fix | Delete
*/
[334] Fix | Delete
struct drm_msm_submitqueue {
[335] Fix | Delete
__u32 flags; /* in, MSM_SUBMITQUEUE_x */
[336] Fix | Delete
__u32 prio; /* in, Priority level */
[337] Fix | Delete
__u32 id; /* out, identifier */
[338] Fix | Delete
};
[339] Fix | Delete
[340] Fix | Delete
#define MSM_SUBMITQUEUE_PARAM_FAULTS 0
[341] Fix | Delete
[342] Fix | Delete
struct drm_msm_submitqueue_query {
[343] Fix | Delete
__u64 data;
[344] Fix | Delete
__u32 id;
[345] Fix | Delete
__u32 param;
[346] Fix | Delete
__u32 len;
[347] Fix | Delete
__u32 pad;
[348] Fix | Delete
};
[349] Fix | Delete
[350] Fix | Delete
#define DRM_MSM_GET_PARAM 0x00
[351] Fix | Delete
#define DRM_MSM_SET_PARAM 0x01
[352] Fix | Delete
#define DRM_MSM_GEM_NEW 0x02
[353] Fix | Delete
#define DRM_MSM_GEM_INFO 0x03
[354] Fix | Delete
#define DRM_MSM_GEM_CPU_PREP 0x04
[355] Fix | Delete
#define DRM_MSM_GEM_CPU_FINI 0x05
[356] Fix | Delete
#define DRM_MSM_GEM_SUBMIT 0x06
[357] Fix | Delete
#define DRM_MSM_WAIT_FENCE 0x07
[358] Fix | Delete
#define DRM_MSM_GEM_MADVISE 0x08
[359] Fix | Delete
/* placeholder:
[360] Fix | Delete
#define DRM_MSM_GEM_SVM_NEW 0x09
[361] Fix | Delete
*/
[362] Fix | Delete
#define DRM_MSM_SUBMITQUEUE_NEW 0x0A
[363] Fix | Delete
#define DRM_MSM_SUBMITQUEUE_CLOSE 0x0B
[364] Fix | Delete
#define DRM_MSM_SUBMITQUEUE_QUERY 0x0C
[365] Fix | Delete
[366] Fix | Delete
#define DRM_IOCTL_MSM_GET_PARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_MSM_GET_PARAM, struct drm_msm_param)
[367] Fix | Delete
#define DRM_IOCTL_MSM_SET_PARAM DRM_IOW (DRM_COMMAND_BASE + DRM_MSM_SET_PARAM, struct drm_msm_param)
[368] Fix | Delete
#define DRM_IOCTL_MSM_GEM_NEW DRM_IOWR(DRM_COMMAND_BASE + DRM_MSM_GEM_NEW, struct drm_msm_gem_new)
[369] Fix | Delete
#define DRM_IOCTL_MSM_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_MSM_GEM_INFO, struct drm_msm_gem_info)
[370] Fix | Delete
#define DRM_IOCTL_MSM_GEM_CPU_PREP DRM_IOW (DRM_COMMAND_BASE + DRM_MSM_GEM_CPU_PREP, struct drm_msm_gem_cpu_prep)
[371] Fix | Delete
#define DRM_IOCTL_MSM_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_MSM_GEM_CPU_FINI, struct drm_msm_gem_cpu_fini)
[372] Fix | Delete
#define DRM_IOCTL_MSM_GEM_SUBMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_MSM_GEM_SUBMIT, struct drm_msm_gem_submit)
[373] Fix | Delete
#define DRM_IOCTL_MSM_WAIT_FENCE DRM_IOW (DRM_COMMAND_BASE + DRM_MSM_WAIT_FENCE, struct drm_msm_wait_fence)
[374] Fix | Delete
#define DRM_IOCTL_MSM_GEM_MADVISE DRM_IOWR(DRM_COMMAND_BASE + DRM_MSM_GEM_MADVISE, struct drm_msm_gem_madvise)
[375] Fix | Delete
#define DRM_IOCTL_MSM_SUBMITQUEUE_NEW DRM_IOWR(DRM_COMMAND_BASE + DRM_MSM_SUBMITQUEUE_NEW, struct drm_msm_submitqueue)
[376] Fix | Delete
#define DRM_IOCTL_MSM_SUBMITQUEUE_CLOSE DRM_IOW (DRM_COMMAND_BASE + DRM_MSM_SUBMITQUEUE_CLOSE, __u32)
[377] Fix | Delete
#define DRM_IOCTL_MSM_SUBMITQUEUE_QUERY DRM_IOW (DRM_COMMAND_BASE + DRM_MSM_SUBMITQUEUE_QUERY, struct drm_msm_submitqueue_query)
[378] Fix | Delete
[379] Fix | Delete
#if defined(__cplusplus)
[380] Fix | Delete
}
[381] Fix | Delete
#endif
[382] Fix | Delete
[383] Fix | Delete
#endif /* __MSM_DRM_H__ */
[384] Fix | Delete
[385] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function