All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kill dead code from ml_iograph.c
@ 2003-09-25 19:57 Christoph Hellwig
  2003-10-05 16:35 ` Jes Sorensen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christoph Hellwig @ 2003-09-25 19:57 UTC (permalink / raw)
  To: linux-ia64

More IRIX creepism


--- 1.3/arch/ia64/sn/io/sn2/ml_iograph.c	Mon May 19 14:42:20 2003
+++ edited/arch/ia64/sn/io/sn2/ml_iograph.c	Fri Aug  8 12:01:40 2003
@@ -268,17 +268,6 @@
 	}
 }
 
-/*
- * Let boot processor know that we're done initializing our node's IO
- * and then exit.
- */
-/* ARGSUSED */
-static void
-io_init_done(cnodeid_t cnodeid,cpu_cookie_t c)
-{
-	/* Let boot processor know that we're done. */
-}
-
 /* 
  * Probe to see if this hub's xtalk link is active.  If so,
  * return the Crosstalk Identification of the widget that we talk to.  
@@ -687,11 +676,6 @@
 				DBG("Interfering with device probing!!!\n");
 		}
 #endif
-		/* io_init_done takes cpu cookie as 2nd argument 
-		 * to do a restorenoderun for the setnoderun done 
-		 * at the start of this thread 
-		 */
-		
 		DBG("**** io_init_node: Node's 0x%p hub widget has XWIDGET_PART_NUM_NONE ****\n", hubv);
 		return;
 		/* NOTREACHED */
@@ -795,15 +779,6 @@
 
 		(void)xwidget_register(&hwid, widgetv, npdap->basew_id, hubv, hubinfo->h_widgetid);
 
-		if (!is_xswitch) {
-			/* io_init_done takes cpu cookie as 2nd argument 
-			 * to do a restorenoderun for the setnoderun done 
-			 * at the start of this thread 
-			 */
-			io_init_done(cnodeid,c);
-			/* NOTREACHED */
-		}
-
 		/* 
 		 * Special handling for Crosstalk Switches (e.g. xbow).
 		 * We need to do things in roughly the following order:
@@ -848,35 +823,9 @@
 	io_init_xswitch_widgets(switchv, cnodeid);
 	io_link_xswitch_widgets(switchv, cnodeid);
 
-	/* io_init_done takes cpu cookie as 2nd argument 
-	 * to do a restorenoderun for the setnoderun done 
-	 * at the start of this thread 
-	 */
-	io_init_done(cnodeid,c);
-
 	DBG("\nio_init_node: DONE INITIALIZED ALL I/O FOR CNODEID %d\n\n", cnodeid);
 }
 
-
-#define IOINIT_STKSZ	(16 * 1024)
-
-#define __DEVSTR1 	"/../.master/"
-#define __DEVSTR2 	"/target/"
-#define __DEVSTR3 	"/lun/0/disk/partition/"
-#define	__DEVSTR4	"/../ef"
-
-/*
- * ioconfig starts numbering SCSI's at NUM_BASE_IO_SCSI_CTLR.
- */
-#define NUM_BASE_IO_SCSI_CTLR 6
-/*
- * This tells ioconfig where it can start numbering scsi controllers.
- * Below this base number, platform-specific handles the numbering.
- * XXX Irix legacy..controller numbering should be part of devfsd's job
- */
-int num_base_io_scsi_ctlr = 2; /* used by syssgi */
-vertex_hdl_t		base_io_scsi_ctlr_vhdl[NUM_BASE_IO_SCSI_CTLR];
-
 #include <asm/sn/ioerror_handling.h>
 /* #endif */
 
@@ -913,78 +862,6 @@
 }
 
 #define toint(x) ((int)(x) - (int)('0'))
-
-void
-devnamefromarcs(char *devnm)
-{
-	int 			val;
-	char 			tmpnm[MAXDEVNAME];
-	char 			*tmp1, *tmp2;
-	
-	val = strncmp(devnm, "dks", 3);
-	if (val != 0) 
-		return;
-	tmp1 = devnm + 3;
-	if (!isdigit(*tmp1))
-		return;
-
-	val = 0;
-	while (isdigit(*tmp1)) {
-		val = 10*val+toint(*tmp1);
-		tmp1++;
-	}
-
-	if(*tmp1 != 'd')
-		return;
-	else
-		tmp1++;
-
-	if ((val < 0) || (val >= num_base_io_scsi_ctlr)) {
-		int i;
-		int viable_found = 0;
-
-		DBG("Only controller numbers 0..%d  are supported for\n", NUM_BASE_IO_SCSI_CTLR-1);
-		DBG("prom \"root\" variables of the form dksXdXsX.\n");
-		DBG("To use another disk you must use the full hardware graph path\n\n");
-		DBG("Possible controller numbers for use in 'dksXdXsX' on this system: ");
-		for (i=0; i<NUM_BASE_IO_SCSI_CTLR; i++) {
-			if (base_io_scsi_ctlr_vhdl[i] != GRAPH_VERTEX_NONE) {
-				DBG("%d ", i);
-				viable_found=1;
-			}
-		}
-		if (viable_found)
-			DBG("\n");
-		else
-			DBG("none found!\n");
-
-		DELAY(15000000);
-		//prom_reboot();
-		panic("FIXME: devnamefromarcs: should call prom_reboot here.\n");
-		/* NOTREACHED */
-	}
-		
-	ASSERT(base_io_scsi_ctlr_vhdl[val] != GRAPH_VERTEX_NONE);
-	vertex_to_name(base_io_scsi_ctlr_vhdl[val],
-		       tmpnm,
-		       MAXDEVNAME);
-	tmp2 = 	tmpnm + strlen(tmpnm);
-	strcpy(tmp2, __DEVSTR2);
-	tmp2 += strlen(__DEVSTR2);
-	while (*tmp1 != 's') {
-		if((*tmp2++ = *tmp1++) = '\0')
-			return;
-	}	
-	tmp1++;
-	strcpy(tmp2, __DEVSTR3);
-	tmp2 += strlen(__DEVSTR3);
-	while ( (*tmp2++ = *tmp1++) )
-		;
-	tmp2--;
-	*tmp2++ = '/';
-	strcpy(tmp2, EDGE_LBL_BLOCK);
-	strcpy(devnm,tmpnm);
-}
 
 static
 struct io_brick_map_s io_brick_tab[] = {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kill dead code from ml_iograph.c
  2003-09-25 19:57 [PATCH] kill dead code from ml_iograph.c Christoph Hellwig
@ 2003-10-05 16:35 ` Jes Sorensen
  2003-10-08 14:38 ` Christoph Hellwig
  2003-10-10 17:11 ` Jes Sorensen
  2 siblings, 0 replies; 4+ messages in thread
