PCIe & NVME Protocol Study - 工程師

Jack avatar
By Jack
at 2022-04-11T14:00

Table of Contents

大家好,我目前任職於某家SSD韌體,主要是負責NVMe Front-end的部分,Front-end主要
負責PCIe和NVMe protocol的firmware porting,所以必須study這兩份spec。由於spec
的內容過於龐大,所以我習慣會用網誌做筆記,一方便怕自己忘記,一方面也可以在遇到
問題的時候快速查詢,當然我所寫的都是我對於spec的理解,所以希望有這方面的專家,
可以討論不同的見解,也歡迎大家討論與指教。

PCIE:
■原理PCI Express - LTSSM Equalization狀態機推演
由於PCIe通道傳輸的特性,會有所謂的碼間干擾(Inter-Symbol Interference,ISI),而
導致資料無法被辨識,且隨著PCIe頻率越來越高,這個問題會更加明顯,因此必須透過
Equalizer來調整彼此間的訊號,得到比較好的眼圖,搭建起溝通的橋樑,此篇為EQ
LTSSM的推演。

https://reurl.cc/VjGMzb


■原理PCI Express - LTSSM 狀態機推演 "Detect -> Polling -> Configuration ->
L0"
PCIe為point-to-point interconnects(點對點的連接),所以就算系統上由多層PCIe bus
所構成,每個component只要負責與他對面的component之間的link negotiation就可以了
,這篇文章主要會推演兩個端點之間的LTSSM是如何從Detect state演進到L0。

https://reurl.cc/akpd4D

■簡介PCI Express: Link Training and Status State Machine( LTSSM 狀態機 )
由於工作上很容易會遇到PCIe Link上的問題或者我們需要驗證LTSSM state transition
有沒有符合預期 ,常常需要透過Protocol Analyzer錄製PCIe Trace來進一步分析。此篇
主要會介紹Traning Sequence,和各個LTSSM state主要目的為何。

https://reurl.cc/9Od37x


■原理PCI Express: Advanced Error Reporting(AER)
Advanced Error Report(簡稱AER)為PCIe 較為強健的錯誤回報機制,在PCI Express?
Base Specification Revision 3.0 的6.2節"Error Signaling and Logging"章節有詳細
的介紹整個AER的logging與repoting機制,由於工作上常常遇到Linux Kernel log中,出
現AER error訊息,所以又把spec拿出來翻一翻,藉此寫一篇關於AER的機制,方便以後查
詢。

https://reurl.cc/veyva1


NVME:
■原理NVM Express - NVMe Submission Queue & Completion Queue (SQ & CQ)
NVMe最基本的communicate架構主要是建立在Submission Queue和Completion Queue,
Host Software透過Submission Queue來提交command讓NVMe Controller執行,
Controller會透過Completion Queue來回報command執行狀況為何。此篇主要介紹NVMe基
本架構。
https://reurl.cc/bkZYVd

--

All Comments

