요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
=======================
dGPU firmware flashing
=======================
IFWI
----
Flashing the dGPU integrated firmware image (IFWI) is supported by GPUs that
use the PSP to orchestrate the update (Navi3x or newer GPUs).
For supported GPUs, `amdgpu` will export a series of sysfs files that can be
used for the flash process.
The IFWI flash process is:
1. Ensure the IFWI image is intended for the dGPU on the system.
2. "Write" the IFWI image to the sysfs file `psp_vbflash`. This will stage the IFWI in memory.
3. "Read" from the `psp_vbflash` sysfs file to initiate the flash process.
4. Poll the `psp_vbflash_status` sysfs file to determine when the flash process completes.
USB-C PD F/W
------------
On GPUs that support flashing an updated USB-C PD firmware image, the process
is done using the `usbc_pd_fw` sysfs file.
* Reading the file will provide the current firmware version.
* Writing the name of a firmware payload stored in `/lib/firmware/amdgpu` to the sysfs file will initiate the flash process.
The firmware payload stored in `/lib/firmware/amdgpu` can be named any name
as long as it doesn't conflict with other existing binaries that are used by
`amdgpu`.
sysfs files
-----------
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
dGPU IFWI 플래시 절차
1-18dGPU 통합 펌웨어 이미지(IFWI) 플래시는 PSP가 업데이트를 조정하는 GPU에서 지원됩니다. 원문은 그 범위를 Navi3x 또는 그 이후 GPU로 설명합니다. 지원되는 GPU에서는 `amdgpu`가 플래시 과정에 사용할 여러 sysfs 파일을 내보냅니다.
첫 단계의 호환성 확인은 선택 사항이 아닙니다. 사용할 IFWI 이미지가 현재 시스템의 dGPU용인지 먼저 확인해야 합니다. 이어지는 `psp_vbflash` 접근은 같은 파일에 대한 쓰기와 읽기가 서로 다른 역할을 한다는 점이 핵심입니다.
원문에 정의된 네 단계는 순서를 바꾸지 않고 수행합니다.
같은 psp_vbflash 파일이라도 접근 방향에 따라 의미가 달라집니다.
=======================
dGPU firmware flashing
=======================
IFWI
----
Flashing the dGPU integrated firmware image (IFWI) is supported by GPUs that
use the PSP to orchestrate the update (Navi3x or newer GPUs).
For supported GPUs, `amdgpu` will export a series of sysfs files that can be
used for the flash process.
The IFWI flash process is:
1. Ensure the IFWI image is intended for the dGPU on the system.
2. "Write" the IFWI image to the sysfs file `psp_vbflash`. This will stage the IFWI in memory.
3. "Read" from the `psp_vbflash` sysfs file to initiate the flash process.
4. Poll the `psp_vbflash_status` sysfs file to determine when the flash process completes.
USB-C PD 펌웨어 갱신
19-29업데이트된 USB-C PD 펌웨어 이미지의 플래시를 지원하는 GPU에서는 `usbc_pd_fw` sysfs 파일을 사용합니다. 이 파일을 읽으면 현재 펌웨어 버전을 얻고, 이 파일에 firmware payload의 이름을 쓰면 플래시 과정을 시작합니다.
payload 자체는 `/lib/firmware/amdgpu`에 저장되어 있어야 합니다. sysfs에 쓰는 값은 전체 경로가 아니라 그곳에 저장된 firmware payload의 이름입니다. 이름은 자유롭게 정할 수 있지만 `amdgpu`가 사용하는 기존 바이너리와 충돌해서는 안 됩니다.
읽기와 쓰기가 각각 조회와 갱신 시작을 담당합니다.
원문이 명시한 경로와 접근 의미를 구분합니다.
USB-C PD F/W
------------
On GPUs that support flashing an updated USB-C PD firmware image, the process
is done using the `usbc_pd_fw` sysfs file.
* Reading the file will provide the current firmware version.
* Writing the name of a firmware payload stored in `/lib/firmware/amdgpu` to the sysfs file will initiate the flash process.
The firmware payload stored in `/lib/firmware/amdgpu` can be named any name
as long as it doesn't conflict with other existing binaries that are used by
`amdgpu`.
sysfs kernel-doc 연결
30-33각 sysfs 파일의 구체적인 인터페이스 정의는 `drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c`의 kernel-doc에서 가져옵니다. 이 문서는 플래시 흐름을 설명하고, 개별 속성의 실제 정의는 해당 소스의 문서 주석에 연결합니다.
플래시 절차와 sysfs 세부 정의의 소유 위치를 분리해 확인합니다.
sysfs files
-----------
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
요약·해설
flashing.rst:1-33이 문서는 AMD dGPU의 두 가지 펌웨어 갱신 경로를 설명합니다. IFWI는 호환성 확인, 메모리 스테이징, 플래시 시작, 상태 폴링의 네 단계로 진행합니다. USB-C PD 펌웨어는 `usbc_pd_fw`를 읽어 현재 버전을 확인하고, `/lib/firmware/amdgpu`에 둔 payload 이름을 써서 갱신을 시작합니다.
대상별 sysfs 인터페이스와 핵심 동작을 빠르게 대조합니다.