/linux/arch/alpha/include/asm/ |
H A D | mce.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * This is the logout header that should be common to all platforms 13 unsigned int retry : 1; /* retry flag */ member 14 unsigned int proc_offset; /* processor-specific offset */ 15 unsigned int sys_offset; /* system-specific offset */ 20 /* Machine Check Frame for uncorrectable errors (Large format) 21 * --- This is used to log uncorrectable errors such as 22 * double bit ECC errors. 23 * --- These errors are detected by both processor and systems. 26 unsigned long shadow[8]; /* Shadow reg. 8-14, 25 */ [all …]
|
/linux/Documentation/admin-guide/ |
H A D | xfs.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 on the SGI IRIX platform. It is completely multi-threaded, can 15 for further details. This implementation is on-disk compatible 25 Sets the buffered I/O end-of-file preallocation size when 28 through to 1GiB, inclusive, in power-of-2 increments. 30 The default behaviour is for dynamic end-of-file 40 on-disk. When the new form is used for the first time when 42 attributes) the on-disk superblock feature bit field will be 45 The default behaviour is determined by the on-disk feature 116 Set the number of in-memory log buffers. Valid numbers [all …]
|
H A D | bcache.rst | 11 This is the git repository of bcache-tools: 12 https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/ 17 It's designed around the performance characteristics of SSDs - it only allocates 20 designed to avoid random writes at all costs; it fills up an erase block 25 great lengths to protect your data - it reliably handles unclean shutdown. (It 29 Writeback caching can use most of the cache for buffering writes - writing 36 average is above the cutoff it will skip all IO from that task - instead of 41 from disk or invalidating cache entries. For unrecoverable errors (meta data 43 in the cache it first disables writeback caching and waits for all dirty data 47 You'll need bcache util from the bcache-tools repository. Both the cache device [all …]
|
/linux/Documentation/locking/ |
H A D | ww-mutex-design.rst | 2 Wound/Wait Deadlock-Proof Mutex Design 5 Please read mutex-design.rst first, as it applies to wait/wound mutexes too. 7 Motivation for WW-Mutexes 8 ------------------------- 18 the same order in all contexts. That is directly under control of 30 from a global counter. In case of deadlock while locking all the buffers 33 younger task) unlocks all of the buffers that it has already locked, and then 37 and the deadlock handling approach is called Wait-Die. The name is based on 41 and dies. Hence Wait-Die. 42 There is also another algorithm called Wound-Wait: [all …]
|
/linux/drivers/usb/ |
H A D | usb-skeleton.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Skeleton driver - 2.2 5 * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com) 7 * This driver is based on the 2.6.3 version of drivers/usb/usb-skeleton.c 37 #define MAX_TRANSFER (PAGE_SIZE - 512) 46 /* Structure to hold all of our device specific stuff */ 59 int errors; /* the last request tanked */ member 61 spinlock_t err_lock; /* lock for errors */ 76 usb_free_urb(dev->bulk_in_urb); in skel_delete() 77 usb_put_intf(dev->interface); in skel_delete() [all …]
|
/linux/drivers/ata/ |
H A D | libata-eh.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * libata-eh.c - libata error handling 8 * as Documentation/driver-api/libata.rst 11 * http://www.sata-io.org/ 59 /* Waiting in ->prereset can never be reliable. It's 76 * hardreset. All others are hardreset if available. In most cases 97 15000, /* Some drives are slow to read log pages when waking-up */ 125 * On the retry after a command timed out, the next timeout value from 129 * ehc->cmd_timeout_idx keeps track of which timeout to use per 172 ehi->desc_len += vscnprintf(ehi->desc + ehi->desc_len, in __ata_ehi_pushv_desc() [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | firmware.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright(c) 2015 - 2017 Intel Corporation. 103 #define AUGMENT_SIZE (sizeof(struct augmented_firmware_file) - \ 122 * The mutex protects fw_state, fw_err, and all of the firmware_details 217 * Read a single 64-bit value from 8051 data memory. 224 * ignored - i.e. the hardware will always do aligned 8-byte reads as if 227 * Return 0 on success, -ENXIO on a read error (timeout). 250 return -ENXIO; in __read_8051_data() 262 * Read 8051 data starting at addr, for len bytes. Will read in 8-byte chunks. 263 * Return 0 on success, -errno on error. [all …]
|
/linux/Documentation/fault-injection/ |
H A D | fault-injection.rst | 5 See also drivers/md/md-faulty.c and "every_nth" module option for scsi_debug. 9 -------------------------------------- 11 - failslab 15 - fail_page_alloc 19 - fail_usercopy 23 - fail_futex 25 injects futex deadlock and uaddr fault errors. 27 - fail_sunrpc 31 - fail_make_request 33 injects disk IO errors on devices permitted by setting [all …]
|
/linux/drivers/net/wireless/virtual/ |
H A D | mac80211_hwsim.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 6 * Copyright (C) 2020, 2022-2024 Intel Corporation 13 * enum hwsim_tx_control_flags - flags to describe transmission info/status 33 * entities such as wmediumd to receive and process all broadcasted 43 * broadcasting the frames to all listening mac80211_hwsim radio 51 * enum hwsim_commands - supported hwsim commands 53 * @HWSIM_CMD_UNSPEC: unspecified command to catch errors 55 * @HWSIM_CMD_REGISTER: request to register and received all broadcasted 68 * returns the radio ID (>= 0) or negative on errors, if successful [all …]
|
/linux/Documentation/hwmon/ |
H A D | w83l785ts.rst | 6 * Winbond W83L785TS-S 14 http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W83L785TS-S.pdf 20 ----------- 22 The W83L785TS-S is a digital temperature sensor. It senses the 30 All temperature values are given in degrees Celsius. Resolution 38 ------------ 41 and cause read errors. Or maybe the W83L785TS-S chip is simply unreliable, 42 we don't really know. The driver will retry a given number of times
|
/linux/drivers/gpu/drm/amd/include/ivsrcid/gfx/ |
H A D | irqsrcs_gfx_12_0_0.h | 1 /* SPDX-License-Identifier: MIT */ 13 * all copies or substantial portions of the Software. 27 #define GFX_12_0_0__SRCID__UTCL2_FAULT 0 // UTCL2 has encountered a fault or retry scenario 35 #define GFX_12_0_0__SRCID__SDMA_IB_PREEMPT 53 // 0x35 sdma mid - command buffer preempt interrupt 40 #define GFX_12_0_0__SRCID__SDMA_PAGE_TIMEOUT 58 // 0x3A Page retry timeout after UTCL2 return na… 53 #define GFX_12_0_0__SRCID__CP_EOP_INTERRUPT 181 // 0xB5 End-of-Pipe Interrupt 62 #define GFX_12_0_0__SRCID__CP_PREEMPT_ACK 194 // 0xC2 Preemption Ack-wledge 72 #define GFX_12_0_0__SRCID__SQ_INTERRUPT_ID 239 // 0xEF SQ Interrupt (ttrace wrap, errors)
|
H A D | irqsrcs_gfx_11_0_0.h | 12 * all copies or substantial portions of the Software. 27 …ID__UTCL2_FAULT 0 // UTCL2 has encountered a fault or retry scenario 37 #define GFX_11_0_0__SRCID__SDMA_IB_PREEMPT 53 // 0x35 sdma mid - command … 42 #define GFX_11_0_0__SRCID__SDMA_PAGE_TIMEOUT 58 // 0x3A Page retry timeout… 57 #define GFX_11_0_0__SRCID__CP_EOP_INTERRUPT 181 // 0xB5 End-of-Pipe Interrupt 66 #define GFX_11_0_0__SRCID__CP_PREEMPT_ACK 194 // 0xC2 Preemption Ack-wledge 77 #define GFX_11_0_0__SRCID__SQ_INTERRUPT_ID 239 // 0xEF SQ Interrupt (ttrace wrap, errors)
|
/linux/arch/mips/math-emu/ |
H A D | dsemul.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * struct emuframe - The 'emulation' frame structure 32 * - Actually emulating all instructions isn't feasible. We would need to 33 * be able to handle instructions from all revisions of the MIPS ISA, 34 * all ASEs & all vendor instruction set extensions. This would be a 40 * - We must execute the instruction within user context. If we were to 45 * - We used to place the frame on the users stack, but this requires 47 * per-process page is now used instead. 49 * - The instruction in @emul may be something entirely invalid for a 57 * - The user may generate a fake struct emuframe if they wish, invoking [all …]
|
/linux/Documentation/driver-api/media/ |
H A D | cec-core.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 ---------------- 33 --------------------- 53 will be stored in adap->priv and can be used by the adapter ops. 95 Implementing the Low-Level CEC Adapter 96 -------------------------------------- 98 The following low-level adapter operations have to be implemented in 103 .. code-block:: none 107 /* Low-level callbacks */ 123 /* High-level callback */ [all …]
|
/linux/arch/x86/kernel/cpu/mce/ |
H A D | apei.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * On some machine, corrected memory errors are reported via APEI 7 * Check. These corrected memory errors can be reported to user space 35 if (!(mem_err->validation_bits & CPER_MEM_VALID_PA)) in apei_mce_report_mem_error() 39 * Even if the ->validation_bits are set for address mask, in apei_mce_report_mem_error() 43 if (mem_err->validation_bits & CPER_MEM_VALID_PA_MASK) in apei_mce_report_mem_error() 44 lsb = find_first_bit((void *)&mem_err->physical_addr_mask, PAGE_SHIFT); in apei_mce_report_mem_error() 50 m->bank = -1; in apei_mce_report_mem_error() 52 m->status = MCI_STATUS_VAL | MCI_STATUS_EN | MCI_STATUS_ADDRV | MCI_STATUS_MISCV | 0x9f; in apei_mce_report_mem_error() 53 m->misc = (MCI_MISC_ADDR_PHYS << 6) | lsb; in apei_mce_report_mem_error() [all …]
|
/linux/tools/testing/selftests/net/packetdrill/ |
H A D | defaults.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 ip tcp_metrics flush all > /dev/null 2>&1 10 sysctl -q net.ipv4.tcp_rmem="4096 540000 $((15*1024*1024))" 11 sysctl -q net.ipv4.tcp_wmem="4096 $((256*1024)) 4194304" 14 sysctl -q net.ipv4.tcp_timestamps=1 16 # TCP SYN(ACK) retry thresholds 17 sysctl -q net.ipv4.tcp_syn_retries=5 18 sysctl -q net.ipv4.tcp_synack_retries=5 20 # TCP Forward RTO-Recovery, RFC 5682. 21 sysctl -q net.ipv4.tcp_frto=2 [all …]
|
/linux/drivers/hwmon/ |
H A D | w83l785ts.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * w83l785ts.c - Part of lm_sensors, Linux kernel modules for hardware 5 * Copyright (C) 2003-2009 Jean Delvare <jdelvare@suse.de> 7 * Inspired from the lm83 driver. The W83L785TS-S is a sensor chip made 11 * http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W83L785TS-S.pdf 27 #include <linux/hwmon-sysfs.h> 42 * The W83L785TS-S registers 56 * The W83L785TS-S uses signed 8-bit values. 73 * Driver data (common to all clients) 117 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp() [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_lib_test.c | 1 // SPDX-License-Identifier: GPL-2.0 79 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense() 82 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense() 88 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense() 94 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense() 102 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, in scsi_lib_test_multiple_sense() 135 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_any_sense() 165 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_host() 188 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_any_failure() 211 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_any_status() [all …]
|
/linux/drivers/net/ethernet/sun/ |
H A D | sunqe.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #define GLOB_MSIZE 0x0cUL /* Local-memory Size */ 45 /* The following registers are for per-qe channel information/status. */ 59 #define CREG_PIPG 0x34UL /* Inter-Frame Gap */ 74 #define CREG_STAT_CCOFLOW 0x00100000 /* TX Coll-counter Overflow */ 79 #define CREG_STAT_RCCOFLOW 0x00001000 /* RX Coll-counter Overflow */ 85 #define CREG_STAT_CECOFLOW 0x00000040 /* CRC Error-counter Overflow*/ 115 #define CREG_MMASK_ERETRY 0x04000000 /* Excess retry */ 121 #define CREG_MMASK_RXCOLL 0x00000400 /* RX Coll-Cntr overflow */ 129 /* Per-channel AMD 79C940 MACE registers. */ [all …]
|
/linux/drivers/hwmon/occ/ |
H A D | common.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 7 #include <linux/hwmon-sysfs.h> 16 * Same response format for all OCC versions. 111 int error; /* final transfer error after retry */ 113 unsigned int error_count; /* number of xfr errors observed */
|
/linux/arch/x86/kernel/cpu/sgx/ |
H A D | virt.c | 1 // SPDX-License-Identifier: GPL-2.0 40 WARN_ON(!mutex_is_locked(&vepc->lock)); in __sgx_vepc_fault() 43 index = vma->vm_pgoff + PFN_DOWN(addr - vma->vm_start); in __sgx_vepc_fault() 45 epc_page = xa_load(&vepc->page_array, index); in __sgx_vepc_fault() 53 ret = xa_err(xa_store(&vepc->page_array, index, epc_page, GFP_KERNEL)); in __sgx_vepc_fault() 61 ret = -EFAULT; in __sgx_vepc_fault() 68 xa_erase(&vepc->page_array, index); in __sgx_vepc_fault() 76 struct vm_area_struct *vma = vmf->vma; in sgx_vepc_fault() 77 struct sgx_vepc *vepc = vma->vm_private_data; in sgx_vepc_fault() 80 mutex_lock(&vepc->lock); in sgx_vepc_fault() [all …]
|
/linux/drivers/gpu/drm/amd/display/modules/hdcp/ |
H A D | hdcp.c | 12 * all copies or substantial portions of the Software. 31 struct mod_hdcp_trace *trace = &hdcp->connection.trace; in push_error_status() 33 if (trace->error_count < MAX_NUM_OF_ERROR_TRACE) { in push_error_status() 34 trace->errors[trace->error_count].status = status; in push_error_status() 35 trace->errors[trace->error_count].state_id = hdcp->state.id; in push_error_status() 36 trace->error_count++; in push_error_status() 41 hdcp->connection.hdcp1_retry_count++; in push_error_status() 42 if (hdcp->connection.hdcp1_retry_count == MAX_NUM_OF_ATTEMPTS) in push_error_status() 43 hdcp->connection.link.adjust.hdcp1.disable = 1; in push_error_status() 45 hdcp->connection.hdcp2_retry_count++; in push_error_status() [all …]
|
/linux/drivers/net/can/ |
H A D | sun4i_can.c | 2 * sun4i_can.c - CAN bus controller driver for Allwinner SUN4I&SUN7I based SoCs 6 * All rights reserved. 11 * Copyright (C) 2002-2007 Volkswagen Group Electronic Research 206 * struct sun4ican_quirks - Differences between SoC variants. 241 spin_lock_irqsave(&priv->cmdreg_lock, flags); in sun4i_can_write_cmdreg() 242 writel(val, priv->base + SUN4I_REG_CMD_ADDR); in sun4i_can_write_cmdreg() 243 spin_unlock_irqrestore(&priv->cmdreg_lock, flags); in sun4i_can_write_cmdreg() 249 int retry = SUN4I_MODE_MAX_RETRIES; in set_normal_mode() local 253 mod_reg_val = readl(priv->base + SUN4I_REG_MSEL_ADDR); in set_normal_mode() 255 writel(mod_reg_val, priv->base + SUN4I_REG_MSEL_ADDR); in set_normal_mode() [all …]
|
/linux/drivers/scsi/libfc/ |
H A D | fc_fcp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2007 Intel Corporation. All rights reserved. 4 * Copyright(c) 2008 Red Hat, Inc. All rights reserved. 7 * Maintained at www.Open-FCoE.org 41 #define FC_SRB_DISCONTIG (1 << 4) /* non-sequential data recvd */ 54 * struct fc_fcp_internal - FCP layer internal data 71 #define fc_get_scsi_internal(x) ((struct fc_fcp_internal *)(x)->scsi_priv) 124 * fc_fcp_pkt_alloc() - Allocate a fcp_pkt 136 fsp = mempool_alloc(si->scsi_pkt_pool, gfp); in fc_fcp_pkt_alloc() 139 fsp->lp = lport; in fc_fcp_pkt_alloc() [all …]
|
/linux/Documentation/arch/sparc/oradax/ |
H A D | dax-hv-api.txt | 3 Publication date 2017-09-25 08:21 4 Copyright © 2008, 2015 Oracle and/or its affiliates. All rights reserved. 5 Extracted via "pdftotext -f 547 -l 572 -layout sun4v_20170925.pdf" 14 …These APIs may only be provided by certain platforms, and may not be available to all virtual mach… 16 live-migration and other system management activities. 20 …high speed processoring of database-centric operations. The coprocessors may support one or more of 28 …e Completion Area and, unless execution order is specifically restricted through the use of serial- 34 …to implement a software timeout to account for certain RAS errors which may result in lost CCBs. I… 45 …device node in the guest MD (Section 8.24.17, “Database Analytics Accelerators (DAX) virtual-device 51 36.1.1.1. "ORCL,sun4v-dax" Device Compatibility [all …]
|