30 Oct, 2015

1 commit

  • David reported that a T5-8 sparc system failed to boot with:

    pci_sun4v f02dbcfc: PCI host bridge to bus 0000:00
    pci_bus 0000:00: root bus resource [io 0x804000000000-0x80400fffffff] (bus address [0x0000-0xfffffff])
    pci_bus 0000:00: root bus resource [mem 0x800000000000-0x80007effffff] (bus address [0x00000000-0x7effffff])
    pci 0000:00:01.0: can't claim BAR 15 [mem 0x100000000-0x4afffffff pref]: no compatible bridge window

    Note that we don't know about a host bridge aperture that contains
    BAR 15. OF does report a MEM64 aperture, but before this patch,
    pci_determine_mem_io_space() ignored it.

    Add support for host bridge apertures with 64-bit PCI addresses. Also
    set IORESOURCE_MEM_64 for PCI device and bridge resources in PCI 64-bit
    memory space.

    Sparc doesn't actually print the device and bridge resources, but after
    this patch, we should have the equivalent of this:

    pci_sun4v f02dbcfc: PCI host bridge to bus 0000:00
    pci_bus 0000:00: root bus resource [io 0x804000000000-0x80400fffffff] (bus address [0x0000-0xfffffff])
    pci_bus 0000:00: root bus resource [mem 0x800000000000-0x80007effffff] (bus address [0x00000000-0x7effffff])
    pci_bus 0000:00: root bus resource [mem 0x800100000000-0x8007ffffffff] (bus address [0x100000000-0x7ffffffff])
    pci 0000:00:01.0: bridge window [mem 0x800100000000-0x8004afffffff 64bit pref]

    [bhelgaas: changelog, URL to David's report]
    Fixes: d63e2e1f3df9 ("sparc/PCI: Clip bridge windows to fit in upstream windows")
    Link: http://lkml.kernel.org/r/5514391F.2030300@oracle.com
    Reported-by: David Ahern
    Tested-by: David Ahern
    Tested-by: Khalid Aziz
    Signed-off-by: Yinghai Lu
    Signed-off-by: Bjorn Helgaas

    Yinghai Lu
     

19 May, 2014

1 commit


17 Nov, 2012

1 commit

  • Neither of these should ever be changed once set. Make them const and
    fix up the users that try to modify it in-place. In one case
    kmalloc+memcpy is replaced with kstrdup() to avoid modifying the string.

    Build tested with defconfigs on ARM, PowerPC, Sparc, MIPS, x86 among
    others.

    Signed-off-by: Grant Likely
    Acked-by: David S. Miller
    Cc: Benjamin Herrenschmidt
    Cc: Julian Calaby

    Grant Likely
     

14 Jun, 2012

1 commit

  • Add the host bridge bus number aperture to the resource list.
    Like the MMIO and I/O port apertures, this is used when assigning
    resources to hot-added devices or in the case of conflicts.

    [bhelgaas: changelog, fix "pci_last_busn" typo]
    Acked-by: "David S. Miller"
    CC: sparclinux@vger.kernel.org
    Signed-off-by: Yinghai Lu
    Signed-off-by: Bjorn Helgaas

    Yinghai Lu
     

17 Mar, 2011

1 commit

  • The generic irq support uses the term 'irq' for the
    allocated irq number.
    Fix it so sparc64 use the same term for an irq as the
    generic irq support does.
    For a naive reader this is less confusing.

    Signed-off-by: Sam Ravnborg
    Signed-off-by: David S. Miller

    Sam Ravnborg
     

24 Jul, 2010

1 commit


05 Dec, 2008

1 commit

  • o Move all files from sparc64/kernel/ to sparc/kernel
    - rename as appropriate
    o Update sparc/Makefile to the changes
    o Update sparc/kernel/Makefile to include the sparc64 files

    NOTE: This commit changes link order on sparc64!

    Link order had to change for either of sparc32 and sparc64.
    And assuming sparc64 see more testing than sparc32 change link
    order on sparc64 where issues will be caught faster.

    Signed-off-by: Sam Ravnborg
    Signed-off-by: David S. Miller

    Sam Ravnborg