Skip to contentSkip to conversation

Diff between Linus' and linux-mips git: drivers!

DISCUSSION Applied Martin Michlmayr 10 participants 45 messages Feb 19, 2006 – Apr 10, 2006

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

I just did a diff between the git trees of Linus and linux-mips and noticed that there's a large number of drivers in the MIPS tree which are not in mainline. I think these are still from the days when Ralf would apply MIPS related drivers to his tree instead of telling people to talk to the respective sub-system maintainers (like he does now).

We should find out whether these drivers are still needed, and if so, send them to the appropriate sub-system maintainer. If they're no longer useful, they should be removed from the linux-mips tree.

 drivers/char/au1000_gpio.c                 |  266 +++
 drivers/char/au1000_ts.c                   |  677 +++++++++
 drivers/char/au1000_usbraw.c               |  573 ++++++++
 drivers/char/au1000_usbtty.c               |  761 ++++++++++

[email protected]

 drivers/char/ibm_workpad_keymap.map        |  343 ++++

Michael Klar <[email protected]>

 drivers/char/sb1250_duart.c                |  911 ++++++++++++

BCM (I think they wanted to rewrite this? Mark?)

 drivers/net/big_sur_ge.c                   | 2005 ++++++++++++++++++++++++++++
 drivers/net/big_sur_ge.h                   |  713 +++++++++

Manish Lachwani <[email protected]>

 drivers/net/titan_ge.c                     | 2071 +++++++++++++++++++++++++++++
 drivers/net/titan_ge.h                     |  419 +++++
 drivers/net/titan_mdio.c                   |  217 +++
 drivers/net/titan_mdio.h                   |   56 

Manish Lachwani <[email protected]>
(I thought most of this stuff was in mainline; do we have two copies under different names?)

 drivers/net/gt64240eth.c                   | 1672 +++++++++++++++++++++++
 drivers/net/gt64240eth.h                   |   10 

[email protected]

 drivers/serial/ip3106_uart.c               |  912 ++++++++++++
 include/linux/serial_ip3106.h              |   12 

Per Hallsmark [email protected]

 drivers/video/au1200fb.c                   | 1940 +++++++++++++++++++++++++++
 drivers/video/au1200fb.h                   |  288 ++++

AMD (?)

 drivers/video/smivgxfb.c                   |  387 +++++

[email protected]

 sound/oss/au1550_i2s.c                     | 2029 ++++++++++++++++++++++++++++

[email protected]"

 drivers/usb/host/ohci-pnx8550.c            |  277 +++

[email protected]"

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#1 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

Decrease delta between Linus and linux-mips tree: small changes

Decrease the delta between the Linus and linux-mips trees. This patch addresses some small differences where the Linus tree is right and linux-mips should be changed accordingly.

---

 mtd/devices/Kconfig |    5 ---
 mtd/maps/lasat.c    |    4 +-
 net/declance.c      |    1
 scsi/dec_esp.c      |    2 -
 video/Kconfig       |    4 +-
 video/au1100fb.c    |   74 ++++++++++++++++++++++++++--------------------------
 video/au1100fb.h    |    6 ++--
 7 files changed, 45 insertions(+), 51 deletions(-)
drivers/mtd/devices/Kconfig +0 -5
index 6acfa3d..dd628cb 100644
@@ -47,11 +47,6 @@ config MTD_MS02NV
 	  accelerator.  Say Y here if you have a DECstation 5000/2x0 or a
 	  DECsystem 5900 equipped with such a module.
 
-	  If you want to compile this driver as a module ( = code which can be
-	  inserted in and removed from the running kernel whenever you want),
-	  say M here and read <file:Documentation/modules.txt>.  The module will
-	  be called ms02-nv.o.
-
 config MTD_DATAFLASH
 	tristate "Support for AT45xxx DataFlash"
 	depends on MTD && SPI_MASTER && EXPERIMENTAL
drivers/mtd/maps/lasat.c +2 -2
index 2a2efaa..c658d40 100644
@@ -7,7 +7,7 @@
  * modify it under the terms of the GNU General Public License version
  * 2 as published by the Free Software Foundation.
  *
- * $Id: lasat.c,v 1.7 2004/07/12 21:59:44 dwmw2 Exp $
+ * $Id: lasat.c,v 1.9 2004/11/04 13:24:15 gleixner Exp $
  *
  */
 
@@ -50,7 +50,7 @@ static int __init init_lasat(void)
 	ENABLE_VPP((&lasat_map));
 
 	lasat_map.phys = lasat_flash_partition_start(LASAT_MTD_BOOTLOADER);
-	lasat_map.virt = (unsigned long)ioremap_nocache(
+	lasat_map.virt = ioremap_nocache(
 		        lasat_map.phys, lasat_board_info.li_flash_size);
 	lasat_map.size = lasat_board_info.li_flash_size;
 
drivers/net/declance.c +0 -1
index d049129..6561575 100644
@@ -1301,7 +1301,6 @@ static void __exit dec_lance_cleanup(voi
 	while (root_lance_dev) {
 		struct net_device *dev = root_lance_dev;
 		struct lance_private *lp = netdev_priv(dev);
-
 		unregister_netdev(dev);
 #ifdef CONFIG_TC
 		if (lp->slot >= 0)
drivers/scsi/dec_esp.c +1 -1
index e755664..4b86685 100644
@@ -55,7 +55,7 @@
 
 static int  dma_bytes_sent(struct NCR_ESP *esp, int fifo_count);
 static void dma_drain(struct NCR_ESP *esp);
-static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd * sp);
+static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd *sp);
 static void dma_dump_state(struct NCR_ESP *esp);
 static void dma_init_read(struct NCR_ESP *esp, u32 vaddress, int length);
 static void dma_init_write(struct NCR_ESP *esp, u32 vaddress, int length);
drivers/video/Kconfig +2 -2
index 7d7724c..7e63f15 100644
@@ -1336,8 +1336,8 @@ config FB_PMAGB_B
  	select FB_CFB_IMAGEBLIT
 	help
 	  Support for the PMAGB-B TURBOchannel framebuffer card used mainly
-	  in the MIPS-based DECstation series. The card is currently only 
-	  supported in 1280x1024x8 mode.  
+	  in the MIPS-based DECstation series. The card is currently only
+	  supported in 1280x1024x8 mode.
 
 config FB_MAXINE
 	bool "Maxine (Personal DECstation) onboard framebuffer support"
drivers/video/au1100fb.c +37 -37

245 lines not on this page · raw message

drivers/video/au1100fb.h +3 -3
index 07c5298..2855534 100644
@@ -78,7 +78,7 @@ struct au1100fb_panel
 	u32 	bpp;		/* Maximum depth supported */
 };
 
