Bug 219128

Summary: Mini-DP to VGA adapter doesn't work on FreeBSD 11.0-R
Product: Base System Reporter: Yuichiro NAITO <naito.yuichiro>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Some People    
Priority: ---    
Version: 11.0-RELEASE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
dmesg.log
none
devinfo.log
none
pciconf.log
none
kldstat.log
none
pkginfo.log
none
Xorg.0.log none

Description Yuichiro NAITO 2017-05-08 02:49:45 UTC
Created attachment 182379 [details]
dmesg.log

I'm using Macbook Air 2012 for FreeBSD-11.0R.

I found my Mini-DisplayPort to VGA adapter doesn't work
to add second display for my presentation.

I don't think my adapter is broken,
because I rebooted my Macbook Air with OS X, it works.
And I remember my adapter worked on FreeBSD-10.3R.

On my FreeBSD-11.0R,
I've seen following dmesg, since I attached the adapter.

```
$ dmesg | tail -5
error: [drm:pid0:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up
error: [drm:pid0:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up
error: [drm:pid0:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up
error: [drm:pid0:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up
error: [drm:pid0:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up

$ uname -a
FreeBSD air 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

```

According to `https://wiki.freebsd.org/Intel_GPU`,
I got debug messages with `sysctl hw.dri.debug=2`.
See the attached `dmesg.log` file.

For my hardware information,
I attach `devinfo.log` and `pciconf.log`.

For software information,
I attach `kldstat.log`, `pkginfo.log` and `Xorg.0.log`.
Comment 1 Yuichiro NAITO 2017-05-08 02:50:16 UTC
Created attachment 182380 [details]
devinfo.log
Comment 2 Yuichiro NAITO 2017-05-08 02:50:37 UTC
Created attachment 182381 [details]
pciconf.log
Comment 3 Yuichiro NAITO 2017-05-08 02:50:55 UTC
Created attachment 182382 [details]
kldstat.log
Comment 4 Yuichiro NAITO 2017-05-08 02:51:18 UTC
Created attachment 182383 [details]
pkginfo.log
Comment 5 Yuichiro NAITO 2017-05-08 02:51:39 UTC
Created attachment 182384 [details]
Xorg.0.log
Comment 6 Yuichiro NAITO 2018-07-06 02:09:57 UTC
This problem has been fixed by FreeBSD 11.2 with drm-next-kmod.
I will close this PR.