From: Jes Sorensen @ 2003-10-05 16:35 UTC (permalink / raw)
  To: linux-ia64

>>>>> "Christoph" = Christoph Hellwig <hch@lst.de> writes:

Christoph> More IRIX creepism
Christoph> --- 1.3/arch/ia64/sn/io/sn2/ml_iograph.c	Mon May 19 14:42:20 2003
Christoph> +++ edited/arch/ia64/sn/io/sn2/ml_iograph.c	Fri Aug  8 12:01:40 2003
Christoph> @@ -268,17 +268,6 @@

Was already removed from the internal tree and in the pipeline so
please nuke it.

Cheers,
Jes

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kill dead code from ml_iograph.c
  2003-09-25 19:57 [PATCH] kill dead code from ml_iograph.c Christoph Hellwig
  2003-10-05 16:35 ` Jes Sorensen
@ 2003-10-08 14:38 ` Christoph Hellwig
  2003-10-10 17:11 ` Jes Sorensen
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2003-10-08 14:38 UTC (permalink / raw)
  To: linux-ia64

On Sun, Oct 05, 2003 at 12:35:37PM -0400, Jes Sorensen wrote:
> >>>>> "Christoph" = Christoph Hellwig <hch@lst.de> writes:
> 
> Christoph> More IRIX creepism
> Christoph> --- 1.3/arch/ia64/sn/io/sn2/ml_iograph.c	Mon May 19 14:42:20 2003
> Christoph> +++ edited/arch/ia64/sn/io/sn2/ml_iograph.c	Fri Aug  8 12:01:40 2003
> Christoph> @@ -268,17 +268,6 @@
> 
> Was already removed from the internal tree and in the pipeline so
> please nuke it.

What about syncing that magic internal tree more often.  The quærterly
SN updates are a mess, so if SGI could decide to send one patch per
change in a timely fashion live would be a lot simpler.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kill dead code from ml_iograph.c
  2003-09-25 19:57 [PATCH] kill dead code from ml_iograph.c Christoph Hellwig
  2003-10-05 16:35 ` Jes Sorensen
  2003-10-08 14:38 ` Christoph Hellwig
@ 2003-10-10 17:11 ` Jes Sorensen
  2 siblings, 0 replies; 4+ messages in thread
From: Jes Sorensen @ 2003-10-10 17:11 UTC (permalink / raw)
  To: linux-ia64

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 402 bytes --]

>>>>> "Christoph" = Christoph Hellwig <hch@infradead.org> writes:

Christoph> What about syncing that magic internal tree more often.
Christoph> The quærterly SN updates are a mess, so if SGI could
Christoph> decide to send one patch per change in a timely fashion
Christoph> live would be a lot simpler.

Thats certainly the intention, for 2.4 it's going to be hard but for
2.6 sure.

Jes

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-10 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-25 19:57 [PATCH] kill dead code from ml_iograph.c Christoph Hellwig
2003-10-05 16:35 ` Jes Sorensen
2003-10-08 14:38 ` Christoph Hellwig
2003-10-10 17:11 ` Jes Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.