Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1279253

Re: [PATCH 22/71] ncr5380: Eliminate selecting state

From Finn Thain <fthain@telegraphics.com.au>
Newsgroups linux.kernel
Subject Re: [PATCH 22/71] ncr5380: Eliminate selecting state
Date 2015-11-29 01:50 +0100
Message-ID <qzYlI-7El-1@gated-at.bofh.it> (permalink)
References <qw6Bc-vx-5@gated-at.bofh.it> <qzayB-ZY-3@gated-at.bofh.it> <qzdmO-2Nc-15@gated-at.bofh.it> <qzWWC-6Tz-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, 29 Nov 2015, Ondrej Zary wrote:

> > [...] I think that this should solve the problem:
> 
> Yes, it does!
> 
> [   48.119367] scsi host2: Generic NCR5380/NCR53C400 SCSI, io_port 0x0, n_io_port 0, base 0xd8000, irq 0, can_queue 16, cmd_per_lun 2, sg_tablesize 128, this_id 7, flags { NO_DMA_FIXUP }, options { AUTOPROBE_IRQ PSEUDO_DMA }
> [   49.715388] scsi 2:0:1:0: Direct-Access     QUANTUM  LP240S GM240S01X 4.6  PQ: 0 ANSI: 2 CCS

That still takes about 1.6 seconds to scan a vacant bus ID. It should be 
more like 0.25 seconds. Did you have the entire patch series applied?

The code presently in mainline spins for 500 iterations in the relevant 
busy-wait loop, with the comment, "8uS a cycle for the cpu access". That 
doesn't help me much. Does that refer to an ISA bus cycle? Or one 
iteration of the loop? Electrical conductance?

If we knew how many loops_per_jiffy your machine gets, and your CONFIG_HZ 
value, we could figure out how long a chip register access takes (which 
might be 8 us).

I'll try to figure out a similar timing for my Domex PCI card to see if 
there is some sort of compromise to be found.

-- 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 22/71] ncr5380: Eliminate selecting state Finn Thain <fthain@telegraphics.com.au> - 2015-11-18 10:10 +0100
  Re: [PATCH 22/71] ncr5380: Eliminate selecting state Ondrej Zary <linux@rainbow-software.org> - 2015-11-24 20:10 +0100
    Re: [PATCH 22/71] ncr5380: Eliminate selecting state Finn Thain <fthain@telegraphics.com.au> - 2015-11-25 04:20 +0100
      Re: [PATCH 22/71] ncr5380: Eliminate selecting state Ondrej Zary <linux@rainbow-software.org> - 2015-11-25 23:00 +0100
        Re: [PATCH 22/71] ncr5380: Eliminate selecting state Finn Thain <fthain@telegraphics.com.au> - 2015-11-26 11:30 +0100
          Re: [PATCH 22/71] ncr5380: Eliminate selecting state Ondrej Zary <linux@rainbow-software.org> - 2015-11-26 20:40 +0100
            Re: [PATCH 22/71] ncr5380: Eliminate selecting state Finn Thain <fthain@telegraphics.com.au> - 2015-11-26 23:40 +0100
              Re: [PATCH 22/71] ncr5380: Eliminate selecting state Ondrej Zary <linux@rainbow-software.org> - 2015-11-29 00:20 +0100
                Re: [PATCH 22/71] ncr5380: Eliminate selecting state Finn Thain <fthain@telegraphics.com.au> - 2015-11-29 01:50 +0100
                Re: [PATCH 22/71] ncr5380: Eliminate selecting state Ondrej Zary <linux@rainbow-software.org> - 2015-11-29 10:20 +0100
              Re: [PATCH 22/71] ncr5380: Eliminate selecting state Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-29 10:30 +0100
                Re: [PATCH 22/71] ncr5380: Eliminate selecting state Finn Thain <fthain@telegraphics.com.au> - 2015-11-29 11:30 +0100
                Re: [PATCH 22/71] ncr5380: Eliminate selecting state Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-29 15:00 +0100
                Re: [PATCH 22/71] ncr5380: Eliminate selecting state Finn Thain <fthain@telegraphics.com.au> - 2015-11-30 03:20 +0100

csiph-web