From owner-freebsd-ppc@FreeBSD.ORG Mon May 17 11:07:05 2010 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D3F51065680 for ; Mon, 17 May 2010 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EF6578FC17 for ; Mon, 17 May 2010 11:07:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4HB742w015827 for ; Mon, 17 May 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4HB74t9015825 for freebsd-ppc@FreeBSD.org; Mon, 17 May 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 May 2010 11:07:04 GMT Message-Id: <201005171107.o4HB74t9015825@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2010 11:07:05 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o power/140241 ppc [kernel] [patch] Linker set problems on PowerPC EABI o power/135576 ppc gdb cannot debug threaded programs on ppc o power/133503 ppc [sound] Sound stutter after switching ttys o power/133383 ppc firefox thr_kill crash with heavy vm load o power/133382 ppc [install] Installer gets signal 11 o power/131548 ppc ofw_syscons no longer supports 32-bit framebuffer a power/121407 ppc [panic] Won't boot up; strange error message. o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 9 problems total. From owner-freebsd-ppc@FreeBSD.ORG Thu May 20 18:45:26 2010 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7930C10657E3 for ; Thu, 20 May 2010 18:45:26 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 1930A8FC15 for ; Thu, 20 May 2010 18:45:25 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id o4KIjNSJ056104 for ; Thu, 20 May 2010 20:45:23 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <4BF58342.7010707@fgznet.ch> Date: Thu, 20 May 2010 20:45:22 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Subject: iic/i2c debugging on PowerMac X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 18:45:26 -0000 Hi, I'm trying to access (read/write) an i2c device on my G5. The problem is, I do not know the right i2c address although I have it from the device-tree, it's 0x15e. I read about the i2c utilitiy which requires the iic driver compiled into the kernel. Done that and it seems it is there: unin0 iichb0 pnpinfo name=i2c compat=keywest-i2c iicbus0 iic0 at addr=0 fcu0 pnpinfo name=fan compat=fcu at addr=0x15e But I do not have this device entry in /dev. Trying to create one does not work. mknod /dev/iic0 c 103 0 mknod: /dev/iic0: No such file or directory This is a netboot environment, might this be the cause of not being able to create the device? Or do I have another issue? Has anyone experience with iic buses on PowerMac or hints on debug techniques? TIA, Andreas From owner-freebsd-ppc@FreeBSD.ORG Thu May 20 19:16:57 2010 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EE58106567F for ; Thu, 20 May 2010 19:16:57 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id AE6078FC08 for ; Thu, 20 May 2010 19:16:56 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id B1187C42E7; Thu, 20 May 2010 21:21:30 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id j++7y8DbE++s; Thu, 20 May 2010 21:21:30 +0200 (CEST) Received: from [192.168.133.14] (nat3-133.ghnet.pl [91.150.222.133]) by smtp.semihalf.com (Postfix) with ESMTPSA id 12E7EC42DF; Thu, 20 May 2010 21:21:30 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rafal Jaworowski In-Reply-To: <4BF58342.7010707@fgznet.ch> Date: Thu, 20 May 2010 21:16:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4BF58342.7010707@fgznet.ch> To: Andreas Tobler X-Mailer: Apple Mail (2.1078) Cc: FreeBSD PowerPC ML Subject: Re: iic/i2c debugging on PowerMac X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 19:16:57 -0000 On 2010-05-20, at 20:45, Andreas Tobler wrote: > Hi, >=20 > I'm trying to access (read/write) an i2c device on my G5. The problem = is, I do not know the right i2c address although I have it from the = device-tree, it's 0x15e. >=20 > I read about the i2c utilitiy which requires the iic driver compiled = into the kernel. Done that and it seems it is there: >=20 > unin0 > iichb0 pnpinfo name=3Di2c compat=3Dkeywest-i2c > iicbus0 > iic0 at addr=3D0 > fcu0 pnpinfo name=3Dfan compat=3Dfcu at addr=3D0x15e >=20 > But I do not have this device entry in /dev. Trying to create one does = not work. > mknod /dev/iic0 c 103 0 > mknod: /dev/iic0: No such file or directory >=20 > This is a netboot environment, might this be the cause of not being = able to create the device? > Or do I have another issue? This shouldn't be related to the boot method. Do you see any failure output during iic attach (there should be a diag = error)? If not try to intstrument the iic_probe() routine and see what = happens. Rafal From owner-freebsd-ppc@FreeBSD.ORG Thu May 20 19:39:38 2010 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AC2A1065670 for ; Thu, 20 May 2010 19:39:38 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 26D8A8FC0C for ; Thu, 20 May 2010 19:39:37 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id o4KJdYFV039523; Thu, 20 May 2010 21:39:35 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <4BF58FF6.4050202@fgznet.ch> Date: Thu, 20 May 2010 21:39:34 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Rafal Jaworowski References: <4BF58342.7010707@fgznet.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: FreeBSD PowerPC ML Subject: Re: iic/i2c debugging on PowerMac X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 19:39:38 -0000 On 20.05.10 21:16, Rafal Jaworowski wrote: > > On 2010-05-20, at 20:45, Andreas Tobler wrote: > >> Hi, >> >> I'm trying to access (read/write) an i2c device on my G5. The >> problem is, I do not know the right i2c address although I have it >> from the device-tree, it's 0x15e. >> >> I read about the i2c utilitiy which requires the iic driver >> compiled into the kernel. Done that and it seems it is there: >> >> unin0 iichb0 pnpinfo name=i2c compat=keywest-i2c iicbus0 iic0 at >> addr=0 fcu0 pnpinfo name=fan compat=fcu at addr=0x15e >> >> But I do not have this device entry in /dev. Trying to create one >> does not work. mknod /dev/iic0 c 103 0 mknod: /dev/iic0: No such >> file or directory >> >> This is a netboot environment, might this be the cause of not being >> able to create the device? Or do I have another issue? > > This shouldn't be related to the boot method. > > Do you see any failure output during iic attach (there should be a > diag error)? If not try to intstrument the iic_probe() routine and > see what happens. unin0: on nexus0 unin0: Version 179 iichb0: mem 0xf8001000-0xf8001fff irq 42 on unin0 iichb0: [ITHREAD] iicbus0: on iichb0 iicbus0: iic identify iic0: iic probe failure iic0: addr: 0x8a iicbus0: at addr 0 iic1: iic probe failure iic1: addr: 0x8a The same on this one: iichb1: mem 0x18000-0x18fff irq 282 on macio0 iichb1: [ITHREAD] iicbus1: on iichb1 iicbus1: iic identify iic1: iic probe failure iic1: addr: 0x8a iicbus1: at addr 0 Hm, I suspect that either the kiic has an issue or the iicbus_get_addr function is not working properly. Thanks for the hint, Rafal! Andreas From owner-freebsd-ppc@FreeBSD.ORG Thu May 20 20:18:38 2010 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3452F1065670 for ; Thu, 20 May 2010 20:18:38 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id C44318FC1B for ; Thu, 20 May 2010 20:18:36 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id o4KKIYWj002259; Thu, 20 May 2010 22:18:35 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <4BF5991A.9090602@fgznet.ch> Date: Thu, 20 May 2010 22:18:34 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Rafal Jaworowski References: <4BF58342.7010707@fgznet.ch> <4BF58FF6.4050202@fgznet.ch> In-Reply-To: <4BF58FF6.4050202@fgznet.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: FreeBSD PowerPC ML Subject: Re: iic/i2c debugging on PowerMac X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 20:18:38 -0000 On 20.05.10 21:39, Andreas Tobler wrote: > On 20.05.10 21:16, Rafal Jaworowski wrote: >> >> On 2010-05-20, at 20:45, Andreas Tobler wrote: >> >>> Hi, >>> >>> I'm trying to access (read/write) an i2c device on my G5. The >>> problem is, I do not know the right i2c address although I have it >>> from the device-tree, it's 0x15e. >>> >>> I read about the i2c utilitiy which requires the iic driver >>> compiled into the kernel. Done that and it seems it is there: >>> >>> unin0 iichb0 pnpinfo name=i2c compat=keywest-i2c iicbus0 iic0 at >>> addr=0 fcu0 pnpinfo name=fan compat=fcu at addr=0x15e >>> >>> But I do not have this device entry in /dev. Trying to create one >>> does not work. mknod /dev/iic0 c 103 0 mknod: /dev/iic0: No such >>> file or directory >>> >>> This is a netboot environment, might this be the cause of not being >>> able to create the device? Or do I have another issue? >> >> This shouldn't be related to the boot method. >> >> Do you see any failure output during iic attach (there should be a >> diag error)? If not try to intstrument the iic_probe() routine and >> see what happens. > > unin0: on nexus0 > unin0: Version 179 > iichb0: mem 0xf8001000-0xf8001fff irq 42 on unin0 > iichb0: [ITHREAD] > iicbus0: on iichb0 > iicbus0: iic identify > iic0: iic probe failure > iic0: addr: 0x8a > iicbus0: at addr 0 > iic1: iic probe failure > iic1: addr: 0x8a > > The same on this one: > > iichb1: mem 0x18000-0x18fff irq 282 on macio0 > iichb1: [ITHREAD] > iicbus1: on iichb1 > iicbus1: iic identify > iic1: iic probe failure > iic1: addr: 0x8a > iicbus1: at addr 0 > > Hm, I suspect that either the kiic has an issue or the iicbus_get_addr > function is not working properly. Ok. I forced the iic_probe to accept the first device: iicbus0: on iichb0 iicbus0: iic identify iic0: on iicbus0 Fine. [andreast@bohrium] /home/andreast/> i2c -s -v dev: /dev/iic0, addr: 0x0, r/w: r, offset: 0x00, width: 8, count: 1 Error scanning I2C controller (/dev/iic0): Device not configured Hm. Going back upstairs, where is the iicbus_get_addr function implemented/defined? I'm lost in this area since a few days and I do not know if I opened a can of worms here. IOW, my thinking is ok, but I rely on things which do not work. (kiic, iic, iicbus?) Thanks for any hints! Andreas