1. 29 5月, 2012 1 次提交
    • M
      edac: move dimm properties to struct dimm_info · 084a4fcc
      Mauro Carvalho Chehab 提交于
      On systems based on chip select rows, all channels need to use memories
      with the same properties, otherwise the memories on channels A and B
      won't be recognized.
      
      However, such assumption is not true for all types of memory
      controllers.
      
      Controllers for FB-DIMM's don't have such requirements.
      
      Also, modern Intel controllers seem to be capable of handling such
      differences.
      
      So, we need to get rid of storing the DIMM information into a per-csrow
      data, storing it, instead at the right place.
      
      The first step is to move grain, mtype, dtype and edac_mode to the
      per-dimm struct.
      Reviewed-by: NAristeu Rozanski <arozansk@redhat.com>
      Reviewed-by: NBorislav Petkov <borislav.petkov@amd.com>
      Acked-by: NChris Metcalf <cmetcalf@tilera.com>
      Cc: Doug Thompson <norsk5@yahoo.com>
      Cc: Borislav Petkov <borislav.petkov@amd.com>
      Cc: Mark Gross <mark.gross@intel.com>
      Cc: Jason Uhlenkott <juhlenko@akamai.com>
      Cc: Tim Small <tim@buttersideup.com>
      Cc: Ranganathan Desikan <ravi@jetztechnologies.com>
      Cc: "Arvind R." <arvino55@gmail.com>
      Cc: Olof Johansson <olof@lixom.net>
      Cc: Egor Martovetsky <egor@pasemi.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Joe Perches <joe@perches.com>
      Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Hitoshi Mitake <h.mitake@gmail.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: James Bottomley <James.Bottomley@parallels.com>
      Cc: "Niklas Söderlund" <niklas.soderlund@ericsson.com>
      Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
      Cc: Josh Boyer <jwboyer@gmail.com>
      Cc: Mike Williams <mike@mikebwilliams.com>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      084a4fcc
  2. 22 3月, 2012 1 次提交
    • M
      edac/ppc4xx_edac: Fix compilation · b877763e
      Mauro Carvalho Chehab 提交于
      It seems that nobody is cross-compiling for this arch anymore...
      
      drivers/edac/ppc4xx_edac.c: In function 'ppc4xx_edac_probe':
      drivers/edac/ppc4xx_edac.c:188:12: error: storage class specified for parameter 'ppc4xx_edac_remove'
      ...
      drivers/edac/ppc4xx_edac.c:1068:19: error: 'match' undeclared (first use in this function)
      drivers/edac/ppc4xx_edac.c:1068:19: note: each undeclared identifier is reported only once for each function it appears in
      drivers/edac/ppc4xx_edac.c:1068:36: warning: left-hand operand of comma expression has no effect [-Wunused-value]
      Acked-by: NJosh Boyer <jwboyer@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      b877763e
  3. 02 12月, 2011 1 次提交
  4. 12 8月, 2011 1 次提交
  5. 19 5月, 2011 1 次提交
    • G
      drivercore: revert addition of of_match to struct device · b1608d69
      Grant Likely 提交于
      Commit b826291c, "drivercore/dt: add a match table pointer to struct
      device" added an of_match pointer to struct device to cache the
      of_match_table entry discovered at driver match time.  This was unsafe
      because matching is not an atomic operation with probing a driver.  If
      two or more drivers are attempted to be matched to a driver at the
      same time, then the cached matching entry pointer could get
      overwritten.
      
      This patch reverts the of_match cache pointer and reworks all users to
      call of_match_device() directly instead.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      b1608d69
  6. 19 4月, 2011 1 次提交
  7. 28 2月, 2011 1 次提交
  8. 02 11月, 2010 1 次提交
  9. 06 8月, 2010 1 次提交
  10. 03 6月, 2010 1 次提交
  11. 22 5月, 2010 1 次提交
    • G
      of: Remove duplicate fields from of_platform_driver · 4018294b
      Grant Likely 提交于
      .name, .match_table and .owner are duplicated in both of_platform_driver
      and device_driver.  This patch is a removes the extra copies from struct
      of_platform_driver and converts all users to the device_driver members.
      
      This patch is a pretty mechanical change.  The usage model doesn't change
      and if any drivers have been missed, or if anything has been fixed up
      incorrectly, then it will fail with a compile time error, and the fixup
      will be trivial.  This patch looks big and scary because it touches so
      many files, but it should be pretty safe.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NSean MacLennan <smaclennan@pikatech.com>
      4018294b
  12. 03 4月, 2009 1 次提交
    • G
      edac: new ppc4xx driver module · dba7a77c
      Grant Erickson 提交于
      This adds support for an EDAC memory controller adaptation driver for the
      "ibm,sdram-4xx-ddr2" ECC controller realized in the AMCC PowerPC 405EX[r].
      
      At present, this driver has been developed and tested against the
      controller realization in the AMCC PPC405EX[r] on the AMCC Kilauea and
      Haleakala boards (256 MiB w/o ECC memory soldered onto the board) and a
      proprietary board based on those designs (128 MiB ECC memory, also
      soldered onto the board).
      
      In the future, dynamic feature detection and handling needs to be added
      for the other realizations of this controller found in the 440SP, 440SPe,
      460EX, 460GT and 460SX.
      
      Eventually, this driver will likely be evolved and adapted to the above
      variant realizations of this controller as well as broken apart to handle
      the other known ECC-capable controllers prevalent in other PPC4xx
      processors:
      
        - IBM SDRAM (405GP, 405CR and 405EP) "ibm,sdram-4xx"
        - IBM DDR1 (440GP, 440GX, 440EP and 440GR) "ibm,sdram-4xx-ddr"
        - Denali DDR1/DDR2 (440EPX and 440GRX) "denali,sdram-4xx-ddr2"
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NGrant Erickson <gerickson@nuovations.com>
      Signed-off-by: NDoug Thompson <dougthompson@xmission.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dba7a77c