Bug 218632 - Loading of i915kms at boot time breaks cyapa (I2C)
Summary: Loading of i915kms at boot time breaks cyapa (I2C)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Andriy Gapon
Keywords: i915
Depends on:
Reported: 2017-04-13 14:16 UTC by Denis Kozadaev
Modified: 2017-06-12 11:03 UTC (History)
2 users (show)

See Also:

it has two dmesg.boot files with and without i915kms module (14.81 KB, application/x-bzip)
2017-04-13 14:16 UTC, Denis Kozadaev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Kozadaev 2017-04-13 14:16:57 UTC
Created attachment 181760 [details]
it has two dmesg.boot files with and without i915kms module

I use 11.0-STABLE on a chromebook. One day I loaded i915kms module at boot time and touchpad broke. I worked via cyapa driver which uses I2C bus.
If I boot the system without i915kms module, which uses I2C too, the cyapa works.
Michael Gmelin suggested me to test CURRENT version, unfortunately, the behaviour was the same.
The kernel shows me messages:
cyapa0: Unable to bring device out of bootstrap
cyapa0: Unable to initialize
iicbus0: <unknown card> at addr 0xce

If 11.0-STABLE booted without i915kms, cyapa works fine, then I start Xorg which loads i915 (kms?) and that all works too.
The attachment contains two files /var/run/dmesg.boot with and without i915kms module. The kernel was booted with -v flag.

Comment 1 Andriy Gapon freebsd_committer 2017-04-13 14:56:57 UTC
Do you use chromebook_platform driver or have wired cyapa via device hints?
Comment 2 Denis Kozadaev 2017-04-13 15:02:45 UTC
(In reply to Andriy Gapon from comment #1)
wired, I guess, cyapa_load="YES" as it described in cyapa(4)
Comment 3 Andriy Gapon freebsd_committer 2017-04-13 17:20:50 UTC
(In reply to Denis Kozadaev from comment #2)
So you have to either change bus number to 14 in device.hints or, much better, comment out the hints and start using chromebook_platform driver.
Comment 4 Denis Kozadaev 2017-04-13 19:47:25 UTC
(In reply to Andriy Gapon from comment #3)

indeed, chromebook_platform_load="YES" in /boot/loader.conf returns cyapa to the life ;-)
and its bus number is 14:
cyapa0: <Cypress APA I2C Trackpad> at addr 0xce on iicbus14

Thanks for the help
Comment 5 Michael Gmelin freebsd_committer 2017-04-13 20:18:14 UTC
(In reply to Denis Kozadaev from comment #4)

@avg: I didn't notice you managed to finished the chromebook_platform module, very nice. Maybe it would make sense to add a comment about this in the cyapa man page?
Comment 6 Andriy Gapon freebsd_committer 2017-04-13 20:23:39 UTC
(In reply to Michael Gmelin from comment #5)
Michael, it sure would!  I should have done it from the very start.  I am a bit busy right now.  If you could do it that would be great.  Otherwise I'll probably get around to it in May.