[PATCH 3/4] dc395x: fix DMA API usage in sg_update_list

2018-10-11 Thread Christoph Hellwig
We need to transfer device ownership to the CPU before we can manipulate the mapped data. Signed-off-by: Christoph Hellwig --- drivers/scsi/dc395x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 8d7a26a33951..f3b65e5efe2b 100644 ---

[PATCH 1/4] dc395x: simplify list handling

2018-10-11 Thread Christoph Hellwig
Remove the list wrappers, including the pointless list iteration before deletion. Signed-off-by: Christoph Hellwig --- drivers/scsi/dc395x.c | 152 -- 1 file changed, 26 insertions(+), 126 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc3

[PATCH 4/4] dc395x: use generic DMA API

2018-10-11 Thread Christoph Hellwig
ma_sync_single_for_device(&srb->dcb->acb->dev->dev, + srb->sg_bus_addr, SEGMENTX_LEN, + DMA_TO_DEVICE); break; } psge++; @@ -3178,9 +

[PATCH 2/4] dc395x: fix dma API usage in srb_done

2018-10-11 Thread Christoph Hellwig
We can't just transfer ownership to the CPU and then unmap, as this will break with swiotlb. Instead unmap the command and sense buffer a little earlier in the I/O completion handler and get rid of the pci_dma_sync_sg_for_cpu call entirely. Signed-off-by: Christoph Hellwig --- drivers/scsi/dc39

Re: [PATCH] scsi: dc395x: Convert timers to use timer_setup()

2017-10-16 Thread Martin K. Petersen
Kees, > In preparation for unconditionally passing the struct timer_list > pointer to all timer callbacks, switch to using the new timer_setup() > and from_timer() to pass the timer pointer explicitly. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

[PATCH] scsi: dc395x: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Oliver Neukum Cc: Ali Akcaagac Cc: Jamie Lenehan Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen"

[PATCH 11/13] scsi: dc395x: use setup_timer() helper.

2017-09-22 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/scsi/dc395x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 5ee7f44..f9aaa8b 100644 -

[PATCH] scsi: dc395x: fix sparse warning

2015-02-05 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch fixes following sparse warning: dc395x.c:1525:17: warning: Using plain integer as NULL pointer Signed-off-by: Lad, Prabhakar --- Found this issue on linux-next (gcc version 4.9.2, sparse version 0.4.5-rc1)and applies on top linux-next. drivers/scsi/dc395

Re: [PATCH] [SCSI] dc395x: remove check for CONFIG_SCSI_DC395x_TRMS1040_TRADMAP

2014-05-24 Thread Paul Bolle
> This is an automatically generated Delivery Status Notification. > > Delivery to the following recipients failed. > >dc3...@twibble.org Anyone else seeing this too? Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord

[PATCH] [SCSI] dc395x: remove check for CONFIG_SCSI_DC395x_TRMS1040_TRADMAP

2014-05-24 Thread Paul Bolle
This driver has always contained a check for CONFIG_SCSI_DC395x_TRMS1040_TRADMAP. But a Kconfig symbol SCSI_DC395x_TRMS1040_TRADMAP was never added to the tree. Besides, the code that this check hides can't compile, since "geom" is never defined. Remove it. Signed-off-by: Paul Bolle --- Compile t

[Bug 15950] Hang in dc395x driver

2013-12-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=15950 --- Comment #8 from ltski...@gmail.com --- Could be. Haven't found another inexpensive SCSI adapter. I say the driver probably needs to get fixed or removed, though. No point in having it in the kernel giving folks false hope that it'll work! -

[Bug 15950] Hang in dc395x driver

2013-12-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=15950 --- Comment #7 from Alan --- No need - there is one obscure bug fix in early 2013, but nothing else since 2010. You may be the only person on the planet who still uses one! -- You are receiving this mail because: You are watching the assignee of

[Bug 15950] Hang in dc395x driver

2013-12-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=15950 Alan changed: What|Removed |Added Kernel Version|2.6.31 |3.5.3 -- You are receiving this mail because: You

[Bug 15950] Hang in dc395x driver

2013-12-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=15950 ltski...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|OBSOLETE

[Bug 15950] Hang in dc395x driver

2013-12-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=15950 Alan changed: What|Removed |Added Status|NEW |RESOLVED CC|

[PATCH 19/20] [SCSI] dc395x: remove unnecessary pci_set_drvdata()

2013-09-22 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han --- drivers/scsi/dc395x.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/dc395x.c b/driv

