| /kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/ |
| D | dm-zoned.rst | 25 host-managed disk with 256 MB zones, dm-zoned memory usage per disk 26 instance is at most 4.5 MB and as little as 5 zones will be used 38 write accesses to the sequential zones of a zoned block device. 39 Conventional zones are used for caching as well as for storing internal 42 in zones with the same size as the zoned block device. These zones will be 43 placed in front of the zones from the zoned block device and will be handled 44 just like conventional zones. 46 The zones of the device(s) are separated into 2 types: 48 1) Metadata zones: these are conventional zones used to store metadata. 49 Metadata zones are not reported as useable capacity to the user. [all …]
|
| /kernel/linux/linux-6.6/Documentation/admin-guide/device-mapper/ |
| D | dm-zoned.rst | 25 host-managed disk with 256 MB zones, dm-zoned memory usage per disk 26 instance is at most 4.5 MB and as little as 5 zones will be used 38 write accesses to the sequential zones of a zoned block device. 39 Conventional zones are used for caching as well as for storing internal 42 in zones with the same size as the zoned block device. These zones will be 43 placed in front of the zones from the zoned block device and will be handled 44 just like conventional zones. 46 The zones of the device(s) are separated into 2 types: 48 1) Metadata zones: these are conventional zones used to store metadata. 49 Metadata zones are not reported as usable capacity to the user. [all …]
|
| /kernel/linux/linux-5.10/Documentation/filesystems/ |
| D | zonefs.rst | 14 write zones of the device must be written sequentially starting from the end 34 space that is divided into zones. A zone is a group of consecutive LBAs and all 35 zones are contiguous (there are no LBA gaps). Zones may have different types. 37 * Conventional zones: there are no access constraints to LBAs belonging to 38 conventional zones. Any read or write access can be executed, similarly to a 40 * Sequential zones: these zones accept random reads but must be written 44 cannot be overwritten. Sequential zones must first be erased using a special 60 Zonefs exposes the zones of a zoned block device as files. The files 61 representing zones are grouped by zone type, which are themselves represented 85 Files representing zones of the same type are grouped together under the same [all …]
|
| /kernel/linux/linux-6.6/Documentation/filesystems/ |
| D | zonefs.rst | 14 write zones of the device must be written sequentially starting from the end 34 space that is divided into zones. A zone is a group of consecutive LBAs and all 35 zones are contiguous (there are no LBA gaps). Zones may have different types. 37 * Conventional zones: there are no access constraints to LBAs belonging to 38 conventional zones. Any read or write access can be executed, similarly to a 40 * Sequential zones: these zones accept random reads but must be written 44 cannot be overwritten. Sequential zones must first be erased using a special 60 Zonefs exposes the zones of a zoned block device as files. The files 61 representing zones are grouped by zone type, which are themselves represented 85 Files representing zones of the same type are grouped together under the same [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
| D | alloc.c | 226 struct mlx4_zone_allocator *zones = kmalloc(sizeof(*zones), GFP_KERNEL); in mlx4_zone_allocator_create() local 228 if (NULL == zones) in mlx4_zone_allocator_create() 231 INIT_LIST_HEAD(&zones->entries); in mlx4_zone_allocator_create() 232 INIT_LIST_HEAD(&zones->prios); in mlx4_zone_allocator_create() 233 spin_lock_init(&zones->lock); in mlx4_zone_allocator_create() 234 zones->last_uid = 0; in mlx4_zone_allocator_create() 235 zones->mask = 0; in mlx4_zone_allocator_create() 236 zones->flags = flags; in mlx4_zone_allocator_create() 238 return zones; in mlx4_zone_allocator_create() 426 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
| D | alloc.c | 226 struct mlx4_zone_allocator *zones = kmalloc(sizeof(*zones), GFP_KERNEL); in mlx4_zone_allocator_create() local 228 if (NULL == zones) in mlx4_zone_allocator_create() 231 INIT_LIST_HEAD(&zones->entries); in mlx4_zone_allocator_create() 232 INIT_LIST_HEAD(&zones->prios); in mlx4_zone_allocator_create() 233 spin_lock_init(&zones->lock); in mlx4_zone_allocator_create() 234 zones->last_uid = 0; in mlx4_zone_allocator_create() 235 zones->mask = 0; in mlx4_zone_allocator_create() 236 zones->flags = flags; in mlx4_zone_allocator_create() 238 return zones; in mlx4_zone_allocator_create() 426 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid() argument [all …]
|
| /kernel/linux/linux-6.6/block/ |
| D | blk-zoned.c | 102 * bdev_nr_zones - Get number of zones 105 * Return the total number of zones of a zoned block device. For a block 106 * device without zone capabilities, the number of zones is always 0. 120 * blkdev_report_zones - Get zones information 122 * @sector: Sector from which to report zones 123 * @nr_zones: Maximum number of zones to report 130 * To report all zones in a device starting from @sector, the BLK_ALL_ZONES 132 * Returns the number of zones reported by the device, or a negative errno 165 * For an all-zones reset, ignore conventional, empty, read-only in blk_zone_need_reset_cb() 166 * and offline zones. in blk_zone_need_reset_cb() [all …]
|
| /kernel/linux/linux-6.6/fs/btrfs/ |
| D | zoned.c | 23 /* Maximum number of zones to report per blkdev_report_zones() call */ 44 /* Number of superblock log zones */ 48 * Minimum of active zones we need: 50 * - BTRFS_SUPER_MIRROR_MAX zones for superblock mirrors 51 * - 3 zones to ensure at least one zone per SYSTEM, META and DATA block group 79 struct blk_zone *zones = data; in copy_zone_info_cb() local 81 memcpy(&zones[idx], zone, sizeof(*zone)); in copy_zone_info_cb() 86 static int sb_write_pointer(struct block_device *bdev, struct blk_zone *zones, in sb_write_pointer() argument 95 ASSERT(zones[i].type != BLK_ZONE_TYPE_CONVENTIONAL); in sb_write_pointer() 96 empty[i] = (zones[i].cond == BLK_ZONE_COND_EMPTY); in sb_write_pointer() [all …]
|
| /kernel/linux/linux-6.6/drivers/block/null_blk/ |
| D | zoned.c | 103 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct nullb_zone), in null_init_zoned_dev() 105 if (!dev->zones) in null_init_zoned_dev() 112 pr_info("changed the number of conventional zones to %u", in null_init_zoned_dev() 116 /* Max active zones has to be < nbr of seq zones in order to be enforceable */ in null_init_zoned_dev() 122 /* Max open zones has to be <= max active zones */ in null_init_zoned_dev() 125 pr_info("changed the maximum number of open zones to %u\n", in null_init_zoned_dev() 135 zone = &dev->zones[i]; in null_init_zoned_dev() 149 zone = &dev->zones[i]; in null_init_zoned_dev() 190 kvfree(dev->zones); in null_free_zoned_dev() 191 dev->zones = NULL; in null_free_zoned_dev() [all …]
|
| /kernel/linux/linux-5.10/drivers/block/null_blk/ |
| D | zoned.c | 47 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct blk_zone), in null_init_zoned_dev() 49 if (!dev->zones) in null_init_zoned_dev() 55 * information protection, use a bitmap to lock zones with in null_init_zoned_dev() 63 kvfree(dev->zones); in null_init_zoned_dev() 70 pr_info("changed the number of conventional zones to %u", in null_init_zoned_dev() 74 /* Max active zones has to be < nbr of seq zones in order to be enforceable */ in null_init_zoned_dev() 80 /* Max open zones has to be <= max active zones */ in null_init_zoned_dev() 83 pr_info("changed the maximum number of open zones to %u\n", in null_init_zoned_dev() 91 struct blk_zone *zone = &dev->zones[i]; in null_init_zoned_dev() 104 struct blk_zone *zone = &dev->zones[i]; in null_init_zoned_dev() [all …]
|
| /kernel/linux/linux-6.6/include/uapi/linux/ |
| D | blkzoned.h | 23 * enum blk_zone_type - Types of zones allowed in a zoned device. 44 * @BLK_ZONE_COND_EXP_OPEN: The zones was explicitly opened by an 125 * @zones: Space to hold @nr_zones @zones entries on reply. 133 struct blk_zone zones[]; member 141 * @nr_sectors: Total number of sectors of all zones to operate on. 154 * @BLKRESETZONE: Reset the write pointer of the zones in the specified 157 * @BLKGETNRZONES: Get the total number of zones of the device. 158 * @BLKOPENZONE: Open the zones in the specified sector range. 160 * @BLKCLOSEZONE: Close the zones in the specified sector range. 162 * @BLKFINISHZONE: Mark the zones as full in the specified sector range.
|
| /kernel/linux/linux-5.10/include/uapi/linux/ |
| D | blkzoned.h | 23 * enum blk_zone_type - Types of zones allowed in a zoned device. 44 * @BLK_ZONE_COND_EXP_OPEN: The zones was explicitly opened by an 125 * @zones: Space to hold @nr_zones @zones entries on reply. 133 struct blk_zone zones[0]; member 141 * @nr_sectors: Total number of sectors of all zones to operate on. 154 * @BLKRESETZONE: Reset the write pointer of the zones in the specified 157 * @BLKGETNRZONES: Get the total number of zones of the device. 158 * @BLKOPENZONE: Open the zones in the specified sector range. 160 * @BLKCLOSEZONE: Close the zones in the specified sector range. 162 * @BLKFINISHZONE: Mark the zones as full in the specified sector range.
|
| /kernel/linux/linux-5.10/block/ |
| D | blk-zoned.c | 120 * blkdev_nr_zones - Get number of zones 123 * Return the total number of zones of a zoned block device. For a block 124 * device without zone capabilities, the number of zones is always 0. 137 * blkdev_report_zones - Get zones information 139 * @sector: Sector from which to report zones 140 * @nr_zones: Maximum number of zones to report 147 * To report all zones in a device starting from @sector, the BLK_ALL_ZONES 149 * Returns the number of zones reported by the device, or a negative errno 187 * blkdev_zone_mgmt - Execute a zone management operation on a range of zones 189 * @op: Operation to be performed on the zones [all …]
|
| /kernel/linux/linux-6.6/Documentation/power/powercap/ |
| D | powercap.rst | 19 Power zones represent different parts of the system, which can be controlled and 23 the system represented by different power zones are hierarchical (that is, one 25 controls), those power zones may also be organized in a hierarchy with one 150 control type called intel-rapl which contains two power zones, intel-rapl:0 and 151 intel-rapl:1, representing CPU packages. Each of these power zones contains 154 the zones and subzones contain energy monitoring attributes (energy_uj, 156 to be applied (the constraints in the 'package' power zones apply to the whole 170 Depending on different power zones, the Intel RAPL technology allows 173 All the zones contain attributes representing the constraint names, 245 enabled (rw): Enable/Disable controls at zone level or for all zones using
|
| /kernel/linux/linux-5.10/Documentation/power/powercap/ |
| D | powercap.rst | 19 Power zones represent different parts of the system, which can be controlled and 23 the system represented by different power zones are hierarchical (that is, one 25 controls), those power zones may also be organized in a hierarchy with one 150 control type called intel-rapl which contains two power zones, intel-rapl:0 and 151 intel-rapl:1, representing CPU packages. Each of these power zones contains 154 the zones and subzones contain energy monitoring attributes (energy_uj, 156 to be applied (the constraints in the 'package' power zones apply to the whole 170 Depending on different power zones, the Intel RAPL technology allows 173 All the zones contain attributes representing the constraint names, 245 enabled (rw): Enable/Disable controls at zone level or for all zones using
|
| /kernel/linux/linux-5.10/Documentation/vm/ |
| D | balance.rst | 43 zone size (and possibly of the size of lower class zones), we can decide 46 of lower class zones, the bad part is, we might do too frequent balancing 47 due to ignoring possibly lower usage in the lower class zones. Also, 52 of a zone _and_ all its lower class zones falls below 1/64th of the 53 total memory in the zone and its lower class zones. This fixes the 2.2 56 which have different numbers and types of zones. If we wanted to get 58 zones in the future. 74 kswapd also needs to know about the zones it should balance. kswapd is
|
| /kernel/linux/linux-6.6/Documentation/mm/ |
| D | balance.rst | 41 zone size (and possibly of the size of lower class zones), we can decide 44 of lower class zones, the bad part is, we might do too frequent balancing 45 due to ignoring possibly lower usage in the lower class zones. Also, 50 of a zone _and_ all its lower class zones falls below 1/64th of the 51 total memory in the zone and its lower class zones. This fixes the 2.2 54 which have different numbers and types of zones. If we wanted to get 56 zones in the future. 72 kswapd also needs to know about the zones it should balance. kswapd is
|
| D | physical_memory.rst | 33 called zones which represent ranges within memory. These ranges are usually 48 both zones as they support peripherals with different DMA addressing 78 ``ZONE_NORMAL`` so it is the most performance critical zone. Zones are 79 discussed further in Section :ref:`Zones <zones>`. 86 entire memory will be on node 0 and there will be three zones: ``ZONE_DMA``, 212 The zones for this node. Not all of the zones may be populated, but it is 217 The list of all zones in all nodes. This list defines the order of zones 223 Number of populated zones in this node. 339 Zones chapter
|
| /kernel/linux/linux-6.6/drivers/powercap/ |
| D | arm_scmi_powercap.c | 266 /* Un-register children zones first starting from the leaves */ in scmi_powercap_unregister_all_zones() 332 * scmi_zones_register- Register SCMI powercap zones starting from parent zones 335 * @pr: A reference to the root powercap zones descriptors 337 * When registering SCMI powercap zones with the powercap framework we should 338 * take care to always register zones starting from the root ones and to 342 * zones provided by the SCMI platform firmware is built to comply with such 345 * This function, given the set of SCMI powercap zones to register, takes care 346 * to walk the SCMI powercap zones trees up to the root registering any 347 * unregistered parent zone before registering the child zones; at the same 351 * the @registered_zones array backward and unregister all the zones starting [all …]
|
| /kernel/linux/linux-6.6/fs/zonefs/ |
| D | super.c | 3 * Simple file system for zoned block devices exposing zones as files. 58 * For zones that transitioned to the offline or readonly condition, in zonefs_account_active() 107 * open operation on other zones if the drive active zone resources in zonefs_zone_mgmt() 201 * The write pointer of read-only zones is invalid, so we cannot in zonefs_check_zone_condition() 215 /* The write pointer of full zones is invalid. */ in zonefs_check_zone_condition() 226 * offline and readonly zones. 233 /* Offline zones cannot be read nor written */ in zonefs_inode_update_mode() 237 /* Readonly zones cannot be written */ in zonefs_inode_update_mode() 303 * First handle bad zones signaled by hardware. The mount options in zonefs_handle_io_error() 395 * may prevent IO forward progress. Executing the report zones under in __zonefs_io_error() [all …]
|
| /kernel/linux/linux-5.10/drivers/thermal/tegra/ |
| D | tegra-bpmp-thermal.c | 30 struct tegra_bpmp_thermal_zone **zones; member 109 if (tegra->zones[i]->idx != req->host_trip_reached.zone) in bpmp_mrq_thermal() 112 schedule_work(&tegra->zones[i]->tz_device_update_work); in bpmp_mrq_thermal() 171 dev_err(&pdev->dev, "failed to get the number of zones: %d\n", in tegra_bpmp_thermal_probe() 176 tegra->zones = devm_kcalloc(&pdev->dev, max_num_zones, in tegra_bpmp_thermal_probe() 177 sizeof(*tegra->zones), GFP_KERNEL); in tegra_bpmp_thermal_probe() 178 if (!tegra->zones) in tegra_bpmp_thermal_probe() 211 tegra->zones[tegra->num_zones++] = zone; in tegra_bpmp_thermal_probe()
|
| /kernel/linux/linux-6.6/drivers/scsi/ |
| D | sd_zbc.c | 49 * Offline and read-only zones do not have a valid in sd_zbc_get_zone_wp_offset() 111 * obtained from the REPORT ZONES command. in sd_zbc_parse_report() 131 * sd_zbc_do_report_zones - Issue a REPORT ZONES scsi command. 139 * Using partial=true can significantly speed up execution of a report zones 141 * zones and will only report the count of zones fitting in the command reply 170 "REPORT ZONES start lba %llu failed\n", lba); in sd_zbc_do_report_zones() 171 sd_print_result(sdkp, "REPORT ZONES", result); in sd_zbc_do_report_zones() 180 "REPORT ZONES report invalid length %u\n", in sd_zbc_do_report_zones() 189 * sd_zbc_alloc_report_buffer() - Allocate a buffer for report zones reply. 191 * @nr_zones: Maximum number of zones to report [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| D | sd_zbc.c | 40 * Offline and read-only zones do not have a valid in sd_zbc_get_zone_wp_offset() 80 * sd_zbc_do_report_zones - Issue a REPORT ZONES scsi command. 88 * Using partial=true can significantly speed up execution of a report zones 90 * zones and will only report the count of zones fitting in the command reply 117 "REPORT ZONES start lba %llu failed\n", lba); in sd_zbc_do_report_zones() 118 sd_print_result(sdkp, "REPORT ZONES", result); in sd_zbc_do_report_zones() 128 "REPORT ZONES report invalid length %u\n", in sd_zbc_do_report_zones() 137 * Allocate a buffer for report zones reply. 139 * @nr_zones: Maximum number of zones to report 142 * Try to allocate a reply buffer for the number of requested zones. [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | sysv_fs.h | 31 __fs32 s_fsize __packed2__; /* total number of zones of this fs */ 44 __fs32 s_tfree __packed2__; /* total number of free zones */ 70 __fs32 s_fsize; /* total number of zones of this fs */ 86 __fs32 s_tfree; /* total number of free zones */ 101 __fs32 s_fsize __packed2__; /* total number of zones of this fs */ 115 __fs32 s_tfree __packed2__; /* total number of free zones */ 131 __fs32 s_fsize __packed2__; /* total number of zones of this fs */ 145 __fs32 s_tfree __packed2__; /* total number of free zones */ 169 __fs32 s_fsize __packed2__; /* total number of zones of this fs */ 182 __fs32 s_tfree __packed2__; /* total number of free zones */
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | sysv_fs.h | 31 __fs32 s_fsize __packed2__; /* total number of zones of this fs */ 44 __fs32 s_tfree __packed2__; /* total number of free zones */ 70 __fs32 s_fsize; /* total number of zones of this fs */ 86 __fs32 s_tfree; /* total number of free zones */ 101 __fs32 s_fsize __packed2__; /* total number of zones of this fs */ 115 __fs32 s_tfree __packed2__; /* total number of free zones */ 131 __fs32 s_fsize __packed2__; /* total number of zones of this fs */ 145 __fs32 s_tfree __packed2__; /* total number of free zones */ 169 __fs32 s_fsize __packed2__; /* total number of zones of this fs */ 182 __fs32 s_tfree __packed2__; /* total number of free zones */
|