/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 94 Set the number of in-memory log buffers. Valid numbers 95 range from 2-8 inclusive. 107 by the user. This turns on co-allocation of data of similar 114 Set the size of each in-memory log buffer. The size may be [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 170 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/fs/xfs/ |
H A D | xfs_buf.h | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * All Rights Reserved. 25 #define XFS_BUF_DADDR_NULL ((xfs_daddr_t) (-1LL)) 29 #define XBF_READ_AHEAD (1u << 2) /* asynchronous read-ahead */ 31 #define XBF_DONE (1u << 5) /* all pages in the buffer uptodate */ 83 * The xfs_buftarg contains 2 notions of "sector size" - 89 * The first is specified at mkfs time, and is stored on-disk in the 119 /* built-in cache, if we're not using the perag one */ 151 * first cacheline holds all the fields needed for an uncontended cache [all …]
|
/linux/fs/nfs/ |
H A D | nfs4file.c | 1 // SPDX-License-Identifier: GPL-2.0 35 unsigned openflags = filp->f_flags; in nfs4_file_open() 41 * opens in ->lookup() or ->create(). in nfs4_file_open() 45 * -EOPENSTALE. The VFS will retry the lookup/create/open. in nfs4_file_open() 70 filemap_write_and_wait(inode->i_mapping); in nfs4_file_open() 73 inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, NULL); in nfs4_file_open() 79 case -ENOENT: in nfs4_file_open() 80 case -ESTALE: in nfs4_file_open() 81 case -EISDIR: in nfs4_file_open() 82 case -ENOTDIR: in nfs4_file_open() [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 - [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/fs/nfs/flexfilelayout/ |
H A D | flexfilelayout.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014, Primary Data, Inc. All rights reserved. 59 pnfs_init_ds_commit_info(&ffl->commit_info); in ff_layout_alloc_layout_hdr() 60 INIT_LIST_HEAD(&ffl->error_list); in ff_layout_alloc_layout_hdr() 61 INIT_LIST_HEAD(&ffl->mirrors); in ff_layout_alloc_layout_hdr() 62 ffl->last_report_time = ktime_get(); in ff_layout_alloc_layout_hdr() 63 ffl->commit_info.ops = &ff_layout_commit_ops; in ff_layout_alloc_layout_hdr() 64 return &ffl->generic_hdr; in ff_layout_alloc_layout_hdr() 75 list_for_each_entry_safe(err, n, &ffl->error_list, list) { in ff_layout_free_layout_hdr() 76 list_del(&err->list); in ff_layout_free_layout_hdr() [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/fs/afs/ |
H A D | write.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. 8 #include <linux/backing-dev.h> 24 vnode->fid.vid, vnode->fid.vnode, len, start); in afs_pages_written_back() 32 * writes on the vnode. wreq->netfs_priv2 will contain the last writeback key 34 * wreq->netfs_priv will be set to the key itself or NULL. 38 struct afs_wb_key *wbk, *old = wreq->netfs_priv2; in afs_get_writeback_key() 39 struct afs_vnode *vnode = AFS_FS_I(wreq->inode); in afs_get_writeback_key() 41 key_put(wreq->netfs_priv); in afs_get_writeback_key() 42 wreq->netfs_priv = NULL; in afs_get_writeback_key() [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/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 …]
|