rebase patches on top of Ubuntu-6.5.0-27.27
(generated with debian/scripts/import-upstream-tag) Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ac49c428da
commit
4cf5a7d99a
@ -75,7 +75,7 @@ index 90ddf08e8409..eedfabda597f 100644
|
||||
Safety option to keep boot IRQs enabled. This
|
||||
should never be necessary.
|
||||
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
|
||||
index b3a55f2cab46..baef591d10f6 100644
|
||||
index 47e8ee1f6429..6c7351c444b0 100644
|
||||
--- a/drivers/pci/quirks.c
|
||||
+++ b/drivers/pci/quirks.c
|
||||
@@ -287,6 +287,106 @@ static int __init pci_apply_final_quirks(void)
|
||||
@ -185,7 +185,7 @@ index b3a55f2cab46..baef591d10f6 100644
|
||||
/*
|
||||
* Decoding should be disabled for a PCI device during BAR sizing to avoid
|
||||
* conflict. But doing so may cause problems on host bridge and perhaps other
|
||||
@@ -5071,6 +5171,8 @@ static const struct pci_dev_acs_enabled {
|
||||
@@ -5075,6 +5175,8 @@ static const struct pci_dev_acs_enabled {
|
||||
{ PCI_VENDOR_ID_CAVIUM, 0xA060, pci_quirk_mf_endpoint_acs },
|
||||
/* APM X-Gene */
|
||||
{ PCI_VENDOR_ID_AMCC, 0xE004, pci_quirk_xgene_acs },
|
||||
|
@ -14,10 +14,10 @@ Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/net/core/dev.c b/net/core/dev.c
|
||||
index 3c5106cd0602..3634982362f7 100644
|
||||
index 855173c77581..80b4a639c32c 100644
|
||||
--- a/net/core/dev.c
|
||||
+++ b/net/core/dev.c
|
||||
@@ -10352,7 +10352,7 @@ static struct net_device *netdev_wait_allrefs_any(struct list_head *list)
|
||||
@@ -10355,7 +10355,7 @@ static struct net_device *netdev_wait_allrefs_any(struct list_head *list)
|
||||
if (time_after(jiffies, warning_time +
|
||||
READ_ONCE(netdev_unregister_timeout_secs) * HZ)) {
|
||||
list_for_each_entry(dev, list, todo_list) {
|
||||
|
@ -11,7 +11,7 @@ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
|
||||
index 15e2649b25ef..752f77e285f2 100644
|
||||
index 8faccfdfe500..2b9ef40799a5 100644
|
||||
--- a/drivers/iommu/intel/iommu.c
|
||||
+++ b/drivers/iommu/intel/iommu.c
|
||||
@@ -298,6 +298,7 @@ static int dmar_map_gfx = 1;
|
||||
@ -32,7 +32,7 @@ index 15e2649b25ef..752f77e285f2 100644
|
||||
} else {
|
||||
pr_notice("Unknown option - '%s'\n", str);
|
||||
}
|
||||
@@ -2504,7 +2508,7 @@ static bool device_rmrr_is_relaxable(struct device *dev)
|
||||
@@ -2506,7 +2510,7 @@ static bool device_rmrr_is_relaxable(struct device *dev)
|
||||
return false;
|
||||
|
||||
pdev = to_pci_dev(dev);
|
||||
|
@ -1,148 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: "Martin K. Petersen" <martin.petersen@oracle.com>
|
||||
Date: Fri, 8 Dec 2023 12:09:38 -0500
|
||||
Subject: [PATCH] Revert "scsi: aacraid: Reply queue mapping to CPUs based on
|
||||
IRQ affinity"
|
||||
|
||||
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.
|
||||
|
||||
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217599
|
||||
Cc: <stable@vger.kernel.org>
|
||||
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
||||
---
|
||||
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(-)
|
||||
|
||||
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
|
||||
index 73b6ac0c01f5..7d5a155073c6 100644
|
||||
--- a/drivers/scsi/aacraid/aacraid.h
|
||||
+++ b/drivers/scsi/aacraid/aacraid.h
|
||||
@@ -1678,7 +1678,6 @@ struct aac_dev
|
||||
u32 handle_pci_error;
|
||||
bool init_reset;
|
||||
u8 soft_reset_support;
|
||||
- u8 use_map_queue;
|
||||
};
|
||||
|
||||
#define aac_adapter_interrupt(dev) \
|
||||
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
|
||||
index 013a9a334972..25cee03d7f97 100644
|
||||
--- a/drivers/scsi/aacraid/commsup.c
|
||||
+++ b/drivers/scsi/aacraid/commsup.c
|
||||
@@ -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
|
||||
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
|
||||
index c4a36c0be527..68f4dbcfff49 100644
|
||||
--- a/drivers/scsi/aacraid/linit.c
|
||||
+++ b/drivers/scsi/aacraid/linit.c
|
||||
@@ -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 @@ static int aac_slave_configure(struct scsi_device *sdev)
|
||||
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 aac_driver_template = {
|
||||
.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 *pdev, const struct pci_device_id *id)
|
||||
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_dev *pdev)
|
||||
struct 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);
|
||||
diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.c
|
||||
index 61949f374188..11ef58204e96 100644
|
||||
--- a/drivers/scsi/aacraid/src.c
|
||||
+++ b/drivers/scsi/aacraid/src.c
|
||||
@@ -493,10 +493,6 @@ static int aac_src_deliver_message(struct fib *fib)
|
||||
#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(struct fib *fib)
|
||||
if ((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) {
|
@ -23,7 +23,7 @@ Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
|
||||
1 file changed, 13 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
|
||||
index 3711be697a0a..0c81836f092e 100644
|
||||
index 5246b408cf0c..e3b942664842 100644
|
||||
--- a/fs/ext4/mballoc.c
|
||||
+++ b/fs/ext4/mballoc.c
|
||||
@@ -2894,14 +2894,19 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
|
@ -1,4 +1,4 @@
|
||||
From 39f2bfe0177d3f56c9feac4e70424e4952949e2a Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Sean Christopherson <seanjc@google.com>
|
||||
Date: Wed, 10 Jan 2024 13:47:23 -0800
|
||||
Subject: [PATCH] sched/core: Drop spinlocks on contention iff kernel is
|
||||
@ -40,10 +40,10 @@ Signed-off-by: Sean Christopherson <seanjc@google.com>
|
||||
1 file changed, 6 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/include/linux/sched.h b/include/linux/sched.h
|
||||
index 292c31697248..a274bc85f222 100644
|
||||
index 609bde814cb0..995e6699e026 100644
|
||||
--- a/include/linux/sched.h
|
||||
+++ b/include/linux/sched.h
|
||||
@@ -2234,11 +2234,10 @@ static inline bool preempt_model_preemptible(void)
|
||||
@@ -2211,11 +2211,10 @@ static inline bool preempt_model_preemptible(void)
|
||||
*/
|
||||
static inline int spin_needbreak(spinlock_t *lock)
|
||||
{
|
||||
@ -58,7 +58,7 @@ index 292c31697248..a274bc85f222 100644
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2251,11 +2250,10 @@ static inline int spin_needbreak(spinlock_t *lock)
|
||||
@@ -2228,11 +2227,10 @@ static inline int spin_needbreak(spinlock_t *lock)
|
||||
*/
|
||||
static inline int rwlock_needbreak(rwlock_t *lock)
|
||||
{
|
||||
@ -73,6 +73,3 @@ index 292c31697248..a274bc85f222 100644
|
||||
}
|
||||
|
||||
static __always_inline bool need_resched(void)
|
||||
--
|
||||
2.39.2
|
||||
|
Loading…
Reference in New Issue
Block a user