Skip to content

Commit 5882bc5

Browse files
committed
Merge remote-tracking branch 'stable/linux-6.6.y' into rpi-6.6.y
2 parents 085e8b4 + 91de249 commit 5882bc5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3907
-1722
lines changed

Documentation/ABI/stable/sysfs-block

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ Description:
101101
devices that support receiving integrity metadata.
102102

103103

104+
What: /sys/block/<disk>/partscan
105+
Date: May 2024
106+
Contact: Christoph Hellwig <hch@lst.de>
107+
Description:
108+
The /sys/block/<disk>/partscan files reports if partition
109+
scanning is enabled for the disk. It returns "1" if partition
110+
scanning is enabled, or "0" if not. The value type is a 32-bit
111+
unsigned integer, but only "0" and "1" are valid values.
112+
113+
104114
What: /sys/block/<disk>/<partition>/alignment_offset
105115
Date: April 2009
106116
Contact: Martin K. Petersen <martin.petersen@oracle.com>

Documentation/admin-guide/hw-vuln/core-scheduling.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ arg4:
6767
will be performed for all tasks in the task group of ``pid``.
6868

6969
arg5:
70-
userspace pointer to an unsigned long for storing the cookie returned by
71-
``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands.
70+
userspace pointer to an unsigned long long for storing the cookie returned
71+
by ``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands.
7272

7373
In order for a process to push a cookie to, or pull a cookie from a process, it
7474
is required to have the ptrace access mode: `PTRACE_MODE_READ_REALCREDS` to the

Documentation/admin-guide/mm/damon/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ pages of all memory cgroups except ``/having_care_already``.::
389389
# # further filter out all cgroups except one at '/having_care_already'
390390
echo memcg > 1/type
391391
echo /having_care_already > 1/memcg_path
392-
echo N > 1/matching
392+
echo Y > 1/matching
393393

394394
Note that ``anon`` and ``memcg`` filters are currently supported only when
395395
``paddr`` `implementation <sysfs_contexts>` is being used.

Documentation/sphinx/kernel_include.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def _run(self):
9797
# HINT: this is the only line I had to change / commented out:
9898
#path = utils.relative_path(None, path)
9999

100-
path = nodes.reprunicode(path)
101100
encoding = self.options.get(
102101
'encoding', self.state.document.settings.input_encoding)
103102
e_handler=self.state.document.settings.input_encoding_error_handler

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 6
4-
SUBLEVEL = 31
4+
SUBLEVEL = 32
55
EXTRAVERSION =
66
NAME = Hurr durr I'ma ninja sloth
77

block/genhd.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,7 @@ int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode)
345345
struct block_device *bdev;
346346
int ret = 0;
347347

348-
if (disk->flags & (GENHD_FL_NO_PART | GENHD_FL_HIDDEN))
349-
return -EINVAL;
350-
if (test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
348+
if (!disk_has_partscan(disk))
351349
return -EINVAL;
352350
if (disk->open_partitions)
353351
return -EBUSY;
@@ -503,8 +501,7 @@ int __must_check device_add_disk(struct device *parent, struct gendisk *disk,
503501
goto out_unregister_bdi;
504502

505503
/* Make sure the first partition scan will be proceed */
506-
if (get_capacity(disk) && !(disk->flags & GENHD_FL_NO_PART) &&
507-
!test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
504+
if (get_capacity(disk) && disk_has_partscan(disk))
508505
set_bit(GD_NEED_PART_SCAN, &disk->state);
509506

510507
bdev_add(disk->part0, ddev->devt);
@@ -1040,6 +1037,12 @@ static ssize_t diskseq_show(struct device *dev,
10401037
return sprintf(buf, "%llu\n", disk->diskseq);
10411038
}
10421039

1040+
static ssize_t partscan_show(struct device *dev,
1041+
struct device_attribute *attr, char *buf)
1042+
{
1043+
return sprintf(buf, "%u\n", disk_has_partscan(dev_to_disk(dev)));
1044+
}
1045+
10431046
static DEVICE_ATTR(range, 0444, disk_range_show, NULL);
10441047
static DEVICE_ATTR(ext_range, 0444, disk_ext_range_show, NULL);
10451048
static DEVICE_ATTR(removable, 0444, disk_removable_show, NULL);
@@ -1053,6 +1056,7 @@ static DEVICE_ATTR(stat, 0444, part_stat_show, NULL);
10531056
static DEVICE_ATTR(inflight, 0444, part_inflight_show, NULL);
10541057
static DEVICE_ATTR(badblocks, 0644, disk_badblocks_show, disk_badblocks_store);
10551058
static DEVICE_ATTR(diskseq, 0444, diskseq_show, NULL);
1059+
static DEVICE_ATTR(partscan, 0444, partscan_show, NULL);
10561060

10571061
#ifdef CONFIG_FAIL_MAKE_REQUEST
10581062
ssize_t part_fail_show(struct device *dev,
@@ -1099,6 +1103,7 @@ static struct attribute *disk_attrs[] = {
10991103
&dev_attr_events_async.attr,
11001104
&dev_attr_events_poll_msecs.attr,
11011105
&dev_attr_diskseq.attr,
1106+
&dev_attr_partscan.attr,
11021107
#ifdef CONFIG_FAIL_MAKE_REQUEST
11031108
&dev_attr_fail.attr,
11041109
#endif

block/partitions/core.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,7 @@ static int blk_add_partitions(struct gendisk *disk)
592592
struct parsed_partitions *state;
593593
int ret = -EAGAIN, p;
594594

595-
if (disk->flags & GENHD_FL_NO_PART)
596-
return 0;
597-
598-
if (test_bit(GD_SUPPRESS_PART_SCAN, &disk->state))
595+
if (!disk_has_partscan(disk))
599596
return 0;
600597

601598
state = check_partition(disk);

drivers/android/binder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5368,7 +5368,7 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
53685368
goto err;
53695369
break;
53705370
case BINDER_SET_MAX_THREADS: {
5371-
int max_threads;
5371+
u32 max_threads;
53725372

53735373
if (copy_from_user(&max_threads, ubuf,
53745374
sizeof(max_threads))) {

drivers/android/binder_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ struct binder_proc {
421421
struct list_head todo;
422422
struct binder_stats stats;
423423
struct list_head delivered_death;
424-
int max_threads;
424+
u32 max_threads;
425425
int requested_threads;
426426
int requested_threads_started;
427427
int tmp_ref;

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,9 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
10251025
if (!obj)
10261026
return -EINVAL;
10271027

1028+
if (!info || info->head.block == AMDGPU_RAS_BLOCK_COUNT)
1029+
return -EINVAL;
1030+
10281031
if (info->head.block == AMDGPU_RAS_BLOCK__UMC) {
10291032
amdgpu_ras_get_ecc_info(adev, &err_data);
10301033
} else {

0 commit comments

Comments
 (0)