issue queue. Clarify this logic.
Signed-off-by: Finn Thain
Reviewed-by: Hannes Reinecke
Tested-by: Ondrej Zary
Tested-by: Michael Schmitz
---
Good code style would be,
if (this) {
/* do stuff */
}
rather than,
if (!this) {
erent 5380 hardware implementations.
Signed-off-by: Finn Thain
Reviewed-by: Hannes Reinecke
Tested-by: Ondrej Zary
Tested-by: Michael Schmitz
---
Changed since v1:
- Don't rely on loops_per_jiffy to estimate register access speed, measure
it instead.
Changed since v2:
- As suggeste
Remove the duplicate write to the Select Enable Register that appeared
in v1.1.38.
Also remove the redundant write to Initiator Command Register prior to
calling do_abort().
Signed-off-by: Finn Thain
Reviewed-by: Hannes Reinecke
Tested-by: Ondrej Zary
Tested-by: Michael Schmitz
---
drivers
On Sat, 2 Jan 2016, Joe Perches wrote:
> On Sun, 2016-01-03 at 16:06 +1100, Finn Thain wrote:
> > Hanging indentation was a poor choice for the text inside comments. It
> > has been used in the wrong places and done badly elsewhere. There is
> > little consistency within
On Sun, 24 Jan 2016, Geert Uytterhoeven wrote:
> Hi Finn,
>
> On Sun, Jan 3, 2016 at 6:05 AM, Finn Thain wrote:
> > Allow target selection to fail with a timeout instead of waiting in
> > infinite loops. This gets rid of the unused NCR_TIMEOUT macro, it is more
> &g
On Mon, 25 Jan 2016, Geert Uytterhoeven wrote:
> > In principle I think that Linux drivers should not carry workarounds
> > for emulators.
>
> Please consider ARAnyM is the current m68k workhorse, so it would be
> nice to handle this someway.
AFAICT atari_scsi on aranym never did anything use
Fixes: 707d62b37fbb ("ncr5380: Fix EH during arbitration and selection")
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |2 +-
drivers/scsi/atari_NCR5380.c |2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: linux/drivers/scsi
an Carpenter
Fixes: 62717f537e1b ("ncr5380: Implement new eh_bus_reset_handler")
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 19 ---
drivers/scsi/atari_NCR5380.c | 19 ---
2 files changed, 24 insertions(+), 14 deleti
Please ignore this patch. It isn't sufficient to fix the problem. I'll
send another patch that does fix it.
On Tue, 26 Jan 2016, Finn Thain wrote:
> Fixes: 707d62b37fbb ("ncr5380: Fix EH during arbitration and selection")
> Signed-off-by: Finn Thain
>
&g
ot;ncr5380: Fix autosense bugs")
Reported-and-tested-by: Michael Schmitz
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |4 ++--
drivers/scsi/atari_NCR5380.c |4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
Index: linux/dr
These patches fix some exception handling and autosense bugs that I
accidentally introduced in v4.5-rc1.
The error recovery and autosense code in these drivers has been unstable
for a long time. Despite that, v4.5-rc1 shows a regression in as much as
it exposes a bug in the aranym emulator. This
Add missing checks for EH abort during arbitration and selection.
Rework the handling of NCR5380_select() result to improve clarity.
Fixes: 707d62b37fbb ("ncr5380: Fix EH during arbitration and selection")
Tested-by: Michael Schmitz
Signed-off-by: Finn Thain
---
drivers/scsi
eh_bus_reset_handler")
Tested-by: Michael Schmitz
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 19 ---
drivers/scsi/atari_NCR5380.c | 19 ---
2 files changed, 24 insertions(+), 14 deletions(-
5d40d ("ncr5380: Implement new eh_abort_handler")
Reported-and-tested-by: Michael Schmitz
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 16
drivers/scsi/atari_NCR5380.c | 16
2 files changed, 16 insertions(+), 16 deletions(-)
Index
the ML may send it back to the LLD via via scsi_eh_get_sense().
Fix this and also fix two error paths, so that commands get forgotten iff
completed.
Fixes: 8b00c3d5d40d ("ncr5380: Implement new eh_abort_handler")
Tested-by: Michael Schmitz
Signed-off-by: Finn Thain
---
drivers/scsi/NC
eported-and-tested-by: Michael Schmitz
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 16 +---
drivers/scsi/atari_NCR5380.c | 16 +---
2 files changed, 18 insertions(+), 14 deletions(-)
Index
James, would you please review and ack this patch, and patch 01/25 also?
On Sun, 23 Aug 2015, Finn Thain wrote:
> By implementing an arch_nvram_ops struct, any platform can re-use the
> drivers/char/nvram module without needing any arch-specific code
> in that module. Atari doe
. Replace this
validate-checksum-and-read-byte sequence with the equivalent
rtc_nvram_ops.read() call and remove the now unused functions.
Signed-off-by: Finn Thain
Tested-by: Christian T. Steigies
Acked-by: Geert Uytterhoeven
---
The advantage of the new ops struct over the old global nvram_
the valkyriefb driver with powerpc, and since that driver uses
NVRAM, it is affected by CONFIG_ATARI_SCSI, because of the use of
"select NVRAM".
Adopt the powerpc convention on m68k to avoid surprises.
Signed-off-by: Finn Thain
Tested-by: Christian T. Steigies
---
This patch temporaril
Remove the HOSTNO macro that is peculiar to atari_NCR5380.c and
contributes to the problem of divergence of the NCR5380 core drivers.
Keep NCR5380.c in sync.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 17 +
drivers/scsi/atari_NCR5380.c | 23
addressed in a subsequent patch.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 155 ++
drivers/scsi/atari_NCR5380.c | 157 ++-
2 files changed, 282 insertions(+), 30 deletions(-)
Index: linux/drivers
NDEBUG_NO_DATAOUT should not disable DATA IN phases too. Fix this.
(This bug has long been fixed in atari_NCR5380.c.)
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux/drivers/scsi/NCR5380.c
his and
cleanup some obsolete comments.
Signed-off-by: Finn Thain
---
drivers/scsi/atari_NCR5380.c | 14 ++
1 file changed, 2 insertions(+), 12 deletions(-)
Index: linux/drivers/scsi/atari_NCR5380.c
===
--- lin
Add missing .module initializer. Use distinct .proc_name values for the
g_NCR5380 and g_NCR5380_mmio modules. Remove pointless CAN_QUEUE and
CMD_PER_LUN override macros. Cleanup whitespace and code style.
Signed-off-by: Finn Thain
---
drivers/scsi/atari_scsi.c |2 +-
drivers/scsi
Remove unused includes (stat.h, signal.h, proc_fs.h) and move includes
needed by the core drivers into the common header (delay.h etc).
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |2 --
drivers/scsi/NCR5380.h |4
drivers/scsi/arm/cumana_1.c |4
The atari_NCR5380.c core driver lacks the DTC special case found in
NCR5380.c. Add this special case. This reduces divergence between them
and allows drivers like dmx3191d to make use of atari_NCR5380.c which is
helpful for testing.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c
: Finn Thain
---
drivers/scsi/NCR5380.c | 50 ++-
drivers/scsi/atari_NCR5380.c | 39 +++--
2 files changed, 72 insertions(+), 17 deletions(-)
Index: linux/drivers/scsi/atari_NCR5380.c
debugging, the easiest way to fix the discrepancy is
simply remove this code.
The only remaining users of NCR5380_show_info() and NCR5380_write_info()
are drivers that define PSEUDO_DMA. The others have no use for the
.show_info method, so don't initialize it.
Signed-off-by: Finn
Print the command pointers in the log messages for debugging queue data
structures. The LIST and REMOVE macros can then be removed.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 36
drivers/scsi/atari_NCR5380.c | 43
Printing command pointers can be useful when debugging queues. Other than
that, the LIST and REMOVE macros are just clutter. These macros are
redundant now that NDEBUG_QUEUES causes pointers to be printed, so remove
them.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 19
main loop in this way,
scsi_eh_save takes place when an autosense command is dequeued rather
than when re-queued.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 194 +++---
drivers/scsi/NCR5380.h |2
drivers/scsi/atari_NCR5380.c | 239
would
only be churn because the existing EH handlers don't work and get replaced
in a subsequent patch.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 214 +---
drivers/scsi/NCR5380.h | 16 ++
drivers/scsi/arm/cumana_1.c |1
driv
Make use of the shost_priv() helper. Remove HOSTDATA and SETUP_HOSTDATA
macros because they harm readability.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 23 ++-
drivers/scsi/atari_NCR5380.c | 20 +++-
2 files changed, 17 insertions
ts
of subsequent patches.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 11 +---
drivers/scsi/NCR5380.h |5 +++
drivers/scsi/atari_NCR5380.c | 57 +--
3 files changed, 40 insertions(+), 33 deletions(-)
Index: linux/drivers
Implement a 'complete_cmd' function to complete commands. This is needed
by the following patch; the new function provides a site for the logic
needed to correctly handle REQUEST SENSE commands.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c
ata struct to track the command in arbitration or selection phase.
Replace 'retain_dma_irq' with the new 'selecting' pointer, to bring
atari_NCR5380.c into line with NCR5380.c.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 78 +
The hostdata struct is now protected by a spin lock so the volatile
qualifiers are redundant. Remove them.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.h | 12 ++--
drivers/scsi/atari_NCR5380.c |2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
Index: linux
new lock should be
uncontested even when the SCSI bus is contested.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 83 -
drivers/scsi/NCR5380.h |1
drivers/scsi/atari_NCR5380.c | 139 +--
3 files chan
reveal the important ones, to
facilitate reunification.
Signed-off-by: Finn Thain
---
drivers/scsi/atari_NCR5380.c | 108 +--
1 file changed, 64 insertions(+), 44 deletions(-)
Index: linux/drivers/scsi/atari
reveal the important ones, to
facilitate reunification.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 157 +++--
1 file changed, 89 insertions(+), 68 deletions(-)
Index: linux/drivers/scsi
_,}NCR5380.c
This removes some unimportant discrepancies between the two core driver
forks so that 'diff' can be used to reveal the important ones, to
facilitate reunification.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 550 +
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 30 +++---
drivers/scsi/atari_NCR5380.c | 26 +-
2 files changed, 32 insertions(+), 24 deletions(-)
Index: linux/drivers/scsi/NCR5380.c
This refactoring removes two global Scsi_Host pointers. This
improves consistency with other ncr5380 drivers. Adopting the same
conventions as the other drivers makes them easier to read.
Signed-off-by: Finn Thain
---
drivers/scsi/atari_NCR5380.c |5 +-
drivers/scsi/atari_scsi.c| 29
ceive", so adopt this terminology.
This removes some unimportant discrepancies between the two core driver
forks so that 'diff' can be used to reveal the important ones, to
facilitate reunification.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 154 ++
Keep the two core driver forks in sync.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 71 +++--
drivers/scsi/atari_NCR5380.c | 102 +++
2 files changed, 84 insertions(+), 89 deletions(-)
Index: linux/drivers
command is completed and by limiting the transfer size for
drivers that don't use DMA in information transfer phases.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 10 --
drivers/scsi/atari_NCR5380.c | 10 --
2 files changed, 16 insertions(+), 4 dele
.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 32 +---
drivers/scsi/arm/cumana_1.c |3 +++
drivers/scsi/arm/oak.c |2 ++
drivers/scsi/atari_NCR5380.c |8 +---
drivers/scsi/dtc.c | 14 ++
drivers/scsi
SCSI bus protocol sometimes requires monitoring two related conditions
simultaneously. Enhance NCR5380_poll_politely() for this purpose, and
put it to use in the arbitration algorithm. It will also find use in
pseudo DMA.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 68
eliminate the READ_OVERRUNS macro.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 28 +++-
1 file changed, 11 insertions(+), 17 deletions(-)
Index: linux/drivers/scsi/NCR5380.c
===
--- linux.orig/drivers
ansfer.
During selection, don't interfere with the chip registers after a
reselection interrupt intervenes.
Clean up some trivial issues with code style, comments and printk.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 115 +++
driver
bits in STATUS_REG so that NCR5380_transfer_pio() can
return the correct result. The return value is presently unused (perhaps
because of bugs like this) but this change at least fixes the caller's
phase variable, which is passed by reference.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5
Fix the array bounds check when transferring an extended message from the
target.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |3 ++-
drivers/scsi/atari_NCR5380.c |4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
Index: linux/drivers/scsi/NCR5380.c
hed and some are not. Before clearing
the chip IRQ flag, clear all state that may cause it to be raised. That
means clearing the DMA Mode and Busy Monitor bits in the Mode Register
and clearing the host ID in the Select Enable register.
Also clean up some printk's and some comments. Keep atari_NCR5
use of the TCR_LAST_BYTE_SENT bit.
Remove the old flags.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 68 +++
drivers/scsi/NCR5380.h |4 --
drivers/scsi/dtc.c |4 --
drivers/scsi/g_NCR5380.c |5 +--
4 files changed, 26 inserti
" and perhaps BUS FREE polling
was somehow helpful back in Linux v0.99.14u, when it was introduced.
The relevant timeout is presently 1 second (for bus arbitration).
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |7 ---
drivers/scsi/atari_NCR5380.c | 11 --
Each host instance now has it's own work queue so the main() work item can
sleep when necessary. That means we can use a simple work item rather than
a delayed work item. This brings NCR5380.c closer to atari_NCR5380.c.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |
things because then we
would have to handle the possibility of EH handler invocation during a
PDMA transfer.
The comments say that instead of using this macro, "you're going to be
better off twiddling with transfersize". I agree. Remove this stuff.
Signed-off-by: Finn Thain
--
Allow target selection to fail with a timeout instead of waiting in
infinite loops. This gets rid of the unused NCR_TIMEOUT macro, it is more
defensive and has proved helpful in debugging.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 44
l the information transfer state machine from
queuecommand because, according to Documentation/scsi/scsi_mid_low_api.txt
that could happen in soft irq context. Fix this.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.h |1
drivers/scsi/atari_NCR5380.c |
NCR5380_poll_politely() never returns -1. That means do_abort() can fail
to handle a timeout after waiting for the target to negate REQ. Fix this
and cleanup other NCR5380_poll_politely() call sites.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 10 +-
1 file changed, 5
MESSAGE REJECT does not imply DISCONNECT: the target is about to enter
MESSAGE IN or MESSAGE OUT phase.
This bug fix comes from atari_NCR5380.c. Unfortunately it never made it
into the original NCR5380.c core driver.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |1 +
1 file
Use timeouts in do_abort() in atari_NCR5380.c instead of infinite loops.
Also fix the kernel-doc comment. Keep the two core driver forks in sync.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 26 +-
drivers/scsi/atari_NCR5380.c | 34
NCR5380_poll_politely() returns either 0 (success) or -ETIMEDOUT. However,
in do_abort(), the return value is incorrectly taken to be the status
register value. This means that the bus is put into DATA OUT phase instead
of MESSAGE OUT. Fix this.
Signed-off-by: Finn Thain
---
drivers/scsi
From: Hannes Reinecke
Some old drivers partially implemented support for linked commands using
a "proposed" next_link pointer in struct scsi_cmnd that never actually
existed. Remove this code.
Signed-off-by: Finn Thain
---
This is a modified version of Hannes' patch so I h
0x420
[ef885ea0] [c0046870] worker_thread+0x14c/0x430
[ef885ed0] [c004e4f4] kthread+0xd8/0xec
[ef885f40] [c00124d4] ret_from_kernel_thread+0x5c/0x64
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |9 -
1 file changed, 8 insertions(+), 1 deletion(-)
Index: linux/drivers
failure or lost
arbitration.
The "else break" clause in NCR5380_main() that gets removed here appears
to be a vestige of a long-gone loop that iterated over host instances.
See commit 491447e1fcff ("[PATCH] next NCR5380 updates") in
history/history.git.
Signed-off-by: Finn Thain
on for
this discrepancy. The timing seems to have no relation to the type of
adapter. Bizarrely, the timing in g_NCR5380 seems to relate only to one
particular type of target device. This patch attempts to solve the
problem for all NCR5380 drivers and all target
region() calls in dtc.c,
pas16.c and t128.c.
Fix these issues.
Signed-off-by: Finn Thain
---
drivers/scsi/arm/cumana_1.c |6 --
drivers/scsi/dtc.c |2 --
drivers/scsi/pas16.c|2 --
drivers/scsi/t128.c |2 --
4 files changed, 12 deletions(-)
Index:
Remove the DEF_SCSI_QCMD macro (already removed from atari_NCR5380.c). The
lock provided by DEF_SCSI_QCMD is only needed for queue data structures.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 30 +++---
drivers/scsi/atari_NCR5380.c |2 +-
2 files
When in process context, sleep during polling if doing so won't add
significant latency. In interrupt context or if the lock is held, poll
briefly then give up. Keep both core drivers in sync.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |
ll for BSY. We can sleep while polling now that we have a
suitable workqueue.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 74 ---
drivers/scsi/NCR5380.h |2 -
drivers/scsi/atari_NCR5380.c | 49
3 fil
Allocate a work queue that will permit busy waiting and sleeping. This
means NCR5380_init() can potentially fail, so add this error path.
Signed-off-by: Finn Thain
---
In subsequent patches, the work function adopts this work queue so it
can sleep while polling, which allows the removal of
r prevent EH working correctly but this is addressed in
a subsequent patch. Remove USLEEP_WAITLONG.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 19 +--
drivers/scsi/g_NCR5380.c |1 -
2 files changed, 5 insertions(+), 15 deletions(-)
Index: linux/dr
NCR5380.c is not compliant with the SCSI-2 standard (at least, not with
the draft revision 10L that I have to refer to). The selection algorithm
in atari_NCR5380.c is correct, so use that.
Signed-off-by: Finn Thain
---
The NCR 5380 Family datasheet has a flow chart to support this. Please see
The "failed" label in NCR5380_select() is not helpful. Some failures
return 0, others -1. Use return instead of goto to improve clarity and
brevity, like atari_NCR5380.c does. Fix the relevant comments.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c
issue queue. Clarify this logic.
Signed-off-by: Finn Thain
---
Good code style would be,
if (this) {
/* do stuff */
}
rather than,
if (!this) {
} else {
/* do stuff */
}
But I've used the latter form at this point in
arget that doesn't assert BSY. We need to handle these two cases
differently; the latter case can be left to the SCSI ML.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 13 -
drivers/scsi/NCR5380.h |6 --
drivers/scsi/atari_NCR5380.c | 13 ---
Remove the duplicate write to the Select Enable Register that appeared
in v1.1.38.
Also remove the redundant write to Initiator Command Register prior to
calling do_abort().
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |2 --
drivers/scsi/atari_NCR5380.c |3 ---
2 files
indispensible. Keep
the two implementations in sync.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 33 +++-
drivers/scsi/atari_NCR5380.c | 113 +++
2 files changed, 134 insertions(+), 12 deletions(-)
Index: linux/drivers/scsi
Make use of do_reset() in the bus reset handler in atari_NCR5380.c. The
version in NCR5380.c already does so. Keep them in sync.
Signed-off-by: Finn Thain
---
Bus reset handlers in both core drivers still have serious problems for
EH purposes. Those problems are addressed later in this series
The aborted flag was introduced in v1.1.38 but never used. Remove it.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |2 --
drivers/scsi/NCR5380.h |1 -
drivers/scsi/atari_NCR5380.c |2 --
3 files changed, 5 deletions(-)
Index: linux/drivers/scsi/NCR5380.c
be problematic already.
Regardless, do_reset() now raises and clears the interrupt within
local_irq_save/restore which should avoid problems.
Signed-off-by: Finn Thain
---
drivers/scsi/Kconfig | 17 ---
drivers/scsi/NCR5380.c | 17 +--
drivers/scsi/NCR5380.h
ff-by: Finn Thain
---
drivers/scsi/NCR5380.c | 34 --
drivers/scsi/NCR5380.h |1 +
drivers/scsi/arm/cumana_1.c |2 ++
drivers/scsi/arm/oak.c |2 ++
drivers/scsi/dmx3191d.c |2 ++
drivers/scsi/dtc.c |2 ++
drivers
kinds of
boards.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c | 18 --
drivers/scsi/g_NCR5380.c | 23 ++-
drivers/scsi/g_NCR5380.h |6 ++
3 files changed, 20 insertions(+), 27 deletions(-)
Index: linux/drivers/scsi/NCR5380.c
e used for that
purpose because the Scsi_Host struct has not yet been instantiated.
Moreover, these macros were removed from atari_NCR5380.c long ago and
now they constitute yet another discrepancy between the two core driver
forks.
Remove these "optimizations".
Signed-off-by: F
The NVRAM location of this byte is 16, as documented in
http://toshyp.atari.org/en/004009.html
This was confirmed by Michael Schmitz, by setting the SCSI host ID
under EmuTOS and then checking the value in /proc/driver/nvram and
/dev/nvram under Linux.
Signed-off-by: Finn Thain
---
drivers
Like my previous work on the NCR5380 drivers, this patch series has bug
fixes, code cleanup and modernization. These drivers suffer from mistakes,
poor style and neglect and this long series addresses the worst of it,
covering all ten wrapper drivers and both of the core driver forks. The
combined
This macro makes the code cryptic. Remove it.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |2 +-
drivers/scsi/g_NCR5380.c |7 ---
drivers/scsi/g_NCR5380.h |2 --
3 files changed, 5 insertions(+), 6 deletions(-)
Index: linux/drivers/scsi/g_NCR5380.c
ASM macro is never defined. rtrc in pas16.c is not used.
NCR5380_map_config, do_NCR5380_intr, do_t128_intr and do_pas16_intr
are unused. NCR_NOT_SET harms readability. Remove them.
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.h |3 ---
drivers/scsi/g_NCR5380.c | 29
Replace {P,T,DTC}DEBUG_INIT with NDEBUG_INIT. Remove dead debugging
code, including code that's conditional upon *DEBUG_TRANSFER.
Signed-off-by: Finn Thain
---
drivers/scsi/dtc.c | 18 ++
drivers/scsi/dtc.h | 27 ---
drivers/scsi/pas16.c |
Signed-off-by: Finn Thain
---
drivers/scsi/NCR5380.c |2 +-
drivers/scsi/dtc.c |4 ++--
drivers/scsi/g_NCR5380.c |4 ++--
drivers/scsi/pas16.c | 10 +-
drivers/scsi/sun3_scsi.c |8
drivers/scsi/t128.c |4 ++--
6 files changed, 16
On Wed, 18 Nov 2015, Ondrej Zary wrote:
> On Wednesday 18 November 2015, Finn Thain wrote:
>
> > Like my previous work on the NCR5380 drivers, this patch series has
> > bug fixes, code cleanup and modernization. These drivers suffer from
> > mistakes, poor style a
w
On Thu, 19 Nov 2015, Michael Schmitz wrote:
> Hi Finn,
>
> Am 18.11.2015 um 21:35 schrieb Finn Thain:
>
> > The bus reset may raise an interrupt. That would be new behaviour for
> > atari_scsi only when CONFIG_ATARI_SCSI_RESET_BOOT=n. The ST DMA
> > interrupt
On Thu, 19 Nov 2015, Ondrej Zary wrote:
> On Thursday 19 November 2015 03:24:56 Finn Thain wrote:
>
> > On Wed, 18 Nov 2015, Ondrej Zary wrote:
> >
> > >
> > > I have some NCR5380 ISA cards and can test them.
> >
> > Thanks Ondrej. I'
On Fri, 20 Nov 2015, I wrote:
> On Thu, 19 Nov 2015, Ondrej Zary wrote:
>
> > [ 240.108501] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables
> > this message.
> > [ 240.108597] modprobeD 001a 0 1957 1950 0x
> > [ 240.108790] ce0fad00 0086 53881781 0
On Thu, 19 Nov 2015, Christoph Hellwig wrote:
> On Fri, Nov 20, 2015 at 06:21:06PM +1100, Finn Thain wrote:
>
> > > Not sure what module was being probed here. I presume it was
> > > g_NCR5380 or g_NCR5380_mmio. Neither of these calls
> > > 'scsi_scan_hos
On Fri, 20 Nov 2015, Christoph Hellwig wrote:
> On Fri, Nov 20, 2015 at 07:19:21PM +1100, Finn Thain wrote:
>
> > Yes. I didn't do that conversion because I don't have ISA hardware and
> > I don't understand ISA probing.
> >
> > The present patch
Hi Ondrej,
On Fri, 20 Nov 2015, Ondrej Zary wrote:
> On Friday 20 November 2015 02:41:19 Finn Thain wrote:
> >
> >
> > My tests involved 3 different scsi targets (two disks and a CD-ROM)
> > but none of these send a SDTR. Your log says the driver correctly
> &
On Sat, 21 Nov 2015, Ondrej Zary wrote:
> On Saturday 21 November 2015 02:58:57 Finn Thain wrote:
>
> >
> > I gather that your setup here is a QUANTUM LP240S target with Domex
> > 3181 (DTC-436) card and g_NCR5380 module. I've been testing a similar
> > s
On Mon, 23 Nov 2015, Ondrej Zary wrote:
>
> PDMA seems to be broken in multiple ways. NCR5380_pread cannot process
> less than 128 bytes. In fact, 53C400 datasheet says that it's HW
> limitation: non-modulo-128-byte transfers should use PIO.
>
> Adding
> transfersize = round_down(tran
501 - 600 of 993 matches
Mail list logo