diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2024-03-12 18:14:25 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-03-12 18:14:25 +0100 |
commit | 0b5ce6b2f79abbb1b2b2e2f68ed2bc4889571642 (patch) | |
tree | fdc200df146523dacba6fb6399e4733f0b1d3853 /drivers/pci | |
parent | Merge branch 'pci/controller/dwc' (diff) | |
parent | PCI: hv: Fix ring buffer size calculation (diff) | |
download | linux-0b5ce6b2f79abbb1b2b2e2f68ed2bc4889571642.tar.xz linux-0b5ce6b2f79abbb1b2b2e2f68ed2bc4889571642.zip |
Merge branch 'pci/controller/hyperv'
- Fix ring buffer size at 16KB (not 4 pages), which reduces memory usage by
128KBytes with 64KB pages (Michael Kelley)
* pci/controller/hyperv:
PCI: hv: Fix ring buffer size calculation
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/controller/pci-hyperv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c index 1eaffff40b8d..5992280e8110 100644 --- a/drivers/pci/controller/pci-hyperv.c +++ b/drivers/pci/controller/pci-hyperv.c @@ -49,6 +49,7 @@ #include <linux/refcount.h> #include <linux/irqdomain.h> #include <linux/acpi.h> +#include <linux/sizes.h> #include <asm/mshyperv.h> /* @@ -465,7 +466,7 @@ struct pci_eject_response { u32 status; } __packed; -static int pci_ring_size = (4 * PAGE_SIZE); +static int pci_ring_size = VMBUS_RING_SIZE(SZ_16K); /* * Driver specific state. |