← Documents Documentation/ABI/stable/sysfs-firmware-opal-dump GitHub 원문 ↗

Linux 6.18.37 · ABI / stable

POWER OPAL firmware dump stable sysfs ABI

powerpc/powernv에서 OPAL을 통해 FSP·platform dump를 시작하고 dump ID·type·binary payload를 조회한 뒤 service processor에 acknowledge하는 lifecycle을 설명합니다.

Source pathDocumentation/ABI/stable/sysfs-firmware-opal-dump
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

Dump initiation과 instance discovery

sysfs-firmware-opal-dump:1-24

Dump를 시작하고 고유 directory로 생성된 dump instance를 찾되 directory name의 형식이나 숫자 크기에 의존하지 않습니다.

Dump metadata, payload와 acknowledge

sysfs-firmware-opal-dump:25-46

각 instance의 id·type과 binary dump를 읽고 회수 완료 뒤 acknowledge하여 firmware resource를 제거합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 What: /sys/firmware/opal/dump
2 Date: Feb 2014
3 Contact: Stewart Smith <[email protected]>
4 Description:
5 This directory exposes interfaces for interacting with
6 the FSP and platform dumps through OPAL firmware interface.
7
8 This is only for the powerpc/powernv platform.
9
10 =============== ===============================================
11 initiate_dump: When '1' is written to it,
12 we will initiate a dump.
13 Read this file for supported commands.
14
15 0xXX-0xYYYY: A directory for dump of type 0xXX and
16 id 0xYYYY (in hex). The name of this
17 directory should not be relied upon to
18 be in this format, only that it's unique
19 among all dumps. For determining the type
20 and ID of the dump, use the id and type files.
21 Do not rely on any particular size of dump
22 type or dump id.
23 =============== ===============================================
24
25 Each dump has the following files:
26
27 =============== ===============================================
28 id: An ASCII representation of the dump ID
29 in hex (e.g. '0x01')
30 type: An ASCII representation of the type of
31 dump in the format "0x%x %s" with the ID
32 in hex and a description of the dump type
33 (or 'unknown').
34 Type '0xffffffff unknown' is used when
35 we could not get the type from firmware.
36 e.g. '0x02 System/Platform Dump'
37 dump: A binary file containing the dump.
38 The size of the dump is the size of this file.
39 acknowledge: When 'ack' is written to this, we will
40 acknowledge that we've retrieved the
41 dump to the service processor. It will
42 then remove it, making the dump
43 inaccessible.
44 Reading this file will get a list of
45 supported actions.
46 =============== ===============================================
47

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

OPAL dump interface의 범위

1-9
항목내용
What/sys/firmware/opal/dump
Date2014년 2월
ContactStewart Smith <[email protected]>
Platformpowerpc/powernv 전용

이 directory는 OPAL firmware interface를 통해 FSP dump와 platform dump를 다루는 interface를 노출한다.

Dump 시작과 고유 instance directory

10-24
Entry동작과 제약
initiate_dump1을 쓰면 dump를 시작한다. 읽으면 지원되는 command 목록을 반환한다.
0xXX-0xYYYYType 0xXX, ID 0xYYYY인 dump를 나타내는 directory 이름의 예다. 이름은 모든 dump 사이에서 고유하다는 사실만 보장되며 이 형식 자체에 의존하면 안 된다.

Dump type과 ID는 directory name을 parse하지 말고 각각 type과 id 파일에서 읽어야 한다. Dump type이나 dump ID가 특정 bit width 또는 문자열 길이를 가진다고 가정해서도 안 된다.

Dump instance의 metadata와 binary payload

25-38
파일형식과 의미
idDump ID의 hexadecimal ASCII 표현이다. 예: 0x01.
type0x%x %s 형식의 ASCII 문자열이다. Hexadecimal type ID와 dump-type description 또는 unknown을 함께 표시한다. Firmware에서 type을 얻지 못하면 0xffffffff unknown을 사용한다. 예: 0x02 System/Platform Dump.
dump실제 dump를 담은 binary file이다. Dump 크기는 이 파일의 size와 같다.

회수 완료 acknowledge와 resource 제거

39-46

acknowledge 파일에 ack를 쓰면 dump를 회수했다는 사실을 service processor에 알린다. Service processor는 그 dump를 제거하고 이후에는 접근할 수 없게 만든다. 이 파일을 읽으면 지원되는 action 목록을 얻는다.

OPAL dump의 전체 lifecycle
initiate_dump에 1 기록OPAL·service processor가 dump 생성고유 dump directory 발견id와 type 파일로 metadata 확인dump binary file 전체 회수acknowledge에 ack 기록Service processor가 dump 제거

Binary payload를 안전하게 저장하기 전에 acknowledge하면 원본 dump가 제거되므로 순서를 지켜야 한다.