All of lore.kernel.org
 help / color / mirror / Atom feed
* SNB PCI root information
@ 2012-06-16  1:57 Ulrich Drepper
  2012-06-16  3:03 ` Yinghai Lu
  0 siblings, 1 reply; 35+ messages in thread
From: Ulrich Drepper @ 2012-06-16  1:57 UTC (permalink / raw)
  To: Linux Kernel Mailing List, lenb, x86

The PCI roots in multi-socket SNB are part of specific sockets.  This
means optimization will need to know which socket the root is part of
and therefore which cores have direct access as opposed to over one or
more QPI links.

I tried to find this information in the /sys filesystem in kernels up
to the current upstream kernel.  It seems there is actually nothing
like this.

There are the files /sys/devices/pci*/*/local_cpus which should
contain this information.  For each device we would be able to get the
information about the local CPUs.

The SPARC OF handling seems to set the field, some Intel drivers seem
to try to do it in a different way.

The problem I have seen (at least on a Dell R620) is that the
dev_to_code() function returns -1 which indicates that no node
information is stored.

If I understand the code correctly, the numa_node field can be set
explicitly but is mostly inherited from the underlying device (bus
etc).  Does this mean that the locality information should come from
the same place where the PCI root data structure is initialized?

This happens, if I'm not mistaken, in the ACPI table parsing.  I've
disassembled the DSDT table and didn't find anything like this type of
information.  At least I didn't see it.  I also couldn't find anything
in the ACPI 5.0 spec.


The questions are:
a) am I missing something?
b) do BIOSes (perhaps from other manufacturers) provide the information?
c) can we get this fixed?
d) can we interpolate the information for platforms where the BIOSes
don't have the information?

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2012-06-25 17:55 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-16  1:57 SNB PCI root information Ulrich Drepper
2012-06-16  3:03 ` Yinghai Lu
2012-06-16  8:52   ` Thomas Gleixner
2012-06-16 19:36     ` Yinghai Lu
2012-06-16 21:56   ` Bjorn Helgaas
2012-06-18 22:30     ` Ulrich Drepper
2012-06-18 23:40       ` Yinghai Lu
2012-06-19 12:36         ` Bjorn Helgaas
2012-06-19 18:20           ` Yinghai Lu
2012-06-20 17:11             ` Ulrich Drepper
2012-06-20 17:17             ` Bjorn Helgaas
2012-06-20 17:59               ` Ulrich Drepper
2012-06-20 18:37                 ` Yinghai Lu
2012-06-20 18:46                 ` Bjorn Helgaas
2012-06-20 19:28                   ` Yinghai Lu
2012-06-20 19:34                     ` Ingo Molnar
2012-06-20 20:04                       ` Ulrich Drepper
2012-06-20 20:16                         ` Bjorn Helgaas
2012-06-20 21:21                           ` Ulrich Drepper
2012-06-20 23:58                         ` Yinghai Lu
2012-06-21  2:37                       ` Yinghai Lu
2012-06-21  3:50                         ` Yinghai Lu
2012-06-21 12:17                           ` Ulrich Drepper
2012-06-21 16:22                             ` Ulrich Drepper
2012-06-21 18:11                               ` Yinghai Lu
2012-06-25 17:54                                 ` Ulrich Drepper
2012-06-20 19:57                     ` Brice Goglin
2012-06-21  2:43                       ` Yinghai Lu
2012-06-21  5:56                         ` Brice Goglin
2012-06-21 19:24                           ` Yinghai Lu
2012-06-22  7:14                             ` Brice Goglin
2012-06-22 17:28                               ` Yinghai Lu
2012-06-22 20:38                                 ` Brice Goglin
2012-06-22 20:41                                   ` Yinghai Lu
2012-06-25  9:07                                     ` Brice Goglin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.