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

See Also:


Attachments
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.

Thanks.
Comment 1 Andriy Gapon freebsd_committer freebsd_triage 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 freebsd_triage 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 freebsd_triage 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 freebsd_triage 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.
Comment 7 commit-hook freebsd_committer freebsd_triage 2018-12-18 21:44:26 UTC
A commit references this bug:

Author: avg
Date: Tue Dec 18 21:43:34 UTC 2018
New revision: 342204
URL: https://svnweb.freebsd.org/changeset/base/342204

Log:
  cyapa.4, isl.4: cross-reference and document use of chromebook_platform(4)

  PR:		218632
  Reported by:	Denis Kozadaev <denis@tambov.ru>
  MFC after:	1 week

Changes:
  head/share/man/man4/cyapa.4
  head/share/man/man4/isl.4
Comment 8 commit-hook freebsd_committer freebsd_triage 2018-12-26 09:22:36 UTC
A commit references this bug:

Author: avg
Date: Wed Dec 26 09:21:59 UTC 2018
New revision: 342472
URL: https://svnweb.freebsd.org/changeset/base/342472

Log:
  MFC r342204: cyapa.4, isl.4: cross-reference and document use of chromebook_platform(4)

  PR:		218632

Changes:
_U  stable/12/
  stable/12/share/man/man4/cyapa.4
  stable/12/share/man/man4/isl.4