[PATCH] drm/amdgpu: align ip discovery naming with legacy ASICs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.zhang@xxxxxxx>
---
 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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux