18 May, 2016

1 commit

  • Pull trivial tree updates from Jiri Kosina.

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (21 commits)
    gitignore: fix wording
    mfd: ab8500-debugfs: fix "between" in printk
    memstick: trivial fix of spelling mistake on management
    cpupowerutils: bench: fix "average"
    treewide: Fix typos in printk
    IB/mlx4: printk fix
    pinctrl: sirf/atlas7: fix printk spelling
    serial: mctrl_gpio: Grammar s/lines GPIOs/line GPIOs/, /sets/set/
    w1: comment spelling s/minmum/minimum/
    Blackfin: comment spelling s/divsor/divisor/
    metag: Fix misspellings in comments.
    ia64: Fix misspellings in comments.
    hexagon: Fix misspellings in comments.
    tools/perf: Fix misspellings in comments.
    cris: Fix misspellings in comments.
    c6x: Fix misspellings in comments.
    blackfin: Fix misspelling of 'register' in comment.
    avr32: Fix misspelling of 'definitions' in comment.
    treewide: Fix typos in printk
    Doc: treewide : Fix typos in DocBook/filesystem.xml
    ...

    Linus Torvalds
     

17 May, 2016

1 commit

  • Pull EDAC updates from Borislav Petkov:
    "It was pretty busy in EDAC land this time:

    - Altera Arria10 L2 cache and On-Chip RAM ECC handling (Thor Thayer)

    - Remove ad-hoc buffering of MCE records in sb_edac and i7core_edac
    (Tony Luck)

    - Do not register sb_edac with pci_register_driver() (Tony Luck)

    - Add support for Skylake to ie31200_edac (Jason Baron)

    - Do not register amd64_edac with pci_register_driver() (Borislav
    Petkov)

    ... plus the usual round of cleanups and fixes all over the place"

    * tag 'edac_for_4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp: (25 commits)
    EDAC, amd64_edac: Drop pci_register_driver() use
    EDAC, ie31200_edac: Add Skylake support
    EDAC, sb_edac: Use cpu family/model in driver detection
    EDAC, i7core: Remove double buffering of error records
    EDAC, amd64_edac: Issue driver banner only on success
    ARM: socfpga: Initialize Arria10 OCRAM ECC on startup
    EDAC: Increment correct counter in edac_inc_ue_error()
    EDAC, sb_edac: Remove double buffering of error records
    EDAC: Fix used after kfree() error in edac_unregister_sysfs()
    EDAC, altera: Avoid unused function warnings
    EDAC, altera: Remove useless casts
    ARM: socfpga: Enable Arria10 OCRAM ECC on startup
    EDAC, altera: Add Arria10 OCRAM ECC support
    Documentation: dt: socfpga: Add Altera Arria10 OCRAM binding
    EDAC, altera: Make OCRAM ECC dependency check generic
    EDAC, altera: Add register offset for ECC Enable
    EDAC, altera: Extract error inject operations to a struct fops
    ARM: socfpga: Enable Arria10 L2 cache ECC on startup
    EDAC, altera: Add Arria10 L2 Cache ECC handling
    Documentation, dt, socfpga: Add Altera Arria10 L2 cache binding
    ...

    Linus Torvalds
     

12 May, 2016

1 commit

  • Use X86_FEATURE_SMCA when detecting if SMCA is available instead of
    directly using CPUID 0x80000007_EBX.

    Signed-off-by: Yazen Ghannam
    Signed-off-by: Borislav Petkov
    Cc: Andy Lutomirski
    Cc: Borislav Petkov
    Cc: Brian Gerst
    Cc: Denys Vlasenko
    Cc: H. Peter Anvin
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: Tony Luck
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1462971509-3856-7-git-send-email-bp@alien8.de
    Signed-off-by: Ingo Molnar

    Yazen Ghannam
     

10 May, 2016

1 commit

  • - remove homegrown instances counting.
    - take F3 PCI device from amd_nb caching instead of F2 which was used with the
    PCI core.

    With those changes, the driver doesn't need to register a PCI driver and
    relies on the northbridges caching which we do anyway on AMD.

    Signed-off-by: Borislav Petkov
    Cc: Yazen Ghannam

    Borislav Petkov
     

07 May, 2016

1 commit

  • Skylake adjusts some register locations, but otherwise follows the
    existing model quite closely. I was able to verify that the 'ce_count'
    increments when 'bad dimms' are used. The accounting of 'ce_count' and
    'ue_count' is the primary functionality of interest for us. Tested on
    Intel(R) Xeon(R) CPU E3-1260L v5 @ 2.90GHz.

    Signed-off-by: Jason Baron
    Acked-by: Tony Luck
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1462547927-22679-1-git-send-email-jbaron@akamai.com
    Signed-off-by: Borislav Petkov

    Jason Baron
     

03 May, 2016

1 commit

  • Instead of picking a random PCI ID from the dozen or so we need to
    access, just use x86_match_cpu() to pick based on CPU model number. The
    choosing of PCI devices has been problematic in the past, see

    11249e739929 ("sb_edac: Fix detection on SNB machines")

    which fixed problems introduced by

    d0585cd815fa ("sb_edac: Claim a different PCI device").

    This is especially ugly if future hardware might not even have
    EDAC-relevant registers in PCI config space and we would still be
    required to choose some "random" PCI devices to scan for just so our
    driver loads.

    Is this cleaner/clearer? It deletes much more code than it adds. Only
    tested on Broadwell. The driver loads/unloads and loads again. Still
    decodes errors too.

    Signed-off-by: Tony Luck
    Suggested-by: Borislav Petkov
    Signed-off-by: Borislav Petkov

    Tony Luck
     

29 Apr, 2016

2 commits

  • In the bad old days the functions from x86_mce_decoder_chain could be
    called in machine check context. So we used to carefully copy them and
    defer processing until later. But in

    f29a7aff4bd60 ("x86/mce: Avoid potential deadlock due to printk() in MCE context")

    we switched the logging code to save the record in a genpool, and call
    the functions that registered to be notified later from a work queue.

    So drop all the double buffering and do all the work we want to do as
    soon as i7core_mce_check_error() is called.

    Signed-off-by: Tony Luck
    Acked-by: Mauro Carvalho Chehab
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/29ab2c370915c6e132fc5d88e7b72cb834bedbfe.1461855008.git.tony.luck@intel.com
    Signed-off-by: Borislav Petkov

    Tony Luck
     
  • Both of these drivers can return NOTIFY_BAD, but this terminates
    processing other callbacks that were registered later on the chain.
    Since the driver did nothing to log the error it seems wrong to prevent
    other interested parties from seeing it. E.g. neither of them had even
    bothered to check the type of the error to see if it was a memory error
    before the return NOTIFY_BAD.

    Signed-off-by: Tony Luck
    Acked-by: Aristeu Rozanski
    Acked-by: Mauro Carvalho Chehab
    Cc: linux-edac
    Cc:
    Link: http://lkml.kernel.org/r/72937355dd92318d2630979666063f8a2853495b.1461864507.git.tony.luck@intel.com
    Signed-off-by: Borislav Petkov

    Tony Luck
     

27 Apr, 2016

1 commit


24 Apr, 2016

1 commit

  • Fix typo in edac_inc_ue_error() to increment ue_noinfo_count instead of
    ce_noinfo_count.

    Signed-off-by: Emmanouil Maroudas
    Cc: Mauro Carvalho Chehab
    Cc: linux-edac
    Fixes: 4275be635597 ("edac: Change internal representation to work with layers")
    Link: http://lkml.kernel.org/r/1461425580-5898-1-git-send-email-emmanouil.maroudas@gmail.com
    Signed-off-by: Borislav Petkov

    Emmanouil Maroudas
     

23 Apr, 2016

