Re: [PATCH] sh: use declared coherent memory for dreamcast pci

Adrian McMenamin
2008-01-25T21:00:18Z

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 6023 bytes --]

On Fri, 2008-01-25 at 13:16 +0900, Magnus Damm wrote:

> Can you please apply the attached patch and test both with and without
> the 3 declared coherent patches? I'd like to see the values printed
> out by printk() both with and without the declared coherent patches.
>
> Thank you.
>
> / magnus

Without the coherency patches...
[ 2.833387] zzzzzzzz:tx_bufs = 0xa1840000/0x01840000, rx_ring 0xa1842000/0x01842000, (0x00000000)

[ 0.000000] Linux version 2.6.24-rc8-g96010b55-dirty (adrian@bossclass) (gcc version 3.4.6) #325 PREEMPT Fri Jan 25 20:55:23 GMT 2008
[ 0.000000] console [sercon0] enabled
[ 0.000000] Booting machvec: Sega Dreamcast
[ 0.000000] Node 0: start_pfn = 0xc000, low = 0xd000
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 49152 -> 53248
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 49152 -> 53248
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 4064
[ 0.000000] Kernel command line: root=/dev/nfs rw nfsroot\x192.168.61.50:/home/adrian/debdist ip=dhcp earlyprintk=serial video=pvr2fb:640x480-32@60 consol7
[ 0.000000] PID hash table entries: 64 (order: 6, 256 bytes)
[ 0.000000] Using tmu for system timer
[ 0.004322] Using 12.469 MHz high precision timer.
[ 0.010042] Console: colour dummy device 80x25
[ 0.015260] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.023141] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.032852] Memory: 13492k/16384k available (1907k kernel code, 632k data, 96k init)
[ 0.041763] PVR\x040205c1 CVR\0000000 PRR\0000000
[ 0.047277] I-cache : n_ways=1 n_sets%6 way_incr92
[ 0.053284] I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
[ 0.061475] D-cache : n_ways=1 n_setsQ2 way_incr\x16384
[ 0.067580] D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
[ 0.075997] SLUB: Genslabs=9, HWalign2, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
[ 0.175560] Mount-cache hash table entries: 512
[ 0.181822] CPU: SH7750
[ 0.188425] net_namespace: 64 bytes
[ 0.195981] NET: Registered protocol family 16
[ 0.218402] Maple bus core now registered.
[ 0.223419] DMA: Registering DMA API.
[ 0.227713] DMA: Registering sh_dmac handler (4 channels).
[ 0.237179] DMA: Registering pvr2_dmac handler (1 channel).
[ 0.245030] DMA: Registering g2_dmac handler (4 channels).
[ 0.254340] Autoconfig PCI channel 0x8c278530
[ 0.259497] Scanning bus 00, I/O 0x01001600:0x01003600, Mem 0x01840000:0x01848000
[ 0.268201] 00:00.0 Class 0200: 11db:1234 (rev 10)
[ 0.273749] I/O at 0x01001600 [size=0x100]
[ 0.279483] Mem at 0x01840000 [size=0x100]
[ 0.285923] PCI: Fixing up device 0000:00:00.0
[ 0.310760] Time: SuperH clocksource has been installed.
[ 0.321218] NET: Registered protocol family 2
[ 0.363178] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.373744] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.381772] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.389184] TCP: Hash tables configured (established 512 bind 512)
[ 0.396293] TCP reno registered
[ 0.411663] sq: Registering store queue API.
[ 0.418456] cpufreq: SuperH CPU frequency driver.
[ 0.423949] cpufreq: clock framework rate rounding not supported on this CPU.
[ 0.435453] Total HugeTLB memory allocated, 0
[ 0.442081] io scheduler noop registered
[ 0.446662] io scheduler anticipatory registered (default)
[ 1.578357] Console: switching to colour frame buffer device 80x30
[ 1.637402] fb0: NEC PowerVR2 (rev 1.1) frame buffer device, using 1200k/8192k of video memory
[ 1.647303] fb0: Mode 640x480-32 pitch = 2560 cable: VGA video output: VGA
[ 1.655257] fb0: registering with SQ API
[ 1.660102] sqremap: NEC PowerVR2 [2048 pages] va 0xe0000000 pa 0xa5000000
[ 1.668709] fb0: Mapped video memory to SQ addr 0xe0000000
[ 2.232603] SuperH SCI(F) driver initialized
[ 2.238353] sh-sci: ttySC0 at MMIO 0xffe00000 (irq = 25) is a sci
[ 2.246417] sh-sci: ttySC1 at MMIO 0xffe80000 (irq = 43) is a scif
ï¿½kÈ 2.253707] console handover: boot [sercon0] -> real [ttySC1]
[ 2.261322] sh-sci sh-sci: CPU frequency notifier registered
[ 2.267290] 8139too Fast Ethernet driver 0.9.28
[ 2.274966] eth0: RealTek RTL8139 at 0xa1001700, 00:d0:f1:03:12:b9, IRQ 83
[ 2.282232] Dreamcast_keyboard: probe of 0:0.port failed with error -22
[ 2.288540] Dreamcast_keyboard: probe of 1:0.port failed with error -22
[ 2.295327] Dreamcast_keyboard: probe of 2:0.port failed with error -22
[ 2.302148] Dreamcast_keyboard: probe of 3:0.port failed with error -22
[ 2.308991] TCP cubic registered
[ 2.312239] NET: Registered protocol family 1
[ 2.316745] NET: Registered protocol family 17
[ 2.322042] RPC: Registered udp transport module.
[ 2.326201] RPC: Registered tcp transport module.
[ 2.833387] zzzzzzzz:tx_bufs = 0xa1840000/0x01840000, rx_ring = 0xa1842000/0x01842000, (0x00000000)
[ 2.842145] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[ 3.848013] Sending DHCP requests ., OK
[ 3.867949] IP-Config: Got DHCP answer from 192.168.61.50, my address is 192.168.61.55
[ 3.876893] IP-Config: Complete:
[ 3.879289] device=eth0, addr\x192.168.61.55, mask%5.255.255.224, gw\x192.168.61.50,
[ 3.887844] host\x192.168.61.55, domain=, nis-domain=(none),
[ 3.893976] bootserver\x192.168.61.50, rootserver\x192.168.61.50, rootpath[ 3.902331] Looking up port of RPC 100003/2 on 192.168.61.50
[ 3.912680] Looking up port of RPC 100005/1 on 192.168.61.50
[ 3.953472] VFS: Mounted root (nfs filesystem).
[ 3.958001] Freeing unused kernel memory: 96k freed

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