Linux 板


LINE

※ 引述《lantw44 ([+++++++======>])》之銘言: : 目前這個 Linux >= 3.7 和 Intel Ironlake 的問題已經回報到 DRM/Intel,不過還沒找 : 到真正的解法。 : git bisect 出來的結果是這個 commit: : https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=edef7e6 : 有嘗試過這個 patch: : --- a/drivers/char/agp/intel-gtt.c : +++ b/drivers/char/agp/intel-gtt.c : @@ -581,7 +581,7 @@ static inline int needs_ilk_vtd_wa(void) : /* Query intel_iommu to see if we need the workaround. Presumably that : * was loaded first. : */ : - if ((gpu_devid == PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB || : + if ((gpu_devid == PCI_DEVICE_ID_INTEL_IRONLAKE_D_IG || : gpu_devid == PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG) && : intel_iommu_gfx_mapped) : return 1; 這個 patch 已經進 Linux 4.2-rc2: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=8b572a4 也收到通知會 backport 回以下版本: Linux 3.10-stable Linux 3.14-stable Linux 4.1-stable Ubuntu Kernel 3.13.y-ckt Ubuntu Kernel 3.16.y-ckt Ubuntu Kernel 3.19.y-ckt 不過對我來說沒什麼感覺,即使有這個 patch 我還是得用 intel_iommu=igfx_off,因為 持續使用一兩個小時以後還是會當機。當然,如果開機過後就擺著不去用它,放一兩個小 時是不會當機的。 : 雖然這可以讓系統正常啟動,display server 也能正常執行,但是會在大約使用一小時 : 之後,在 serial console 收到這個訊息,接著當機,只能按 reset 重開。 : Kernel panic - not syncing: DMAR hardware is malfunctioning : https://bugs.freedesktop.org/show_bug.cgi?id=91127#c8 : 目前大概是想辦法找比較了解 IOMMU 的人幫忙看看訊息 ...... 目前沒得到任何回應,只知道 dmesg 會持續出現這類訊息: DMAR: DMAR:[DMA Write] Request device [00:02.0] fault addr fde7c000 DMAR:[fault reason 05] PTE Write access is not set 似乎只要螢幕畫面有變化就會讓這個訊息一直產生,直到最後當機。 : ------------------------------------------------------------------------------ : 還有一個類似的問題,但是是在使用 Linux >= 3.19 當作 Xen dom0 時才會發生,同樣 : 也是會讓螢幕亂掉,然後在 display server 啟動時導致系統當機。這個問題也已經回報 : 到 DRM/Intel 和 Xen-devel。 : git bisect 出來的結果是這個 commit: : https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=47591df : 第一個 workaround 是關閉 VT-d 支援,但這可能會使 PCI passthrough 不能用。方法 : 是在 Xen 的開機參數加上 iommu=off。 : 第二個 workaround 是模仿 Linux 的 intel_iommu=igfx_off,用這個 patch: : --- a/xen/drivers/passthrough/vtd/quirks.c : +++ b/xen/drivers/passthrough/vtd/quirks.c : @@ -74,6 +74,7 @@ int is_igd_vt_enabled_quirk(void) : if ( !IS_ILK(ioh_id) ) : return 1; : + return 0; : /* integrated graphics on Intel platforms is located at 0:2.0 */ : ggc = pci_conf_read16(0, 0, IGD_DEV, 0, GGC); : 只不過還是沒有找到真正的解法,目前的想法是等 Linux >= 3.7 的那個問題解決以後, : 看看能不能模仿解決問題的 commit 修改 Xen。 後來發現 Xen 也會印一些跟上面提到 Linux dmesg 裡很像的訊息: (XEN) [VT-D]DMAR:[DMA Write] Request device [0000:00:02.0] fault addr 73fbff000, iommu reg = ffff82c000203000 (XEN) [VT-D]DMAR: reason 05 - PTE Write access is not set 但我還是不知道該怎麼解決,只好先送了一個比較正常的 workaround, 現在還在 Xen staging: http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=1463411 在還沒找到解法之前只能繼續用這個 patch 加進去的 iommu=no-igfx 了。 --



※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.181.43.117
※ 文章網址: https://webptt.com/m.aspx?n=bbs/Linux/M.1438869723.A.36A.html







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:BuyTogether站內搜尋

TOP