Skip to contentSkip to conversation

EDAC: i82443bxgx: Fix invalid memory type assignment

PATCH In review Takashi Iwai 3 participants 7 messages Aug 10, 2018 – Aug 28, 2018 EDAC-core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EDAC: i82443bxgx: Fix invalid memory type assignment

The i82443bxgx_edac driver assigns an invalid negative value when an unknown DRAM type is detected. Drop the unnecessary '-' that brings misbehavior.

Fixes 5a2c675c8919 ("drivers/edac: new i82443bxgz MC driver")
---
 drivers/edac/i82443bxgx_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/i82443bxgx_edac.c +1 -1
index a2ca929e2168..1638f288fa47 100644
@@ -273,7 +273,7 @@ static int i82443bxgx_edacmc_probe1(struct pci_dev *pdev, int dev_idx)
 		break;
 	default:
 		edac_dbg(0, "Unknown/reserved DRAM type value in DRAMC register!\n");
-		mtype = -MEM_UNKNOWN;
+		mtype = MEM_UNKNOWN;
 	}
 
 	if ((mtype == MEM_SDR) || (mtype == MEM_RDR))
maintainer
#1 lore raw
Quoted 17 lines · Takashi Iwai

The i82443bxgx_edac driver assigns an invalid negative value when an unknown DRAM type is detected. Drop the unnecessary '-' that brings misbehavior.

Fixes 5a2c675c8919 ("drivers/edac: new i82443bxgz MC driver")
---
 drivers/edac/i82443bxgx_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/i82443bxgx_edac.c +0 -0
index a2ca929e2168..1638f288fa47 100644

drivers/edac/i82443bxgx_edac.c static int i82443bxgx_edacmc_probe1(struct pci_dev *pdev, int dev_idx) · line 279

Quoted 8 lines
drivers/edac/i82443bxgx_edac.c +1 -1
@@ -273,7 +273,7 @@ static int i82443bxgx_edacmc_probe1(struct pci_dev *pdev, int dev_idx)
 		break;
 	default:
 		edac_dbg(0, "Unknown/reserved DRAM type value in DRAMC register!\n");
-		mtype = -MEM_UNKNOWN;
+		mtype = MEM_UNKNOWN;
 	}
 
 	if ((mtype == MEM_SDR) || (mtype == MEM_RDR))

Is this something you caught by inspection or you really have hw that loads that driver...

Wikipedia says 440BX chipset is pentium II and III which, if so, would drop its priority considerably. CC:stable would be not needed either, TBH.

Thx.

#2 lore raw
Quoted 25 lines · Borislav Petkov
Quoted 23 lines · Takashi Iwai

The i82443bxgx_edac driver assigns an invalid negative value when an unknown DRAM type is detected. Drop the unnecessary '-' that brings misbehavior.

Fixes 5a2c675c8919 ("drivers/edac: new i82443bxgz MC driver")
---
 drivers/edac/i82443bxgx_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/i82443bxgx_edac.c +1 -1
index a2ca929e2168..1638f288fa47 100644
@@ -273,7 +273,7 @@ static int i82443bxgx_edacmc_probe1(struct pci_dev *pdev, int dev_idx)
 		break;
 	default:
 		edac_dbg(0, "Unknown/reserved DRAM type value in DRAMC register!\n");
-		mtype = -MEM_UNKNOWN;
+		mtype = MEM_UNKNOWN;
 	}
 
Quoted 5 lines

drivers/edac/i82443bxgx_edac.c static int i82443bxgx_edacmc_probe1(struct pci_dev *pdev, int dev_idx) · line 279

Quoted 2 lines
drivers/edac/i82443bxgx_edac.c +0 -0
 	if ((mtype == MEM_SDR) || (mtype == MEM_RDR))

Is this something you caught by inspection or you really have hw that loads that driver...

I just followed the old percept: read the source, Luke.

Quoted 2 lines

Wikipedia says 440BX chipset is pentium II and III which, if so, would drop its priority considerably. CC:stable would be not needed either, TBH.

OK, feel free to drop that.

thanks,

Takashi

maintainer
#3 lore raw
Quoted 1 line · Takashi Iwai

I just followed the old percept: read the source, Luke.

You're a wise jedi :)

Quoted 1 line

OK, feel free to drop that.

Nah, I can take it - I'll just drop the CC:stable thing.

Thx.

maintainer
#4 lore raw

PATCH 1/1 EDAC: Remove the i82443bxgx_edac driver

Quoted 1 line · Borislav Petkov

Nah, I can take it - I'll just drop the CC:stable thing.

Actually, looking at this driver more - it has been depending on BROKEN since 2007!

28f96eeafc89 ("drivers/edac-new-i82443bxgz-mc-driver: mark as broken")

and no one has made the move to fix it. Well, here's a "fix" - let's see if anyone moves now...
---
From: Borislav Petkov <[email protected]>
Date: Mon, 27 Aug 2018 18:39:28 +0200
Subject: [PATCH] EDAC: Remove the i82443bxgx_edac driver

It has been marked BROKEN since 2007:

28f96eeafc89 ("drivers/edac-new-i82443bxgz-mc-driver: mark as broken")

and no one has made a move to fix it so let's kill it.

---
 MAINTAINERS                    |   6 -
 drivers/edac/Kconfig           |   8 -
 drivers/edac/Makefile          |   1 -
 drivers/edac/i82443bxgx_edac.c | 463 ---------------------------------
 4 files changed, 478 deletions(-)
 delete mode 100644 drivers/edac/i82443bxgx_edac.c
MAINTAINERS +0 -6
index a5b256b25905..657a106b0bc0 100644
@@ -5285,12 +5285,6 @@ L:	[email protected]
 S:	Maintained
 F:	drivers/edac/i7core_edac.c
 
-EDAC-I82443BXGX
-M:	Tim Small <[email protected]>
-L:	[email protected]
-S:	Maintained
-F:	drivers/edac/i82443bxgx_edac.c
-
 EDAC-I82975X
 M:	Ranganathan Desikan <[email protected]>
 M:	"Arvind R." <[email protected]>
drivers/edac/Kconfig +0 -8
index 57304b2e989f..c6ce239934f3 100644
@@ -121,14 +121,6 @@ config EDAC_E752X
 	  Support for error detection and correction on the Intel
 	  E7520, E7525, E7320 server chipsets.
 
-config EDAC_I82443BXGX
-	tristate "Intel 82443BX/GX (440BX/GX)"
-	depends on PCI && X86_32
-	depends on BROKEN
-	help
-	  Support for error detection and correction on the Intel
-	  82443BX/GX memory controllers (440BX/GX chipsets).
-
 config EDAC_I82875P
 	tristate "Intel 82875p (D82875P, E7210)"
 	depends on PCI && X86_32
drivers/edac/Makefile +0 -1
index 02b43a7d8c3e..409d1643b702 100644
@@ -34,7 +34,6 @@ obj-$(CONFIG_EDAC_SKX)			+= skx_edac.o
 obj-$(CONFIG_EDAC_PND2)			+= pnd2_edac.o
 obj-$(CONFIG_EDAC_E7XXX)		+= e7xxx_edac.o
 obj-$(CONFIG_EDAC_E752X)		+= e752x_edac.o
-obj-$(CONFIG_EDAC_I82443BXGX)		+= i82443bxgx_edac.o
 obj-$(CONFIG_EDAC_I82875P)		+= i82875p_edac.o
 obj-$(CONFIG_EDAC_I82975X)		+= i82975x_edac.o
 obj-$(CONFIG_EDAC_I3000)		+= i3000_edac.o
drivers/edac/i82443bxgx_edac.c deleted +0 -463

463 lines not on this page · raw message

#5 lore raw

Re: [PATCH] EDAC: Remove the i82443bxgx_edac driver

Quoted 2 lines · Borislav Petkov

Actually, looking at this driver more - it has been depending on BROKEN since 2007!

Hi,

I'd forgotten that it was in BROKEN state.

The issue was that the driver was fully functioning, but it clashed with the graphics aperture driver - both use different registers within the same PCI device - it was marked broken on the basis that the with the kernel PCI device allocation code as it stood at the time, if the i82443bxgx_edac driver was loaded first, the graphics aperture configuration driver could not also be loaded, and this could break existing setups.

As far as I remember, it was left was that Greg KH had said that he was working on a change to the PCI device allocation code which would allow both to coexist. I don't know if that happened.

The last CPU which used these chipsets (130nm Pentium III) were released in 2001. I don't know when they were produced up until.

On that basis, I don't see a problem with removing it, but if there's a preference for me to fix it, (and if I still have some old hardware somewhere that I can test it on), I'll be happy to do that instead.

Tim.

maintainer
#6 lore raw

Re: [PATCH] EDAC: Remove the i82443bxgx_edac driver

Quoted 3 lines · Tim Small

On that basis, I don't see a problem with removing it, but if there's a preference for me to fix it, (and if I still have some old hardware somewhere that I can test it on), I'll be happy to do that instead.

Well, if you don't have the hardware anymore, fixing it would be moot and the only thing we can do is remove it. So, the question is, do you still have a functioning box and you want to waste your time with it?

I mean, this is pentium III, it probably takes forever to build the latest kernel on it and if it were me, I'd simply buy new hardware. Because IMO, it is not worth the energy to even power such ancient crap and waste money on the electricity it is going to consume...