linux-brain/drivers/edac
Jérémy Lefaure 7290cfeb44 EDAC, i5000, i5400: Fix definition of NRECMEMB register
[ Upstream commit a8c8261425 ]

In the i5000 and i5400 drivers, the NRECMEMB register is defined as a
16-bit value, which results in wrong shifts in the code, as reported by
sparse.

In the datasheets ([1], section 3.9.22.20 and [2], section 3.9.22.21),
this register is a 32-bit register. A u32 value for the register fixes
the wrong shifts warnings and matches the datasheet.

Also fix the mask to access to the CAS bits [27:16] in the i5000 driver.

[1]: https://www.intel.com/content/dam/doc/datasheet/5000p-5000v-5000z-chipset-memory-controller-hub-datasheet.pdf
[2]: https://www.intel.se/content/dam/doc/datasheet/5400-chipset-memory-controller-hub-datasheet.pdf

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170629005729.8478-1-jeremy.lefaure@lse.epita.fr
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-14 09:28:22 +01:00
..
altera_edac.c EDAC, altera: Add IRQ Flags to disable IRQ while handling 2016-09-23 12:03:34 +02:00
altera_edac.h EDAC, altera: Rename device trigger to common name 2016-09-01 08:55:24 +02:00
amd64_edac_dbg.c EDAC: amd64: Use static attribute groups 2015-02-23 13:08:09 +01:00
amd64_edac_inj.c EDAC: amd64: Use static attribute groups 2015-02-23 13:08:09 +01:00
amd64_edac.c EDAC, amd64: Save and return err code from probe_one_instance() 2017-11-15 15:53:15 +01:00
amd64_edac.h EDAC, amd64: Add x86cpuid sanity check during init 2017-11-15 15:53:12 +01:00
amd76x_edac.c EDAC: Remove DEFINE_PCI_DEVICE_TABLE macro 2013-12-06 10:23:41 +01:00
amd8111_edac.c amd8111_edac: Fix leaks in probe error paths 2014-02-25 10:09:09 +01:00
amd8111_edac.h edac: AMD8111 driver header file 2009-04-02 19:05:03 -07:00
amd8131_edac.c edac: Drop __DATE__ usage 2011-04-19 00:23:22 +02:00
amd8131_edac.h tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
cell_edac.c edac: drop owner assignment from platform_drivers 2014-10-20 16:20:30 +02:00
cpc925_edac.c cpc925_edac: Report UE events properly 2014-10-22 22:58:45 +02:00
debugfs.c EDAC: Use edac_debugfs_remove_recursive() in edac_debugfs_exit() 2016-02-10 10:37:46 +01:00
e7xxx_edac.c e7xxx_edac: Report CE events properly 2014-10-22 22:59:00 +02:00
e752x_edac.c e752x_edac: Drop pvt->bridge_ck 2014-02-25 10:01:30 +01:00
edac_core.h EDAC: Carve out debugfs functionality 2015-09-22 12:29:46 +02:00
edac_device_sysfs.c EDAC: Remove edac_get_sysfs_subsys() error handling 2015-12-11 16:56:41 +01:00
edac_device.c EDAC: Rework workqueue handling 2015-12-11 16:56:43 +01:00
edac_mc_sysfs.c EDAC: Correct channel count limit 2016-06-16 10:06:35 +02:00
edac_mc.c EDAC: Fix workqueues poll period resetting 2016-06-03 11:14:27 +02:00
edac_module.c EDAC: Rework workqueue handling 2015-12-11 16:56:43 +01:00
edac_module.h EDAC: Rework workqueue handling 2015-12-11 16:56:43 +01:00
edac_pci_sysfs.c EDAC: Remove edac_get_sysfs_subsys() error handling 2015-12-11 16:56:41 +01:00
edac_pci.c EDAC: Cleanup/sync workqueue functions 2016-02-02 11:38:50 +01:00
edac_stub.c EDAC: Rip out the edac_subsys reference counting 2015-12-11 16:56:39 +01:00
fsl_ddr_edac.c EDAC, fsl_ddr: Fix error return code in fsl_mc_err_probe() 2016-09-09 19:27:22 +02:00
fsl_ddr_edac.h EDAC, fsl_ddr: Add missing DDR DRAM types 2016-09-01 10:28:01 +02:00
ghes_edac.c EDAC: Fix PAGES_TO_MiB macro misuse 2015-10-22 22:57:30 +02:00
highbank_l2_edac.c edac, highbank: Improve and unify naming 2013-11-04 17:01:07 -06:00
highbank_mc_edac.c EDAC: Constify of_device_id array 2015-03-20 17:50:07 +01:00
i7core_edac.c * Altera Arria10 L2 cache and On-Chip RAM ECC handling. (Thor Thayer) 2016-05-16 18:44:39 -07:00
i3000_edac.c EDAC: Delete unnecessary check before calling pci_dev_put() 2014-11-19 16:33:48 +01:00
i3200_edac.c move io-64-nonatomic*.h out of asm-generic 2015-10-15 00:21:07 +02:00
i5000_edac.c EDAC, i5000, i5400: Fix definition of NRECMEMB register 2017-12-14 09:28:22 +01:00
i5100_edac.c EDAC, i5100: Use to_delayed_work() 2016-01-01 18:31:34 +01:00
i5400_edac.c EDAC, i5000, i5400: Fix definition of NRECMEMB register 2017-12-14 09:28:22 +01:00
i7300_edac.c Linux 3.14-rc5 2014-03-11 06:55:49 -03:00
i82443bxgx_edac.c EDAC, i82443bxgx: Don't export static symbol 2015-03-11 20:39:15 +01:00
i82860_edac.c EDAC: Delete unnecessary checks before pci_dev_put() 2015-02-23 13:06:23 +01:00
i82875p_edac.c EDAC: Delete unnecessary checks before pci_dev_put() 2015-02-23 13:06:23 +01:00
i82975x_edac.c EDAC: Delete unnecessary checks before pci_dev_put() 2015-02-23 13:06:23 +01:00
ie31200_edac.c EDAC, ie31200_edac: Add Skylake support 2016-05-06 18:50:14 +02:00
Kconfig * Altera Arria10 enablement of NAND, DMA, USB, QSPI and SD-MMC FIFO 2016-10-04 12:06:26 -07:00
layerscape_edac.c EDAC, layerscape: Add Layerscape EDAC support 2016-09-01 10:28:03 +02:00
Makefile * Altera Arria10 enablement of NAND, DMA, USB, QSPI and SD-MMC FIFO 2016-10-04 12:06:26 -07:00
mce_amd.c EDAC, mce_amd: Print IPID and Syndrome on a separate line 2017-10-21 17:21:38 +02:00
mce_amd.h x86, mce, severity: Extend the the mce_severity mechanism to handle UCNA/DEFERRED error 2014-11-19 10:55:43 -08:00
mpc85xx_edac.c EDAC: Remove NO_IRQ from powerpc-only drivers 2016-09-12 13:04:56 +02:00
mpc85xx_edac.h EDAC, fsl-ddr: Separate FSL DDR driver from MPC85xx 2016-09-01 10:28:00 +02:00
mv64x60_edac.c EDAC: Remove NO_IRQ from powerpc-only drivers 2016-09-12 13:04:56 +02:00
mv64x60_edac.h edac: Drop __DATE__ usage 2011-04-19 00:23:22 +02:00
octeon_edac-l2c.c EDAC, octeon: Fix broken build due to model helper renames 2015-07-02 10:46:28 +02:00
octeon_edac-lmc.c EDAC, octeon: Fix broken build due to model helper renames 2015-07-02 10:46:28 +02:00
octeon_edac-pc.c EDAC, octeon: Fix broken build due to model helper renames 2015-07-02 10:46:28 +02:00
octeon_edac-pci.c Drivers: edac: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
pasemi_edac.c Drivers: edac: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
ppc4xx_edac.c EDAC: Remove NO_IRQ from powerpc-only drivers 2016-09-12 13:04:56 +02:00
ppc4xx_edac.h edac: new ppc4xx driver module 2009-04-02 19:05:03 -07:00
r82600_edac.c EDAC: Remove DEFINE_PCI_DEVICE_TABLE macro 2013-12-06 10:23:41 +01:00
sb_edac.c EDAC, sb_edac: Fix missing break in switch 2017-12-09 22:01:49 +01:00
skx_edac.c EDAC, skx_edac: Add EDAC driver for Skylake 2016-08-21 10:58:34 -07:00
synopsys_edac.c EDAC: Constify of_device_id array 2015-03-20 17:50:07 +01:00
tile_edac.c edac: drop owner assignment from platform_drivers 2014-10-20 16:20:30 +02:00
wq.c EDAC, wq: Remove deprecated create_singlethread_workqueue() 2016-08-15 07:21:29 +02:00
x38_edac.c move io-64-nonatomic*.h out of asm-generic 2015-10-15 00:21:07 +02:00
xgene_edac.c EDAC, xgene: Add missing SoC register bus error handling 2016-01-25 11:17:22 +01:00