/linux/drivers/gpu/drm/xe/tests/ |
H A D | xe_sriov_pf_service_kunit.c | 1 // SPDX-License-Identifier: GPL-2.0 AND MIT 3 * Copyright © 2024-2025 Intel Corporation 21 test->priv = &fake; in pf_service_test_init() 24 xe = test->priv; in pf_service_test_init() 30 * - all supported platforms VF/PF ABI versions must be defined in pf_service_test_init() 31 * - base version can't be newer than latest in pf_service_test_init() 33 KUNIT_ASSERT_NE(test, 0, xe->sriov.pf.service.version.base.major); in pf_service_test_init() 34 KUNIT_ASSERT_NE(test, 0, xe->sriov.pf.service.version.latest.major); in pf_service_test_init() 35 KUNIT_ASSERT_LE(test, xe->sriov.pf.service.version.base.major, in pf_service_test_init() 36 xe->sriov.pf.service.version.latest.major); in pf_service_test_init() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_sriov_pf_service.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2023-2025 Intel Corporation 17 * xe_sriov_pf_service_init - Early initialization of the SR-IOV PF service. 20 * Performs early initialization of the SR-IOV PF service. 32 xe->sriov.pf.service.version.base.major = GUC_RELAY_VERSION_BASE_MAJOR; in xe_sriov_pf_service_init() 33 xe->sriov.pf.service.version.base.minor = GUC_RELAY_VERSION_BASE_MINOR; in xe_sriov_pf_service_init() 35 /* latest version is same for all platforms */ in xe_sriov_pf_service_init() 36 xe->sriov.pf.service.version.latest.major = GUC_RELAY_VERSION_LATEST_MAJOR; in xe_sriov_pf_service_init() 37 xe->sriov.pf.service.version.latest.minor = GUC_RELAY_VERSION_LATEST_MINOR; in xe_sriov_pf_service_init() 43 u32 *major, u32 *minor) in pf_negotiate_version() argument [all …]
|
H A D | xe_uc_fw.c | 1 // SPDX-License-Identifier: MIT 7 #include <linux/fault-inject.h> 28 * List of required GuC and HuC binaries per-platform. They must be ordered 32 * Documentation/driver-api/firmware/firmware-usage-guidelines.rst. There is a 35 * driver (under force-probe), use the mmp_ver(): the firmware autoselect logic 37 * "mpp version", i.e. major.minor.patch. mmp_ver() should only be used for 41 * ever contains the major version (GuC) or no version at all (HuC). 44 * The major version needs to match a major version supported by the driver (if 45 * any). The minor version is also checked and a notice emitted to the log if 46 * the version found is smaller than the version wanted. This is done only for [all …]
|
H A D | xe_gt_sriov_vf.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2023-2024 Intel Corporation 47 return ret > 0 ? -EPROTO : ret; in guc_action_vf_reset() 54 struct xe_guc *guc = >->uc.guc; in vf_reset_guc_state() 59 if (!err || err != -ETIMEDOUT) in vf_reset_guc_state() 61 } while (--retry); in vf_reset_guc_state() 69 * xe_gt_sriov_vf_reset - Reset GuC VF internal state. 79 return -ENODEV; in xe_gt_sriov_vf_reset() 93 FIELD_PREP(VF2GUC_MATCH_VERSION_REQUEST_MSG_1_BRANCH, wanted->branch) | in guc_action_match_version() 94 FIELD_PREP(VF2GUC_MATCH_VERSION_REQUEST_MSG_1_MAJOR, wanted->major) | in guc_action_match_version() [all …]
|
H A D | xe_sriov_pf_service_types.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Copyright © 2023-2025 Intel Corporation 12 * struct xe_sriov_pf_service_version - VF/PF ABI Version. 13 * @major: the major version of the VF/PF ABI 14 * @minor: the minor version of the VF/PF ABI 19 u16 major; member 24 * struct xe_sriov_pf_service - Data used by the PF service. 25 * @version: information about VF/PF ABI versions for current platform. 26 * @version.base: lowest VF/PF ABI version that could be negotiated with VF. 27 * @version.latest: latest VF/PF ABI version supported by the PF driver. [all …]
|
H A D | xe_gt_sriov_pf_service_types.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Copyright © 2023-2024 Intel Corporation 14 * struct xe_gt_sriov_pf_service_version - VF/PF ABI Version. 15 * @major: the major version of the VF/PF ABI 16 * @minor: the minor version of the VF/PF ABI 21 u16 major; member 26 * struct xe_gt_sriov_pf_service_runtime_regs - Runtime data shared with VFs. 38 * struct xe_gt_sriov_pf_service - Data used by the PF service. 39 * @version: information about VF/PF ABI versions for current platform. 40 * @version.base: lowest VF/PF ABI version that could be negotiated with VF. [all …]
|
H A D | xe_sriov_vf_types.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Copyright © 2023-2025 Intel Corporation 13 * struct xe_sriov_vf_relay_version - PF ABI version details. 16 /** @major: major version. */ 17 u16 major; member 18 /** @minor: minor version. */ 23 * struct xe_device_vf - Xe Virtual Function related data 29 /** @pf_version: negotiated VF/PF ABI version. */ 36 /** @migration.gt_flags: Per-GT request flags for VF migration recovery */
|
H A D | xe_uc_fw_types.h | 1 /* SPDX-License-Identifier: MIT */ 14 * +------------+---------------------------------------------------+ 18 * +------------+- / | \ -+ 19 * | | DISABLED <--/ | \--> NOT_SUPPORTED | 22 * +------------+- / | \ -+ 23 * | | MISSING <--/ | \--> ERROR | 26 * +------------+- | \ -+ 27 * | | | \--> INIT FAIL | 29 * | | /------> LOADABLE <----<-----------\ | 30 * +------------+- \ / \ \ \ -+ [all …]
|
/linux/drivers/net/can/usb/etas_es58x/ |
H A D | es58x_devlink.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Driver for ETAS GmbH ES58X USB CAN(-FD) Bus Interfaces. 21 * es58x_parse_sw_version() - Extract boot loader or firmware version. 25 * to parse the firmware version or to "BL" to parse the 26 * bootloader version. 29 * version number all prefixed by a magic string and concatenated with 35 * Parse @prod_info and store the version number in 39 * Return: zero on success, -EINVAL if @prefix contains an invalid 40 * value and -EBADMSG if @prod_info could not be parsed. 45 struct es58x_sw_version *version; in es58x_parse_sw_version() local [all …]
|
/linux/Documentation/driver-api/firmware/ |
H A D | firmware-usage-guidelines.rst | 10 Drivers that use firmware from linux-firmware should follow the rules in 16 firmware ABI version changes. It is recommended that firmware files be 17 versioned with at least a major/minor version. It is suggested that 18 the firmware files in linux-firmware be named with some device 19 specific name, and just the major version. The firmware version should 21 firmware file name, in order to let the driver detact any non-ABI 22 fixes/changes. The firmware files in linux-firmware should be 23 overwritten with the newest compatible major version. Newer major 24 version firmware shall remain compatible with all kernels that load 25 that major number. [all …]
|
/linux/include/uapi/sound/sof/ |
H A D | abi.h | 1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 11 * MAJOR.MINOR.PATCH version number. See https://semver.org/ 13 * Rules for incrementing or changing version :- 15 * 1) Increment MAJOR version if you make incompatible API changes. MINOR and 18 * 2) Increment MINOR version if you add backwards compatible features or 21 * 3) Increment PATCH version if you add backwards compatible bug fixes. 29 /* SOF ABI version major, minor and patch numbers */ 34 /* SOF ABI version number. Format within 32bit word is MMmmmppp */ 42 #define SOF_ABI_VER(major, minor, patch) \ argument 43 (((major) << SOF_ABI_MAJOR_SHIFT) | \ [all …]
|
/linux/Documentation/devicetree/bindings/arm/firmware/ |
H A D | tlm,trusted-foundations.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/arm/firmware/tlm,trusted-foundations.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Stephen Warren <swarren@nvidia.com> 18 const: trusted-foundations 21 const: tlm,trusted-foundations 23 tlm,version-major: 25 description: major version number of Trusted Foundations firmware 27 tlm,version-minor: [all …]
|
/linux/Documentation/ABI/stable/ |
H A D | sysfs-hypervisor-xen | 4 Contact: xen-devel@lists.xenproject.org 13 Contact: xen-devel@lists.xenproject.org 22 Contact: xen-devel@lists.xenproject.org 31 Contact: xen-devel@lists.xenproject.org 34 is in the format: <class>-<major>.<minor>-<arch> 38 <class>: "xen" -- x86: paravirtualized, arm: standard 39 "hvm" -- x86 only: fully virtualized 40 <major>: major guest interface version 41 <minor>: minor guest interface version 53 Contact: xen-devel@lists.xenproject.org [all …]
|
/linux/Documentation/networking/devlink/ |
H A D | i40e.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 .. list-table:: devlink info versions implemented 18 * - Name 19 - Type 20 - Example 21 - Description 22 * - ``board.id`` 23 - fixed 24 - K15190-000 25 - The Product Board Assembly (PBA) identifier of the board. [all …]
|
H A D | ixgbe.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 Any of the versions dealing with the security presented by ``devlink-info`` 19 .. list-table:: devlink info versions implemented 22 * - Name 23 - Type 24 - Example 25 - Description 26 * - ``board.id`` 27 - fixed 28 - H49289-000 [all …]
|
/linux/fs/nfs/ |
H A D | nfstrace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 59 __field(u64, version) 65 __entry->dev = inode->i_sb->s_dev; 66 __entry->fileid = nfsi->fileid; 67 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 68 __entry->version = inode_peek_iversion_raw(inode); 69 __entry->cache_validity = nfsi->cache_validity; 73 "fileid=%02x:%02x:%llu fhandle=0x%08x version=%llu cache_validity=0x%lx (%s)", 74 MAJOR(__entry->dev), MINOR(__entry->dev), 75 (unsigned long long)__entry->fileid, [all …]
|
/linux/drivers/hid/intel-ish-hid/ishtp/ |
H A D | loader.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 #include "ishtp-dev.h" 21 (IPC_PAYLOAD_SIZE - sizeof(struct ishtp_msg_hdr)) 26 #define LOADER_CMD_XFER_QUERY 0 /* SW -> FW */ 27 #define LOADER_CMD_XFER_FRAGMENT 1 /* SW -> FW */ 28 #define LOADER_CMD_START 2 /* SW -> FW */ 34 * union loader_msg_header - ISHTP firmware loader message header 40 * @val32: entire header as a 32-bit value 54 * struct loader_xfer_query - ISHTP firmware loader transfer query packet 64 * struct loader_version - ISHTP firmware loader version [all …]
|
/linux/drivers/staging/greybus/Documentation/firmware/ |
H A D | firmware.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * Sample code to test firmware-management protocol 19 #define FW_DEV_DEFAULT "/dev/gb-fw-mgmt-0" 37 …printf("\nUsage: ./firmware <gb-fw-mgmt-X (default: gb-fw-mgmt-0)> <interface: 0, backend: 1 (defa… in usage() 44 /* Get Interface Firmware Version */ in update_intf_firmware() 45 printf("Get Interface Firmware Version\n"); in update_intf_firmware() 49 printf("Failed to get interface firmware version: %s (%d)\n", in update_intf_firmware() 51 return -1; in update_intf_firmware() 54 printf("Interface Firmware tag (%s), major (%d), minor (%d)\n", in update_intf_firmware() 55 intf_fw_info.firmware_tag, intf_fw_info.major, in update_intf_firmware() [all …]
|
/linux/drivers/staging/media/atomisp/pci/ |
H A D | css_trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 /* one tracer item: major, minor and counter. The counter value can be used for GP data */ 19 u8 major; member 27 /* trace header: holds the version and the topology of the tracer. */ 30 u8 version; member 62 Trace version history: 63 1: initial version, hdr = descr, command & ptr. 64 2: added ISP + 24-bit fields. 149 #define TRACE_SP0_DATA_SIZE (TRACE_SP0_SIZE - TRACE_SP0_HEADER_SIZE) 156 #define TRACE_SP1_DATA_SIZE (TRACE_SP1_SIZE - TRACE_SP1_HEADER_SIZE) [all …]
|
/linux/security/keys/encrypted-keys/ |
H A D | ecryptfs_format.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * TORSEC group -- https://security.polito.it 21 return auth_tok->token.password.session_key_encryption_key; in ecryptfs_get_auth_tok_key() 28 * Source code taken from the software 'ecryptfs-utils' version 83. 31 void ecryptfs_get_versions(int *major, int *minor, int *file_version) in ecryptfs_get_versions() argument 33 *major = ECRYPTFS_VERSION_MAJOR; in ecryptfs_get_versions() 41 * ecryptfs_fill_auth_tok - fill the ecryptfs_auth_tok structure 45 * shipped with the software 'ecryptfs-utils' version 83. 51 int major, minor; in ecryptfs_fill_auth_tok() local 53 ecryptfs_get_versions(&major, &minor, NULL); in ecryptfs_fill_auth_tok() [all …]
|
/linux/drivers/char/tpm/ |
H A D | tpm_crb_ffa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Interface Over FF-A (DEN0138). 37 /* version encoding */ 50 * as defined in FF-A specification: 52 * -for 32-bit: 0x8400006F or 0x84000070 53 * -for 64-bit: 0xC400006F or 0xC4000070 56 * w3-w7: Implementation defined, free to be used below 60 * Returns the version of the interface that is available 64 * w5-w7: Reserved (MBZ) 69 * w5: TPM service interface version [all …]
|
/linux/arch/sparc/kernel/ |
H A D | viohs.c | 1 // SPDX-License-Identifier: GPL-2.0 22 err = -EINVAL; in vio_ldc_send() 23 while (limit-- > 0) { in vio_ldc_send() 24 err = ldc_write(vio->lp, data, len); in vio_ldc_send() 25 if (!err || (err != -EAGAIN)) in vio_ldc_send() 37 tag->sid = vio_send_sid(vio); in send_ctrl() 43 tag->type = type; in init_tag() 44 tag->stype = stype; in init_tag() 45 tag->stype_env = stype_env; in init_tag() 48 static int send_version(struct vio_driver_state *vio, u16 major, u16 minor) in send_version() argument [all …]
|
/linux/drivers/gpu/drm/amd/include/ |
H A D | discovery.h | 77 uint16_t version; /* Table Version */ member 83 uint16_t padding[1]; /* version <= 3 */ 84 struct { /* version == 4 */ 97 uint8_t major; /* HCID Major */ member 115 uint8_t major; /* Hardware ID.major version */ member 116 uint8_t minor; /* Hardware ID.minor version */ 117 uint8_t revision; /* Hardware ID.revision version */ 120 uint8_t sub_revision : 4; /* HCID Sub-Revision */ 122 uint8_t sub_revision : 4; /* HCID Sub-Revision */ 132 uint8_t major; /* Hardware ID.major version */ member [all …]
|
/linux/sound/isa/sb/ |
H A D | sb_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Uros Bizjak <uros@kss-loka.si> 34 dev_dbg(chip->card->dev, "command 0x%x\n", val); in snd_sbdsp_command() 36 for (i = BUSY_LOOPS; i; i--) in snd_sbdsp_command() 41 dev_dbg(chip->card->dev, "%s [0x%lx]: timeout (0x%x)\n", __func__, chip->port, val); in snd_sbdsp_command() 49 for (i = BUSY_LOOPS; i; i--) { in snd_sbdsp_get_byte() 53 dev_dbg(chip->card->dev, "get_byte 0x%x\n", val); in snd_sbdsp_get_byte() 58 dev_dbg(chip->card->dev, "%s [0x%lx]: timeout\n", __func__, chip->port); in snd_sbdsp_get_byte() 59 return -ENODEV; in snd_sbdsp_get_byte() 70 for (i = BUSY_LOOPS; i; i--) in snd_sbdsp_reset() [all …]
|
/linux/include/linux/mfd/ |
H A D | cgbc.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 * struct cgbc_version - Board Controller device version structure 14 * @major: Board Controller major revision 19 unsigned char major; member 24 * struct cgbc_device_data - Internal representation of the Board Controller device 29 * @cgbc_version: Board Controller version structure 37 struct cgbc_version version; member
|