From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 11 Jan 2007 14:30:31 +0000 (GMT) Received: from wf1.mips-uk.com ([194.74.144.154]:14313 "EHLO dl5rb.ham-radio-op.net") by ftp.linux-mips.org with ESMTP id S20046744AbXAKOa3 (ORCPT ); Thu, 11 Jan 2007 14:30:29 +0000 Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1]) by dl5rb.ham-radio-op.net (8.13.8/8.13.8) with ESMTP id l0BEVI0t004534; Thu, 11 Jan 2007 14:31:18 GMT Received: (from ralf@localhost) by denk.linux-mips.net (8.13.8/8.13.8/Submit) id l0BEVGGj004533; Thu, 11 Jan 2007 14:31:16 GMT Date: Thu, 11 Jan 2007 14:31:16 +0000 From: Ralf Baechle To: Yoichi Yuasa Cc: linux-mips Subject: Re: [PATCH] [MIPS] Fixed PCI resource fixup Message-ID: <20070111143116.GA4451@linux-mips.org> References: <200701110555.l0B5twHe006668@mbox33.po.2iij.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200701110555.l0B5twHe006668@mbox33.po.2iij.net> User-Agent: Mutt/1.4.2.2i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 13583 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Thu, Jan 11, 2007 at 02:55:58PM +0900, Yoichi Yuasa wrote: > This patch has fixed IDE resources problem about Cobalt. > > pcibios_fixup_device_resources() changes non-movable resources. > It cannot be changed if there is IORESOURCE_PCI_FIXED in the resource flags. anemo: Have you seen Yoichi's patch? Ralf: yes, but I could not see why ... My impression is IORESOURCE_PCI_FIXED and io_offset adjustment is irrerevant. This whole fixup thing is really meant to handle machines where there is an offset between PCI bus addresses and CPU physical addresses. And that exists regardless of IORESOURCE_PCI_FIXED I thought so too. So I can not see why youichi's patch fix something. This may be the explanation: static struct pci_controller cobalt_pci_controller = { .pci_ops = >64111_pci_ops, .mem_resource = &cobalt_mem_resource, .mem_offset = 0, .io_resource = &cobalt_io_resource, .io_offset = 0 - GT_DEF_PCI0_IO_BASE, }; I think he should have io_offset = 0. Which is what other GT-64120 platforms are using, so I wonder why that is different on Cobalt. Ralf