Sherry Sun
2fb3f6e125
EDAC/synopsys: Do not dump uninitialized pinf->col
...
On the ZynqMP platform, zynqmp_get_error_info() is used to read out
error information. In this function, the pinf->col parameter is not
used (it is only used by the Zynq platform's zynq_get_error_info()). So
there's no need to print pinf->col on ZynqMP.
In order to differentiate on which platform handle_error() is executed,
use DDR_ECC_INTR_SUPPORT as the check condition to distinguish between
Zynq and ZynqMP platforms.
[ bp: Massage. ]
Fixes: b500b4a029 ("EDAC, synopsys: Add ECC support for ZynqMP DDR controller")
Signed-off-by: Sherry Sun <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
Reviewed-by: Manish Narani <[email protected] >
Link: https://lkml.kernel.org/r/[email protected]
2020-03-17 14:32:31 +01:00
Sherry Sun
dfc6014e3b
EDAC/synopsys: Do not print an error with back-to-back snprintf() calls
...
handle_error() currently calls snprintf() a couple of times in
succession to output the message for a CE/UE, therefore overwriting each
part of the message which was formatted with the previous snprintf()
call. As a result, only the part of the message from the last snprintf()
call will be printed.
The simplest and most effective way to fix this problem is to combine
the whole string into one which to supply to a single snprintf() call.
[ bp: Massage. ]
Fixes: b500b4a029 ("EDAC, synopsys: Add ECC support for ZynqMP DDR controller")
Signed-off-by: Sherry Sun <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
Reviewed-by: James Morse <[email protected] >
Cc: Manish Narani <[email protected] >
Link: https://lkml.kernel.org/r/[email protected]
2020-02-27 16:44:25 +01:00
Manish Narani
1a81361f75
EDAC, synopsys: Add Error Injection support for ZynqMP DDR controller
...
Add support for Error Injection for ZynqMP DDR controller IP. For
injecting errors, the Row, Column, Bank, Bank Group and Rank bits
positions are determined via Address Map registers of the Synopsys DDR
controller.
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-06 10:38:27 +01:00
Manish Narani
b500b4a029
EDAC, synopsys: Add ECC support for ZynqMP DDR controller
...
Add ECC support for ZynqMP DDR controller IP. The IP supports interrupts
for corrected and uncorrected errors. Add interrupt handlers for the
same.
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-06 10:30:29 +01:00
Manish Narani
e926ae573b
EDAC, synopsys: Add macro defines for ZynqMP DDRC
...
Add macro defines for ZynqMP DDR controller. These macros will be used
for ZynqMP ECC operations.
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-05 13:40:32 +01:00
Manish Narani
84de0b493f
EDAC, synopsys: Add error handling for the of_device_get_match_data() result
...
The function of_device_get_match_data() can return NULL in case of
error. Add error handling for the same in the mc_probe() function.
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-05 13:36:20 +01:00
Manish Narani
3d02a8975e
EDAC, synopsys: Add platform specific structures for the DDR Controller
...
Add platform specific structures so that different IP support can be
added later using quirks.
[ bp: fix function names. ]
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-05 13:30:49 +01:00
Manish Narani
fa9f6b9e1c
EDAC, synopsys: Return void for functions always returning 0
...
The current driver has functions which are always returning 0 - make
them return void instead.
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-05 13:30:00 +01:00
Manish Narani
225af74d63
EDAC, synopsys: Correct comments
...
Spellcheck and improve/correct comments.
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-05 13:28:29 +01:00
Manish Narani
bb894bc46e
EDAC, synopsys: Shorten static function names
...
Shorten static function names, remove the unnecessary 'synps_' prefix in
function names.
[ bp: Drop the "edac_" prefix too as that prefix is reserved for
EDAC core functions. ]
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-05 13:27:56 +01:00
Manish Narani
1b51adc6b7
EDAC, synopsys: Improve code readability
...
Clean up the driver code. Update the debug messages for EDAC errors
reported. Increase the indentation of the macros for better readability.
Signed-off-by: Manish Narani <[email protected] >
Signed-off-by: Borislav Petkov <[email protected] >
CC: Mauro Carvalho Chehab <[email protected] >
CC: Michal Simek <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: linux-edac <[email protected] >
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
2018-11-05 13:22:55 +01:00
Borislav Petkov
c54182ec0e
EDAC: Get rid of mci->mod_ver
...
It is a write-only variable so get rid of it.
Signed-off-by: Borislav Petkov <[email protected] >
Acked-by: Robert Richter <[email protected] >
Acked-by: Michal Simek <[email protected] >
Acked-by: Thor Thayer <[email protected] >
Acked-by: Tony Luck <[email protected] >
Cc: Mark Gross <[email protected] >
Cc: Tim Small <[email protected] >
Cc: Ranganathan Desikan <[email protected] >
Cc: "Arvind R." <[email protected] >
Cc: Jason Baron <[email protected] >
Cc: "Sören Brinkmann" <[email protected] >
Cc: Ralf Baechle <[email protected] >
Cc: David Daney <[email protected] >
Cc: Loc Ho <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
2017-07-17 13:42:48 +02:00
Mauro Carvalho Chehab
78d88e8a3d
edac: rename edac_core.h to edac_mc.h
...
Now, all left at edac_core.h are at drivers/edac/edac_mc.c,
so rename it to edac_mc.h.
Signed-off-by: Mauro Carvalho Chehab <[email protected] >
2016-12-15 08:54:51 -02:00
Fabian Frederick
1afaa05515
EDAC: Constify of_device_id array
...
of_device_id is always used as const. See driver.of_match_table and open
firmware functions.
Signed-off-by: Fabian Frederick <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: Doug Thompson <[email protected] >
Cc: Robert Richter <[email protected] >
Cc: Mauro Carvalho Chehab <[email protected] >
Cc: Johannes Thumshirn <[email protected] >
Cc: Michal Simek <[email protected] >
Cc: Sören Brinkmann <[email protected] >
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected] >
2015-03-20 17:50:07 +01:00
Punnaiah Choudary Kalluri
ae9b56e399
EDAC, synps: Add EDAC support for zynq ddr ecc controller
...
Add EDAC support for ecc errors reporting on the synopsys ddr
controller. The ddr ecc controller corrects single bit errors and
detects double bit errors.
Selected important-ish notes from the changelog:
- I have not taken care of spliting synps_edac_geterror_info function as
it adds additional indentation levels and moreover the existing changes
were made as part of the v2 review comments
- Removed dt binding info as already there is a binding info available
under memorycontroller. so, updated ecc info there.
- Shortened the prefix "sysnopsys" to "synps"
Signed-off-by: Punnaiah Choudary Kalluri <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
[ Boris: massage commit message. ]
Signed-off-by: Borislav Petkov <[email protected] >
2015-01-07 11:42:05 +01:00