[PATCH 2/32] ide-tape: remove dead code

2008-01-27 Thread Borislav Petkov
Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 34 -- 1 files changed, 0 insertions(+), 34 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 552cfed..3bedeb8 100644 --- a/drivers/ide/ide-tape.c +++

[PATCH 4/32] ide-tape: remove struct idetape_mode_parameter_header_t

2008-01-27 Thread Borislav Petkov
Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 40 +++- 1 files changed, 15 insertions(+), 25 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 173ac0d..0542b07 100644 --- a/drivers/ide/ide-tape.c

[PATCH 0/32] ide-tape redux v1

2008-01-27 Thread Borislav Petkov
Hi Bart, after a lot of hammering ide-tape got pimped pretty considerably (ca. 600 lines shorter and slicker :)). I'm sure there's more to be done like, e.g. replacing the BKL in idetape_write_release() with finer-grained locking etc, probably also some pipeline improvements, removal of OnStream

[PATCH 3/32] ide-tape: remove struct idetape_request_sense_result_t

2008-01-27 Thread Borislav Petkov
Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 83 +++ 1 files changed, 27 insertions(+), 56 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 3bedeb8..173ac0d 100644 ---

[PATCH 5/32] ide-tape: remove IDETAPE_DEBUG_INFO

2008-01-27 Thread Borislav Petkov
The device capabilities are probed for during device initialization so this info is available through proc/ioctl() und it is redundant here. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 74 1 files changed, 0

[PATCH 1/32] ide-tape: move historical changelog to Documentation/ide/ChangeLog.ide-tape.1995-2002

2008-01-27 Thread Borislav Petkov
Also, cleanup whitespace and update comments. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- Documentation/ide/ChangeLog.ide-tape.1995-2002 | 405 +++ drivers/ide/ide-tape.c | 414 +--- 2 files changed, 409 insertions(+),

[PATCH 27/32] ide-tape: remove idetape_increase_max_pipeline_stages()

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] This function was being used only at one place so fold it in there. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 36 1 files changed, 16 insertions(+), 20 deletions(-) diff --git

[PATCH 29/32] ide-tape: remove mtio.h related comments

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Those are already in mtio.h. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 96 +++ 1 files changed, 15 insertions(+), 81 deletions(-) diff --git a/drivers/ide/ide-tape.c

[PATCH 16/32] ide-tape: use generic scsi commands

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Also, remove those which weren't used. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 80 ++-- 1 files changed, 30 insertions(+), 50 deletions(-) diff --git

[PATCH 13/32] ide-tape: remove struct idetape_parameter_block_descriptor_t

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Also, shorten function name idetape_get_blocksize_from_block_descriptor() and move its definition up thereby getting rid of its forward declaration. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 68

[PATCH 12/32] ide-tape: remove struct idetape_medium_partition_page_t

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] There should be no functional changes resulting from this patch. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 19 --- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/drivers/ide/ide-tape.c

[PATCH 09/32] ide-tape: remove struct idetape_inquiry_result_t

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] There should be no functional changes resulting from this patch. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 51 --- 1 files changed, 13 insertions(+), 38 deletions(-) diff

[PATCH 10/32] ide-tape: remove struct idetape_read_position_result_t

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] There should be no functional changes resulting from this patch. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 49 +-- 1 files changed, 18 insertions(+), 31 deletions(-) diff

[PATCH 06/32] ide-tape: remove IDETAPE_DEBUG_BUGS

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 42 ++ 1 files changed, 2 insertions(+), 40 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index

[PATCH 08/32] ide-tape: remove struct idetape_capabilities_page_t

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] All those 2-byte values denoting the different capabilities are being written to the local copy of the caps buffer without being converted to big endian for simplicity of usage and shorter code later. Also, we add some comments stating which are the fields

[PATCH 07/32] ide-tape: refactor the debug logging facility

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Teach the debug logging macro to differentiate different log levels based on the type of debug level enabled specifically instead of a threshold-based one. Thus, convert tape-debug_level to a bitmask that is written to over /proc. Also, - Cleanup and