4 commits

  • In the bad old days the functions from x86_mce_decoder_chain could be
    called in machine check context. So we used to carefully copy them and
    defer processing until later. But in

    f29a7aff4bd60 ("x86/mce: Avoid potential deadlock due to printk() in MCE context")

    we switched the logging code to save the record in a genpool, and call
    the functions that registered to be notified later from a work queue.

    So drop all the double buffering and do all the work we want to do as
    soon as sbridge_mce_check_error() is called.

    Signed-off-by: Tony Luck
    Cc: Aristeu Rozanski
    Cc: Mauro Carvalho Chehab
    Cc: linux-edac
    Cc: patrickg@supermicro.com
    Link: http://lkml.kernel.org/r/100025611cd780d9bca72792b2b2146760da53e0.1460756761.git.tony.luck@intel.com
    Signed-off-by: Borislav Petkov

    Tony Luck
     
  • Code flow looks like this:

    device_unregister(&mci->dev);
    -> kobject_put+0x25/0x50
    -> kobject_cleanup+0x77/0x190
    -> device_release+0x32/0xa0
    -> mci_attr_release+0x36/0x70
    -> kfree(mci);
    bus_unregister(mci->bus);

    Fix is to grab a local copy of "mci->bus" and use that when we call
    bus_unregister().

    Signed-off-by: Tony Luck
    Acked-by: Aristeu Rozanski
    Cc: Mauro Carvalho Chehab
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/21d595b0ab3d718d9cb206647f4ec91c05e62ec4.1461261078.git.tony.luck@intel.com
    Signed-off-by: Borislav Petkov

    Tony Luck
     
  • The recently added Arria10 OCRAM ECC support caused some new harmless
    warnings about unused functions when it is disabled:

    drivers/edac/altera_edac.c:1067:20: error: 'altr_edac_a10_ecc_irq' defined but not used [-Werror=unused-function]
    drivers/edac/altera_edac.c:658:12: error: 'altr_check_ecc_deps' defined but not used [-Werror=unused-function]

    This rearranges the code slightly to have those two functions inside
    of the same #ifdef that hides their callers. It also manages to
    avoid a forward declaration of the IRQ handler in the process.

    Signed-off-by: Arnd Bergmann
    Acked-by: Thor Thayer
    Cc: Alan Tull
    Cc: Dinh Nguyen
    Cc: linux-edac
    Fixes: c7b4be8db8bc ("EDAC, altera: Add Arria10 OCRAM ECC support")
    Link: http://lkml.kernel.org/r/1460837650-1237650-2-git-send-email-arnd@arndb.de
    Signed-off-by: Borislav Petkov

    Arnd Bergmann
     
  • The altera EDAC driver refers to its per-device data
    using a cast to '(void *)', which makes the pointer
    non-const, though both the source and destination are
    actually const.

    Removing the annotation makes the reference (almost)
    fit into a single line for improved readability, and
    ensures that it is actually defined as const.

    Signed-off-by: Arnd Bergmann
    Acked-by: Thor Thayer
    Cc: Alan Tull
    Cc: Dinh Nguyen
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1460837650-1237650-1-git-send-email-arnd@arndb.de
    Signed-off-by: Borislav Petkov

    Arnd Bergmann
     

22 Apr, 2016

2 commits

  • Haswell and Broadwell can be configured to hash the channel
    interleave function using bits [27:12] of the physical address.

    On those processor models we must check to see if hashing is
    enabled (bit21 of the HASWELL_HASYSDEFEATURE2 register) and
    act accordingly.

    Based on a patch by patrickg

    Tested-by: Patrick Geary
    Signed-off-by: Tony Luck
    Acked-by: Mauro Carvalho Chehab
    Cc: Aristeu Rozanski
    Cc: Borislav Petkov
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: linux-edac@vger.kernel.org
    Cc: stable@vger.kernel.org
    Signed-off-by: Ingo Molnar

    Tony Luck
     
  • In commit:

    eb1af3b71f9d ("Fix computation of channel address")

    I switched the "sck_way" variable from holding the log2 value read
    from the h/w to instead be the actual number. Unfortunately it
    is needed in log2 form when used to shift the address.

    Tested-by: Patrick Geary
    Signed-off-by: Tony Luck
    Acked-by: Mauro Carvalho Chehab
    Cc: Aristeu Rozanski
    Cc: Borislav Petkov
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: linux-edac@vger.kernel.org
    Cc: stable@vger.kernel.org
    Fixes: eb1af3b71f9d ("Fix computation of channel address")
    Signed-off-by: Ingo Molnar

    Tony Luck
     

18 Apr, 2016

1 commit


07 Apr, 2016

1 commit

  • Add Arria10 On-Chip RAM ECC handling.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1459992174-8015-1-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     

02 Apr, 2016

3 commits

  • In preparation for the Arria10 peripheral ECCs, move the OCRAM ECC
    dependency check into the general ECC area since this same function can
    be used by other memories.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1459450087-24792-4-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     
  • In preparation for the Arria10 peripheral ECCs, add a register offset
    from the ECC base to index to the ECC enable register.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1459450087-24792-3-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     
  • In preparation for the Arria10 peripheral ECCs, extract the inject file
    operations because the Arria10 IRQ trigger mechanism is different than
    Cyclone5/Arria5 and Arria10 L2 cache.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1459450087-24792-2-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     

29 Mar, 2016

