16 Aug, 2014

1 commit

  • Pull EDAC updates from Mauro Carvalho Chehab.

    * 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac:
    sb_edac: add support for Haswell based systems
    sb_edac: Fix mix tab/spaces alignments
    edac: add DDR4 and RDDR4
    sb_edac: remove bogus assumption on mc ordering
    sb_edac: make minimal use of channel_mask
    sb_edac: fix socket detection on Ivy Bridge controllers
    sb_edac: update Kconfig description
    sb_edac: search devices using product id
    sb_edac: make RIR limit retrieval per model
    sb_edac: make node id retrieval per model
    sb_edac: make memory type detection per memory controller

    Linus Torvalds
     

14 Aug, 2014

1 commit

  • Pull device tree updates from Grant Likely:
    "The branch contains the following device tree changes the v3.17 merge
    window:

    Group changes to the device tree. In preparation for adding device
    tree overlay support, OF_DYNAMIC is reworked so that a set of device
    tree changes can be prepared and applied to the tree all at once.
    OF_RECONFIG notifiers see the most significant change here so that
    users always get a consistent view of the tree. Notifiers generation
    is moved from before a change to after it, and notifiers for a group
    of changes are emitted after the entire block of changes have been
    applied

    Automatic console selection from DT. Console drivers can now use
    of_console_check() to see if the device node is specified as a console
    device. If so then it gets added as a preferred console. UART
    devices get this support automatically when uart_add_one_port() is
    called.

    DT unit tests no longer depend on pre-loaded data in the device tree.
    Data is loaded dynamically at the start of unit tests, and then
    unloaded again when the tests have completed.

    Also contains a few bugfixes for reserved regions and early memory
    setup"

    * tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux: (21 commits)
    of: Fixing OF Selftest build error
    drivers: of: add automated assignment of reserved regions to client devices
    of: Use proper types for checking memory overflow
    of: typo fix in __of_prop_dup()
    Adding selftest testdata dynamically into live tree
    of: Add todo tasklist for Devicetree
    of: Transactional DT support.
    of: Reorder device tree changes and notifiers
    of: Move dynamic node fixups out of powerpc and into common code
    of: Make sure attached nodes don't carry along extra children
    of: Make devicetree sysfs update functions consistent.
    of: Create unlocked versions of node and property add/remove functions
    OF: Utility helper functions for dynamic nodes
    of: Move CONFIG_OF_DYNAMIC code into a separate file
    of: rename of_aliases_mutex to just of_mutex
    of/platform: Fix of_platform_device_destroy iteration of devices
    of: Migrate of_find_node_by_name() users to for_each_node_by_name()
    tty: Update hypervisor tty drivers to use core stdout parsing code.
    arm/versatile: Add the uart as the stdout device.
    of: Enable console on serial ports specified by /chosen/stdout-path
    ...

    Linus Torvalds
     

05 Aug, 2014

1 commit

  • Pull RAS updates from Ingo Molnar:
    "The main changes in this cycle are:

    - RAS tracing/events infrastructure, by Gong Chen.

    - Various generalizations of the APEI code to make it available to
    non-x86 architectures, by Tomasz Nowicki"

    * 'x86-ras-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/ras: Fix build warnings in
    acpi, apei, ghes: Factor out ioremap virtual memory for IRQ and NMI context.
    acpi, apei, ghes: Make NMI error notification to be GHES architecture extension.
    apei, mce: Factor out APEI architecture specific MCE calls.
    RAS, extlog: Adjust init flow
    trace, eMCA: Add a knob to adjust where to save event log
    trace, RAS: Add eMCA trace event interface
    RAS, debugfs: Add debugfs interface for RAS subsystem
    CPER: Adjust code flow of some functions
    x86, MCE: Robustify mcheck_init_device
    trace, AER: Move trace into unified interface
    trace, RAS: Add basic RAS trace event
    x86, MCE: Kill CPU_POST_DEAD

    Linus Torvalds
     

14 Jul, 2014

1 commit


10 Jul, 2014

1 commit

  • Check for memory allocation and mchbar mapping failures before
    initializing the dimm info tables needlessly.

    Signed-off-by: Jason Baron
    Suggested-by: Borislav Petkov
    Link: http://lkml.kernel.org/r/ead8f53e699f1ce21c2e17f3cffb4685d4faf72a.1404939455.git.jbaron@akamai.com
    Signed-off-by: Borislav Petkov

    Jason Baron
     

04 Jul, 2014

2 commits

  • Add a driver for the E3-1200 series of Intel DRAM controllers, based on
    the following E3-1200 specs:

    http://www.intel.com/content/www/us/en/processors/xeon/xeon-e3-1200-family-vol-2-datasheet.html
    http://www.intel.com/content/www/us/en/processors/xeon/xeon-e3-1200v3-vol-2-datasheet.html

    I've tested this on bad memory hardware, and observed correlating bad
    reads and uncorrected memory errors as reported by the driver.

    Tested against:

    CPU E3-1270 v3 @ 3.50GHz : 8086:0c08 (haswell)
    CPU E3-1270 V2 @ 3.50GHz : 8086:0158 (ivy bridge)
    CPU E31270 @ 3.40GHz : 8086:0108 (sandy bridge)

    Signed-off-by: Jason Baron
    Link: http://lkml.kernel.org/r/95c83e80dd40b5377e8bb206285c5d95ac623872.1403818526.git.jbaron@akamai.com
    [ Boris: realign defines ]
    Signed-off-by: Borislav Petkov

    Jason Baron
     
  • Convert to the generic API.

    Signed-off-by: Jason Baron
    Link: http://lkml.kernel.org/r/bb9a4cbb980cc7b51be75cbfcf644553bf6a04cd.1403818526.git.jbaron@akamai.com
    Signed-off-by: Borislav Petkov

    Jason Baron
     

27 Jun, 2014

12 commits


24 Jun, 2014

2 commits

  • unsigned long value is never < 0.

    Cc: Doug Thompson
    Signed-off-by: Fabian Frederick
    Link: http://lkml.kernel.org/r/1402341618-10674-1-git-send-email-fabf@skynet.be
    Signed-off-by: Borislav Petkov

    Fabian Frederick
     
  • To avoid confuision and conflict of usage for RAS related trace event,
    add an unified RAS trace event stub.

    Start a RAS subsystem menu which will be fleshed out in time, when more
    features get added to it.

    Signed-off-by: Chen, Gong
    Link: http://lkml.kernel.org/r/1402475691-30045-2-git-send-email-gong.chen@linux.intel.com
    Signed-off-by: Borislav Petkov
    Signed-off-by: Tony Luck

    Chen, Gong
     

03 Jun, 2014

