This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static int reset_amdgpu_vega(struct pci_dev *dev, int probe) { | |
| #define AMDGPU_MAX_USEC_TIMEOUT 100000 | |
| #define MP0_BASE 0x16000 | |
| #define mmMP0_SMN_C2PMSG_33 ((MP0_BASE + 0x0061) * 4) | |
| #define mmMP0_SMN_C2PMSG_64 ((MP0_BASE + 0x0080) * 4) | |
| #define mmMP0_SMN_C2PMSG_81 ((MP0_BASE + 0x0091) * 4) | |
| resource_size_t rmmio_base, rmmio_size; | |
| void __iomem *rmmio; | |
| int ret; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function bytesToHR() | |
| { | |
| local SIZE=$1 | |
| local UNITS="B KiB MiB GiB TiB PiB" | |
| for F in $UNITS; do | |
| local UNIT=$F | |
| test ${SIZE%.*} -lt 1024 && break; | |
| SIZE=$(echo "$SIZE / 1024" | bc -l) | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c | |
| index 6c91bd44a0..f3c7b9d328 100644 | |
| --- a/hw/pci/pcie.c | |
| +++ b/hw/pci/pcie.c | |
| @@ -39,6 +39,166 @@ | |
| #define PCIE_DEV_PRINTF(dev, fmt, ...) \ | |
| PCIE_DPRINTF("%s:%x "fmt, (dev)->name, (dev)->devfn, ## __VA_ARGS__) | |
| +static uint16_t pcie_link_max_width(PCIDevice *dev) | |
| +{ |
NewerOlder