Linux-EDAC Archive on
 help / color / Atom feed
* [PATCH 5.4 053/177] EDAC/altera: Use fast register IO for S10 IRQs
       [not found] <>
@ 2019-12-16 17:48 ` Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2019-12-16 17:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Greg Kroah-Hartman, stable, Meng Li, Thor Thayer,
	Borislav Petkov, James Morse, linux-edac, Mauro Carvalho Chehab,
	Robert Richter, Tony Luck

From: Meng Li <>

commit 56d9e7bd3fa0f105b6670021d167744bc50ae4fe upstream.

When an IRQ occurs, regmap_{read,write,...}() is invoked in atomic
context. Regmap must indicate register IO is fast so that a spinlock is
used instead of a mutex to avoid sleeping in atomic context:


Mark it so.

 [ bp: Massage. ]

Fixes: 3dab6bd52687 ("EDAC, altera: Add support for Stratix10 SDRAM EDAC")
Reported-by: Meng Li <>
Signed-off-by: Meng Li <>
Signed-off-by: Thor Thayer <>
Signed-off-by: Borislav Petkov <>
Cc: James Morse <>
Cc: linux-edac <>
Cc: Mauro Carvalho Chehab <>
Cc: Robert Richter <>
Cc: stable <>
Cc: Tony Luck <>
Signed-off-by: Greg Kroah-Hartman <>

 drivers/edac/altera_edac.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/edac/altera_edac.c
+++ b/drivers/edac/altera_edac.c
@@ -560,6 +560,7 @@ static const struct regmap_config s10_sd
 	.reg_write = s10_protected_reg_write,
 	.use_single_read = true,
 	.use_single_write = true,
+	.fast_io = true,
 /************** </Stratix10 EDAC Memory Controller Functions> ***********/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2019-12-16 17:48 ` [PATCH 5.4 053/177] EDAC/altera: Use fast register IO for S10 IRQs Greg Kroah-Hartman

Linux-EDAC Archive on

Archives are clonable:
	git clone --mirror linux-edac/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-edac linux-edac/ \
	public-inbox-index linux-edac

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone