PCIe & NVME Protocol Study - 工程師
By Jack
at 2022-04-11T14:00
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
--
負責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
--
Tags:
工程師
All Comments
By Dinah
at 2022-04-11T16:11
at 2022-04-11T16:11
By William
at 2022-04-11T18:21
at 2022-04-11T18:21
By Valerie
at 2022-04-11T20:32
at 2022-04-11T20:32
By Xanthe
at 2022-04-11T22:43
at 2022-04-11T22:43
By Linda
at 2022-04-12T00:53
at 2022-04-12T00:53
By Rae
at 2022-04-12T03:04
at 2022-04-12T03:04
By Odelette
at 2022-04-12T05:15
at 2022-04-12T05:15
By Queena
at 2022-04-12T07:25
at 2022-04-12T07:25
By Skylar Davis
at 2022-04-12T09:36
at 2022-04-12T09:36
By George
at 2022-04-12T11:47
at 2022-04-12T11:47
By Tristan Cohan
at 2022-04-12T13:58
at 2022-04-12T13:58
By Sierra Rose
at 2022-04-12T16:08
at 2022-04-12T16:08
By Jake
at 2022-04-12T18:19
at 2022-04-12T18:19
By Dora
at 2022-04-12T20:30
at 2022-04-12T20:30
By Kama
at 2022-04-12T22:40
at 2022-04-12T22:40
By Noah
at 2022-04-13T00:51
at 2022-04-13T00:51
By Oscar
at 2022-04-13T03:02
at 2022-04-13T03:02
By Noah
at 2022-04-13T05:12
at 2022-04-13T05:12
By Steve
at 2022-04-13T07:23
at 2022-04-13T07:23
By Tom
at 2022-04-13T09:34
at 2022-04-13T09:34
By Heather
at 2022-04-13T11:45
at 2022-04-13T11:45
By Skylar DavisLinda
at 2022-04-13T13:55
at 2022-04-13T13:55
By Lily
at 2022-04-13T16:06
at 2022-04-13T16:06
By David
at 2022-04-13T18:17
at 2022-04-13T18:17
By Todd Johnson
at 2022-04-13T20:27
at 2022-04-13T20:27
By Tracy
at 2022-04-13T22:38
at 2022-04-13T22:38
By Aaliyah
at 2022-04-14T00:49
at 2022-04-14T00:49
By Ursula
at 2022-04-14T02:59
at 2022-04-14T02:59
By Agnes
at 2022-04-14T05:10
at 2022-04-14T05:10
By Kristin
at 2022-04-14T07:21
at 2022-04-14T07:21
By Hardy
at 2022-04-14T09:32
at 2022-04-14T09:32
By Queena
at 2022-04-14T11:42
at 2022-04-14T11:42
By Una
at 2022-04-14T13:53
at 2022-04-14T13:53
By Daniel
at 2022-04-14T16:04
at 2022-04-14T16:04
By Faithe
at 2022-04-14T18:14
at 2022-04-14T18:14
By Megan
at 2022-04-14T20:25
at 2022-04-14T20:25
By Oliver
at 2022-04-14T22:36
at 2022-04-14T22:36
By Mason
at 2022-04-15T00:46
at 2022-04-15T00:46
By Quanna
at 2022-04-15T02:57
at 2022-04-15T02:57
By Quintina
at 2022-04-15T05:08
at 2022-04-15T05:08
By Lydia
at 2022-04-15T07:19
at 2022-04-15T07:19
By Susan
at 2022-04-15T09:29
at 2022-04-15T09:29
By Carol
at 2022-04-15T11:40
at 2022-04-15T11:40
By Odelette
at 2022-04-15T13:51
at 2022-04-15T13:51
By Belly
at 2022-04-15T16:01
at 2022-04-15T16:01
By Belly
at 2022-04-15T18:12
at 2022-04-15T18:12
By Caroline
at 2022-04-15T20:23
at 2022-04-15T20:23
By Jacob
at 2022-04-15T22:33
at 2022-04-15T22:33
By Hazel
at 2022-04-16T00:44
at 2022-04-16T00:44
By Faithe
at 2022-04-16T02:55
at 2022-04-16T02:55
By Ivy
at 2022-04-16T05:06
at 2022-04-16T05:06
By Andrew
at 2022-04-16T07:16
at 2022-04-16T07:16
By Victoria
at 2022-04-16T09:27
at 2022-04-16T09:27
By Lucy
at 2022-04-16T11:38
at 2022-04-16T11:38
By Agatha
at 2022-04-16T13:48
at 2022-04-16T13:48
By Kristin
at 2022-04-16T15:59
at 2022-04-16T15:59
By Faithe
at 2022-04-16T18:10
at 2022-04-16T18:10
By Liam
at 2022-04-16T20:20
at 2022-04-16T20:20
By Genevieve
at 2022-04-16T22:31
at 2022-04-16T22:31
By Cara
at 2022-04-17T00:42
at 2022-04-17T00:42
By Heather
at 2022-04-17T02:53
at 2022-04-17T02:53
By Sierra Rose
at 2022-04-17T05:03
at 2022-04-17T05:03
By Candice
at 2022-04-17T07:14
at 2022-04-17T07:14
By Dora
at 2022-04-17T09:25
at 2022-04-17T09:25
By Joseph
at 2022-04-17T11:35
at 2022-04-17T11:35
By Barb Cronin
at 2022-04-17T13:46
at 2022-04-17T13:46
By Charlotte
at 2022-04-17T15:57
at 2022-04-17T15:57
By Xanthe
at 2022-04-17T18:07
at 2022-04-17T18:07
By Charlotte
at 2022-04-17T20:18
at 2022-04-17T20:18
By Dorothy
at 2022-04-17T22:29
at 2022-04-17T22:29
By Rae
at 2022-04-18T00:40
at 2022-04-18T00:40
By Megan
at 2022-04-18T02:50
at 2022-04-18T02:50
By Hardy
at 2022-04-18T05:01
at 2022-04-18T05:01
By Emily
at 2022-04-18T07:12
at 2022-04-18T07:12
By Caitlin
at 2022-04-18T09:22
at 2022-04-18T09:22
By Puput
at 2022-04-18T11:33
at 2022-04-18T11:33
By Connor
at 2022-04-18T13:44
at 2022-04-18T13:44
By Brianna
at 2022-04-18T15:54
at 2022-04-18T15:54
By Caroline
at 2022-04-18T18:05
at 2022-04-18T18:05
By Genevieve
at 2022-04-18T20:16
at 2022-04-18T20:16
By Ethan
at 2022-04-18T22:27
at 2022-04-18T22:27
By Catherine
at 2022-04-19T00:37
at 2022-04-19T00:37
By Edwina
at 2022-04-19T02:48
at 2022-04-19T02:48
By Carolina Franco
at 2022-04-19T04:59
at 2022-04-19T04:59
By Hardy
at 2022-04-19T07:09
at 2022-04-19T07:09
By Ingrid
at 2022-04-19T09:20
at 2022-04-19T09:20
By Steve
at 2022-04-19T11:31
at 2022-04-19T11:31
By Dorothy
at 2022-04-19T13:41
at 2022-04-19T13:41
By Isla
at 2022-04-19T15:52
at 2022-04-19T15:52
By Rae
at 2022-04-19T18:03
at 2022-04-19T18:03
By Thomas
at 2022-04-19T16:20
at 2022-04-19T16:20
By Valerie
at 2022-04-19T18:31
at 2022-04-19T18:31
By Damian
at 2022-04-19T16:20
at 2022-04-19T16:20
By Linda
at 2022-04-19T18:31
at 2022-04-19T18:31
By Thomas
at 2022-04-19T16:20
at 2022-04-19T16:20
By Elizabeth
at 2022-04-19T18:31
at 2022-04-19T18:31
By Valerie
at 2022-04-19T16:20
at 2022-04-19T16:20
By Hazel
at 2022-04-19T18:31
at 2022-04-19T18:31
By Kristin
at 2022-04-19T16:20
at 2022-04-19T16:20
By Quanna
at 2022-04-19T18:31
at 2022-04-19T18:31
By Connor
at 2022-04-19T16:20
at 2022-04-19T16:20
By Suhail Hany
at 2022-04-19T18:31
at 2022-04-19T18:31
By Annie
at 2022-04-19T16:20
at 2022-04-19T16:20
By Olive
at 2022-04-19T18:31
at 2022-04-19T18:31
By Hedwig
at 2022-04-19T16:20
at 2022-04-19T16:20
By Ivy
at 2022-04-19T18:31
at 2022-04-19T18:31
By Olive
at 2022-04-19T16:20
at 2022-04-19T16:20
By Oscar
at 2022-04-19T18:31
at 2022-04-19T18:31
By Ina
at 2022-04-19T16:20
at 2022-04-19T16:20
By Kumar
at 2022-04-19T18:31
at 2022-04-19T18:31
By Faithe
at 2022-04-19T16:20
at 2022-04-19T16:20
By Annie
at 2022-04-19T18:31
at 2022-04-19T18:31
By Jessica
at 2022-04-19T16:20
at 2022-04-19T16:20
By Hedda
at 2022-04-19T18:31
at 2022-04-19T18:31
By Erin
at 2022-04-19T16:20
at 2022-04-19T16:20
By Frederica
at 2022-04-19T18:31
at 2022-04-19T18:31
By Joseph
at 2022-04-19T16:20
at 2022-04-19T16:20
By Necoo
at 2022-04-19T18:31
at 2022-04-19T18:31
By Kyle
at 2022-04-19T16:20
at 2022-04-19T16:20
By Madame
at 2022-04-19T18:31
at 2022-04-19T18:31
By Hedwig
at 2022-04-19T16:20
at 2022-04-19T16:20
By Zenobia
at 2022-04-19T18:31
at 2022-04-19T18:31
By Delia
at 2022-04-19T16:20
at 2022-04-19T16:20
By Adele
at 2022-04-19T18:31
at 2022-04-19T18:31
By Mason
at 2022-04-19T16:20
at 2022-04-19T16:20
By Frederica
at 2022-04-19T18:31
at 2022-04-19T18:31
By Heather
at 2022-04-19T16:20
at 2022-04-19T16:20
By Olga
at 2022-04-19T18:31
at 2022-04-19T18:31
By Lily
at 2022-04-19T16:20
at 2022-04-19T16:20
By Barb Cronin
at 2022-04-19T18:31
at 2022-04-19T18:31
By Thomas
at 2022-04-19T16:20
at 2022-04-19T16:20
By Robert
at 2022-04-19T18:31
at 2022-04-19T18:31
By Elvira
at 2022-04-19T16:20
at 2022-04-19T16:20
By Enid
at 2022-04-19T18:31
at 2022-04-19T18:31
By Margaret
at 2022-04-19T16:20
at 2022-04-19T16:20
By James
at 2022-04-19T18:31
at 2022-04-19T18:31
By Jacob
at 2022-04-19T16:20
at 2022-04-19T16:20
By Daniel
at 2022-04-19T18:31
at 2022-04-19T18:31
By Hardy
at 2022-04-19T16:20
at 2022-04-19T16:20
By Sierra Rose
at 2022-04-19T18:31
at 2022-04-19T18:31
By Jake
at 2022-04-19T16:20
at 2022-04-19T16:20
By Elma
at 2022-04-19T18:31
at 2022-04-19T18:31
By Tom
at 2022-04-19T16:20
at 2022-04-19T16:20
By William
at 2022-04-19T18:31
at 2022-04-19T18:31
By Connor
at 2022-04-19T16:20
at 2022-04-19T16:20
By Odelette
at 2022-04-19T18:31
at 2022-04-19T18:31
Related Posts
廣達一員工確診 相關接觸人員啟動居家上
By Poppy
at 2022-04-11T12:27
at 2022-04-11T12:27
去台積美國廠可以當美國人?
By Ethan
at 2022-04-11T12:24
at 2022-04-11T12:24
也許employment at will對科技業較有利…
By Yedda
at 2022-04-11T11:32
at 2022-04-11T11:32
18位產業大老赴總統府…他們為何訂單滿手
By Isla
at 2022-04-11T01:17
at 2022-04-11T01:17
台積電高煉廠進駐用地 地下水自主驗證符
By Enid
at 2022-04-10T22:36
at 2022-04-10T22:36