Dinah avatar
By Dinah
at 2022-04-11T16:11
推推
William avatar
By William
at 2022-04-11T18:21
群聯 推
Valerie avatar
By Valerie
at 2022-04-11T20:32
Xanthe avatar
By Xanthe
at 2022-04-11T22:43
Linda avatar
By Linda
at 2022-04-12T00:53
推推
Rae avatar
By Rae
at 2022-04-12T03:04
Odelette avatar
By Odelette
at 2022-04-12T05:15
Queena avatar
By Queena
at 2022-04-12T07:25
推推
Skylar Davis avatar
By Skylar Davis
at 2022-04-12T09:36
George avatar
By George
at 2022-04-12T11:47
Tristan Cohan avatar
By Tristan Cohan
at 2022-04-12T13:58
謝謝分享
Sierra Rose avatar
By Sierra Rose
at 2022-04-12T16:08
先推一個
Jake avatar
By Jake
at 2022-04-12T18:19
Dora avatar
By Dora
at 2022-04-12T20:30
Kama avatar
By Kama
at 2022-04-12T22:40
Noah avatar
By Noah
at 2022-04-13T00:51
知識 推!
Oscar avatar
By Oscar
at 2022-04-13T03:02
推推 動畫清楚明瞭
Noah avatar
By Noah
at 2022-04-13T05:12
謝分享
Steve avatar
By Steve
at 2022-04-13T07:23
推推 真的看到都會背章節了XD
Tom avatar
By Tom
at 2022-04-13T09:34
推,謝謝學長
Heather avatar
By Heather
at 2022-04-13T11:45
smi 無私讚讚讚
Skylar DavisLinda avatar
By Skylar DavisLinda
at 2022-04-13T13:55
推!最近也在study Front end 的spec,這些資料讓
我收益良多。
Lily avatar
By Lily
at 2022-04-13T16:06
David avatar
By David
at 2022-04-13T18:17
請問原po是在p還是s高就?
Todd Johnson avatar
By Todd Johnson
at 2022-04-13T20:27
推,感謝分享
Tracy avatar
By Tracy
at 2022-04-13T22:38
推推
Aaliyah avatar
By Aaliyah
at 2022-04-14T00:49
推推
Ursula avatar
By Ursula
at 2022-04-14T02:59
和我想的差不多 (茶)
Agnes avatar
By Agnes
at 2022-04-14T05:10
Kristin avatar
By Kristin
at 2022-04-14T07:21
我記得ssd fan有好幾篇對FE介紹的也蠻詳細的
Hardy avatar
By Hardy
at 2022-04-14T09:32
Queena avatar
By Queena
at 2022-04-14T11:42
感謝分享
Una avatar
By Una
at 2022-04-14T13:53
想也知道群聯
Daniel avatar
By Daniel
at 2022-04-14T16:04
感謝分享!
Faithe avatar
By Faithe
at 2022-04-14T18:14
Megan avatar
By Megan
at 2022-04-14T20:25
good
Oliver avatar
By Oliver
at 2022-04-14T22:36
Mason avatar
By Mason
at 2022-04-15T00:46
Quanna avatar
By Quanna
at 2022-04-15T02:57
感謝高手分享
Quintina avatar
By Quintina
at 2022-04-15T05:08
推 剛拜讀完大大的AER
Lydia avatar
By Lydia
at 2022-04-15T07:19
只能推了
Susan avatar
By Susan
at 2022-04-15T09:29
感謝分享 造福雜魚我
Carol avatar
By Carol
at 2022-04-15T11:40
好文推推 台灣沒有這種技術社群真的可惜
Odelette avatar
By Odelette
at 2022-04-15T13:51
Belly avatar
By Belly
at 2022-04-15T16:01
Belly avatar
By Belly
at 2022-04-15T18:12
推大神
Caroline avatar
By Caroline
at 2022-04-15T20:23
推推
Jacob avatar
By Jacob
at 2022-04-15T22:33
Hazel avatar
By Hazel
at 2022-04-16T00:44
Faithe avatar
By Faithe
at 2022-04-16T02:55
推分享 很多技術文章都簡體居多
Ivy avatar
By Ivy
at 2022-04-16T05:06
Andrew avatar
By Andrew
at 2022-04-16T07:16
Victoria avatar
By Victoria
at 2022-04-16T09:27
Lucy avatar
By Lucy
at 2022-04-16T11:38
Agatha avatar
By Agatha
at 2022-04-16T13:48
好用心
Kristin avatar
By Kristin
at 2022-04-16T15:59
推推
Faithe avatar
By Faithe
at 2022-04-16T18:10
Liam avatar
By Liam
at 2022-04-16T20:20
Genevieve avatar
By Genevieve
at 2022-04-16T22:31
Cara avatar
By Cara
at 2022-04-17T00:42
好心人推推
Heather avatar
By Heather
at 2022-04-17T02:53
有沒有講程式的 我想看pci enumuration
Sierra Rose avatar
By Sierra Rose
at 2022-04-17T05:03
推推,感謝分享
Candice avatar
By Candice
at 2022-04-17T07:14
Dora avatar
By Dora
at 2022-04-17T09:25
希望分享nvme2.0b,pcie5.0
Joseph avatar
By Joseph
at 2022-04-17T11:35
Barb Cronin avatar
By Barb Cronin
at 2022-04-17T13:46
好奇這specs都幾頁啊?
Charlotte avatar
By Charlotte
at 2022-04-17T15:57
Xanthe avatar
By Xanthe
at 2022-04-17T18:07
Charlotte avatar
By Charlotte
at 2022-04-17T20:18
Dorothy avatar
By Dorothy
at 2022-04-17T22:29
Rae avatar
By Rae
at 2022-04-18T00:40
優文!
Megan avatar
By Megan
at 2022-04-18T02:50
推推
Hardy avatar
By Hardy
at 2022-04-18T05:01
Emily avatar
By Emily
at 2022-04-18T07:12
Caitlin avatar
By Caitlin
at 2022-04-18T09:22
Puput avatar
By Puput
at 2022-04-18T11:33
推好心
Connor avatar
By Connor
at 2022-04-18T13:44
push
Brianna avatar
By Brianna
at 2022-04-18T15:54
push
Caroline avatar
By Caroline
at 2022-04-18T18:05
Genevieve avatar
By Genevieve
at 2022-04-18T20:16
Ethan avatar
By Ethan
at 2022-04-18T22:27
伸手的連picsig會員都沒吧 XD
Catherine avatar
By Catherine
at 2022-04-19T00:37
Edwina avatar
By Edwina
at 2022-04-19T02:48
感謝分享
Carolina Franco avatar
By Carolina Franco
at 2022-04-19T04:59
推推 好文章
Hardy avatar
By Hardy
at 2022-04-19T07:09
Ingrid avatar
By Ingrid
at 2022-04-19T09:20
優質文章 推!
Steve avatar
By Steve
at 2022-04-19T11:31
對岸csdn很多這類文章
Dorothy avatar
By Dorothy
at 2022-04-19T13:41
推推
Isla avatar
By Isla
at 2022-04-19T15:52
Rae avatar
By Rae
at 2022-04-19T18:03
Thomas avatar
By Thomas
at 2022-04-19T16:20
好文一起推
Valerie avatar
By Valerie
at 2022-04-19T18:31
Damian avatar
By Damian
at 2022-04-19T16:20
Linda avatar
By Linda
at 2022-04-19T18:31
有沒有人要寫FTL的
Thomas avatar
By Thomas
at 2022-04-19T16:20
不錯
Elizabeth avatar
By Elizabeth
at 2022-04-19T18:31
o.o
Valerie avatar
By Valerie
at 2022-04-19T16:20
Haha 我想寫FTL 的筆記但感覺會牽涉機密,一般常見
的感覺看論文就好
Hazel avatar
By Hazel
at 2022-04-19T18:31
推 感謝分享
Kristin avatar
By Kristin
at 2022-04-19T16:20
好人好事
Quanna avatar
By Quanna
at 2022-04-19T18:31
好人
Connor avatar
By Connor
at 2022-04-19T16:20
用心好文 推推
Suhail Hany avatar
By Suhail Hany
at 2022-04-19T18:31
Annie avatar
By Annie
at 2022-04-19T16:20
Olive avatar
By Olive
at 2022-04-19T18:31
推推之前就有看過大大的文章 非常實用
Hedwig avatar
By Hedwig
at 2022-04-19T16:20
高手推
Ivy avatar
By Ivy
at 2022-04-19T18:31
厲害 推
Olive avatar
By Olive
at 2022-04-19T16:20
我們可以來建立台灣的技術社群
Oscar avatar
By Oscar
at 2022-04-19T18:31
個人有建立了 forum.community.tw
能使用markdown跟自動為程式碼上色等,也能當一些靜
態部落格的留言系統或者用rss轉貼(經作者同意)。
歡迎大家來試試
Ina avatar
By Ina
at 2022-04-19T16:20
慧榮?
Kumar avatar
By Kumar
at 2022-04-19T18:31
Faithe avatar
By Faithe
at 2022-04-19T16:20
推 用心
Annie avatar
By Annie
at 2022-04-19T18:31
Jessica avatar
By Jessica
at 2022-04-19T16:20
我的天啊我在bios海載浮載沉的時候就是你的網誌救了
我一命QQ
Hedda avatar
By Hedda
at 2022-04-19T18:31
Erin avatar
By Erin
at 2022-04-19T16:20
大推!
Frederica avatar
By Frederica
at 2022-04-19T18:31
讚喔
Joseph avatar
By Joseph
at 2022-04-19T16:20
推! 這太讚了
Necoo avatar
By Necoo
at 2022-04-19T18:31
Kyle avatar
By Kyle
at 2022-04-19T16:20
FTL一定有known how, 不用想了
Madame avatar
By Madame
at 2022-04-19T18:31
我建議可以朝flash access下手,例如分析讀data ret
ension nand scaled, read refrence 這就無關機密了
Hedwig avatar
By Hedwig
at 2022-04-19T16:20
推一個
Zenobia avatar
By Zenobia
at 2022-04-19T18:31
好文推~
Delia avatar
By Delia
at 2022-04-19T16:20
Adele avatar
By Adele
at 2022-04-19T18:31
推爆
Mason avatar
By Mason
at 2022-04-19T16:20
學長推
Frederica avatar
By Frederica
at 2022-04-19T18:31
推 分享
Heather avatar
By Heather
at 2022-04-19T16:20
推!!
Olga avatar
By Olga
at 2022-04-19T18:31
推! 要不要在動畫裡放國旗XD 以防...
Lily avatar
By Lily
at 2022-04-19T16:20
Barb Cronin avatar
By Barb Cronin
at 2022-04-19T18:31
Thomas avatar
By Thomas
at 2022-04-19T16:20
推,NVMe台灣的文章真的不多
Robert avatar
By Robert
at 2022-04-19T18:31
推 感謝你~
Elvira avatar
By Elvira
at 2022-04-19T16:20
Enid avatar
By Enid
at 2022-04-19T18:31
Margaret avatar
By Margaret
at 2022-04-19T16:20
James avatar
By James
at 2022-04-19T18:31
Jacob avatar
By Jacob
at 2022-04-19T16:20
Daniel avatar
By Daniel
at 2022-04-19T18:31
Hardy avatar
By Hardy
at 2022-04-19T16:20
Sierra Rose avatar
By Sierra Rose
at 2022-04-19T18:31
Jake avatar
By Jake
at 2022-04-19T16:20
讚,寫的很棒,受用無窮
Elma avatar
By Elma
at 2022-04-19T18:31
Tom avatar
By Tom
at 2022-04-19T16:20
必須推
William avatar
By William
at 2022-04-19T18:31
push
Connor avatar
By Connor
at 2022-04-19T16:20
推好心
Odelette avatar
By Odelette
at 2022-04-19T18:31
我推