[PATCH 11/32] ide-tape: remove struct idetape_data_compression_page_t

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] There should be no functional changes resulting from this patch. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 19 --- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/drivers/ide/ide-tape.c

[PATCH 15/32] ide-tape: remove struct idetape_block_size_page_t

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 02f5d5e..0708049 100644 ---

[PATCH 14/32] ide-tape: remove structs os_partition_t, os_dat_entry_t, os_dat_t

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] They seem just to sit there completely unused. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 37 - 1 files changed, 0 insertions(+), 37 deletions(-) diff --git a/drivers/ide/ide-tape.c

[PATCH 17/32] ide-tape: remove EXPERIMENTAL driver status

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] ide-tape has depended on EXPERIMENTAL for ages. Change that since the driver is being only maintained now. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/Kconfig |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git

[PATCH 18/32] ide-tape: use generic byteorder macros

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] This is not a network driver. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index

[PATCH 21/32] ide-tape: idetape_chrdev_direction_t:shorten enum names

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 60 --- 1 files changed, 31 insertions(+), 29 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index

[PATCH 19/32] ide-tape: remove unused sense packet commands.

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c |9 + 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 5a18158..fd7eeea 100644 ---

[PATCH 20/32] ide-tape: make function name more accurate

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] idetape_active_next_stage() was rather ambiguous wrt its purpose. Make that more explicit and remove superfluous comment. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c |9 +++-- 1 files changed, 3 insertions(+), 6

[PATCH 31/32] ide-tape: remove idetape_config_t typedef

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Since this is used only in idetape_blkdev_ioctl(), remove the typedef and make the struct function-local. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 23 +++ 1 files changed, 11 insertions(+), 12

[PATCH 28/32] ide-tape: shorten some function names

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index f8a4b27..d4c4255 100644

[RFC PATCH 26/32] ide-tape: remove packet command and struct request memory buffers

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Bart, this one is rather intrusive so please doublecheck it wrt to kzalloc/kfree balancing on all the codepaths so that we don't leak memory all over the place. I free all the alloc'd pc's and rq's in idetape_end_request() which is called from the callback

[PATCH 23/32] ide-tape: struct idetape_tape_t: shorten member names

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Some member names are self-explanatory, so remove their respective comments. Also, explain the exact purpose of struct members in comments in the struct definition instead of using excessively long member names thus replacing then with a shorter, more handy

[PATCH 22/32] ide-tape: struct idetape_packet_command_s: shorten member names

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 88 --- 1 files changed, 45 insertions(+), 43 deletions(-) diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index

[PATCH 24/32] ide-tape: remove unreachable code chunk

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] tape-speed_ctl is set to 1 in idetape_setup(), but, in calculate_speeds() its value is tested for being 0, 1, or 2. Remove the if-branches where tape-speed_ctl != 1 since they are never executed. Also, rename calculate_speeds() by adding driver's prefix as

[PATCH 30/32] ide-tape: remove atomic test/set macros

2008-01-27 Thread Borislav Petkov
From: Borislav Petkov [EMAIL PROTECTED] Also remove flag IDETAPE_READ_ERROR since it is unused. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 222 +--- 1 files changed, 117 insertions(+), 105 deletions(-) diff --git

Re: [PATCH 06/32] ide-tape: remove IDETAPE_DEBUG_BUGS

