dev-amdgpu: Deprecate rom and mmio trace params (#1633)
The ROM field was originally intended as a future alternate way to load VBIOS without the ROM being on the disk image. This code path is never taken for the devices gem5 supports and there is no gem5 implementation. Deprecate the rom_binary field for this reason. Similarly, MMIO traces were only used for Vega10. Deprecate this as Vega10 is now deprecated. The MMIO trace reader is kept as it may still be useful in the future. It is still the primary way to handle devies which have graphics capability. None of the devices supported by gem5 have graphics now that Vega10 is deprecated.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2021 Advanced Micro Devices, Inc.
|
||||
# Copyright (c) 2021-2024 Advanced Micro Devices, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@@ -82,10 +82,6 @@ def addRunFSOptions(parser):
|
||||
help="The second disk image to mount (/dev/sdb)",
|
||||
)
|
||||
parser.add_argument("--kernel", default=None, help="Linux kernel to boot")
|
||||
parser.add_argument("--gpu-rom", default=None, help="GPU BIOS to load")
|
||||
parser.add_argument(
|
||||
"--gpu-mmio-trace", default=None, help="GPU MMIO trace to load"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--checkpoint-before-mmios",
|
||||
default=False,
|
||||
@@ -241,16 +237,6 @@ def runGpuFSSystem(args):
|
||||
math.ceil(float(n_cu) / args.cu_per_scalar_cache)
|
||||
)
|
||||
|
||||
# Verify MMIO trace is valid. This is only needed for Vega10 simulations.
|
||||
# The md5sum refers to the md5sum of the Vega10 MMIO hardware trace in
|
||||
# the gem5-resources repository. By checking it here, we avoid potential
|
||||
# errors that would cause the driver not to load and simulations to fail.
|
||||
if args.gpu_device == "Vega10":
|
||||
mmio_file = open(args.gpu_mmio_trace, "rb")
|
||||
mmio_md5 = hashlib.md5(mmio_file.read()).hexdigest()
|
||||
if mmio_md5 != "c4ff3326ae8a036e329b8b595c83bd6d":
|
||||
m5.util.panic("MMIO file does not match gem5 resources")
|
||||
|
||||
system = makeGpuFSSystem(args)
|
||||
|
||||
root = Root(
|
||||
|
||||
@@ -176,8 +176,6 @@ def createGPU(system, args):
|
||||
def connectGPU(system, args):
|
||||
system.pc.south_bridge.gpu = AMDGPUDevice(pci_func=0, pci_dev=8, pci_bus=0)
|
||||
|
||||
system.pc.south_bridge.gpu.trace_file = args.gpu_mmio_trace
|
||||
system.pc.south_bridge.gpu.rom_binary = args.gpu_rom
|
||||
system.pc.south_bridge.gpu.checkpoint_before_mmios = (
|
||||
args.checkpoint_before_mmios
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user