廣達一員工確診 相關接觸人員啟動居家上

Poppy avatar
By Poppy
at 2022-04-11T12:27
廣達一員工確診 相關接觸人員啟動居家上班 2022/04/11 11:54:24 經濟日報 記者蕭君暉/台北即時報導 筆電代工龍頭廣達(2382)上週末有一個員工確診,該公司今(11)日表示,相關清消工 作已經完成,今天上午並對接觸確診者的相關員工,進行快篩,目前是陰性反應,同時, 已經要求相關 ...

去台積美國廠可以當美國人?

Ethan avatar
By Ethan
at 2022-04-11T12:24
最近看前同事在當GGer轉調美國廠, 攜家帶眷一起過去,落地不到一個月, 同事太太已經拍照po文說先買兩台Benz來試試 隔一週又po文說 開車路不熟差點撞到人,一直被白人狂按喇叭 自己hashtag #雖然我三寶但大家平安就好 限時動態的房子又大又有庭院跟泳池 上週他太太又po文說 已簽約預 ...

也許employment at will對科技業較有利…

Yedda avatar
By Yedda
at 2022-04-11T11:32
如題,之前在網上與某人聊天,他是曾在米帝獠牙四巨頭某間公司當過SDE,最早是在 亞麻當intern拿到return offer開始出道,經過數次跳槽與轉換跑道,他現在是某Unicorn Startup擔任Principal engineer。 然後他就提及了employment at will這東西,說直白 ...

18位產業大老赴總統府…他們為何訂單滿手

Isla avatar
By Isla
at 2022-04-11T01:17
2022年4月6日 18位產業大老赴總統府…他們為何訂單滿手,卻嗨不起來?一文解讀製造業老闆的「新三 缺」苦水 一場企業主與小英總統的餐宴,揭製造業頭家們最迫切的「三缺」苦水!2月底,中午12 點,總統府三樓台灣虹廳,18位產業界人士與總統的午宴低調展開。 午宴中,包括總統府資政暨和大工業董事長沈國榮、中 ...

台積電高煉廠進駐用地 地下水自主驗證符

Enid avatar
By Enid
at 2022-04-10T22:36
https://www.epochtimes.com/b5/22/4/10/n13708271.htm 台積電高煉廠進駐用地 地下水自主驗證符合標準 【大紀元2022年04月10日訊】(大紀元記者侯駿霖台灣高雄報導)台積電將在中油高雄廠 區投資設廠,針對建廠進度的污染整治有重要進展,高煉廠第三區已完成地下 ...