Re: [PATCH v1 3/4] max3100: adds console support for MAX3100

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: christian pellegrin
Date: Monday, March 29, 2010 - 5:55 am

On Mon, Mar 29, 2010 at 9:06 AM, Feng Tang <feng.tang@intel.com> wrote:


I had a look at the dw_spi driver. The spi_transfer path queues some
work to a worqueue that itself schedules a tasklet. I don't think this
is good for latency, I won't bet that such an architecture could
deliver good performance. Now I see why you needed to do only big fat
SPI transfers. Anyway this doesn't justify the 2 seconds delay between
chars coming in and going out through the max31x0 you are seeing. I
will try to analyze what's going on. BTW is only input slow or output
is sluggish too? The initial messages from the console are coming out
fast? If you disable the MAX3110 for console but you use just as a
normal terminal (set console=/dev/null in the kernel command line and
add getty 115200 /dev/ttyMAX0 in iniitab) is the interaction with the
system fine? Thanks for helping sorting out this.


Of course it is possible, I just wanted to keep the max3100 a small
clean driver. Unfortunately console and serial drivers are two
different beings in the Linux kernel, but the max3100 implements the
tx-rx in one indivisible instruction (that is slow compared to
registers IO and has to be called in an preemptible contex for added
fun).  To implement what you are saying we need:

1) the console code has to check if the serial port associated to the
same physical max3100 is up (console driver start their life much
before serial ones).

2) if yes send data to the tty associated to the serial driver.
Locking is needed here.

I will implement this ASAP.


ok, I think the dw_spi driver has to be fixed.


-- 
Christian Pellegrin, see http://www.evolware.org/chri/
"Real Programmers don't play tennis, or any other sport which requires
you to change clothes. Mountain climbing is OK, and Real Programmers
wear their climbing boots to work in case a mountain should suddenly
spring up in the middle of the computer room."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v1 1/4] max3100: added raise_threaded_irq, Christian Pellegrin, (Tue Mar 23, 3:28 am)
[PATCH v1 2/4] max3100: moved to threaded interrupt, Christian Pellegrin, (Tue Mar 23, 3:29 am)
[PATCH v1 3/4] max3100: adds console support for MAX3100, Christian Pellegrin, (Tue Mar 23, 3:29 am)
[PATCH v1 0/3] max3100: improvements, christian pellegrin, (Tue Mar 23, 3:29 am)
[PATCH v1 4/4] max3100: introduced to_max3100_port, small ..., Christian Pellegrin, (Tue Mar 23, 3:29 am)
Re: [PATCH v1 3/4] max3100: adds console support for MAX3100, christian pellegrin, (Sun Mar 28, 11:11 pm)
Re: [PATCH v1 3/4] max3100: adds console support for MAX3100, christian pellegrin, (Mon Mar 29, 5:55 am)
Re: [PATCH v1 3/4] max3100: adds console support for MAX3100, christian pellegrin, (Thu Apr 8, 2:31 am)
Re: [PATCH v1 3/4] max3100: adds console support for MAX3100, christian pellegrin, (Thu Apr 8, 2:43 am)
Re: [PATCH v1 1/4] max3100: added raise_threaded_irq, Thomas Gleixner, (Thu Apr 15, 4:22 pm)
Re: [PATCH v1 1/4] max3100: added raise_threaded_irq, christian pellegrin, (Fri Apr 16, 9:18 am)
Re: [PATCH v1 1/4] max3100: added raise_threaded_irq, Thomas Gleixner, (Fri Apr 16, 3:06 pm)
Re: [PATCH v1 1/4] max3100: added raise_threaded_irq, christian pellegrin, (Sat Apr 17, 9:25 am)