Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Wed, 28 Jan 2009
 11:29:49 -0800
Received: from dalesmta2-1.messageone.com ([129.41.169.249]) by
 mail.onstor.com with Microsoft SMTPSVC(6.0.3790.3959);	 Wed, 28 Jan 2009
 11:29:48 -0800
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])	by
 dalesmta2-1.messageone.com (8.13.8/8.13.8) with ESMTP id n0SJTk7A017367	for
 <andy.sharp@onstor.com>; Wed, 28 Jan 2009 13:29:48 -0600
Received: from localhost.localdomain ([127.0.0.1]:33937 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S21366464AbZA1T3V
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Wed, 28 Jan 2009 19:29:21 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 28 Jan 2009 19:29:01
 +0000 (GMT)
Received: from mail.bugwerft.de ([212.112.241.193]:35016 "EHLO
	mail.bugwerft.de") by ftp.linux-mips.org with ESMTP	id S21366465AbZA1T2h
 (ORCPT <rfc822;linux-mips@linux-mips.org>);	Wed, 28 Jan 2009 19:28:37 +0000
Received: from localhost (localhost.localdomain [127.0.0.1])	by
 mail.bugwerft.de (Postfix) with ESMTP id 7027249400C	for
 <linux-mips@linux-mips.org>; Wed, 28 Jan 2009 20:28:31 +0100 (CET)
Received: from mail.bugwerft.de ([127.0.0.1])	by localhost (mail.bugwerft.de
 [127.0.0.1]) (amavisd-new, port 10024)	with ESMTP id 9GARCa4v-mDC for
 <linux-mips@linux-mips.org>;	Wed, 28 Jan 2009 20:28:31 +0100 (CET)
Received: from [10.1.1.26] (ip-77-25-15-184.web.vodafone.de [77.25.15.184])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))	(No client
 certificate requested)	by mail.bugwerft.de (Postfix) with ESMTP id
 4118149400B	for <linux-mips@linux-mips.org>; Wed, 28 Jan 2009 20:28:30 +0100
 (CET)
From: Frank Neuber <frank.neuber@kernelport.de>
To: linux-mips <linux-mips@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Wed, 28 Jan 2009 11:28:24 -0800
Subject: (SOLVED) Re: Au1550 with kernel linux-2.6.28.1 PCI Cardbus	mappings
 too large (SOLVED)
Thread-Topic: (SOLVED) Re: Au1550 with kernel linux-2.6.28.1 PCI Cardbus
	mappings too large (SOLVED)
Thread-Index: AcmBfsjhL8U+JFFyTuuF/2vZ+BgOJA==
Message-ID: <1233170905.28527.559.camel@t60p>
References: <1232739600.28527.289.camel@t60p>
	 <20090124085734.5b6b5c66@scarran.roarinelk.net>
	 <1232787448.28527.302.camel@t60p>  <1232839224.28527.336.camel@t60p>
	 <1232871616.28527.347.camel@t60p>  <1232965296.28527.427.camel@t60p>
In-Reply-To: <1232965296.28527.427.camel@t60p>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 28 Jan 2009 19:29:48.0443 (UTC)
 FILETIME=[C860F6B0:01C9817E]
x-ems-stamp: qTsmQd2cl5HiJwO3He1E4w==
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-messageone-virus-version: vendor=fsecure
 engine=4.65.7400:2.4.4,1.2.40,4.0.164
 definitions=2009-01-28_09:2009-01-27,2009-01-28,2009-01-28 signatures=0
x-messageone-virus-scanned: Clean
x-messageone-envelope-sender: linux-mips-bounce@linux-mips.org
x-messageone-spam-details: rule=m773emszm_notspam policy=m773emszm score=0
 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam
 adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0901280123
x-messageone-spam-score: 0
x-messageone-spam-bar:
errors-to: linux-mips-bounce@linux-mips.org
x-list: linux-mips
x-archive-position: 21863
x-ecartis-version: Ecartis v1.0.0
x-original-sender: frank.neuber@kernelport.de
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Hi,
I found a woking solution to use my pci wired ehci controller on the
au1550 :-)
I did this in drivers/pci/pci.c here is the patch:
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index e491fde..3422ff4 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -29,7 +29,7 @@ int pci_domains_supported =3D 1;
 #endif
=20
 #define DEFAULT_CARDBUS_IO_SIZE                (256)
-#define DEFAULT_CARDBUS_MEM_SIZE       (64*1024*1024)
+#define DEFAULT_CARDBUS_MEM_SIZE       (32*1024*1024)
 /* pci=3Dcbmemsize=3DnnM,cbiosize=3Dnn can override this */
 unsigned long pci_cardbus_io_size =3D DEFAULT_CARDBUS_IO_SIZE;
 unsigned long pci_cardbus_mem_size =3D DEFAULT_CARDBUS_MEM_SIZE;

Because this code is working on i386 with 64 bit memsize we need a
au1550 specific solution.=20
I don't know how is the rigth way.

Kind Regards,
 Frank

Am Montag, den 26.01.2009, 11:21 +0100 schrieb Frank Neuber:
> Hello again,
> as I sad I want to use a USB controller wired on the pci bus.
> The EHCI Probe (usb_hcd_pci_probe) fails with "controller already in
> use" error because the request_mem_region gives an error.
>=20
> I think the Problem is that the CardBus bridge eat the mem.
> As a refence you can compare the CadrBus mem window on 2.6.28.1 with
> 2.6.16.11.
> At the moment I have no idea how can I fix this resource conflict ...
>=20
> I found a pcibios_fixup_bus fuction that reorganize the dev->resource[i]
> values but I'm not sure if this is called during pci init. I'll check
> this now.
> Is there a PCI guru for mips on the list?
>=20
> Kind regards,
>  Frank
> =20
> Kernel 2.6.28.1 output
> pci 0000:00:0c.0: PME# supported from D1 D3hot D3cold
> pci 0000:00:0c.0: PME# disabled
> pci 0000:00:0c.1: PME# supported from D1 D3hot D3cold
> pci 0000:00:0c.1: PME# disabled
> pci 0000:00:0c.2: PME# supported from D0 D1 D2 D3hot D3cold
> pci 0000:00:0c.2: PME# disabled
> pci 0000:00:0d.0: PME# supported from D0 D1 D2 D3hot D3cold
> pci 0000:00:0d.0: PME# disabled
> pci 0000:00:0d.1: PME# supported from D0 D1 D2 D3hot D3cold
> pci 0000:00:0d.1: PME# disabled
> pci 0000:00:0c.0: BAR 0: can't allocate mem resource
> [0x50000000-0x4fffffff]
> pci 0000:00:0c.1: BAR 0: can't allocate mem resource
> [0x50000000-0x4fffffff]
> pci 0000:00:0d.0: BAR 0: can't allocate mem resource
> [0x50000000-0x4fffffff]
> pci 0000:00:0d.1: BAR 0: can't allocate mem resource
> [0x50000000-0x4fffffff]
> pci 0000:00:0c.2: BAR 0: can't allocate mem resource
> [0x50000000-0x4fffffff]
> pci 0000:00:0d.0: CardBus bridge, secondary bus 0000:01
> pci 0000:00:0d.0:   IO window: 0x001000-0x0010ff
> pci 0000:00:0d.0:   IO window: 0x001400-0x0014ff
> pci 0000:00:0d.0:   PREFETCH window: 0x40000000-0x43ffffff
> pci 0000:00:0d.0:   MEM window: 0x44000000-0x47ffffff
> pci 0000:00:0d.1: CardBus bridge, secondary bus 0000:05
> pci 0000:00:0d.1:   IO window: 0x001800-0x0018ff
> pci 0000:00:0d.1:   IO window: 0x001c00-0x001cff
> pci 0000:00:0d.1:   PREFETCH window: 0x48000000-0x4bffffff
> pci 0000:00:0d.1:   MEM window: 0x4c000000-0x4fffffff
> PCI: Enabling device 0000:00:0d.0 (0000 -> 0003)
> PCI: Enabling device 0000:00:0d.1 (0000 -> 0003)
>=20
>=20
> Kernel 2.6.16.11 output
> PCI: Bus 1, cardbus bridge: 0000:00:0d.0
>   IO window: 00001000-000010ff
>   IO window: 00001400-000014ff
>   PREFETCH window: 40000000-41ffffff
>   MEM window: 42000000-43ffffff
> PCI: Bus 5, cardbus bridge: 0000:00:0d.1
>   IO window: 00001800-000018ff
>   IO window: 00001c00-00001cff
>   PREFETCH window: 44000000-45ffffff
>   MEM window: 46000000-47ffffff
> PCI: Enabling device 0000:00:0d.0 (0000 -> 0003)
> PCI: Setting latency timer of device 0000:00:0d.0 to 64
> PCI: Enabling device 0000:00:0d.1 (0000 -> 0003)
> PCI: Setting latency timer of device 0000:00:0d.1 to 64
>=20
>=20


