06 Aug, 2006

1 commit

  • With CONFIG_PCI=n:

    CC drivers/edac/edac_mc.o
    drivers/edac/edac_mc.c: In function ‘add_mc_to_global_list’:
    drivers/edac/edac_mc.c:1362: error: implicit declaration of function ‘to_platform_device’
    drivers/edac/edac_mc.c:1362: error: invalid type argument of ‘->’
    drivers/edac/edac_mc.c: In function ‘edac_mc_add_mc’:
    drivers/edac/edac_mc.c:1467: error: invalid type argument of ‘->’
    drivers/edac/edac_mc.c: In function ‘edac_mc_del_mc’:
    drivers/edac/edac_mc.c:1504: error: invalid type argument of ‘->’

    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

11 Jul, 2006

1 commit

  • When EDAC was first introduced into the kernel it had a sysfs interface,
    but due to some problems it was disabled in 2.6.16 and remained disabled in
    2.6.17.

    With feedback, several of the control and attribute files of that interface
    had some good constructive feedback. PCI Blacklist/Whitelist was a major
    set which has design issues and it has been removed in this patch. Instead
    of storing PCI broken parity status in EDAC, it has been moved to the
    pci_dev structure itself by a previous PCI patch. A future patch will
    enable that feature in EDAC by utilizing the pci_dev info.

    The sysfs is now enabled in this patch, with a minimal set of control and
    attribute files for examining EDAC state and for enabling/disabling the
    memory and PCI operations.

    The Documentation for EDAC has also been updated to reflect the new state
    of EDAC operation.

    Signed-off-by:Doug Thompson
    Cc: Greg KH
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     

02 Jul, 2006

1 commit

  • Fix the quoted module name in the sysfs for EDAC modules and reported by several
    people.

    Instead of ../_edac_e752x_/ now the following will be presented, like other
    modules: ../edac_e752x/

    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     

01 Jul, 2006

5 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial:
    Remove obsolete #include
    remove obsolete swsusp_encrypt
    arch/arm26/Kconfig typos
    Documentation/IPMI typos
    Kconfig: Typos in net/sched/Kconfig
    v9fs: do not include linux/version.h
    Documentation/DocBook/mtdnand.tmpl: typo fixes
    typo fixes: specfic -> specific
    typo fixes in Documentation/networking/pktgen.txt
    typo fixes: occuring -> occurring
    typo fixes: infomation -> information
    typo fixes: disadvantadge -> disadvantage
    typo fixes: aquire -> acquire
    typo fixes: mecanism -> mechanism
    typo fixes: bandwith -> bandwidth
    fix a typo in the RTC_CLASS help text
    smb is no longer maintained

    Manually merged trivial conflict in arch/um/kernel/vmlinux.lds.S

    Linus Torvalds
     
  • - Add lower-level functions that handle various parts of the initialization
    done by the xxx_probe1() functions. Some of the xxx_probe1() functions are
    much too long and complicated (see "Chapter 5: Functions" in
    Documentation/CodingStyle).

    - Cleanup of probe1() functions in EDAC

    Signed-off-by: Doug Thompson
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • Remove add_mc_to_global_list(). In next patch, this function will be
    reimplemented with different semantics.

    1 Reimplement add_mc_to_global_list() with semantics that allow the caller to
    determine the ID number for a mem_ctl_info structure. Then modify
    edac_mc_add_mc() so that the caller specifies the ID number for the new
    mem_ctl_info structure. Platform-specific code should be able to assign the
    ID numbers in a platform-specific manner. For instance, on Opteron it makes
    sense to have the ID of the mem_ctl_info structure match the ID of the node
    that the memory controller belongs to.

    2 Modify callers of edac_mc_add_mc() so they use the new semantics.

    Signed-off-by: Doug Thompson
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • Change MC drivers from using CVS revision strings for their version number,
    Now each driver has its own local string.

    Remove some PCI dependencies from the core EDAC module. Made the code 'struct
    device' centric instead of 'struct pci_dev' Most of the code changes here are
    from a patch by Dave Jiang. It may be best to eventually move the
    PCI-specific code into a separate source file.

    Signed-off-by: Doug Thompson
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • Signed-off-by: Jörn Engel
    Signed-off-by: Adrian Bunk

    Jörn Engel
     

