Commit f6d0ca59 authored by Kishon Vijay Abraham I's avatar Kishon Vijay Abraham I Committed by Xie XiuQi
Browse files

PCI: endpoint: Fix pci_epf_alloc_space() to set correct MEM TYPE flags



mainline inclusion
from mainline-5.0
commit 5544d67e
category: bugfix
bugzilla: 12096
CVE: NA

-------------------------------------------------

pci_epf_alloc_space() sets the MEM TYPE flags to indicate a 32-bit
Base Address Register irrespective of the size. Fix it here to indicate
64-bit BAR if the size is > 2GB.

Tested-by: default avatarGustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarYao Hongbo <yaohongbo@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent b42aa6d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment