Skip to content

Commit d525f73

Browse files
Qiangcyhuth
authored andcommitted
Update linux headers to v6.0-rc4
commit 7e18e42e4b280c85b76967a9106a13ca61c16179 Signed-off-by: Chenyi Qiang <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Message-Id: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent 28d01b1 commit d525f73

25 files changed

+538
-90
lines changed

include/standard-headers/asm-x86/bootparam.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
#define SETUP_EFI 4
1111
#define SETUP_APPLE_PROPERTIES 5
1212
#define SETUP_JAILHOUSE 6
13+
#define SETUP_CC_BLOB 7
14+
#define SETUP_IMA 8
1315
#define SETUP_RNG_SEED 9
16+
#define SETUP_ENUM_MAX SETUP_RNG_SEED
1417

1518
#define SETUP_INDIRECT (1<<31)
16-
17-
/* SETUP_INDIRECT | max(SETUP_*) */
18-
#define SETUP_TYPE_MAX (SETUP_INDIRECT | SETUP_JAILHOUSE)
19+
#define SETUP_TYPE_MAX (SETUP_ENUM_MAX | SETUP_INDIRECT)
1920

2021
/* ram_size flags */
2122
#define RAMDISK_IMAGE_START_MASK 0x07FF

include/standard-headers/drm/drm_fourcc.h