04 May, 2006

1 commit

  • Address the issue of EDAC/BIOS coexistence for the e752x chip-sets.

    We have found a problem where the BIOS will start the system with the error
    registers (dev0:fun1) hidden and assuming it has exclusive access to them.
    The edac driver violates this assumption.

    The workaround this patch offers is to honor the hidden-ness as an
    indication that it is not safe to use those registers.

    Signed-off-by: Mark Gross
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    mark gross
     

01 Apr, 2006

1 commit


29 Mar, 2006

1 commit


27 Mar, 2006

19 commits

  • Change all instances of EXPORT_SYMBOL() in the core EDAC module to
    EXPORT_SYMBOL_GPL().

    Signed-off-by: David S. Peterson
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • Patch from Dave Jiang : Fix EDAC e752x driver so it
    outputs sysbus-specific error message when sysbus error detected.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • Cosmetic indentation/formatting cleanup for EDAC code. Make sure we
    are using tabs rather than spaces to indent, etc.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • Fix EDAC code so EXPORT_SYMBOL comes after the function that is being
    exported. This is to maintain consistency with the rest of the kernel.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • - Add x86 dependency in drivers/edac/Kconfig for all current
    platform-specific modules.

    - Add PCI dependency to Radisys 82600 driver

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • - Fix code so we always hold mem_ctls_mutex while we are stepping
    through the list of mem_ctl_info structures. Otherwise bad things
    may happen if one task is stepping through the list while another
    task is modifying it. We may eventually want to use reference
    counting to manage the mem_ctl_info structures. In the meantime we
    may as well fix this bug.

    - Don't disable interrupts while we are walking the list of
    mem_ctl_info structures in check_mc_devices(). This is unnecessary.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • - After we unregister a kobject, wait for our kobject release method
    to call complete(). This causes us to wait until the kobject
    reference count reaches 0. Otherwise, a task accessing the EDAC
    sysfs interface can hold the reference count above 0 until after the
    EDAC module has been unloaded. When the reference count finally
    drops to 0, this will result in an attempt to call our release
    method inside the EDAC module after the module has already been
    unloaded.

    This isn't the best fix, since a process can get stuck sleeping forever
    uninterruptibly if the user does the following:

    rmmod my_module < /sys/my_sysfs/file

    I'll go back and implement a better fix later. However this should
    be ok for now.

    - Call edac_remove_sysfs_mci_device() from edac_mc_del_mc() rather
    than from edac_mc_free(). Since edac_mc_add_mc() calls
    edac_create_sysfs_mci_device(), edac_mc_del_mc() should call
    edac_remove_sysfs_mci_device().

    Signed-off-by: David S. Peterson
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • - Remove calls to kobject_init(). These are unnecessary because
    kobject_register() calls kobject_init().

    - Remove extra calls to kobject_put(). When we call
    kobject_unregister(), this releases our reference to the kobject.
    The extra calls to kobject_put() may cause the reference count to
    drop to 0 while a kobject is still in use.

    Signed-off-by: David S. Peterson
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • This is part 2 of a 2-part patch set.

    Fix edac_mc_add_mc() so it cleans up properly if call to
    edac_create_sysfs_mci_device() fails.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • This is part 1 of a 2-part patch set. The code changes are split into
    two parts to make the patches more readable.

    Move complete_mc_list_del() and del_mc_from_global_list() so we can
    call del_mc_from_global_list() from edac_mc_add_mc() without forward
    declarations. Perhaps using forward declarations would be better?
    I'm doing things this way because the rest of the code is missing
    them.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • Fix xxx_probe1() functions so they call xxx_get_error_info() functions
    to clear initial errors. This is simpler and cleaner than duplicating
    the low-level code for accessing PCI config space.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • Fix minor logic bug in e7xxx_remove_one().

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • - Fix i82875p_probe1() so it calls pci_get_device() instead of
    pci_find_device().
    - Fix i82875p_probe1() so it cleans up properly on failure.
    - Fix i82875p_init() so it cleans up properly on failure.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • - Fix i82860_init() so it cleans up properly on failure.
    - Fix i82860_exit() so it cleans up properly.
    - Fix typo in comment (i.e. www.redhat.com.com).

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • - Add ctl_dev field to "struct e752x_dev_info". Then we can eliminate
    ugly switch statement from e752x_probe1().

    - Remove code from e752x_probe1() that clears initial PCI bus parity
    errors. The core EDAC module already does this.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • Eliminate unnecessary calls to pci_dev_get() and pci_dev_put() from
    amd76x driver.

    Signed-off-by: David S. Peterson
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • Perform the following name substitutions on all source files:

    sed 's/BS_MOD_STR/EDAC_MOD_STR/g'
    sed 's/bs_thread_info/edac_thread_info/g'
    sed 's/bs_thread/edac_thread/g'
    sed 's/bs_xstr/edac_xstr/g'
    sed 's/bs_str/edac_str/g'

    The names that start with BS_ or bs_ are artifacts of when the code
    was called "bluesmoke".

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • This implements the following idea:

    On Monday 30 January 2006 19:22, Eric W. Biederman wrote:
    > One piece missing from this conversation is the issue that we need errors
    > in a uniform format. That is why edac_mc has helper functions.
    >
    > However there will always be errors that don't fit any particular model.
    > Could we add a edac_printk(dev, ); That is similar to dev_printk but
    > prints out an EDAC header and the device on which the error was found?
    > Letting the rest of the string be user specified.
    >
    > For actual control that interface may be to blunt, but at least for people
    > looking in the logs it allows all of the errors to be detected and
    > harvested.

    Signed-off-by: David S. Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     
  • This patch was originally posted by Christoph Hellwig (see
    http://lkml.org/lkml/2006/2/14/331):

    "Christoph Hellwig" wrote:
    > Use the kthread_ API instead of opencoding lots of hairy code for kernel
    > thread creation and teardown, including tasklist_lock abuse.
    >

    Signed-off-by: Christoph Hellwig
    Signed-off-by: David S. Peterson
    Cc:
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     

14 Mar, 2006

1 commit

  • - Disable the EDAC sysfs code. The sysfs interface that EDAC presents to
    user space needs more thought, and is likely to change substantially.
    Therefore disable it for now so users don't start depending on it in its
    current form.

    - Disable the default behavior of calling panic() when an uncorrectible
    error is detected (since for now, there is no sysfs interface that allows
    the user to configure this behavior).

    Signed-off-by: David S. Peterson
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Peterson
     

12 Mar, 2006

1 commit

  • Disable (via ugly #if 0's) the 3 sysfs files that I think by now we all
    agree are very much wrong. These files shouldn't become part of the ABI by
    the 2.6.16 release, so I rather have this minimal patch merged to disable
    them for now, the real fix can then come during the 2.6.17 devel window.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

10 Mar, 2006

1 commit

  • EDAC is still causing a few problems and the code is relatively green. Mark
    it as experimental until thing settle down.

    Also, provide some documentation pointers in Kconfig help.

    Signed-off-by: Tim Small
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Small
     

08 Feb, 2006

1 commit


05 Feb, 2006

1 commit


04 Feb, 2006

3 commits


19 Jan, 2006

2 commits

  • This is a subset of the bluesmoke project core code, stripped of the NMI work
    which isn't ready to merge and some of the "interesting" proc functionality
    that needs reworking or just has no place in kernel. It requires no core
    kernel changes except the added scrub functions already posted.

    The goal is to merge further functionality only after the core code is
    accepted and proven in the base kernel, and only at the point the upstream
    extras are really ready to merge.

    From: doug thompson

    This converts EDAC to sysfs and is the final chunk neccessary before EDAC
    has a stable user space API and can be considered for submission into the
    base kernel.

    Signed-off-by: Alan Cox
    Signed-off-by: Adrian Bunk
    Signed-off-by: Jesper Juhl
    Signed-off-by: doug thompson
    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox