Guest User

fb_patch

a guest
Dec 10th, 2014
631
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----------
  2. original
  3. -----------
  4.  
  5. Kext /System/Library/Extensions/AMD8000Controller.kext/Contents/MacOS/AMD8000Controller
  6. Personality: Baladi
  7. ConnectorInfo count in decimal: 6
  8. Disk offset in decimal 1659616
  9. 0000000 00 04 00 00 04 03 00 00 00 01 03 00 12 04 03 03
  10. 0000010 00 04 00 00 04 03 00 00 00 01 01 00 11 02 01 01
  11. 0000020 00 04 00 00 04 03 00 00 00 01 02 00 21 03 02 02
  12. 0000030 00 04 00 00 04 03 00 00 00 01 04 00 22 05 04 04
  13. 0000040 00 04 00 00 04 03 00 00 00 01 05 00 10 00 05 05
  14. 0000050 00 04 00 00 04 03 00 00 00 01 06 00 20 01 06 06
  15. 0000060
  16.  
  17. -----------
  18. fix
  19. -----------
  20.  
  21. Example:
  22. 00 04 00 00 04 03 00 00 00 01 03 00 12 04 03 03
  23. -A------------ -B------------ -C------------ -D -E -F -G
  24.  
  25. A - connector type
  26. B - ATY, Control Flags
  27. C - ATY, Features
  28. D - Transmitter ("txmit" from redsock bios dump)
  29. E - Encoder ("enc" from redsock bios dump)
  30. F - Hotplug ID (3rd column, suspect?)
  31. G - Sense ID ("senseid" from radeon bios decode)
  32.  
  33. (A BLOCK) Connector types:
  34. LVDS 0 × 00000002 02 00 00 00 Note: Laptop Monitor
  35. DVIDL 0 × 00000004 04 00 00 00 Note: Dual Link DVI
  36. VGA 0 × 00000010 10 00 00 00
  37. SV 0 × 00000080 08 00 00 00
  38. DP 0 × 00000400 00 04 00 00
  39. HDMI 0 × 00000800 00 08 00 00
  40. DVISL 0 × 00000200 00 02 00 00 Note: Single Link DVI
  41.  
  42. (B BLOCK) ATY, Control Flags:
  43. DP 04 03 00 00
  44. DP 04 03 00 00
  45. HDMI 04 02 00 00
  46. DVIDL 14 02 00 00
  47. DVISL C 04 02 00 00
  48. DVISL 04 02 00 00
  49.  
  50. (C BLOCK) ATY, Features
  51.  
  52. a) [00] 00 00 00
  53. 0 × 0002: LVDS * 0x09 = 09
  54. 0 × 0004: DVI 0x00 = 00
  55. 0 × 0010: VGA 0x00 = 00
  56. 0 × 0080: S-Video 0x04 = 04
  57. 0 × 0200: DVI 0x00 = 00
  58. 0 × 0400: Display Port 0 × 00 = 00
  59. 0 × 0800: HDMI 0 × 00 = 00
  60. 0 × 1000: DVI 0x00 = 00
  61.  
  62. b) 00 [00] 00 00
  63. Use Internal * 0 × 01 = 01
  64. Use RGB YUV On 0 × 04 = 04
  65. Use Backlight * 0 × 08 = 08
  66. Backlight Inverted 0 × 10 = 10
  67. Use Clamshell 0 × 20 = 20
  68.  
  69. c) 00 00 [00] 00
  70. 01 = first active connector
  71. 02 = second active connector
  72. 03 = third active connector
  73. etc.
  74.  
  75. d) 00 00 00 [00]
  76.  
  77. UNKNOWN - maybe try 01 if not working?
  78.  
  79. -- FIX APPLY --
  80.  
  81. Fixed DEFG values for extracted BIOS:
  82.  
  83. 1 [DISPLAY_PORT] 12 04 01 01
  84. 2 [HDMI_TYPE_A] 22 05 02 03
  85. 3 [DVI_D] 11 02 03 04
  86. 4 [DVI_D] 10 00 04 06
  87.  
  88. Original code (first 4 connectors!):
  89.  
  90. [DP] 00 04 00 00 04 03 00 00 00 01 03 00 12 04 03 03
  91. [DP] 00 04 00 00 04 03 00 00 00 01 01 00 11 02 01 01
  92. [DP] 00 04 00 00 04 03 00 00 00 01 02 00 21 03 02 02
  93. [DP] 00 04 00 00 04 03 00 00 00 01 04 00 22 05 04 04
  94.  
  95. Dump:
  96.  
  97. 00040000040300000001030012040303000400000403000000010100110201010004000004030000000102002103020200040000040300000001040022050404
  98.  
  99. Fixed code:
  100.  
  101. [DP] 00 04 00 00 04 03 00 00 00 01 04 00 12 04 01 01
  102. [HD] 00 08 00 00 04 02 00 00 00 01 03 00 22 05 02 03
  103. [DV] 04 00 00 00 14 02 00 00 00 01 01 00 11 02 03 04
  104. [DV] 04 00 00 00 14 02 00 00 00 01 02 00 10 00 04 06
  105.  
  106. Dump:
  107.  
  108. 00040000040300000001040012040101000800000402000000010300220502030400000014020000000101001102030404000000140200000001020010000406
  109.  
  110. -- ALTERNATIVE VERSION 1 (partial, ordered by senseid)
  111.  
  112. Original code (first 4 connectors!):
  113.  
  114. [DP] 00 04 00 00 04 03 00 00 00 01 03 00 12 04 03 03
  115. [DP] 00 04 00 00 04 03 00 00 00 01 01 00 11 02 01 01
  116. [DP] 00 04 00 00 04 03 00 00 00 01 02 00 21 03 02 02
  117. [DP] 00 04 00 00 04 03 00 00 00 01 04 00 22 05 04 04
  118.  
  119. Dump:
  120.  
  121. 00040000040300000001030012040303000400000403000000010100110201010004000004030000000102002103020200040000040300000001040022050404
  122.  
  123. Fixed code:
  124.  
  125. [DP] 00 04 00 00 04 03 00 00 00 01 01 00 12 04 01 01
  126. [HD] 00 08 00 00 04 02 00 00 00 01 03 00 22 05 03 03
  127. [DV] 04 00 00 00 14 02 00 00 00 01 04 00 11 02 04 04
  128. [DV] 04 00 00 00 14 02 00 00 00 01 06 00 10 00 06 06
  129.  
  130. Dump:
  131.  
  132. 00040000040300000001010012040101000800000402000000010300220503030400000014020000000104001102040404000000140200000001060010000606
  133.  
  134. -- ALTERNATIVE VERSION 2 (whole patch, no senseid repeat)
  135.  
  136. Original:
  137.  
  138. [DP] 00 04 00 00 04 03 00 00 00 01 03 00 12 04 03 03
  139. [DP] 00 04 00 00 04 03 00 00 00 01 01 00 11 02 01 01
  140. [DP] 00 04 00 00 04 03 00 00 00 01 02 00 21 03 02 02
  141. [DP] 00 04 00 00 04 03 00 00 00 01 04 00 22 05 04 04
  142. [DP] 00 04 00 00 04 03 00 00 00 01 05 00 10 00 05 05
  143. [DP] 00 04 00 00 04 03 00 00 00 01 06 00 20 01 06 06
  144.  
  145. Dump:
  146.  
  147. 000400000403000000010300120403030004000004030000000101001102010100040000040300000001020021030202000400000403000000010400220504040004000004030000000105001000050500040000040300000001060020010606
  148.  
  149. Fixed:
  150.  
  151. [DP] 00 04 00 00 04 03 00 00 00 01 04 00 12 04 01 01
  152. [HD] 00 08 00 00 04 02 00 00 00 01 03 00 22 05 02 03
  153. [DV] 04 00 00 00 14 02 00 00 00 01 01 00 11 02 03 04
  154. [DV] 04 00 00 00 14 02 00 00 00 01 02 00 10 00 04 06
  155. [DP] 00 04 00 00 04 03 00 00 00 01 05 00 10 00 05 05
  156. [DP] 00 04 00 00 04 03 00 00 00 01 06 00 20 01 06 02
  157.  
  158. Dump:
  159.  
  160. 000400000403000000010400120401010008000004020000000103002205020304000000140200000001010011020304040000001402000000010200100004060004000004030000000105001000050500040000040300000001060020010602
  161.  
  162. -- ALTERNATIVE VERSION 3 (whole patch, no senseid repeat, ordered by senseid)
  163.  
  164. Original:
  165.  
  166. [DP] 00 04 00 00 04 03 00 00 00 01 03 00 12 04 03 03
  167. [DP] 00 04 00 00 04 03 00 00 00 01 01 00 11 02 01 01
  168. [DP] 00 04 00 00 04 03 00 00 00 01 02 00 21 03 02 02
  169. [DP] 00 04 00 00 04 03 00 00 00 01 04 00 22 05 04 04
  170. [DP] 00 04 00 00 04 03 00 00 00 01 05 00 10 00 05 05
  171. [DP] 00 04 00 00 04 03 00 00 00 01 06 00 20 01 06 06
  172.  
  173. Dump:
  174.  
  175. 000400000403000000010300120403030004000004030000000101001102010100040000040300000001020021030202000400000403000000010400220504040004000004030000000105001000050500040000040300000001060020010606
  176.  
  177. Fixed:
  178.  
  179. [DP] 00 04 00 00 04 03 00 00 00 01 01 00 12 04 01 01
  180. [HD] 00 08 00 00 04 02 00 00 00 01 03 00 22 05 03 03
  181. [DV] 04 00 00 00 14 02 00 00 00 01 04 00 11 02 04 04
  182. [DV] 04 00 00 00 14 02 00 00 00 01 06 00 10 00 06 06
  183. [DP] 00 04 00 00 04 03 00 00 00 01 05 00 10 00 05 05
  184. [DP] 00 04 00 00 04 03 00 00 00 01 02 00 20 01 02 02
  185.  
  186. Dump:
  187.  
  188. 000400000403000000010100120401010008000004020000000103002205030304000000140200000001040011020404040000001402000000010600100006060004000004030000000105001000050500040000040300000001020020010202
  189.  
  190. -----------
  191. radeon_bios_decode
  192. -----------
  193. ATOM BIOS Rom:
  194. SubsystemVendorID: 0x1458 SubsystemID: 0x2281
  195. IOBaseAddress: 0x0000
  196. Filename: R929XO4L.F2
  197. BIOS Bootup Message:
  198. GV-R929XOC-4GD_L/F2
  199.  
  200. PCI ID: 1002:67b0
  201. Connector at index 0
  202. Type [@offset 43526]: DisplayPort (10)
  203. Encoder [@offset 43530]: INTERNAL_UNIPHY2 (0x21)
  204. i2cid [@offset 43618]: 0x90, OSX senseid: 0x1
  205. Connector at index 1
  206. Type [@offset 43536]: HDMI-A (11)
  207. Encoder [@offset 43540]: INTERNAL_UNIPHY2 (0x21)
  208. i2cid [@offset 43645]: 0x92, OSX senseid: 0x3
  209. Connector at index 2
  210. Type [@offset 43546]: DVI-D (3)
  211. Encoder [@offset 43550]: INTERNAL_UNIPHY1 (0x20)
  212. i2cid [@offset 43672]: 0x93, OSX senseid: 0x4
  213. Connector at index 3
  214. Type [@offset 43556]: DVI-D (3)
  215. Encoder [@offset 43560]: INTERNAL_UNIPHY (0x1e)
  216. i2cid [@offset 43699]: 0x95, OSX senseid: 0x6
  217.  
  218. -----------
  219. redsock_bios_decoder
  220. -----------
  221.  
  222. R929XO4L.F2 :
  223.  
  224. GV-R929XOC-4GD_L/F2
  225.  
  226. Subsystem Vendor ID: 1458
  227. Subsystem ID: 2281
  228. Object Header Structure Size: 271
  229. Connector Object Table Offset: 3e
  230. Router Object Table Offset: 0
  231. Encoder Object Table Offset: ce
  232. Display Path Table Offset: 12
  233. Connector Object Id [19] which is [DISPLAY_PORT]
  234. encoder obj id [0x21] which is [INTERNAL_UNIPHY2 (osx txmit 0x12 [duallink 0x2] enc 0x4)] linkb: false
  235. Connector Object Id [12] which is [HDMI_TYPE_A]
  236. encoder obj id [0x21] which is [INTERNAL_UNIPHY2 (osx txmit 0x22 [duallink 0x2] enc 0x5)] linkb: true
  237. Connector Object Id [4] which is [DVI_D]
  238. encoder obj id [0x20] which is [INTERNAL_UNIPHY1 (osx txmit 0x11 [duallink 0x1] enc 0x2)] linkb: false
  239. Connector Object Id [4] which is [DVI_D]
  240. encoder obj id [0x1e] which is [INTERNAL_UNIPHY (osx txmit 0x10 [duallink 0x0] enc 0x0)] linkb: false
RAW Paste Data