+72-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ extern "C" {
558558
*
559559
* The main surface is Y-tiled and is at plane index 0 whereas CCS is linear
560560
* and at index 1. The clear color is stored at index 2, and the pitch should
561-
* be ignored. The clear color structure is 256 bits. The first 128 bits
561+
* be 64 bytes aligned. The clear color structure is 256 bits. The first 128 bits
562562
* represents Raw Clear Color Red, Green, Blue and Alpha color each represented
563563
* by 32 bits. The raw clear color is consumed by the 3d engine and generates
564564
* the converted clear color of size 64 bits. The first 32 bits store the Lower
@@ -571,6 +571,53 @@ extern "C" {
571571
*/
572572
#define I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC fourcc_mod_code(INTEL, 8)
573573

574+
/*
575+
* Intel Tile 4 layout
576+
*
577+
* This is a tiled layout using 4KB tiles in a row-major layout. It has the same
578+
* shape as Tile Y at two granularities: 4KB (128B x 32) and 64B (16B x 4). It
579+
* only differs from Tile Y at the 256B granularity in between. At this
580+
* granularity, Tile Y has a shape of 16B x 32 rows, but this tiling has a shape
581+
* of 64B x 8 rows.
582+
*/
583+
#define I915_FORMAT_MOD_4_TILED fourcc_mod_code(INTEL, 9)
584+
585+
/*
586+
* Intel color control surfaces (CCS) for DG2 render compression.
587+
*
588+
* The main surface is Tile 4 and at plane index 0. The CCS data is stored
589+
* outside of the GEM object in a reserved memory area dedicated for the
590+
* storage of the CCS data for all RC/RC_CC/MC compressible GEM objects. The
591+
* main surface pitch is required to be a multiple of four Tile 4 widths.
592+
*/
593+
#define I915_FORMAT_MOD_4_TILED_DG2_RC_CCS fourcc_mod_code(INTEL, 10)
594+
595+
/*
596+
* Intel color control surfaces (CCS) for DG2 media compression.
597+
*
598+
* The main surface is Tile 4 and at plane index 0. For semi-planar formats
599+
* like NV12, the Y and UV planes are Tile 4 and are located at plane indices
600+
* 0 and 1, respectively. The CCS for all planes are stored outside of the
601+
* GEM object in a reserved memory area dedicated for the storage of the
602+
* CCS data for all RC/RC_CC/MC compressible GEM objects. The main surface
603+
* pitch is required to be a multiple of four Tile 4 widths.
604+
*/
605+
#define I915_FORMAT_MOD_4_TILED_DG2_MC_CCS fourcc_mod_code(INTEL, 11)
606+
607+
/*
608+
* Intel Color Control Surface with Clear Color (CCS) for DG2 render compression.
609+
*
610+
* The main surface is Tile 4 and at plane index 0. The CCS data is stored
611+
* outside of the GEM object in a reserved memory area dedicated for the
612+
* storage of the CCS data for all RC/RC_CC/MC compressible GEM objects. The
613+
* main surface pitch is required to be a multiple of four Tile 4 widths. The
614+
* clear color is stored at plane index 1 and the pitch should be 64 bytes
615+
* aligned. The format of the 256 bits of clear color data matches the one used
616+
* for the I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC modifier, see its description
617+
* for details.
618+
*/
619+
#define I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC fourcc_mod_code(INTEL, 12)
620+
574621
/*
575622
* Tiled, NV12MT, grouped in 64 (pixels) x 32 (lines) -sized macroblocks
576623
*
@@ -608,6 +655,28 @@ extern "C" {
608655
*/
609656
#define DRM_FORMAT_MOD_QCOM_COMPRESSED fourcc_mod_code(QCOM, 1)
610657

658+
/*
659+
* Qualcomm Tiled Format
660+
*
661+
* Similar to DRM_FORMAT_MOD_QCOM_COMPRESSED but not compressed.
662+
* Implementation may be platform and base-format specific.
663+
*
664+
* Each macrotile consists of m x n (mostly 4 x 4) tiles.
665+
* Pixel data pitch/stride is aligned with macrotile width.
666+
* Pixel data height is aligned with macrotile height.
667+
* Entire pixel data buffer is aligned with 4k(bytes).
668+
*/
669+
#define DRM_FORMAT_MOD_QCOM_TILED3 fourcc_mod_code(QCOM, 3)
670+
671+
/*
672+
* Qualcomm Alternate Tiled Format
673+
*
674+
* Alternate tiled format typically only used within GMEM.
675+
* Implementation may be platform and base-format specific.
676+
*/
677+
#define DRM_FORMAT_MOD_QCOM_TILED2 fourcc_mod_code(QCOM, 2)
678+
679+
611680
/* Vivante framebuffer modifiers */
612681

613682
/*
@@ -1293,6 +1362,7 @@ drm_fourcc_canonicalize_nvidia_format_mod(uint64_t modifier)
12931362
#define AMD_FMT_MOD_TILE_VER_GFX9 1
12941363
#define AMD_FMT_MOD_TILE_VER_GFX10 2
12951364
#define AMD_FMT_MOD_TILE_VER_GFX10_RBPLUS 3
1365+
#define AMD_FMT_MOD_TILE_VER_GFX11 4
12961366

12971367
/*
12981368
* 64K_S is the same for GFX9/GFX10/GFX10_RBPLUS and hence has GFX9 as canonical
@@ -1308,6 +1378,7 @@ drm_fourcc_canonicalize_nvidia_format_mod(uint64_t modifier)
13081378
#define AMD_FMT_MOD_TILE_GFX9_64K_S_X 25
13091379
#define AMD_FMT_MOD_TILE_GFX9_64K_D_X 26
13101380
#define AMD_FMT_MOD_TILE_GFX9_64K_R_X 27
1381+
#define AMD_FMT_MOD_TILE_GFX11_256K_R_X 31
13111382

13121383
#define AMD_FMT_MOD_DCC_BLOCK_64B 0
13131384
#define AMD_FMT_MOD_DCC_BLOCK_128B 1

include/standard-headers/linux/ethtool.h

+15-14
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ struct ethtool_tunable {
257257
uint32_t id;
258258
uint32_t type_id;
259259
uint32_t len;
260-
void *data[0];
260+
void *data[];
261261
};
262262

263263
#define DOWNSHIFT_DEV_DEFAULT_COUNT 0xff
@@ -322,7 +322,7 @@ struct ethtool_regs {
322322
uint32_t cmd;
323323
uint32_t version;
324324
uint32_t len;
325-
uint8_t data[0];
325+
uint8_t data[];
326326
};
327327

328328
/**
@@ -348,7 +348,7 @@ struct ethtool_eeprom {
348348
uint32_t magic;
349349
uint32_t offset;
350350
uint32_t len;
351-
uint8_t data[0];
351+
uint8_t data[];
352352
};
353353

354354
/**
@@ -752,7 +752,7 @@ struct ethtool_gstrings {
752752
uint32_t cmd;
753753
uint32_t string_set;
754754
uint32_t len;
755-
uint8_t data[0];
755+
uint8_t data[];
756756
};
757757

758758
/**
@@ -777,7 +777,7 @@ struct ethtool_sset_info {
777777
uint32_t cmd;
778778
uint32_t reserved;
779779
uint64_t sset_mask;
780-
uint32_t data[0];
780+
uint32_t data[];
781781
};
782782

783783
/**
@@ -817,7 +817,7 @@ struct ethtool_test {
817817
uint32_t flags;
818818
uint32_t reserved;
819819
uint32_t len;
820-
uint64_t data[0];
820+
uint64_t data[];
821821
};
822822

823823
/**
@@ -834,7 +834,7 @@ struct ethtool_test {
834834
struct ethtool_stats {
835835
uint32_t cmd;
836836
uint32_t n_stats;
837-
uint64_t data[0];
837+
uint64_t data[];
838838
};
839839

840840
/**
@@ -851,7 +851,7 @@ struct ethtool_stats {
851851
struct ethtool_perm_addr {
852852
uint32_t cmd;
853853
uint32_t size;
854-
uint8_t data[0];
854+
uint8_t data[];
855855
};
856856

857857
/* boolean flags controlling per-interface behavior characteristics.
@@ -1160,7 +1160,7 @@ struct ethtool_rxnfc {
11601160
struct ethtool_rxfh_indir {
11611161
uint32_t cmd;
11621162
uint32_t size;
1163-
uint32_t ring_index[0];
1163+
uint32_t ring_index[];
11641164
};
11651165

11661166
/**
@@ -1201,7 +1201,7 @@ struct ethtool_rxfh {
12011201
uint8_t hfunc;
12021202
uint8_t rsvd8[3];
12031203
uint32_t rsvd32;
1204-
uint32_t rss_config[0];
1204+
uint32_t rss_config[];
12051205
};
12061206
#define ETH_RXFH_CONTEXT_ALLOC 0xffffffff
12071207
#define ETH_RXFH_INDIR_NO_CHANGE 0xffffffff
@@ -1286,7 +1286,7 @@ struct ethtool_dump {
12861286
uint32_t version;
12871287
uint32_t flag;
12881288
uint32_t len;
1289-
uint8_t data[0];
1289+
uint8_t data[];
12901290
};
12911291

12921292
#define ETH_FW_DUMP_DISABLE 0
@@ -1318,7 +1318,7 @@ struct ethtool_get_features_block {
13181318
struct ethtool_gfeatures {
13191319
uint32_t cmd;
13201320
uint32_t size;
1321-
struct ethtool_get_features_block features[0];
1321+
struct ethtool_get_features_block features[];
13221322
};
13231323

13241324
/**
@@ -1340,7 +1340,7 @@ struct ethtool_set_features_block {
13401340
struct ethtool_sfeatures {
13411341
uint32_t cmd;
13421342
uint32_t size;
1343-
struct ethtool_set_features_block features[0];
1343+
struct ethtool_set_features_block features[];
13441344
};
13451345

13461346
/**
@@ -1691,6 +1691,7 @@ enum ethtool_link_mode_bit_indices {
16911691
ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT = 89,
16921692
ETHTOOL_LINK_MODE_100baseFX_Half_BIT = 90,
16931693
ETHTOOL_LINK_MODE_100baseFX_Full_BIT = 91,
1694+
ETHTOOL_LINK_MODE_10baseT1L_Full_BIT = 92,
16941695
/* must be last entry */
16951696
__ETHTOOL_LINK_MODE_MASK_NBITS
16961697
};
@@ -2086,7 +2087,7 @@ struct ethtool_link_settings {
20862087
uint8_t master_slave_state;
20872088
uint8_t reserved1[1];
20882089
uint32_t reserved[7];
2089-
uint32_t link_mode_masks[0];
2090+
uint32_t link_mode_masks[];
20902091
/* layout of link_mode_masks fields:
20912092
* uint32_t map_supported[link_mode_masks_nwords];
20922093
* uint32_t map_advertising[link_mode_masks_nwords];

include/standard-headers/linux/input.h

+8-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,13 @@ struct input_id {
7575
* Note that input core does not clamp reported values to the
7676
* [minimum, maximum] limits, such task is left to userspace.
7777
*
78-
* The default resolution for main axes (ABS_X, ABS_Y, ABS_Z)
79-
* is reported in units per millimeter (units/mm), resolution
80-
* for rotational axes (ABS_RX, ABS_RY, ABS_RZ) is reported
81-
* in units per radian.
78+
* The default resolution for main axes (ABS_X, ABS_Y, ABS_Z,
79+
* ABS_MT_POSITION_X, ABS_MT_POSITION_Y) is reported in units
80+
* per millimeter (units/mm), resolution for rotational axes
81+
* (ABS_RX, ABS_RY, ABS_RZ) is reported in units per radian.
82+
* The resolution for the size axes (ABS_MT_TOUCH_MAJOR,
83+
* ABS_MT_TOUCH_MINOR, ABS_MT_WIDTH_MAJOR, ABS_MT_WIDTH_MINOR)
84+
* is reported in units per millimeter (units/mm).
8285
* When INPUT_PROP_ACCELEROMETER is set the resolution changes.
8386
* The main axes (ABS_X, ABS_Y, ABS_Z) are then reported in
8487
* units per g (units/g) and in units per degree per second
@@ -268,6 +271,7 @@ struct input_mask {
268271
#define BUS_RMI 0x1D
269272
#define BUS_CEC 0x1E
270273
#define BUS_INTEL_ISHTP 0x1F
274+
#define BUS_AMD_SFH 0x20
271275

272276
/*
273277
* MT_TOOL types

include/standard-headers/linux/pci_regs.h

+29-1
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@
616616
#define PCI_EXP_SLTCTL_PWR_OFF 0x0400 /* Power Off */
617617
#define PCI_EXP_SLTCTL_EIC 0x0800 /* Electromechanical Interlock Control */
618618
#define PCI_EXP_SLTCTL_DLLSCE 0x1000 /* Data Link Layer State Changed Enable */
619+
#define PCI_EXP_SLTCTL_ASPL_DISABLE 0x2000 /* Auto Slot Power Limit Disable */
619620
#define PCI_EXP_SLTCTL_IBPD_DISABLE 0x4000 /* In-band PD disable */
620621
#define PCI_EXP_SLTSTA 0x1a /* Slot Status */
621622
#define PCI_EXP_SLTSTA_ABP 0x0001 /* Attention Button Pressed */
@@ -736,7 +737,8 @@
736737
#define PCI_EXT_CAP_ID_DVSEC 0x23 /* Designated Vendor-Specific */
737738
#define PCI_EXT_CAP_ID_DLF 0x25 /* Data Link Feature */
738739
#define PCI_EXT_CAP_ID_PL_16GT 0x26 /* Physical Layer 16.0 GT/s */
739-
#define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_PL_16GT
740+
#define PCI_EXT_CAP_ID_DOE 0x2E /* Data Object Exchange */
741+
#define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_DOE
740742

741743
#define PCI_EXT_CAP_DSN_SIZEOF 12
742744
#define PCI_EXT_CAP_MCAST_ENDPOINT_SIZEOF 40
@@ -1102,4 +1104,30 @@
11021104
#define PCI_PL_16GT_LE_CTRL_USP_TX_PRESET_MASK 0x000000F0
11031105
#define PCI_PL_16GT_LE_CTRL_USP_TX_PRESET_SHIFT 4
11041106

1107+
/* Data Object Exchange */
1108+
#define PCI_DOE_CAP 0x04 /* DOE Capabilities Register */
1109+
#define PCI_DOE_CAP_INT_SUP 0x00000001 /* Interrupt Support */
1110+
#define PCI_DOE_CAP_INT_MSG_NUM 0x00000ffe /* Interrupt Message Number */
1111+
#define PCI_DOE_CTRL 0x08 /* DOE Control Register */
1112+
#define PCI_DOE_CTRL_ABORT 0x00000001 /* DOE Abort */
1113+
#define PCI_DOE_CTRL_INT_EN 0x00000002 /* DOE Interrupt Enable */
1114+
#define PCI_DOE_CTRL_GO 0x80000000 /* DOE Go */
1115+
#define PCI_DOE_STATUS 0x0c /* DOE Status Register */
1116+
#define PCI_DOE_STATUS_BUSY 0x00000001 /* DOE Busy */
1117+
#define PCI_DOE_STATUS_INT_STATUS 0x00000002 /* DOE Interrupt Status */
1118+
#define PCI_DOE_STATUS_ERROR 0x00000004 /* DOE Error */
1119+
#define PCI_DOE_STATUS_DATA_OBJECT_READY 0x80000000 /* Data Object Ready */
1120+
#define PCI_DOE_WRITE 0x10 /* DOE Write Data Mailbox Register */
1121+
#define PCI_DOE_READ 0x14 /* DOE Read Data Mailbox Register */
1122+
1123+
/* DOE Data Object - note not actually registers */
1124+
#define PCI_DOE_DATA_OBJECT_HEADER_1_VID 0x0000ffff
1125+
#define PCI_DOE_DATA_OBJECT_HEADER_1_TYPE 0x00ff0000
1126+
#define PCI_DOE_DATA_OBJECT_HEADER_2_LENGTH 0x0003ffff
1127+
1128+
#define PCI_DOE_DATA_OBJECT_DISC_REQ_3_INDEX 0x000000ff
1129+
#define PCI_DOE_DATA_OBJECT_DISC_RSP_3_VID 0x0000ffff
1130+
#define PCI_DOE_DATA_OBJECT_DISC_RSP_3_PROTOCOL 0x00ff0000
1131+
#define PCI_DOE_DATA_OBJECT_DISC_RSP_3_NEXT_INDEX 0xff000000
1132+
11051133
#endif /* LINUX_PCI_REGS_H */

include/standard-headers/linux/vhost_types.h

+14-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ struct vhost_msg {
8787

8888
struct vhost_msg_v2 {
8989
uint32_t type;
90-
uint32_t reserved;
90+
uint32_t asid;
9191
union {
9292
struct vhost_iotlb_msg iotlb;
9393
uint8_t padding[64];
@@ -107,7 +107,7 @@ struct vhost_memory_region {
107107
struct vhost_memory {
108108
uint32_t nregions;
109109
uint32_t padding;
110-
struct vhost_memory_region regions[0];
110+
struct vhost_memory_region regions[];
111111
};
112112

113113
/* VHOST_SCSI specific definitions */
@@ -135,7 +135,7 @@ struct vhost_scsi_target {
135135
struct vhost_vdpa_config {
136136
uint32_t off;
137137
uint32_t len;
138-
uint8_t buf[0];
138+
uint8_t buf[];
139139
};
140140

141141
/* vhost vdpa IOVA range
@@ -153,4 +153,15 @@ struct vhost_vdpa_iova_range {
153153
/* vhost-net should add virtio_net_hdr for RX, and strip for TX packets. */
154154
#define VHOST_NET_F_VIRTIO_NET_HDR 27
155155

156+
/* Use message type V2 */
157+
#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1
158+
/* IOTLB can accept batching hints */
159+
#define VHOST_BACKEND_F_IOTLB_BATCH 0x2
160+
/* IOTLB can accept address space identifier through V2 type of IOTLB
161+
* message
162+
*/
163+
#define VHOST_BACKEND_F_IOTLB_ASID 0x3
164+
/* Device can be suspended */
165+
#define VHOST_BACKEND_F_SUSPEND 0x4
166+
156167
#endif

include/standard-headers/linux/virtio_9p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct virtio_9p_config {
3838
/* length of the tag name */
3939
__virtio16 tag_len;
4040
/* non-NULL terminated tag name */
41-
uint8_t tag[0];
41+
uint8_t tag[];
4242
} QEMU_PACKED;
4343

4444
#endif /* _LINUX_VIRTIO_9P_H */

0 commit comments

Comments
 (0)