Skip to content

Instantly share code, notes, and snippets.

@wens
Created September 21, 2014 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wens/ae17aed6728b83c0a9c3 to your computer and use it in GitHub Desktop.
Save wens/ae17aed6728b83c0a9c3 to your computer and use it in GitHub Desktop.
A31 DMA test without AHB1 muxed to PLL6
root@debian:/sys/module/dmatest/parameters# grep . /sys/module/dmatest/parameters
/sys/module/dmatest/parameters/channel:dma0chan1
/sys/module/dmatest/parameters/iterations:10
/sys/module/dmatest/parameters/max_channels:0
/sys/module/dmatest/parameters/noverify:N
/sys/module/dmatest/parameters/pq_sources:3
/sys/module/dmatest/parameters/run:N
/sys/module/dmatest/parameters/test_buf_size:131072
/sys/module/dmatest/parameters/threads_per_chan:1
/sys/module/dmatest/parameters/timeout:3000
/sys/module/dmatest/parameters/verbose:Y
/sys/module/dmatest/parameters/wait:Y
root@debian:/sys/module/dmatest/parameters# echo 1 >run
dmatest: Started 1 threads using dma0chan1
dmatest: dma0chan1-copy0: result #1: 'test passed' with src_off=0x12504 dst_off=0x3be4 len=0x8446 (0)
dmatest: dma0chan1-copy0: result #2: 'test passed' with src_off=0x5f95 dst_off=0x52b6 len=0x17bce (0)
dmatest: dma0chan1-copy0: result #3: 'test passed' with src_off=0x4b85 dst_off=0x1a28 len=0x18c04 (0)
dmatest: dma0chan1-copy0: result #4: 'test passed' with src_off=0xc464 dst_off=0x2dcc len=0x313f (0)
dmatest: dma0chan1-copy0: result #5: 'test passed' with src_off=0x3119 dst_off=0x23fa len=0xaef8 (0)
dmatest: dma0chan1-copy0: result #6: 'test passed' with src_off=0xad4e dst_off=0x35e3 len=0xcc62 (0)
dmatest: dma0chan1-copy0: result #7: 'test passed' with src_off=0x18c78 dst_off=0x8129 len=0x298b (0)
dmatest: dma0chan1-copy0: result #8: 'test passed' with src_off=0x9a09 dst_off=0xa2cc len=0x8835 (0)
dmatest: dma0chan1-copy0: result #9: 'test passed' with src_off=0x8349 dst_off=0xce9f len=0xd93c (0)
dmatest: dma0chan1-copy0: result #10: 'test passed' with src_off=0xb77c dst_off=0x1a882 len=0x4449 (0)
dmatest: dma0chan1-copy0: summary 10 tests, 0 failures 78 iops 3536 KB/s (0)
root@debian:~# cat /sys/kernel/debug/clk/clk_summary
clock enable_cnt prepare_cnt rate accuracy
--------------------------------------------------------------------------------
gmac_int_tx 1 1 125000000 0
gmac_tx 1 1 125000000 0
mii_phy_tx 0 0 25000000 0
osc32k 0 0 32768 0
osc24M 6 6 24000000 0
ar100 1 1 24000000 0
ahb0 1 1 24000000 0
apb0 1 1 12000000 0
apb0_i2c 0 0 12000000 0
apb0_1wire 0 0 12000000 0
apb0_uart 0 0 12000000 0
apb0_p2wi 0 0 12000000 0
apb0_timer 0 0 12000000 0
apb0_ir 0 0 12000000 0
apb0_pio 1 1 12000000 0
pll1 1 1 972000000 0
cpu 2 2 972000000 0
axi 1 1 324000000 0
ahb1 7 7 81000000 0
apb1 1 1 81000000 0
apb1_daudio1 0 0 81000000 0
apb1_daudio0 0 0 81000000 0
apb1_pio 1 1 81000000 0
apb1_digital_mic 0 0 81000000 0
apb1_codec 0 0 81000000 0
ahb1_mipidsi 0 0 81000000 0
ahb1_ss 0 0 81000000 0
ahb1_dma 1 1 81000000 0
ahb1_mmc0 1 1 81000000 0
ahb1_mmc1 0 0 81000000 0
ahb1_mmc2 0 0 81000000 0
ahb1_mmc3 0 0 81000000 0
ahb1_nand1 0 0 81000000 0
ahb1_nand0 0 0 81000000 0
ahb1_sdram 1 1 81000000 0
ahb1_gmac 1 1 81000000 0
ahb1_ts 0 0 81000000 0
ahb1_hstimer 1 1 81000000 0
ahb1_spi0 0 0 81000000 0
ahb1_spi1 0 0 81000000 0
ahb1_spi2 0 0 81000000 0
ahb1_spi3 0 0 81000000 0
ahb1_otg 0 0 81000000 0
ahb1_ehci0 1 1 81000000 0
ahb1_ehci1 0 0 81000000 0
ahb1_ohci0 1 1 81000000 0
ahb1_ohci1 0 0 81000000 0
ahb1_ohci2 0 0 81000000 0
ahb1_ve 0 0 81000000 0
ahb1_lcd0 0 0 81000000 0
ahb1_lcd1 0 0 81000000 0
ahb1_csi 0 0 81000000 0
ahb1_hdmi 0 0 81000000 0
ahb1_de0 0 0 81000000 0
ahb1_de1 0 0 81000000 0
ahb1_fe0 0 0 81000000 0
ahb1_fe1 0 0 81000000 0
ahb1_mp 0 0 81000000 0
ahb1_gpu 0 0 81000000 0
ahb1_deu0 0 0 81000000 0
ahb1_deu1 0 0 81000000 0
ahb1_drc0 0 0 81000000 0
ahb1_drc1 0 0 81000000 0
pll6 1 1 600000000 0
mmc0 1 1 50000000 0
mmc1 0 0 24000000 0
mmc2 0 0 24000000 0
mmc3 0 0 24000000 0
spi0 0 0 24000000 0
spi1 0 0 24000000 0
spi2 0 0 24000000 0
spi3 0 0 24000000 0
apb2_mux 1 1 24000000 0
apb2 3 3 24000000 0
apb2_uart5 0 0 24000000 0
apb2_uart4 0 0 24000000 0
apb2_uart3 0 0 24000000 0
apb2_uart2 0 0 24000000 0
apb2_uart1 0 0 24000000 0
apb2_uart0 1 1 24000000 0
apb2_i2c3 0 0 24000000 0
apb2_i2c2 1 1 24000000 0
apb2_i2c1 1 1 24000000 0
apb2_i2c0 0 0 24000000 0
usb_phy0 0 0 24000000 0
usb_phy1 1 1 24000000 0
usb_phy2 0 0 24000000 0
usb_ohci0 1 1 24000000 0
usb_ohci1 0 0 24000000 0
usb_ohci2 0 0 24000000 0
root@debian:~# ./devmem2 0x01c20054
/dev/mem opened.
Memory mapped at address 0xb6f43000.
Value at address 0x1C20054 (0xb6f43054): 0x2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment