Skip to content

Commit 4e05f95

Browse files
committed
Merge remote-tracking branch 'stable/linux-5.10.y' into rpi-5.10.y
2 parents ac3ead8 + dfbf345 commit 4e05f95

47 files changed

Lines changed: 819 additions & 256 deletions

File tree

Some content is hidden

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

‎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 = 5
33
PATCHLEVEL = 10
4-
SUBLEVEL = 22
4+
SUBLEVEL = 23
55
EXTRAVERSION =
66
NAME = Dare mighty things
77

‎arch/arm64/Kconfig‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,9 @@ choice
950950
that is selected here.
951951

952952
config CPU_BIG_ENDIAN
953-
bool "Build big-endian kernel"
954-
help
953+
bool "Build big-endian kernel"
954+
depends on !LD_IS_LLD || LLD_VERSION >= 130000
955+
help
955956
Say Y if you plan on running a kernel with a big-endian userspace.
956957

957958
config CPU_LITTLE_ENDIAN

‎arch/parisc/Kconfig‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,12 @@ config PREFETCH
201201
def_bool y
202202
depends on PA8X00 || PA7200
203203

204+
config PARISC_HUGE_KERNEL
205+
def_bool y if !MODULES || UBSAN || FTRACE || COMPILE_TEST
206+
204207
config MLONGCALLS
205-
def_bool y if !MODULES || UBSAN || FTRACE
206-
bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
208+
def_bool y if PARISC_HUGE_KERNEL
209+
bool "Enable the -mlong-calls compiler option for big kernels" if !PARISC_HUGE_KERNEL
207210
depends on PA8X00
208211
help
209212
If you configure the kernel to include many drivers built-in instead

‎arch/x86/kvm/svm/svm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,7 @@ static void init_vmcb(struct vcpu_svm *svm)
11921192
init_sys_seg(&save->ldtr, SEG_TYPE_LDT);
11931193
init_sys_seg(&save->tr, SEG_TYPE_BUSY_TSS16);
11941194

1195+
svm_set_cr4(&svm->vcpu, 0);
11951196
svm_set_efer(&svm->vcpu, 0);
11961197
save->dr6 = 0xffff0ff0;
11971198
kvm_set_rflags(&svm->vcpu, 2);

‎arch/x86/kvm/x86.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ bool kvm_msr_allowed(struct kvm_vcpu *vcpu, u32 index, u32 type);
404404
__reserved_bits |= X86_CR4_UMIP; \
405405
if (!__cpu_has(__c, X86_FEATURE_VMX)) \
406406
__reserved_bits |= X86_CR4_VMXE; \
407+
if (!__cpu_has(__c, X86_FEATURE_PCID)) \
408+
__reserved_bits |= X86_CR4_PCIDE; \
407409
__reserved_bits; \
408410
})
409411

‎drivers/acpi/acpica/acobject.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ struct acpi_object_addr_handler {
284284
acpi_adr_space_handler handler;
285285
struct acpi_namespace_node *node; /* Parent device */
286286
void *context;
287+
acpi_mutex context_mutex;
287288
acpi_adr_space_setup setup;
288289
union acpi_operand_object *region_list; /* Regions using this handler */
289290
union acpi_operand_object *next;

‎drivers/acpi/acpica/evhandler.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,13 @@ acpi_ev_install_space_handler(struct acpi_namespace_node *node,
489489

490490
/* Init handler obj */
491491

492+
status =
493+
acpi_os_create_mutex(&handler_obj->address_space.context_mutex);
494+
if (ACPI_FAILURE(status)) {
495+
acpi_ut_remove_reference(handler_obj);
496+
goto unlock_and_exit;
497+
}
498+
492499
handler_obj->address_space.space_id = (u8)space_id;
493500
handler_obj->address_space.handler_flags = flags;
494501
handler_obj->address_space.region_list = NULL;

‎drivers/acpi/acpica/evregion.c‎

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
111111
union acpi_operand_object *region_obj2;
112112
void *region_context = NULL;
113113
struct acpi_connection_info *context;
114+
acpi_mutex context_mutex;
115+
u8 context_locked;
114116
acpi_physical_address address;
115117

116118
ACPI_FUNCTION_TRACE(ev_address_space_dispatch);
@@ -135,6 +137,8 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
135137
}
136138

137139
context = handler_desc->address_space.context;
140+
context_mutex = handler_desc->address_space.context_mutex;
141+
context_locked = FALSE;
138142

139143
/*
140144
* It may be the case that the region has never been initialized.
@@ -203,6 +207,23 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
203207
handler = handler_desc->address_space.handler;
204208
address = (region_obj->region.address + region_offset);
205209

210+
ACPI_DEBUG_PRINT((ACPI_DB_OPREGION,
211+
"Handler %p (@%p) Address %8.8X%8.8X [%s]\n",
212+
&region_obj->region.handler->address_space, handler,
213+
ACPI_FORMAT_UINT64(address),
214+
acpi_ut_get_region_name(region_obj->region.
215+
space_id)));
216+
217+
if (!(handler_desc->address_space.handler_flags &
218+
ACPI_ADDR_HANDLER_DEFAULT_INSTALLED)) {
219+
/*
220+
* For handlers other than the default (supplied) handlers, we must
221+
* exit the interpreter because the handler *might* block -- we don't
222+
* know what it will do, so we can't hold the lock on the interpreter.
223+
*/
224+
acpi_ex_exit_interpreter();
225+
}
226+
206227
/*
207228
* Special handling for generic_serial_bus and general_purpose_io:
208229
* There are three extra parameters that must be passed to the
@@ -211,6 +232,11 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
211232
* 2) Length of the above buffer
212233
* 3) Actual access length from the access_as() op
213234
*
235+
* Since we pass these extra parameters via the context, which is
236+
* shared between threads, we must lock the context to avoid these
237+
* parameters being changed from another thread before the handler
238+
* has completed running.
239+
*
214240
* In addition, for general_purpose_io, the Address and bit_width fields
215241
* are defined as follows:
216242
* 1) Address is the pin number index of the field (bit offset from
@@ -220,6 +246,14 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
220246
if ((region_obj->region.space_id == ACPI_ADR_SPACE_GSBUS) &&
221247
context && field_obj) {
222248

249+
status =
250+
acpi_os_acquire_mutex(context_mutex, ACPI_WAIT_FOREVER);
251+
if (ACPI_FAILURE(status)) {
252+
goto re_enter_interpreter;
253+
}
254+
255+
context_locked = TRUE;
256+
223257
/* Get the Connection (resource_template) buffer */
224258

225259
context->connection = field_obj->field.resource_buffer;
@@ -229,6 +263,14 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
229263
if ((region_obj->region.space_id == ACPI_ADR_SPACE_GPIO) &&
230264
context && field_obj) {
231265

266+
status =
267+
acpi_os_acquire_mutex(context_mutex, ACPI_WAIT_FOREVER);
268+
if (ACPI_FAILURE(status)) {
269+
goto re_enter_interpreter;
270+
}
271+
272+
context_locked = TRUE;
273+
232274
/* Get the Connection (resource_template) buffer */
233275

234276
context->connection = field_obj->field.resource_buffer;
@@ -238,28 +280,15 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
238280
bit_width = field_obj->field.bit_length;
239281
}
240282

241-
ACPI_DEBUG_PRINT((ACPI_DB_OPREGION,
242-
"Handler %p (@%p) Address %8.8X%8.8X [%s]\n",
243-
&region_obj->region.handler->address_space, handler,
244-
ACPI_FORMAT_UINT64(address),
245-
acpi_ut_get_region_name(region_obj->region.
246-
space_id)));
247-
248-
if (!(handler_desc->address_space.handler_flags &
249-
ACPI_ADDR_HANDLER_DEFAULT_INSTALLED)) {
250-
/*
251-
* For handlers other than the default (supplied) handlers, we must
252-
* exit the interpreter because the handler *might* block -- we don't
253-
* know what it will do, so we can't hold the lock on the interpreter.
254-
*/
255-
acpi_ex_exit_interpreter();
256-
}
257-
258283
/* Call the handler */
259284

260285
status = handler(function, address, bit_width, value, context,
261286
region_obj2->extra.region_context);
262287

288+
if (context_locked) {
289+
acpi_os_release_mutex(context_mutex);
290+
}
291+
263292
if (ACPI_FAILURE(status)) {
264293
ACPI_EXCEPTION((AE_INFO, status, "Returned by Handler for [%s]",
265294
acpi_ut_get_region_name(region_obj->region.
@@ -276,6 +305,7 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
276305
}
277306
}
278307

308+
re_enter_interpreter:
279309
if (!(handler_desc->address_space.handler_flags &
280310
ACPI_ADDR_HANDLER_DEFAULT_INSTALLED)) {
281311
/*

‎drivers/acpi/acpica/evxfregn.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ acpi_remove_address_space_handler(acpi_handle device,
201201

202202
/* Now we can delete the handler object */
203203

204+
acpi_os_release_mutex(handler_obj->address_space.
205+
context_mutex);
204206
acpi_ut_remove_reference(handler_obj);
205207
goto unlock_and_exit;
206208
}

‎drivers/acpi/video_detect.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
140140
},
141141
{
142142
.callback = video_detect_force_vendor,
143+
.ident = "GIGABYTE GB-BXBT-2807",
144+
.matches = {
145+
DMI_MATCH(DMI_SYS_VENDOR, "GIGABYTE"),
146+
DMI_MATCH(DMI_PRODUCT_NAME, "GB-BXBT-2807"),
147+
},
148+
},
149+
{
143150
.ident = "Sony VPCEH3U1E",
144151
.matches = {
145152
DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),

0 commit comments

Comments
 (0)