From patchwork Thu Sep 12 07:12:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Zhen X-Patchwork-Id: 13801671 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E9F00EE645D for ; Thu, 12 Sep 2024 07:56:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1660410E8E9; Thu, 12 Sep 2024 07:56:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=vivo.com header.i=@vivo.com header.b="G5jrE1Ud"; dkim-atps=neutral Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2063.outbound.protection.outlook.com [40.107.117.63]) by gabe.freedesktop.org (Postfix) with ESMTPS id A182610E1F2; Thu, 12 Sep 2024 07:13:15 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=K/MAbsSA22GKNcrd+8qpQ6ju6BtP6TiVBos+27fksUoKDMUXTORgfamASIKNd8+pyz5Fx9GpJsWxzKERErwUHyc6pYEuY/P+Kg5Aa57jV+AYlWm7W2WSmBVo1rXhZATeavgnuzFoVCF9zCKcC6WnZyYY/7itgZ5e56QCX1ayEp1iyTGgGezt54NfSfmh7CZfa7tc51ITUbG4A/orBwVwDZFSCECgFbrSSLiMmWRwkFc2HccaSVS3T7fJDU4136vGGsu6L5ysqb6CFmudj3miHcIhLvbZDfeniWvuhiEAGB4/nn2uJmP5EN8MjcPLFyfaeMZcXh/iGr3d7aBb7WSDcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uV6dLJodIBtjFLXYU4IUuaxgxQhurHUIoRmA7DMhpKU=; b=wdh7qOyrzBk6pBmO35sliBKuj5jGsKIcJwICMScAMYQGg0MMRhxL2BYKBvU0jFlG4iUUGcoOKcT0c01fsGajX5KUac7t+2cpm4oq6vSHuRMsc4HxoVQXflC6FD2WAG02vkLEhVWzImwjolHgaxSJGyMqll+4n6ZaNhXTbeotuJBNiOtWyeVHmNSQ9UGmatT47Vs6D/xP3pa7KUDX6oFsWn1bLUPaIUDtvM4AZaKmuLUT2U2N83DtXYBY18+SedgrXxMe+QJY3TX4GZc32VbDUkM38M05OFMKsyeznckXd6wTy7I0qNjdcfDo5x0LDGnaxd/avkY3f6ovJQFqufjewg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uV6dLJodIBtjFLXYU4IUuaxgxQhurHUIoRmA7DMhpKU=; b=G5jrE1UdQT9Bau/MGVOU7I0POg1atz+LKFyhsLK2ATarnWVsd/6IonbB4T+Cu5AEYM1cqi1EpC3xzTGC8hrOpdbUHndyGA5bobTu7etwtQwcf73Dx3uhGs+c2Zhk5DHaP+IrjzVao4a5VGqdR62hGYkYV8CodmOPUEOr8mGrJhV6AlfwdUvOS3LTpniqSs2Ets5/6GfkLX9pwfJvs5xXjVzeyblj1YqMDiCZgXl6Ptd3M6w3XxXjJ9BRouZEhcNfKL+e9lgb7OpH8w50j+R0p3QJ0PX1jXB3aYeS1jK1vjglBhH7//5078uM1CMDkLrDOxYx8JSK9hHSsJtOztBlQA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from KL1PR0601MB4113.apcprd06.prod.outlook.com (2603:1096:820:31::7) by KL1PR0601MB5776.apcprd06.prod.outlook.com (2603:1096:820:b4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24; Thu, 12 Sep 2024 07:13:11 +0000 Received: from KL1PR0601MB4113.apcprd06.prod.outlook.com ([fe80::7e85:dad0:3f7:78a1]) by KL1PR0601MB4113.apcprd06.prod.outlook.com ([fe80::7e85:dad0:3f7:78a1%4]) with mapi id 15.20.7962.017; Thu, 12 Sep 2024 07:13:10 +0000 From: Yan Zhen To: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, simona@ffwll.ch, chaitanya.dhere@amd.com, jun.lei@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com, Yan Zhen Subject: [PATCH v1] drm/amd/display: fix typo in the comment Date: Thu, 12 Sep 2024 15:12:09 +0800 Message-Id: <20240912071209.47240-1-yanzhen@vivo.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: TY2PR06CA0038.apcprd06.prod.outlook.com (2603:1096:404:2e::26) To KL1PR0601MB4113.apcprd06.prod.outlook.com (2603:1096:820:31::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: KL1PR0601MB4113:EE_|KL1PR0601MB5776:EE_ X-MS-Office365-Filtering-Correlation-Id: 33ce66e0-e7d7-463e-fbf5-08dcd2fa5bce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|52116014|376014|366016|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: q5izYZaDkobkRfESqQxyev5azG6OzTRL3Kx5RejrZ+dUXZsnU9lHX1IavZZbr+rJpXQH9tGqo6rK3FuuKlpmZ8qXB6xexiG4BUoO6HvZ0RExmYF7zegE/AOdVhzq0+Y2llkGmmictVi9j1Xdlzhw9ZRP7CT47dVOlzTzNpZJT5tEKpSO4L8jEo70oF5ideKoLch2ko1idwCVtlyJPktxGujWXzFvAEdchJ/fb3bkLJjlEK0IqTU4lVrg+rXcOPp6YyYZ7zZG6QdF7GoPu7pUUHAnWwPEN7EVm3xO3JZ0NFLZp37zU7JzEDDAc8CIIbH76poxSsfVYAgqErEKRbXBgWpaY/v/tqD9fTub8JuCEGx3JaCww0Zyai+ApyqAyBGFCYH+w4xoLb7P2tqUPUhCWNY78JN/FqOxnFtYZLsaAxhq43gKCllELxPc1wsBWEIuMjis39siGHX65jMr8XHt1d5/+xe3OZbdt6kv9bYVkpWqSYZtDabWXcfa2yVdAx/4wGAxC5bJ/V4tpGJVEJLHwD0O6gfPzOEnIfftHKiZ2ZVaN2C2SRJkBqaTNAnHg1/PP8Hhcbj/+ZjWj8odL9jdibPgqmdOvb5mSbKl1x4kObovbPaA2XVKiH8nlcpSL0kXi1p8R8mfiQzrjYvKx78TWwbAGxQbAepErLiWIYS/HxCkpxH7JN8ratLJFhXvUA9CxezxxI7q8gQD9DXQFpFaN3l06DPLgmTtfQROGj05MJW1oBbG396amfcEQTVGYlAeFUPQhD0d5VYE8HaLQiduVReVSBM6GlscjgjhjgazQe26kNgnRerPTC4vStKNygT+ImOfdWhla/T1VJ7Zk/e399JyriZEuLyw3Fs1dCoyI5y1oL/t2vIcJcZ2O1O6zkgSWURrbdTKEr86zvoVBX930T0EF//PAIkOqABXsFAsUhKMLIe00RkvDjL3YN0yo4FTJ4VF/uNWArJqfokvsHONRJXZGYky1OJNVryKw0cmpIm+702y4li57SOUZfazwK6so+jrmlOlOrFPlyyx3uyxp/mp3iqqVNGYR2GjgENQyq4Pfsf8QRsD+CHc0fGFklr/zIqi9i5MUY4FuB2O4+vL2K9lErorD5fKqKZu7ZRKpgS8bbpvBNUr1qr3mBesFm9Cg124LQulKUNCcaxaRBswp6U+6PdYZeAazbqYAH+s4N3ikaDsiJZTWv9JFNB9PeeLg52KaS4tMOHoMLohGLrosH1t2/nVK4MODg69KDTu2AOtoFbwvVb+R6lNG1i6ucrHL5O6/U3Rj6TLrSIL6JiGAzf7mRtmj7yYo00nPm4wreY+p5xvTBus98l6S6+gLWWNt6mYq3qs6OMEEHZ79PEcwzA+U23SROs3MdFl/1oqFadxTEODMrv4bSud/OtDHwmWlSTHk1OHUrk9yr2qboevrArm7c/7zryfI1SBhuKrujY= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:KL1PR0601MB4113.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(7416014)(52116014)(376014)(366016)(1800799024)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4IVuwt0isRxvVqEh12e3UfQScLhOBE/aGjgSoq889JgoBmlVPglyk5zAheeCHlFnEy3BWA2XUJPvKDxYxOlAaiY+rlzbROkmGZ7j39WdMsc93UlQuURw45SSS44dGGzmdfiyPFD89mNdymmzVaB9+QMjNBvpX3WW3K+00uKQ1xU6rZtiR+9ce8xdBmWmdgWvjAEgQ9PhpN7NWSEaGSoxHgA68UMJJqeXfFRc/KFDXB68ukoWj/2bPxg6D1Mjvzl8uN+78Di38VdKqwhOwCf9+yMBQZOwmc+6my8TCJN1JN40UuigbFeU3p4iVvgIgjdwyfzbN3Lt3lYRipI9VbC6/+ilkxJbVxHLKLQPKq/qnfyu+D50gOFEktJ8sMh1mVKuNGR//DD+D2EneF/QR63KwQNZ03tmd45/4a+sui/X9xqXn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cwgrCNzwWafJl2fFAG8Hmbc2glmd+4eXbipGXLSh1BBiksc/iTgTY4Bhkn2UJUkTaNoExSs7AbJfFxLtEQMc03 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33ce66e0-e7d7-463e-fbf5-08dcd2fa5bce X-MS-Exchange-CrossTenant-AuthSource: KL1PR0601MB4113.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2024 07:13:10.5483 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PeNhovxSp9OiSt8m6ioNQhigK5971VdkWTurpVPWgWIc2E7YvjGJ8dXOiN5oVundib4bZPz3mGVukbRU+uMRPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5776 X-Mailman-Approved-At: Thu, 12 Sep 2024 07:56:55 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Correctly spelled comments make it easier for the reader to understand the code. Replace 'maxium' with 'maximum' in the comment & replace 'diffculty' with 'difficulty' in the comment & replace 'suppluy' with 'supply' in the comment & replace 'Congiuration' with 'Configuration' in the comment & replace 'eanbled' with 'enabled' in the comment. Signed-off-by: Yan Zhen --- drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c | 2 +- drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c | 6 +++--- drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c b/drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c index e47e9db062f4..d70a3549e05a 100644 --- a/drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c @@ -569,7 +569,7 @@ static void calculate_bandwidth( break; } data->lb_partitions[i] = bw_floor2(bw_div(data->lb_size_per_component[i], data->lb_line_pitch), bw_int_to_fixed(1)); - /*clamp the partitions to the maxium number supported by the lb*/ + /* clamp the partitions to the maximum number supported by the lb */ if ((surface_type[i] != bw_def_graphics || dceip->graphics_lb_nodownscaling_multi_line_prefetching == 1)) { data->lb_partitions_max[i] = bw_int_to_fixed(10); } diff --git a/drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c b/drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c index 547dfcc80fde..d851c081e376 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c +++ b/drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c @@ -8926,7 +8926,7 @@ void dml_core_mode_programming(struct display_mode_lib_st *mode_lib, const struc // The prefetch scheduling should only be calculated once as per AllowForPStateChangeOrStutterInVBlank requirement // If the AllowForPStateChangeOrStutterInVBlank requirement is not strict (i.e. only try those power saving feature - // if possible, then will try to program for the best power saving features in order of diffculty (dram, fclk, stutter) + // if possible, then will try to program for the best power saving features in order of difficulty (dram, fclk, stutter) s->iteration = 0; s->MaxTotalRDBandwidth = 0; s->AllPrefetchModeTested = false; @@ -9977,7 +9977,7 @@ void dml_core_get_row_heights( dml_print("DML_DLG: %s: GPUVMMinPageSizeKBytes = %u\n", __func__, GPUVMMinPageSizeKBytes); #endif - // just suppluy with enough parameters to calculate meta and dte + // just supply with enough parameters to calculate meta and dte CalculateVMAndRowBytes( 0, // dml_bool_t ViewportStationary, 1, // dml_bool_t DCCEnable, @@ -10110,7 +10110,7 @@ dml_bool_t dml_mode_support( /// Note: In this function, it is assumed that DCFCLK, SOCCLK freq are the state values, and mode_program will just use the DML calculated DPPCLK and DISPCLK /// @param mode_lib mode_lib data struct that house all the input/output/bbox and calculation values. /// @param state_idx Power state idx chosen -/// @param display_cfg Display Congiuration +/// @param display_cfg Display Configuration /// @param call_standalone Calling mode_programming without calling mode support. Some of the "support" struct member will be pre-calculated before doing mode programming /// TODO: Add clk_cfg input, could be useful for standalone mode dml_bool_t dml_mode_programming( diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c index 42c52284a868..355823530aa4 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c @@ -455,7 +455,7 @@ bool dcn30_mmhubbub_warmup( struct mcif_wb *mcif_wb; struct mcif_warmup_params warmup_params = {0}; unsigned int i, i_buf; - /*make sure there is no active DWB eanbled */ + /* make sure there is no active DWB enabled */ for (i = 0; i < num_dwb; i++) { dwb = dc->res_pool->dwbc[wb_info[i].dwb_pipe_inst]; if (dwb->dwb_is_efc_transition || dwb->dwb_is_drc) {