1 commit

  • Pull PCI changes from Bjorn Helgaas:
    "Enumeration
    - Notify driver before and after device reset (Keith Busch)
    - Use reset notification in NVMe (Keith Busch)

    NUMA
    - Warn if we have to guess host bridge node information (Myron Stowe)
    - Work around AMD Fam15h BIOSes that fail to provide _PXM (Suravee
    Suthikulpanit)
    - Clean up and mark early_root_info_init() as deprecated (Suravee
    Suthikulpanit)

    Driver binding
    - Add "driver_override" for force specific binding (Alex Williamson)
    - Fail "new_id" addition for devices we already know about (Bandan
    Das)

    Resource management
    - Support BAR sizes up to 8GB (Nikhil Rao, Alan Cox)
    - Don't move IORESOURCE_PCI_FIXED resources (Bjorn Helgaas)
    - Mark SBx00 HPET BAR as IORESOURCE_PCI_FIXED (Bjorn Helgaas)
    - Fail safely if we can't handle BARs larger than 4GB (Bjorn Helgaas)
    - Reject BAR above 4GB if dma_addr_t is too small (Bjorn Helgaas)
    - Don't convert BAR address to resource if dma_addr_t is too small
    (Bjorn Helgaas)
    - Don't set BAR to zero if dma_addr_t is too small (Bjorn Helgaas)
    - Don't print anything while decoding is disabled (Bjorn Helgaas)
    - Don't add disabled subtractive decode bus resources (Bjorn Helgaas)
    - Add resource allocation comments (Bjorn Helgaas)
    - Restrict 64-bit prefetchable bridge windows to 64-bit resources
    (Yinghai Lu)
    - Assign i82875p_edac PCI resources before adding device (Yinghai Lu)

    PCI device hotplug
    - Remove unnecessary "dev->bus" test (Bjorn Helgaas)
    - Use PCI_EXP_SLTCAP_PSN define (Bjorn Helgaas)
    - Fix rphahp endianess issues (Laurent Dufour)
    - Acknowledge spurious "cmd completed" event (Rajat Jain)
    - Allow hotplug service drivers to operate in polling mode (Rajat Jain)
    - Fix cpqphp possible NULL dereference (Rickard Strandqvist)

    MSI
    - Replace pci_enable_msi_block() by pci_enable_msi_exact()
    (Alexander Gordeev)
    - Replace pci_enable_msix() by pci_enable_msix_exact() (Alexander Gordeev)
    - Simplify populate_msi_sysfs() (Jan Beulich)

    Virtualization
    - Add Intel Patsburg (X79) root port ACS quirk (Alex Williamson)
    - Mark RTL8110SC INTx masking as broken (Alex Williamson)

    Generic host bridge driver
    - Add generic PCI host controller driver (Will Deacon)

    Freescale i.MX6
    - Use new clock names (Lucas Stach)
    - Drop old IRQ mapping (Lucas Stach)
    - Remove optional (and unused) IRQs (Lucas Stach)
    - Add support for MSI (Lucas Stach)
    - Fix imx6_add_pcie_port() section mismatch warning (Sachin Kamat)

    Renesas R-Car
    - Add gen2 device tree support (Ben Dooks)
    - Use new OF interrupt mapping when possible (Lucas Stach)
    - Add PCIe driver (Phil Edworthy)
    - Add PCIe MSI support (Phil Edworthy)
    - Add PCIe device tree bindings (Phil Edworthy)

    Samsung Exynos
    - Remove unnecessary OOM messages (Jingoo Han)
    - Fix add_pcie_port() section mismatch warning (Sachin Kamat)

    Synopsys DesignWare
    - Make MSI ISR shared IRQ aware (Lucas Stach)

    Miscellaneous
    - Check for broken config space aliasing (Alex Williamson)
    - Update email address (Ben Hutchings)
    - Fix Broadcom CNB20LE unintended sign extension (Bjorn Helgaas)
    - Fix incorrect vgaarb conditional in WARN_ON() (Bjorn Helgaas)
    - Remove unnecessary __ref annotations (Bjorn Helgaas)
    - Add arch/x86/kernel/quirks.c to MAINTAINERS PCI file patterns
    (Bjorn Helgaas)
    - Fix use of uninitialized MPS value (Bjorn Helgaas)
    - Tidy x86/gart messages (Bjorn Helgaas)
    - Fix return value from pci_user_{read,write}_config_*() (Gavin Shan)
    - Turn pcibios_penalize_isa_irq() into a weak function (Hanjun Guo)
    - Remove unused serial device IDs (Jean Delvare)
    - Use designated initialization in PCI_VDEVICE (Mark Rustad)
    - Fix powerpc NULL dereference in pci_root_buses traversal (Mike Qiu)
    - Configure MPS on ARM (Murali Karicheri)
    - Remove unnecessary includes of (Paul Gortmaker)
    - Move Open Firmware devspec attribute to PCI common code (Sebastian Ott)
    - Use pdev->dev.groups for attribute creation on s390 (Sebastian Ott)
    - Remove pcibios_add_platform_entries() (Sebastian Ott)
    - Add new ID for Intel GPU "spurious interrupt" quirk (Thomas Jarosch)
    - Rename pci_is_bridge() to pci_has_subordinate() (Yijing Wang)
    - Add and use new pci_is_bridge() interface (Yijing Wang)
    - Make pci_bus_add_device() void (Yijing Wang)

    DMA API
    - Clarify physical/bus address distinction in docs (Bjorn Helgaas)
    - Fix typos in docs (Emilio López)
    - Update dma_pool_create ()and dma_pool_alloc() descriptions (Gioh Kim)
    - Change dma_declare_coherent_memory() CPU address to phys_addr_t
    (Bjorn Helgaas)
    - Pass GAPSPCI_DMA_BASE CPU & bus address to dma_declare_coherent_memory()
    (Bjorn Helgaas)"

    * tag 'pci-v3.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (92 commits)
    MAINTAINERS: Add generic PCI host controller driver
    PCI: generic: Add generic PCI host controller driver
    PCI: imx6: Add support for MSI
    PCI: designware: Make MSI ISR shared IRQ aware
    PCI: imx6: Remove optional (and unused) IRQs
    PCI: imx6: Drop old IRQ mapping
    PCI: imx6: Use new clock names
    i82875p_edac: Assign PCI resources before adding device
    ARM/PCI: Call pcie_bus_configure_settings() to set MPS
    PCI: imx6: Fix imx6_add_pcie_port() section mismatch warning
    PCI: Make pci_bus_add_device() void
    PCI: exynos: Fix add_pcie_port() section mismatch warning
    PCI: Introduce new device binding path using pci_dev.driver_override
    PCI: rcar: Add gen2 device tree support
    PCI: cpqphp: Fix possible null pointer dereference
    PCI: rcar: Add R-Car PCIe device tree bindings
    PCI: rcar: Add MSI support for PCIe
    PCI: rcar: Add Renesas R-Car PCIe driver
    PCI: Fix return value from pci_user_{read,write}_config_*()
    PCI: exynos: Remove unnecessary OOM messages
    ...

    Linus Torvalds
     