2008-01-27 Thread Borislav Petkov
Hi Bart, sorry for that thread split but i had to resend those remaining patches with gmail because yahoo have a restriction on the number of mails one can send per day :( -- Regards/Gruß, Boris. - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message

[PATCH] Use on-board instead of built-in in config options

2008-01-27 Thread Frans Pop
On Saturday 26 January 2008, Bartlomiej Zolnierkiewicz wrote: On Saturday 26 January 2008, Jan Engelhardt wrote: On Jan 26 2008 21:31, Frans Pop wrote: config BLK_DEV_IDE_PMAC - bool Builtin PowerMac IDE support + tristate Builtin PowerMac IDE support this change is

No DMA on a Dell Latitude D820 with 2.6.20

2008-01-27 Thread Mikel Olasagasti
Hi, I'm having problems with my disk on a Latitude D820 after upgrading kernel to any 2.6.20 No DMA support can be activated, giving me a very poor I/O performance. I'm using ata_piix driver on a ICH7 system with no AHCI support AFAIK I opened a thread[1] on gentoo-forums (the distro I use)

Re: No DMA on a Dell Latitude D820 with 2.6.20

2008-01-27 Thread Mark Lord
Mikel Olasagasti wrote: Hi, I'm having problems with my disk on a Latitude D820 after upgrading kernel to any 2.6.20 No DMA support can be activated, giving me a very poor I/O performance. I'm using ata_piix driver on a ICH7 system with no AHCI support AFAIK .. Actually, no. You are really

Re: Linux 2.6.24 sata_promise SATA300TX4 problems

2008-01-27 Thread Peter Favrholdt
Hi Mikael, Thanks! It works perfectly at 1.5Gbps :-) I think that because it fails at 3Gbps it might eventually fail at 1.5Gbps also... And the error handling was not robust (in my setup with these drives at 3Gbps). If I can help investigate further, I'm happy to do that. I have a spare

2.6.24 sata_sil Sil3114 drive clicking / restarting?

2008-01-27 Thread Andrew Paprocki
I've been noticing something strange on an AMD Geode LX board that I have.. I have two SATA drives connected to the onboard Sil3114 chip, and the drives appear to be continually restarting (soft resetting?) during normal operation when nothing at all is happening on the machine. You can hear the

Re: 2.6.24 sata_sil Sil3114 drive clicking / restarting?

2008-01-27 Thread Jim Paris
Andrew Paprocki wrote: I've been noticing something strange on an AMD Geode LX board that I have.. I have two SATA drives connected to the onboard Sil3114 chip, and the drives appear to be continually restarting (soft resetting?) during normal operation when nothing at all is happening on the

Re: 2.6.24 sata_sil Sil3114 drive clicking / restarting?

2008-01-27 Thread Andrew Paprocki
Both drives already had PM disabled, visible in hdparm -i: AdvancedPM=yes: disabled (255) WriteCache=enabled Looking at the smart reporting, it is showing both drives have a FAILING_NOW condition for Seek_Error_Rate. I don't know what to believe, because it seems like whatever drives I attach to

Re: [PATCH 1/32] ide-tape: move historical changelog to Documentation/ide/ChangeLog.ide-tape.1995-2002

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: Also, cleanup whitespace and update comments. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] applied with some changes --- Documentation/ide/ChangeLog.ide-tape.1995-2002 | 405 +++ drivers/ide/ide-tape.c

Re: [PATCH 3/32] ide-tape: remove struct idetape_request_sense_result_t

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 83 +++ 1 files changed, 27 insertions(+), 56 deletions(-) applied with minor changes diff --git

Re: [PATCH 06/32] ide-tape: remove IDETAPE_DEBUG_BUGS

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] applied --- drivers/ide/ide-tape.c | 42 ++ 1 files changed, 2 insertions(+), 40 deletions(-) diff --git

Re: [PATCH 22/32] ide-tape: struct idetape_packet_command_s: shorten member names

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 88 --- 1 files changed, 45 insertions(+), 43 deletions(-) diff --git

Re: [PATCH 10/32] ide-tape: remove struct idetape_read_position_result_t

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] There should be no functional changes resulting from this patch. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 49 +--

Re: [PATCH 0/32] ide-tape redux v1

2008-01-27 Thread Bartlomiej Zolnierkiewicz
Hi, On Sunday 27 January 2008, Borislav Petkov wrote: Hi Bart, after a lot of hammering ide-tape got pimped pretty considerably (ca. 600 lines shorter and slicker :)). I'm sure there's more to be done like, e.g. replacing Good work. :) the BKL in idetape_write_release() with

