* PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change) (fwd)
@ 2001-11-27 18:46 Gérard Roudier
2001-11-27 22:38 ` christophe barbé
2001-11-30 14:48 ` Marcelo Tosatti
0 siblings, 2 replies; 8+ messages in thread
From: Gérard Roudier @ 2001-11-27 18:46 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: Linux
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2334 bytes --]
Hi Marcelo,
I didn't see these patches applied by previous kernel maintainer, neither
received any ack nor nack about from. You may let me know if something
gets wrong with them. Btw, I have another one after those ones.
Note that I am used of the "no news means bad news" when patches for linux
development are in concern, but I guess that I am not the only guy who
will be glad if usual good practice of "no news means good news" would
also apply there. Let me hope that this will be changed as it has been
with 2.0 and 2.2 kernel maintainance. :)
By the way, I missed the postings that made you the maintainer of 2.4
kernel neither saw any comments from Alan about. I am sure that you will
do the best you can and will do a very good work, but I feel a bit
frustrated not to know the reasons of this decision. If you can point me
to the corresponding articles, I will be very interested in.
Thanks to people who tried, did or are doing Linux kernel maintainance as
I think that maintainance is a very important process at least as
important as development (I want to write a lot more, in fact...).
Good luck and TIA.
Gérard.
---------- Forwarded message ----------
Date: Sun, 18 Nov 2001 19:06:28 +0100 (CET)
From: Gérard Roudier <groudier@free.fr>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change)
Linus,
I have attached 2 small patches against linux-2.4.15-pre6 to this email.
roudier-email-for-2.4.15-pre6.patch:
This patch changes my email address in CREDITS, MAINTAINERS and
old sym53c8xx and ncr53c8xx drivers related files. It also bumps
Copyright up to year 2001 for these driver files.
sym-2.1.17-for-2.4.15-pre6.patch:
This patch is the result of the feed-back I got after the inclusion of
sym-2 into the main kernel stream. It fixes notably a couple of harmless
warnings. The only significant change applies to the allocation of
a 256 entries hash lists array that is now allocated separately from the
host data structure. This was needed on PPC64 / 4 KB page size, for the
driver not to try to allocate more than 1 PAGE at a time.
Thanks in advance for including these changes in next kernel release.
Regards,
Gérard.
[-- Attachment #2: Type: TEXT/PLAIN, Size: 7475 bytes --]
--- /home/linux/v2.4/linux/CREDITS Sun Nov 18 17:01:35 2001
+++ linux/CREDITS Sun Nov 18 17:26:30 2001
@@ -2495,7 +2495,7 @@
S: Australia
N: Gerard Roudier
-E: groudier@iplus.fr
+E: groudier@free.fr
D: Contributed to asynchronous read-ahead improvement
S: 21 Rue Carnot
S: 95170 Deuil La Barre
--- /home/linux/v2.4/linux/MAINTAINERS Sun Nov 18 17:01:35 2001
+++ linux/MAINTAINERS Sun Nov 18 17:40:03 2001
@@ -918,6 +918,12 @@
W: http://www.sistina.com/lvm
S: Maintained
+LSILOGIC/SYMBIOS/NCR 53C8XX and 53C1010 PCI-SCSI drivers
+P: Gerard Roudier
+M: groudier@free.fr
+L: linux-scsi@vger.kernel.org
+S: Maintained
+
M68K
P: Jes Sorensen
M: jes@trained-monkey.org
--- /home/linux/v2.4/linux/drivers/scsi/README.ncr53c8xx Sun Aug 19 17:08:26 2001
+++ linux/drivers/scsi/README.ncr53c8xx Sun Nov 18 17:22:52 2001
@@ -1,6 +1,6 @@
The Linux NCR53C8XX/SYM53C8XX drivers README file
-Written by Gerard Roudier <groudier@club-internet.fr>
+Written by Gerard Roudier <groudier@free.fr>
21 Rue Carnot
95170 DEUIL LA BARRE - FRANCE
@@ -87,7 +87,7 @@
The initial Linux ncr53c8xx driver has been a port of the ncr driver from
FreeBSD that has been achieved in November 1995 by:
- Gerard Roudier <groudier@club-internet.fr>
+ Gerard Roudier <groudier@free.fr>
The original driver has been written for 386bsd and FreeBSD by:
Wolfgang Stanglmeier <wolf@cologne.de>
@@ -1287,7 +1287,7 @@
be sure I will receive it. Obviously, a bug in the driver code is
possible.
- My email address: Gerard Roudier <groudier@club-internet.fr>
+ My email address: Gerard Roudier <groudier@free.fr>
Allowing disconnections is important if you use several devices on
your SCSI bus but often causes problems with buggy devices.
--- /home/linux/v2.4/linux/drivers/scsi/ncr53c8xx.c Sun Nov 18 17:01:30 2001
+++ linux/drivers/scsi/ncr53c8xx.c Sun Nov 18 17:20:08 2001
@@ -22,7 +22,7 @@
** This driver has been ported to Linux from the FreeBSD NCR53C8XX driver
** and is currently maintained by
**
-** Gerard Roudier <groudier@club-internet.fr>
+** Gerard Roudier <groudier@free.fr>
**
** Being given that this driver originates from the FreeBSD version, and
** in order to keep synergy on both, any suggested enhancements and corrections
@@ -63,7 +63,7 @@
** August 18 1997 by Cort <cort@cs.nmt.edu>:
** Support for Power/PC (Big Endian).
**
-** June 20 1998 by Gerard Roudier <groudier@club-internet.fr>:
+** June 20 1998 by Gerard Roudier
** Support for up to 64 tags per lun.
** O(1) everywhere (C and SCRIPTS) for normal cases.
** Low PCI traffic for command handling when on-chip RAM is present.
--- /home/linux/v2.4/linux/drivers/scsi/ncr53c8xx.h Sun Apr 8 14:10:13 2001
+++ linux/drivers/scsi/ncr53c8xx.h Sun Nov 18 17:19:18 2001
@@ -22,7 +22,7 @@
** This driver has been ported to Linux from the FreeBSD NCR53C8XX driver
** and is currently maintained by
**
-** Gerard Roudier <groudier@club-internet.fr>
+** Gerard Roudier <groudier@free.fr>
**
** Being given that this driver originates from the FreeBSD version, and
** in order to keep synergy on both, any suggested enhancements and corrections
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx.c Sun Nov 18 17:01:33 2001
+++ linux/drivers/scsi/sym53c8xx.c Sun Nov 18 18:21:32 2001
@@ -1,7 +1,7 @@
/******************************************************************************
** High Performance device driver for the Symbios 53C896 controller.
**
-** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.fr>
+** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr>
**
** This driver also supports all the Symbios 53C8XX controller family,
** except 53C810 revisions < 16, 53C825 revisions < 16 and all
@@ -32,7 +32,7 @@
** The Linux port of the FreeBSD ncr driver has been achieved in
** november 1995 by:
**
-** Gerard Roudier <groudier@club-internet.fr>
+** Gerard Roudier <groudier@free.fr>
**
** Being given that this driver originates from the FreeBSD version, and
** in order to keep synergy on both, any suggested enhancements and corrections
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx.h Wed Oct 3 22:13:53 2001
+++ linux/drivers/scsi/sym53c8xx.h Sun Nov 18 18:22:05 2001
@@ -1,7 +1,7 @@
/******************************************************************************
** High Performance device driver for the Symbios 53C896 controller.
**
-** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.fr>
+** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr>
**
** This driver also supports all the Symbios 53C8XX controller family,
** except 53C810 revisions < 16, 53C825 revisions < 16 and all
@@ -32,7 +32,7 @@
** The Linux port of the FreeBSD ncr driver has been achieved in
** november 1995 by:
**
-** Gerard Roudier <groudier@club-internet.fr>
+** Gerard Roudier <groudier@free.fr>
**
** Being given that this driver originates from the FreeBSD version, and
** in order to keep synergy on both, any suggested enhancements and corrections
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_comm.h Sun Nov 18 17:01:33 2001
+++ linux/drivers/scsi/sym53c8xx_comm.h Sun Nov 18 18:21:43 2001
@@ -1,7 +1,7 @@
/******************************************************************************
** High Performance device driver for the Symbios 53C896 controller.
**
-** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.fr>
+** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr>
**
** This driver also supports all the Symbios 53C8XX controller family,
** except 53C810 revisions < 16, 53C825 revisions < 16 and all
@@ -32,7 +32,7 @@
** The Linux port of the FreeBSD ncr driver has been achieved in
** november 1995 by:
**
-** Gerard Roudier <groudier@club-internet.fr>
+** Gerard Roudier <groudier@free.fr>
**
** Being given that this driver originates from the FreeBSD version, and
** in order to keep synergy on both, any suggested enhancements and corrections
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_defs.h Sun Nov 18 17:01:33 2001
+++ linux/drivers/scsi/sym53c8xx_defs.h Sun Nov 18 18:21:54 2001
@@ -1,7 +1,7 @@
/******************************************************************************
** High Performance device driver for the Symbios 53C896 controller.
**
-** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.fr>
+** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr>
**
** This driver also supports all the Symbios 53C8XX controller family,
** except 53C810 revisions < 16, 53C825 revisions < 16 and all
@@ -32,7 +32,7 @@
** The Linux port of the FreeBSD ncr driver has been achieved in
** november 1995 by:
**
-** Gerard Roudier <groudier@club-internet.fr>
+** Gerard Roudier <groudier@free.fr>
**
** Being given that this driver originates from the FreeBSD version, and
** in order to keep synergy on both, any suggested enhancements and corrections
[-- Attachment #3: Type: TEXT/PLAIN, Size: 2938 bytes --]
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/ChangeLog.txt Sun Nov 18 17:01:36 2001
+++ linux/drivers/scsi/sym53c8xx_2/ChangeLog.txt Sun Nov 18 19:10:56 2001
@@ -128,3 +128,11 @@
* version sym-2.1.16-20011028
- Slightly simplify driver configuration.
- Prepare a new patch against linux-2.4.13.
+
+Sat Nov 17 10:00 2001 Gerard Roudier
+ * version sym-2.1.17
+ - Fix a couple of gcc/gcc3 warnings.
+ - Allocate separately from the HCB the array for CCBs hashed by DSA.
+ All driver memory allocations are now not greater than 1 PAGE
+ even on PPC64 / 4KB PAGE surprising setup.
+
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_glue.h Sun Nov 18 17:01:36 2001
+++ linux/drivers/scsi/sym53c8xx_2/sym_glue.h Sun Nov 18 18:16:39 2001
@@ -77,7 +77,6 @@
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/string.h>
-#include <linux/malloc.h>
#include <linux/mm.h>
#include <linux/ioport.h>
#include <linux/time.h>
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_hipd.c Sun Nov 18 17:01:36 2001
+++ linux/drivers/scsi/sym53c8xx_2/sym_hipd.c Sun Nov 18 18:31:27 2001
@@ -50,7 +50,7 @@
* SUCH DAMAGE.
*/
-#define SYM_DRIVER_NAME "sym-2.1.16a"
+#define SYM_DRIVER_NAME "sym-2.1.17"
#ifdef __FreeBSD__
#include <dev/sym/sym_glue.h>
@@ -4691,6 +4691,7 @@
OUTL_DSP (SCRIPTA_BA (np, clrack));
return;
out_stuck:
+ return;
}
/*
@@ -5226,6 +5227,7 @@
return;
fail:
+ return;
}
/*
@@ -5788,6 +5790,13 @@
goto attach_failed;
/*
+ * Allocate the array of lists of CCBs hashed by DSA.
+ */
+ np->ccbh = sym_calloc(sizeof(ccb_p *)*CCB_HASH_SIZE, "CCBH");
+ if (!np->ccbh)
+ goto attach_failed;
+
+ /*
* Initialyze the CCB free and busy queues.
*/
sym_que_init(&np->free_ccbq);
@@ -5978,6 +5987,8 @@
sym_mfree_dma(cp, sizeof(*cp), "CCB");
}
}
+ if (np->ccbh)
+ sym_mfree(np->ccbh, sizeof(ccb_p *)*CCB_HASH_SIZE, "CCBH");
if (np->badluntbl)
sym_mfree_dma(np->badluntbl, 256,"BADLUNTBL");
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_hipd.h Sun Nov 18 17:01:36 2001
+++ linux/drivers/scsi/sym53c8xx_2/sym_hipd.h Sun Nov 18 17:49:09 2001
@@ -1068,7 +1068,8 @@
/*
* CCB lists and queue.
*/
- ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */
+ ccb_p *ccbh; /* CCBs hashed by DSA value */
+ /* CCB_HASH_SIZE lists of CCBs */
SYM_QUEHEAD free_ccbq; /* Queue of available CCBs */
SYM_QUEHEAD busy_ccbq; /* Queue of busy CCBs */
--- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_nvram.c Sun Nov 18 17:01:36 2001
+++ linux/drivers/scsi/sym53c8xx_2/sym_nvram.c Sun Nov 18 17:49:12 2001
@@ -505,10 +505,10 @@
return retv;
}
-#undef SET_BIT 0
-#undef CLR_BIT 1
-#undef SET_CLK 2
-#undef CLR_CLK 3
+#undef SET_BIT
+#undef CLR_BIT
+#undef SET_CLK
+#undef CLR_CLK
/*
* Try reading Symbios NVRAM.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change) (fwd) 2001-11-27 18:46 PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change) (fwd) Gérard Roudier @ 2001-11-27 22:38 ` christophe barbé 2001-11-28 1:05 ` Mike Fedyk 2001-11-28 18:21 ` Gérard Roudier 2001-11-30 14:48 ` Marcelo Tosatti 1 sibling, 2 replies; 8+ messages in thread From: christophe barbé @ 2001-11-27 22:38 UTC (permalink / raw) To: Gérard Roudier; +Cc: lkml [-- Attachment #1: Type: text/plain, Size: 531 bytes --] On Tue, Nov 27, 2001 at 07:46:13PM +0100, Gérard Roudier wrote: > > By the way, I missed the postings that made you the maintainer of 2.4 > kernel neither saw any comments from Alan about. I am sure that you will > do the best you can and will do a very good work, but I feel a bit > frustrated not to know the reasons of this decision. If you can point me > to the corresponding articles, I will be very interested in. This link should be fine for you : http://advogato.org/article/370.html Christophe [-- Attachment #2: Type: application/pgp-signature, Size: 241 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change) (fwd) 2001-11-27 22:38 ` christophe barbé @ 2001-11-28 1:05 ` Mike Fedyk 2001-11-28 18:21 ` Gérard Roudier 1 sibling, 0 replies; 8+ messages in thread From: Mike Fedyk @ 2001-11-28 1:05 UTC (permalink / raw) To: G?rard Roudier, lkml On Tue, Nov 27, 2001 at 11:38:59PM +0100, christophe barb? wrote: > > On Tue, Nov 27, 2001 at 07:46:13PM +0100, G?rard Roudier wrote: > > > > By the way, I missed the postings that made you the maintainer of 2.4 > > kernel neither saw any comments from Alan about. I am sure that you will > > do the best you can and will do a very good work, but I feel a bit > > frustrated not to know the reasons of this decision. If you can point me > > to the corresponding articles, I will be very interested in. > > This link should be fine for you : > > http://advogato.org/article/370.html > This doesn't really show *why* he was chosen. Marcello hasn't gotten much press in the past. Yes, it does look like a big change from the outside. Even for LKML readers ;) MF ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change) (fwd) 2001-11-27 22:38 ` christophe barbé 2001-11-28 1:05 ` Mike Fedyk @ 2001-11-28 18:21 ` Gérard Roudier 1 sibling, 0 replies; 8+ messages in thread From: Gérard Roudier @ 2001-11-28 18:21 UTC (permalink / raw) To: christophe barbé; +Cc: lkml On Tue, 27 Nov 2001, christophe barbé wrote: > > On Tue, Nov 27, 2001 at 07:46:13PM +0100, Gérard Roudier wrote: > > > > By the way, I missed the postings that made you the maintainer of 2.4 > > kernel neither saw any comments from Alan about. I am sure that you will > > do the best you can and will do a very good work, but I feel a bit > > frustrated not to know the reasons of this decision. If you can point me > > to the corresponding articles, I will be very interested in. > > This link should be fine for you : > > http://advogato.org/article/370.html Thanks a lot. It is exactly the kind of article I was looking for. Gérard. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change) (fwd) 2001-11-27 18:46 PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change) (fwd) Gérard Roudier 2001-11-27 22:38 ` christophe barbé @ 2001-11-30 14:48 ` Marcelo Tosatti 2001-12-01 16:17 ` PATCH: 2 small patches against 2.4.17-pre2 (sym2 + email change) Gérard Roudier 1 sibling, 1 reply; 8+ messages in thread From: Marcelo Tosatti @ 2001-11-30 14:48 UTC (permalink / raw) To: Gérard Roudier; +Cc: Linux On Tue, 27 Nov 2001, Gérard Roudier wrote: > > Hi Marcelo, Hi, Sorry for the delay, I saved this mail to my pending list... :) > > I didn't see these patches applied by previous kernel maintainer, neither > received any ack nor nack about from. You may let me know if something > gets wrong with them. Btw, I have another one after those ones. > > Note that I am used of the "no news means bad news" when patches for linux > development are in concern, but I guess that I am not the only guy who > will be glad if usual good practice of "no news means good news" would > also apply there. Let me hope that this will be changed as it has been > with 2.0 and 2.2 kernel maintainance. :) > > By the way, I missed the postings that made you the maintainer of 2.4 > kernel neither saw any comments from Alan about. I am sure that you will > do the best you can and will do a very good work, but I feel a bit > frustrated not to know the reasons of this decision. If you can point me > to the corresponding articles, I will be very interested in. Well, basically, it seems Alan got tired of maintenance... :) You can take a look at Alan's diary for more stuff. > Thanks to people who tried, did or are doing Linux kernel maintainance as > I think that maintainance is a very important process at least as > important as development (I want to write a lot more, in fact...). > > Good luck and TIA. About the two patches you mention, can you please send me them ? ^ permalink raw reply [flat|nested] 8+ messages in thread
* PATCH: 2 small patches against 2.4.17-pre2 (sym2 + email change) 2001-11-30 14:48 ` Marcelo Tosatti @ 2001-12-01 16:17 ` Gérard Roudier 2001-12-01 19:31 ` Jeff Garzik 0 siblings, 1 reply; 8+ messages in thread From: Gérard Roudier @ 2001-12-01 16:17 UTC (permalink / raw) To: Marcelo Tosatti; +Cc: Linux [-- Attachment #1: Type: TEXT/PLAIN, Size: 1580 bytes --] Hi Marcelo, On Fri, 30 Nov 2001, Marcelo Tosatti wrote: > On Tue, 27 Nov 2001, Gérard Roudier wrote: > > Sorry for the delay, I saved this mail to my pending list... :) No problem, Marcelo and thanks very much for the reply. I just switched to your 2.4.17-pre2 kernel and updated my patches accordingly (attached). Here is the log of sym-2 driver changes (patch #2): * version sym-2.1.17 - Fix a couple of gcc/gcc3 warnings. - Allocate separately from the HCB the array for CCBs hashed by DSA. All driver memory allocations are now not greater than 1 PAGE even on PPC64 / 4KB PAGE surprising setup. * version sym-2.1.17a - Use u_long instead of U32 for the IO base cookie. This is more consistent with what archs are expecting. - Use MMIO per default for Power PC instead of some fake normal IO, as Paul Mackerras stated that MMIO works fine now on this arch. There are no real fixes. Most changes are conveniences for PPCs. The patch #1 that updates my email address is more important since my old email address will be no longer valid in a couple of weeks. This patch also adds an entry in MAINTAINERS, btw. [...] > Well, basically, it seems Alan got tired of maintenance... :) This may well have happened between linux-2.4.9 and linux-2.4.10. :) > You can take a look at Alan's diary for more stuff. Will do, thanks. But in fact, I just wanted to read something from Alan about the maintainance baton being passed to you and I have been supplied an URL that fitted just fine. Regards, Gérard. [-- Attachment #2: Type: TEXT/PLAIN, Size: 7475 bytes --] --- /home/linux/v2.4/linux/CREDITS Sat Dec 1 19:04:19 2001 +++ linux/CREDITS Sat Dec 1 19:25:03 2001 @@ -2502,7 +2502,7 @@ S: Australia N: Gerard Roudier -E: groudier@iplus.fr +E: groudier@free.fr D: Contributed to asynchronous read-ahead improvement S: 21 Rue Carnot S: 95170 Deuil La Barre --- /home/linux/v2.4/linux/MAINTAINERS Sat Dec 1 19:04:19 2001 +++ linux/MAINTAINERS Sat Dec 1 19:25:03 2001 @@ -924,6 +924,12 @@ W: http://www.sistina.com/lvm S: Maintained +LSILOGIC/SYMBIOS/NCR 53C8XX and 53C1010 PCI-SCSI drivers +P: Gerard Roudier +M: groudier@free.fr +L: linux-scsi@vger.kernel.org +S: Maintained + M68K P: Jes Sorensen M: jes@trained-monkey.org --- /home/linux/v2.4/linux/drivers/scsi/README.ncr53c8xx Sun Aug 19 17:08:26 2001 +++ linux/drivers/scsi/README.ncr53c8xx Sat Dec 1 19:25:03 2001 @@ -1,6 +1,6 @@ The Linux NCR53C8XX/SYM53C8XX drivers README file -Written by Gerard Roudier <groudier@club-internet.fr> +Written by Gerard Roudier <groudier@free.fr> 21 Rue Carnot 95170 DEUIL LA BARRE - FRANCE @@ -87,7 +87,7 @@ The initial Linux ncr53c8xx driver has been a port of the ncr driver from FreeBSD that has been achieved in November 1995 by: - Gerard Roudier <groudier@club-internet.fr> + Gerard Roudier <groudier@free.fr> The original driver has been written for 386bsd and FreeBSD by: Wolfgang Stanglmeier <wolf@cologne.de> @@ -1287,7 +1287,7 @@ be sure I will receive it. Obviously, a bug in the driver code is possible. - My email address: Gerard Roudier <groudier@club-internet.fr> + My email address: Gerard Roudier <groudier@free.fr> Allowing disconnections is important if you use several devices on your SCSI bus but often causes problems with buggy devices. --- /home/linux/v2.4/linux/drivers/scsi/ncr53c8xx.c Sat Dec 1 19:04:14 2001 +++ linux/drivers/scsi/ncr53c8xx.c Sat Dec 1 19:25:03 2001 @@ -22,7 +22,7 @@ ** This driver has been ported to Linux from the FreeBSD NCR53C8XX driver ** and is currently maintained by ** -** Gerard Roudier <groudier@club-internet.fr> +** Gerard Roudier <groudier@free.fr> ** ** Being given that this driver originates from the FreeBSD version, and ** in order to keep synergy on both, any suggested enhancements and corrections @@ -63,7 +63,7 @@ ** August 18 1997 by Cort <cort@cs.nmt.edu>: ** Support for Power/PC (Big Endian). ** -** June 20 1998 by Gerard Roudier <groudier@club-internet.fr>: +** June 20 1998 by Gerard Roudier ** Support for up to 64 tags per lun. ** O(1) everywhere (C and SCRIPTS) for normal cases. ** Low PCI traffic for command handling when on-chip RAM is present. --- /home/linux/v2.4/linux/drivers/scsi/ncr53c8xx.h Sun Apr 8 14:10:13 2001 +++ linux/drivers/scsi/ncr53c8xx.h Sat Dec 1 19:25:03 2001 @@ -22,7 +22,7 @@ ** This driver has been ported to Linux from the FreeBSD NCR53C8XX driver ** and is currently maintained by ** -** Gerard Roudier <groudier@club-internet.fr> +** Gerard Roudier <groudier@free.fr> ** ** Being given that this driver originates from the FreeBSD version, and ** in order to keep synergy on both, any suggested enhancements and corrections --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx.c Sat Dec 1 19:04:15 2001 +++ linux/drivers/scsi/sym53c8xx.c Sat Dec 1 19:25:03 2001 @@ -1,7 +1,7 @@ /****************************************************************************** ** High Performance device driver for the Symbios 53C896 controller. ** -** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.fr> +** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr> ** ** This driver also supports all the Symbios 53C8XX controller family, ** except 53C810 revisions < 16, 53C825 revisions < 16 and all @@ -32,7 +32,7 @@ ** The Linux port of the FreeBSD ncr driver has been achieved in ** november 1995 by: ** -** Gerard Roudier <groudier@club-internet.fr> +** Gerard Roudier <groudier@free.fr> ** ** Being given that this driver originates from the FreeBSD version, and ** in order to keep synergy on both, any suggested enhancements and corrections --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx.h Wed Oct 3 22:13:53 2001 +++ linux/drivers/scsi/sym53c8xx.h Sat Dec 1 19:25:03 2001 @@ -1,7 +1,7 @@ /****************************************************************************** ** High Performance device driver for the Symbios 53C896 controller. ** -** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.fr> +** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr> ** ** This driver also supports all the Symbios 53C8XX controller family, ** except 53C810 revisions < 16, 53C825 revisions < 16 and all @@ -32,7 +32,7 @@ ** The Linux port of the FreeBSD ncr driver has been achieved in ** november 1995 by: ** -** Gerard Roudier <groudier@club-internet.fr> +** Gerard Roudier <groudier@free.fr> ** ** Being given that this driver originates from the FreeBSD version, and ** in order to keep synergy on both, any suggested enhancements and corrections --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_comm.h Sat Dec 1 19:04:15 2001 +++ linux/drivers/scsi/sym53c8xx_comm.h Sat Dec 1 19:25:03 2001 @@ -1,7 +1,7 @@ /****************************************************************************** ** High Performance device driver for the Symbios 53C896 controller. ** -** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.fr> +** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr> ** ** This driver also supports all the Symbios 53C8XX controller family, ** except 53C810 revisions < 16, 53C825 revisions < 16 and all @@ -32,7 +32,7 @@ ** The Linux port of the FreeBSD ncr driver has been achieved in ** november 1995 by: ** -** Gerard Roudier <groudier@club-internet.fr> +** Gerard Roudier <groudier@free.fr> ** ** Being given that this driver originates from the FreeBSD version, and ** in order to keep synergy on both, any suggested enhancements and corrections --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_defs.h Sat Dec 1 19:04:15 2001 +++ linux/drivers/scsi/sym53c8xx_defs.h Sat Dec 1 19:25:03 2001 @@ -1,7 +1,7 @@ /****************************************************************************** ** High Performance device driver for the Symbios 53C896 controller. ** -** Copyright (C) 1998-2000 Gerard Roudier <groudier@club-internet.fr> +** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr> ** ** This driver also supports all the Symbios 53C8XX controller family, ** except 53C810 revisions < 16, 53C825 revisions < 16 and all @@ -32,7 +32,7 @@ ** The Linux port of the FreeBSD ncr driver has been achieved in ** november 1995 by: ** -** Gerard Roudier <groudier@club-internet.fr> +** Gerard Roudier <groudier@free.fr> ** ** Being given that this driver originates from the FreeBSD version, and ** in order to keep synergy on both, any suggested enhancements and corrections [-- Attachment #3: Type: TEXT/PLAIN, Size: 5427 bytes --] --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/ChangeLog.txt Sat Dec 1 19:04:18 2001 +++ linux/drivers/scsi/sym53c8xx_2/ChangeLog.txt Sat Dec 1 19:09:48 2001 @@ -128,3 +128,21 @@ * version sym-2.1.16-20011028 - Slightly simplify driver configuration. - Prepare a new patch against linux-2.4.13. + +Sat Nov 17 10:00 2001 Gerard Roudier + * version sym-2.1.17 + - Fix a couple of gcc/gcc3 warnings. + - Allocate separately from the HCB the array for CCBs hashed by DSA. + All driver memory allocations are now not greater than 1 PAGE + even on PPC64 / 4KB PAGE surprising setup. + +Sat Dec 01 18:00 2001 Gerard Roudier + * version sym-2.1.17a + - Use u_long instead of U32 for the IO base cookie. This is more + consistent with what archs are expecting. + - Use MMIO per default for Power PC instead of some fake normal IO, + as Paul Mackerras stated that MMIO works fine now on this arch. + + + + --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym53c8xx.h Sat Dec 1 19:04:18 2001 +++ linux/drivers/scsi/sym53c8xx_2/sym53c8xx.h Sat Dec 1 19:22:26 2001 @@ -130,17 +130,17 @@ #if !defined(HOSTS_C) /* - * Use normal IO if configured. Forced for alpha and powerpc. - * Powerpc fails copying to on-chip RAM using memcpy_toio(). + * Use normal IO if configured. + * Normal IO forced for alpha. * Forced to MMIO for sparc. */ #if defined(__alpha__) #define SYM_CONF_IOMAPPED -#elif defined(__powerpc__) -#define SYM_CONF_IOMAPPED -#define SYM_OPT_NO_BUS_MEMORY_MAPPING #elif defined(__sparc__) #undef SYM_CONF_IOMAPPED +/* #elif defined(__powerpc__) */ +/* #define SYM_CONF_IOMAPPED */ +/* #define SYM_OPT_NO_BUS_MEMORY_MAPPING */ #elif defined(CONFIG_SCSI_SYM53C8XX_IOMAPPED) #define SYM_CONF_IOMAPPED #endif --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_glue.c Sat Dec 1 19:04:18 2001 +++ linux/drivers/scsi/sym53c8xx_2/sym_glue.c Sat Dec 1 19:09:48 2001 @@ -2456,8 +2456,8 @@ u_char pci_fix_up = SYM_SETUP_PCI_FIX_UP; u_char revision; u_int irq; - u_long base, base_2, io_port; - u_long base_c, base_2_c; + u_long base, base_2, base_io; + u_long base_c, base_2_c, io_port; int i; sym_chip *chip; @@ -2474,7 +2474,7 @@ device_id = PciDeviceId(pdev); irq = PciIrqLine(pdev); - i = pci_get_base_address(pdev, 0, &io_port); + i = pci_get_base_address(pdev, 0, &base_io); io_port = pci_get_base_cookie(pdev, 0); base_c = pci_get_base_cookie(pdev, i); @@ -2492,9 +2492,9 @@ /* * If user excluded this chip, donnot initialize it. */ - if (io_port) { + if (base_io) { for (i = 0 ; i < 8 ; i++) { - if (sym_driver_setup.excludes[i] == io_port) + if (sym_driver_setup.excludes[i] == base_io) return -1; } } --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_glue.h Sat Dec 1 19:04:18 2001 +++ linux/drivers/scsi/sym53c8xx_2/sym_glue.h Sat Dec 1 19:25:19 2001 @@ -77,7 +77,6 @@ #include <linux/errno.h> #include <linux/pci.h> #include <linux/string.h> -#include <linux/slab.h> #include <linux/mm.h> #include <linux/ioport.h> #include <linux/time.h> @@ -463,7 +462,7 @@ vm_offset_t mmio_va; /* MMIO kernel virtual address */ vm_offset_t ram_va; /* RAM kernel virtual address */ - u32 io_port; /* IO port address */ + u_long io_port; /* IO port address cookie */ u_short io_ws; /* IO window size */ int irq; /* IRQ number */ --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_hipd.c Sat Dec 1 19:04:18 2001 +++ linux/drivers/scsi/sym53c8xx_2/sym_hipd.c Sat Dec 1 19:09:48 2001 @@ -50,7 +50,7 @@ * SUCH DAMAGE. */ -#define SYM_DRIVER_NAME "sym-2.1.16a" +#define SYM_DRIVER_NAME "sym-2.1.17a" #ifdef __FreeBSD__ #include <dev/sym/sym_glue.h> @@ -4691,6 +4691,7 @@ OUTL_DSP (SCRIPTA_BA (np, clrack)); return; out_stuck: + return; } /* @@ -5226,6 +5227,7 @@ return; fail: + return; } /* @@ -5788,6 +5790,13 @@ goto attach_failed; /* + * Allocate the array of lists of CCBs hashed by DSA. + */ + np->ccbh = sym_calloc(sizeof(ccb_p *)*CCB_HASH_SIZE, "CCBH"); + if (!np->ccbh) + goto attach_failed; + + /* * Initialyze the CCB free and busy queues. */ sym_que_init(&np->free_ccbq); @@ -5978,6 +5987,8 @@ sym_mfree_dma(cp, sizeof(*cp), "CCB"); } } + if (np->ccbh) + sym_mfree(np->ccbh, sizeof(ccb_p *)*CCB_HASH_SIZE, "CCBH"); if (np->badluntbl) sym_mfree_dma(np->badluntbl, 256,"BADLUNTBL"); --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_hipd.h Sat Dec 1 19:04:18 2001 +++ linux/drivers/scsi/sym53c8xx_2/sym_hipd.h Sat Dec 1 19:09:48 2001 @@ -1068,7 +1068,8 @@ /* * CCB lists and queue. */ - ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */ + ccb_p *ccbh; /* CCBs hashed by DSA value */ + /* CCB_HASH_SIZE lists of CCBs */ SYM_QUEHEAD free_ccbq; /* Queue of available CCBs */ SYM_QUEHEAD busy_ccbq; /* Queue of busy CCBs */ --- /home/linux/v2.4/linux/drivers/scsi/sym53c8xx_2/sym_nvram.c Sat Dec 1 19:04:18 2001 +++ linux/drivers/scsi/sym53c8xx_2/sym_nvram.c Sat Dec 1 19:09:48 2001 @@ -505,10 +505,10 @@ return retv; } -#undef SET_BIT 0 -#undef CLR_BIT 1 -#undef SET_CLK 2 -#undef CLR_CLK 3 +#undef SET_BIT +#undef CLR_BIT +#undef SET_CLK +#undef CLR_CLK /* * Try reading Symbios NVRAM. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: PATCH: 2 small patches against 2.4.17-pre2 (sym2 + email change) 2001-12-01 16:17 ` PATCH: 2 small patches against 2.4.17-pre2 (sym2 + email change) Gérard Roudier @ 2001-12-01 19:31 ` Jeff Garzik 2001-12-01 17:50 ` Gérard Roudier 0 siblings, 1 reply; 8+ messages in thread From: Jeff Garzik @ 2001-12-01 19:31 UTC (permalink / raw) To: Gérard Roudier; +Cc: Marcelo Tosatti, Linux Gérard Roudier wrote: > * version sym-2.1.17a > - Use u_long instead of U32 for the IO base cookie. This is more > consistent with what archs are expecting. Well... if you want to speak of style, no arch uses 'u_long'... rather they use 'unsigned long' :) -- Jeff Garzik | Only so many songs can be sung Building 1024 | with two lips, two lungs, and one tongue. MandrakeSoft | - nomeansno ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: PATCH: 2 small patches against 2.4.17-pre2 (sym2 + email change) 2001-12-01 19:31 ` Jeff Garzik @ 2001-12-01 17:50 ` Gérard Roudier 0 siblings, 0 replies; 8+ messages in thread From: Gérard Roudier @ 2001-12-01 17:50 UTC (permalink / raw) To: Jeff Garzik; +Cc: Marcelo Tosatti, Linux On Sat, 1 Dec 2001, Jeff Garzik wrote: > Gérard Roudier wrote: > > * version sym-2.1.17a > > - Use u_long instead of U32 for the IO base cookie. This is more > > consistent with what archs are expecting. > > Well... if you want to speak of style, no arch uses 'u_long'... rather > they use 'unsigned long' :) I don't at any mailing list that has something to do with programming. :) Gérard. PS: This email should not have gone to the list. I missed to remove the LKML from the cc. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-12-01 20:43 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2001-11-27 18:46 PATCH: 2 small patches against 2.4.15-pre6 (sym2 + email change) (fwd) Gérard Roudier 2001-11-27 22:38 ` christophe barbé 2001-11-28 1:05 ` Mike Fedyk 2001-11-28 18:21 ` Gérard Roudier 2001-11-30 14:48 ` Marcelo Tosatti 2001-12-01 16:17 ` PATCH: 2 small patches against 2.4.17-pre2 (sym2 + email change) Gérard Roudier 2001-12-01 19:31 ` Jeff Garzik 2001-12-01 17:50 ` Gérard Roudier
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox