6.6.9-rc1 review
Subsystems (9)
Greg Kroah-Hartman
maintainerPATCH 138/156 nvmem: brcm_nvram: store a copy of NVRAM content
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rafał Miłecki <[email protected]>
commit 1e37bf84afacd5ba17b7a13a18ca2bc78aff05c0 upstream.
This driver uses MMIO access for reading NVRAM from a flash device. Underneath there is a flash controller that reads data and provides mapping window.
Using MMIO interface affects controller configuration and may break real controller driver. It was reported by multiple users of devices with NVRAM stored on NAND.
Modify driver to read & cache NVRAM content during init and use that copy to provide NVMEM data when requested. On NAND flashes due to their alignment NVRAM partitions can be quite big (1 MiB and more) while actual NVRAM content stays quite small (usually 16 to 32 KiB). To avoid allocating so much memory check for actual data length.
--- drivers/nvmem/brcm_nvram.c | 134 +++++++++++++++++++++++++++++++-------------- 1 file changed, 94 insertions(+), 40 deletions(-)
drivers/nvmem/brcm_nvram.c +94 -40
@@ -17,9 +17,23 @@#define NVRAM_MAGIC "FLSH" +/** +* struct brcm_nvram - driver state internal struct +* +* @dev: NVMEM device pointer +* @nvmem_size: Size of the whole space available for NVRAM +* @data: NVRAM data copy stored to avoid poking underlaying flash controller +* @data_len: NVRAM data size +* @padding_byte: Padding value used to fill remaining space +* @cells: Array of discovered NVMEM cells +* @ncells: Number of elements in cells +*/ struct brcm_nvram {struct device *dev; -void __iomem *base; +size_t nvmem_size; +uint8_t *data; +size_t data_len; +uint8_t padding_byte;struct nvmem_cell_info *cells;int ncells; };
@@ -36,10 +50,47 @@ static int brcm_nvram_read(void *context size_t bytes) {struct brcm_nvram *priv = context; -u8 *dst = val; +size_t to_copy; + +if (offset + bytes > priv->data_len) + to_copy =max_t (ssize_t, (ssize_t )priv->data_len - offset,0 ); +else + to_copy = bytes; + +memcpy (val, priv->data + offset, to_copy); + +memset ((uint8_t *)val + to_copy, priv->padding_byte, bytes - to_copy); + +return 0 ; +} + +static int brcm_nvram_copy_data (struct brcm_nvram *priv,struct platform_device *pdev) +{ +struct resource *res; +void __iomem *base; + + base =devm_platform_get_and_ioremap_resource (pdev,0 , &res); +if (IS_ERR (base)) +return PTR_ERR (base); + + priv->nvmem_size =resource_size (res); + + priv->padding_byte =readb (base + priv->nvmem_size -1 ); +for (priv->data_len = priv->nvmem_size; + priv->data_len; + priv->data_len--) { +if (readb (base + priv->data_len -1 ) != priv->padding_byte) +break ; + } +WARN (priv->data_len >SZ_128K ,"Unexpected (big) NVRAM size: %zu B\n" , priv->data_len); -while (bytes--) - *dst++ =readb (priv->base + offset++); + priv->data =devm_kzalloc (priv->dev, priv->data_len,GFP_KERNEL ); +if (!priv->data) +return -ENOMEM ; + +memcpy_fromio (priv->data, base, priv->data_len); + +bcm47xx_nvram_init_from_iomem (base, priv->data_len);return 0 ; }
@@ -67,8 +118,13 @@ static int brcm_nvram_add_cells(struct b size_t len) {struct device *dev = priv->dev; -char *var, *value, *eq; +char *var, *value; +uint8_t tmp;int idx; +int err =0 ; + + tmp = priv->data[len -1 ]; + priv->data[len -1 ] ='\0' ; priv->ncells =0 ; for (var = data + sizeof(struct brcm_nvram_header);
@@ -78,67 +134,68 @@ static int brcm_nvram_add_cells(struct b } priv->cells =devm_kcalloc (dev, priv->ncells,sizeof (*priv->cells),GFP_KERNEL ); -if (!priv->cells) -return -ENOMEM ; +if (!priv->cells) { + err = -ENOMEM ; + goto out; + }for (var = data +sizeof (struct brcm_nvram_header ), idx =0 ; var < (char *)data + len && *var; var = value +strlen (value) +1 , idx++) { +char *eq, *name; + eq =strchr (var,'=' );if (!eq)break ; *eq ='\0' ; + name =devm_kstrdup (dev, var,GFP_KERNEL ); + *eq ='=' ; +if (!name) { + err = -ENOMEM ; + goto out; + } value = eq +1 ; - priv->cells[idx].name =devm_kstrdup (dev, var,GFP_KERNEL ); -if (!priv->cells[idx].name) -return -ENOMEM ; + priv->cells[idx].name = name; priv->cells[idx].offset = value - (char *)data; priv->cells[idx].bytes =strlen (value); priv->cells[idx].np =of_get_child_by_name (dev->of_node, priv->cells[idx].name); -if (!strcmp (var,"et0macaddr" ) || - !strcmp (var,"et1macaddr" ) || - !strcmp (var,"et2macaddr" )) { +if (!strcmp (name,"et0macaddr" ) || + !strcmp (name,"et1macaddr" ) || + !strcmp (name,"et2macaddr" )) { priv->cells[idx].raw_len =strlen (value); priv->cells[idx].bytes =ETH_ALEN ; priv->cells[idx].read_post_process = brcm_nvram_read_post_process_macaddr; } } -return 0 ; +out: + priv->data[len -1 ] = tmp; +return err; }static int brcm_nvram_parse (struct brcm_nvram *priv) { +struct brcm_nvram_header *header = (struct brcm_nvram_header *)priv->data;struct device *dev = priv->dev; -struct brcm_nvram_header header; -uint8_t *data;size_t len;int err; -memcpy_fromio (&header, priv->base,sizeof (header)); - -if (memcmp (header.magic,NVRAM_MAGIC ,4 )) { +if (memcmp (header->magic,NVRAM_MAGIC ,4 )) {dev_err (dev,"Invalid NVRAM magic\n" );return -EINVAL ; } - len =le32_to_cpu (header.len); - - data =kzalloc (len,GFP_KERNEL ); -if (!data) -return -ENOMEM ; - -memcpy_fromio (data, priv->base, len); - data[len -1 ] ='\0' ; - - err =brcm_nvram_add_cells (priv, data, len); -if (err) { -dev_err (dev,"Failed to add cells: %d\n" , err); -return err; + len =le32_to_cpu (header->len); +if (len > priv->nvmem_size) { +dev_err (dev,"NVRAM length (%zd) exceeds mapped size (%zd)\n" , len, + priv->nvmem_size); +return -EINVAL ; } -kfree (data); + err =brcm_nvram_add_cells (priv, priv->data, len); +if (err) +dev_err (dev,"Failed to add cells: %d\n" , err);return 0 ; }
@@ -150,7 +207,6 @@ static int brcm_nvram_probe(struct platf .reg_read = brcm_nvram_read, };struct device *dev = &pdev->dev; -struct resource *res;struct brcm_nvram *priv;int err;
@@ -159,21 +215,19 @@ static int brcm_nvram_probe(struct platfreturn -ENOMEM ; priv->dev = dev; - priv->base =devm_platform_get_and_ioremap_resource (pdev,0 , &res); -if (IS_ERR (priv->base)) -return PTR_ERR (priv->base); + err =brcm_nvram_copy_data (priv, pdev); +if (err) +return err; err =brcm_nvram_parse (priv);if (err)return err; -bcm47xx_nvram_init_from_iomem (priv->base,resource_size (res)); - config.dev = dev; config.cells = priv->cells; config.ncells = priv->ncells; config.priv = priv; - config.size =resource_size (res); + config.size = priv->nvmem_size;return PTR_ERR_OR_ZERO (devm_nvmem_register (dev, &config)); }
Greg Kroah-Hartman
maintainerPATCH 139/156 Revert "scsi: aacraid: Reply queue mapping to CPUs based on IRQ affinity"
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Martin K. Petersen <[email protected]>
commit c5becf57dd5659c687d41d623a69f42d63f59eb2 upstream.
This reverts commit 9dc704dcc09eae7d21b5da0615eb2ed79278f63e.
Several reports have been made indicating that this commit caused hangs. Numerous attempts at root causing and fixing the issue have been unsuccessful so let's revert for now.
--- drivers/scsi/aacraid/aacraid.h | 1 - drivers/scsi/aacraid/commsup.c | 6 +----- drivers/scsi/aacraid/linit.c | 14 -------------- drivers/scsi/aacraid/src.c | 25 ++----------------------- 4 files changed, 3 insertions(+), 43 deletions(-)
drivers/scsi/aacraid/aacraid.h +0 -1
@@ -1678,7 +1678,6 @@ struct aac_devu32 handle_pci_error;bool init_reset;u8 soft_reset_support; -u8 use_map_queue; };#define aac_adapter_interrupt (dev) \
drivers/scsi/aacraid/commsup.c +1 -5
@@ -223,12 +223,8 @@ int aac_fib_setup(struct aac_dev * dev)struct fib *aac_fib_alloc_tag (struct aac_dev *dev,struct scsi_cmnd *scmd) {struct fib *fibptr; -u32 blk_tag; -int i; - blk_tag =blk_mq_unique_tag (scsi_cmd_to_rq (scmd)); - i =blk_mq_unique_tag_to_tag (blk_tag); - fibptr = &dev->fibs[i]; + fibptr = &dev->fibs[scsi_cmd_to_rq (scmd)->tag];/* * Null out fields that depend on being zero at the start of * each I/O
drivers/scsi/aacraid/linit.c +0 -14
@@ -19,7 +19,6 @@#include <linux/compat.h> #include <linux/blkdev.h> -#include <linux/blk-mq-pci.h> #include <linux/completion.h> #include <linux/init.h> #include <linux/interrupt.h>
@@ -505,15 +504,6 @@ common_config:return 0 ; } -static void aac_map_queues (struct Scsi_Host *shost) -{ -struct aac_dev *aac = (struct aac_dev *)shost->hostdata; - -blk_mq_pci_map_queues (&shost->tag_set.map[HCTX_TYPE_DEFAULT ], - aac->pdev,0 ); - aac->use_map_queue = true; -} -/** * aac_change_queue_depth - alter queue depths * @sdev: SCSI device we are considering
@@ -1498,7 +1488,6 @@ static const struct scsi_host_template a .bios_param = aac_biosparm, .shost_groups = aac_host_groups, .slave_configure = aac_slave_configure, - .map_queues = aac_map_queues, .change_queue_depth = aac_change_queue_depth, .sdev_groups = aac_dev_groups, .eh_abort_handler = aac_eh_abort,
@@ -1786,8 +1775,6 @@ static int aac_probe_one(struct pci_dev shost->max_lun =AAC_MAX_LUN ;pci_set_drvdata (pdev, shost); - shost->nr_hw_queues = aac->max_msix; - shost->host_tagset =1 ; error =scsi_add_host (shost, &pdev->dev);if (error)
@@ -1919,7 +1906,6 @@ static void aac_remove_one(struct pci_destruct aac_dev *aac = (struct aac_dev *)shost->hostdata;aac_cancel_rescan_worker (aac); - aac->use_map_queue = false;scsi_remove_host (shost);__aac_shutdown (aac);
drivers/scsi/aacraid/src.c +2 -23
@@ -493,10 +493,6 @@ static int aac_src_deliver_message(struc#endif u16 vector_no; -struct scsi_cmnd *scmd; -u32 blk_tag; -struct Scsi_Host *shost = dev->scsi_host_ptr; -struct blk_mq_queue_map *qmap;atomic_inc (&q->numpending);
@@ -509,25 +505,8 @@ static int aac_src_deliver_message(strucif ((dev->comm_interface ==AAC_COMM_MESSAGE_TYPE3 ) && dev->sa_firmware) vector_no =aac_get_vector (dev); -else { -if (!fib->vector_no || !fib->callback_data) { -if (shost && dev->use_map_queue) { - qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT ]; - vector_no = qmap->mq_map[raw_smp_processor_id ()]; - } -/* -* We hardcode the vector_no for -* reserved commands as a valid shost is -* absent during the init -*/ -else - vector_no =0 ; - }else { - scmd = (struct scsi_cmnd *)fib->callback_data; - blk_tag =blk_mq_unique_tag (scsi_cmd_to_rq (scmd)); - vector_no =blk_mq_unique_tag_to_hwq (blk_tag); - } - } +else + vector_no = fib->vector_no;if (native_hba) {if (fib->flags &FIB_CONTEXT_FLAG_NATIVE_HBA_TMF ) {
Greg Kroah-Hartman
maintainerPATCH 140/156 scsi: core: Always send batch on reset or error handling command
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexander Atanasov <[email protected]>
commit 066c5b46b6eaf2f13f80c19500dbb3b84baabb33 upstream.
In commit 8930a6c20791 ("scsi: core: add support for request batching") the block layer bd->last flag was mapped to SCMD_LAST and used as an indicator to send the batch for the drivers that implement this feature. However, the error handling code was not updated accordingly.
scsi_send_eh_cmnd() is used to send error handling commands and request sense. The problem is that request sense comes as a single command that gets into the batch queue and times out. As a result the device goes offline after several failed resets. This was observed on virtio_scsi during a device resize operation.
[ 496.316946] sd 0:0:4:0: [sdd] tag#117 scsi_eh_0: requesting sense [ 506.786356] sd 0:0:4:0: [sdd] tag#117 scsi_send_eh_cmnd timeleft: 0 [ 506.787981] sd 0:0:4:0: [sdd] tag#117 abort
To fix this always set SCMD_LAST flag in scsi_send_eh_cmnd() and scsi_reset_ioctl().
--- drivers/scsi/scsi_error.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/scsi/scsi_error.c +2 -0
@@ -1152,6 +1152,7 @@ retry:scsi_log_send (scmd); scmd->submitter =SUBMITTED_BY_SCSI_ERROR_HANDLER ; + scmd->flags |=SCMD_LAST ;/* * Lock sdev->state_mutex to avoid that scsi_device_quiesce() can
@@ -2459,6 +2460,7 @@ scsi_ioctl_reset(struct scsi_device *devscsi_init_command (dev, scmd); scmd->submitter =SUBMITTED_BY_SCSI_RESET_IOCTL ; + scmd->flags |=SCMD_LAST ;memset (&scmd->sdb,0 ,sizeof (scmd->sdb)); scmd->cmd_len =0 ;
Greg Kroah-Hartman
maintainerPATCH 141/156 tracing / synthetic: Disable events after testing in synth_event_gen_test_init()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Steven Rostedt (Google) <[email protected]>
commit 88b30c7f5d27e1594d70dc2bd7199b18f2b57fa9 upstream.
The synth_event_gen_test module can be built in, if someone wants to run the tests at boot up and not have to load them.
The synth_event_gen_test_init() function creates and enables the synthetic events and runs its tests.
The synth_event_gen_test_exit() disables the events it created and destroys the events.
If the module is builtin, the events are never disabled. The issue is, the events should be disable after the tests are run. This could be an issue if the rest of the boot up tests are enabled, as they expect the events to be in a known state before testing. That known state happens to be disabled.
When CONFIG_SYNTH_EVENT_GEN_TEST=y and CONFIG_EVENT_TRACE_STARTUP_TEST=y a warning will trigger:
Running tests on trace events:
Testing event create_synth_test:
Enabled event during self test!
------------[ cut here ]------------ WARNING: CPU: 2 PID: 1 at kernel/trace/trace_events.c:4150 event_trace_self_tests+0x1c2/0x480 Modules linked in: CPU: 2 PID: 1 Comm: swapper/0 Not tainted 6.7.0-rc2-test-00031-gb803d7c664d5-dirty #276 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:event_trace_self_tests+0x1c2/0x480 Code: bb e8 a2 ab 5d fc 48 8d 7b 48 e8 f9 3d 99 fc 48 8b 73 48 40 f6 c6 01 0f 84 d6 fe ff ff 48 c7 c7 20 b6 ad bb e8 7f ab 5d fc 90 <0f> 0b 90 48 89 df e8 d3 3d 99 fc 48 8b 1b 4c 39 f3 0f 85 2c ff ff RSP: 0000:ffffc9000001fdc0 EFLAGS: 00010246 RAX: 0000000000000029 RBX: ffff88810399ca80 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffffb9f19478 RDI: ffff88823c734e64 RBP: ffff88810399f300 R08: 0000000000000000 R09: fffffbfff79eb32a R10: ffffffffbcf59957 R11: 0000000000000001 R12: ffff888104068090 R13: ffffffffbc89f0a0 R14: ffffffffbc8a0f08 R15: 0000000000000078 FS: 0000000000000000(0000) GS:ffff88823c700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001f6282001 CR4: 0000000000170ef0 Call Trace: <TASK> ? __warn+0xa5/0x200 ? event_trace_self_tests+0x1c2/0x480 ? report_bug+0x1f6/0x220 ? handle_bug+0x6f/0x90 ? exc_invalid_op+0x17/0x50 ? asm_exc_invalid_op+0x1a/0x20 ? tracer_preempt_on+0x78/0x1c0 ? event_trace_self_tests+0x1c2/0x480 ? __pfx_event_trace_self_tests_init+0x10/0x10 event_trace_self_tests_init+0x27/0xe0 do_one_initcall+0xd6/0x3c0 ? __pfx_do_one_initcall+0x10/0x10 ? kasan_set_track+0x25/0x30 ? rcu_is_watching+0x38/0x60 kernel_init_freeable+0x324/0x450 ? __pfx_kernel_init+0x10/0x10 kernel_init+0x1f/0x1e0 ? _raw_spin_unlock_irq+0x33/0x50 ret_from_fork+0x34/0x60 ? __pfx_kernel_init+0x10/0x10 ret_from_fork_asm+0x1b/0x30 </TASK>
This is because the synth_event_gen_test_init() left the synthetic events that it created enabled. By having it disable them after testing, the other selftests will run fine.
--- kernel/trace/synth_event_gen_test.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
kernel/trace/synth_event_gen_test.c +11 -0
@@ -477,6 +477,17 @@ static int __init synth_event_gen_test_i ret =test_trace_synth_event ();WARN_ON (ret); + +/* Disable when done */ +trace_array_set_clr_event (gen_synth_test->tr, +"synthetic" , +"gen_synth_test" , false); +trace_array_set_clr_event (empty_synth_test->tr, +"synthetic" , +"empty_synth_test" , false); +trace_array_set_clr_event (create_synth_test->tr, +"synthetic" , +"create_synth_test" , false); out:return ret; }
Greg Kroah-Hartman
maintainerPATCH 142/156 dm-integrity: dont modify bios immutable bio_vec in integrity_metadata()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mikulas Patocka <[email protected]>
commit b86f4b790c998afdbc88fe1aa55cfe89c4068726 upstream.
__bio_for_each_segment assumes that the first struct bio_vec argument doesn't change - it calls "bio_advance_iter_single((bio), &(iter), (bvl).bv_len)" to advance the iterator. Unfortunately, the dm-integrity code changes the bio_vec with "bv.bv_len -= pos". When this code path is taken, the iterator would be out of sync and dm-integrity would report errors. This happens if the machine is out of memory and "kmalloc" fails.
Fix this bug by making a copy of "bv" and changing the copy instead.
--- drivers/md/dm-integrity.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/md/dm-integrity.c +6 -5
@@ -1765,11 +1765,12 @@ static void integrity_metadata(struct wo sectors_to_process = dio->range.n_sectors;__bio_for_each_segment (bv, bio, iter, dio->bio_details.bi_iter) { +struct bio_vec bv_copy = bv;unsigned int pos;char *mem, *checksums_ptr; again: - mem =bvec_kmap_local (&bv); + mem =bvec_kmap_local (&bv_copy); pos =0 ; checksums_ptr = checksums; do {
@@ -1778,7 +1779,7 @@ again: sectors_to_process -= ic->sectors_per_block; pos += ic->sectors_per_block <<SECTOR_SHIFT ; sector += ic->sectors_per_block; - }while (pos < bv.bv_len && sectors_to_process && checksums != checksums_onstack); + }while (pos < bv_copy.bv_len && sectors_to_process && checksums != checksums_onstack);kunmap_local (mem); r = dm_integrity_rw_tag(ic, checksums, &dio->metadata_block, &dio->metadata_offset,
@@ -1803,9 +1804,9 @@ again:if (!sectors_to_process)break ; -if (unlikely (pos < bv.bv_len)) { - bv.bv_offset += pos; - bv.bv_len -= pos; +if (unlikely (pos < bv_copy.bv_len)) { + bv_copy.bv_offset += pos; + bv_copy.bv_len -= pos; goto again; } }
Greg Kroah-Hartman
maintainerPATCH 143/156 selftests: mptcp: join: fix subflow_send_ack lookup
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Geliang Tang <[email protected]>
commit c8f021eec5817601dbd25ab7e3ad5c720965c688 upstream.
MPC backups tests will skip unexpected sometimes (For example, when compiling kernel with an older version of gcc, such as gcc-8), since static functions like mptcp_subflow_send_ack also be listed in /proc/kallsyms, with a 't' in front of it, not 'T' ('T' is for a global function):
Quoted 1 line
grep "
mptcp_subflow_send_ack"/proc/kallsyms
0000000000000000 T __pfx___mptcp_subflow_send_ack 0000000000000000 T __mptcp_subflow_send_ack 0000000000000000 t __pfx_mptcp_subflow_send_ack 0000000000000000 t mptcp_subflow_send_ack
In this case, mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$" will be false, MPC backups tests will skip. This is not what we expected.
The correct logic here should be: if mptcp_subflow_send_ack is not a global function in /proc/kallsyms, do these MPC backups tests. So a 'T' must be added in front of mptcp_subflow_send_ack.
--- tools/testing/selftests/net/mptcp/mptcp_join.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tools/testing/selftests/net/mptcp/mptcp_join.sh +4 -4
@@ -2773,7 +2773,7 @@ backup_tests() fi if reset "mpc backup" && - continue_if mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$"; then + continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,backup speed=slow \ run_tests $ns1 $ns2 10.0.1.1
@@ -2782,7 +2782,7 @@ backup_tests() fi if reset "mpc backup both sides" && - continue_if mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$"; then + continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then pm_nl_add_endpoint $ns1 10.0.1.1 flags subflow,backup pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,backup speed=slow \
@@ -2792,7 +2792,7 @@ backup_tests() fi if reset "mpc switch to backup" && - continue_if mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$"; then + continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow sflags=backup speed=slow \ run_tests $ns1 $ns2 10.0.1.1
@@ -2801,7 +2801,7 @@ backup_tests() fi if reset "mpc switch to backup both sides" && - continue_if mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$"; then + continue_if mptcp_lib_kallsyms_doesnt_have "T mptcp_subflow_send_ack$"; then pm_nl_add_endpoint $ns1 10.0.1.1 flags subflow pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow sflags=backup speed=slow \
Greg Kroah-Hartman
maintainerPATCH 144/156 pinctrl: starfive: jh7110: ignore disabled device tree nodes
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nam Cao <[email protected]>
commit f6e3b40a2c89c1d832ed9cb031dc9825bbf43b7c upstream.
The driver always registers pin configurations in device tree. This can cause some inconvenience to users, as pin configurations in the base device tree cannot be disabled in the device tree overlay, even when the relevant devices are not used.
Ignore disabled pin configuration nodes in device tree.
--- drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c +2 -2
@@ -135,7 +135,7 @@ static int jh7110_dt_node_to_map(structint ret; ngroups =0 ; -for_each_child_of_node (np, child) +for_each_available_child_of_node (np, child) ngroups +=1 ; nmaps =2 * ngroups;
@@ -150,7 +150,7 @@ static int jh7110_dt_node_to_map(struct nmaps =0 ; ngroups =0 ;mutex_lock (&sfp->mutex); -for_each_child_of_node (np, child) { +for_each_available_child_of_node (np, child) {int npins =of_property_count_u32_elems (child,"pinmux" );int *pins;u32 *pinmux;
Greg Kroah-Hartman
maintainerPATCH 145/156 pinctrl: starfive: jh7100: ignore disabled device tree nodes
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nam Cao <[email protected]>
commit 5c584f175d32f9cc66c909f851cd905da58b39ea upstream.
The driver always registers pin configurations in device tree. This can cause some inconvenience to users, as pin configurations in the base device tree cannot be disabled in the device tree overlay, even when the relevant devices are not used.
Ignore disabled pin configuration nodes in device tree.
--- drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c +2 -2
@@ -492,7 +492,7 @@ static int starfive_dt_node_to_map(struc nmaps =0 ; ngroups =0 ; -for_each_child_of_node (np, child) { +for_each_available_child_of_node (np, child) {int npinmux =of_property_count_u32_elems (child,"pinmux" );int npins =of_property_count_u32_elems (child,"pins" );
@@ -527,7 +527,7 @@ static int starfive_dt_node_to_map(struc nmaps =0 ; ngroups =0 ;mutex_lock (&sfp->mutex); -for_each_child_of_node (np, child) { +for_each_available_child_of_node (np, child) {int npins;int i;
Greg Kroah-Hartman
maintainerPATCH 146/156 bus: ti-sysc: Flush posted write only after srst_udelay
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tony Lindgren <[email protected]>
commit f71f6ff8c1f682a1cae4e8d7bdeed9d7f76b8f75 upstream.
Commit 34539b442b3b ("bus: ti-sysc: Flush posted write on enable before reset") caused a regression reproducable on omap4 duovero where the ISS target module can produce interconnect errors on boot. Turns out the registers are not accessible until after a delay for devices needing a ti,sysc-delay-us value.
Let's fix this by flushing the posted write only after the reset delay. We do flushing also for ti,sysc-delay-us using devices as that should trigger an interconnect error if the delay is not properly configured.
Let's also add some comments while at it.
--- drivers/bus/ti-sysc.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
drivers/bus/ti-sysc.c +14 -4
@@ -2158,13 +2158,23 @@ static int sysc_reset(struct sysc *ddata sysc_val =sysc_read_sysconfig (ddata); sysc_val |= sysc_mask;sysc_write (ddata, sysc_offset, sysc_val); -/* Flush posted write */ + +/* +* Some devices need a delay before reading registers +* after reset. Presumably a srst_udelay is not needed +* for devices that use a rstctrl register reset. +*/ +if (ddata->cfg.srst_udelay) +fsleep (ddata->cfg.srst_udelay); + +/* +* Flush posted write. For devices needing srst_udelay +* this should trigger an interconnect error if the +* srst_udelay value is needed but not configured. +*/ sysc_val =sysc_read_sysconfig (ddata); } -if (ddata->cfg.srst_udelay) -fsleep (ddata->cfg.srst_udelay); -if (ddata->post_reset_quirk) ddata->post_reset_quirk (ddata);
Greg Kroah-Hartman
maintainerPATCH 147/156 gpio: dwapb: mask/unmask IRQ when disable/enale it
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: xiongxin <[email protected]>
commit 1cc3542c76acb5f59001e3e562eba672f1983355 upstream.
In the hardware implementation of the I2C HID driver based on DesignWare GPIO IRQ chip, when the user continues to use the I2C HID device in the suspend process, the I2C HID interrupt will be masked after the resume process is finished.
This is because the disable_irq()/enable_irq() of the DesignWare GPIO driver does not synchronize the IRQ mask register state. In normal use of the I2C HID procedure, the GPIO IRQ irq_mask()/irq_unmask() functions are called in pairs. In case of an exception, i2c_hid_core_suspend() calls disable_irq() to disable the GPIO IRQ. With low probability, this causes irq_unmask() to not be called, which causes the GPIO IRQ to be masked and not unmasked in enable_irq(), raising an exception.
Add synchronization to the masked register state in the dwapb_irq_enable()/dwapb_irq_disable() function. mask the GPIO IRQ before disabling it. After enabling the GPIO IRQ, unmask the IRQ.
--- drivers/gpio/gpio-dwapb.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/gpio/gpio-dwapb.c +8 -4
@@ -283,13 +283,15 @@ static void dwapb_irq_enable(struct irq_ {struct gpio_chip *gc =irq_data_get_irq_chip_data (d);struct dwapb_gpio *gpio =to_dwapb_gpio (gc); +irq_hw_number_t hwirq =irqd_to_hwirq (d);unsigned long flags;u32 val;raw_spin_lock_irqsave (&gc->bgpio_lock, flags); - val =dwapb_read (gpio,GPIO_INTEN ); - val |=BIT (irqd_to_hwirq (d)); + val =dwapb_read (gpio,GPIO_INTEN ) |BIT (hwirq);dwapb_write (gpio,GPIO_INTEN , val); + val =dwapb_read (gpio,GPIO_INTMASK ) & ~BIT (hwirq); +dwapb_write (gpio,GPIO_INTMASK , val);raw_spin_unlock_irqrestore (&gc->bgpio_lock, flags); }
@@ -297,12 +299,14 @@ static void dwapb_irq_disable(struct irq {struct gpio_chip *gc =irq_data_get_irq_chip_data (d);struct dwapb_gpio *gpio =to_dwapb_gpio (gc); +irq_hw_number_t hwirq =irqd_to_hwirq (d);unsigned long flags;u32 val;raw_spin_lock_irqsave (&gc->bgpio_lock, flags); - val =dwapb_read (gpio,GPIO_INTEN ); - val &= ~BIT (irqd_to_hwirq (d)); + val =dwapb_read (gpio,GPIO_INTMASK ) |BIT (hwirq); +dwapb_write (gpio,GPIO_INTMASK , val); + val =dwapb_read (gpio,GPIO_INTEN ) & ~BIT (hwirq);dwapb_write (gpio,GPIO_INTEN , val);raw_spin_unlock_irqrestore (&gc->bgpio_lock, flags); }
Greg Kroah-Hartman
maintainerPATCH 148/156 lib/vsprintf: Fix %pfwf when current node refcount == 0
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Herve Codina <[email protected]>
commit 5c47251e8c4903111608ddcba2a77c0c425c247c upstream.
A refcount issue can appeared in __fwnode_link_del() due to the pr_debug() call:
WARNING: CPU: 0 PID: 901 at lib/refcount.c:25 refcount_warn_saturate+0xe5/0x110 Call Trace: <TASK> ... of_node_get+0x1e/0x30 of_fwnode_get+0x28/0x40 fwnode_full_name_string+0x34/0x90 fwnode_string+0xdb/0x140 ... vsnprintf+0x17b/0x630 ... __fwnode_link_del+0x25/0xa0 fwnode_links_purge+0x39/0xb0 of_node_release+0xd9/0x180 ...
Indeed, an fwnode (of_node) is being destroyed and so, of_node_release() is called because the of_node refcount reached 0.
Quoted 1 line
From
of_node_release()several function calls are done and lead to
a pr_debug() calls with %pfwf to print the fwnode full name. The issue is not present if we change %pfwf to %pfwP.
To print the full name, %pfwf iterates over the current node and its parents and obtain/drop a reference to all nodes involved.
In order to allow to print the full name (%pfwf) of a node while it is being destroyed, do not obtain/drop a reference to this current node.
--- lib/vsprintf.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
lib/vsprintf.c +8 -3
@@ -2110,15 +2110,20 @@ char *fwnode_full_name_string(struct fwn/* Loop starting from the root node to the current node. */ for (depth =fwnode_count_parents (fwnode); depth >=0 ; depth--) { -struct fwnode_handle *__fwnode = -fwnode_get_nth_parent (fwnode, depth); +/* +* Only get a reference for other nodes (i.e. parent nodes). +* fwnode refcount may be 0 here. +*/ +struct fwnode_handle *__fwnode = depth ? +fwnode_get_nth_parent (fwnode, depth) : fwnode; buf =string (buf, end,fwnode_get_name_prefix (__fwnode), default_str_spec); buf =string (buf, end,fwnode_get_name (__fwnode), default_str_spec); -fwnode_handle_put (__fwnode); +if (depth) +fwnode_handle_put (__fwnode); }return buf;
Greg Kroah-Hartman
maintainerPATCH 149/156 thunderbolt: Fix memory leak in margining_port_remove()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yaxiong Tian <[email protected]>
commit ac43c9122e4287bbdbe91e980fc2528acb72cc1e upstream.
The dentry returned by debugfs_lookup() needs to be released by calling dput() which is missing in margining_port_remove(). Fix this by calling debugfs_lookup_and_remove() that combines both and avoids the memory leak.
--- drivers/thunderbolt/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thunderbolt/debugfs.c +1 -1
@@ -959,7 +959,7 @@ static void margining_port_remove(structsnprintf (dir_name,sizeof (dir_name),"port%d" , port->port); parent =debugfs_lookup (dir_name, port->sw->debugfs_dir);if (parent) -debugfs_remove_recursive (debugfs_lookup ("margining" , parent)); +debugfs_lookup_and_remove ("margining" , parent);kfree (port->usb4->margining); port->usb4->margining =NULL ;
Greg Kroah-Hartman
maintainerPATCH 150/156 KVM: arm64: vgic: Simplify kvm_vgic_destroy()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marc Zyngier <[email protected]>
commit 01ad29d224ff73bc4e16e0ef9ece17f28598c4a4 upstream.
When destroying a vgic, we have rather cumbersome rules about when slots_lock and config_lock are held, resulting in fun buglets.
The first port of call is to simplify kvm_vgic_map_resources() so that there is only one call to kvm_vgic_destroy() instead of two, with the second only holding half of the locks.
For that, we kill the non-locking primitive and move the call outside of the locking altogether. This doesn't change anything (we re-acquire the locks and teardown the whole vgic), and simplifies the code significantly.
--- arch/arm64/kvm/vgic/vgic-init.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-)
arch/arm64/kvm/vgic/vgic-init.c +14 -15
@@ -382,26 +382,24 @@ void kvm_vgic_vcpu_destroy(struct kvm_vc vgic_cpu->rd_iodev.base_addr =VGIC_ADDR_UNDEF ; } -static void __kvm_vgic_destroy (struct kvm *kvm) +void kvm_vgic_destroy (struct kvm *kvm) {struct kvm_vcpu *vcpu;unsigned long i; -lockdep_assert_held (&kvm->arch.config_lock); +mutex_lock (&kvm->slots_lock);vgic_debug_destroy (kvm);kvm_for_each_vcpu (i, vcpu, kvm)kvm_vgic_vcpu_destroy (vcpu); +mutex_lock (&kvm->arch.config_lock); +kvm_vgic_dist_destroy (kvm); -} -void kvm_vgic_destroy (struct kvm *kvm) -{ -mutex_lock (&kvm->arch.config_lock); -__kvm_vgic_destroy (kvm);mutex_unlock (&kvm->arch.config_lock); +mutex_unlock (&kvm->slots_lock); }/**
@@ -469,25 +467,26 @@ int kvm_vgic_map_resources(struct kvm *k type =VGIC_V3 ; } -if (ret) { -__kvm_vgic_destroy (kvm); +if (ret) goto out; - } + dist->ready = true; dist_base = dist->vgic_dist_base;mutex_unlock (&kvm->arch.config_lock); ret =vgic_register_dist_iodev (kvm, dist_base, type); -if (ret) { +if (ret)kvm_err ("Unable to register VGIC dist MMIO regions\n" ); -kvm_vgic_destroy (kvm); - } -mutex_unlock (&kvm->slots_lock); -return ret; + goto out_slots; out:mutex_unlock (&kvm->arch.config_lock); +out_slots:mutex_unlock (&kvm->slots_lock); + +if (ret) +kvm_vgic_destroy (kvm); +return ret; }
Greg Kroah-Hartman
maintainerPATCH 151/156 KVM: arm64: vgic: Add a non-locking primitive for kvm_vgic_vcpu_destroy()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marc Zyngier <[email protected]>
commit d26b9cb33c2d1ba68d1f26bb06c40300f16a3799 upstream.
As we are going to need to call into kvm_vgic_vcpu_destroy() without prior holding of the slots_lock, introduce __kvm_vgic_vcpu_destroy() as a non-locking primitive of kvm_vgic_vcpu_destroy().
--- arch/arm64/kvm/vgic/vgic-init.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
arch/arm64/kvm/vgic/vgic-init.c +11 -2
@@ -368,7 +368,7 @@ static void kvm_vgic_dist_destroy(structvgic_v4_teardown (kvm); } -void kvm_vgic_vcpu_destroy (struct kvm_vcpu *vcpu) +static void __kvm_vgic_vcpu_destroy (struct kvm_vcpu *vcpu) {struct vgic_cpu *vgic_cpu = &vcpu->arch.vgic_cpu;
@@ -382,6 +382,15 @@ void kvm_vgic_vcpu_destroy(struct kvm_vc vgic_cpu->rd_iodev.base_addr =VGIC_ADDR_UNDEF ; } +void kvm_vgic_vcpu_destroy (struct kvm_vcpu *vcpu) +{ +struct kvm *kvm = vcpu->kvm; + +mutex_lock (&kvm->slots_lock); +__kvm_vgic_vcpu_destroy (vcpu); +mutex_unlock (&kvm->slots_lock); +} +void kvm_vgic_destroy (struct kvm *kvm) {struct kvm_vcpu *vcpu;
@@ -392,7 +401,7 @@ void kvm_vgic_destroy(struct kvm *kvm)vgic_debug_destroy (kvm);kvm_for_each_vcpu (i, vcpu, kvm) -kvm_vgic_vcpu_destroy (vcpu); +__kvm_vgic_vcpu_destroy (vcpu);mutex_lock (&kvm->arch.config_lock);
Greg Kroah-Hartman
maintainerPATCH 152/156 KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroy
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marc Zyngier <[email protected]>
commit 02e3858f08faabab9503ae2911cf7c7e27702257 upstream.
When failing to create a vcpu because (for example) it has a duplicate vcpu_id, we destroy the vcpu. Amusingly, this leaves the redistributor registered with the KVM_MMIO bus.
This is no good, and we should properly clean the mess. Force a teardown of the vgic vcpu interface, including the RD device before returning to the caller.
--- arch/arm64/kvm/arm.c | 2 +- arch/arm64/kvm/vgic/vgic-init.c | 5 ++++- arch/arm64/kvm/vgic/vgic-mmio-v3.c | 2 +- arch/arm64/kvm/vgic/vgic.h | 1 + 4 files changed, 7 insertions(+), 3 deletions(-)
arch/arm64/kvm/arm.c +1 -1
@@ -407,7 +407,7 @@ void kvm_arch_vcpu_destroy(struct kvm_vckvm_mmu_free_memory_cache (&vcpu->arch.mmu_page_cache);kvm_timer_vcpu_terminate (vcpu);kvm_pmu_vcpu_destroy (vcpu); - +kvm_vgic_vcpu_destroy (vcpu);kvm_arm_vcpu_destroy (vcpu); }
arch/arm64/kvm/vgic/vgic-init.c +4 -1
@@ -379,7 +379,10 @@ static void __kvm_vgic_vcpu_destroy(struvgic_flush_pending_lpis (vcpu);INIT_LIST_HEAD (&vgic_cpu->ap_list_head); - vgic_cpu->rd_iodev.base_addr =VGIC_ADDR_UNDEF ; +if (vcpu->kvm->arch.vgic.vgic_model ==KVM_DEV_TYPE_ARM_VGIC_V3 ) { +vgic_unregister_redist_iodev (vcpu); + vgic_cpu->rd_iodev.base_addr =VGIC_ADDR_UNDEF ; + } }void kvm_vgic_vcpu_destroy (struct kvm_vcpu *vcpu)
arch/arm64/kvm/vgic/vgic-mmio-v3.c +1 -1
@@ -820,7 +820,7 @@ out_unlock:return ret; } -static void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu) +void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu) {struct vgic_io_device *rd_dev = &vcpu->arch.vgic_cpu.rd_iodev;
arch/arm64/kvm/vgic/vgic.h +1 -0
@@ -241,6 +241,7 @@ int vgic_v3_lpi_sync_pending_status(struint vgic_v3_save_pending_tables (struct kvm *kvm);int vgic_v3_set_redist_base (struct kvm *kvm,u32 index,u64 addr,u32 count);int vgic_register_redist_iodev (struct kvm_vcpu *vcpu); +void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu);bool vgic_v3_check_base (struct kvm *kvm);void vgic_v3_load (struct kvm_vcpu *vcpu);
Greg Kroah-Hartman
maintainerPATCH 153/156 x86/alternatives: Sync core before enabling interrupts
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Gleixner <[email protected]>
commit 3ea1704a92967834bf0e64ca1205db4680d04048 upstream.
text_poke_early() does:
local_irq_save(flags); memcpy(addr, opcode, len); local_irq_restore(flags); sync_core();
That's not really correct because the synchronization should happen before interrupts are re-enabled to ensure that a pending interrupt observes the complete update of the opcodes.
It's not entirely clear whether the interrupt entry provides enough serialization already, but moving the sync_core() invocation into interrupt disabled region does no harm and is obviously correct.
--- arch/x86/kernel/alternative.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/alternative.c +1 -1
@@ -1685,8 +1685,8 @@ void __init_or_module text_poke_early(vo }else {local_irq_save (flags);memcpy (addr, opcode, len); -local_irq_restore (flags);sync_core (); +local_irq_restore (flags);/* * Could also do a CLFLUSH here to speed up CPU recovery; but
Greg Kroah-Hartman
maintainerPATCH 154/156 x86/alternatives: Disable interrupts and sync when optimizing NOPs in place
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Gleixner <[email protected]>
commit 2dc4196138055eb0340231aecac4d78c2ec2bea5 upstream.
apply_alternatives() treats alternatives with the ALT_FLAG_NOT flag set special as it optimizes the existing NOPs in place.
Unfortunately, this happens with interrupts enabled and does not provide any form of core synchronization.
So an interrupt hitting in the middle of the update and using the affected code path will observe a half updated NOP and crash and burn. The following 3 NOP sequence was observed to expose this crash halfway reliably under QEMU
32bit:
0x90 0x90 0x90
which is replaced by the optimized 3 byte NOP:
0x8d 0x76 0x00
So an interrupt can observe:
1) 0x90 0x90 0x90 nop nop nop
2) 0x8d 0x90 0x90 undefined
3) 0x8d 0x76 0x90 lea -0x70(%esi),%esi
4) 0x8d 0x76 0x00 lea 0x0(%esi),%esi
Where only #1 and #4 are true NOPs. The same problem exists for 64bit obviously.
Disable interrupts around this NOP optimization and invoke sync_core() before re-enabling them.
--- arch/x86/kernel/alternative.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
arch/x86/kernel/alternative.c +11 -1
@@ -255,6 +255,16 @@ static void __init_or_module noinline optimize_nops(u8 *instr, size_t len) } } +static void __init_or_module noinline optimize_nops_inplace(u8 *instr, size_t len) +{ +unsigned long flags; + +local_irq_save (flags); +optimize_nops (instr, len); +sync_core (); +local_irq_restore (flags); +} +/* * In this context, "source" is where the instructions are placed in the * section .altinstr_replacement, for example during kernel build by the
@@ -438,7 +448,7 @@ void __init_or_module noinline apply_alternatives(struct alt_instr *start,* patch if feature is *NOT* present. */ if (!boot_cpu_has (a->cpuid) == !(a->flags &ALT_FLAG_NOT )) { -optimize_nops (instr, a->instrlen); +optimize_nops_inplace (instr, a->instrlen);continue ; }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 155/156 x86/smpboot/64: Handle X2APIC BIOS inconsistency gracefully
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Gleixner <[email protected]>
commit 69a7386c1ec25476a0c78ffeb59de08a2a08f495 upstream.
Chris reported that a Dell PowerEdge T340 system stopped to boot when upgrading to a kernel which contains the parallel hotplug changes. Disabling parallel hotplug on the kernel command line makes it boot again.
It turns out that the Dell BIOS has x2APIC enabled and the boot CPU comes up in X2APIC mode, but the APs come up inconsistently in xAPIC mode.
Parallel hotplug requires that the upcoming CPU reads out its APIC ID from the local APIC in order to map it to the Linux CPU number.
In this particular case the readout on the APs uses the MMIO mapped registers because the BIOS failed to enable x2APIC mode. That readout results in a page fault because the kernel does not have the APIC MMIO space mapped when X2APIC mode was enabled by the BIOS on the boot CPU and the kernel switched to X2APIC mode early. That page fault can't be handled on the upcoming CPU that early and results in a silent boot failure.
If parallel hotplug is disabled the system boots because in that case the APIC ID read is not required as the Linux CPU number is provided to the AP in the smpboot control word. When the kernel uses x2APIC mode then the APs are switched to x2APIC mode too slightly later in the bringup process, but there is no reason to do it that late.
Cure the BIOS bogosity by checking in the parallel bootup path whether the kernel uses x2APIC mode and if so switching over the APs to x2APIC mode before the APIC ID readout.
--- arch/x86/kernel/head_64.S | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/x86/kernel/head_64.S +16 -0
@@ -256,6 +256,22 @@ SYM_INNER_LABEL(secondary_startup_64_no_ testl $X2APIC_ENABLE, %eax jnz .Lread_apicid_msr +#ifdef CONFIG_X86_X2APIC + /* + * If system is in X2APIC mode then MMIO base might not be + * mapped causing the MMIO read below to fault. Faults can't + * be handled at that point. + */ + cmpl $0, x2apic_mode(%rip) + jz .Lread_apicid_mmio + + /* Force the AP into X2APIC mode. */ + orl $X2APIC_ENABLE, %eax + wrmsr + jmp .Lread_apicid_msr +#endif + +.Lread_apicid_mmio: /* Read the APIC ID from the fix-mapped MMIO space. */ movq apic_mmio_base(%rip), %rcx addq $APIC_ID, %rcx
Greg Kroah-Hartman
maintainerPATCH 156/156 spi: cadence: revert "Add SPI transfer delays"
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nam Cao <[email protected]>
commit 7a733e060bd20edb63b1f27f0b29cf9b184e0e8b upstream.
The commit 855a40cd8ccc ("spi: cadence: Add SPI transfer delays") adds a delay after each transfer into the driver's transfer_one(). However, the delay is already done in SPI core. So this commit unnecessarily doubles the delay amount. Revert this commit.
--- drivers/spi/spi-cadence.c | 1 - 1 file changed, 1 deletion(-)
drivers/spi/spi-cadence.c +0 -1
@@ -451,7 +451,6 @@ static int cdns_transfer_one(struct spi_udelay (10 );cdns_spi_process_fifo (xspi, xspi->tx_fifo_depth,0 ); -spi_transfer_delay_exec (transfer);cdns_spi_write (xspi,CDNS_SPI_IER ,CDNS_SPI_IXR_DEFAULT );return transfer->len;
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Mon, 01 Jan 2024 11:57:43 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.9-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.thanks,
greg k-h
System runs fine, no noticeable regressions.
[ 0.000000] Linux version 6.6.9-rc1-ktest+ (rbmarliere@debian) (gcc (Debian 13.2.0-9) 13.2.0, GNU ld (GNU Binutils for Debian) 2.41.50.20231227) #1 SMP PREEMPT_DYNAMIC Sat Dec 30 08:42:24 -03 2023
Thanks,
- Ricardo
Hi Greg
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Mon, 01 Jan 2024 11:57:43 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.9-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.thanks,
greg k-h
6.6.9-rc1 tested.
Build successfully completed.
Boot successfully completed.
No dmesg regressions.
Video output normal.
Sound output normal.
Lenovo ThinkPad X1 Carbon Gen10(Intel i7-1260P(x86_64) arch linux)
[ 0.000000] Linux version 6.6.9-rc1rv
(takeshi@ThinkPadX1Gen10J0764) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Sat Dec 30 23:43:57 JST 2023
Thanks
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Mon, 01 Jan 2024 11:57:43 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.9-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.thanks,
greg k-h
On ARCH_BRCMST using 32-bit and 64-bit ARM kernels, build tested on BMIPS_GENERIC:
Signature · 1 line
Florian
Hello,
Quoted 5 lines · On Sat, 30 Dec 2023 11:57:34 +0000 Greg Kroah-Hartman…
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Quoted 8 lines
Responses should be made by Mon, 01 Jan 2024 11:57:43 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.9-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.
This rc kernel passes DAMON functionality test[1] on my test machine. Attaching the test results summary below. Please note that I retrieved the kernel from linux-stable-rc tree[2].
[1] https://github.com/awslabs/damon-tests/tree/next/corr
[2] ac5757a323d0 ("Linux 6.6.9-rc1")
Thanks,
SJ
[...]
---
ok 1 selftests: damon: debugfs_attrs.sh
ok 2 selftests: damon: debugfs_schemes.sh
ok 3 selftests: damon: debugfs_target_ids.sh
ok 4 selftests: damon: debugfs_empty_targets.sh
ok 5 selftests: damon: debugfs_huge_count_read_write.sh
ok 6 selftests: damon: debugfs_duplicate_context_creation.sh
ok 7 selftests: damon: debugfs_rm_non_contexts.sh
ok 8 selftests: damon: sysfs.sh
ok 9 selftests: damon: sysfs_update_removed_scheme_dir.sh
ok 10 selftests: damon: reclaim.sh
ok 11 selftests: damon: lru_sort.sh
ok 1 selftests: damon-tests: kunit.sh
ok 2 selftests: damon-tests: huge_count_read_write.sh
ok 3 selftests: damon-tests: buffer_overflow.sh
ok 4 selftests: damon-tests: rm_contexts.sh
ok 5 selftests: damon-tests: record_null_deref.sh
ok 6 selftests: damon-tests: dbgfs_target_ids_read_before_terminate_race.sh ok 7 selftests: damon-tests: dbgfs_target_ids_pid_leak.sh
ok 8 selftests: damon-tests: damo_tests.sh
ok 9 selftests: damon-tests: masim-record.sh
ok 10 selftests: damon-tests: build_i386.sh
ok 11 selftests: damon-tests: build_arm64.sh
ok 12 selftests: damon-tests: build_i386_idle_flag.sh
ok 13 selftests: damon-tests: build_i386_highpte.sh
ok 14 selftests: damon-tests: build_nomemcg.sh
[33m
[92mPASS [39m
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Mon, 01 Jan 2024 11:57:43 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.9-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.thanks,
greg k-h
Built and booted successfully on RISC-V RV64 (HiFive Unmatched).
Did not work for me on Debian testing on a Thinkpad Edge i3 laptop just booted me to busybox
Den lör 30 dec. 2023 kl 13:01 skrev Greg Kroah-Hartman <[email protected]>:
Quoted 685 lines
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Mon, 01 Jan 2024 11:57:43 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.9-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:Greg Kroah-Hartman <[email protected]>
Linux 6.6.9-rc1Nam Cao <[email protected]>
spi: cadence: revert "Add SPI transfer delays"Thomas Gleixner <[email protected]>
x86/smpboot/64: Handle X2APIC BIOS inconsistency gracefullyThomas Gleixner <[email protected]>
x86/alternatives: Disable interrupts and sync when optimizing NOPs in placeThomas Gleixner <[email protected]>
x86/alternatives: Sync core before enabling interruptsMarc Zyngier <[email protected]>
KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroyMarc Zyngier <[email protected]>
KVM: arm64: vgic: Add a non-locking primitive forkvm_vgic_vcpu_destroy()Marc Zyngier <[email protected]>
KVM: arm64: vgic: Simplifykvm_vgic_destroy()Yaxiong Tian <[email protected]>
thunderbolt: Fix memory leak inmargining_port_remove()Herve Codina <[email protected]>
lib/vsprintf: Fix %pfwf when current node refcount == 0xiongxin <[email protected]>
gpio: dwapb: mask/unmask IRQ when disable/enale itTony Lindgren <[email protected]>
bus: ti-sysc: Flush posted write only aftersrst_udelayNam Cao <[email protected]>
pinctrl: starfive: jh7100: ignore disabled device tree nodesNam Cao <[email protected]>
pinctrl: starfive: jh7110: ignore disabled device tree nodesGeliang Tang <[email protected]>
selftests: mptcp: join: fixsubflow_send_acklookupMikulas Patocka <[email protected]>
dm-integrity: don't modify bio's immutablebio_vecinintegrity_metadata()Steven Rostedt (Google) <[email protected]>
tracing / synthetic: Disable events after testing insynth_event_gen_test_init()Alexander Atanasov <[email protected]>
scsi: core: Always send batch on reset or error handling commandMartin K. Petersen <[email protected]>
Revert "scsi: aacraid: Reply queue mapping to CPUs based on IRQ affinity"Rafał Miłecki <[email protected]>
nvmem:brcm_nvram: store a copy of NVRAM contentLouis Chauvet <[email protected]>
spi: atmel: Fix clock issue when using devices with different polaritiesMiquel Raynal <[email protected]>
spi: atmel: Prevent spi transfers from being killedMiquel Raynal <[email protected]>
spi: atmel: Do not cancel a transfer upon any signalSteven Rostedt (Google) <[email protected]>
ring-buffer: Fix slowpath of interrupted eventSteven Rostedt (Google) <[email protected]>
ring-buffer: Remove useless update towrite_stampinrb_try_to_discard()Mathieu Desnoyers <[email protected]>
ring-buffer: Fix 32-bitrb_time_read()race withrb_time_cmpxchg()JP Kobryn <[email protected]>
9p: prevent read overrun in protocol dump tracepointVille Syrjälä <[email protected]>
drm/i915/dmc: Don't enable any pipe DMC eventsVille Syrjälä <[email protected]>
drm/i915: Reject async flips with bigjoinerPaulo Alcantara <[email protected]>
smb: client: fix OOB insmbCalcSize()Paulo Alcantara <[email protected]>
smb: client: fix OOB inSMB2_query_info_init()Paulo Alcantara <[email protected]>
smb: client: fix potential OOB incifs_dump_detail()Paulo Alcantara <[email protected]>
smb: client: fix OOB in cifsd when receiving compounded respsNeilBrown <[email protected]>
nfsd: callnfsd_last_thread()before finalnfsd_put()Fabio Estevam <[email protected]>
dt-bindings: nvmem: mxs-ocotp: Document fsl,ocotpLai Peter Jun Ann <[email protected]>
net: stmmac: fix incorrect flag check in timestamp interruptThomas Weißschuh <[email protected]>
net: avoid build bug in skb extension length calculationRonald Wahl <[email protected]>
net: ks8851: Fix TX stall caused by TX buffer overrunRouven Czerwinski <[email protected]>
net: rfkill: gpio: set GPIO directionFedor Pchelkin <[email protected]>
net: 9p: avoid freeing uninit memory inp9pdu_vreadfChristoffer Sandberg <[email protected]>
Input:soc_button_array- add mapping for airplane mode buttonJose Ignacio Tornos Martinez <[email protected]>
net: usb:ax88179_178a: avoid failed operations when device is disconnectedDan Carpenter <[email protected]>
usb: fotg210-hcd: delete an incorrect bounds testJohan Hovold <[email protected]>
usb: typec: ucsi: fix gpio-based orientation detectionAlex Lu <[email protected]>
Bluetooth: Add more enc key size checkXiao Yao <[email protected]>
Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LEFrédéric Danis <[email protected]>
Bluetooth: L2CAP: Send reject on command corrupted requestHyunwoo Kim <[email protected]>
Bluetooth:af_bluetooth: Fix Use-After-Free inbt_sock_recvmsgLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_event: Fix not checking ifHCI_OP_INQUIRYhas been sentGergo Koteles <[email protected]>
ASoC: tas2781: check the validity of prm_no/cfg_noClément Villeret <[email protected]>
ALSA: hda/realtek: Add quirk for ASUS ROG GV302XAGergo Koteles <[email protected]>
ALSA: hda/tas2781: select program 0, conf 0 by defaultReinhard Speyerer <[email protected]>
USB: serial: option: add Quectel RM500Q R13 firmware supportSlark Xiao <[email protected]>
USB: serial: option: add Foxconn T99W265 with new baselineAlper Ak <[email protected]>
USB: serial: option: add Quectel EG912Y module supportMark Glover <[email protected]>
USB: serial:ftdi_sio: update Actisense PIDs constant namesJohannes Berg <[email protected]>
wifi: cfg80211: fix certs build to not depend on file orderChen-Yu Tsai <[email protected]>
wifi: cfg80211: Add my certificateFelix Fietkau <[email protected]>
wifi: mt76: fix crash with WED rx support enabledTasos Sahanidis <[email protected]>
usb-storage: Add quirk for incorrect WP on Kingston DT Ultimate 3.0 G3Tony Lindgren <[email protected]>
ARM: dts: Fix occasional boot hang for am3 usbJeremie Knuesel <[email protected]>
ALSA: usb-audio: Increase delay in MOTU M quirkDavid Lechner <[email protected]>
iio: triggered-buffer: prevent possible freeing of wrong bufferJavier Carrasco <[email protected]>
iio: tmag5273: fix temperature offsetWadim Egorov <[email protected]>
iio: adc:ti_am335x_adc: Fix return value check oftiadc_request_dma()Nuno Sa <[email protected]>
iio: imu: adis16475: addspi_device_idtableJavier Carrasco <[email protected]>
iio: common:ms_sensors:ms_sensors_i2c: fix humidity conversion time tableHaibo Chen <[email protected]>
iio: adc: imx93: add four channels for imx93 adcMatti Vaittinen <[email protected]>
iio: kx022a: Fix acceleration value scalingCan Guo <[email protected]>
scsi: ufs: core: Let thesq_lockprotectsq_tail_slotaccessChanWoo Lee <[email protected]>
scsi: ufs: qcom: Return ufs_qcom_clk_scale_*() errors inufs_qcom_clk_scale_notify()Wei Yongjun <[email protected]>
scsi: bnx2fc: Fix skb double free inbnx2fc_rcv()George Stark <[email protected]>
iio: adc: meson: add separate config for axg SoC familyHaoran Liu <[email protected]>
Input: ipaq-micro-keys - add error handling fordevm_kmemdupKonrad Dybcio <[email protected]>
interconnect: qcom: sm8250: Enablesync_stateSu Hui <[email protected]>
iio: imu:inv_mpu6050: fix an error code problem ininv_mpu6050_read_rawMike Tipton <[email protected]>
interconnect: Treatxlate()returning NULL node as an errorMaurizio Lombardi <[email protected]>
nvme-pci: fix sleeping function called from interrupt contextKent Gibson <[email protected]>
gpiolib: cdev: addgpio_devicelocking wrapper aroundgpio_ioctl()Alexis Lothoré <[email protected]>
pinctrl: at91-pio4: use dedicated lock class for IRQArnd Bergmann <[email protected]>
x86/xen: add CPU dependencies for 32-bit buildQuan Nguyen <[email protected]>
i2c: aspeed: Handle the coalesced stop conditions with the start conditions.ZhenGuo Yin <[email protected]>
drm/amdgpu: re-create idle bo's PTE during VM state machine resetYang Yingliang <[email protected]>
i2c: qcom-geni: fix missingclk_disable_unprepare()andgeni_se_resources_off()Shengjiu Wang <[email protected]>
ASoC:fsl_sai: Fix channel swap issue on i.MX8MPJerome Brunet <[email protected]>
ASoC: hdmi-codec: fix missing report for jack initial statusImre Deak <[email protected]>
drm/i915/mtl: Fix HDMI/DP PLL clock selectionKarthik Poosa <[email protected]>
drm/i915/hwmon: Fix static analysis tool reported issuesDavid Howells <[email protected]>
afs: Fix use-after-free due to get/remove race in volume treeDavid Howells <[email protected]>
afs: Fix overwriting of result of DNS queryDavid Howells <[email protected]>
keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiryEric Dumazet <[email protected]>
net: check dev->gso_max_size in gso_features_check()David Ahern <[email protected]>
net/ipv6: Revert remove expired routes with a separated list of routesLorenzo Bianconi <[email protected]>
net: ethernet:mtk_wed: fix possible NULL pointer dereference inmtk_wed_wo_queue_tx_clean()David Howells <[email protected]>
afs: Fix dynamic root lookup DNS checkDavid Howells <[email protected]>
afs: Fix the dynamic root'sd_deleteto always delete unused dentriesLiu Jian <[email protected]>
net: check vlan filter feature invlan_vids_add_by_dev()andvlan_vids_del_by_dev()Yury Norov <[email protected]>
net: mana: selectPAGE_POOLLarysa Zaremba <[email protected]>
ice: Fix PF with enabled XDP going no-carrier after resetDave Ertman <[email protected]>
ice: alter feature support check for SRIOV and LAGJacob Keller <[email protected]>
ice: stop trashing VF VSI aggregator node ID informationDaniel Golle <[email protected]>
net: phy: skip LED triggers on PHYs on SFP modulesAndy Gospodarek <[email protected]>
bnxt_en: do not map packet buffers twiceLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_core: Fixhci_conn_hash_lookup_cisArnd Bergmann <[email protected]>
Bluetooth:hci_event: shut up a false-positive warningYing Hsu <[email protected]>
Bluetooth: Fix deadlock invhci_send_frameLuiz Augusto von Dentz <[email protected]>
Bluetooth: Fix not notifying when connection encryption changesEric Dumazet <[email protected]>
net/rose: fix races inrose_kill_by_device()Zhipeng Lu <[email protected]>
ethernet: atheros: fix a memleak inatl1e_setup_ring_resourcesEric Dumazet <[email protected]>
net: sched: ife: fix potential use-after-freeShigeru Yoshida <[email protected]>
net: Return error fromsk_stream_wait_connect()ifsk_wait_event()failsSuman Ghosh <[email protected]>
octeontx2-pf: Fix graceful exit during PFC configuration failureVladimir Oltean <[email protected]>
net: mscc: ocelot: fix pMAC TX RMON stats for bucket 256-511 and aboveVladimir Oltean <[email protected]>
net: mscc: ocelot: fix eMAC TX RMON stats for bucket 256-511 and aboveRahul Rameshbabu <[email protected]>
net/mlx5e: Correct snprintf truncation handling forfw_versionbuffer used by representorsRahul Rameshbabu <[email protected]>
net/mlx5e: Correct snprintf truncation handling forfw_versionbufferDan Carpenter <[email protected]>
net/mlx5e: Fix error codes inalloc_branch_attr()Dan Carpenter <[email protected]>
net/mlx5e: Fix error code inmlx5e_tc_action_miss_mapping_get()Vlad Buslov <[email protected]>
net/mlx5: Refactor mlx5_flow_destination->rep pointer to vport numMoshe Shemesh <[email protected]>
net/mlx5: Fix fw tracer first block checkCarolina Jubran <[email protected]>
net/mlx5e: XDP, Drop fragmented packets larger than MTU sizeChris Mi <[email protected]>
net/mlx5e: Decreasenum_block_tcwhen unblock tc offloadJianbo Liu <[email protected]>
net/mlx5e: Fix overrun reported by coverityDinghao Liu <[email protected]>
net/mlx5e: fix a potential double-free infs_udp_create_groupsShifeng Li <[email protected]>
net/mlx5e: Fix a race in command alloc flowShifeng Li <[email protected]>
net/mlx5e: Fix slab-out-of-bounds inmlx5_query_nic_vport_mac_list()Vlad Buslov <[email protected]>
Revert "net/mlx5e: fix double free ofencap_header"Vlad Buslov <[email protected]>
Revert "net/mlx5e: fix double free ofencap_headerin update funcs"John Fastabend <[email protected]>
bpf: syzkaller found null ptr deref inunix_bpfproto addMichal Schmidt <[email protected]>
ice: fix theoretical out-of-bounds access in ethtool link modesJohannes Berg <[email protected]>
wifi: mac80211:mesh_plink: fixmatches_locallogicJohannes Berg <[email protected]>
wifi: mac80211: mesh: check element parsing succeededJohannes Berg <[email protected]>
wifi: mac80211: check defragmentation succeededJohannes Berg <[email protected]>
wifi: mac80211: don't re-add debugfs during reconfigEdward Adam Davis <[email protected]>
wifi: mac80211: check if the existing link config remains unchangedJohannes Berg <[email protected]>
wifi: iwlwifi: pcie: add another missing bh-disable for rxq->lockJohannes Berg <[email protected]>
wifi: ieee80211: don't require protected vendor action framesChuck Lever <[email protected]>
SUNRPC: Revert 5f7fc5d69f6e92ec0b38774c387f5cf7812c5806Rajvi Jingar <[email protected]>
platform/x86/intel/pmc: Fix hang inpmc_core_send_ltr_ignore()Heiko Carstens <[email protected]>
s390/vx: fix save/restore of fpu kernel contextGeert Uytterhoeven <[email protected]>
reset: Fix crash when freeing non-existent optional resetsKunwu Chan <[email protected]>
ARM: OMAP2+: Fix null pointer dereference and memory leak inomap_soc_device_initAndrew Davis <[email protected]>
ARM: dts: dra7: Fix DRA7 L3 NoC node register sizeChukun Pan <[email protected]>
arm64: dts: allwinner: h616: update emac for Orange Pi Zero 3Benjamin Bigler <[email protected]>
spi: spi-imx: correctly configure burst length when using dmaLingkai Dong <[email protected]>
drm: Fix FD ownership check indrm_master_check_perm()Tvrtko Ursulin <[email protected]>
drm: Update file owner during useJani Nikula <[email protected]>
drm/i915/edp: don't write toDP_LINK_BW_SETwhen using rate selectVille Syrjälä <[email protected]>
drm/i915: Introduce crtc_state->enhanced_framingVille Syrjälä <[email protected]>
drm/i915: Fix FEC state dumpHamza Mahfooz <[email protected]>
drm/amd/display: fix hw rotated modes when PSR-SU is enabledBoris Burkov <[email protected]>
btrfs: free qgroup pertrans reserve on transaction abortQu Wenruo <[email protected]>
btrfs: qgroup: useqgroup_iteratorinqgroup_convert_meta()Qu Wenruo <[email protected]>
btrfs: qgroup: iterate qgroups without memory allocation forqgroup_reserve()SeongJae Park <[email protected]>
mm/damon/core: makedamon_start()waits untilkdamond_fn()startsSeongJae Park <[email protected]>
mm/damon/core: use number of passed access sampling as a timerJiri Olsa <[email protected]>
bpf: Fixprog_array_map_poke_runmap poke update-------------
Diffstat:
.../devicetree/bindings/nvmem/mxs-ocotp.yaml | 10 +- Makefile | 4 +- arch/arm/boot/dts/ti/omap/am33xx.dtsi | 1 + arch/arm/boot/dts/ti/omap/dra7.dtsi | 2 +- arch/arm/mach-omap2/id.c | 5 + .../dts/allwinner/sun50i-h616-orangepi-zero.dtsi | 3 - .../dts/allwinner/sun50i-h616-orangepi-zero2.dts | 3 + .../dts/allwinner/sun50i-h618-orangepi-zero3.dts | 2 + arch/arm64/kvm/arm.c | 2 +- arch/arm64/kvm/vgic/vgic-init.c | 47 +++++--- arch/arm64/kvm/vgic/vgic-mmio-v3.c | 2 +- arch/arm64/kvm/vgic/vgic.h | 1 + arch/s390/include/asm/fpu/api.h | 2 +- arch/x86/kernel/alternative.c | 14 ++- arch/x86/kernel/head_64.S | 16 +++ arch/x86/net/bpf_jit_comp.c | 46 +++++++ arch/x86/xen/Kconfig | 1 + drivers/bluetooth/hci_vhci.c | 10 +- drivers/bus/ti-sysc.c | 18 ++- drivers/gpio/gpio-dwapb.c | 12 +- drivers/gpio/gpiolib-cdev.c | 16 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 + drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 1 + .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 3 +- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 12 +- drivers/gpu/drm/drm_auth.c | 3 +- drivers/gpu/drm/drm_debugfs.c | 10 +- drivers/gpu/drm/drm_file.c | 40 +++++- drivers/gpu/drm/drm_ioctl.c | 3 + drivers/gpu/drm/i915/display/g4x_dp.c | 10 +- drivers/gpu/drm/i915/display/intel_crt.c | 2 + .../gpu/drm/i915/display/intel_crtc_state_dump.c | 3 + drivers/gpu/drm/i915/display/intel_cx0_phy.c | 3 +- drivers/gpu/drm/i915/display/intel_ddi.c | 22 ++-- drivers/gpu/drm/i915/display/intel_display.c | 12 ++ drivers/gpu/drm/i915/display/intel_display_types.h | 2 + drivers/gpu/drm/i915/display/intel_dmc.c | 43 ++++++- drivers/gpu/drm/i915/display/intel_dp.c | 3 + .../gpu/drm/i915/display/intel_dp_link_training.c | 35 ++++-- drivers/gpu/drm/i915/i915_hwmon.c | 4 +- drivers/gpu/drm/nouveau/nouveau_drm.c | 5 +- drivers/gpu/drm/vmwgfx/vmwgfx_gem.c | 6 +- drivers/i2c/busses/i2c-aspeed.c | 48 +++++--- drivers/i2c/busses/i2c-qcom-geni.c | 8 +- drivers/iio/accel/kionix-kx022a.c | 37 ++++-- drivers/iio/adc/imx93_adc.c | 4 + drivers/iio/adc/meson_saradc.c | 16 ++- drivers/iio/adc/ti_am335x_adc.c | 4 +- drivers/iio/buffer/industrialio-triggered-buffer.c | 10 ++ drivers/iio/common/ms_sensors/ms_sensors_i2c.c | 4 +- drivers/iio/imu/adis16475.c | 117 +++++++++++------- drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 4 +- drivers/iio/magnetometer/tmag5273.c | 2 +- drivers/input/keyboard/ipaq-micro-keys.c | 3 + drivers/input/misc/soc_button_array.c | 5 + drivers/interconnect/core.c | 3 + drivers/interconnect/qcom/sm8250.c | 1 + drivers/md/dm-integrity.c | 11 +- drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 5 +- drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 11 +- drivers/net/ethernet/intel/ice/ice_ethtool.c | 4 +- drivers/net/ethernet/intel/ice/ice_lag.c | 2 + drivers/net/ethernet/intel/ice/ice_lib.c | 7 +- .../ethernet/marvell/octeontx2/nic/otx2_dcbnl.c | 17 ++- drivers/net/ethernet/mediatek/mtk_wed_wo.c | 3 + drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 12 +- .../ethernet/mellanox/mlx5/core/diag/fw_tracer.c | 2 +- .../mellanox/mlx5/core/en/fs_tt_redirect.c | 1 + .../ethernet/mellanox/mlx5/core/en/tc/act/mirred.c | 5 +- .../net/ethernet/mellanox/mlx5/core/en/tc_tun.c | 30 ++--- .../ethernet/mellanox/mlx5/core/en/tc_tun_encap.c | 3 +- drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 4 +- .../mellanox/mlx5/core/en_accel/ipsec_fs.c | 2 +- .../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 10 +- drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 +- .../ethernet/mellanox/mlx5/core/eswitch_offloads.c | 31 +++-- .../mellanox/mlx5/core/eswitch_offloads_termtbl.c | 4 +- drivers/net/ethernet/mellanox/mlx5/core/vport.c | 2 +- drivers/net/ethernet/micrel/ks8851.h | 3 + drivers/net/ethernet/micrel/ks8851_common.c | 20 +-- drivers/net/ethernet/micrel/ks8851_spi.c | 42 ++++--- drivers/net/ethernet/microsoft/Kconfig | 1 + drivers/net/ethernet/mscc/ocelot_stats.c | 16 +-- .../net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c | 2 +- drivers/net/phy/phy_device.c | 6 +- drivers/net/usb/ax88179_178a.c | 23 +++- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 4 +- drivers/net/wireless/mediatek/mt76/dma.c | 10 +- drivers/nvme/host/core.c | 3 +- drivers/nvmem/brcm_nvram.c | 134 +++++++++++++++------ drivers/pinctrl/pinctrl-at91-pio4.c | 8 ++ drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c | 4 +- drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c | 4 +- drivers/platform/x86/intel/pmc/core.c | 2 +- drivers/reset/core.c | 8 +- drivers/scsi/aacraid/aacraid.h | 1 - drivers/scsi/aacraid/commsup.c | 6 +- drivers/scsi/aacraid/linit.c | 14 --- drivers/scsi/aacraid/src.c | 25 +--- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 9 +- drivers/scsi/scsi_error.c | 2 + drivers/spi/spi-atmel.c | 92 ++++++++++++-- drivers/spi/spi-cadence.c | 1 - drivers/spi/spi-imx.c | 15 ++- drivers/thunderbolt/debugfs.c | 2 +- drivers/ufs/core/ufshcd.c | 3 +- drivers/ufs/host/ufs-qcom.c | 6 +- drivers/usb/fotg210/fotg210-hcd.c | 3 - drivers/usb/serial/ftdi_sio.c | 6 +- drivers/usb/serial/ftdi_sio_ids.h | 6 +- drivers/usb/serial/option.c | 5 + drivers/usb/storage/unusual_devs.h | 11 ++ drivers/usb/typec/ucsi/ucsi_glink.c | 2 +- fs/afs/cell.c | 6 +- fs/afs/dynroot.c | 31 ++--- fs/afs/internal.h | 2 + fs/afs/volume.c | 26 +++- fs/btrfs/disk-io.c | 28 +++++ fs/btrfs/qgroup.c | 96 +++++++-------- fs/btrfs/qgroup.h | 9 ++ fs/btrfs/transaction.c | 2 - fs/btrfs/transaction.h | 3 + fs/nfsd/nfsctl.c | 9 +- fs/nfsd/nfsd.h | 1 + fs/nfsd/nfssvc.c | 2 +- fs/smb/client/cifs_debug.c | 12 +- fs/smb/client/cifsglob.h | 3 +- fs/smb/client/connect.c | 7 +- fs/smb/client/misc.c | 4 + fs/smb/client/smb2ops.c | 19 +-- fs/smb/client/smb2pdu.c | 29 +++-- include/drm/drm_file.h | 13 +- include/linux/bpf.h | 3 + include/linux/damon.h | 16 ++- include/linux/ieee80211.h | 3 +- include/linux/key-type.h | 1 + include/net/bluetooth/hci_core.h | 9 +- include/net/ip6_fib.h | 64 ++-------- include/net/sock.h | 5 + include/trace/events/9p.h | 11 +- kernel/bpf/arraymap.c | 58 ++------- kernel/trace/ring_buffer.c | 130 ++++++-------------- kernel/trace/synth_event_gen_test.c | 11 ++ lib/vsprintf.c | 11 +- mm/damon/core.c | 102 ++++++++-------- net/8021q/vlan_core.c | 9 +- net/9p/protocol.c | 17 ++- net/bluetooth/af_bluetooth.c | 7 +- net/bluetooth/hci_event.c | 30 +++-- net/bluetooth/l2cap_core.c | 21 +++- net/bluetooth/mgmt.c | 25 ++-- net/bluetooth/smp.c | 7 ++ net/core/dev.c | 3 + net/core/skbuff.c | 2 + net/core/sock_map.c | 2 + net/core/stream.c | 2 +- net/dns_resolver/dns_key.c | 10 +- net/ife/ife.c | 1 + net/ipv6/ip6_fib.c | 55 +-------- net/ipv6/route.c | 6 +- net/mac80211/cfg.c | 4 +- net/mac80211/driver-ops.c | 6 +- net/mac80211/mesh_plink.c | 16 +-- net/mac80211/mlme.c | 4 +- net/rfkill/rfkill-gpio.c | 8 ++ net/rose/af_rose.c | 39 +++++- net/sunrpc/svc_xprt.c | 5 +- net/wireless/certs/wens.hex | 87 +++++++++++++ security/keys/gc.c | 31 +++-- security/keys/internal.h | 11 +- security/keys/key.c | 15 +-- security/keys/proc.c | 2 +- sound/pci/hda/patch_realtek.c | 1 + sound/pci/hda/tas2781_hda_i2c.c | 4 + sound/soc/codecs/hdmi-codec.c | 12 +- sound/soc/codecs/tas2781-fmwlib.c | 14 ++- sound/soc/fsl/fsl_sai.c | 3 + sound/usb/quirks.c | 4 +- tools/testing/selftests/net/mptcp/mptcp_join.sh | 8 +- 183 files changed, 1677 insertions(+), 907 deletions(-)
Greg Kroah-Hartman
maintainerQuoted 2 lines · Luna Jernberg
Did not work for me on Debian testing on a Thinkpad Edge i3 laptop just booted me to busybox
Did not work in what way? Is this a regression from the last release? If so, can you do 'git bisect' to find the offending commit?
thanks,
greg k-h
Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Successfully compiled and installed the kernel on my computer (Acer Aspire E15, Intel Core i3 Haswell). No noticeable regressions.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Mon, 01 Jan 2024 11:57:43 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.9-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.thanks,
greg k-h
Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.
## Build
* kernel: 6.6.9-rc1
* git: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
* git branch: linux-6.6.y
* git commit: ac5757a323d0d58e1e9f6a43cb374d4fbcd14db5
* git describe: v6.6.8-157-gac5757a323d0
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.6.y/build/v6.6.8-157-gac5757a323d0
## Test Regressions (compared to v6.6.7)
## Metric Regressions (compared to v6.6.7)
## Test Fixes (compared to v6.6.7)
## Metric Fixes (compared to v6.6.7)
## Test result summary
total: 152743, pass: 130798, fail: 2523, skip: 19299, xfail: 123
## Build Summary
* arc: 5 total, 5 passed, 0 failed
* arm: 145 total, 144 passed, 1 failed
* arm64: 52 total, 49 passed, 3 failed
* i386: 41 total, 40 passed, 1 failed
* mips: 26 total, 26 passed, 0 failed
* parisc: 4 total, 4 passed, 0 failed
* powerpc: 36 total, 36 passed, 0 failed
* riscv: 25 total, 24 passed, 1 failed
* s390: 13 total, 13 passed, 0 failed
* sh: 10 total, 10 passed, 0 failed
* sparc: 8 total, 8 passed, 0 failed
* x86_64: 46 total, 45 passed, 1 failed
## Test suites summary
* boot
* kselftest-android
* kselftest-arm64
* kselftest-breakpoints
* kselftest-capabilities
* kselftest-cgroup
* kselftest-clone3
* kselftest-core
* kselftest-cpu-hotplug
* kselftest-cpufreq
* kselftest-drivers-dma-buf
* kselftest-efivarfs
* kselftest-exec
* kselftest-filesystems
* kselftest-filesystems-binderfs
* kselftest-filesystems-epoll
* kselftest-firmware
* kselftest-fpu
* kselftest-ftrace
* kselftest-futex
* kselftest-gpio
* kselftest-intel_pstate
* kselftest-ipc
* kselftest-ir
* kselftest-kcmp
* kselftest-kexec
* kselftest-kvm
* kselftest-lib
* kselftest-livepatch
* kselftest-membarrier
* kselftest-memfd
* kselftest-memory-hotplug
* kselftest-mincore
* kselftest-mount
* kselftest-mqueue
* kselftest-net
* kselftest-net-forwarding
* kselftest-net-mptcp
* kselftest-netfilter
* kselftest-nsfs
* kselftest-openat2
* kselftest-pid_namespace
* kselftest-pidfd
* kselftest-proc
* kselftest-pstore
* kselftest-ptrace
* kselftest-rseq
* kselftest-rtc
* kselftest-seccomp
* kselftest-sigaltstack
* kselftest-size
* kselftest-splice
* kselftest-static_keys
* kselftest-sync
* kselftest-sysctl
* kselftest-tc-testing
* kselftest-timens
* kselftest-timers
* kselftest-tmpfs
* kselftest-tpm2
* kselftest-user
* kselftest-user_events
* kselftest-vDSO
* kselftest-vm
* kselftest-watchdog
* kselftest-x86
* kselftest-zram
* kunit
* libgpiod
* libhugetlbfs
* log-parser-boot
* log-parser-test
* ltp-cap_bounds
* ltp-commands
* ltp-containers
* ltp-controllers
* ltp-cpuhotplug
* ltp-crypto
* ltp-cve
* ltp-dio
* ltp-fcntl-locktests
* ltp-filecaps
* ltp-fs
* ltp-fs_bind
* ltp-fs_perms_simple
* ltp-fsx
* ltp-hugetlb
* ltp-io
* ltp-ipc
* ltp-math
* ltp-mm
* ltp-nptl
* ltp-pty
* ltp-sched
* ltp-securebits
* ltp-smoke
* ltp-syscalls
* ltp-tracing
* network-basic-tests
* perf
* rcutorture
* v4l2-compliance
--
Linaro LKFT
https://lkft.linaro.org
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.9 release. There are 156 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Mon, 01 Jan 2024 11:57:43 +0000. Anything received after that time might be too late.
Build results:
total: 157 pass: 157 fail: 0 Qemu test results: total: 545 pass: 545 fail: 0
Guenter