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 B76D6C021BE for ; Thu, 27 Feb 2025 05:06:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 62C8A10E1CD; Thu, 27 Feb 2025 05:06:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IbKIrq6L"; dkim-atps=neutral Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by gabe.freedesktop.org (Postfix) with ESMTPS id 59D7D10E1CD for ; Thu, 27 Feb 2025 05:06:15 +0000 (UTC) Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-7c07b65efeeso49844485a.2 for ; Wed, 26 Feb 2025 21:06:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740632774; x=1741237574; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=mezg0s1ePURZfXLWtXyY33wczui4LdpBNxmdwm8UHi8=; b=IbKIrq6LNhq7J/vRoSruYIt3v6WJT7ERkNDgjylGHOJ9mVzDaUvuM3CZeJy/2HFKSW 2QgMxo+oOTqLfAeRmBiN+AWTylPd0sjKnV6JWVweTif7+si7RBtgPV16kjONCDHCruWt mP5doe7QEw8ijVnm8UYBAeF/YkyZDlth28DbuDaTUttjJoW1z/R1sHdXlp4MlyTnNtFf wDlbV5SG3xZoZOdFkZJZT6g3hQ+kzilewjsNIAihtPflAgalfBuZiHzuE/aPv0tbvyzQ dn+zawzCzjW52Ehx2czbcr8ptAfGGMLx49vNyMzLgtYLL6fcQQvBCZB9uynhYBjePvix vN8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740632774; x=1741237574; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mezg0s1ePURZfXLWtXyY33wczui4LdpBNxmdwm8UHi8=; b=PZWjmANE0mfb2NGxHYMgONSiTrgeLU3dISGZ1fXo6q0OrPTCYMJy467L8l+2c4w6GY K6ik7JBLoRVhe3OL6UBWs0PXWiPhv7NBY0P+jNq/IgjOK1MeAFcx5uskA1uIceRB7sX3 S4I1QBRJnFlRnp9sxK+WW9W1RuPYfaKVZS5BrucohgNQ6ZRlq2n2cFgpFdmYfzFJwJmQ BvfqjV81htCFRHGVH3269M3dvhyRshnHtRe4rwa4MdH9zbGx2qz2qg3pfvGHqaYd0KOP p0Se8TJ+lB8G04XFE/3fk8D2Wry1JQYBIjej640tbz8RM8PVYYpUHvtZthBwX+fqL2bQ oCPQ== X-Gm-Message-State: AOJu0YxLpzvgYQvqJ+XUUtRev/7iNABnCLTrKkJsIPzVcJPsfvTnf3kS wjUWZFVh5KBPZdH/wPnV7SKN14q7fqsD7TVCdwy4OeCaL0E9wYPchWJxIg== X-Gm-Gg: ASbGnctnekEMeT0SQ0UsWuhGMNPQtzPS/4dQJUHv4IykVLkNURI3zWi4Wq/8RqA/JED JsxnnDCJPu52trcswHIy3SSmF5afV3XyLnkMv6n5gPT6RYOUibqTcax8BfiWzm7ewPofyTXUvxU Olzis0vrL0EE0PolshjbPD9U6dEIuZoS8TFhkd9M+0oCsJhq77SgrZV2mrS84s79RELqMeL08Nx HjaM1XIetnP5qk/1JK3JwzsWn/RUJ0cuqV2+9PvL/mDZkGSdDuNT0Y9ajz7JazgEjLwEUnf8V3A 7TYizCE15fnqM24xFefzXxQoXU5lZEbgii7In4Vj1XjHAlFH X-Google-Smtp-Source: AGHT+IEmfWAh3LFgRG/+BK4SX6cCvGkBj9lUZ8Y6JO6uatLlM15zG6dQT1XE+17JKw7Qswuh6zKL9w== X-Received: by 2002:a05:6214:d6f:b0:6d8:6a74:ae68 with SMTP id 6a1803df08f44-6e6ae96734dmr279042766d6.29.1740632773670; Wed, 26 Feb 2025 21:06:13 -0800 (PST) Received: from localhost.localdomain ([38.74.25.248]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6e8976cca63sm6066906d6.89.2025.02.26.21.06.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 21:06:13 -0800 (PST) From: Alexandre Demers To: amd-gfx@lists.freedesktop.org Subject: [PATCH 1/3] drm/amdgpu: fix typos Date: Thu, 27 Feb 2025 00:05:04 -0500 Message-ID: <20250227050506.167299-1-alexandre.f.demers@gmail.com> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Found some typos while exploring amdgpu code. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +- drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 3 ++- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c index 1c19a65e6553..c05e7dbac784 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c @@ -269,7 +269,7 @@ void amdgpu_gmc_sysvm_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc * @mc: memory controller structure holding memory information * @gart_placement: GART placement policy with respect to VRAM * - * Function will place try to place GART before or after VRAM. + * Function will try to place GART before or after VRAM. * If GART size is bigger than space left then we ajust GART size. * Thus function will never fails. */ diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c b/drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c index bdbca25d80c4..0cc820a557d1 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c @@ -98,7 +98,7 @@ static void uvd_v3_1_ring_emit_ib(struct amdgpu_ring *ring, } /** - * uvd_v3_1_ring_emit_fence - emit an fence & trap command + * uvd_v3_1_ring_emit_fence - emit a fence & trap command * * @ring: amdgpu_ring pointer * @addr: address @@ -242,7 +242,7 @@ static void uvd_v3_1_mc_resume(struct amdgpu_device *adev) uint64_t addr; uint32_t size; - /* programm the VCPU memory controller bits 0-27 */ + /* program the VCPU memory controller bits 0-27 */ addr = (adev->uvd.inst->gpu_addr + AMDGPU_UVD_FIRMWARE_OFFSET) >> 3; size = AMDGPU_UVD_FIRMWARE_SIZE(adev) >> 3; WREG32(mmUVD_VCPU_CACHE_OFFSET0, addr); @@ -416,7 +416,7 @@ static int uvd_v3_1_start(struct amdgpu_device *adev) /* Set the write pointer delay */ WREG32(mmUVD_RBC_RB_WPTR_CNTL, 0); - /* programm the 4GB memory segment for rptr and ring buffer */ + /* Program the 4GB memory segment for rptr and ring buffer */ WREG32(mmUVD_LMI_EXT40_ADDR, upper_32_bits(ring->gpu_addr) | (0x7 << 16) | (0x1 << 31)); diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c index a836dc9cfcad..f3d5e15b5b0d 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c @@ -302,7 +302,7 @@ static int uvd_v4_2_start(struct amdgpu_device *adev) /* enable VCPU clock */ WREG32(mmUVD_VCPU_CNTL, 1 << 9); - /* disable interupt */ + /* disable interrupt */ WREG32_P(mmUVD_MASTINT_EN, 0, ~(1 << 1)); #ifdef __BIG_ENDIAN @@ -312,6 +312,7 @@ static int uvd_v4_2_start(struct amdgpu_device *adev) #endif WREG32(mmUVD_LMI_SWAP_CNTL, lmi_swap_cntl); WREG32(mmUVD_MP_SWAP_CNTL, mp_swap_cntl); + /* initialize UVD memory controller */ WREG32(mmUVD_LMI_CTRL, 0x203108); diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c index c1ed91b39415..e12f82219310 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c @@ -280,7 +280,7 @@ static int vce_v2_0_stop(struct amdgpu_device *adev) if (vce_v2_0_lmi_clean(adev)) { - DRM_INFO("vce is not idle \n"); + DRM_INFO("VCE is not idle \n"); return 0; } -- 2.48.1