Re: cyapa(4) and isl(4) no longer working on Acer C720

2017-02-25 Thread Wolfgang Zenker
* Andriy Gapon  [170225 15:59]:
> On 25/02/2017 16:46, Andriy Gapon wrote:
>> On 25/02/2017 15:10, Wolfgang Zenker wrote:
>>> 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.
>> The manual page actually exists... but only in the source code :-(
>> share/man/man4/chromebook_platform.4
>> Mea culpa.

>> You can look through this Linux source file to check for information that's
>> relevant to your laptop:
>> http://lxr.free-electrons.com/source/drivers/platform/chrome/chromeos_laptop.c

Thanks, the C720 is mentioned in that file.

> In fact, could you please try this trivial patch?

> Index: sys/dev/chromebook_platform/chromebook_platform.c
> ===
> --- sys/dev/chromebook_platform/chromebook_platform.c (revision 314268)
> +++ sys/dev/chromebook_platform/chromebook_platform.c (working copy)
> @@ -69,7 +69,7 @@
>* See
> http://lxr.free-electrons.com/source/drivers/platform/chrome/chromeos_laptop.c
>*/
>   controller = device_get_parent(bus);
> - if (strcmp(device_get_name(controller), "ig4iic") != 0)
> + if (strcmp(device_get_name(controller), "ig4iic_pci") != 0)
>   return;

>   for (i = 0; i < nitems(slaves); i++) {

I did and it fixes the problem. Thank you!

Wolfgang
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: cyapa(4) and isl(4) no longer working on Acer C720

2017-02-25 Thread Andriy Gapon
On 25/02/2017 16:46, Andriy Gapon wrote:
> On 25/02/2017 15:10, Wolfgang Zenker wrote:
>> 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.
> The manual page actually exists... but only in the source code :-(
> share/man/man4/chromebook_platform.4
> Mea culpa.
> 
> You can look through this Linux source file to check for information that's
> relevant to your laptop:
> http://lxr.free-electrons.com/source/drivers/platform/chrome/chromeos_laptop.c

In fact, could you please try this trivial patch?

Index: sys/dev/chromebook_platform/chromebook_platform.c
===
--- sys/dev/chromebook_platform/chromebook_platform.c   (revision 314268)
+++ sys/dev/chromebook_platform/chromebook_platform.c   (working copy)
@@ -69,7 +69,7 @@
 * See
http://lxr.free-electrons.com/source/drivers/platform/chrome/chromeos_laptop.c
 */
controller = device_get_parent(bus);
-   if (strcmp(device_get_name(controller), "ig4iic") != 0)
+   if (strcmp(device_get_name(controller), "ig4iic_pci") != 0)
return;

for (i = 0; i < nitems(slaves); i++) {


Seems like I overlooked this when reviewing
https://svnweb.freebsd.org/base?view=revision=310621

-- 
Andriy Gapon
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: cyapa(4) and isl(4) no longer working on Acer C720

2017-02-25 Thread Andriy Gapon
On 25/02/2017 15:10, Wolfgang Zenker wrote:
> 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.

The manual page actually exists... but only in the source code :-(
share/man/man4/chromebook_platform.4
Mea culpa.

You can look through this Linux source file to check for information that's
relevant to your laptop:
http://lxr.free-electrons.com/source/drivers/platform/chrome/chromeos_laptop.c

Also, could you please provide pciconf -lv output?
Thanks!

> 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
>   
> Features2=0x4ddaebbf
>   AMD Features=0x2c100800
>   AMD Features2=0x21
>   Structured Extended Features=0x2603
>   XSAVE Features=0x1
>   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: 
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
> FreeBSD/SMP: 1 package(s) x 2 core(s)
> random: unblocking device.
> ioapic0  irqs 0-39 on motherboard
> random: entropy device external interface
> kbd1 at kbdmux0
> netmap: loaded module
> module_register_init: MOD_LOAD (vesa, 0x80e9cbe0, 0) error 19
> random: registering fast source Intel Secure Key RNG
> random: fast provider: "Intel Secure Key RNG"
> nexus0
> vtvga0:  on motherboard
> cryptosoft0:  on motherboard
> acpi0:  on motherboard
> acpi0: Power Button (fixed)
> hpet0:  iomem 0xfed0-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:  on acpi0
> cpu1:  on acpi0
> atrtc0:  port 0x70-0x77 on acpi0
> Event timer "RTC" frequency 32768 Hz quality 0
> attimer0:  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
> 

cyapa(4) and isl(4) no longer working on Acer C720

2017-02-25 Thread Wolfgang Zenker
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
  
Features2=0x4ddaebbf
  AMD Features=0x2c100800
  AMD Features2=0x21
  Structured Extended Features=0x2603
  XSAVE Features=0x1
  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: 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
random: unblocking device.
ioapic0  irqs 0-39 on motherboard
random: entropy device external interface
kbd1 at kbdmux0
netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0x80e9cbe0, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
nexus0
vtvga0:  on motherboard
cryptosoft0:  on motherboard
acpi0:  on motherboard
acpi0: Power Button (fixed)
hpet0:  iomem 0xfed0-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:  on acpi0
cpu1:  on acpi0
atrtc0:  port 0x70-0x77 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0:  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:  port 0x62,0x66 on acpi0
acpi_lid0:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  irq 37 on acpi0
acpi_button2:  irq 38 on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
vgapci0:  port 0x1800-0x183f mem 
0xe000-0xe03f,0xd000-0xdfff at device 2.0 on pci0
vgapci0: Boot video device
hdac0:  mem 0xe051-0xe0513fff at device 3.0 
on pci0
xhci0:  mem 0xe050-0xe050 at 
device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
xhci0: Port routing mask set to 0x
usbus0 on xhci0
pci0:  at device 21.0 (no driver attached)
ig4iic_pci0:  mem