31 May, 2014

2 commits

  • * pci/host-exynos:
    PCI: exynos: Fix add_pcie_port() section mismatch warning

    * pci/host-imx6:
    PCI: imx6: Add support for MSI
    PCI: designware: Make MSI ISR shared IRQ aware
    PCI: imx6: Remove optional (and unused) IRQs
    PCI: imx6: Drop old IRQ mapping
    PCI: imx6: Use new clock names
    PCI: imx6: Fix imx6_add_pcie_port() section mismatch warning

    * pci/resource:
    i82875p_edac: Assign PCI resources before adding device

    * pci/misc:
    ARM/PCI: Call pcie_bus_configure_settings() to set MPS
    PCI: Make pci_bus_add_device() void

    Conflicts:
    drivers/edac/i82875p_edac.c

    Bjorn Helgaas
     
  • Assign PCI resources before pci_bus_add_device(). The resources must be
    assigned before a driver can claim the device.

    [bhelgaas: changelog]
    Signed-off-by: Yinghai Lu
    Signed-off-by: Bjorn Helgaas

    Yinghai Lu
     

30 May, 2014

1 commit

  • pci_bus_add_device() always returns 0, so there's no point in returning
    anything at all. Make it a void function and remove the tests of the
    return value from the callers.

    [bhelgaas: changelog, remove unused "err" from i82875p_setup_overfl_dev()]
    Signed-off-by: Yijing Wang
    Signed-off-by: Bjorn Helgaas

    Yijing Wang
     

09 May, 2014

2 commits


05 Apr, 2014

