History

Backmerge tag 'v4.16-rc7' into drm-next

Linux 4.16-rc7 This was requested by Daniel, and things were getting a bit hard to reconcile, most of the conflicts were trivial though.

Dave Airlie committed 8 years ago

Commit 2b4f44e2 parents 33d009c 3eb2ce81554 files · +17357 −10527Browse files

Showing the changes to include/uapi (13 of 1554 files). Show all

Unified · Split

13 files
  1. include/uapi/asm-generic/siginfo.h +2 −2
  2. include/uapi/drm/virtgpu_drm.h +1 −0
  3. include/uapi/linux/blktrace_api.h +1 −1
  4. include/uapi/linux/dvb/dmx.h +35 −0
  5. include/uapi/linux/if_ether.h +6 −1
  6. include/uapi/linux/kvm.h +2 −0
  7. include/uapi/linux/libc-compat.h +0 −6
  8. include/uapi/linux/lirc.h +0 −1
  9. include/uapi/linux/psp-sev.h +1 −1
  10. include/uapi/linux/ptrace.h +2 −2
  11. include/uapi/linux/usb/audio.h +2 −2
  12. include/uapi/misc/ocxl.h +17 −0
  13. include/uapi/rdma/rdma_user_ioctl.h +2 −2
include/uapi/asm-generic/siginfo.h+2−2
@@ -102,13 +102,13 @@ typedef struct siginfo { · 101 unmodified lines
102102 short _addr_lsb; /* LSB of the reported address */
103103 /* used when si_code=SEGV_BNDERR */
104104 struct {
105− short _dummy_bnd;
105+ void *_dummy_bnd;
106106 void __user *_lower;
107107 void __user *_upper;
108108 } _addr_bnd;
109109 /* used when si_code=SEGV_PKUERR */
110110 struct {
111− short _dummy_pkey;
111+ void *_dummy_pkey;
112112 __u32 _pkey;
113113 } _addr_pkey;
114114 };
include/uapi/drm/virtgpu_drm.h+1−0
@@ -63,6 +63,7 @@ struct drm_virtgpu_execbuffer { · 62 unmodified lines
6363 };
6464
6565 #define VIRTGPU_PARAM_3D_FEATURES 1 /* do we have 3D features in the hw */
66+#define VIRTGPU_PARAM_CAPSET_QUERY_FIX 2 /* do we have the capset fix */
6667
6768 struct drm_virtgpu_getparam {
6869 __u64 param;
include/uapi/linux/blktrace_api.h+1−1
@@ -131,7 +131,7 @@ enum { · 130 unmodified lines
131131 #define BLKTRACE_BDEV_SIZE 32
132132
133133 /*
134− * User setup structure passed with BLKTRACESTART
134+ * User setup structure passed with BLKTRACESETUP
135135 */
136136 struct blk_user_trace_setup {
137137 char name[BLKTRACE_BDEV_SIZE]; /* output */
include/uapi/linux/dvb/dmx.h+35−0
@@ -211,6 +211,32 @@ struct dmx_stc { · 210 unmodified lines
211211 __u64 stc;
212212 };
213213
214+/**
215+ * enum dmx_buffer_flags - DMX memory-mapped buffer flags
216+ *
217+ * @DMX_BUFFER_FLAG_HAD_CRC32_DISCARD:
218+ * Indicates that the Kernel discarded one or more frames due to wrong
219+ * CRC32 checksum.
220+ * @DMX_BUFFER_FLAG_TEI:
221+ * Indicates that the Kernel has detected a Transport Error indicator
222+ * (TEI) on a filtered pid.
223+ * @DMX_BUFFER_PKT_COUNTER_MISMATCH:
224+ * Indicates that the Kernel has detected a packet counter mismatch
225+ * on a filtered pid.
226+ * @DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED:
227+ * Indicates that the Kernel has detected one or more frame discontinuity.
228+ * @DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR:
229+ * Received at least one packet with a frame discontinuity indicator.
230+ */
231+
232+enum dmx_buffer_flags {
233+ DMX_BUFFER_FLAG_HAD_CRC32_DISCARD = 1 << 0,
234+ DMX_BUFFER_FLAG_TEI = 1 << 1,
235+ DMX_BUFFER_PKT_COUNTER_MISMATCH = 1 << 2,
236+ DMX_BUFFER_FLAG_DISCONTINUITY_DETECTED = 1 << 3,
237+ DMX_BUFFER_FLAG_DISCONTINUITY_INDICATOR = 1 << 4,
238+};
239+
214240 /**
215241 * struct dmx_buffer - dmx buffer info
216242 *
@@ -220,15 +246,24 @@ struct dmx_stc { · 3 unmodified lines
220246 * offset from the start of the device memory for this plane,
221247 * (or a "cookie" that should be passed to mmap() as offset)
222248 * @length: size in bytes of the buffer
249+ * @flags: bit array of buffer flags as defined by &enum dmx_buffer_flags.
250+ * Filled only at &DMX_DQBUF.
251+ * @count: monotonic counter for filled buffers. Helps to identify
252+ * data stream loses. Filled only at &DMX_DQBUF.
223253 *
224254 * Contains data exchanged by application and driver using one of the streaming
225255 * I/O methods.
256+ *
257+ * Please notice that, for &DMX_QBUF, only @index should be filled.
258+ * On &DMX_DQBUF calls, all fields will be filled by the Kernel.
226259 */
227260 struct dmx_buffer {
228261 __u32 index;
229262 __u32 bytesused;
230263 __u32 offset;
231264 __u32 length;
265+ __u32 flags;
266+ __u32 count;
232267 };
233268
234269 /**
include/uapi/linux/if_ether.h+6−1
@@ -23,7 +23,6 @@ · 22 unmodified lines
2323 #define _UAPI_LINUX_IF_ETHER_H
2424
2525 #include <linux/types.h>
26−#include <linux/libc-compat.h>
2726
2827 /*
2928 * IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
@@ -31,6 +30,7 @@ · 1 unmodified line
3130 */
3231
3332 #define ETH_ALEN 6 /* Octets in one ethernet addr */
33+#define ETH_TLEN 2 /* Octets in ethernet type field */
3434 #define ETH_HLEN 14 /* Total octets in header. */
3535 #define ETH_ZLEN 60 /* Min. octets in frame sans FCS */
3636 #define ETH_DATA_LEN 1500 /* Max. octets in payload */
@@ -151,6 +151,11 @@ · 114 unmodified lines
151151 * This is an Ethernet frame header.
152152 */
153153
154+/* allow libcs like musl to deactivate this, glibc does not implement this. */
155+#ifndef __UAPI_DEF_ETHHDR
156+#define __UAPI_DEF_ETHHDR 1
157+#endif
158+
154159 #if __UAPI_DEF_ETHHDR
155160 struct ethhdr {
156161 unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
include/uapi/linux/kvm.h+2−0
@@ -761,6 +761,7 @@ struct kvm_ppc_resize_hpt { · 760 unmodified lines
761761 #define KVM_TRACE_PAUSE __KVM_DEPRECATED_MAIN_0x07
762762 #define KVM_TRACE_DISABLE __KVM_DEPRECATED_MAIN_0x08
763763 #define KVM_GET_EMULATED_CPUID _IOWR(KVMIO, 0x09, struct kvm_cpuid2)
764+#define KVM_GET_MSR_FEATURE_INDEX_LIST _IOWR(KVMIO, 0x0a, struct kvm_msr_list)
764765
765766 /*
766767 * Extension capability list.
@@ -934,6 +935,7 @@ struct kvm_ppc_resize_hpt { · 167 unmodified lines
934935 #define KVM_CAP_S390_AIS_MIGRATION 150
935936 #define KVM_CAP_PPC_GET_CPU_CHAR 151
936937 #define KVM_CAP_S390_BPB 152
938+#define KVM_CAP_GET_MSR_FEATURES 153
937939
938940 #ifdef KVM_CAP_IRQ_ROUTING
939941
include/uapi/linux/libc-compat.h+0−6
@@ -264,10 +264,4 @@ · 263 unmodified lines
264264
265265 #endif /* __GLIBC__ */
266266
267−/* Definitions for if_ether.h */
268−/* allow libcs like musl to deactivate this, glibc does not implement this. */
269−#ifndef __UAPI_DEF_ETHHDR
270−#define __UAPI_DEF_ETHHDR 1
271−#endif
272−
273267 #endif /* _UAPI_LIBC_COMPAT_H */
include/uapi/linux/lirc.h+0−1
@@ -54,7 +54,6 @@ · 53 unmodified lines
5454 #define LIRC_CAN_SEND_RAW LIRC_MODE2SEND(LIRC_MODE_RAW)
5555 #define LIRC_CAN_SEND_PULSE LIRC_MODE2SEND(LIRC_MODE_PULSE)
5656 #define LIRC_CAN_SEND_MODE2 LIRC_MODE2SEND(LIRC_MODE_MODE2)
57−#define LIRC_CAN_SEND_SCANCODE LIRC_MODE2SEND(LIRC_MODE_SCANCODE)
5857 #define LIRC_CAN_SEND_LIRCCODE LIRC_MODE2SEND(LIRC_MODE_LIRCCODE)
5958
6059 #define LIRC_CAN_SEND_MASK 0x0000003f
include/uapi/linux/psp-sev.h+1−1
@@ -42,7 +42,7 @@ typedef enum { · 41 unmodified lines
4242 SEV_RET_INVALID_PLATFORM_STATE,
4343 SEV_RET_INVALID_GUEST_STATE,
4444 SEV_RET_INAVLID_CONFIG,
45− SEV_RET_INVALID_len,
45+ SEV_RET_INVALID_LEN,
4646 SEV_RET_ALREADY_OWNED,
4747 SEV_RET_INVALID_CERTIFICATE,
4848 SEV_RET_POLICY_FAILURE,
include/uapi/linux/ptrace.h+2−2
@@ -69,8 +69,8 @@ struct ptrace_peeksiginfo_args { · 68 unmodified lines
6969 #define PTRACE_SECCOMP_GET_METADATA 0x420d
7070
7171 struct seccomp_metadata {
72− unsigned long filter_off; /* Input: which filter */
73− unsigned int flags; /* Output: filter's flags */
72+ __u64 filter_off; /* Input: which filter */
73+ __u64 flags; /* Output: filter's flags */
7474 };
7575
7676 /* Read signals from a shared (process wide) queue */
include/uapi/linux/usb/audio.h+2−2
@@ -370,7 +370,7 @@ static inline __u8 uac_processing_unit_bControlSize(struct uac_processing_unit_d · 369 unmodified lines
370370 {
371371 return (protocol == UAC_VERSION_1) ?
372372 desc->baSourceID[desc->bNrInPins + 4] :
373− desc->baSourceID[desc->bNrInPins + 6];
373+ 2; /* in UAC2, this value is constant */
374374 }
375375
376376 static inline __u8 *uac_processing_unit_bmControls(struct uac_processing_unit_descriptor *desc,
@@ -378,7 +378,7 @@ static inline __u8 *uac_processing_unit_bmControls(struct uac_processing_unit_de · 1 unmodified line
378378 {
379379 return (protocol == UAC_VERSION_1) ?
380380 &desc->baSourceID[desc->bNrInPins + 5] :
381− &desc->baSourceID[desc->bNrInPins + 7];
381+ &desc->baSourceID[desc->bNrInPins + 6];
382382 }
383383
384384 static inline __u8 uac_processing_unit_iProcessing(struct uac_processing_unit_descriptor *desc,
include/uapi/misc/ocxl.h+17−0
@@ -32,6 +32,22 @@ struct ocxl_ioctl_attach { · 31 unmodified lines
3232 __u64 reserved3;
3333 };
3434
35+struct ocxl_ioctl_metadata {
36+ __u16 version; // struct version, always backwards compatible
37+
38+ // Version 0 fields
39+ __u8 afu_version_major;
40+ __u8 afu_version_minor;
41+ __u32 pasid; // PASID assigned to the current context
42+
43+ __u64 pp_mmio_size; // Per PASID MMIO size
44+ __u64 global_mmio_size;
45+
46+ // End version 0 fields
47+
48+ __u64 reserved[13]; // Total of 16*u64
49+};
50+
3551 struct ocxl_ioctl_irq_fd {
3652 __u64 irq_offset;
3753 __s32 eventfd;
@@ -45,5 +61,6 @@ struct ocxl_ioctl_irq_fd { · 7 unmodified lines
4561 #define OCXL_IOCTL_IRQ_ALLOC _IOR(OCXL_MAGIC, 0x11, __u64)
4662 #define OCXL_IOCTL_IRQ_FREE _IOW(OCXL_MAGIC, 0x12, __u64)
4763 #define OCXL_IOCTL_IRQ_SET_FD _IOW(OCXL_MAGIC, 0x13, struct ocxl_ioctl_irq_fd)
64+#define OCXL_IOCTL_GET_METADATA _IOR(OCXL_MAGIC, 0x14, struct ocxl_ioctl_metadata)
4865
4966 #endif /* _UAPI_MISC_OCXL_H */
include/uapi/rdma/rdma_user_ioctl.h+2−2
@@ -65,7 +65,7 @@ struct ib_uverbs_attr { · 64 unmodified lines
6565 __u16 len; /* only for pointers */
6666 __u16 flags; /* combination of UVERBS_ATTR_F_XXXX */
6767 __u16 reserved;
68− __u64 data; /* ptr to command, inline data or idr/fd */
68+ __aligned_u64 data; /* ptr to command, inline data or idr/fd */
6969 };
7070
7171 struct ib_uverbs_ioctl_hdr {
@@ -73,7 +73,7 @@ struct ib_uverbs_ioctl_hdr { · 1 unmodified line
7373 __u16 object_id;
7474 __u16 method_id;
7575 __u16 num_attrs;
76− __u64 reserved;
76+ __aligned_u64 reserved;
7777 struct ib_uverbs_attr attrs[0];
7878 };
7979

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t