Re: [RFC 0/3] serial: sh-sci: SCIF FIFO exploitation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ +cc GregKH, Alan ]

Hi Uli,

On 09/12/2014 04:51 AM, Ulrich Hecht wrote:
> Hi!
> 
> The current sh-sci implementation doesn't exploit the RX FIFOs at all and
> has the chip issue an interrupt for every byte received.  This series
> implements the necessary changes to improve that.

Just a general note about the use of the words exploit and exploitation.
In common usage, 'exploit' has become synonymous with 'misuse'.

Perhaps a better choice would be 'utilize' and 'utilization'?

> It includes a sysfs interface for changing the FIFO trigger level; there
> seem to be few drivers that implement something like that (I only found
> one), so I'd like to know if this implementation is palatable.

The method to extend the sysfs interface for a specific device is in
linux-next. The original was proposed by Greg and reworked by
Yoshihiro YUNOMAE; see commit 266dcff03eed0050b6af11aaf2a61ab837d7ba3f,
'Serial: allow port drivers to have a default attribute group' and
commit aef9a7bd9b676f797dd5cefd43deb30d36b976a9,
'serial/uart/8250: Add tunable RX interrupt trigger I/F of FIFO buffers'
for how to use the default attribute group.

OTOH, I like your sysfs attribute name, rx_trigger_level, better than
the new 8250 attribute name, rx_trig_bytes. In one sense Greg was right;
the coming explosion of different device attributes with different handling
behavior is going to suck.

Regards,
Peter Hurley

On a side note: why is there so little locking in the sh-sci driver?
Is it uniprocessor?

> CU
> Uli
> 
> 
> Ulrich Hecht (3):
>   serial: sh-sci: consider DR (data ready) bit adequately
>   serial: sh-sci: exploit RX FIFOs better
>   serial: sh-sci: make RX FIFO trigger tunable via sysfs
> 
>  drivers/tty/serial/sh-sci.c | 113 ++++++++++++++++++++++++++++++++++++++++++--
>  drivers/tty/serial/sh-sci.h |   5 ++
>  include/linux/serial_sci.h  |   2 +
>  3 files changed, 116 insertions(+), 4 deletions(-)
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux