| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 142 | 3 # Test for configuring cache modes of arbitrary nodes (requires O_DIRECT) 43 # We test all cache modes anyway, but O_DIRECT needs to be supported 51 if ! test -t 0; then 57 ) | $QEMU -nographic -monitor stdio -nodefaults "$@" 70 _make_test_img -b "$TEST_IMG.base" $size -F $IMGFMT 73 echo === Simple test for all cache modes === 76 run_qemu -drive file="$TEST_IMG",cache=none 77 run_qemu -drive file="$TEST_IMG",cache=directsync 78 run_qemu -drive file="$TEST_IMG",cache=writeback 79 run_qemu -drive file="$TEST_IMG",cache=writethrough [all …]
|
| H A D | 186.out | 6 Testing: -device floppy 7 QEMU X.Y.Z monitor - type 'help' for more information 8 (qemu) info block 9 /machine/peripheral-anon/device[1]: [not inserted] 10 Attached to: /machine/peripheral-anon/device[N] 14 Testing: -device floppy,id=qdev_id 15 QEMU X.Y.Z monitor - type 'help' for more information 16 (qemu) info block 22 Testing: -device ide-cd 23 QEMU X.Y.Z monitor - type 'help' for more information [all …]
|
| H A D | 026.out.nocache | 11 Event: l1_update; errno: 5; imm: off; once: on; write -b 17 qemu-io: Failed to flush the L2 table cache: Input/output error 18 qemu-io: Failed to flush the refcount block cache: Input/output error 23 Event: l1_update; errno: 5; imm: off; once: off; write -b 24 qemu-io: Failed to flush the L2 table cache: Input/output error 25 qemu-io: Failed to flush the refcount block cache: Input/output error 35 Event: l1_update; errno: 28; imm: off; once: on; write -b 41 qemu-io: Failed to flush the L2 table cache: No space left on device 42 qemu-io: Failed to flush the refcount block cache: No space left on device 47 Event: l1_update; errno: 28; imm: off; once: off; write -b [all …]
|
| H A D | 026.out | 11 Event: l1_update; errno: 5; imm: off; once: on; write -b 17 qemu-io: Failed to flush the L2 table cache: Input/output error 18 qemu-io: Failed to flush the refcount block cache: Input/output error 23 Event: l1_update; errno: 5; imm: off; once: off; write -b 24 qemu-io: Failed to flush the L2 table cache: Input/output error 25 qemu-io: Failed to flush the refcount block cache: Input/output error 35 Event: l1_update; errno: 28; imm: off; once: on; write -b 41 qemu-io: Failed to flush the L2 table cache: No space left on device 42 qemu-io: Failed to flush the refcount block cache: No space left on device 47 Event: l1_update; errno: 28; imm: off; once: off; write -b [all …]
|
| H A D | 142.out | 6 === Simple test for all cache modes === 8 Testing: -drive file=TEST_DIR/t.qcow2,cache=none 9 QEMU X.Y.Z monitor - type 'help' for more information 12 Testing: -drive file=TEST_DIR/t.qcow2,cache=directsync 13 QEMU X.Y.Z monitor - type 'help' for more information 16 Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback 17 QEMU X.Y.Z monitor - type 'help' for more information 20 Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough 21 QEMU X.Y.Z monitor - type 'help' for more information 24 Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe [all …]
|
| H A D | 051.out | 7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '… 10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format… 13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form… 16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma… 22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= 23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn… [all …]
|
| H A D | 307.out | 5 {"execute": "nbd-server-start", "arguments": {"addr": {"data": {"path": "SOCK_DIR/PID-socket"}, "ty… 7 {"execute": "query-block-exports", "arguments": {}} 10 === Create a read-only NBD export === 11 {"execute": "block-export-add", "arguments": {"id": "export0", "node-name": "fmt", "type": "nbd"}} 13 {"execute": "query-block-exports", "arguments": {}} 14 {"return": [{"id": "export0", "node-name": "fmt", "shutting-down": false, "type": "nbd"}]} 18 flags: 0x158f ( readonly flush fua df multi cache block-status-payload ) 19 min block: XXX 20 opt block: XXX 21 max block: XXX [all …]
|
| H A D | 051.pc.out | 7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '… 10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format… 13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form… 16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma… 22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= 23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn… [all …]
|
| H A D | 157 | 4 # Test command line configuration of block devices with qdev 43 _require_devices virtio-blk 48 if ! test -t 0; then 54 ) | $QEMU -nodefaults -nographic -monitor stdio -serial none "$@" 70 if [ -n "$IMGKEYSECRET" ]; then 72 SYSEMU_EXTRA_ARGS="-object $SECRET_ARG" 88 for cache in "writeback" "writethrough"; do 89 for wce in "" ",write-cache=auto" ",write-cache=on" ",write-cache=off"; do 90 echo "Testing: cache='$cache' wce='$wce'" 91 echo "info block" \ [all …]
|
| /openbmc/u-boot/drivers/block/ |
| H A D | Kconfig | 2 bool "Support block devices" 6 Enable support for block devices, such as SCSI, MMC and USB 7 flash sticks. These provide a block-level interface which permits 8 reading, writing and (in some cases) erasing blocks. Block 10 be partitioned into several areas, called 'partitions' in U-Boot. 14 bool "Enable Legacy Block Device" 16 Some devices require block support whether or not DM is enabled 19 bool "Support block devices in SPL" 23 Enable support for block devices, such as SCSI, MMC and USB 24 flash sticks. These provide a block-level interface which permits [all …]
|
| /openbmc/qemu/tests/qemu-iotests/tests/ |
| H A D | block-status-cache | 4 # Test cases for the block-status cache. 36 def setUp(self) -> None: 37 """Just create an empty image with a read-only NBD server on it""" 38 qemu_img_create('-f', iotests.imgfmt, test_img, str(image_size)) 40 # Pass --allocation-depth to enable the qemu:allocation-depth context, 41 # which we are going to query to provoke a block-status inquiry with 43 assert qemu_nbd(f'--socket={nbd_sock}', 44 f'--format={iotests.imgfmt}', 45 '--persistent', 46 '--allocation-depth', [all …]
|
| /openbmc/u-boot/arch/x86/lib/ |
| H A D | mrccache.c | 1 // SPDX-License-Identifier: GPL-2.0 21 struct mrc_data_container *cache) in next_mrc_block() argument 24 u32 mrc_size = sizeof(*cache) + cache->data_size; in next_mrc_block() 25 u8 *region_ptr = (u8 *)cache; in next_mrc_block() 27 if (mrc_size & (MRC_DATA_ALIGN - 1UL)) { in next_mrc_block() 28 mrc_size &= ~(MRC_DATA_ALIGN - 1UL); in next_mrc_block() 37 static int is_mrc_cache(struct mrc_data_container *cache) in is_mrc_cache() argument 39 return cache && (cache->signature == MRC_DATA_SIGNATURE); in is_mrc_cache() 44 struct mrc_data_container *cache, *next; in mrccache_find_current() local 48 base_addr = entry->base + entry->offset; in mrccache_find_current() [all …]
|
| /openbmc/qemu/contrib/plugins/ |
| H A D | cache.c | 5 * See the COPYING file in the top-level directory. 12 #include <qemu-plugin.h> 37 * A CacheSet is a set of cache blocks. A memory block that maps to a set can be 38 * put in any of the blocks inside the set. The number of block per set is 41 * Each block contains the stored tag and a valid bit. Since this is not 43 * whether a block is in the cache or not by searching for its tag. 45 * In order to search for memory data in the cache, the set identifier and tag 49 * An address is logically divided into three portions: The block offset, 52 * The set number is used to identify the set in which the block may exist. 81 } Cache; typedef [all …]
|
| /openbmc/u-boot/fs/reiserfs/ |
| H A D | reiserfs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README 5 * GRUB -- GRand Unified Bootloader 8 * (C) Copyright 2003 - 2004 51 return -1; in substring() 66 printf ("%-10s %4hd %6d %6d %9d %24.24s", in sd_print_item() 73 printf ("%-10s %4d %6d %6d %9d %24.24s", in sd_print_item() 80 journal_read (int block, int len, char *buffer) in journal_read() argument 82 return reiserfs_devread ((INFO->journal_block + block) << INFO->blocksize_shift, in journal_read() 86 /* Read a block from ReiserFS file system, taking the journal into [all …]
|
| H A D | reiserfs_private.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README 5 * GRUB -- GRand Unified Bootloader 8 * (C) Copyright 2003 - 2004 31 /* This is the new super block of a journaling reiserfs system */ 36 __u32 s_root_block; /* root block number */ 37 __u32 s_journal_block; /* journal block number */ 45 __u16 s_blocksize; /* block size */ 51 __u16 s_bmap_nr; /* amount of bitmap blocks needed to address each block of file system */ 57 #define sb_root_block(sbp) (__le32_to_cpu((sbp)->s_root_block)) [all …]
|
| /openbmc/u-boot/board/ge/common/ |
| H A D | vpd_reader.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 12 * product data block. 14 * cache: structure used by process block to store VPD information 15 * process_block: callback called for each VPD data block 17 * Returns Non-zero on error. Negative numbers encode errno. 19 int read_vpd(struct vpd_cache *cache,
|
| /openbmc/entity-manager/src/fru_device/ |
| H A D | fru_reader.hpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright 2022 Equinix, Inc. 33 // return value semantics), but is not subject to SMBus block size 42 // indexed by block number (byte number / block size) 43 using Cache = std::map<uint32_t, CacheBlock>; typedef in FRUReader 46 Cache cache; member in FRUReader
|
| /openbmc/qemu/target/sparc/ |
| H A D | asi.h | 31 /* VAC Cache flushing on sun4c and sun4 */ 36 /* SPARCstation-5: only 6 bits are decoded. */ 51 #define ASI_M_TXTC_TAG 0x0C /* Instruction Cache Tag; rw, ss */ 52 #define ASI_M_TXTC_DATA 0x0D /* Instruction Cache Data; rw, ss */ 53 #define ASI_M_DATAC_TAG 0x0E /* Data Cache Tag; rw, ss */ 54 #define ASI_M_DATAC_DATA 0x0F /* Data Cache Data; rw, ss */ 56 /* The following cache flushing ASIs work only with the 'sta' 62 #define ASI_M_FLUSH_PAGE 0x10 /* Flush I&D Cache Line (page); wo, ss */ 63 #define ASI_M_FLUSH_SEG 0x11 /* Flush I&D Cache Line (seg); wo, ss */ 64 #define ASI_M_FLUSH_REGION 0x12 /* Flush I&D Cache Line (region); wo, ss */ [all …]
|
| /openbmc/qemu/system/ |
| H A D | physmem.c | 21 #include "exec/page-vary.h" 31 #include "accel/tcg/cpu-ops.h" 36 #include "exec/page-protection.h" 38 #include "exec/translation-block.h" 39 #include "hw/qdev-core.h" 40 #include "hw/qdev-properties.h" 47 #include "qemu/config-file.h" 48 #include "qemu/error-report.h" 49 #include "qemu/qemu-print.h" 58 #include "system/xen-mapcache.h" [all …]
|
| /openbmc/u-boot/fs/yaffs2/ |
| H A D | yaffs_guts.c | 2 * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. 4 * Copyright (C) 2002-2011 Aleph One Ltd. 53 chunk = (u32) (addr >> dev->chunk_shift); in yaffs_addr_to_chunk() 55 if (dev->chunk_div == 1) { in yaffs_addr_to_chunk() 57 offset = (u32) (addr & dev->chunk_mask); in yaffs_addr_to_chunk() 59 /* Non power-of-2 case */ in yaffs_addr_to_chunk() 63 chunk /= dev->chunk_div; in yaffs_addr_to_chunk() 65 chunk_base = ((loff_t) chunk) * dev->data_bytes_per_chunk; in yaffs_addr_to_chunk() 66 offset = (u32) (addr - chunk_base); in yaffs_addr_to_chunk() 128 memset(dev->temp_buffer, 0, sizeof(dev->temp_buffer)); in yaffs_init_tmp_buffers() [all …]
|
| /openbmc/qemu/migration/ |
| H A D | ram.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2011-2015 Red Hat Inc 34 #include "qemu/main-loop.h" 38 #include "migration-stats.h" 41 #include "qemu-file.h" 42 #include "postcopy-ram.h" 44 #include "qemu/error-report.h" 46 #include "qapi/qapi-types-migration.h" 47 #include "qapi/qapi-events-migration.h" 48 #include "qapi/qapi-commands-migration.h" [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools/ |
| H A D | 0002-f2fs_io-Define-_FILE_OFFSET_BITS-64.patch | 3 Date: Wed, 21 Dec 2022 18:23:03 -0800 11 Upstream-Status: Submitted [https://lore.kernel.org/linux-f2fs-devel/20221222022830.976309-2-raj.kh… 12 Signed-off-by: Khem Raj <raj.khem@gmail.com> 13 --- 14 lib/libf2fs_io.c | 4 +++- 15 tools/f2fs_io/f2fs_io.c | 4 ++-- 16 2 files changed, 5 insertions(+), 3 deletions(-) 18 --- a/lib/libf2fs_io.c 20 @@ -11,7 +11,9 @@ 24 -#define _LARGEFILE64_SOURCE [all …]
|
| /openbmc/u-boot/arch/arc/include/asm/ |
| H A D | arcregs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. All rights reserved. 9 #include <asm/cache.h> 13 * ARC architecture has additional address space - auxiliary registers. 21 * describe version of the HW block in question. Moreover if decoded version 22 * is 0 this means given HW block is absent - this is especially useful because 23 * we may safely read BRC regardless HW block existence while an attempt to 24 * access any other AUX regs associated with this HW block lead to imediate 27 * I.e. before using any cofigurable HW block it's required to make sure it 39 /* Instruction cache related auxiliary registers */ [all …]
|
| /openbmc/u-boot/include/ |
| H A D | blk.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * (C) Copyright 2000-2004 78 unsigned long blksz; /* block size */ 111 #define BLOCK_CNT(size, blk_desc) (PAD_COUNT(size, blk_desc->blksz)) 113 (PAD_SIZE(size, blk_desc->blksz)) 117 * blkcache_read() - attempt to read a set of blocks from cache 119 * @param iftype - IF_TYPE_x for type of device 120 * @param dev - device index of particular type 121 * @param start - starting block number 122 * @param blkcnt - number of blocks to read [all …]
|
| /openbmc/qemu/docs/devel/ |
| H A D | zoned-storage.rst | 2 zoned-storage 5 Zoned Block Devices (ZBDs) divide the LBA space into block regions called zones 10 https://zonedstorage.io/docs/introduction/zoned-storage 12 1. Block layer APIs for zoned storage 13 ------------------------------------- 14 QEMU block layer supports three zoned storage models: 15 - BLK_Z_HM: The host-managed zoned model only allows sequential writes access 16 to zones. It supports ZBD-specific I/O commands that can be used by a host to 18 - BLK_Z_HA: The host-aware zoned model allows random write operations in 19 zones, making it backward compatible with regular block devices. [all …]
|