-struct au1100fb_regs 
+struct au1100fb_regs
 {
 	u32  lcd_control;
 	u32  lcd_intstatus;
@@ -255,7 +255,7 @@ struct au1100fb_device {
 
 /* List of panels known to work with the AU1100 LCD controller.
  * To add a new panel, enter the same specifications as the
- * Generic_TFT one, and MAKE SURE that it doesn't conflicts 
+ * Generic_TFT one, and MAKE SURE that it doesn't conflicts
  * with the controller restrictions. Restrictions are:
  *
  * STN color panels: max_bpp <= 12
@@ -272,7 +272,7 @@ static struct au1100fb_panel known_lcd_p
 		.xres = 800,
 		.yres = 600,
 		.bpp = 16,
-		.control_base =	0x0004886A | 
+		.control_base =	0x0004886A |
 			LCD_CONTROL_DEFAULT_PO | LCD_CONTROL_DEFAULT_SBPPF |
 			LCD_CONTROL_BPP_16,
 		.clkcontrol_base = 0x00020000,
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#2 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

Quoted 6 lines · Martin Michlmayr
drivers/mtd/devices/Kconfig +0 -0
index 6acfa3d..dd628cb 100644
@@ -47,11 +47,6 @@ config MTD_MS02NV
 	  accelerator.  Say Y here if you have a DECstation 5000/2x0 or a

drivers/mtd/devices/Kconfig config MTD_MS02NV · line 52

Quoted 10 lines
drivers/mtd/devices/Kconfig +0 -5
 	  DECsystem 5900 equipped with such a module.
 
-	  If you want to compile this driver as a module ( = code which can be
-	  inserted in and removed from the running kernel whenever you want),
-	  say M here and read <file:Documentation/modules.txt>.  The module will
-	  be called ms02-nv.o.
-
 config MTD_DATAFLASH
 	tristate "Support for AT45xxx DataFlash"
 	depends on MTD && SPI_MASTER && EXPERIMENTAL

NAK.

drivers/net/declance.c static void __exit dec_lance_cleanup(voi · line 1306

Quoted 12 lines
drivers/net/declance.c +0 -1
index d049129..6561575 100644
@@ -1301,7 +1301,6 @@ static void __exit dec_lance_cleanup(voi
 	while (root_lance_dev) {
 		struct net_device *dev = root_lance_dev;
 		struct lance_private *lp = netdev_priv(dev);
-
 		unregister_netdev(dev);
 #ifdef CONFIG_TC
 		if (lp->slot >= 0)

NAK.

drivers/scsi/dec_esp.c line 61

Quoted 13 lines
drivers/scsi/dec_esp.c +1 -1
index e755664..4b86685 100644
@@ -55,7 +55,7 @@
 
 static int  dma_bytes_sent(struct NCR_ESP *esp, int fifo_count);
 static void dma_drain(struct NCR_ESP *esp);
-static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd * sp);
+static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd *sp);
 static void dma_dump_state(struct NCR_ESP *esp);
 static void dma_init_read(struct NCR_ESP *esp, u32 vaddress, int length);
 static void dma_init_write(struct NCR_ESP *esp, u32 vaddress, int length);

ACK.

Quoted 5 lines
drivers/video/Kconfig +0 -0
index 7d7724c..7e63f15 100644

drivers/video/Kconfig config FB_PMAGB_B · line 1343

Quoted 10 lines
drivers/video/Kconfig +2 -2
@@ -1336,8 +1336,8 @@ config FB_PMAGB_B
  	select FB_CFB_IMAGEBLIT
 	help
 	  Support for the PMAGB-B TURBOchannel framebuffer card used mainly
-	  in the MIPS-based DECstation series. The card is currently only 
-	  supported in 1280x1024x8 mode.  
+	  in the MIPS-based DECstation series. The card is currently only
+	  supported in 1280x1024x8 mode.
 
 config FB_MAXINE
 	bool "Maxine (Personal DECstation) onboard framebuffer support"

ACK.

Thanks for looking into it.

Maciej

#3 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

Quoted 6 lines · Maciej W. Rozycki
Quoted 6 lines
drivers/scsi/dec_esp.c +0 -0
index e755664..4b86685 100644
@@ -55,7 +55,7 @@
 
Quoted 9 lines

drivers/scsi/dec_esp.c line 61

Quoted 7 lines
drivers/scsi/dec_esp.c +1 -1
 static int  dma_bytes_sent(struct NCR_ESP *esp, int fifo_count);
 static void dma_drain(struct NCR_ESP *esp);
-static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd * sp);
+static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd *sp);
 static void dma_dump_state(struct NCR_ESP *esp);
 static void dma_init_read(struct NCR_ESP *esp, u32 vaddress, int length);
 static void dma_init_write(struct NCR_ESP *esp, u32 vaddress, int length);

ACK.

Actually the reversed patch is on in flight since a while but seems to have lost like anything SCSI-related I sent in past weeks ...

Ralf

author Acked-by Maciej W. Rozycki
#4 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

In reply to Maciej W. Rozycki
Quoted 3 lines · Maciej W. Rozycki

Review

Quoted 2 lines
(quoted diff) +1 -1
-static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd * sp);
+static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd *sp);

ACK.

[MIPS] Remove space before pointer - sync with Linus tree

---

drivers/scsi/dec_esp.c +1 -1
index e755664..4b86685 100644
@@ -55,7 +55,7 @@
 
 static int  dma_bytes_sent(struct NCR_ESP *esp, int fifo_count);
 static void dma_drain(struct NCR_ESP *esp);
-static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd * sp);
+static int  dma_can_transfer(struct NCR_ESP *esp, struct scsi_cmnd *sp);
 static void dma_dump_state(struct NCR_ESP *esp);
 static void dma_init_read(struct NCR_ESP *esp, u32 vaddress, int length);
 static void dma_init_write(struct NCR_ESP *esp, u32 vaddress, int length);
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
author Acked-by Maciej W. Rozycki
#5 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

In reply to Maciej W. Rozycki
Quoted 3 lines · Maciej W. Rozycki

Review

Quoted 2 lines
(quoted diff) +2 -0
+	  in the MIPS-based DECstation series. The card is currently only
+	  supported in 1280x1024x8 mode.

ACK.

[MIPS] Remove trailing whitespace from drivers/video/Kconfig - sync with Linus tree

---

drivers/video/Kconfig +2 -2
index 7d7724c..7e63f15 100644
@@ -1336,8 +1336,8 @@ config FB_PMAGB_B
  	select FB_CFB_IMAGEBLIT
 	help
 	  Support for the PMAGB-B TURBOchannel framebuffer card used mainly
-	  in the MIPS-based DECstation series. The card is currently only 
-	  supported in 1280x1024x8 mode.  
+	  in the MIPS-based DECstation series. The card is currently only
+	  supported in 1280x1024x8 mode.
 
 config FB_MAXINE
 	bool "Maxine (Personal DECstation) onboard framebuffer support"
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#6 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

In reply to Maciej W. Rozycki

[MIPS] Remove typecase from drivers/mtd/maps/lasat.c - sync with Linus tree

drivers/mtd/maps/lasat.c +3 -2
index 2a2efaa..31d2c35 100644
@@ -7,7 +7,8 @@
  * modify it under the terms of the GNU General Public License version
  * 2 as published by the Free Software Foundation.
  *
- * $Id: lasat.c,v 1.7 2004/07/12 21:59:44 dwmw2 Exp $
+ * $Id: lasat.c,v 1.9 2004/11/04 13:24:15 gleixner Exp $
+ *
  *
  */
 
@@ -50,7 +51,7 @@ static int __init init_lasat(void)
 	ENABLE_VPP((&lasat_map));
 
 	lasat_map.phys = lasat_flash_partition_start(LASAT_MTD_BOOTLOADER);
-	lasat_map.virt = (unsigned long)ioremap_nocache(
+	lasat_map.virt = ioremap_nocache(
 		        lasat_map.phys, lasat_board_info.li_flash_size);
 	lasat_map.size = lasat_board_info.li_flash_size;
 
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
author Acked-by Maciej W. Rozycki
#7 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

In reply to Maciej W. Rozycki
Quoted 6 lines · Maciej W. Rozycki

Review

Quoted 5 lines
(quoted diff) +0 -5
-	  If you want to compile this driver as a module ( = code which can be
-	  inserted in and removed from the running kernel whenever you want),
-	  say M here and read <file:Documentation/modules.txt>.  The module will
-	  be called ms02-nv.o.
-

NAK.

I disagree with you - it's obvious from the name of the config option (MTD_MS02NV) what the module will be called and people who compile their own kernels should know. More importantly, no other description in this Kconfig file mentions anything like this. However, since there seems to be no Kconfig "writing style", I guess it must as well be added. But I guess the MTD folks removed it for a reason.

Still NAK, i.e. should I send the following patch to the MTD list, or ok to remove?

[PATCH] Add information about modules to MTD_MS02NV - sync with linux-mips tree

This synces drivers/mtd/devices/Kconfig with the linux-mips tree by adding some description about modules to MTD_MS02NV.

---

drivers/mtd/devices/Kconfig +5 -0
@@ -47,6 +47,11 @@
 	  accelerator.  Say Y here if you have a DECstation 5000/2x0 or a
 	  DECsystem 5900 equipped with such a module.
 
+	  If you want to compile this driver as a module ( = code which can be
+	  inserted in and removed from the running kernel whenever you want),
+	  say M here and read <file:Documentation/modules.txt>.  The module will
+	  be called ms02-nv.o.
+
 config MTD_DATAFLASH
 	tristate "Support for AT45xxx DataFlash"
 	depends on MTD && SPI_MASTER && EXPERIMENTAL
Quoted 8 lines

Review

Quoted 6 lines
(quoted diff) +0 -1
 		struct net_device *dev = root_lance_dev;
 		struct lance_private *lp = netdev_priv(dev);
-
 		unregister_netdev(dev);
 #ifdef CONFIG_TC
 		if (lp->slot >= 0)

NAK.

Upated patch sent to netdev.

Thanks.

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#8 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

Quoted 6 lines · Martin Michlmayr

I disagree with you - it's obvious from the name of the config option (MTD_MS02NV) what the module will be called and people who compile their own kernels should know. More importantly, no other description in this Kconfig file mentions anything like this. However, since there seems to be no Kconfig "writing style", I guess it must as well be added. But I guess the MTD folks removed it for a reason.

I can't recall if I noticed it being removed and I have no idea who
removed it and why. I seem to have no access to the MTD CVS tree right now, so I can't check the history of the file.

Quoted 2 lines

Still NAK, i.e. should I send the following patch to the MTD list, or ok to remove?

Well, descriptions for some drivers mention how the module is going to be
called and others do not. I'd prefer too much information was available rather than too little. I don't think people should be forced to chase Makefiles trying to determine module names. I don't insist though -- I fear the driver has too few users to care. ;-)

Maciej

#9 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

Quoted 3 lines · Maciej W. Rozycki

I can't recall if I noticed it being removed and I have no idea who removed it and why. I seem to have no access to the MTD CVS tree right now, so I can't check the history of the file.

I found it:

revision 1.10
date: 2004/07/15 00:34:49; author: dwmw2; state: Exp; lines: +2 -7 MACH_DECSTATION not DECSTATION

Index: Kconfig
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/Kconfig,v retrieving revision 1.9
retrieving revision 1.10
diff -r1.9 -r1.10
2c2
< # $Id: Kconfig,v 1.9 2004/07/08 12:48:21 kalev Exp $
---

Quoted 1 line

# $Id: Kconfig,v 1.10 2004/07/15 00:34:49 dwmw2 Exp $

43c43
< depends on MTD && DECSTATION
---

Quoted 1 line
	depends on MTD && MACH_DECSTATION

50,54d49

< 	  If you want to compile this driver as a module ( = code which can be
< 	  inserted in and removed from the running kernel whenever you want),
< 	  say M here and read <file:Documentation/modules.txt>.  The module will
< 	  be called ms02-nv.o.

<

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#10 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

In reply to Martin Michlmayr

[IDE] au1xxx_ide.h: Remove redefinition of drive_list_entry

The mips tree (but not mainline) contains a definition of drive_list_entry in include/asm-mips/mach-au1x00/au1xxx_ide.h which leads to a compilation failure if CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA is set. Remove this bogus redefinition, thereby bringing the driver in sync with mainline and into a compilable form.

CC drivers/ide/mips/au1xxx-ide.o
In file included from drivers/ide/mips/au1xxx-ide.c:53:
include/asm/mach-au1x00/au1xxx_ide.h:87: error: redefinition of ‘struct drive_list_entry’

include/asm-mips/mach-au1x00/au1xxx_ide.h +0 -5
@@ -84,11 +84,6 @@
 } _auide_hwif;
 
 #ifdef CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA
-struct drive_list_entry {
-	const char *id_model;
-	const char *id_firmware;
-};
-
 /* HD white list */
 static const struct drive_list_entry dma_white_list [] = {
 /*
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#11 lore raw

Re: Diff between Linus' and linux-mips git: trivial changes

Quoted 4 lines

[IDE] au1xxx_ide.h: Remove redefinition of drive_list_entry

The mips tree (but not mainline) contains a definition of drive_list_entry in include/asm-mips/mach-au1x00/au1xxx_ide.h

Right - Bart took this a while back - not sure how it hasn't made it down from Ralfs periodic pulls from Linus.

Jordan

--
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>

#12 lore raw

Re: Diff between Linus' and linux-mips git: small changes

In reply to Martin Michlmayr

I noticed the following difference between the Linus and the linux-mips tree. Who is correct and can the other one be changed please?

drivers/char/qtronix.c +1 -2
@@ -535,8 +535,7 @@
 		i--;
 	}
 	if (count-i) {
-		struct inode *inode = file->f_dentry->d_inode;
-		inode->i_atime = current_fs_time(inode->i_sb);
+		file->f_dentry->d_inode->i_atime = get_seconds();
 		return count-i;
 	}
 	if (signal_pending(current))
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#13 lore raw

Re: Diff between Linus' and linux-mips git: VR4181

It seems the following VR4181 change never made it into mainline.

arch/mips/Kconfig +5 -5
@@ -503,10 +503,7 @@
 	  ether port USB, AC97, PCI, etc.
 
 config MACH_VR41XX
-	bool "Support for NEC VR4100 series based machines"
-	select SYS_HAS_CPU_VR41XX
-	select SYS_SUPPORTS_32BIT_KERNEL
-	select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
+	bool "Support for NEC VR41XX-based machines"
 
 config PMC_YOSEMITE
 	bool "Support for PMC-Sierra Yosemite eval board"
@@ -1019,6 +1016,9 @@
 config HAVE_STD_PC_SERIAL_PORT
 	bool
 
+config VR4181
+	bool
+
 config ARC_CONSOLE
 	bool "ARC console support"
 	depends on SGI_IP22 || SNI_RM200_PCI
@@ -1130,7 +1130,7 @@
 	select CPU_SUPPORTS_32BIT_KERNEL
 	select CPU_SUPPORTS_64BIT_KERNEL
 	help
-	  The options selects support for the NEC VR4100 series of processors.
+	  The options selects support for the NEC VR41xx series of processors.
 	  Only choose this option if you have one of these processors as a
 	  kernel built with this option will not run on any other type of
 	  processor or vice versa.
arch/mips/kernel/cpu-probe.c +6 -0
@@ -242,9 +242,15 @@
 		break;
 	case PRID_IMP_VR41XX:
 		switch (c->processor_id & 0xf0) {
+#ifndef CONFIG_VR4181
 		case PRID_REV_VR4111:
 			c->cputype = CPU_VR4111;
 			break;
+#else
+		case PRID_REV_VR4181:
+			c->cputype = CPU_VR4181;
+			break;
+#endif
 		case PRID_REV_VR4121:
 			c->cputype = CPU_VR4121;
 			break;
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#14 lore raw

Re: Diff between Linus' and linux-mips git: elf.h

Can we agree?

include/linux/elf.h +1 -1
@@ -67,7 +67,7 @@
 
 #define EM_MIPS		8	/* MIPS R3000 (officially, big-endian only) */
 
-#define EM_MIPS_RS4_BE 10	/* MIPS R4000 big-endian */
+#define EM_MIPS_RS3_LE 10	/* MIPS R3000 little-endian */
 
 #define EM_PARISC      15	/* HPPA */
 
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#15 lore raw

Re: Diff between Linus' and linux-mips git: elf.h

include/linux/elf.h line 70

Quoted 4 lines · Martin Michlmayr

Can we agree?

include/linux/elf.h +1 -1
-#define EM_MIPS_RS4_BE 10	/* MIPS R4000 big-endian */
+#define EM_MIPS_RS3_LE 10	/* MIPS R3000 little-endian */

Not really :-)

I've dug deep into history - but it seems nobody remembers the reason for this change anymore. I suspect actually both constant names might historically have been in use. For the purposes of Linux it's probably best to dump the whole number - it never had any relevance.

Ralf

#16 lore raw

Re: Diff between Linus' and linux-mips git: elf.h

Quoted 9 lines · Ralf Baechle

include/linux/elf.h line 70

Quoted 3 lines

Can we agree?

include/linux/elf.h +1 -1
-#define EM_MIPS_RS4_BE 10	/* MIPS R4000 big-endian */
+#define EM_MIPS_RS3_LE 10	/* MIPS R3000 little-endian */

Not really :-)

I've dug deep into history - but it seems nobody remembers the reason for this change anymore. I suspect actually both constant names might historically have been in use. For the purposes of Linux it's probably best to dump the whole number - it never had any relevance.

Maybe you can remove it, or at least bring it in sync.

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#17 lore raw

Re: Diff between Linus' and linux-mips git: elf.h

Arguably, whatever's used by binutils should be the tie-breaker. Googling around, I see that the EM_MIPS_RS3_LE value was added in the October 4, 1999 draft of the ELF spec, but inexplicably the alias with EM_MIPS_RS4_BE was left in place - perhaps they were supposed to be disambiguated by some 32-vs-64-bit flag somewhere. A random sampling of ELF documents on the web shows the vast majority calling out RS3_LE and not RS4_BE.

Regards,

Kevin K.

----- Original Message -----
From: "Martin Michlmayr" <[email protected]>
To: "Ralf Baechle" <[email protected]>
Cc: <[email protected]>
Sent: Friday, April 07, 2006 7:19 PM
Subject: Re: Diff between Linus' and linux-mips git: elf.h

Quoted 17 lines · Ralf Baechle
Quoted 9 lines

include/linux/elf.h line 70

Quoted 3 lines

Can we agree?

include/linux/elf.h +1 -1
-#define EM_MIPS_RS4_BE 10 /* MIPS R4000 big-endian */
+#define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */

Not really :-)

