Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2017 14:10:23 +0100
From:      Wolfgang Zenker <wolfgang@lyxys.ka.sub.org>
To:        freebsd-stable@freebsd.org
Subject:   cyapa(4) and isl(4) no longer working on Acer C720
Message-ID:  <20170225131023.GA94128@lyxys.ka.sub.org>

next in thread | raw e-mail | index | archive | help
Hi,

I'm using FreeBSD 11 on a chromebook Acer C720. Because I normally
use a mouse I didn't catch the exact time when cyapa and isl stopped
working, but my guess is it was when chromebook_framework was introduced
and cyapa and isl were moved to using iic. 

A manual page chromebook_platform(4) does not exist. Maybe the Acer is
sufficiently different from other chromebooks that chromebook_platform
does not work here. In that case I'm supposed to set device hints for
the isl and cyapa drivers where to find their iic resources, according
to https://github.com/freebsd/freebsd-base-graphics/commit/e2eab8e254154d36ebd6fde573f86e6472b75572
Unfortunately I have no idea where to find the information that would
be needed for this.

I have this in /boot/loader.conf:
-------------------------------------
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"
coretemp_load="YES"
chromebook_platform_load="YES"
ig4_load="YES"
cyapa_load="YES"
isl_load="YES"
-------------------------------------

And this in /etc/rc.conf:
-------------------------------------
hostname="faunus"
keymap="de"
kld_list="i915kms.ko"
sshd_enable="YES"
dumpdev="AUTO"
zfs_enable="YES"
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP country de"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
rtsold_enable="YES"
moused_enable="YES"
moused_port="/dev/cyapa0"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
-------------------------------------

Kernel config is GENERIC with added options DDB, GDB, WITNESS
and WITNESS_SKIPSPIN.

This shows up in /var/run/dmesg.boot:
-------------------------------------
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-STABLE #1 r313673: Sun Feb 12 04:22:32 CET 2017
    wolfgang@faunus:/usr/obj/usr/src/sys/WITNESS amd64
FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1)
WARNING: WITNESS option enabled, expect reduced performance.
VT(vga): resolution 640x480
CPU: Intel(R) Celeron(R) 2955U @ 1.40GHz (1396.80-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x40651  Family=0x6  Model=0x45  Stepping=1
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4ddaebbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,XSAVE,OSXSAVE,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x21<LAHF,ABM>
  Structured Extended Features=0x2603<FSGSBASE,TSCADJ,ERMS,INVPCID,NFPUSG>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: (disabled in BIOS) PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 4301258752 (4102 MB)
avail memory = 1914736640 (1826 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <CORE   COREBOOT>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-39 on motherboard
random: entropy device external interface
kbd1 at kbdmux0
netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0xffffffff80e9cbe0, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <CORE COREBOOT> on motherboard
acpi0: Power Button (fixed)
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
Event timer "HPET3" frequency 14318180 Hz quality 440
Event timer "HPET4" frequency 14318180 Hz quality 440
Event timer "HPET5" frequency 14318180 Hz quality 440
Event timer "HPET6" frequency 14318180 Hz quality 440
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x77 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x24> port 0x62,0x66 on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> irq 37 on acpi0
acpi_button2: <Sleep Button> irq 38 on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x1800-0x183f mem 0xe0000000-0xe03fffff,0xd0000000-0xdfffffff at device 2.0 on pci0
vgapci0: Boot video device
hdac0: <Intel Haswell HDA Controller> mem 0xe0510000-0xe0513fff at device 3.0 on pci0
xhci0: <Intel Panther Point USB 3.0 controller> mem 0xe0500000-0xe050ffff at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
xhci0: Port routing mask set to 0xffffffff
usbus0 on xhci0
pci0: <base peripheral, DMA controller> at device 21.0 (no driver attached)
ig4iic_pci0: <Intel Lynx Point-LP I2C Controller-1> mem 0xe051a000-0xe051afff,0xe051b000-0xe051bfff at device 21.1 on pci0
ig4iic_pci0: Using MSI
ig4iic_pci1: <Intel Lynx Point-LP I2C Controller-2> mem 0xe051c000-0xe051cfff,0xe051d000-0xe051dfff at device 21.2 on pci0
ig4iic_pci1: Using MSI
hdac1: <Intel Lynx Point-LP HDA Controller> mem 0xe0514000-0xe0517fff at device 27.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
ath0: <Atheros AR946x/AR948x> mem 0xe0400000-0xe047ffff at device 0.0 on pci1
ar9300_attach: calling ar9300_hw_attach
ar9300_hw_attach: calling ar9300_eeprom_attach
ar9300_flash_map: unimplemented for now
Restoring Cal data from DRAM
Restoring Cal data from EEPROM
Restoring Cal data from Flash
Restoring Cal data from Flash
Restoring Cal data from OTP
ar9300_hw_attach: ar9300_eeprom_attach returned 0
ath0: [HT] enabling HT modes
ath0: [HT] enabling short-GI in 20MHz mode
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] LDPC transmit/receive enabled
ath0: [HT] 2 RX streams; 2 TX streams
ath0: AR9460 mac 640.2 RF5110 phy 0.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000
ehci0: <Intel Lynx Point LP USB 2.0 controller USB> mem 0xe051f800-0xe051fbff at device 29.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel Lynx Point-LP AHCI SATA controller> port 0x1860-0x1867,0x1870-0x1873,0x1868-0x186f,0x1874-0x1877,0x1840-0x185f mem 0xe051f000-0xe051f7ff irq 22 at device 31.2 on pci0
ahci0: AHCI v1.30 with 2 6Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
est1: <Enhanced SpeedStep Frequency Control> on cpu1
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
            to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
nvme cam probe device init
hdacc0: <Intel Haswell HDA CODEC> at cad 0 on hdac0
hdaa0: <Intel Haswell Audio Function Group> at nid 1 on hdacc0
pcm0: <Intel Haswell (HDMI/DP 8ch)> at nid 3 on hdaa0
iicbus0: <Philips I2C bus> on ig4iic_pci0
usbus0: 5.0Gbps Super Speed USB v3.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <0x8086 XHCI root HUB> at usbus0
uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
ugen1.1: <Intel EHCI root HUB> at usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <KINGSTON SNS4151S316G S9FM01.1> ACS-3 ATA SATA 3.x device
ada0: Serial Number 50026B72420290AC
ada0: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 15272MB (31277232 512 byte sectors)
iicbus1: <Philips I2C bus> on ig4iic_pci1
hdacc1: <Realtek (0x0283) HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek (0x0283) Audio Function Group> at nid 1 on hdacc1
hdaa1: hdaa_audio_as_parse: Pin 26 has wrong direction for association 1! Disabling association.
hdaa1: hdaa_audio_as_parse: Pin 33 has wrong direction for association 2! Disabling association.
SMP: AP CPU #1 Launched!
Timecounter "TSC" frequency 1396800100 Hz quality 1000
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from zfs:zroot/ROOT/default []...
Root mount waiting for: usbus1 usbus0
uhub0: 13 ports with 13 removable, self powered
uhub1: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen0.2: <NC.21411.02440730390LM0001 HD WebCam> at usbus0
ugen1.2: <vendor 0x8087 product 0x8000> at usbus1
uhub2 on uhub1
uhub2: <vendor 0x8087 product 0x8000, class 9/0, rev 2.00/0.04, addr 2> on usbus1
ugen0.3: <vendor 0x0489 product 0xe056> at usbus0
uhub2: 8 ports with 8 removable, self powered
info: [drm] Initialized drm 1.1.0 20060810
iic0: <I2C generic I/O> on iicbus0
iic1: <I2C generic I/O> on iicbus1
drmn0: <Intel Haswell (ULT GT1 mobile)> on vgapci0
info: [drm] Memory usable by graphics device = 2048M
intel_iicbb0 on drmn0
iicbus2: <Philips I2C bus>error: [drm:pid147:i915_write32] *ERROR* Unknown unclaimed register before writing to c5100
 on iicbb0 addr 0xff
iic2: <I2C generic I/O> on iicbus2
iicbus3: <Philips I2C bus> on intel_gmbus0
iic3: <I2C generic I/O> on iicbus3
intel_iicbb1 on drmn0
iicbus4: <Philips I2C bus> on iicbb1 addr 0x0
iic4: <I2C generic I/O> on iicbus4
iicbus5: <Philips I2C bus> on intel_gmbus1
iic5: <I2C generic I/O> on iicbus5
intel_iicbb2 on drmn0
iicbus6: <Philips I2C bus> on iicbb2 addr 0x0
iic6: <I2C generic I/O> on iicbus6
iicbus7: <Philips I2C bus> on intel_gmbus2
iic7: <I2C generic I/O> on iicbus7
intel_iicbb3 on drmn0
iicbus8: <Philips I2C bus> on iicbb3 addr 0x0
iic8: <I2C generic I/O> on iicbus8
iicbus9: <Philips I2C bus> on intel_gmbus3
iic9: <I2C generic I/O> on iicbus9
intel_iicbb4 on drmn0
iicbus10: <Philips I2C bus> on iicbb4 addr 0x0
iic10: <I2C generic I/O> on iicbus10
iicbus11: <Philips I2C bus> on intel_gmbus4
iic11: <I2C generic I/O> on iicbus11
intel_iicbb5 on drmn0
iicbus12: <Philips I2C bus> on iicbb5 addr 0x0
iic12: <I2C generic I/O> on iicbus12
iicbus13: <Philips I2C bus> on intel_gmbus5
iic13: <I2C generic I/O> on iicbus13
info: [drm] MSI enabled 1 message(s)
info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
info: [drm] Driver supports precise vblank timestamp query.
drm_iic_dp_aux0 on drmn0
drm_iic_dp_aux1 on drmn0
drmn0: taking over the fictitious range 0xd0000000-0xe0000000
info: [drm] Connector eDP-1: get mode from tunables:
info: [drm]   - kern.vt.fb.modes.eDP-1
info: [drm]   - kern.vt.fb.default_mode
info: [drm] Connector HDMI-A-1: get mode from tunables:
info: [drm]   - kern.vt.fb.modes.HDMI-A-1
info: [drm]   - kern.vt.fb.default_mode
info: [drm] Connector DP-1: get mode from tunables:
info: [drm]   - kern.vt.fb.modes.DP-1
info: [drm]   - kern.vt.fb.default_mode
fbd0 on drmn0
VT: Replacing driver "vga" with new "fb".
info: [drm] Initialized i915 1.6.0 20080730 for drmn0 on minor 0
wlan0: Ethernet address: 9c:d2:1e:9b:e6:41
info: [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
wlan0: link state changed to UP
-------------------------------------

Output of kldstat:
-------------------------------------
Id Refs Address            Size     Name
 1   55 0xffffffff80200000 1f5ab88  kernel
 2    1 0xffffffff8215c000 313dd8   zfs.ko
 3    2 0xffffffff82470000 cb08     opensolaris.ko
 4    1 0xffffffff8247d000 4c20     coretemp.ko
 5    1 0xffffffff82482000 1e20     chromebook_platform.ko
 6    1 0xffffffff82484000 8848     ig4.ko
 7    9 0xffffffff8248d000 6fd0     iicbus.ko
 8    1 0xffffffff82494000 96b8     cyapa.ko
 9    1 0xffffffff8249e000 3180     isl.ko
10    1 0xffffffff82621000 96a0a    i915kms.ko
11    1 0xffffffff826b8000 5446f    drm2.ko
12    1 0xffffffff8270d000 1c62     iic.ko
13    1 0xffffffff8270f000 1e6e     iicbb.ko
14    1 0xffffffff82711000 4f48     ng_ubt.ko
15    2 0xffffffff82716000 c1bf     netgraph.ko
16    1 0xffffffff82723000 a62d     ng_hci.ko
17    1 0xffffffff8272e000 1087     ng_bluetooth.ko
-------------------------------------

Wolfgang



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170225131023.GA94128>