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 8D014CA0FE9 for ; Sun, 24 Aug 2025 23:32:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7362410E2A1; Sun, 24 Aug 2025 23:32:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="pM6xXvNZ"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6221A10E21F for ; Sun, 24 Aug 2025 23:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Gz3nELolak9hVPfB+w3bu/M5eLqunICK5lRzgNqBxF4=; b=pM6xXvNZwIYauhDRgo/qILuid6 NHNn543ET+rZRpZurmE9Z1vrKqxpPV/+a77THW2pn6gqXiStlNGmBkf4EicF5tPvO3KoWVOzroXR6 c3GOAesKgIfb1eYvduV2nA1W0rwPBT8tZwLsjGrwv8N5tJFgGhCHLg0c5QuEFWpCuIqIMjcIkdRwQ soeThxF9+1A766ZwIR8JQJdkt6wwWxl0HLKUZRnrEMQm0hzZrEdSc0OaMyZTVT0g00Hu7m/wwJs7Z yVcHBh9sE4kqZqETj5KaQ/r+i2McTUSS72QHPfBWkHhoNY4ktOl75YvpG9MDu/+6cqYuFDbHgekEV 6EBQ+TeA==; Received: from [104.193.135.201] (helo=debian.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1uqKCg-00198j-Cd; Mon, 25 Aug 2025 01:32:50 +0200 From: Rodrigo Siqueira To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , =?UTF-8?q?Timur=20Krist=C3=B3f?= Cc: amd-gfx@lists.freedesktop.org, kernel-dev@igalia.com, Rodrigo Siqueira Subject: [PATCH v2 3/5] Documentation/gpu: Expand generic block information Date: Sun, 24 Aug 2025 17:29:43 -0600 Message-ID: <20250824233149.3780127-4-siqueira@igalia.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250824233149.3780127-1-siqueira@igalia.com> References: <20250824233149.3780127-1-siqueira@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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" This commit expands the overall explanation about AMD GPU IPs by adding more details about their interconnection. Note that this commit includes a diagram that provides additional information. Cc: Alex Deucher Cc: Christian König Cc: Timur Kristóf Signed-off-by: Rodrigo Siqueira --- .../gpu/amdgpu/amd_overview_block.svg | 674 ++++++++++++++++++ Documentation/gpu/amdgpu/amdgpu-glossary.rst | 3 + Documentation/gpu/amdgpu/driver-core.rst | 25 + 3 files changed, 702 insertions(+) create mode 100644 Documentation/gpu/amdgpu/amd_overview_block.svg diff --git a/Documentation/gpu/amdgpu/amd_overview_block.svg b/Documentation/gpu/amdgpu/amd_overview_block.svg new file mode 100644 index 000000000000..8d9ae95bd9a5 --- /dev/null +++ b/Documentation/gpu/amdgpu/amd_overview_block.svg @@ -0,0 +1,674 @@ + + + + + + + + + + + + + + + + + + + + + + + + UMC + + + + Memory hub + + + DCN + + + + PSP + + + + + PCIe (NBIO) + + + VCN + + + Graphics & Compute (GC) + + ShaderEngine(SE)#1 + + + + SE #2 + + + + SE #N + + + ... + + + + + SMU + + + + + + + SDMA + + + + + + + + + + Reset + + + + + PSP Interaction + + + + + + + UMC + UMC + + + + + + + + Firmware + + + + Memory + Memory + Memory + Memory + + + + diff --git a/Documentation/gpu/amdgpu/amdgpu-glossary.rst b/Documentation/gpu/amdgpu/amdgpu-glossary.rst index eb72e6f6d4f1..a3f9565d655b 100644 --- a/Documentation/gpu/amdgpu/amdgpu-glossary.rst +++ b/Documentation/gpu/amdgpu/amdgpu-glossary.rst @@ -227,6 +227,9 @@ we have a dedicated glossary for Display Core at TOC Table of Contents + UMC + Unified Memory Controller + UMSCH User Mode Scheduler diff --git a/Documentation/gpu/amdgpu/driver-core.rst b/Documentation/gpu/amdgpu/driver-core.rst index 81256318e93c..f47199c04d8f 100644 --- a/Documentation/gpu/amdgpu/driver-core.rst +++ b/Documentation/gpu/amdgpu/driver-core.rst @@ -77,6 +77,31 @@ VCN (Video Core Next) decode. It's exposed to userspace for user mode drivers (VA-API, OpenMAX, etc.) +It is important to note that these blocks can interact with each other. The +picture below illustrates some of the components and their interconnection: + +.. kernel-figure:: amd_overview_block.svg + +In the diagram, memory-related blocks are represented by a green color. Notice +that specific IPs have a green block that represents a small hardware block +named 'hub', which is responsible for interfacing with memory (pre-vega devices +have a dedicated block for that, named GMC). In the driver code, you can +identify this component by looking for the suffix hub, for example: gfxhub, +dchub, mmhub, vmhub, etc. All memory hubs are connected in the UMC, which in +turn is connected to memory blocks. + +There is some level of protection for certain elements in memory, and the PSP +plays an essential role in this area. For example, when a specific firmware is +loaded into the memory, PSP takes an action to ensure that the firmware has a +valid signature. Another use of PSP is to support the TA (e.g., HDCP) and +encrypted memory via TMZ. + +Another IP that deserves attention is the SMU, as it is connected to all the +other IPs. SMU will help put the GPU in optimal utilization by taking into +account performance and power consumption. SMU helps other blocks to set up a +proper clock configuration. Another feature of SMU is the support for resetting +every component. + .. _pipes-and-queues-description: GFX, Compute, and SDMA Overall Behavior -- 2.47.2