Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 2f2932f

Browse files
committed
Merge tag 'v6.6.53' into v6.6-rt
This is the 6.6.53 stable release
2 parents afe962c + 4ad9fa5 commit 2f2932f

File tree

64 files changed

+383
-330
lines changed

Some content is hidden

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

64 files changed

+383
-330
lines changed

Makefile

+1-1
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 = 52
4+
SUBLEVEL = 53
55
EXTRAVERSION =
66
NAME = Hurr durr I'ma ninja sloth
77

arch/loongarch/include/asm/hw_irq.h

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
extern atomic_t irq_err_count;
1111

12+
#define ARCH_IRQ_INIT_FLAGS IRQ_NOPROBE
13+
1214
/*
1315
* interrupt-retrigger: NOP for now. This may not be appropriate for all
1416
* machines, we'll see ...

arch/loongarch/kernel/irq.c

-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ void __init init_IRQ(void)
122122
panic("IPI IRQ request failed\n");
123123
#endif
124124

125-
for (i = 0; i < NR_IRQS; i++)
126-
irq_set_noprobe(i);
127-
128125
for_each_possible_cpu(i) {
129126
page = alloc_pages_node(cpu_to_node(i), GFP_KERNEL, order);
130127

arch/microblaze/mm/init.c

-5
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,6 @@ asmlinkage void __init mmu_init(void)
193193
{
194194
unsigned int kstart, ksize;
195195

196-
if (!memblock.reserved.cnt) {
197-
pr_emerg("Error memory count\n");
198-
machine_restart(NULL);
199-
}
200-
201196
if ((u32) memblock.memory.regions[0].size < 0x400000) {
202197
pr_emerg("Memory must be greater than 4MB\n");
203198
machine_restart(NULL);

arch/x86/kernel/cpu/mshyperv.c

+1
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ static void __init ms_hyperv_init_platform(void)
423423
ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) {
424424
x86_platform.calibrate_tsc = hv_get_tsc_khz;
425425
x86_platform.calibrate_cpu = hv_get_tsc_khz;
426+
setup_force_cpu_cap(X86_FEATURE_TSC_KNOWN_FREQ);
426427
}
427428

428429
if (ms_hyperv.priv_high & HV_ISOLATION) {

arch/x86/mm/init.c

+6-10
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,17 @@ static void __init probe_page_size_mask(void)
261261
}
262262
}
263263

264-
#define INTEL_MATCH(_model) { .vendor = X86_VENDOR_INTEL, \
265-
.family = 6, \
266-
.model = _model, \
267-
}
268264
/*
269265
* INVLPG may not properly flush Global entries
270266
* on these CPUs when PCIDs are enabled.
271267
*/
272268
static const struct x86_cpu_id invlpg_miss_ids[] = {
273-
INTEL_MATCH(INTEL_FAM6_ALDERLAKE ),
274-
INTEL_MATCH(INTEL_FAM6_ALDERLAKE_L ),
275-
INTEL_MATCH(INTEL_FAM6_ATOM_GRACEMONT ),
276-
INTEL_MATCH(INTEL_FAM6_RAPTORLAKE ),
277-
INTEL_MATCH(INTEL_FAM6_RAPTORLAKE_P),
278-
INTEL_MATCH(INTEL_FAM6_RAPTORLAKE_S),
269+
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, 0),
270+
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, 0),
271+
X86_MATCH_INTEL_FAM6_MODEL(ATOM_GRACEMONT, 0),
272+
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, 0),
273+
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, 0),
274+
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, 0),
279275
{}
280276
};
281277

block/blk-core.c

+10
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include "blk-pm.h"
5050
#include "blk-cgroup.h"
5151
#include "blk-throttle.h"
52+
#include "blk-ioprio.h"
5253

5354
struct dentry *blk_debugfs_root;
5455

@@ -819,6 +820,14 @@ void submit_bio_noacct(struct bio *bio)
819820
}
820821
EXPORT_SYMBOL(submit_bio_noacct);
821822