Re: [PATCH 25/32] ide-tape: simplify code branching in the interrupt handler

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] ... by adding a new typedef function pointer idetape_io_buf in order to call the proper buffer i/o handler depending on the data direction. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] ---

Re: [PATCH 31/32] ide-tape: remove idetape_config_t typedef

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] Since this is used only in idetape_blkdev_ioctl(), remove the typedef and make the struct function-local. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] applied --- drivers/ide/ide-tape.c |

Re: [PATCH 07/32] ide-tape: refactor the debug logging facility

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] Teach the debug logging macro to differentiate different log levels based on the type of debug level enabled specifically instead of a threshold-based one. Thus, convert tape-debug_level to a bitmask

Re: [PATCH 08/32] ide-tape: remove struct idetape_capabilities_page_t

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] All those 2-byte values denoting the different capabilities are being written to the local copy of the caps buffer without being converted to big endian for simplicity of usage and shorter code later.

Re: [PATCH 29/32] ide-tape: remove mtio.h related comments

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] Those are already in mtio.h. Signed-off-by: Borislav Petkov [EMAIL PROTECTED] applied --- drivers/ide/ide-tape.c | 96 +++ 1 files changed, 15

Re: [PATCH 24/32] ide-tape: remove unreachable code chunk

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] tape-speed_ctl is set to 1 in idetape_setup(), but, in calculate_speeds() its value is tested for being 0, 1, or 2. Remove the if-branches where tape-speed_ctl != 1 since they are never executed.

Re: [PATCH 21/32] ide-tape: idetape_chrdev_direction_t:shorten enum names

2008-01-27 Thread Bartlomiej Zolnierkiewicz
On Sunday 27 January 2008, Borislav Petkov wrote: From: Borislav Petkov [EMAIL PROTECTED] Signed-off-by: Borislav Petkov [EMAIL PROTECTED] --- drivers/ide/ide-tape.c | 60 --- 1 files changed, 31 insertions(+), 29 deletions(-) diff --git

Re: libata pm

2008-01-27 Thread [EMAIL PROTECTED]
Am So, 27.01.2008, 01:38, schrieb [EMAIL PROTECTED]: Am Sa, 26.01.2008, 23:33, schrieb Tejun Heo: [EMAIL PROTECTED] wrote: I could solve the problem by ncq blacklisting the Maxtor 6V300F0 devices in libata-core.c That's a strange story. The reported error was PHY readiness changed and

Re: sata_sil24 / Alpha / 4726 PMP issue ..

2008-01-27 Thread Tejun Heo
Thomas Evans wrote: Tejun and all - I have a new log - I got somewhat further by setting this bit when init'd via HOST_CTRL: Bit [28]: PERR Rpt Dsbl (R/W) – PERR Report Disable. This bit, when set to one, disables reporting of PCI bus parity errors to the Command Execution State Machine

Re: [PATCH 1/5] libata: prefer hardreset

2008-01-27 Thread Tejun Heo
Tejun Heo wrote: - /* prereset() might have modified ehc-i.action */ - if (ehc-i.action ATA_EH_HARDRESET) - reset = hardreset; - else if (ehc-i.action ATA_EH_SOFTRESET) - reset = softreset; - else { Seems we'll need this chunk. Will post updated

Re: [PATCH 1/5] libata: prefer hardreset

2008-01-27 Thread Tejun Heo
Tejun Heo wrote: Tejun Heo wrote: -/* prereset() might have modified ehc-i.action */ -if (ehc-i.action ATA_EH_HARDRESET) -reset = hardreset; -else if (ehc-i.action ATA_EH_SOFTRESET) -reset = softreset; -else { Seems we'll need this chunk. Will

Re: sata_sil24 / Alpha / 4726 PMP issue ..

2008-01-27 Thread Thomas Evans
I hate blasting the the list with every minute detail. On 1/27/08, Tejun Heo [EMAIL PROTECTED] wrote: Hmmm... That's strange. If PERR makes a difference, it means PCI bus side is contributing to the problem but only when PMP is attached while directly attached drive works just fine? I need