Skip to content

Commit 0b5ce6b

Browse files
committed
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
2 parents 92a1d9b + b5ff74c commit 0b5ce6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pci/controller/pci-hyperv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <linux/refcount.h>
5050
#include <linux/irqdomain.h>
5151
#include <linux/acpi.h>
52+
#include <linux/sizes.h>
5253
#include <asm/mshyperv.h>
5354

5455
/*
@@ -465,7 +466,7 @@ struct pci_eject_response {
465466
u32 status;
466467
} __packed;
467468

468-
static int pci_ring_size = (4 * PAGE_SIZE);
469+
static int pci_ring_size = VMBUS_RING_SIZE(SZ_16K);
469470

470471
/*
471472
* Driver specific state.

0 commit comments

Comments
 (0)