tech-kern archive

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

Re: ne2000 with 8bit bus width



Hi,

bus_space(9) function is frequently called.
It is necessary to clear the ED_DCR_WTS bit at 8 bit bus width.

I did benchmark.

test machine
CPU: SH3 SH7706 128MHz
RAM: 32MB
NIC: REALTEK RTL8019AS (8bit bus)

ftp: remote -> test machine /tmp(tmpfs)
- use word function: 186.91KiB/s
- use byte function: 169.51KiB/s

I prepared a new patch.

- new patch: 186.19KiB/s

Regards,
-- 
NONAKA Kimihiro
email: nonaka%netbsd.org@localhost, nonakap%gmail.com@localhost

2009/5/5 Arnaud Lacombe <lacombar%gmail.com@localhost>:
> Hi,
>
> On Mon, May 4, 2009 at 9:40 AM, NONAKA Kimihiro <nonakap%gmail.com@localhost> 
> wrote:
>> Hi,
>>
>> Applied patch are necessary for connecting NE2000(RTL8019AS) by the
>> 8bit bus width.
>> May I commit it?
>>
> How often the bus_space_write_1() function are called ? ie. would the
> branch added for each write have a negative impact on perf ? isn't
> there a way to avoid it ?
>
> Regards,
> Â- Arnaud
>

Attachment: ne2000.diff
Description: Binary data



Home | Main Index | Thread Index | Old Index