6 commits

  • Add a private data structure for Arria10 L2 cache ECC and the probe
    function for it.

    The Arria10 ECC device IRQs are in a shared register so the ECC Manager
    parent/child relationship requires a different probe function.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1458576106-24505-8-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     
  • In preparation for the Arria10 peripheral ECCs, add a register offset
    from the ECC base to the private data structure to index to the error
    injection register.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1458576106-24505-6-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     
  • In preparation for the Arria10 peripheral ECCs, use the ECC Enable mask
    in place of hard coded masks in the check dependency functions.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1458576106-24505-5-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     
  • In preparation for the Arria10 peripheral ECCs, remove the platform
    device parameter from the check_deps() functions because it is not
    needed and makes the Arria10 check_deps() cleaner.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1458576106-24505-4-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     
  • Move the device structs and defines to altera_edac.h in preparation for
    adding the Arria10 L2 cache ECC.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1458576106-24505-3-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     
  • Make L2 cache depend instead of forcibly select the L2 cache support.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1458576106-24505-2-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     

16 Mar, 2016

1 commit

  • Pull EDAC updates from Borislav Petkov:

    - Altera: L2 cache and On-Chip RAM support (Thor Thayer).

    - EDAC: Workqueue handling cleanups (Borislav Petkov).

    - Xgene: Register bus error handling (Loc Ho).

    - Misc small fixes.

    * tag 'edac_for_4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    ARM: socfpga: Enable OCRAM ECC on startup
    ARM: socfpga: Enable L2 cache ECC on startup
    ARM: dts: Add Altera L2 Cache and OCRAM EDAC entries
    EDAC, altera: Add Altera L2 cache and OCRAM support
    EDAC: Use edac_debugfs_remove_recursive() in edac_debugfs_exit()
    EDAC, mpc85xx: Silence unused variable warning
    EDAC: Cleanup/sync workqueue functions
    EDAC: Kill workqueue setup/teardown functions
    EDAC: Balance workqueue setup and teardown
    arm64: Update the APM X-Gene EDAC node with the RB register resource
    EDAC, xgene: Add missing SoC register bus error handling
    Documentation, EDAC: Update xgene binding for missing register bus
    EDAC, amd64_edac: Shift wrapping issue in f1x_get_norm_dct_addr()

    Linus Torvalds
     

15 Mar, 2016

1 commit

  • Pull RAS updates from Ingo Molnar:
    "Various RAS updates:

    - AMD MCE support updates for future CPUs, fixes and 'SMCA' (Scalable
    MCA) error decoding support (Aravind Gopalakrishnan)

    - x86 memcpy_mcsafe() support, to enable smart(er) hardware error
    recovery in NVDIMM drivers, based on an extension of the x86
    exception handling code. (Tony Luck)"

    * 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    EDAC/sb_edac: Fix computation of channel address
    x86/mm, x86/mce: Add memcpy_mcsafe()
    x86/mce/AMD: Document some functionality
    x86/mce: Clarify comments regarding deferred error
    x86/mce/AMD: Fix logic to obtain block address
    x86/mce/AMD, EDAC: Enable error decoding of Scalable MCA errors
    x86/mce: Move MCx_CONFIG MSR definitions
    x86/mce: Check for faults tagged in EXTABLE_CLASS_FAULT exception table entries
    x86/mm: Expand the exception table logic to allow new handling options
    x86/mce/AMD: Set MCAX Enable bit
    x86/mce/AMD: Carve out threshold block preparation
    x86/mce/AMD: Fix LVT offset configuration for thresholding
    x86/mce/AMD: Reduce number of blocks scanned per bank
    x86/mce/AMD: Do not perform shared bank check for future processors
    x86/mce: Fix order of AMD MCE init function call

    Linus Torvalds
     

11 Mar, 2016

1 commit

  • Large memory Haswell-EX systems with multiple DIMMs per channel were
    sometimes reporting the wrong DIMM.

    Found three problems:

    1) Debug printouts for socket and channel interleave were not interpreting
    the register fields correctly. The socket interleave field is a 2^X
    value (0=1, 1=2, 2=4, 3=8). The channel interleave is X+1 (0=1, 1=2,
    2=3. 3=4).

    2) Actual use of the socket interleave value didn't interpret as 2^X

    3) Conversion of address to channel address was complicated, and wrong.

    Signed-off-by: Tony Luck
    Acked-by: Aristeu Rozanski
    Cc: Borislav Petkov
    Cc: Linus Torvalds
    Cc: Mauro Carvalho Chehab
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: linux-edac@vger.kernel.org
    Cc: stable@vger.kernel.org
    Signed-off-by: Ingo Molnar

    Luck, Tony
     

08 Mar, 2016