I've dug deep into history - but it seems nobody remembers the reason for this change anymore. I suspect actually both constant names might historically have been in use. For the purposes of Linux it's probably best to dump the whole number - it never had any relevance.

Maybe you can remove it, or at least bring it in sync.

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#18 lore raw

Re: Diff between Linus' and linux-mips git: elf.h

Quoted 7 lines · Kevin D. Kissell

Arguably, whatever's used by binutils should be the tie-breaker. Googling around, I see that the EM_MIPS_RS3_LE value was added in the October 4, 1999 draft of the ELF spec, but inexplicably the alias with EM_MIPS_RS4_BE was left in place - perhaps they were supposed to be disambiguated by some 32-vs-64-bit flag somewhere. A random sampling of ELF documents on the web shows the vast majority calling out RS3_LE and not RS4_BE.

No way to actually resolve this one; not even binutils oldtimer Ian Lance Taylor can remember the reasons for the change anymore.

Ralf

#19 lore raw

Re: Diff between Linus' and linux-mips git: elf.h

Quoted 10 lines · Ralf Baechle
Quoted 7 lines · Kevin D. Kissell

Arguably, whatever's used by binutils should be the tie-breaker. Googling around, I see that the EM_MIPS_RS3_LE value was added in the October 4, 1999 draft of the ELF spec, but inexplicably the alias with EM_MIPS_RS4_BE was left in place - perhaps they were supposed to be disambiguated by some 32-vs-64-bit flag somewhere. A random sampling of ELF documents on the web shows the vast majority calling out RS3_LE and not RS4_BE.

