From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from exprod7og107.obsmtp.com (exprod7og107.obsmtp.com [64.18.2.167]) by ozlabs.org (Postfix) with SMTP id 158EFDDDF8 for ; Mon, 24 Nov 2008 14:31:18 +1100 (EST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C94DE4.24EFE3AD" Subject: USB Host support on mpc 8313 Date: Sun, 23 Nov 2008 19:24:21 -0800 Message-ID: From: "Joaquin Luna" To: List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C94DE4.24EFE3AD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is there anyone out there who has tried getting usb to work under the 2.6.27 kernel? I am using the Freescale MPC831x RDB platform and when I enable "Support for Freescale on-chip EHCI USB controller" (USB_EHCI_FSL) I get stuck during boot up. The last two lines of my boot log are: =20 fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 =20 =20 With the 2.6.20 kernel I had usb working and my boot log looked like: =20 fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 fsl-ehci fsl-ehci.0: irq 38, io base 0xe0023000 fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 =20 =20 I did notice that there were a few usb bug fixes that went into 2.6.27.7 so I updated to the latest version, but it did not help. Any idea how or where I can begin looking for a solution? =20 Cheers, Joaquin Luna ------_=_NextPart_001_01C94DE4.24EFE3AD Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Is there anyone out there who has tried getting usb = to work under the 2.6.27 kernel?  I am using the Freescale MPC831x RDB = platform and when I enable “Support for Freescale on-chip EHCI USB = controller” (USB_EHCI_FSL) I get stuck during boot up.  The last two lines of = my boot log are:

 

fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host = Controller

fsl-ehci fsl-ehci.0: new USB bus registered, assigned = bus number 1

 

 

With the 2.6.20 kernel I had usb working and my boot = log looked like:

 

fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host = Controller

fsl-ehci fsl-ehci.0: new USB bus registered, assigned = bus number 1

fsl-ehci fsl-ehci.0: irq 38, io base = 0xe0023000

fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, = driver 10 Dec 2004

 

 

I did notice that there were a few usb bug fixes that = went into 2.6.27.7 so I updated to the latest version, but it did not = help.  Any idea how or where I can begin looking for a = solution?

 

Cheers,

Joaquin Luna

------_=_NextPart_001_01C94DE4.24EFE3AD-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 94C49DDDFB for ; Mon, 24 Nov 2008 18:12:31 +1100 (EST) Received: from az33smr02.freescale.net (az33smr02.freescale.net [10.64.34.200]) by az33egw02.freescale.net (8.12.11/az33egw02) with ESMTP id mAO7CODm003310 for ; Mon, 24 Nov 2008 00:12:25 -0700 (MST) Received: from zch01exm26.fsl.freescale.net (zch01exm26.ap.freescale.net [10.192.129.221]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id mAO7CNtJ011363 for ; Mon, 24 Nov 2008 01:12:24 -0600 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: USB Host support on mpc 8313 Date: Mon, 24 Nov 2008 15:12:23 +0800 Message-ID: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> In-Reply-To: References: From: "Li Yang" To: "Joaquin Luna" , List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > -----Original Message----- > From:=20 > linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org=20 > [mailto:linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.o > rg] On Behalf Of Joaquin Luna > Sent: Monday, November 24, 2008 11:24 AM > To: linuxppc-embedded@ozlabs.org > Subject: USB Host support on mpc 8313 >=20 > Is there anyone out there who has tried getting usb to work=20 > under the 2.6.27 kernel? I am using the Freescale MPC831x=20 > RDB platform and when I enable "Support for Freescale on-chip=20 > EHCI USB controller" (USB_EHCI_FSL) I get stuck during boot=20 > up. The last two lines of my boot log are: >=20 > =20 >=20 > fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller >=20 > fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 >=20 > =20 >=20 > =20 >=20 > With the 2.6.20 kernel I had usb working and my boot log looked like: >=20 > =20 >=20 > fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller >=20 > fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 >=20 > fsl-ehci fsl-ehci.0: irq 38, io base 0xe0023000 >=20 > fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 >=20 > =20 >=20 > =20 >=20 > I did notice that there were a few usb bug fixes that went=20 > into 2.6.27.7 so I updated to the latest version, but it did=20 > not help. Any idea how or where I can begin looking for a solution? There are two settings of the board (USB internal PHY/ USB external PHY). They are described in the board UM. Is the phy_type property in DTS matching the board setting? utmi_wide for internal PHY ulpi for external PHY - Leo From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.infotechsw.com (mail.infotechsw.com [203.200.218.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 08EA7DDDFB for ; Mon, 24 Nov 2008 18:53:16 +1100 (EST) Message-Id: <200811240740.mAO7eS4X013348@mail.infotechsw.com> From: "Naveen Kumar" To: "'Li Yang'" , "'Joaquin Luna'" , Subject: Regarding MPC5200 Date: Mon, 24 Nov 2008 13:07:28 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , HI, I am using the MPc5200 processor(TQM5200) board with stk5200 base board for porting embedded Linux kernel 2.4.25 denx distribution with U-boot loader. Am trying to compile the drivers for my atheroes chipset AR5006x series with madwifi able to load the driver and see the wireless interface by ifconfig command and do self ping but unavle to connect to the Access point or the other wlan module. What might be the problem help in this regard is highly appreciated Regards Naveen From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by ozlabs.org (Postfix) with ESMTP id AE417DDD0B for ; Tue, 25 Nov 2008 01:50:50 +1100 (EST) Received: by yw-out-2324.google.com with SMTP id 5so766444ywh.39 for ; Mon, 24 Nov 2008 06:50:48 -0800 (PST) Message-ID: Date: Mon, 24 Nov 2008 07:50:48 -0700 From: "Grant Likely" To: "Naveen Kumar" Subject: Re: Regarding MPC5200 In-Reply-To: <200811240740.mAO7eS4X013348@mail.infotechsw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> <200811240740.mAO7eS4X013348@mail.infotechsw.com> Cc: Joaquin Luna , linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Nov 24, 2008 at 12:37 AM, Naveen Kumar wrote: > HI, > I am using the MPc5200 processor(TQM5200) board with stk5200 base board for > porting embedded Linux kernel 2.4.25 denx distribution with U-boot loader. > Am trying to compile the drivers for my atheroes chipset AR5006x series with > madwifi able to load the driver and see the wireless interface by ifconfig > command and do self ping but unavle to connect to the Access point or the > other wlan module. Is there any particular reason that you're using a 2.4 kernel? Current 2.6 kernels have much better MPC5200 support, including support for the TQM5200. As for your question you'd probably be better off asking on either the wireless or Madwifi mailing lists where people are more familiar with wireless issues. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by ozlabs.org (Postfix) with ESMTP id 48F91DDDDB for ; Tue, 25 Nov 2008 06:04:12 +1100 (EST) To: "Naveen Kumar" From: Wolfgang Denk Subject: Re: Regarding MPC5200 Mime-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 In-reply-to: <200811240740.mAO7eS4X013348@mail.infotechsw.com> References: <200811240740.mAO7eS4X013348@mail.infotechsw.com> Date: Mon, 24 Nov 2008 19:56:35 +0100 Message-Id: <20081124185635.26EA3834B03E@gemini.denx.de> Cc: 'Joaquin Luna' , linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Dear Naveen Kumar, In message <200811240740.mAO7eS4X013348@mail.infotechsw.com> you wrote: > > I am using the MPc5200 processor(TQM5200) board with stk5200 base board for > porting embedded Linux kernel 2.4.25 denx distribution with U-boot loader. There is full support for the TQM5200 / STK5200 in mainline. Please use a recent 2.6 kernel for any current work. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Never underestimate the bandwidth of a station wagon full of tapes. -- Dr. Warren Jackson, Director, UTCS From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by ozlabs.org (Postfix) with ESMTP id 2132DDDDFF for ; Tue, 25 Nov 2008 07:35:53 +1100 (EST) Received: by yw-out-2324.google.com with SMTP id 5so856185ywh.39 for ; Mon, 24 Nov 2008 12:35:52 -0800 (PST) From: "Benjamin Walsh" To: References: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> Subject: NMI and AMD8131/8111 on Maple board Date: Mon, 24 Nov 2008 15:35:49 -0500 Message-ID: <012201c94e74$3dbb55b0$e693e080@corp.ad.wrs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi all, I've written EDAC support for the AMD8131/8111 chips that are present on a Maple board (PPC970FX with IBM CPC925 memory controller/bridge), currently running in poll mode. I am now trying to get this to work in interrupt mode. These two chipsets have a feature that enables triggering an NMI when an error is detected (PERR and SERR). How can this be hooked into the interrupt system on a PPC board ? >>From what I understand from the doc for these chipsets, the NMI will delivered as a HT message to the CPC925 on this board. What I don't get is how will this be delivered to the CPU, and on what interrupt line ? The HT message sent to the CPC925 is the following: MT = NMI TM = edge DM = physical INTRDEST = 'hFF (all) VECTOR = 'h00 (does not matter) Any help appreciated. Thanks, Ben From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by ozlabs.org (Postfix) with ESMTP id B0EEFDDDEE for ; Tue, 25 Nov 2008 23:40:52 +1100 (EST) Message-ID: <492BD099.9000903@windriver.com> Date: Tue, 25 Nov 2008 18:16:57 +0800 From: "tiejun.chen" MIME-Version: 1.0 To: Benjamin Walsh Subject: Re: NMI and AMD8131/8111 on Maple board References: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> <012201c94e74$3dbb55b0$e693e080@corp.ad.wrs.com> In-Reply-To: <012201c94e74$3dbb55b0$e693e080@corp.ad.wrs.com> Content-Type: text/plain; charset=UTF-8 Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Benjamin Walsh wrote: > Hi all, > > I've written EDAC support for the AMD8131/8111 chips that are present on a > Maple board (PPC970FX with IBM CPC925 memory controller/bridge), currently > running in poll mode. I am now trying to get this to work in interrupt mode. > These two chipsets have a feature that enables triggering an NMI when an > error is detected (PERR and SERR). How can this be hooked into the interrupt > system on a PPC board ? > >>>From what I understand from the doc for these chipsets, the NMI will > delivered as a HT message to the CPC925 on this board. What I don't get is > how will this be delivered to the CPU, and on what interrupt line ? The HT > message sent to the CPC925 is the following: > > MT = NMI > TM = edge > DM = physical > INTRDEST = 'hFF (all) > VECTOR = 'h00 (does not matter) > The AMD8131/8130 can generate an NMI to the CPC925. There is an interrupt controller resided in the CPC925. And you know the CPC925 is attached the PowerPC PPC970FX. The interrupt controller collects and distributes system interrupts from the PCI Express and HyperTransport blocks. So you should get the map connection based on the system in detail. Often these information should be defined in the corresponding dtc. Best Regards Tiejun > Any help appreciated. > > Thanks, > Ben > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by ozlabs.org (Postfix) with ESMTP id 29106DDDE3 for ; Wed, 26 Nov 2008 09:22:38 +1100 (EST) Received: by yx-out-2324.google.com with SMTP id 8so107143yxg.39 for ; Tue, 25 Nov 2008 14:22:37 -0800 (PST) From: "Benjamin Walsh" To: "Chen, Tiejun" References: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> <012201c94e74$3dbb55b0$e693e080@corp.ad.wrs.com> <492BD099.9000903@windriver.com> Subject: RE: NMI and AMD8131/8111 on Maple board Date: Tue, 25 Nov 2008 17:22:25 -0500 Message-ID: <013801c94f4c$51d25f20$e693e080@corp.ad.wrs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <492BD099.9000903@windriver.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > The AMD8131/8130 can generate an NMI to the CPC925. There is > an interrupt > controller resided in the CPC925. And you know the CPC925 is > attached the > PowerPC PPC970FX. The interrupt controller collects and > distributes system > interrupts from the PCI Express and HyperTransport blocks. So > you should get the > map connection based on the system in detail. Often these > information should be > defined in the corresponding dtc. The only DTS I have is the one I extracted from a running target. This is part of the entry for the 8111: ht@0 { ranges = <0x81000000 0x0 0x0 0x0 0xf4000000 0x0 0x400000 0x82000000 0x0 0x80000000 0x0 0x80000000 0x0 0x70000000>; reg = <0x0 0xf2000000 0x3000000>; device_type = "ht"; bus-range = <0x0 0x5>; compatible = "u3-ht"; interrupt-map-mask = <0xf800 0x0 0x0 0x7>; interrupt-map = < 0x0900 0x0 0x0 0x0 0x6103fa00 0x00 0x1 0x1100 0x0 0x0 0x0 0x6103fa00 0x00 0x1 0x1900 0x0 0x0 0x0 0x6103fa00 0x00 0x1 0x2100 0x0 0x0 0x0 0x6103fa00 0x00 0x1 0x3000 0x0 0x0 0x0 0x6103fa00 0x00 0x1 0x3200 0x0 0x0 0x4 0x6103fa00 0x19 0x1 0x3300 0x0 0x0 0x0 0x6103fa00 0x00 0x1 0x3400 0x0 0x0 0x3 0x6103fa00 0xff 0x1 0x3500 0x0 0x0 0x2 0x6103fa00 0x17 0x1 0x3600 0x0 0x0 0x2 0x6103fa00 0x17 0x1 0x3700 0x0 0x0 0x0 0x6103fa00 0x00 0x1>; #address-cells = <0x3>; linux,phandle = <0x61043600>; name = "ht"; #interrupt-cells = <0x1>; #size-cells = <0x2>; And this is the CPC925, with its interrupt controller: hostbridge@f8000000 { reg = <0xf8000000 0x1000000>; device_type = "memory-controller"; compatible = "u3"; #address-cells = <0x1>; linux,phandle = <0x61044000>; name = "hostbridge"; #size-cells = <0x1>; dart@f8033000 { reg = <0xf8033000 0x7000>; device_type = "dart"; compatible = "u3-dart", "dart"; linux,phandle = <0x61045e00>; name = "dart"; }; interrupt-controller@f8040000 { reg = <0xf8040000 0x40000>; device_type = "open-pic"; interrupt-controller; compatible = "open-pic"; big-endian; built-in; #address-cells = <0x0>; linux,phandle = <0x6103fa00>; name = "interrupt-controller"; clock-frequency = <0x0>; #interrupt-cells = <0x2>; }; And I think this is the part of the LPC bridge entry: isa@6 { min-grant = <0x0>; ranges = <0x1 0x0 0x1003000 0x0 0x0 0x10000>; reg = <0x3000 0x0 0x0 0x0 0x0>; device_type = "isa"; revision-id = <0x5>; 66mhz-capable; max-latency = <0x0>; class-code = <0x60100>; vendor-id = <0x1022>; linux,phandle = <0x610dfa00>; name = "isa"; device-id = <0x7468>; The LPC bridge is supposed to be able to generate an NMI on error. Am I right in saying that the 0x3000 entry in the ht@0 interrupt-map corresponds to the LPC bridge ? If so, the mapping I can read from there is 0->0. 0 is an internal interrupt of the CPC925, so this does not make sense. Or I am reading this wrong. Any insights ? Thanks, Ben From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from exprod7og115.obsmtp.com (exprod7ob115.obsmtp.com [64.18.2.216]) by ozlabs.org (Postfix) with SMTP id 74ED3DDD0B for ; Mon, 1 Dec 2008 07:48:20 +1100 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: USB Host support on mpc 8313 Date: Sun, 30 Nov 2008 12:47:06 -0800 Message-ID: In-Reply-To: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> References: <113760FDF39C3E40AAB8DE6E6C64D0A781B747@zch01exm26.fsl.freescale.net> From: "Joaquin Luna" To: "Li Yang" , List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , That was exactly my problem. You guys at freescale rock. - Joaquin Luna -----Original Message----- From: Li Yang [mailto:LeoLi@freescale.com]=20 Sent: Monday, November 24, 2008 2:12 AM To: Joaquin Luna; linuxppc-embedded@ozlabs.org Subject: RE: USB Host support on mpc 8313 > -----Original Message----- > From:=20 > linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org=20 > [mailto:linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.o > rg] On Behalf Of Joaquin Luna > Sent: Monday, November 24, 2008 11:24 AM > To: linuxppc-embedded@ozlabs.org > Subject: USB Host support on mpc 8313 >=20 > Is there anyone out there who has tried getting usb to work=20 > under the 2.6.27 kernel? I am using the Freescale MPC831x=20 > RDB platform and when I enable "Support for Freescale on-chip=20 > EHCI USB controller" (USB_EHCI_FSL) I get stuck during boot=20 > up. The last two lines of my boot log are: >=20 > =20 >=20 > fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller >=20 > fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 >=20 > =20 >=20 > =20 >=20 > With the 2.6.20 kernel I had usb working and my boot log looked like: >=20 > =20 >=20 > fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller >=20 > fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 >=20 > fsl-ehci fsl-ehci.0: irq 38, io base 0xe0023000 >=20 > fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 >=20 > =20 >=20 > =20 >=20 > I did notice that there were a few usb bug fixes that went=20 > into 2.6.27.7 so I updated to the latest version, but it did=20 > not help. Any idea how or where I can begin looking for a solution? There are two settings of the board (USB internal PHY/ USB external PHY). They are described in the board UM. Is the phy_type property in DTS matching the board setting? utmi_wide for internal PHY ulpi for external PHY - Leo