31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 3029 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

09 Nov, 2018

1 commit

  • In the expression "word1 << 16", word1 starts as u16, but is promoted to a
    signed int, then sign-extended to resource_size_t, which is probably not
    what was intended. Cast to resource_size_t to avoid the sign extension.

    This fixes an identical issue as fixed by commit 0b2d70764bb3 ("x86/PCI:
    Fix Broadcom CNB20LE unintended sign extension") back in 2014.

    Detected by CoverityScan, CID#138749, 138750 ("Unintended sign extension")

    Fixes: 3f6ea84a3035 ("PCI: read memory ranges out of Broadcom CNB20LE host bridge")
    Signed-off-by: Colin Ian King
    Signed-off-by: Bjorn Helgaas

    Colin Ian King
     

06 Dec, 2017

1 commit

  • acpi_os_get_root_pointer() may return a valid address even if acpi_disabled
    is set, but the host bridge information from the ACPI tables is not going
    to be used in that case and the Broadcom host bridge initialization should
    not be skipped then, So make broadcom_postcore_init() check acpi_disabled
    too to avoid this issue.

    Fixes: 6361d72b04d1 (x86/PCI: read Broadcom CNB20LE host bridge info before PCI scan)
    Reported-by: Dave Hansen
    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Thomas Gleixner
    Cc: Bjorn Helgaas
    Cc: Linux PCI
    Cc: stable@vger.kernel.org
    Link: https://lkml.kernel.org/r/3186627.pxZj1QbYNg@aspire.rjw.lan
    Signed-off-by: Ingo Molnar

    Rafael J. Wysocki
     

26 Apr, 2014

1 commit


01 May, 2012

1 commit


07 Jan, 2012

1 commit

  • We currently read the CNB20LE aperture information in a PCI quirk,
    which happens after we've already created the root bus. This patch
    changes it to read the apertures earlier so we can create the root
    bus with the correct resources.

    I believe the CNB20LE lives at "pci 0000:00:00" based on
    https://lkml.org/lkml/2010/8/13/220

    CC: Ira W. Snyder
    CC: Yinghai Lu
    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Jesse Barnes

    Bjorn Helgaas
     

15 Jan, 2011

1 commit

  • The broadcom_bus.c quirk was written (without benefit of documentation)
    to support PCI hotplug on an old system that doesn't have ACPI. As
    such, we should only use it when the system doesn't have ACPI.

    If the system does have ACPI and we need the host bridge description, we
    should get it from the ACPI _CRS method. On machines older than 2008,
    we currently ignore _CRS, but that doesn't mean we should use
    broadcom_bus.c. It means we should either (a) do what we've done in the
    past and assume everything in the PCI gap is routed to bus 0 (so hotplug
    may not work), or (b) arrange to use _CRS. This patch does (a).

    Reference: https://bugzilla.redhat.com/show_bug.cgi?id=665109
    Acked-by: Ira W. Snyder
    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Jesse Barnes

    Bjorn Helgaas
     

22 May, 2010

1 commit

  • Read the memory ranges behind the Broadcom CNB20LE host bridge out of the
    hardware. This allows PCI hotplugging to work, since we know which memory
    range to allocate PCI BAR's from.

    The x86 PCI code automatically prefers the ACPI _CRS information when it is
    available. In that case, this information is not used.

    Signed-off-by: Ira W. Snyder
    Signed-off-by: Jesse Barnes

    Ira W. Snyder