From owner-freebsd-ppc@FreeBSD.ORG Wed Jan 21 05:26:09 2009 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 ACFF1106566B for ; Wed, 21 Jan 2009 05:26:09 +0000 (UTC) (envelope-from upakul@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 426238FC13 for ; Wed, 21 Jan 2009 05:26:08 +0000 (UTC) (envelope-from upakul@gmail.com) Received: by fk-out-0910.google.com with SMTP id f40so141257fka.11 for ; Tue, 20 Jan 2009 21:26:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=DFy+zgcr0xNMnVFhqAQ5fsGLqUlicOErd3YqAeTQzxA=; b=xcPnytt2+wWjlJxU4I+wh89nrAznindO9XPL2zBaYXMVw01UbKdAFth/v0quee76W/ qgnagPrsEsTxq/ZmVMSwk+btytBBUiOwn4bNSScA29PABE8NgtO1B5LBHPnLsQwUStsb jMaQJNETmrQJPVeW7nJdCY3bEnjPa+LSa18yw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=s5uixBcUeJ5gYTjMNKGiEIFi2KyoGoc8G6WLAkfFQNT/iIFwQnL3eNRzj+FooOuSlU jhVWgFrPGidvadNADryfx6vD0jJFY0UcnDwdGv4iJlefhLim9HH2IbvA6Z2ricAvSo0T /AyvwnhL/oWgaBCor0te9cAG9wqotV/oCYjwk= MIME-Version: 1.0 Received: by 10.103.240.5 with SMTP id s5mr2472048mur.106.1232513845061; Tue, 20 Jan 2009 20:57:25 -0800 (PST) Date: Wed, 21 Jan 2009 10:27:24 +0530 Message-ID: From: Upakul Barkakaty To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: USB Device connected to PCI express not working on mpc8641d 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: Wed, 21 Jan 2009 05:26:09 -0000 Hi all, Looks like I have been hit by another of these pci setup issues. My Setup is as follows: [MPC8614D]--[PCI Express]--[PCIe to PCI bridge]--[NEC USB Host controller card]-->[USB Pen Drive] The same USB card and drivers are working on another board, where the bus is PCI. I tried to debug the USB driver, and it seems to be booting up fine. Even the interrupt handling seems proper. So I come down to the grey area, that is PCIe. The USB host controllers seem to initialize fine and are detected by the PCI utilities. However when I connect a USB device, then it fails @ set addree or get descriptor, whichever transaction is first. So I had a few questions: 1. The processor CCSRBAR map has a PCI Express entry. Am I required to make another entry into the LAWBAR registers for PCI express? 2. Does the PCIe to PCI bridge need to be configured for the inbound/ outbound windows or read/write routines...anything in particular? 3. How do I verify that the PCIe inbound/outbound windows are mapped correctly? Any other setting which needs to be done in this case? Any pointers in this regard will be highly appreciated. Thanks