From owner-freebsd-mobile@freebsd.org Mon Oct 3 11:07:01 2016 Return-Path: Delivered-To: freebsd-mobile@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 39BFAAF3B3A; Mon, 3 Oct 2016 11:07:01 +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 4C74211E; Mon, 3 Oct 2016 11:06:56 +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 OAA27859; Mon, 03 Oct 2016 14:06:48 +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 1br156-0005bg-PR; Mon, 03 Oct 2016 14:06:48 +0300 To: FreeBSD Current , freebsd-mobile@FreeBSD.org From: Andriy Gapon Subject: [request for testing] isl, cyapa on chromebooks Message-ID: <1e66fc64-cdff-e94b-4b0c-55cb05e2b5a1@FreeBSD.org> Date: Mon, 3 Oct 2016 14:05:52 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 11:07:01 -0000 If you have a Chromebook where you are currently able to use isl and cyapa drivers, could you please test the following code change? https://people.freebsd.org/~avg/ig4-i2c.diff 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. The changes are build tested only, because I do not have access to the hardware. So, kernel panics, etc are not unexpected. Please let me know if drivers attach at all and if there are any issues with them. A verbose dmesg would be of great help. That could be obtained by booting in a verbose mode if the drivers are auto-loaded or by setting debug.bootverbose=1 before loading the drivers if that's done manually. Please also note that ig4 driver is changed, so it too has to be rebuilt if you are going to build individual modules rather than do a kernel + modules build. I will appreciate your testing and feedback. Thank you! -- Andriy Gapon