← Interrupt 상세 목차DUJINLABS.COM

Hardware · Interrupt detailed manual 02 · Linux v6.18.37

2. PLIC gateway와 source pending을 pin에서 확인한다

각 global source의 gateway가 request를 한 번 전달하고 completion까지 새 request를 제한하는 모델을 level/edge 장치 동작과 연결합니다.

상세 표
2
검증 행
14
절차
4 checkpoints
기준
RISC-V PLIC · AIA · Linux v6.18.37

CHAPTER 02

2. PLIC gateway와 source pending을 pin에서 확인한다

각 global source의 gateway가 request를 한 번 전달하고 completion까지 새 request를 제한하는 모델을 level/edge 장치 동작과 연결합니다.

gateway

source signal을 PLIC core request로 바꾸며 한 source당 outstanding request를 제한합니다.

pending

global pending bit는 어느 target context가 처리할지 결정되기 전 source request를 나타냅니다.

level source

장치 원인이 남으면 complete 뒤 gateway가 다시 request를 만들 수 있습니다.

source 0

ID 0은 interrupt 없음으로 예약되며 유효 source로 쓰지 않습니다.

레지스터·번호·소유권 대조

항목소유자값의 의미정상 증거오류 해석
pending wordPLIC coresource pending bitmap장치 사건 bit setwire/gateway 경계
priority[source]PLIC core0이면 never interrupt운영 source >0pending이나 전달 차단
device statusperipheralraw source 원인PLIC bit와 동시잘못된 source ID
DT interrupt specfirmwarePLIC source ID회로/RTL map과 일치off-by-one
gateway stateimplementation/debugoutstanding requestcomplete 뒤 재수락completion 누락

실패 경계 판정

증상직전 통과우선 확인반증 시험판정
device status 1, PLIC pending 0장치 원인wire/source ID/gatewaysoftware 가능한 source와 비교입력 경계
pending 계속 1source 수신claim/complete와 level clear장치 mask 후 complete원인 유지 또는 completion
한 edge만 수신첫 event 성공gateway outstandingcomplete 여부 확인claim/complete 누락
source ID가 문서와 다름handler는 다른 IDDT/RTL mappending bitmap과 pin 자극 대조firmware 기술
priority 0인데 기대pending 생성priority programmingpriority 1로 시험정책 설정
그림 1. 2. PLIC gateway와 source pending을 pin에서 확인한다의 실행 순서왼쪽에서 오른쪽으로 실제 소유권과 관찰 지점이 이동합니다.
01 device pin/status
02 gateway request
03 global pending
04 target enable
05 priority/threshold
06 claim
07 handler clear
08 complete
09 gateway rearm

실제 검증 절차

순서실행남길 증거판정 목적
1source를 하나씩 자극해 device status와 pending bit를 매핑합니다.source mapRTL/DT 검증
2level source를 clear 전/후 complete해 재발생 차이를 봅니다.순서별 countgateway 모델 확인
3priority 0/1로 전달 차단을 확인합니다.pending 유지와 trap 차이priority 경계
4source 1부터 최대 구현 source까지 address 범위를 검증합니다.상한/예약 IDcapability 확인

주의PLIC은 edge/level polarity를 표준 register로 설정하지 않습니다. source conditioning은 peripheral 또는 SoC integration 책임일 수 있습니다.

공개적으로 다시 확인할 수 있는 자료

공개되지 않은 vendor register나 integration별 offset을 추측해서 채우지 않았습니다. 아래 제조사 자료, architecture 문서와 Linux v6.18.37 원본에서 다시 확인할 수 있는 범위만 사용했습니다.