Bug 241536 - videcard DDC (I2C controller) do not detected
Summary: videcard DDC (I2C controller) do not detected
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Mark Linimon
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-10-28 11:39 UTC by victor910
Modified: 2020-08-15 05:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description victor910 2019-10-28 11:39:23 UTC
Do you know HDMI output includes DDC pins, what working under I2C protocol?, I believe yes.

When I used my system under Linux (Debian), I had connected my external device with I2C to HDMI output in my computer. After this, I have managed my external device sending/receive codes through the I2C controller.

For example, I use command:
i2set -y 2 0x50 0x45 0x65

For added video card I2C controller to the Linux system, I had added i2c-dev module to Linux system.
I had used this command:

modprobe i2c-dev

After this i2c controller appears in my Linux system.
for example:

test@debian# i2cdetect -l
i2c-0  i2c   i915 gmbus dpa   i2c adapter
i2c-1  i2c   i915 gmbus dpb   i2c adapter
i2c-2  i2c   i915 gmbus dpc   i2c adapter
i2c-3  i2c   i915 gmbus dpd   i2c adapter
i2c-4  i2c   i915 DPDDC-C      i2c adapter 
i2c-0 to i2c-4 appears as well in /dev/ folders

when I move to FreeBSD, doesn't matter what I did, i2C devices do not appear in Freebsd system, /dev/ folder does not include any of I2C controllers. 
I use the same hardware under FreeBSD what I used under Linux.

See details about my hardware below.

My processor:
Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz (kaby lake)
Internal video card HD Graphics 620  

My FreeBSD version is 12.0, with last patches

My kldstat just in case:
Id Refs Address                Size Name
 1   82 0xffffffff80200000  243d1f8 kernel
 2    1 0xffffffff8263e000     2da8 smb.ko
 3    5 0xffffffff82641000     2e18 smbus.ko
 4    1 0xffffffff82644000     3ca8 amdsmb.ko
 5    1 0xffffffff82648000     4c98 iicbb.ko
 6    6 0xffffffff8264d000     6cc8 iicbus.ko
 7    1 0xffffffff82654000     8910 ig4.ko
 8    1 0xffffffff8265e000     3950 iicsmb.ko
 9    1 0xffffffff82662000    185c8 bktr.ko
10    2 0xffffffff8267b000     1530 bktr_mem.ko
11    1 0xffffffff8267d000     3820 iic.ko
12    1 0xffffffff82681000     6230 ichsmb.ko
13    1 0xffffffff82821000   12cc50 i915kms.ko
14    1 0xffffffff8294e000    767d0 drm.ko
15    4 0xffffffff829c5000    104f0 linuxkpi.ko
16    3 0xffffffff829d6000    12f30 linuxkpi_gplv2.ko
17    2 0xffffffff829e9000      6c0 debugfs.ko
18    1 0xffffffff829ea000    15630 if_iwm.ko
19    1 0xffffffff82a00000   10045f iwm7260fw.ko
20    1 0xffffffff82b01000     3aa0 ng_ubt.ko
21    2 0xffffffff82b05000     a020 netgraph.ko
22    1 0xffffffff82b10000     9608 ng_hci.ko
23    1 0xffffffff82b1a000      9c0 ng_bluetooth.ko
24    1 0xffffffff82b1b000    17590 smbfs.ko
25    2 0xffffffff82b33000     3050 libiconv.ko
26    2 0xffffffff82b37000     1dce libmchain.ko
27    1 0xffffffff82b39000      acf mac_ntpd.ko

How you see, I had added a lot of useless modules, but they didn't help.

If you need any additional information, I am ready to provide.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-04-16 01:06:17 UTC
Thank you for the report Victor.

Could you please provide additional information:

- Exact FreeBSD versions (uname -a)
- /var/run/dmesg.boot output (as an attachment)
- pciconf -lv output (as an attachment)
- Try the sysutils/iichid port [1] with your device(s) and report back results please

If possible, please upgrade the system to the latest supported 12.x version (currently 12.1-p2) to reproduce the symptoms there.

[1] https://www.freshports.org/sysutils/iichid/
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2020-08-15 05:02:06 UTC
^Triage: submitter feedback timeout (>3 months).

Please let us know if this is still a problem so that we may re-open.