There some code assuming ASIC names are non-space character.
e.g.

runKfdTest() {
    if [ "$RUN_IN_DOCKER" == "true" ]; then

    for hsaNode in $hsaNodes; do
        nodeName=$(getNodeName $hsaNode)
        if [ "$PLATFORM" != "" ] && [ "$PLATFORM" != "$nodeName" ]; then
            echo "WARNING: Actual ASIC $nodeName treated as $PLATFORM"
            nodeName="$PLATFORM"
        fi

        getFilter $nodeName
}

 getFilter() {
    local platform=$1;
}

if launch run_kfdtest.sh on a ip discovery ASIC, platform in getFilter will be 
"ip"
instead of "ip discovery"

$ ./run_kfdtest.sh
Unsupported platform ip. Exiting

Replace whitespace with underscore to align the naming.

Signed-off-by: Yifan Zhang <yifan1.zh...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 7abdf5e3dc05..0a66f724a4eb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -123,7 +123,7 @@ const char *amdgpu_asic_name[] = {
        "DIMGREY_CAVEFISH",
        "BEIGE_GOBY",
        "YELLOW_CARP",
-       "IP DISCOVERY",
+       "IP_DISCOVERY",
        "LAST",
 };
 
-- 
2.25.1

Reply via email to