2 commits

  • For Scalable MCA enabled processors, errors are listed per IP block. And
    since it is not required for an IP to map to a particular bank, we need
    to use HWID and McaType values from the MCx_IPID register to figure out
    which IP a given bank represents.

    We also have a new bit (TCC) in the MCx_STATUS register to indicate Task
    context is corrupt.

    Add logic here to decode errors from all known IP blocks for Fam17h
    Model 00-0fh and to print TCC errors.

    [ Minor fixups. ]
    Signed-off-by: Aravind Gopalakrishnan
    Signed-off-by: Borislav Petkov
    Cc: Borislav Petkov
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: Tony Luck
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1457021458-2522-3-git-send-email-Aravind.Gopalakrishnan@amd.com
    Signed-off-by: Ingo Molnar

    Aravind Gopalakrishnan
     
  • Correct a typo introduced by

    d0cdf9003140 ("EDAC, sb_edac: Add Knights Landing (Xeon Phi gen 2) support")

    As a result under some configurations DIMMs were not correctly
    recognized. Problem affects only Xeon Phi architecture.

    Signed-off-by: Hubert Chrzaniuk
    Acked-by: Aristeu Rozanski
    Cc: Mauro Carvalho Chehab
    Cc: linux-edac
    Cc: lukasz.anaczkowski@intel.com
    Link: http://lkml.kernel.org/r/1457361045-26221-1-git-send-email-hubert.chrzaniuk@intel.com
    Signed-off-by: Borislav Petkov

    Hubert Chrzaniuk
     

11 Feb, 2016

1 commit

  • Add L2 Cache and On-Chip RAM EDAC support for the Altera SoCs. The SDRAM
    controller is using the Memory Controller model.

    Each type of ECC is individually configurable.

    Signed-off-by: Thor Thayer
    Cc: devicetree@vger.kernel.org
    Cc: dinguyen@opensource.altera.com
    Cc: galak@codeaurora.org
    Cc: grant.likely@linaro.org
    Cc: ijc+devicetree@hellion.org.uk
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@arm.linux.org.uk
    Cc: linux-doc@vger.kernel.org
    Cc: linux-edac
    Cc: mark.rutland@arm.com
    Cc: Mauro Carvalho Chehab
    Cc: pawel.moll@arm.com
    Cc: robh+dt@kernel.org
    Link: http://lkml.kernel.org/r/1455132384-17108-1-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     

10 Feb, 2016

1 commit

  • debugfs_remove() is used to remove a file or a directory from the
    debugfs filesystem on an EDAC device exit. However edac_debugfs might
    not be empty. This is similar to

    30f84a891bf6 ("EDAC: Use edac_debugfs_remove_recursive()")

    which changed the EDAC MCI code to use edac_debugfs_remove_recursive().

    Suggested-by: Borislav Petkov
    Signed-off-by: Thor Thayer
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1455064165-3816-1-git-send-email-tthayer@opensource.altera.com
    Signed-off-by: Borislav Petkov

    Thor Thayer
     

03 Feb, 2016

1 commit

  • We were getting this build warning:

    drivers/edac/mpc85xx_edac.c:1247:6: warning: unused variable 'pvr'

    pvr is only used if CONFIG_FSL_SOC_BOOKE is defined. Declare it
    __maybe_unused.

    Suggested-by: Guenter Roeck
    Signed-off-by: Sudip Mukherjee
    Reviewed-by: Johannes Thumshirn
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/1454427573-7994-1-git-send-email-sudipm.mukherjee@gmail.com
    Signed-off-by: Borislav Petkov

    Sudip Mukherjee
     

02 Feb, 2016

3 commits


25 Jan, 2016

2 commits

  • Add missing register bus error handling for APM X-Gene EDAC SoC and fix
    a checking condition for CE error promoted to UE.

    Signed-off-by: Loc Ho
    Cc: Arnd Bergmann
    Cc: devicetree@vger.kernel.org
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-edac
    Cc: Mauro Carvalho Chehab
    Cc: patches@apm.com
    Link: http://lkml.kernel.org/r/1453495625-28006-3-git-send-email-lho@apm.com
    Signed-off-by: Borislav Petkov

    Loc Ho
     
  • dct_sel_base_off is declared as a u64 but we're only using the lower 32
    bits because of a shift wrapping bug. This can possibly truncate the
    upper 16 bits of DctSelBaseOffset[47:26], causing us to misdecode the CS
    row.

    Fixes: c8e518d5673d ('amd64_edac: Sanitize f10_get_base_addr_offset')
    Signed-off-by: Dan Carpenter
    Cc: Aravind Gopalakrishnan
    Cc: linux-edac
    Cc:
    Link: http://lkml.kernel.org/r/20160120095451.GB19898@mwanda
    Signed-off-by: Borislav Petkov

    Dan Carpenter