Quoted 2 lines

No way to actually resolve this one; not even binutils oldtimer Ian Lance Taylor can remember the reasons for the change anymore.

FWIW, the general rule is to use EM_MIPS == 8 for MIPS with both endiannesses and ignore EM_MIPS_*. So removing the other defines from the linux include file seems to be the sensible thing to do. (Binutils can't do the same due to backward compatibility concerns.)

Thiemo

#20 lore raw

Re: Diff between Linus' and linux-mips git: elf.h

Quoted 7 lines · Thiemo Seufer
Quoted 2 lines

No way to actually resolve this one; not even binutils oldtimer Ian Lance Taylor can remember the reasons for the change anymore.

FWIW, the general rule is to use EM_MIPS == 8 for MIPS with both endiannesses and ignore EM_MIPS_*. So removing the other defines from the linux include file seems to be the sensible thing to do. (Binutils can't do the same due to backward compatibility concerns.)

Or rather convert it into a comment so this is the last time these constants have been discussed ...

Ralf

#21 lore raw

Re: Diff between Linus' and linux-mips git: VR4181

In reply to Martin Michlmayr

Hi Martin,

VR4181 has already been removed from the mainline and linux-mips. I think linux-mips should synchronize with the mainline.

Yoichi

Quoted 55 lines · On Mon, 20 Feb 2006 00:11:26 +0000 Martin Michlmayr <[email protected]> wrote:

It seems the following VR4181 change never made it into mainline.

arch/mips/Kconfig +5 -5
@@ -503,10 +503,7 @@
 	  ether port USB, AC97, PCI, etc.
 
 config MACH_VR41XX
-	bool "Support for NEC VR4100 series based machines"
-	select SYS_HAS_CPU_VR41XX
-	select SYS_SUPPORTS_32BIT_KERNEL
-	select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
+	bool "Support for NEC VR41XX-based machines"
 
 config PMC_YOSEMITE
 	bool "Support for PMC-Sierra Yosemite eval board"
@@ -1019,6 +1016,9 @@
 config HAVE_STD_PC_SERIAL_PORT
 	bool
 
+config VR4181
+	bool
+
 config ARC_CONSOLE
 	bool "ARC console support"
 	depends on SGI_IP22 || SNI_RM200_PCI
@@ -1130,7 +1130,7 @@
 	select CPU_SUPPORTS_32BIT_KERNEL
 	select CPU_SUPPORTS_64BIT_KERNEL
 	help
-	  The options selects support for the NEC VR4100 series of processors.
+	  The options selects support for the NEC VR41xx series of processors.
 	  Only choose this option if you have one of these processors as a
 	  kernel built with this option will not run on any other type of
 	  processor or vice versa.
arch/mips/kernel/cpu-probe.c +6 -0
@@ -242,9 +242,15 @@
 		break;
 	case PRID_IMP_VR41XX:
 		switch (c->processor_id & 0xf0) {
+#ifndef CONFIG_VR4181
 		case PRID_REV_VR4111:
 			c->cputype = CPU_VR4111;
 			break;
+#else
+		case PRID_REV_VR4181:
+			c->cputype = CPU_VR4181;
+			break;
+#endif
 		case PRID_REV_VR4121:
 			c->cputype = CPU_VR4121;
 			break;
#22 lore raw

Re: Diff between Linus' and linux-mips git: VR4181

Quoted 2 lines · Yoichi Yuasa

VR4181 has already been removed from the mainline and linux-mips. I think linux-mips should synchronize with the mainline.

There are many references to VR4181 stil. If VR4181 support is gone, maybe we should do the following:

[MIPS] Remove last portions of incomplete VR4181 support

arch/mips/Kconfig +2 -4
index 4ca93ff..b89088e 100644
@@ -503,7 +503,8 @@ config DDB5477
 	  ether port USB, AC97, PCI, etc.
 
 config MACH_VR41XX
-	bool "Support for NEC VR41XX-based machines"
+	bool "Support for NEC VR41XX based machines"
+	select SYS_HAS_CPU_VR41XX
 
 config PMC_YOSEMITE
 	bool "Support for PMC-Sierra Yosemite eval board"
@@ -1016,9 +1017,6 @@ config MIPS_L1_CACHE_SHIFT
 config HAVE_STD_PC_SERIAL_PORT
 	bool
 
-config VR4181
-	bool
-
 config ARC_CONSOLE
 	bool "ARC console support"
 	depends on SGI_IP22 || SNI_RM200_PCI
arch/mips/kernel/cpu-probe.c +1 -10
index c6363ff..19b84f4 100644
@@ -242,23 +242,14 @@ static inline void cpu_probe_legacy(stru
 		break;
 	case PRID_IMP_VR41XX:
 		switch (c->processor_id & 0xf0) {
-#ifndef CONFIG_VR4181
 		case PRID_REV_VR4111:
 			c->cputype = CPU_VR4111;
 			break;
-#else
-		case PRID_REV_VR4181:
-			c->cputype = CPU_VR4181;
-			break;
-#endif
 		case PRID_REV_VR4121:
 			c->cputype = CPU_VR4121;
 			break;
 		case PRID_REV_VR4122:
-			if ((c->processor_id & 0xf) < 0x3)
-				c->cputype = CPU_VR4122;
-			else
-				c->cputype = CPU_VR4181A;
+			c->cputype = CPU_VR4122;
 			break;
 		case PRID_REV_VR4130:
 			if ((c->processor_id & 0xf) < 0x4)
arch/mips/kernel/proc.c +0 -2
index 86fe15b..b31cd90 100644
@@ -79,8 +79,6 @@ static const char *cpu_name[] = {
 	[CPU_VR4122]	= "NEC VR4122",
 	[CPU_VR4131]	= "NEC VR4131",
 	[CPU_VR4133]	= "NEC VR4133",
-	[CPU_VR4181]	= "NEC VR4181",
-	[CPU_VR4181A]	= "NEC VR4181A",
 	[CPU_SR71000]	= "Sandcraft SR71000",
 	[CPU_PR4450]	= "Philips PR4450",
 };
arch/mips/mm/c-r4k.c +0 -2
index 1b71d91..2828a59 100644
@@ -840,8 +840,6 @@ static void __init probe_pcache(void)
 	case CPU_VR4111:
 	case CPU_VR4121:
 	case CPU_VR4122:
-	case CPU_VR4181:
-	case CPU_VR4181A:
 		icache_size = 1 << (10 + ((config & CONF_IC) >> 9));
 		c->icache.linesz = 16 << ((config & CONF_IB) >> 5);
 		c->icache.ways = 1;
arch/mips/mm/tlbex.c +0 -4
index 0f94858..f96d6e0 100644
@@ -908,8 +908,6 @@ static __init void build_tlb_write_entry
 	case CPU_VR4111:
 	case CPU_VR4121:
 	case CPU_VR4122:
-	case CPU_VR4181:
-	case CPU_VR4181A:
 		i_nop(p);
 		i_nop(p);
 		tlbw(p);
@@ -1054,8 +1052,6 @@ static __init void build_adjust_context(
 	case CPU_VR4121:
 	case CPU_VR4122:
 	case CPU_VR4131:
-	case CPU_VR4181:
-	case CPU_VR4181A:
 	case CPU_VR4133:
 		shift += 2;
 		break;
include/asm-mips/cpu.h +0 -4
index 818b9a9..ab2476b 100644
@@ -116,10 +116,8 @@
 #define PRID_REV_TX3922 	0x0030
 #define PRID_REV_TX3927 	0x0040
 #define PRID_REV_VR4111		0x0050
-#define PRID_REV_VR4181		0x0050	/* Same as VR4111 */
 #define PRID_REV_VR4121		0x0060
 #define PRID_REV_VR4122		0x0070
-#define PRID_REV_VR4181A	0x0070	/* Same as VR4122 */
 #define PRID_REV_VR4130		0x0080
 
 /*
@@ -183,8 +181,6 @@
 #define CPU_VR4121		47
 #define CPU_VR4122		48
 #define CPU_VR4131		49
-#define CPU_VR4181		50
-#define CPU_VR4181A		51
 #define CPU_AU1100		52
 #define CPU_SR71000		53
 #define CPU_RM9000		54
include/asm-mips/vr41xx/vr41xx.h +0 -4
index 70828d5..3ab7ad6 100644
@@ -29,10 +29,6 @@
 #define PRID_VR4122_REV3_0	0x00000c71
 #define PRID_VR4122_REV3_1	0x00000c72
 
-/* VR4181A 0x00000c73-0x00000c7f */
-#define PRID_VR4181A_REV1_0	0x00000c73
-#define PRID_VR4181A_REV1_1	0x00000c74
-
 /* VR4131 0x00000c80-0x00000c83 */
 #define PRID_VR4131_REV1_2	0x00000c80
 #define PRID_VR4131_REV2_0	0x00000c81
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#23 lore raw

Re: Diff between Linus' and linux-mips git: VR4181

Hi Martin,

VR4181 and VR4181A are different.
Please don't remove VR4181A.

Yoichi

Quoted 156 lines · On Mon, 20 Feb 2006 01:21:16 +0000 Martin Michlmayr <[email protected]> wrote:
Quoted 2 lines · Yoichi Yuasa

VR4181 has already been removed from the mainline and linux-mips. I think linux-mips should synchronize with the mainline.

There are many references to VR4181 stil. If VR4181 support is gone, maybe we should do the following:

[MIPS] Remove last portions of incomplete VR4181 support

arch/mips/Kconfig +2 -4
index 4ca93ff..b89088e 100644
@@ -503,7 +503,8 @@ config DDB5477
 	  ether port USB, AC97, PCI, etc.
 
 config MACH_VR41XX
-	bool "Support for NEC VR41XX-based machines"
+	bool "Support for NEC VR41XX based machines"
+	select SYS_HAS_CPU_VR41XX
 
 config PMC_YOSEMITE
 	bool "Support for PMC-Sierra Yosemite eval board"
@@ -1016,9 +1017,6 @@ config MIPS_L1_CACHE_SHIFT
 config HAVE_STD_PC_SERIAL_PORT
 	bool
 
-config VR4181
-	bool
-
 config ARC_CONSOLE
 	bool "ARC console support"
 	depends on SGI_IP22 || SNI_RM200_PCI
arch/mips/kernel/cpu-probe.c +1 -10
index c6363ff..19b84f4 100644
@@ -242,23 +242,14 @@ static inline void cpu_probe_legacy(stru
 		break;
 	case PRID_IMP_VR41XX:
 		switch (c->processor_id & 0xf0) {
-#ifndef CONFIG_VR4181
 		case PRID_REV_VR4111:
 			c->cputype = CPU_VR4111;
 			break;
-#else
-		case PRID_REV_VR4181:
-			c->cputype = CPU_VR4181;
-			break;
-#endif
 		case PRID_REV_VR4121:
 			c->cputype = CPU_VR4121;
 			break;
 		case PRID_REV_VR4122:
-			if ((c->processor_id & 0xf) < 0x3)
-				c->cputype = CPU_VR4122;
-			else
-				c->cputype = CPU_VR4181A;
+			c->cputype = CPU_VR4122;
 			break;
 		case PRID_REV_VR4130:
 			if ((c->processor_id & 0xf) < 0x4)
arch/mips/kernel/proc.c +0 -2
index 86fe15b..b31cd90 100644
@@ -79,8 +79,6 @@ static const char *cpu_name[] = {
 	[CPU_VR4122]	= "NEC VR4122",
 	[CPU_VR4131]	= "NEC VR4131",
 	[CPU_VR4133]	= "NEC VR4133",
-	[CPU_VR4181]	= "NEC VR4181",
-	[CPU_VR4181A]	= "NEC VR4181A",
 	[CPU_SR71000]	= "Sandcraft SR71000",
 	[CPU_PR4450]	= "Philips PR4450",
 };
arch/mips/mm/c-r4k.c +0 -2
index 1b71d91..2828a59 100644
@@ -840,8 +840,6 @@ static void __init probe_pcache(void)
 	case CPU_VR4111:
 	case CPU_VR4121:
 	case CPU_VR4122:
-	case CPU_VR4181:
-	case CPU_VR4181A:
 		icache_size = 1 << (10 + ((config & CONF_IC) >> 9));
 		c->icache.linesz = 16 << ((config & CONF_IB) >> 5);
 		c->icache.ways = 1;
arch/mips/mm/tlbex.c +0 -4
index 0f94858..f96d6e0 100644
@@ -908,8 +908,6 @@ static __init void build_tlb_write_entry
 	case CPU_VR4111:
 	case CPU_VR4121:
 	case CPU_VR4122:
-	case CPU_VR4181:
-	case CPU_VR4181A:
 		i_nop(p);
 		i_nop(p);
 		tlbw(p);
@@ -1054,8 +1052,6 @@ static __init void build_adjust_context(
 	case CPU_VR4121:
 	case CPU_VR4122:
 	case CPU_VR4131:
-	case CPU_VR4181:
-	case CPU_VR4181A:
 	case CPU_VR4133:
 		shift += 2;
 		break;
include/asm-mips/cpu.h +0 -4
index 818b9a9..ab2476b 100644
@@ -116,10 +116,8 @@
 #define PRID_REV_TX3922 	0x0030
 #define PRID_REV_TX3927 	0x0040
 #define PRID_REV_VR4111		0x0050
-#define PRID_REV_VR4181		0x0050	/* Same as VR4111 */
 #define PRID_REV_VR4121		0x0060
 #define PRID_REV_VR4122		0x0070
-#define PRID_REV_VR4181A	0x0070	/* Same as VR4122 */
 #define PRID_REV_VR4130		0x0080
 
 /*
@@ -183,8 +181,6 @@
 #define CPU_VR4121		47
 #define CPU_VR4122		48
 #define CPU_VR4131		49
-#define CPU_VR4181		50
-#define CPU_VR4181A		51
 #define CPU_AU1100		52
 #define CPU_SR71000		53
 #define CPU_RM9000		54
include/asm-mips/vr41xx/vr41xx.h +0 -4
index 70828d5..3ab7ad6 100644
@@ -29,10 +29,6 @@
 #define PRID_VR4122_REV3_0	0x00000c71
 #define PRID_VR4122_REV3_1	0x00000c72
 
-/* VR4181A 0x00000c73-0x00000c7f */
-#define PRID_VR4181A_REV1_0	0x00000c73
-#define PRID_VR4181A_REV1_1	0x00000c74
-
 /* VR4131 0x00000c80-0x00000c83 */
 #define PRID_VR4131_REV1_2	0x00000c80
 #define PRID_VR4131_REV2_0	0x00000c81
Signature · 3 lines
-- 
Martin Michlmayr
http://www.cyrius.com/
Signature · 8 lines
トライピークス株式会社
湯浅陽一 <[email protected]>

〒141-0031
東京都品川区西五反田1-32-4サンユー西五反田ビル3F
TEL: 03-5719-8655
FAX: 03-5719-8656
URL: http://www.tripeaks.co.jp
#24 lore raw

Re: Diff between Linus' and linux-mips git: VR4181

Quoted 2 lines · Yoichi Yuasa

VR4181 and VR4181A are different.
Please don't remove VR4181A.

OK, this one doesn't touch VR4181A.

[MIPS] Remove last portions of incomplete VR4181 support

arch/mips/Kconfig +2 -4
index 4ca93ff..b89088e 100644
@@ -503,7 +503,8 @@ config DDB5477
 	  ether port USB, AC97, PCI, etc.
 
 config MACH_VR41XX
-	bool "Support for NEC VR41XX-based machines"
+	bool "Support for NEC VR41XX based machines"
+	select SYS_HAS_CPU_VR41XX
 
 config PMC_YOSEMITE
 	bool "Support for PMC-Sierra Yosemite eval board"
@@ -1016,9 +1017,6 @@ config MIPS_L1_CACHE_SHIFT
 config HAVE_STD_PC_SERIAL_PORT
 	bool
 
-config VR4181
-	bool
-
 config ARC_CONSOLE
 	bool "ARC console support"
 	depends on SGI_IP22 || SNI_RM200_PCI
arch/mips/kernel/cpu-probe.c +0 -6
index c6363ff..292f8b2 100644
@@ -242,15 +242,9 @@ static inline void cpu_probe_legacy(stru
 		break;
 	case PRID_IMP_VR41XX:
 		switch (c->processor_id & 0xf0) {
-#ifndef CONFIG_VR4181
 		case PRID_REV_VR4111:
 			c->cputype = CPU_VR4111;
 			break;
-#else
-		case PRID_REV_VR4181:
-			c->cputype = CPU_VR4181;
-			break;
-#endif
 		case PRID_REV_VR4121:
 			c->cputype = CPU_VR4121;
 			break;
arch/mips/kernel/proc.c +0 -1
index 86fe15b..0fbf450 100644
@@ -79,7 +79,6 @@ static const char *cpu_name[] = {
 	[CPU_VR4122]	= "NEC VR4122",
 	[CPU_VR4131]	= "NEC VR4131",
 	[CPU_VR4133]	= "NEC VR4133",
-	[CPU_VR4181]	= "NEC VR4181",
 	[CPU_VR4181A]	= "NEC VR4181A",
 	[CPU_SR71000]	= "Sandcraft SR71000",
 	[CPU_PR4450]	= "Philips PR4450",
arch/mips/mm/c-r4k.c +0 -1
index 1b71d91..28a3b33 100644
@@ -840,7 +840,6 @@ static void __init probe_pcache(void)
 	case CPU_VR4111:
 	case CPU_VR4121:
 	case CPU_VR4122:
-	case CPU_VR4181:
 	case CPU_VR4181A:
 		icache_size = 1 << (10 + ((config & CONF_IC) >> 9));
 		c->icache.linesz = 16 << ((config & CONF_IB) >> 5);
arch/mips/mm/tlbex.c +1 -3
index 0f94858..5a7e0a6 100644
@@ -908,7 +908,6 @@ static __init void build_tlb_write_entry
 	case CPU_VR4111:
 	case CPU_VR4121:
 	case CPU_VR4122:
-	case CPU_VR4181:
 	case CPU_VR4181A:
 		i_nop(p);
 		i_nop(p);
@@ -1054,9 +1053,8 @@ static __init void build_adjust_context(
 	case CPU_VR4121:
 	case CPU_VR4122:
 	case CPU_VR4131:
-	case CPU_VR4181:
-	case CPU_VR4181A:
 	case CPU_VR4133:
+	case CPU_VR4181A:
 		shift += 2;
 		break;
 
include/asm-mips/cpu.h +0 -2
index 818b9a9..ef72bcd 100644
@@ -116,7 +116,6 @@
 #define PRID_REV_TX3922 	0x0030
 #define PRID_REV_TX3927 	0x0040
 #define PRID_REV_VR4111		0x0050
-#define PRID_REV_VR4181		0x0050	/* Same as VR4111 */
 #define PRID_REV_VR4121		0x0060
 #define PRID_REV_VR4122		0x0070
 #define PRID_REV_VR4181A	0x0070	/* Same as VR4122 */
@@ -183,7 +182,6 @@
 #define CPU_VR4121		47
 #define CPU_VR4122		48
 #define CPU_VR4131		49
-#define CPU_VR4181		50
 #define CPU_VR4181A		51
 #define CPU_AU1100		52
 #define CPU_SR71000		53
include/asm-mips/vr41xx/vr41xx.h +0 -0
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
Acked-by
#25 lore raw

Re: Diff between Linus' and linux-mips git: VR4181

Quoted 127 lines · On Mon, 20 Feb 2006 01:41:21 +0000 Martin Michlmayr <[email protected]> wrote:
Quoted 2 lines · Yoichi Yuasa

VR4181 and VR4181A are different.
Please don't remove VR4181A.

OK, this one doesn't touch VR4181A.

[MIPS] Remove last portions of incomplete VR4181 support

arch/mips/Kconfig +2 -4
index 4ca93ff..b89088e 100644
@@ -503,7 +503,8 @@ config DDB5477
 	  ether port USB, AC97, PCI, etc.
 
 config MACH_VR41XX
-	bool "Support for NEC VR41XX-based machines"
+	bool "Support for NEC VR41XX based machines"
+	select SYS_HAS_CPU_VR41XX
 
 config PMC_YOSEMITE
 	bool "Support for PMC-Sierra Yosemite eval board"
@@ -1016,9 +1017,6 @@ config MIPS_L1_CACHE_SHIFT
 config HAVE_STD_PC_SERIAL_PORT
 	bool
 
-config VR4181
-	bool
-
 config ARC_CONSOLE
 	bool "ARC console support"
 	depends on SGI_IP22 || SNI_RM200_PCI
arch/mips/kernel/cpu-probe.c +0 -6
index c6363ff..292f8b2 100644
@@ -242,15 +242,9 @@ static inline void cpu_probe_legacy(stru
 		break;
 	case PRID_IMP_VR41XX:
 		switch (c->processor_id & 0xf0) {
-#ifndef CONFIG_VR4181
 		case PRID_REV_VR4111:
 			c->cputype = CPU_VR4111;
 			break;
-#else
-		case PRID_REV_VR4181:
-			c->cputype = CPU_VR4181;
-			break;
-#endif
 		case PRID_REV_VR4121:
 			c->cputype = CPU_VR4121;
 			break;
arch/mips/kernel/proc.c +0 -1
index 86fe15b..0fbf450 100644
@@ -79,7 +79,6 @@ static const char *cpu_name[] = {
 	[CPU_VR4122]	= "NEC VR4122",
 	[CPU_VR4131]	= "NEC VR4131",
 	[CPU_VR4133]	= "NEC VR4133",
-	[CPU_VR4181]	= "NEC VR4181",
 	[CPU_VR4181A]	= "NEC VR4181A",
 	[CPU_SR71000]	= "Sandcraft SR71000",
 	[CPU_PR4450]	= "Philips PR4450",
arch/mips/mm/c-r4k.c +0 -1
index 1b71d91..28a3b33 100644
@@ -840,7 +840,6 @@ static void __init probe_pcache(void)
 	case CPU_VR4111:
 	case CPU_VR4121:
 	case CPU_VR4122:
-	case CPU_VR4181:
 	case CPU_VR4181A:
 		icache_size = 1 << (10 + ((config & CONF_IC) >> 9));
 		c->icache.linesz = 16 << ((config & CONF_IB) >> 5);
arch/mips/mm/tlbex.c +1 -3
index 0f94858..5a7e0a6 100644
@@ -908,7 +908,6 @@ static __init void build_tlb_write_entry
 	case CPU_VR4111:
 	case CPU_VR4121:
 	case CPU_VR4122:
-	case CPU_VR4181:
 	case CPU_VR4181A:
 		i_nop(p);
 		i_nop(p);
@@ -1054,9 +1053,8 @@ static __init void build_adjust_context(
 	case CPU_VR4121:
 	case CPU_VR4122:
 	case CPU_VR4131:
-	case CPU_VR4181:
-	case CPU_VR4181A:
 	case CPU_VR4133:
+	case CPU_VR4181A:
 		shift += 2;
 		break;
 
include/asm-mips/cpu.h +0 -2
index 818b9a9..ef72bcd 100644
@@ -116,7 +116,6 @@
 #define PRID_REV_TX3922 	0x0030
 #define PRID_REV_TX3927 	0x0040
 #define PRID_REV_VR4111		0x0050
-#define PRID_REV_VR4181		0x0050	/* Same as VR4111 */
 #define PRID_REV_VR4121		0x0060
 #define PRID_REV_VR4122		0x0070
 #define PRID_REV_VR4181A	0x0070	/* Same as VR4122 */
@@ -183,7 +182,6 @@
 #define CPU_VR4121		47
 #define CPU_VR4122		48
 #define CPU_VR4131		49
-#define CPU_VR4181		50
 #define CPU_VR4181A		51
 #define CPU_AU1100		52
 #define CPU_SR71000		53
include/asm-mips/vr41xx/vr41xx.h +0 -0
Signature · 3 lines
-- 
Martin Michlmayr
http://www.cyrius.com/
#26 lore raw

Re: Diff between Linus' and linux-mips git: declance

In reply to Martin Michlmayr

Remove delta between Linus' and linux-mips git trees in declance

There are two changes between the Linus' and linux-mips git trees regarding the declaner driver. The first change is certainly correct (as it is consistent with the rest of the file) and should be applied to mainline; the other change seems correct too.

drivers/net/declance.c +3 -3
@@ -704,8 +704,8 @@
 	return IRQ_HANDLED;
 }
 
-static irqreturn_t
-lance_interrupt(const int irq, void *dev_id, struct pt_regs *regs)
+static irqreturn_t lance_interrupt(const int irq, void *dev_id,
+				   struct pt_regs *regs)
 {
 	struct net_device *dev = (struct net_device *) dev_id;
 	struct lance_private *lp = netdev_priv(dev);
@@ -1255,7 +1255,7 @@
 	return 0;
 
 err_out_free_dev:
-	kfree(dev);
+	free_netdev(dev);
 
 err_out:
 	return ret;
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#27 lore raw

Re: Diff between Linus' and linux-mips git: declance

Updated patch, please apply.

[PATCH] Remove delta between Linus' and linux-mips git trees in declance

There are three changes between the Linus' and linux-mips git trees regarding the declaner driver. The first change is certainly correct (as it is consistent with the rest of the file) and should be applied to mainline; the other change seems correct too. And the third is cosmetic.

---

drivers/net/declance.c +4 -3
@@ -704,8 +704,8 @@
 	return IRQ_HANDLED;
 }
 
-static irqreturn_t
-lance_interrupt(const int irq, void *dev_id, struct pt_regs *regs)
+static irqreturn_t lance_interrupt(const int irq, void *dev_id,
+				   struct pt_regs *regs)
 {
 	struct net_device *dev = (struct net_device *) dev_id;
 	struct lance_private *lp = netdev_priv(dev);
@@ -1255,7 +1255,7 @@
 	return 0;
 
 err_out_free_dev:
-	kfree(dev);
+	free_netdev(dev);
 
 err_out:
 	return ret;
@@ -1301,6 +1301,7 @@
 	while (root_lance_dev) {
 		struct net_device *dev = root_lance_dev;
 		struct lance_private *lp = netdev_priv(dev);
+
 		unregister_netdev(dev);
 #ifdef CONFIG_TC
 		if (lp->slot >= 0)
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#28 lore raw

Re: Diff between Linus' and linux-mips git: declance

Quoted 5 lines · Martin Michlmayr

Updated patch, please apply.

[PATCH] Remove delta between Linus' and linux-mips git trees in declance

Quoted 7 lines

There are three changes between the Linus' and linux-mips git trees regarding the declaner driver. The first change is certainly correct (as it is consistent with the rest of the file) and should be applied to mainline; the other change seems correct too. And the third is cosmetic.

Maciej

#29 lore raw

Re: Diff between Linus' and linux-mips git: tulip

In reply to Martin Michlmayr

Anyone know what this change is good for?

drivers/net/tulip/tulip_core.c +2 -2
@@ -1495,8 +1495,8 @@
                if ((pdev->bus->number == 0) && (PCI_SLOT(pdev->devfn) == 4)) {
                        /* DDB5477 MAC address in first EEPROM locations. */
                        sa_offset = 0;
-                       /* No media table either */
-                       tp->flags &= ~HAS_MEDIA_TABLE;
+		       /* Ensure our media table fixup get's applied */
+		       memcpy(ee_data + 16, ee_data, 8);
                }
 #endif
 #ifdef CONFIG_MIPS_COBALT
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#30 lore raw

Re: Diff between Linus' and linux-mips git: tulip

Quoted 7 lines · Martin Michlmayr

Anyone know what this change is good for?

drivers/net/tulip/tulip_core.c line 1502

Quoted 10 lines
drivers/net/tulip/tulip_core.c +2 -2
@@ -1495,8 +1495,8 @@
                if ((pdev->bus->number == 0) && (PCI_SLOT(pdev->devfn) == 4)) {
                        /* DDB5477 MAC address in first EEPROM locations. */
                        sa_offset = 0;
-                       /* No media table either */
-                       tp->flags &= ~HAS_MEDIA_TABLE;
+		       /* Ensure our media table fixup get's applied */
+		       memcpy(ee_data + 16, ee_data, 8);
                }
 #endif
 #ifdef CONFIG_MIPS_COBALT

Didn't the memcpy() used to be inside the CONFIG_MIPS_COBALT section ?

Looking at tulip/eeprom.c I can't work out why it was ever there though
...

P.

#31 lore raw

Re: Diff between Linus' and linux-mips git: tulip

Quoted 8 lines · Peter Horton

drivers/net/tulip/tulip_core.c line 1502

Quoted 6 lines
drivers/net/tulip/tulip_core.c +2 -2
-                       /* No media table either */
-                       tp->flags &= ~HAS_MEDIA_TABLE;
+		       /* Ensure our media table fixup get's applied */
+		       memcpy(ee_data + 16, ee_data, 8);
 #endif
 #ifdef CONFIG_MIPS_COBALT

Didn't the memcpy() used to be inside the CONFIG_MIPS_COBALT section ? Looking at tulip/eeprom.c I can't work out why it was ever there though

Yeah, and it's still there in the Cobalt section. But now (in the mips tree) it's _also_ there for CONFIG_DDB5477. So I have several questions:
- can we just get rid of the code between CONFIG_MIPS_COBALT?
- should the CONFIG_DDB5477 change be reverted (probably), and do we need these special cases for CONFIG_DDB* anyway or can they be solved in a better way (e.g. by putting something in eeprom.c).

It seems mips is the only arch that mucks around with "#ifdef CONFIG_" in this file...

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#32 lore raw

Re: Diff between Linus' and linux-mips git: tulip

Quoted 1 line · Martin Michlmayr

- should the CONFIG_DDB5477 change be reverted (probably)

OK, I managed to track down when this change was introduced, namely in the merge with Linux 2.6.13-rc1. See
http://www.linux-mips.org/git?p=linux.git;a=blobdiff;h=e6781ea5ba055ec445f35c734a59db24e748be3a;hp=cfc346e72d6234ae37ee11b794791ee99fcec24e;hb=aa5fcc48f9ae2887b6c570411e73ef965f72a746;f=drivers/net/tulip/tulip_core.c

Ralf, please apply this to the mips-tree only (not for-linus).

[MIPS] Revert bogus tulip_core/DDB5477 change introduced in 2.6.13-rc1 merge

Merging with 2.6.13-rc1 introduced a change in the DDB5477 section of tulip_core.c that was really meant for Cobalt (and was there already). Revert this change, thereby syncing with Linus' tree.

drivers/net/tulip/tulip_core.c +2 -2
@@ -1495,8 +1495,8 @@
                if ((pdev->bus->number == 0) && (PCI_SLOT(pdev->devfn) == 4)) {
                        /* DDB5477 MAC address in first EEPROM locations. */
                        sa_offset = 0;
-		       /* Ensure our media table fixup get's applied */
-		       memcpy(ee_data + 16, ee_data, 8);
+                       /* No media table either */
+                       tp->flags &= ~HAS_MEDIA_TABLE;
                }
 #endif
 #ifdef CONFIG_MIPS_COBALT
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
Applied
#33 lore raw

Re: Diff between Linus' and linux-mips git: tulip

Quoted 5 lines · Martin Michlmayr

OK, I managed to track down when this change was introduced, namely in the merge with Linux 2.6.13-rc1. See
http://www.linux-mips.org/git?p=linux.git;a=blobdiff;h=e6781ea5ba055ec445f35c734a59db24e748be3a;hp=cfc346e72d6234ae37ee11b794791ee99fcec24e;hb=aa5fcc48f9ae2887b6c570411e73ef965f72a746;f=drivers/net/tulip/tulip_core.c

Ralf, please apply this to the mips-tree only (not for-linus).

Applied,

Ralf

#34 lore raw

Re: Diff between Linus' and linux-mips git: tulip

In reply to Martin Michlmayr
Quoted 18 lines · Martin Michlmayr
Quoted 8 lines · Peter Horton

drivers/net/tulip/tulip_core.c line 1502

Quoted 6 lines
drivers/net/tulip/tulip_core.c +2 -2
-                       /* No media table either */
-                       tp->flags &= ~HAS_MEDIA_TABLE;
+		       /* Ensure our media table fixup get's applied */
+		       memcpy(ee_data + 16, ee_data, 8);
 #endif
 #ifdef CONFIG_MIPS_COBALT

Didn't the memcpy() used to be inside the CONFIG_MIPS_COBALT section ? Looking at tulip/eeprom.c I can't work out why it was ever there though

Yeah, and it's still there in the Cobalt section. But now (in the mips tree) it's _also_ there for CONFIG_DDB5477. So I have several questions:
- can we just get rid of the code between CONFIG_MIPS_COBALT?
- should the CONFIG_DDB5477 change be reverted (probably), and do we need these special cases for CONFIG_DDB* anyway or can they be solved in a better way (e.g. by putting something in eeprom.c).

Quoted 2 lines

It seems mips is the only arch that mucks around with "#ifdef CONFIG_" in this file...

Looks like both the "sa_offset = 0" and "memcpy(...)" are required to ensure our fixup from tulip/eeprom.c gets applied. I don't know why it only seems to be us that needs it :-(

P.

#35 lore raw

Re: Diff between Linus' and linux-mips git: small changes

In reply to Martin Michlmayr
Quoted 3 lines · Martin Michlmayr

I noticed the following difference between the Linus and the linux-mips tree. Who is correct and can the other one be changed please?

ping.

Quoted 16 lines
drivers/char/qtronix.c +1 -2
@@ -535,8 +535,7 @@
 		i--;
 	}
 	if (count-i) {
-		struct inode *inode = file->f_dentry->d_inode;
-		inode->i_atime = current_fs_time(inode->i_sb);
+		file->f_dentry->d_inode->i_atime = get_seconds();
 		return count-i;
 	}
 	if (signal_pending(current))
Signature · 3 lines
-- 
Martin Michlmayr
http://www.cyrius.com/
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#36 lore raw

Re: Diff between Linus' and linux-mips git: small changes

Quoted 8 lines · Martin Michlmayr
Quoted 3 lines · Martin Michlmayr

I noticed the following difference between the Linus and the linux-mips tree. Who is correct and can the other one be changed please?

ping.

Quoted 13 lines

drivers/char/qtronix.c 2006-02-19 20:15:07.000000000 +0000 line 541

Quoted 13 lines
drivers/char/qtronix.c 2006-02-19 20:15:07.000000000 +0000 renamed from drivers/char/qtronix.c 2006-02-19 20:08:44.000000000 +0000 +1 -2
@@ -535,8 +535,7 @@
              i--;
      }
      if (count-i) {
-             struct inode *inode = file->f_dentry->d_inode;
-             inode->i_atime = current_fs_time(inode->i_sb);
+             file->f_dentry->d_inode->i_atime = get_seconds();
              return count-i;
      }
      if (signal_pending(current))

Oh, that's an input driver, that's why I am on CC list ;) How about registering it with the input system and ripping this psaux code off competely?

--
Dmitry

#37 lore raw
In reply to Martin Michlmayr
Quoted 9 lines · Martin Michlmayr
 drivers/char/ibm_workpad_keymap.map        |  343 ++++

Michael Klar <[email protected]>

 drivers/net/big_sur_ge.c                   | 2005 ++++++++++++++++++++++++++++
 drivers/net/big_sur_ge.h                   |  713 +++++++++
 drivers/net/titan_ge.c                     | 2071 +++++++++++++++++++++++++++++
 drivers/net/titan_ge.h                     |  419 +++++
 drivers/net/titan_mdio.c                   |  217 +++
 drivers/net/titan_mdio.h                   |   56 
Quoted 4 lines

Manish Lachwani <[email protected]>

 drivers/video/smivgxfb.c                   |  387 +++++

[email protected]

Mail bounces of these three.

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#38 lore raw
Quoted 2 lines · Martin Michlmayr
Quoted 2 lines
 drivers/char/ibm_workpad_keymap.map        |  343 ++++

Michael Klar <[email protected]>

Yoichi, as the maintainre of the IBM z50 support, can you comment?

Quoted 2 lines
Quoted 2 lines
 drivers/video/smivgxfb.c                   |  387 +++++

[email protected]

Dan, are you willing to take responsibility for this driver (and forward it upstream)?

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#39 lore raw
Quoted 5 lines · On Mon, 27 Feb 2006 19:10:33 +0000 Martin Michlmayr <[email protected]> wrote:
Quoted 2 lines · Martin Michlmayr
Quoted 2 lines
 drivers/char/ibm_workpad_keymap.map        |  343 ++++

Michael Klar <[email protected]>

Yoichi, as the maintainre of the IBM z50 support, can you comment?

v2.6 don't include IBM z50(vr41xx) keyboard driver. I think it can be removed.

Yoichi

author Acked-by Yoichi Yuasa
#40 lore raw
Quoted 3 lines · Yoichi Yuasa
Quoted 1 line

Yoichi, as the maintainre of the IBM z50 support, can you comment?

v2.6 don't include IBM z50(vr41xx) keyboard driver. I think it can be removed.

Ralf, please apply.

[CHAR] Remove obsolete IBM z50(vr41xx) keyboard map

Remove the keymap for the IBM z50 workpad since 2.6 doesn't include a keyboard driver for this platform. This also brings the linux-mips tree in sync with mainline.

drivers/char/Makefile +1 -2
@@ -121,8 +115,7 @@
 
 ifdef GENERATE_KEYMAP
 
-$(obj)/defkeymap.c $(obj)/qtronixmap.c $(obj)/ibm_workpad_keymap.c: \
-		$(obj)/%.c: $(src)/%.map
+$(obj)/defkeymap.c $(obj)/qtronixmap.c: $(obj)/%.c: $(src)/%.map
 	loadkeys --mktable $< > [email protected]
 	sed -e 's/^static *//' [email protected] > $@
 	rm [email protected]
drivers/char/ibm_workpad_keymap.map +0 -343

343 lines not on this page · raw message

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#41 lore raw
In reply to Martin Michlmayr
Quoted 3 lines · Martin Michlmayr

We should find out whether these drivers are still needed, and if so, send them to the appropriate sub-system maintainer. If they're no longer useful, they should be removed from the linux-mips tree.

Meh - I think there's something to be said for platform specific trees. Why bother Linus with code that 99% of the users will never compile? That said...

Quoted 2 lines
 drivers/video/au1200fb.c                   | 1940 +++++++++++++++++++++++++++
 drivers/video/au1200fb.h                   |  288 ++++

Not sure why this hasn't been sent up, but it should be good to go, right Ralf?

Quoted 1 line
 sound/oss/au1550_i2s.c                     | 2029 ++++++++++++++++++++++++++++

I thought we agreed that this would stay in linux-mips until such time that somebody (probably me) got annoyed enough to write an ALSA driver.

Jordan

Signature · 4 lines
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>
#42 lore raw
Quoted 2 lines · Jordan Crouse

Meh - I think there's something to be said for platform specific trees. Why bother Linus with code that 99% of the users will never compile?

If there are any major changes to the video layer, people will fix your driver if it's in mainline; but not if it's in some obscure tree. Also, peer review, etc.

Quoted 4 lines
Quoted 1 line
 sound/oss/au1550_i2s.c                     | 2029  ++++++++++++++++++++++++++++

I thought we agreed that this would stay in linux-mips until such time that somebody (probably me) got annoyed enough to write an ALSA driver.

lkml people seem to be trying hard recently to finally get rid of OSS, so that would be nice.

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#43 lore raw
In reply to Jordan Crouse
Quoted 6 lines · Jordan Crouse
Quoted 3 lines · Martin Michlmayr

We should find out whether these drivers are still needed, and if so, send them to the appropriate sub-system maintainer. If they're no longer useful, they should be removed from the linux-mips tree.

Meh - I think there's something to be said for platform specific trees.

There's shouldn't be any platform-specific trees at all. just staging trees for subsystem maintainers. For linux-mips that would be just arch/mips/ and include/asm-mips/. Having the common tree not compile is a complete pain in the ass for distributors, and that includes embedded SDK vendors.

#44 lore raw
In reply to Jordan Crouse
Quoted 5 lines · Jordan Crouse
Quoted 2 lines
 drivers/video/au1200fb.c                   | 1940 +++++++++++++++++++++++++++
 drivers/video/au1200fb.h                   |  288 ++++

Not sure why this hasn't been sent up, but it should be good to go, right Ralf?

Thank you for volunteering to clean this driver.

It's amazing it's working at all ...

Ralf