linux_dsm_epyc7002/drivers/pci/endpoint
Alan Mikhak daee4f4e42 PCI: endpoint: Cast the page number to phys_addr_t
Modify pci_epc_mem_alloc_addr() to cast the variable 'pageno'
from type 'int' to 'phys_addr_t' before shifting left. This
cast is needed to avoid treating bit 31 of 'pageno' as the
sign bit which would otherwise get sign-extended to produce
a negative value. When added to the base address of PCI memory
space, the negative value would produce an invalid physical
address which falls before the start of the PCI memory space.

Signed-off-by: Alan Mikhak <alan.mikhak@sifive.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
2019-10-15 15:47:54 +01:00
..
functions PCI: endpoint: Clear BAR before freeing its space 2019-06-11 10:57:54 +01:00
Kconfig PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
Makefile PCI: Add SPDX GPL-2.0 when no license was specified 2018-01-26 11:45:16 -06:00
pci-ep-cfs.c PCI: endpoint: Add MSI-X interfaces 2018-07-19 11:34:23 +01:00
pci-epc-core.c PCI: endpoint: Set endpoint controller pointer to NULL 2019-06-11 10:55:12 +01:00
pci-epc-mem.c PCI: endpoint: Cast the page number to phys_addr_t 2019-10-15 15:47:54 +01:00
pci-epf-core.c PCI: endpoint: Add support to specify alignment for buffers allocated to BARs 2019-04-15 13:24:02 +01:00