1 commit

  • Pull media updates from Mauro Carvalho Chehab:
    "The main set of series of patches for media subsystem, including:
    - document RC sysfs class
    - added an API to setup scancode to allow waking up systems using the
    Remote Controller
    - add API for SDR devices. Drivers are still on staging
    - some API improvements for getting EDID data from media
    inputs/outputs
    - new DVB frontend driver for drx-j (ATSC)
    - one driver (it913x/it9137) got removed, in favor of an improvement
    on another driver (af9035)
    - added a skeleton V4L2 PCI driver at documentation
    - added a dual flash driver (lm3646)
    - added a new IR driver (img-ir)
    - added an IR scancode decoder for the Sharp protocol
    - some improvements at the usbtv driver, to allow its core to be
    reused.
    - added a new SDR driver (rtl2832u_sdr)
    - added a new tuner driver (msi001)
    - several improvements at em28xx driver to fix PM support, device
    removal and to split the V4L2 specific bits into a separate
    sub-driver
    - one driver got converted to videobuf2 (s2255drv)
    - the e4000 tuner driver now follows an improved binding model
    - some fixes at V4L2 compat32 code
    - several fixes and enhancements at videobuf2 code
    - some cleanups at V4L2 API documentation
    - usual driver enhancements, new board additions and misc fixups"

    [ NOTE! This merge effective drops commit 4329b93b283c ("of: Reduce
    indentation in of_graph_get_next_endpoint").

    The of_graph_get_next_endpoint() function was moved and renamed by
    commit fd9fdb78a9bf ("[media] of: move graph helpers from
    drivers/media/v4l2-core to drivers/of"). It was originally called
    v4l2_of_get_next_endpoint() and lived in the file
    drivers/media/v4l2-core/v4l2-of.c.

    In that original location, it was then fixed to support empty port
    nodes by commit b9db140c1e46 ("[media] v4l: of: Support empty port
    nodes"), and that commit clashes badly with the dropped "Reduce
    intendation" commit. I had to choose one or the other, and decided
    that the "Support empty port nodes" commit was more important ]

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (426 commits)
    [media] em28xx-dvb: fix PCTV 461e tuner I2C binding
    Revert "[media] em28xx-dvb: fix PCTV 461e tuner I2C binding"
    [media] em28xx: fix PCTV 290e LNA oops
    [media] em28xx-dvb: fix PCTV 461e tuner I2C binding
    [media] m88ds3103: fix bug on .set_tone()
    [media] saa7134: fix WARN_ON during resume
    [media] v4l2-dv-timings: add module name, description, license
    [media] videodev2.h: add parenthesis around macro arguments
    [media] saa6752hs: depends on CRC32
    [media] si4713: fix Kconfig dependencies
    [media] Sensoray 2255 uses videobuf2
    [media] adv7180: free an interrupt on failure paths in init_device()
    [media] e4000: make VIDEO_V4L2 dependency optional
    [media] af9033: Don't export functions for the hardware filter
    [media] af9035: use af9033 PID filters
    [media] af9033: implement PID filter
    [media] rtl2832_sdr: do not use dynamic stack allocation
    [media] e4000: fix 32-bit build error
    [media] em28xx-audio: make sure audio is unmuted on open()
    [media] DocBook media: v4l2_format_sdr was renamed to v4l2_sdr_format
    ...

    Linus Torvalds
     

04 Apr, 2014

1 commit


03 Apr, 2014

1 commit

  • Pull MIPS updates from Ralf Baechle:
    - Support for Imgtec's Aptiv family of MIPS cores.
    - Improved detection of BCM47xx configurations.
    - Fix hiberation for certain configurations.
    - Add support for the Chinese Loongson 3 CPU, a MIPS64 R2 core and
    systems.
    - Detection and support for the MIPS P5600 core.
    - A few more random fixes that didn't make 3.14.
    - Support for the EVA Extended Virtual Addressing
    - Switch Alchemy to the platform PATA driver
    - Complete unification of Alchemy support
    - Allow availability of I/O cache coherency to be runtime detected
    - Improvments to multiprocessing support for Imgtec platforms
    - A few microoptimizations
    - Cleanups of FPU support
    - Paul Gortmaker's fixes for the init stuff
    - Support for seccomp

    * 'mips-for-linux-next' of git://git.linux-mips.org/pub/scm/ralf/upstream-sfr: (165 commits)
    MIPS: CPC: Use __raw_ memory access functions
    MIPS: CM: use __raw_ memory access functions
    MIPS: Fix warning when including smp-ops.h with CONFIG_SMP=n
    MIPS: Malta: GIC IPIs may be used without MT
    MIPS: smp-mt: Use common GIC IPI implementation
    MIPS: smp-cmp: Remove incorrect core number probe
    MIPS: Fix gigaton of warning building with microMIPS.
    MIPS: Fix core number detection for MT cores
    MIPS: MT: core_nvpes function to retrieve VPE count
    MIPS: Provide empty mips_mt_set_cpuoptions when CONFIG_MIPS_MT=n
    MIPS: Lasat: Replace del_timer by del_timer_sync
    MIPS: Malta: Setup PM I/O region on boot
    MIPS: Loongson: Add a Loongson-3 default config file
    MIPS: Loongson 3: Add CPU hotplug support
    MIPS: Loongson 3: Add Loongson-3 SMP support
    MIPS: Loongson: Add Loongson-3 Kconfig options
    MIPS: Loongson: Add swiotlb to support All-Memory DMA
    MIPS: Loongson 3: Add serial port support
    MIPS: Loongson 3: Add IRQ init and dispatch support
    MIPS: Loongson 3: Add HT-linked PCI support
    ...

    Linus Torvalds
     

02 Apr, 2014

1 commit

  • Pull EDAC updates from Borislav Petkov:
    "A bunch of EDAC updates all over the place:

    - Support for new AMD models, along with more graceful fallback for
    unsupported hw.

    - Bunch of fixes from SUSE accumulated from bug reports

    - Misc other fixes and cleanups"

    * tag 'edac_for_3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    amd64_edac: Add support for newer F16h models
    i7core_edac: Drop unused variable
    i82875p_edac: Drop redundant call to pci_get_device()
    amd8111_edac: Fix leaks in probe error paths
    e752x_edac: Drop pvt->bridge_ck
    MCE, AMD: Fix decoding module loading on unsupported hw
    i5100_edac: Remove an unneeded condition in i5100_init_csrows()
    sb_edac: Degrade log level for device registration
    amd64_edac: Fix logic to determine channel for F15 M30h processors
    edac/85xx: Remove deprecated IRQF_DISABLED
    i3200_edac: Add a missing pci_disable_device() on the exit path
    i5400_edac: Disable device when unloading module
    e752x_edac: Simplify call to pci_get_device()

    Linus Torvalds
     

01 Apr, 2014

2 commits

  • This adds an ad-hoc error injection method. Octeon II doesn't have
    hardware support for injection, so this simulates it.

    Signed-off-by: Daniel Walker
    Cc: David Daney
    Cc: Doug Thompson
    Cc: linux-edac@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/5873/
    Signed-off-by: Ralf Baechle

    Daniel Walker
     
  • If the opstate_init() isn't called the driver won't start properly.

    I just added it in what appears to be an appropriate place.

    Signed-off-by: Daniel Walker
    Cc: David Daney
    Cc: Doug Thompson
    Cc: linux-edac@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/5872/
    Signed-off-by: Ralf Baechle

    Daniel Walker
     

13 Mar, 2014

2 commits


11 Mar, 2014

1 commit

  • Linux 3.14-rc5

    * tag 'v3.14-rc5': (1117 commits)
    Linux 3.14-rc5
    drm/vmwgfx: avoid null pointer dereference at failure paths
    drm/vmwgfx: Make sure backing mobs are cleared when allocated. Update driver date.
    drm/vmwgfx: Remove some unused surface formats
    MAINTAINERS: add maintainer entry for Armada DRM driver
    arm64: Fix !CONFIG_SMP kernel build
    arm64: mm: Add double logical invert to pte accessors
    dm cache: fix truncation bug when mapping I/O to >2TB fast device
    perf tools: Fix strict alias issue for find_first_bit
    powerpc/powernv: Fix indirect XSCOM unmangling
    powerpc/powernv: Fix opal_xscom_{read,write} prototype
    powerpc/powernv: Refactor PHB diag-data dump
    powerpc/powernv: Dump PHB diag-data immediately
    powerpc: Increase stack redzone for 64-bit userspace to 512 bytes
    powerpc/ftrace: bugfix for test_24bit_addr
    powerpc/crashdump : Fix page frame number check in copy_oldmem_page
    powerpc/le: Ensure that the 'stop-self' RTAS token is handled correctly
    kvm, vmx: Really fix lazy FPU on nested guest
    perf tools: fix BFD detection on opensuse
    drm/radeon: enable speaker allocation setup on dce3.2
    ...

    Mauro Carvalho Chehab
     

28 Feb, 2014

1 commit

  • Extend ECC decoding support for F16h M30h. Tested on F16h M30h with ECC
    turned on using mce_amd_inj module and the patch works fine.

    Signed-off-by: Aravind Gopalakrishnan
    Link: http://lkml.kernel.org/r/1392913726-16961-1-git-send-email-Aravind.Gopalakrishnan@amd.com
    Tested-by: Arindam Nath
    Acked-by: H. Peter Anvin
    Signed-off-by: Borislav Petkov

    Aravind Gopalakrishnan
     

25 Feb, 2014

3 commits

  • Fix the following warning:

    drivers/edac/i7core_edac.c: In function "core_mce_output_error":
    drivers/edac/i7core_edac.c:1711:8: warning: variable "type" set but not used [-Wunused-but-set-variable]
    char *type, *optype, *err;
    ^
    According to Mauro, type can just be dropped, as tp_event now maps if
    the error is corrected, uncorrected non-fatal or uncorrected fatal
    one.

    Signed-off-by: Jean Delvare
    Link: http://lkml.kernel.org/r/20140224171358.692d7e5a@endymion.delvare
    Acked-by: Mauro Carvalho Chehab
    Cc: Doug Thompson
    Signed-off-by: Borislav Petkov

    Jean Delvare
     
  • The first call to pci_get_device() in i82875p_probe1() is useless. The
    result is immediately reset at the beginning of
    i82875p_setup_overfl_dev(), which then issues the same
    pci_get_device() call. Dropping the redundant call avoids a device
    reference leak.

    Signed-off-by: Jean Delvare
    Link: http://lkml.kernel.org/r/20140224160316.60e55fb6@endymion.delvare
    Cc: Doug Thompson
    Signed-off-by: Borislav Petkov

    Jean Delvare
     
  • Both probe error paths are incomplete and leak memory and device
    references. Add the missing cleanups.

    Signed-off-by: Jean Delvare
    Link: http://lkml.kernel.org/r/20140224154534.5a3b797a@endymion.delvare
    Cc: Mauro Carvalho Chehab
    Signed-off-by: Borislav Petkov

    Jean Delvare