public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: eiichiro.oiwa.nm@hitachi.com
Cc: David Miller <davem@davemloft.net>,
	alan@redhat.com, jesse.barnes@intel.com,
	linux-kernel@vger.kernel.org
Subject: Re: pci_fixup_video change blows up on sparc64
Date: Thu, 19 Oct 2006 21:03:24 -0700	[thread overview]
Message-ID: <20061020040324.GA8014@kroah.com> (raw)
In-Reply-To: <XNM1$9$0$4$$3$3$7$A$9002710U453840ab@hitachi.com>

On Fri, Oct 20, 2006 at 12:21:24PM +0900, eiichiro.oiwa.nm@hitachi.com wrote:
> From: Greg KH <greg@kroah.com>
> >On Thu, Oct 19, 2006 at 03:32:28PM -0700, David Miller wrote:
> >> From: <eiichiro.oiwa.nm@hitachi.com>
> >> Date: Thu, 19 Oct 2006 19:49:26 +0900
> >> 
> >> > The "0xc0000" is a physical address. The BAR (PCI base address) is also
> >> > a physcail address. There are no difference.
> >> 
> >> Your assertion that the BAR is a physical address is very platform
> >> specific.  It may be a "physical address in PCI bus space", but
> >> that has no relation to the first argument passed to ioremap()
> >> which is defined in a completely different way.
> >> 
> >> On many platforms, the BAR of PCI devices are translated into an
> >> appropriate "ioremap() cookie" in the struct pci_dev resource[] array
> >> entries, so that they can be used properly as the first argument to
> >> ioremap().  Only address cookies properly setup by the platform may be
> >> legally passed into ioremap() as the first argument.  No such setups
> >> are being made on this raw 0xc0000 address.
> >> 
> >> So, as you can see, I/O port and I/O memory space work differently on
> >> different platforms and this abstraction of the first argument to
> >> ioremap() is how we provide support for such differences.
> >> 
> >> If you try to access 0xc0000 via ioremap() on sparc64, it is going to
> >> try and access that area non-cacheable which, since 0xc0000 is
> >> physical RAM, will result in a BUS ERROR and a crash.
> >> 
> >> This physical location might be the area for the video ROM on x86,
> >> x86_64, and perhaps even IA64, but it certainly is not used this way
> >> on sparc64 systems.
> >> 
> >> I really would like to see this regression fixed, or at the very
> >> least this code protected by X86, X86_64, IA64 conditionals.
> >
> >I agree.  Eiichiro, care to send me an patch to fix this somehow?  Or do
> >you want me to just revert it?
> >
> >thanks,
> >
> >greg k-h
> >
> 
> Ok, I sent an patch to fix on only x86, x86_64 and IA64 for 2.6.18.
> Do you need an patch aganist 2.6.19-git?

I can't apply a patch against an old kernel, especially when the problem
is with the new release :)

Please make it against Linus's latest tree, which is where the problem
is.  Also, please address David's latest comments about the patch.

thanks,

greg k-h

  reply	other threads:[~2006-10-20  4:04 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-19  6:31 pci_fixup_video change blows up on sparc64 David Miller
2006-10-19  7:54 ` eiichiro.oiwa.nm
2006-10-19  8:37   ` pci_fixup_video " David Miller
2006-10-19  9:22     ` Alan Cox
2006-10-19  9:25       ` David Miller
2006-10-19 10:49         ` eiichiro.oiwa.nm
2006-10-19 22:32           ` David Miller
2006-10-20  2:41             ` Greg KH
2006-10-20  3:21               ` eiichiro.oiwa.nm
2006-10-20  4:03                 ` Greg KH [this message]
2006-10-20  4:28                   ` eiichiro.oiwa.nm
2006-10-20 14:20                   ` eiichiro.oiwa.nm
2006-10-20 19:31                     ` David Miller
2006-10-23  6:14                       ` eiichiro.oiwa.nm
2006-10-23  8:53                         ` David Miller
2006-10-23 18:39                           ` Greg KH
2006-10-23 21:02                             ` David Miller
2006-10-27 18:05                         ` patch pci-fix-pci_fixup_video-as-it-blows-up-on-sparc64.patch added to gregkh-2.6 tree gregkh
2006-10-19 10:01     ` Re[2]: pci_fixup_video change blows up on sparc64 eiichiro.oiwa.nm
2006-10-19 11:20       ` Alan Cox
2006-10-19 11:38         ` eiichiro.oiwa.nm
2006-10-19 18:03       ` Jesse Barnes
2006-10-19 22:58         ` David Miller
2006-10-20  2:57           ` eiichiro.oiwa.nm
2006-10-20  3:21             ` David Miller
2006-10-20  4:25               ` Re[2]: " eiichiro.oiwa.nm
2006-10-19 16:52     ` Jesse Barnes
2006-10-19 22:38       ` David Miller
2006-10-19 22:58         ` Jesse Barnes
2006-10-19 23:17           ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061020040324.GA8014@kroah.com \
    --to=greg@kroah.com \
    --cc=alan@redhat.com \
    --cc=davem@davemloft.net \
    --cc=eiichiro.oiwa.nm@hitachi.com \
    --cc=jesse.barnes@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox