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

Adrian McMenamin
2008-01-25T21:46:39Z

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

On Fri, 2008-01-25 at 21:00 +0000, Adrian McMenamin wrote:
> 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)
>
With the coherency patches...

[ 2.890870] zzzzzzzz:tx_bufs = 0xa1840000/0x01840000, rx_ring = 0x00000000/0x00000000, (0x8cd010e0)

dreamy login: ï¿½[ 0.000000] Linux version 2.6.24-rc8-g3f58465d-dirty (adrian@bossclass) (gcc version 3.4.6) #326 PREEMPT Fri Jan 25 21:43:31 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.004317] Using 12.469 MHz high precision timer.
[ 0.010038] Console: colour dummy device 80x25
[ 0.015264] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.023145] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.032828] Memory: 13492k/16384k available (1907k kernel code, 632k data, 96k init)
[ 0.041737] PVR\x040205c1 CVR\0000000 PRR\0000000
[ 0.047252] I-cache : n_ways=1 n_sets%6 way_incr92
[ 0.053261] I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
[ 0.061449] D-cache : n_ways=1 n_setsQ2 way_incr\x16384
[ 0.067556] D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
[ 0.075993] SLUB: Genslabs=9, HWalign2, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
[ 0.175612] Mount-cache hash table entries: 512
[ 0.181888] CPU: SH7750
[ 0.188400] net_namespace: 64 bytes
[ 0.195963] NET: Registered protocol family 16
[ 0.218251] Maple bus core now registered.
[ 0.223390] DMA: Registering DMA API.
[ 0.227711] DMA: Registering sh_dmac handler (4 channels).
[ 0.234246] Maple bus at (0, 0): Connected function 0x1
[ 0.240286] No maple driver found for this device
[ 0.246516] Maple bus at (1, 0): Connected function 0x40
[ 0.252651] No maple driver found for this device
[ 0.259225] No maple devices attached to port 2
[ 0.264485] No maple devices attached to port 3
[ 0.271997] DMA: Registering pvr2_dmac handler (1 channel).
[ 0.279888] DMA: Registering g2_dmac handler (4 channels).
[ 0.289247] Autoconfig PCI channel 0x8c278530
[ 0.294387] Scanning bus 00, I/O 0x01001600:0x01003600, Mem 0x01840000:0x01848000
[ 0.303027] Maple bus at (0, 1): Connected function 0xE
[ 0.309065] No maple driver found for this device
[ 0.314888] 00:00.0 Class 0200: 11db:1234 (rev 10)
[ 0.320438] I/O at 0x01001600 [size=0x100]
[ 0.325984] Mem at 0x01840000 [size=0x100]
[ 0.332308] Maple bus at (0, 2): Connected function 0x10
[ 0.338442] No maple driver found for this device
[ 0.344736] PCI: Fixing up device 0000:00:00.0
[ 0.366638] Time: SuperH clocksource has been installed.
[ 0.376928] NET: Registered protocol family 2
[ 0.419080] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.429569] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.437609] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.445045] TCP: Hash tables configured (established 512 bind 512)
[ 0.452150] TCP reno registered
[ 0.467588] sq: Registering store queue API.
[ 0.474363] cpufreq: SuperH CPU frequency driver.
[ 0.479926] cpufreq: clock framework rate rounding not supported on this CPU.
[ 0.491474] Total HugeTLB memory allocated, 0
[ 0.498290] io scheduler noop registered
[ 0.502845] io scheduler anticipatory registered (default)
[ 1.640505] Console: switching to colour frame buffer device 80x30
[ 1.700596] fb0: NEC PowerVR2 (rev 1.1) frame buffer device, using 1200k/8192k of video memory
[ 1.710566] fb0: Mode 640x480-32 pitch = 2560 cable: VGA video output: VGA
[ 1.718540] fb0: registering with SQ API
[ 1.723397] sqremap: NEC PowerVR2 [2048 pages] va 0xe0000000 pa 0xa5000000
[ 1.732097] fb0: Mapped video memory to SQ addr 0xe0000000
[ 2.296084] SuperH SCI(F) driver initialized
[ 2.301844] sh-sci: ttySC0 at MMIO 0xffe00000 (irq = 25) is a sci
[ 2.309935] sh-sci: ttySC1 at MMIO 0xffe80000 (irq = 43) is a scif
ï¿½kÈ 2.317207] console handover: boot [sercon0] -> real [ttySC1]
[ 2.324926] sh-sci sh-sci: CPU frequency notifier registered
[ 2.330778] 8139too Fast Ethernet driver 0.9.28
[ 2.338340] eth0: RealTek RTL8139 at 0xa1001700, 00:d0:f1:03:12:b9, IRQ 83
[ 2.346804] input: Keyboard as /devices/maple/1:00.40/input/input0
[ 2.367072] TCP cubic registered
[ 2.369682] NET: Registered protocol family 1
[ 2.374272] NET: Registered protocol family 17
[ 2.379687] RPC: Registered udp transport module.
[ 2.383910] RPC: Registered tcp transport module.
[ 2.890870] zzzzzzzz:tx_bufs = 0xa1840000/0x01840000, rx_ring = 0x00000000/0x00000000, (0x8cd010e0)
[ 2.899672] IP-Config: Failed to open eth0
[ 2.903757] IP-Config: No network devices available.
[ 2.909606] Looking up port of RPC 100003/2 on 192.168.61.50

-
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