[PATCH v3 6/8] powerpc/pci: Preserve IORESOURCE_STARTALIGN alignment

2024-08-07 Thread Stewart Hildebrand
There is a corner case in pcibios_allocate_resources()/alloc_resource() where the IORESOURCE_STARTALIGN alignment of memory BAR resources gets overwritten. This does not affect bridge resources. Account for IORESOURCE_STARTALIGN. Signed-off-by: Stewart Hildebrand --- v2->v3: * no change v1-

[PATCH v3 0/8] PCI: Align small BARs

2024-08-07 Thread Stewart Hildebrand
small BARs") v1->v2: * rename ("PCI: don't clear already cleared bit") to ("PCI: Don't unnecessarily disable memory decoding") * new patch: ("x86/PCI: Move some logic to new function") * new patch: ("powerpc/pci: Preserve IORESOURCE_STARTALIGN a

Re: [PATCH v2 0/8] PCI: Align small (<4k) BARs

2024-07-18 Thread Stewart Hildebrand
On 7/18/24 06:01, David Laight wrote: > From: Stewart Hildebrand >> Sent: 17 July 2024 19:31 > ... >>> For more normal hardware just ensuring that two separate targets don't share >>> a page while allowing (eg) two 1k BAR to reside in the same 64k page would >

Re: [PATCH v2 0/8] PCI: Align small (<4k) BARs

2024-07-17 Thread Stewart Hildebrand
On 7/17/24 09:15, David Laight wrote: > From: Stewart Hildebrand >> Sent: 16 July 2024 20:33 >> >> This series sets the default minimum resource alignment to 4k for memory >> BARs. In preparation, it makes an optimization and addresses some corner >> cases o

[PATCH v2 6/8] powerpc/pci: Preserve IORESOURCE_STARTALIGN alignment

2024-07-16 Thread Stewart Hildebrand
There is a corner case in pcibios_allocate_resources()/alloc_resource() where the IORESOURCE_STARTALIGN alignment of memory BAR resources gets overwritten. This does not affect bridge resources. Account for IORESOURCE_STARTALIGN. Signed-off-by: Stewart Hildebrand --- v1->v2: * new pa

[PATCH v2 0/8] PCI: Align small (<4k) BARs

2024-07-16 Thread Stewart Hildebrand
t;PCI: don't clear already cleared bit") to ("PCI: Don't unnecessarily disable memory decoding") * new patch: ("x86/PCI: Move some logic to new function") * new patch: ("powerpc/pci: Preserve IORESOURCE_STARTALIGN alignment") Stewart Hildebrand (8)