Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9BF6C636C9 for ; Fri, 16 Jul 2021 01:34:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7BE866128B for ; Fri, 16 Jul 2021 01:34:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BE866128B Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 27A8D6E8D3; Fri, 16 Jul 2021 01:34:43 +0000 (UTC) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2047.outbound.protection.outlook.com [40.107.243.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3C2B56E8D3 for ; Fri, 16 Jul 2021 01:34:42 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AHDJnu59XLPLcpz9oX2YvmP7/D8ba8tOuUknpWYZgjYd4cbcC6wD9JmGUniZcvF5DUUk5oQ4nqriXdgJ9LqEBFvNRC9WlIGKWOVtlvCLu7f1BS81MehOLBx+D6XnwDWze3mbUHSZB+HMDMRHGdOVfUCS2OYmfEYWskQ4qAfOjN5xVYN/YFARGaXrruX89/j0GoMNrHmu+prTyadsJxydNjBWOmCT3MmsrVxg9bTPKeR/Rw9qdX41RGQcDGV9nzayzaBBlmHruEnOUNpHCw1EE5WyLx9+sWyK+WRDBL7JAY8r1E7HmG+KaLzPgF/55tig2+qh+MuBTgOeWiY5D4tA4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s0SfP7h4dvFlR0E9oI7B+nNCrumQwkGZ/WnR7X9uYIk=; b=D+S/I7JdpUzVGJz5wP5ZrycDgCkI5/35voyiOzckdTBjw+eRau/LyObwqz/eFryFLWUDAcRSkfiq+5VOmI9ux9nQ+svJph/sBqkp62ZTTDlf4WkAqHKTg+Fajbt+dnbVYscuzPoQfU+X7BJ4bpTxCi/JOgnjpNIVENkK2pv4JpD8lVohTQcb5N0nSR5wMAEELaSYe1dJiBMoYxJREfN87OtGD27Fpjp+9ghEtWG7N5JNwnTrHkOnldBMIysR2aRS5gClCbEOXfpi2QENTb4GsA+aSB1r5OOnXGx1RtTKD4TA/HnUFH0Lmjj5qlK/gZfFtAMegxzkczjpioGPanMfGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s0SfP7h4dvFlR0E9oI7B+nNCrumQwkGZ/WnR7X9uYIk=; b=qtjwIswVN5gATn/m266oo4jv7Sn0U/rAeUGWQjnnav6MMWDj9Y0N5CoYbvT59igEon5A6165dkhz/yBuMwnp3SgLN+3ssV2uWEdeP9cqTmHwIK86UCimaRrDV1kZKLQuyK2QbRMeNlpPQSC2pBUrIpQRqK13092FRTxik2DCWUQ= Received: from DM6PR07CA0041.namprd07.prod.outlook.com (2603:10b6:5:74::18) by BL0PR12MB4883.namprd12.prod.outlook.com (2603:10b6:208:1c6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22; Fri, 16 Jul 2021 01:34:40 +0000 Received: from DM6NAM11FT049.eop-nam11.prod.protection.outlook.com (2603:10b6:5:74:cafe::79) by DM6PR07CA0041.outlook.office365.com (2603:10b6:5:74::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Fri, 16 Jul 2021 01:34:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT049.mail.protection.outlook.com (10.13.172.188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4331.21 via Frontend Transport; Fri, 16 Jul 2021 01:34:39 +0000 Received: from ozeng-develop.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 15 Jul 2021 20:34:38 -0500 From: Oak Zeng To: Subject: [PATCH 1/5] drm/amdgpu: Fix a printing message Date: Thu, 15 Jul 2021 20:34:29 -0500 Message-ID: <1626399273-21347-2-git-send-email-Oak.Zeng@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626399273-21347-1-git-send-email-Oak.Zeng@amd.com> References: <1626399273-21347-1-git-send-email-Oak.Zeng@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7d3562d9-5e1a-4492-188d-08d947f9e108 X-MS-TrafficTypeDiagnostic: BL0PR12MB4883: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kKsk2LZ3xBo487ruVcN/DwYrdBakz20rLOqIgYJyGn2PBSL+YvM8Y2CqagqJu9xlohJcjt9hsUDJhRjvcmh8RGQsLegpCjwgGRk777FecaQFEareKIQYlbQLgSC/TdumhtgM3kiXYFXHJEuy7lHTty0U5a7BuWKYoUBeiXY4aOGpuU2YG+IW/B3NHkkbtDqoUMI1//DiMxWmQO3faVCC+MFNsrg8SYdXyGrQbb5Z/FXofAZgqOP2ewCFILgnn2IlvUIZlG+TS3u8UQ1+CP9ycs1LpWgHjCYbOYMyhXLMVVvJG2+BIZTRYvqmeDmIxiZn2hAOBV4B0JJ2tziuHuIes+/mFVhW1RRlAVemVySHB1IP3yD83xIv5LV3fkqIe90whhTprG9IucE2Nnss10ccIAuwjhWx8N6ZRbnQmx+j8Bm2/vrID+e3boOa47bTErv3jnDeYrXUzSvTUX9Q3vBwzodftl3mu7ujl2EVgg/s3+MPccorUCAoLYlOOGqvB4yHIE6S1PtXYsYcIk9HwsKNxUNzOW9OOUMlQpuL9iz+1I1PhvhcAfy1zidAwT2//YnsIR8z52/a2kVjzeNZl0Ha/fn/Fs0bFkG7DhtpiVGBgX9cDtuOKpiv0FWsfjszcsa3h7FpejYPWAeeUaP+xyzSkg9O9wVcDqnIb/aqhWgf0NuOAVG8/qjZ9so7Vn/khfV4FUoy+qlf13iklYnnGekJkAv379uPv+2NMnJ7/mhAOOU= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(396003)(376002)(39860400002)(346002)(136003)(46966006)(36840700001)(316002)(36860700001)(7696005)(16526019)(2616005)(6916009)(86362001)(70206006)(26005)(426003)(47076005)(54906003)(82740400003)(2906002)(5660300002)(70586007)(186003)(6666004)(4326008)(8936002)(8676002)(82310400003)(356005)(83380400001)(81166007)(15650500001)(478600001)(36756003)(336012)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 01:34:39.6439 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d3562d9-5e1a-4492-188d-08d947f9e108 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT049.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4883 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: feifei.xu@amd.com, Felix.Kuehling@amd.com, leo.liu@amd.com, Oak Zeng , hawking.zhang@amd.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" The printing message "PSP loading VCN firmware" is mis-leading because people might think driver is loading VCN firmware. Actually when this message is printed, driver is just preparing some VCN ucode, not loading VCN firmware yet. The actual VCN firmware loading will be in the PSP block hw_init. Fix the printing message Signed-off-by: Oak Zeng --- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 +- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c index 284bb42..121ee9f 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c @@ -119,7 +119,7 @@ static int vcn_v1_0_sw_init(void *handle) adev->firmware.ucode[AMDGPU_UCODE_ID_VCN].fw = adev->vcn.fw; adev->firmware.fw_size += ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE); - DRM_INFO("PSP loading VCN firmware\n"); + dev_info(adev->dev, "Will use PSP to load VCN firmware\n"); } r = amdgpu_vcn_resume(adev); diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c index 8af567c..f4686e9 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c @@ -122,7 +122,7 @@ static int vcn_v2_0_sw_init(void *handle) adev->firmware.ucode[AMDGPU_UCODE_ID_VCN].fw = adev->vcn.fw; adev->firmware.fw_size += ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE); - DRM_INFO("PSP loading VCN firmware\n"); + dev_info(adev->dev, "Will use PSP to load VCN firmware\n"); } r = amdgpu_vcn_resume(adev); diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c index 888b17d..e0c0c37 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c @@ -152,7 +152,7 @@ static int vcn_v2_5_sw_init(void *handle) adev->firmware.fw_size += ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE); } - DRM_INFO("PSP loading VCN firmware\n"); + dev_info(adev->dev, "Will use PSP to load VCN firmware\n"); } r = amdgpu_vcn_resume(adev); diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c index c3580de..a1bbe33 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c @@ -158,7 +158,7 @@ static int vcn_v3_0_sw_init(void *handle) adev->firmware.fw_size += ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE); } - DRM_INFO("PSP loading VCN firmware\n"); + dev_info(adev->dev, "Will use PSP to load VCN firmware\n"); } r = amdgpu_vcn_resume(adev); -- 2.7.4 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx