Wednesday, August 09, 2006

Kernel 2.6.17.4 on SH7780

2.6.17.4のカーネルが、SH7780で動きました。
ディスクは、/dev/hdaとmtdを併用しています。

2.6.10の時よりも安定している模様。
意味不明のハングアップはなくなった。

次の表は、SH-Linuxからの変更点のまとめ。



変更モジュール変更内容
arch/sh/drivers/pci/ops-se7780.c PCIバス初期化、INTA,INTB,INTC,INTDの定義(新設)
include/asm-sh/se7780/map.hボード上のレジスタのアドレス(新設)
include/asm-sh/se7780/io.hボードのI/O操作用の関数のプロトタイプ(新設)
include/asm-sh/se7780/irq.hボードの割り込み定義(新設)
include/asm-sh/se7780/irq.hボードの変数の定義(新設)
arch/sh/boards/hanada/se7780/setup.cmachine_vectorとFPGAの初期化(新設)
arch/sh/boards/hanada/se7780/io.c新設
arch/sh/boards/hanada/se7780/led.cHeartBeat用のコード(新設)



以下、起動時の出力。


masta@SH7780:~$ dmesg
Linux version 2.6.17-sh (masta@localhost.localdomain) (gcc 3.4.5)
on Aug 7 15:52:14 JST 2006
SolutionEngine MS7780SE03.
Init FPGA.
On node 0 totalpages: 32768
DMA zone: 32768 pages, LIFO batch:7
Built 1 zonelists
Kernel command line: console=ttySC0,115200 root=301
init_IRQ_intc2
PID hash table entries: 1024 (order: 10, 4096 bytes)
Interval = 83333
Using tmu for system timer
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 126720k/131072k available (2741k kernel code, 4276k reserved, 106k data,
132k init)
PVR=10200a00 CVR=73440010 PRR=00000920
I-cache : n_ways=4 n_sets=256 way_incr=8192
I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
D-cache : n_ways=4 n_sets=256 way_incr=8192
D-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
Calibrating delay loop... 177.35 BogoMIPS (lpj=886784)
Mount-cache hash table entries: 512
CPU: SH7780
PCI: Using configuration type 1
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
Autoconfig PCI channel 0x882c35b0
Scanning bus 00, I/O 0x00002000:0x00402000, Mem 0xfd000000:0xfe000000
00:00.0 Class 0200: 8086:1229 (rev 0c)
Mem at 0xfd000000 [size=0x1000]
I/O at 0x00002000 [size=0x40]
Mem at 0xfd020000 [size=0x20000]
00:01.0 Class 0104: 1095:3114 (rev 02)
I/O at 0x00002040 [size=0x8]
I/O at 0x00002048 [size=0x4]
I/O at 0x00002050 [size=0x8]
I/O at 0x00002058 [size=0x4]
I/O at 0x00002060 [size=0x10]
Mem at 0xfd040000 [size=0x400]
00:02.0 Class 0180: 1095:3512 (rev 01)
I/O at 0x00002070 [size=0x8]
I/O at 0x00002078 [size=0x4]
I/O at 0x00002080 [size=0x8]
I/O at 0x00002088 [size=0x4]
I/O at 0x00002090 [size=0x10]
Mem at 0xfd040400 [size=0x200]
00:03.0 Class 0c03: 1033:0035 (rev 43)
Mem at 0xfd041000 [size=0x1000]
00:03.1 Class 0c03: 1033:0035 (rev 43)
Mem at 0xfd042000 [size=0x1000]
PCI: IRQ mapping request for slot 0, func 0, irq 65
PCI: IRQ mapping request for slot 1, func 0, irq 68
PCI: IRQ mapping request for slot 2, func 0, irq 67
PCI: IRQ mapping request for slot 3, func 0, irq 68
PCI: IRQ mapping request for slot 3, func 1, irq 65
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
io scheduler noop registered
io scheduler deadline registered (default)
SuperH SCI(F) driver initialized
ttySC0 at MMIO 0xffe00000 (irq = 43) is a scif
ttySC1 at MMIO 0xffe10000 (irq = 79) is a scif
loop: loaded (max 8 devices)
Intel(R) PRO/1000 Network Driver - version 7.0.33-k2
Copyright (c) 1999-2005 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
e100: eth0: e100_probe: addr 0xfd000000, irq 65, MAC addr 00:02:B3:40:8F:86
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Sil3114 Serial ATA: IDE controller at PCI slot 0000:00:01.0
Sil3114 Serial ATA: chipset revision 2
Sil3114 Serial ATA: 100% native mode on irq 68
ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
ide1: MMIO-DMA , BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: Maxtor 6L250S0, ATA DISK drive
ide0 at 0xfd040080-0xfd040087,0xfd04008a on irq 68
Probing IDE interface ide1...
SiI3512 Serial ATA: IDE controller at PCI slot 0000:00:02.0
SiI3512 Serial ATA: chipset revision 1
SiI3512 Serial ATA: 100% native mode on irq 67
ide2: MMIO-DMA , BIOS settings: hde:pio, hdf:pio
ide3: MMIO-DMA , BIOS settings: hdg:pio, hdh:pio
Probing IDE interface ide2...
Probing IDE interface ide3...
hda: max request size: 64KiB
hda: 490234752 sectors (251000 MB) w/16384KiB Cache, CHS=30515/255/63
hda: cache flushes supported
hda: hda1 hda2 hda3
Map virt addr 0xa0000000
Probing for flash chips at 0x00000000
SH Solution Engine FLASH: Found 2 x16 devices at 0x0 in 32-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
SH Solution Engine FLASH: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
SH Solution Engine: Flash at 0x00000000
Creating 3 MTD partitions on "SH Solution Engine FLASH":
0x00000000-0x00020000 : "bootloader"
0x00020000-0x00220000 : "kernel"
0x00220000-0x01000000 : "userland"
usbmon: debugfs is not available
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd 0000:00:03.0: OHCI Host Controller
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:03.0: irq 68, io mem 0xfd041000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd 0000:00:03.1: OHCI Host Controller
ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:03.1: irq 65, io mem 0xfd042000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
8regs : 376.000 MB/sec
8regs_prefetch: 318.400 MB/sec
32regs : 476.000 MB/sec
32regs_prefetch: 398.800 MB/sec
raid5: using function: 32regs (476.000 MB/sec)
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
IP-Config: Incomplete network configuration information.
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 132k freed
ReiserFS: hda3: found reiserfs format "3.6" with standard journal
ReiserFS: hda3: using ordered data mode
ReiserFS: hda3: journal params: device hda3, size 8192, journal first block 18,
max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hda3: checking transaction log (hda3)
ReiserFS: hda3: Using r5 hash to sort names
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex


hdparmの数値は、以前の2.6.10よりも早くなった。


SH7780:~# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 300 MB in 2.02 seconds = 148.53 MB/sec
Timing buffered disk reads: 120 MB in 3.04 seconds = 39.53 MB/sec

1 Comments:

Blogger 勝治 said...

その後 NETPERFも測定しました。
パフォーマンス的は、思っていたより
遅い。ガッカリ。

パターン1)
WindowsXP -> SH7780(netserver)
190MBps程度

パターン2)
SH7780 -> WindowsXP(netserver)
105MBps程度

測定条件
WindowsXP機は、PenDの2.8GHz
SH7780との接続はクロスケーブル
SH7780のPCIバスは33MHz固定。

バスを66MHzにして測定したい。

5:09 PM  

Post a Comment

<< Home