823+
static void bio_set_ioprio(struct bio *bio)
824+
{
825+
/* Nobody set ioprio so far? Initialize it based on task's nice value */
826+
if (IOPRIO_PRIO_CLASS(bio->bi_ioprio) == IOPRIO_CLASS_NONE)
827+
bio->bi_ioprio = get_current_ioprio();
828+
blkcg_set_ioprio(bio);
829+
}
830+
822831
/**
823832
* submit_bio - submit a bio to the block device layer for I/O
824833
* @bio: The &struct bio which describes the I/O
@@ -841,6 +850,7 @@ void submit_bio(struct bio *bio)
841850
count_vm_events(PGPGOUT, bio_sectors(bio));
842851
}
843852

853+
bio_set_ioprio(bio);
844854
submit_bio_noacct(bio);
845855
}
846856
EXPORT_SYMBOL(submit_bio);

block/blk-mq.c

-10
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include "blk-stat.h"
4141
#include "blk-mq-sched.h"
4242
#include "blk-rq-qos.h"
43-
#include "blk-ioprio.h"
4443

4544
static DEFINE_PER_CPU(struct llist_head, blk_cpu_done);
4645
static DEFINE_PER_CPU(call_single_data_t, blk_cpu_csd);
@@ -2956,14 +2955,6 @@ static bool blk_mq_can_use_cached_rq(struct request *rq, struct blk_plug *plug,
29562955
return true;
29572956
}
29582957

2959-
static void bio_set_ioprio(struct bio *bio)
2960-
{
2961-
/* Nobody set ioprio so far? Initialize it based on task's nice value */
2962-
if (IOPRIO_PRIO_CLASS(bio->bi_ioprio) == IOPRIO_CLASS_NONE)
2963-
bio->bi_ioprio = get_current_ioprio();
2964-
blkcg_set_ioprio(bio);
2965-
}
2966-
29672958
/**
29682959
* blk_mq_submit_bio - Create and send a request to block device.
29692960
* @bio: Bio pointer.
@@ -2988,7 +2979,6 @@ void blk_mq_submit_bio(struct bio *bio)
29882979
blk_status_t ret;
29892980

29902981
bio = blk_queue_bounce(bio, q);
2991-
bio_set_ioprio(bio);
29922982

29932983
if (plug) {
29942984
rq = rq_list_peek(&plug->cached_rq);

drivers/accel/drm_accel.c

+7-103
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <linux/debugfs.h>
1010
#include <linux/device.h>
11-
#include <linux/idr.h>
11+
#include <linux/xarray.h>
1212

1313
#include <drm/drm_accel.h>
1414
#include <drm/drm_debugfs.h>
@@ -17,8 +17,7 @@
1717
#include <drm/drm_ioctl.h>
1818
#include <drm/drm_print.h>
1919

20-
static DEFINE_SPINLOCK(accel_minor_lock);
21-
static struct idr accel_minors_idr;
20+
DEFINE_XARRAY_ALLOC(accel_minors_xa);
2221

2322
static struct dentry *accel_debugfs_root;
2423
static struct class *accel_class;
@@ -120,99 +119,6 @@ void accel_set_device_instance_params(struct device *kdev, int index)
120119
kdev->type = &accel_sysfs_device_minor;
121120
}
122121

123-
/**
124-
* accel_minor_alloc() - Allocates a new accel minor
125-
*
126-
* This function access the accel minors idr and allocates from it
127-
* a new id to represent a new accel minor
128-
*
129-
* Return: A new id on success or error code in case idr_alloc failed
130-
*/
131-
int accel_minor_alloc(void)
132-
{
133-
unsigned long flags;
134-
int r;
135-
136-
spin_lock_irqsave(&accel_minor_lock, flags);
137-
r = idr_alloc(&accel_minors_idr, NULL, 0, ACCEL_MAX_MINORS, GFP_NOWAIT);
138-
spin_unlock_irqrestore(&accel_minor_lock, flags);
139-
140-
return r;
141-
}
142-
143-
/**
144-
* accel_minor_remove() - Remove an accel minor
145-
* @index: The minor id to remove.
146-
*
147-
* This function access the accel minors idr and removes from
148-
* it the member with the id that is passed to this function.
149-
*/
150-
void accel_minor_remove(int index)
151-
{
152-
unsigned long flags;
153-
154-
spin_lock_irqsave(&accel_minor_lock, flags);
155-
idr_remove(&accel_minors_idr, index);
156-
spin_unlock_irqrestore(&accel_minor_lock, flags);
157-
}
158-
159-
/**
160-
* accel_minor_replace() - Replace minor pointer in accel minors idr.
161-
* @minor: Pointer to the new minor.
162-
* @index: The minor id to replace.
163-
*
164-
* This function access the accel minors idr structure and replaces the pointer
165-
* that is associated with an existing id. Because the minor pointer can be
166-
* NULL, we need to explicitly pass the index.
167-
*
168-
* Return: 0 for success, negative value for error
169-
*/
170-
void accel_minor_replace(struct drm_minor *minor, int index)
171-
{
172-
unsigned long flags;
173-
174-
spin_lock_irqsave(&accel_minor_lock, flags);
175-
idr_replace(&accel_minors_idr, minor, index);
176-
spin_unlock_irqrestore(&accel_minor_lock, flags);
177-
}
178-
179-
/*
180-
* Looks up the given minor-ID and returns the respective DRM-minor object. The
181-
* refence-count of the underlying device is increased so you must release this
182-
* object with accel_minor_release().
183-
*
184-
* The object can be only a drm_minor that represents an accel device.
185-
*
186-
* As long as you hold this minor, it is guaranteed that the object and the
187-
* minor->dev pointer will stay valid! However, the device may get unplugged and
188-
* unregistered while you hold the minor.
189-
*/
190-
static struct drm_minor *accel_minor_acquire(unsigned int minor_id)
191-
{
192-
struct drm_minor *minor;
193-
unsigned long flags;
194-
195-
spin_lock_irqsave(&accel_minor_lock, flags);
196-
minor = idr_find(&accel_minors_idr, minor_id);
197-
if (minor)
198-
drm_dev_get(minor->dev);
199-
spin_unlock_irqrestore(&accel_minor_lock, flags);
200-
201-
if (!minor) {
202-
return ERR_PTR(-ENODEV);
203-
} else if (drm_dev_is_unplugged(minor->dev)) {
204-
drm_dev_put(minor->dev);
205-
return ERR_PTR(-ENODEV);
206-
}
207-
208-
return minor;
209-
}
210-
211-
static void accel_minor_release(struct drm_minor *minor)
212-
{
213-
drm_dev_put(minor->dev);
214-
}
215-
216122
/**
217123
* accel_open - open method for ACCEL file
218124
* @inode: device inode
@@ -230,7 +136,7 @@ int accel_open(struct inode *inode, struct file *filp)
230136
struct drm_minor *minor;
231137
int retcode;
232138

233-
minor = accel_minor_acquire(iminor(inode));
139+
minor = drm_minor_acquire(&accel_minors_xa, iminor(inode));
234140
if (IS_ERR(minor))
235141
return PTR_ERR(minor);
236142

@@ -249,7 +155,7 @@ int accel_open(struct inode *inode, struct file *filp)
249155

250156
err_undo:
251157
atomic_dec(&dev->open_count);
252-
accel_minor_release(minor);
158+
drm_minor_release(minor);
253159
return retcode;
254160
}
255161
EXPORT_SYMBOL_GPL(accel_open);
@@ -260,7 +166,7 @@ static int accel_stub_open(struct inode *inode, struct file *filp)
260166
struct drm_minor *minor;
261167
int err;
262168

263-
minor = accel_minor_acquire(iminor(inode));
169+
minor = drm_minor_acquire(&accel_minors_xa, iminor(inode));
264170
if (IS_ERR(minor))
265171
return PTR_ERR(minor);
266172

@@ -277,7 +183,7 @@ static int accel_stub_open(struct inode *inode, struct file *filp)
277183
err = 0;
278184

279185
out:
280-
accel_minor_release(minor);
186+
drm_minor_release(minor);
281187

282188
return err;
283189
}
@@ -293,15 +199,13 @@ void accel_core_exit(void)
293199
unregister_chrdev(ACCEL_MAJOR, "accel");
294200
debugfs_remove(accel_debugfs_root);
295201
accel_sysfs_destroy();
296-
idr_destroy(&accel_minors_idr);
202+
WARN_ON(!xa_empty(&accel_minors_xa));
297203
}
298204

299205
int __init accel_core_init(void)
300206
{
301207
int ret;
302208

303-
idr_init(&accel_minors_idr);
304-
305209
ret = accel_sysfs_init();
306210
if (ret < 0) {
307211
DRM_ERROR("Cannot create ACCEL class: %d\n", ret);

drivers/gpio/gpiolib-cdev.c

+7-5
Original file line numberDiff line numberDiff line change
@@ -1565,20 +1565,22 @@ static long linereq_set_config_unlocked(struct linereq *lr,
15651565
line = &lr->lines[i];
15661566
desc = lr->lines[i].desc;
15671567
flags = gpio_v2_line_config_flags(lc, i);
1568-
gpio_v2_line_config_flags_to_desc_flags(flags, &desc->flags);
1569-
edflags = flags & GPIO_V2_LINE_EDGE_DETECTOR_FLAGS;
15701568
/*
1571-
* Lines have to be requested explicitly for input
1572-
* or output, else the line will be treated "as is".
1569+
* Lines not explicitly reconfigured as input or output
1570+
* are left unchanged.
15731571
*/
1572+
if (!(flags & GPIO_V2_LINE_DIRECTION_FLAGS))
1573+
continue;
1574+
gpio_v2_line_config_flags_to_desc_flags(flags, &desc->flags);
1575+
edflags = flags & GPIO_V2_LINE_EDGE_DETECTOR_FLAGS;
15741576
if (flags & GPIO_V2_LINE_FLAG_OUTPUT) {
15751577
int val = gpio_v2_line_config_output_value(lc, i);
15761578

15771579
edge_detector_stop(line);
15781580
ret = gpiod_direction_output(desc, val);
15791581
if (ret)
15801582
return ret;
1581-
} else if (flags & GPIO_V2_LINE_FLAG_INPUT) {
1583+
} else {
15821584
ret = gpiod_direction_input(desc);
15831585
if (ret)
15841586
return ret;

drivers/gpu/drm/arm/display/komeda/komeda_kms.c

+7-3
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ static int komeda_crtc_normalize_zpos(struct drm_crtc *crtc,
160160
struct drm_plane *plane;
161161
struct list_head zorder_list;
162162
int order = 0, err;
163+
u32 slave_zpos = 0;
163164

164165
DRM_DEBUG_ATOMIC("[CRTC:%d:%s] calculating normalized zpos values\n",
165166
crtc->base.id, crtc->name);
@@ -199,10 +200,13 @@ static int komeda_crtc_normalize_zpos(struct drm_crtc *crtc,
199200
plane_st->zpos, plane_st->normalized_zpos);
200201

201202
/* calculate max slave zorder */
202-
if (has_bit(drm_plane_index(plane), kcrtc->slave_planes))
203+
if (has_bit(drm_plane_index(plane), kcrtc->slave_planes)) {
204+
slave_zpos = plane_st->normalized_zpos;
205+
if (to_kplane_st(plane_st)->layer_split)
206+
slave_zpos++;
203207
kcrtc_st->max_slave_zorder =
204-
max(plane_st->normalized_zpos,
205-
kcrtc_st->max_slave_zorder);
208+
max(slave_zpos, kcrtc_st->max_slave_zorder);
209+
}
206210
}
207211

208212
crtc_st->zpos_changed = true;

0 commit comments

Comments
 (0)