[PATCH V2 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-07 Thread Jingoo Han
%p is used, thus NULL should be used instead of 0. Also, __constant_cpu_to_le16() is added in order to fix the following sparse warnings: drivers/scsi/dc395x.c:1525:17: warning: Using plain integer as NULL pointer drivers/scsi/dc395x.c:4186:48: warning: cast truncates bits from constant value (1d

Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-07 Thread Oliver Neukum
On Wed, 2013-08-07 at 15:58 +0900, Jingoo Han wrote: > On Wednesday, August 07, 2013 3:50 PM, Oliver Neukum wrote: > > On Wed, 2013-08-07 at 12:55 +0900, Jingoo Han wrote: > > > > > @@ -4183,15 +4183,17 @@ static void check_eeprom(struct NvRamType > > > *eeprom, unsigned long io_port) > > >

Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-07 Thread Jingoo Han
On Wed, Wednesday, August 07, 2013 5:40 PM, Julian Calaby > wrote: > On Wed, Aug 7, 2013 at 6:36 PM, Jingoo Han wrote: > > On Wednesday, August 07, 2013 5:21 PM, Julian Calaby wrote: > >> On Wed, Aug 7, 2013 at 5:45 PM, Jingoo Han wrote: > >> > On Wednesday, August 07, 2013 3:50 PM, Oliver Neukum

Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-07 Thread Julian Calaby
Ali Akcaagac; Jamie Lenehan; >> dc3...@twibble.org; James Bottomley; >> linux-scsi >> Subject: Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0 >> >> Hi Jingoo, >> >> On Wed, Aug 7, 2013 at 5:45 PM, Jingoo Han wrote: >> > On Wednesday, August 07,

Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-07 Thread Jingoo Han
t: Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0 > > Hi Jingoo, > > On Wed, Aug 7, 2013 at 5:45 PM, Jingoo Han wrote: > > On Wednesday, August 07, 2013 3:50 PM, Oliver Neukum wrote: > >> On Wed, 2013-08-07 at 12:55 +0900, Jingoo Han wrote: > >> &g

Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-07 Thread Julian Calaby
Hi Jingoo, On Wed, Aug 7, 2013 at 5:45 PM, Jingoo Han wrote: > On Wednesday, August 07, 2013 3:50 PM, Oliver Neukum wrote: >> On Wed, 2013-08-07 at 12:55 +0900, Jingoo Han wrote: >> >> > @@ -4183,15 +4183,17 @@ static void check_eeprom(struct NvRamType *eeprom, >> > unsigned long io_port) >> >

Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-07 Thread Jingoo Han
On Wednesday, August 07, 2013 3:50 PM, Oliver Neukum wrote: > On Wed, 2013-08-07 at 12:55 +0900, Jingoo Han wrote: > > > @@ -4183,15 +4183,17 @@ static void check_eeprom(struct NvRamType *eeprom, > > unsigned long io_port) > > */ > > dprintkl(KERN_WARNING, > >

Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-06 Thread Jingoo Han
On Wednesday, August 07, 2013 3:50 PM, Oliver Neukum wrote: > On Wed, 2013-08-07 at 12:55 +0900, Jingoo Han wrote: > > > @@ -4183,15 +4183,17 @@ static void check_eeprom(struct NvRamType *eeprom, > > unsigned long io_port) > > */ > > dprintkl(KERN_WARNING, > >

Re: [PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-06 Thread Oliver Neukum
On Wed, 2013-08-07 at 12:55 +0900, Jingoo Han wrote: > @@ -4183,15 +4183,17 @@ static void check_eeprom(struct NvRamType *eeprom, > unsigned long io_port) >*/ > dprintkl(KERN_WARNING, > "EEProm checksum error: using default values and > options

[PATCH 3/8] [SCSI] dc395x: use NULL instead of 0

2013-08-06 Thread Jingoo Han
%p is used, thus NULL should be used instead of 0. Also, bit maskings are added in order to fix the following sparse warnings: drivers/scsi/dc395x.c:1525:17: warning: Using plain integer as NULL pointer drivers/scsi/dc395x.c:4186:48: warning: cast truncates bits from constant value (1de1 becomes

[PATCH 02/24] drivers/scsi/dc395x: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/scsi/dc395x.c | 24 +--- 1 files changed, 1 insertions(+), 23 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c old mode 100644 new mode 100755 index 694

[PATCH 3/6] scsi/dc395x: Use module_pci_driver to register driver

2013-05-21 Thread Peter Huewe
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe --- drivers/scsi/dc395x.c | 25 + 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers/s

[PATCH] dc395x: Fix NULL pointer dereference

2013-02-24 Thread Syam Sidhardhan
When we enable dprintkdbg, then their is a NULL pointer dereference. Signed-off-by: Syam Sidhardhan --- drivers/scsi/dc395x.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 865c64f..6c5b874 100644 --- a/drivers/scsi/dc

Re: [patch] [SCSI] dc395x: uninitialized variable in device_alloc()

2013-02-13 Thread Oliver Neukum
On Monday 11 February 2013 22:03:18 Dan Carpenter wrote: > This bug was introduced back in bitkeeper days in 2003. We use > "dcb->dev_mode" before it has been initialized. > > Signed-off-by: Dan Carpenter Acked-by: Oliver Neukum -- To unsubscribe from this list: send the line "unsubscribe linux

[patch] [SCSI] dc395x: uninitialized variable in device_alloc()

2013-02-11 Thread Dan Carpenter
This bug was introduced back in bitkeeper days in 2003. We use "dcb->dev_mode" before it has been initialized. Signed-off-by: Dan Carpenter diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 865c64f..fed486bf 100644 --- a/drivers/scsi/dc395x.c +++ b/drivers/scsi/dc395x.c @@ -3747,

[PATCH 14/24][RFC]] dc395x: Use scsi_eh API for REQUEST_SENSE invocation

2008-02-04 Thread Boaz Harrosh
cmd->sense_buffer[13], - *((unsigned int *)(cmd->sense_buffer + 3)), - *((unsigned int *)(cmd->sense_buffer + 8))); - else - printk("sense=

Re: [PATCH -mm] DC395x SCSI driver: Shut up uninitialized variable build warning

2007-09-02 Thread Jeff Garzik
Satyam Sharma wrote: I'll post the info as a reply to the first mail in this series. I have fairly recent gcc (4.1.1) and I don't see us dropping support for it in the next few years. What's important is not support lifetime, but whether or not the warning persists through version 4.1.2, 4.1.3

Re: [PATCH -mm] DC395x SCSI driver: Shut up uninitialized variable build warning

2007-09-02 Thread Satyam Sharma
On Sun, 2 Sep 2007, Jeff Garzik wrote: > > Satyam Sharma wrote: > > drivers/scsi/dc395x.c: In function ‘dc395x_init_one’: > > drivers/scsi/dc395x.c:4272: warning: ‘ptr’ may be used uninitialized in this > > function > > > > has been verified to be a bogus warning. Let's shut it up. > > > > Sig

Re: [PATCH -mm] DC395x SCSI driver: Shut up uninitialized variable build warning

2007-09-02 Thread Jeff Garzik
Satyam Sharma wrote: drivers/scsi/dc395x.c: In function ‘dc395x_init_one’: drivers/scsi/dc395x.c:4272: warning: ‘ptr’ may be used uninitialized in this function has been verified to be a bogus warning. Let's shut it up. Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]> --- drivers/scsi/dc395

[PATCH -mm] DC395x SCSI driver: Shut up uninitialized variable build warning

2007-09-02 Thread Satyam Sharma
drivers/scsi/dc395x.c: In function ‘dc395x_init_one’: drivers/scsi/dc395x.c:4272: warning: ‘ptr’ may be used uninitialized in this function has been verified to be a bogus warning. Let's shut it up. Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]> --- drivers/scsi/dc395x.c |2 +- 1 file

Re: dc395x

2007-02-15 Thread Guennadi Liakhovetski
On Thu, 15 Feb 2007, Aldo Barreto wrote: > I'am trying to install Mandriva 2007 with kernel 2.6.17 in my system. It's > a Pentium IV P4P 800 ASSUS system with 1 Gb of memory and a scsi board > Tekram dc395. System doesn't end startup and syslog sends me a messagge: > kernel: drivers/scsi/dc395x.c

dc395x

2007-02-15 Thread Aldo Barreto
I'am trying to install Mandriva 2007 with kernel 2.6.17 in my system. It's a Pentium IV P4P 800 ASSUS system with 1 Gb of memory and a scsi board Tekram dc395. System doesn't end startup and syslog sends me a messagge: kernel: drivers/scsi/dc395x.c: Please, contact (your address). This occurs boot

Re: atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-09-05 Thread Guennadi Liakhovetski
Hi all I've been buggering the list with this ridiculous problem for quite some time now:-) I understand, it is too risky to apply an untested patch to mainline, but could we either 1) get it into -mm or 2) try to find some beta-testers by applying something like the below: Thanks Guennadi -

internal tape + external zip on TRM-S1040 (dc395x)

2005-08-15 Thread Guennadi Liakhovetski
10240 bytes tar: Error is not recoverable: exiting now and in dmesg: dc395x: eh_abort: (pid#37555) target=<06-0> cmd=c5c16b40 dc395x: eh_abort: Command in progress<6>dc395x: eh_abort: (pid#37556) target=<06-0> cmd=c5f6ed00 dc395x: eh_abort: Command was waiting dc395x: eh_abort:

Re: atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-08-08 Thread Guennadi Liakhovetski
On Sun, 7 Aug 2005, Mike Christie wrote: > Well, iscsi too, but there is the scatterwalk code which the crypto api > uses today and looks similar to what ide, libata, and scsi need. Ok, I see what you mean now. Well, my impression is that one could, certainly, merge the 2 APIs, but this would in

Re: atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-08-07 Thread Mike Christie
Guennadi Liakhovetski wrote: > On Sun, 7 Aug 2005, Mike Christie wrote: > > >>Guennadi Liakhovetski wrote: >> >>>Now, it would be best, I think, if somebody could review the patches to >>>dc395x and tmscsim. In case the 2 functions are correct, they

Re: atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-08-07 Thread Guennadi Liakhovetski
On Sun, 7 Aug 2005, Mike Christie wrote: > Guennadi Liakhovetski wrote: > > Now, it would be best, I think, if somebody could review the patches to > > dc395x and tmscsim. In case the 2 functions are correct, they could be > > included in a central file (scsi_lib?) for all

Re: atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-08-07 Thread Mike Christie
Guennadi Liakhovetski wrote: > Now, it would be best, I think, if somebody could review the patches to > dc395x and tmscsim. In case the 2 functions are correct, they could be > included in a central file (scsi_lib?) for all drivers, needing PIO (I would it be possible to m

atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-08-07 Thread Guennadi Liakhovetski
Hi all A problem has first been reported in Date: Thu, 6 Jan 2005 05:18:25 -0500 From: Andrew Schulman <[EMAIL PROTECTED]> Subject: dc395x: can't write to tape whereby a bug has become apparent in driver's virtual address calculation. I wrote a patch, which propagated into the

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-08-07 Thread Pierre Ossman
Guennadi Liakhovetski wrote: >So, now that we have somebody to test alternative patches, let's try it... >Please, first revert the first patch (apply with -R), and then apply the >second one. There, probably, will be offsets, don't worry about them. >Warning: untested. Please, try some read-onl

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-08-06 Thread Guennadi Liakhovetski
discussion that followed the review by Jens Axboe, who revealed its bogus nature, didn't produce a replacement patch, mainly because there wasn't anybody with dc395x and highmem, until you came...:-) I just forgot / didn't realise it actually made its way into the mainline... So,

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-08-05 Thread Pierre Ossman
Ok, I've now figured out where the bug appears. 2.6.12-rc4 runs fine while -rc5 does not. Rgds Pierre - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-28 Thread Randy.Dunlap
On Fri, 29 Jul 2005 01:05:48 +0200 Pierre Ossman wrote: > randy_dunlap wrote: > > > > >oh drat. Please test 2.6.12.2 with the following patch segment > >backed out (-R, reversed). I don't see any other patches that could > >be the cause. If this isn't the problem, I would have to begin > >to s

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-28 Thread Pierre Ossman
randy_dunlap wrote: > >oh drat. Please test 2.6.12.2 with the following patch segment >backed out (-R, reversed). I don't see any other patches that could >be the cause. If this isn't the problem, I would have to begin >to suspect some kind of toolchain problem. > > > It seems the blame fall

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-26 Thread randy_dunlap
On Tue, 26 Jul 2005 23:06:11 +0200 Pierre Ossman wrote: > randy_dunlap wrote: > > > > >The only 2 differences that I can see that would affect this > >(diff patch-2.6.12.1 vs. patch-2.6.1.2) are: (cut-n-paste, so > >has whitespace munging) > > > > > > > > Neither had any effect. :/ oh drat.

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-26 Thread Pierre Ossman
randy_dunlap wrote: > >The only 2 differences that I can see that would affect this >(diff patch-2.6.12.1 vs. patch-2.6.1.2) are: (cut-n-paste, so >has whitespace munging) > > > Neither had any effect. :/ Rgd Pierre - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in t

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-25 Thread randy_dunlap
On Tue, 26 Jul 2005 00:21:50 +0200 Pierre Ossman wrote: > randy_dunlap wrote: > > > > > > >That's a highmem bug. IIRC, Guennadi said that highmem does not > >(or may not) work correctly in this driver, so I should have > >asked you to test with HIGHMEM disabled so that the other bug > >can be

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-25 Thread Pierre Ossman
randy_dunlap wrote: > > >That's a highmem bug. IIRC, Guennadi said that highmem does not >(or may not) work correctly in this driver, so I should have >asked you to test with HIGHMEM disabled so that the other bug >can be addressed. > > > I have now tried 2.6.12{,.1,.2} and only 2.6.12.2 bre

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-22 Thread Pierre Ossman
I'm having some problems with your mailserver Randy. I'll cc the mailing list hoping you'll see this there. I get: <<< 550-Verification failed for <[EMAIL PROTECTED]> <<< 550-unrouteable mail domain "drzeus.cx" <<< 550 Sender verify failed As far as i know my MX records are completely correct.

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-22 Thread Pierre Ossman
randy_dunlap wrote: > >Does this happen on every boot? > > Yup >Please send your .config file (or put it on craffe.se). > > Included >Does this happen with othe kernel versions? > > Not that I've found. I could try compiling the currently running kernel (2.6.11.7) without highmem if you

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-21 Thread randy_dunlap
On Fri, 22 Jul 2005 01:51:34 +0200 Pierre Ossman wrote: > I have now tried with highmem disabled and the driver still crashes. See > the following image: > > http://craffe.se/dc395x_kernel_bug.jpg Hi Pierre, Does this happen on every boot? Please send your .config file (or put it on craffe.se)

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-21 Thread Pierre Ossman
I have now tried with highmem disabled and the driver still crashes. See the following image: http://craffe.se/dc395x_kernel_bug.jpg Rgds Pierre - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vg

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-15 Thread Pierre Ossman
Finally a dump with a smaller font so that the entire panic is visible: http://craffe.se/dc395x_panic.jpg Rgds Pierre - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-inf

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-14 Thread Pierre Ossman
Guennadi Liakhovetski wrote: >>127MB HIGHMEM available. >>896MB LOWMEM available. >> >> Quite right. The limit is slightly before 1 GB, not exactly at it. My bad. Rgds Pierre - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-14 Thread Guennadi Liakhovetski
On Thu, 14 Jul 2005, Pierre Ossman wrote: > Guennadi Liakhovetski wrote: > > > > >Have you managed to get netconsole running? Do you have no chance at all > >to use a serial console? You are, perhaps, the only / last user of dc395x > >on a high-mem machine,

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-13 Thread randy_dunlap
On Thu, 14 Jul 2005 01:57:54 +0200 Pierre Ossman wrote: > Guennadi Liakhovetski wrote: > > > > >Have you managed to get netconsole running? Do you have no chance at all > >to use a serial console? You are, perhaps, the only / last user of dc395x > >on a high-mem m

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-13 Thread Pierre Ossman
Guennadi Liakhovetski wrote: > >Have you managed to get netconsole running? Do you have no chance at all >to use a serial console? You are, perhaps, the only / last user of dc395x >on a high-mem machine, the driver is known to have a problem there, >although from your dump I ca

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-13 Thread Guennadi Liakhovetski
have no chance at all to use a serial console? You are, perhaps, the only / last user of dc395x on a high-mem machine, the driver is known to have a problem there, although from your dump I cannot see yet if that is indeed the problem. As someone also already suggested, you could also just tr

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-10 Thread Pierre Ossman
randy_dunlap wrote: >Are you using netcat on the receive side? > > > I've been using tcpdump and not a single packet eminates from the machine when printk:s show up. >Matt Mackall says that a common problem is running kernels with >a log low level: > >Kernel command line: ro root=LABEL=/ rhgb

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-10 Thread randy_dunlap
On Sun, 10 Jul 2005 19:22:48 +0200 Pierre Ossman wrote: | I've tried to get it running on three separate machines now with no | success (each running a different kernel version), so I'm starting to | suspect I'm doing something wrong here. I've used the following line to | load the module: | | mo

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-10 Thread Pierre Ossman
I've tried to get it running on three separate machines now with no success (each running a different kernel version), so I'm starting to suspect I'm doing something wrong here. I've used the following line to load the module: modprobe netconsole netconsole=@/,@10.8.0.168/ I've tried changing the

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-10 Thread randy_dunlap
On Sun, 10 Jul 2005 16:01:29 +0200 Pierre Ossman wrote: | randy_dunlap wrote: | | >3c59x ?? | >3c59x.c has CONFIG_NET_POLL_CONTROLLER code in it. | >I would expect it to work since it's a fairly common NIC, but I | >can't vouch for it. | >Did you enable CONFIG_NETPOLL in your kernel .config? | >

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-10 Thread Pierre Ossman
randy_dunlap wrote: >3c59x ?? >3c59x.c has CONFIG_NET_POLL_CONTROLLER code in it. >I would expect it to work since it's a fairly common NIC, but I >can't vouch for it. >Did you enable CONFIG_NETPOLL in your kernel .config? > > > Yup. It's enabled. NETPOLL_RX is not enabled though. Is that neede

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-09 Thread randy_dunlap
On Sun, 10 Jul 2005 03:49:08 +0200 Pierre Ossman wrote: | randy_dunlap wrote: | | >Pierre, | > | >Can you capture the complete panic message using serial console or | >netconsole? or at least use a smaller font on the console so that | >we can see the entire panic message, as some critical parts

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-09 Thread Pierre Ossman
randy_dunlap wrote: >Pierre, > >Can you capture the complete panic message using serial console or >netconsole? or at least use a smaller font on the console so that >we can see the entire panic message, as some critical parts of it >have scrolled off the top of the screen. > > > Hmm... I made

Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-09 Thread randy_dunlap
, 09 Jul 2005 23:48:43 +0200 From: Pierre Ossman <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: LKML Subject: Kernel panic with dc395x in 2.6.12.2 I upgraded a machine from 2.6.11.7 to 2.6.12.2 today and the only thanks I got was a brand new kernel panic. From the backtrace it seems that the

Re: [PATCH] dc395x: Fix support for highmem

2005-04-22 Thread Jens Axboe
On Thu, Apr 21 2005, Guennadi Liakhovetski wrote: > +static void *dc390_kmap_atomic_sg(struct scatterlist *sg, int sg_count, > size_t offset, size_t *len) > +{ > + int i; > + size_t sg_len = 0; > + > + for (i = 0; i < sg_count; i++) { > + sg_len += sg[i].length; > +

Re: [PATCH] dc395x: Fix support for highmem

2005-04-21 Thread Guennadi Liakhovetski
Hi again A patch to tmscsim.c, removing bus_to_virt() and, while at it, cleaning up cpu / le32 conversions, could look something like this. Notice, it uses the same <...>_k(un)map_atomic_sg() as proposed for dc395x, so, certainly this is not a final patch - in the end those function

Re: [PATCH] dc395x: Fix support for highmem

2005-04-09 Thread Guennadi Liakhovetski
On Thu, 31 Mar 2005 [EMAIL PROTECTED] wrote: > On Wed, 30 Mar 2005, James Bottomley wrote: > > > On Wed, 2005-03-30 at 23:22 +0200, Guennadi Liakhovetski wrote: > > > What is going to happen to this stuff? The current Linus' tree contains a > > > brok

Re: [PATCH] dc395x: Fix support for highmem

2005-03-31 Thread gl
On Wed, 30 Mar 2005, James Bottomley wrote: > On Wed, 2005-03-30 at 23:22 +0200, Guennadi Liakhovetski wrote: > > What is going to happen to this stuff? The current Linus' tree contains a > > broken (by me:-() dc395x, other drivers (including tmscsim) would benefit >

Re: [PATCH] dc395x: Fix support for highmem

2005-03-30 Thread James Bottomley
On Wed, 2005-03-30 at 23:22 +0200, Guennadi Liakhovetski wrote: > What is going to happen to this stuff? The current Linus' tree contains a > broken (by me:-() dc395x, other drivers (including tmscsim) would benefit > from a generic API. I understand, the drivers are not top i

Re: [PATCH] dc395x: Fix support for highmem

2005-03-30 Thread Guennadi Liakhovetski
Hi What is going to happen to this stuff? The current Linus' tree contains a broken (by me:-() dc395x, other drivers (including tmscsim) would benefit from a generic API. I understand, the drivers are not top importance, but still. I guess, if nothing happens, I'll just have to subm

Re: [PATCH] dc395x: Fix support for highmem

2005-03-21 Thread gl
> sg_map_each_entry(sglist, entries, sg, ouput_ptr, flags) { > > > /* transfer sg_virt_len(sg) to/from output_ptr */ > > > } > > > > > > that maps each entry successively. > > > > Well, I don't know how and when o

Re: [PATCH] dc395x: Fix support for highmem

2005-03-21 Thread Jens Axboe
r in the thread, you need to do > > something ala > > > > sg_map_each_entry(sglist, entries, sg, ouput_ptr, flags) { > > /* transfer sg_virt_len(sg) to/from output_ptr */ > > } > > > > that maps each entry successively. > > Well, I don't know

Re: [PATCH] dc395x: Fix support for highmem

2005-03-21 Thread gl
/* transfer sg_virt_len(sg) to/from output_ptr */ > } > > that maps each entry successively. Well, I don't know how and when other drivers use / need this mapping, in dc395x and tmscsim you just occasionally need to transfer a couple of bytes per PIO, so, it would be a waste to

Re: [PATCH] dc395x: Fix support for highmem

2005-03-20 Thread Jens Axboe
On Sun, Mar 20 2005, Guennadi Liakhovetski wrote: > On Sun, 20 Mar 2005, Christoph Hellwig wrote: > > > On Wed, Mar 16, 2005 at 06:04:17PM +0100, Jens Axboe wrote: > > > On Wed, Mar 16 2005, Christoph Hellwig wrote: > > > > On Wed, Mar 16, 2005 at 05:53:39PM +0100, Jens Axboe wrote: > > > > > The

Re: [PATCH] dc395x: Fix support for highmem

2005-03-20 Thread Guennadi Liakhovetski
On Sun, 20 Mar 2005, Christoph Hellwig wrote: > On Wed, Mar 16, 2005 at 06:04:17PM +0100, Jens Axboe wrote: > > On Wed, Mar 16 2005, Christoph Hellwig wrote: > > > On Wed, Mar 16, 2005 at 05:53:39PM +0100, Jens Axboe wrote: > > > > The list doesn't really need dma mapping at that point, the proble

Re: [PATCH] dc395x: Fix support for highmem

2005-03-20 Thread Christoph Hellwig
On Wed, Mar 16, 2005 at 06:04:17PM +0100, Jens Axboe wrote: > On Wed, Mar 16 2005, Christoph Hellwig wrote: > > On Wed, Mar 16, 2005 at 05:53:39PM +0100, Jens Axboe wrote: > > > The list doesn't really need dma mapping at that point, the problem here > > > is that the driver needs to punt to pio mo

Re: [PATCH] dc395x: Fix support for highmem

2005-03-17 Thread Guennadi Liakhovetski
Hi Here's a fixed patch - thanks to everybody for reviewing and commenting! However, if it is decided to implement helper functions, as suggested by Christoph and others, feel free to drop it. There, probably, was only 1 user of this card with highmem and he retired his card too:-) Thanks Guen

Re: [PATCH] dc395x: Fix support for highmem

2005-03-17 Thread gl
; > pSRB->SGBusAddr = cpu_to_le32(pci_dma_lo32(sg_dma_address(psgl))); > > > > I am somewhat confused. In both cases these are bus addresses, right? and > > sg_dma_address() gives already the bus address, so, both are wrong? > > The only reason that would make sens

Re: [PATCH] dc395x: Fix support for highmem

2005-03-17 Thread Jens Axboe
On Thu, Mar 17 2005, [EMAIL PROTECTED] wrote: > Hi > > On Thu, 17 Mar 2005, Jens Axboe wrote: > > > On Wed, Mar 16 2005, Guennadi Liakhovetski wrote: > > > > > > On Wed, 16 Mar 2005, Jens Axboe wrote: > > > > The kmap() isn't just inefficient, it's a problem to iterate over the sg > > > > list an

Re: [PATCH] dc395x: Fix support for highmem

2005-03-17 Thread gl
Hi On Thu, 17 Mar 2005, Jens Axboe wrote: > On Wed, Mar 16 2005, Guennadi Liakhovetski wrote: > > > > On Wed, 16 Mar 2005, Jens Axboe wrote: > > > The kmap() isn't just inefficient, it's a problem to iterate over the sg > > > list and kmap all the pages. That is illegal. > > > > Hm, what do you m

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Jens Axboe
On Wed, Mar 16 2005, Guennadi Liakhovetski wrote: > Hi > > Thanks for reviewing this patch! > > On Wed, 16 Mar 2005, Jens Axboe wrote: > > > On Wed, Mar 16 2005, James Bottomley wrote: > ... > > > I agree the kmap is inefficient. The efficient alternative is to do > > > dma_map_sg() and use kma

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Guennadi Liakhovetski
Hi Thanks for reviewing this patch! On Wed, 16 Mar 2005, Jens Axboe wrote: > On Wed, Mar 16 2005, James Bottomley wrote: ... > > I agree the kmap is inefficient. The efficient alternative is to do > > dma_map_sg() and use kmap_atomic() in the interrupt routine where we do > > the PIO cleanup---

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Jens Axboe
On Wed, Mar 16 2005, Mike Christie wrote: > Jens Axboe wrote: > >On Wed, Mar 16 2005, Christoph Hellwig wrote: > > > >>On Wed, Mar 16, 2005 at 05:53:39PM +0100, Jens Axboe wrote: > >> > >>>The list doesn't really need dma mapping at that point, the problem here > >>>is that the driver needs to punt

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Mike Christie
Jens Axboe wrote: On Wed, Mar 16 2005, Christoph Hellwig wrote: On Wed, Mar 16, 2005 at 05:53:39PM +0100, Jens Axboe wrote: The list doesn't really need dma mapping at that point, the problem here is that the driver needs to punt to pio mode because of foo. So calling pci/dma_map_* is pointless, si

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Jens Axboe
On Wed, Mar 16 2005, Christoph Hellwig wrote: > On Wed, Mar 16, 2005 at 05:53:39PM +0100, Jens Axboe wrote: > > The list doesn't really need dma mapping at that point, the problem here > > is that the driver needs to punt to pio mode because of foo. So calling > > pci/dma_map_* is pointless, since

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Christoph Hellwig
On Wed, Mar 16, 2005 at 05:53:39PM +0100, Jens Axboe wrote: > The list doesn't really need dma mapping at that point, the problem here > is that the driver needs to punt to pio mode because of foo. So calling > pci/dma_map_* is pointless, since the CPU will have to do the transfer > anyways. What t

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Jens Axboe
On Wed, Mar 16 2005, Matthew Wilcox wrote: > On Wed, Mar 16, 2005 at 05:04:47PM +0100, Jens Axboe wrote: > > The kmap() isn't just inefficient, it's a problem to iterate over the sg > > list and kmap all the pages. That is illegal. > > > > But it's not so tricky to get right, if the punting just h

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Matthew Wilcox
On Wed, Mar 16, 2005 at 05:04:47PM +0100, Jens Axboe wrote: > The kmap() isn't just inefficient, it's a problem to iterate over the sg > list and kmap all the pages. That is illegal. > > But it's not so tricky to get right, if the punting just happens in the > isr. Basically just iterate over ever

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Jens Axboe
On Wed, Mar 16 2005, James Bottomley wrote: > On Wed, 2005-03-16 at 08:58 +0100, Jens Axboe wrote: > > Guys, who reviewed this? It looks completely bogus, using kmap() for tha > > entire sg list is just wrong and can deadlock easily. The proper way is > > of course to skip the virtual address requi

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread James Bottomley
On Wed, 2005-03-16 at 08:58 +0100, Jens Axboe wrote: > Guys, who reviewed this? It looks completely bogus, using kmap() for tha > entire sg list is just wrong and can deadlock easily. The proper way is > of course to skip the virtual address requirement and dma map the sg > array properly. I suppo

Re: [PATCH] dc395x: Fix support for highmem

2005-03-15 Thread Jens Axboe
On Thu, Mar 03 2005, Linux Kernel Mailing List wrote: > ChangeSet 1.1982.29.77, 2005/03/03 10:41:40+02:00, [EMAIL PROTECTED] > > [PATCH] dc395x: Fix support for highmem > > From: Guennadi Liakhovetski <[EMAIL PROTECTED]> > > Removes t

[PATCH] dc395x: fix section references

2005-02-27 Thread Randy.Dunlap
dc395x scsi driver makes many references to __init functions & __initdata that should be __devinit & __devinitdata. Error: ./drivers/scsi/dc395x.o .text refers to 21ef R_X86_64_PC32 .init.text+0x00b4 Error: ./drivers/scsi/dc395x.o .text refers to

  1   2   >