From owner-freebsd-current@freebsd.org Sun Oct 9 06:50:36 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98318C07C1A for ; Sun, 9 Oct 2016 06:50:36 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 925B180C; Sun, 9 Oct 2016 06:50:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id JAA15583; Sun, 09 Oct 2016 09:50:33 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1bt7wO-000Dhx-RG; Sun, 09 Oct 2016 09:50:32 +0300 Subject: Re: [request for testing] isl, cyapa on chromebooks To: Matthias Apitz , Michael Gmelin , FreeBSD Current References: <1bcfd282-63fd-f8ee-4dad-393b51f14bcd@FreeBSD.org> <302FDA6E-DEC7-49F0-8F2C-8C26C8A884AF@freebsd.org> <53bca4d2-975f-f4a0-d12a-5d73fba01a0c@FreeBSD.org> <20161006044732.GA2393@c720-r292778-amd64.oa.oclc.org> <734c7ac0-9018-051e-1df4-a3b719057e19@FreeBSD.org> <773efe54-8ebb-e0e7-7824-10cfaa96d850@FreeBSD.org> <1EE0A2F3-86B9-4806-875E-3845A209A743@freebsd.org> <20161008180742.GA1912@c720-r292778-amd64> <846bf31f-a757-2be0-a293-8c4ce3d42a2f@FreeBSD.org> <20161009063635.GA1825@c720-r292778-amd64> From: Andriy Gapon Message-ID: Date: Sun, 9 Oct 2016 09:49:36 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161009063635.GA1825@c720-r292778-amd64> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2016 06:50:36 -0000 On 09/10/2016 09:36, Matthias Apitz wrote: > El día Saturday, October 08, 2016 a las 10:17:07PM +0300, Andriy Gapon escribió: > >> On 08/10/2016 21:07, Matthias Apitz wrote: >>> I have now produced a memstick with (unpatched) r306769 of October 6. It boots >>> fine in my Acer C720 Chromebook and the moused is working fine with the >>> cyapa(4) driver. I will apply tomorrow the above v4 patch or is there >>> anything newer? And will test/report. >> >> v4 is the latest. Thanks! > > The patch applies cleanly, the 'make buildkernel' does fine and system > boots, but cyapa(4) can not bring the device out of bootstrap. The verbose dmesg > is here http://www.unixarea.de/dmesg-00.txt > > And yes, I have in /boot/device.hints: Well, comparing the hints and the boot message, you have exactly the problem that I feared many people would have until we add auto-probing to isl and cyapa. Basically it's easy to connect the dots once you know what they are. You hint that isl and cyapa should be on iicbus0 or iicbus1. But iicbus0 is connected to iicbb0 which is intel_iicbb0 on drmn0, which is a video card. That is clearly wrong. And a similar thing with iicbus1: on intel_gmbus0. But later you have: iicbus14: on ig4iic0 iicbus15: on ig4iic1 So, in your case, and with that probing order (hopefully it not changes from boot to boot), you should use those two buses to look for isl and cyapa. Examining output of devinfo -v -r should be even easier than going through dmesg. Hope this helps. > ... > # The change moves the drivers from the SMBus to the I2C bus and as such some > # configuration changes are required. > # Namely, you will now need iicbus driver either in the kernel configuration or as > # a module. For now the smbus driver is also required. > # You also need to add some entries to /boot/device.hints: > # > hint.isl.0.at="iicbus0" > hint.isl.0.addr=0x88 > hint.isl.1.at="iicbus1" > hint.isl.1.addr=0x88 > hint.cyapa.0.at="iicbus0" > hint.cyapa.0.addr=0xce > hint.cyapa.1.at="iicbus1" > hint.cyapa.1.addr=0xce > # > # The hints are required because auto-probing (either via the bus enumeration or > # self-identification) is disabled for now for safety reason. > # Also, as I understand, the Intel chipset used in the supported Chromebooks > # provides to i2c buses (possibly in addition in an smbus) and I am not sure on > # which of the i2c buses the devices reside. > > Please let me know what to check/debug. > > matthias > -- Andriy Gapon