mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ravikiran G Thirumalai <kiran@scalex86.org>
To: Christoph Lameter <clameter@engr.sgi.com>
Cc: linux-kernel@vger.kernel.org, discuss@x86-64.org
Subject: Re: pcibus_to_node value when no pxm info is present for the pci bus
Date: Thu, 8 Dec 2005 11:34:39 -0800	[thread overview]
Message-ID: <20051208193439.GB3776@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.62.0512081104280.29958@schroedinger.engr.sgi.com>

On Thu, Dec 08, 2005 at 11:05:24AM -0800, Christoph Lameter wrote:
> On Wed, 7 Dec 2005, Ravikiran G Thirumalai wrote:
> 
> > Most of the arches seem to return -1 for pcibus_to_node if there is no pxm
> > kind of proximity information for the pci busses.  Arch specific code on
> > those arches check if nodeid >= 0  before using the nodeid for kmalloc_node
> > etc. But some code paths in x86_64/i386 does not doe this --
> > x86_64/dma_alloc_pages() and e1000 node local descriptor (I am to blame for 
> > the second one).  Also, pcibus_to_node seems to be 0 when there is no pxm 
> > info available.
> 
> kmalloc_node falls back to kmalloc for node == -1. So there does not need 
> to be a check.

Ah! yes,

>  
> > The question is, what should be the default pcibus_to_node if there is no
> > pxm info? Answer seems like -1 -- in which case dma_alloc_pages and e1000
> > driver has to be fixed.
> 
> Why would they have to be fixed?

alloc_pages_node (used  by dma_alloc_pages) does not seem to do the check 
though.  I guess alloc_pages_node needs to be fixed then.

Thanks,
Kiran

  reply	other threads:[~2005-12-08 19:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-07 22:34 Ravikiran G Thirumalai
2005-12-08 19:05 ` Christoph Lameter
2005-12-08 19:34   ` Ravikiran G Thirumalai [this message]
2005-12-08 20:04     ` [discuss] " Andi Kleen
2005-12-08 20:21       ` Ravikiran G Thirumalai
2005-12-08 20:26         ` Andi Kleen
2005-12-08 20:41         ` Christoph Lameter
2005-12-08 20:47           ` Andi Kleen

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=20051208193439.GB3776@localhost.localdomain \
    --to=kiran@scalex86.org \
    --cc=clameter@engr.sgi.com \
    --cc=discuss@x86-64.org \
    --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

all inboxes | Powered by JetHome®