pca006132
  • Joined on 2020-04-27
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-08 15:54:53 +08:00
e263814546 Kernel: Added startup kernel
03d64f1dda Kernel: Added startup kernel.
Compare 2 commits »
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-08 15:13:52 +08:00
03d64f1dda Kernel: Added startup kernel.
6a60b1522c Kernel: Added startup kernel.
Compare 2 commits »
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-08 15:12:52 +08:00
6a60b1522c Kernel: Added startup kernel.
93fdb03690 Kernel: Added startup kernel.
Compare 2 commits »
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-08 15:11:44 +08:00
93fdb03690 Kernel: Added startup kernel.
0b3af99c1f Kernel: Added startup kernel.
Compare 2 commits »
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-08 14:45:14 +08:00
d978c861d3 Kernel: Added simple core_log.
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-08 14:43:50 +08:00
d978c861d3 Kernel: Added simple core_log.
0b3af99c1f Kernel: Added startup kernel.
67ff3c36e2 drop FSBL
a8de572014 set up PL clocks
e750b61973 shell.nix: add binutils
Compare 7 commits »
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-07 16:27:18 +08:00
c071507ff8 RTIO: implemented exceptions
pca006132 deleted branch rpc_exception from pca006132/artiq-zynq 2020-07-07 16:03:00 +08:00
pca006132 deleted branch eh-clean from pca006132/artiq-zynq 2020-07-07 16:02:58 +08:00
pca006132 deleted branch eh from pca006132/artiq-zynq 2020-07-07 16:02:56 +08:00
pca006132 deleted branch corruption_test from pca006132/artiq-zynq 2020-07-07 16:02:53 +08:00
pca006132 deleted branch backtrace from pca006132/artiq-zynq 2020-07-07 16:02:47 +08:00
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-07 15:51:14 +08:00
f1750cf8cd Kernel: Fixed use-after-free
5b5f68e5af Kernel: fixed use after free
Compare 2 commits »
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-07 15:48:44 +08:00
5b5f68e5af Kernel: fixed use after free
03a7aef17d Kernel: fixed use after free
7605733bb5 Updated zc706 dependency
0f797284e2 SdReader: fixed write cache bug.
e6cf3e90d3 update zc706
Compare 5 commits »
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-07 15:45:01 +08:00
03a7aef17d Kernel: fixed use after free
7605733bb5 Updated zc706 dependency
9a452afba7 Kernel: fixed use after free
9dfc99950b Updated zc706 dependency
18a458ba68 SdReader: fixed write cache bug.
Compare 5 commits »
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-07 15:38:33 +08:00
9a452afba7 Kernel: fixed use after free
9dfc99950b Updated zc706 dependency
Compare 2 commits »
pca006132 commented on issue M-Labs/artiq-zynq#8 2020-07-07 15:11:07 +08:00
corruption of kernel RPC values

After dumping the image into SD card, it seems that the corruption is caused by both rpc::send_args and core1_tx.send in rpc_send_common.

It seems that the RPC buffer is written into the image.

Before send_args and after send_args:

--- BEFORE.txt	2020-07-07 15:08:58.212253487 +0800
+++ AFTER1.txt	2020-07-07 15:08:58.193253104 +0800
@@ -1,76 +1,76 @@
-0000000 457f 464c 0101 0001 0000 0000 0000 0000
-0000010 0003 0028 0001 0000 03b0 0000 0034 0000
-0000020 94f0 0001 0400 0500 0034 0020 0006 0028
-0000030 0015 0014 0001 7000 8b5c 0001 8b5c 0001
-0000040 8b5c 0001 0010 0000 0010 0000 0004 0000
-0000050 0004 0000 0001 0000 0000 0000 0000 0000
-0000060 0000 0000 8b6c 0001 8b6c 0001 0005 0000
-0000070 0000 0001 0001 0000 8f40 0001 8f40 0002
-0000080 8f40 0002 0114 0000 0114 0000 0006 0000
-0000090 0000 0001 0002 0000 8f68 0001 8f68 0002
-00000a0 8f68 0002 0098 0000 0098 0000 0006 0000
-00000b0 0004 0000 e551 6474 0000 0000 0000 0000
-00000c0 0000 0000 0000 0000 0000 0000 0006 0000
-00000d0 0010 0000 e552 6474 8f40 0001 8f40 0002
-00000e0 8f40 0002 00c0 0000 00c0 0000 0004 0000
-00000f0 0001 0000 0003 0000 000f 0000 0005 0000
-0000100 0009 0000 0004 0000 0000 0000 0000 0000
-0000110 0000 0000 0006 0000 000e 0000 0008 0000
-0000120 0000 0000 000d 0000 0007 0000 000b 0000
-0000130 0000 0000 000a 0000 0003 0000 0000 0000
-0000140 000c 0000 0003 0000 0006 0000 0002 0000
-0000150 0006 0000 0089 31a8 c400 8862 0006 0000
-0000160 000a 0000 000d 0000 af00 e834 5dd2 f86f
-0000170 4542 ecd5 e3bb 7c92 cbf4 00f3 dabe 1b57
-0000180 71d9 1c58 5476 943c ef59 7997 0000 0000
-0000190 0000 0000 0000 0000 0000 0000 0000 0000
-00001a0 03b0 0000 0000 0000 0003 0008 0000 0000
-00001b0 9020 0002 0000 0000 0003 000f 0030 0000
-00001c0 0000 0000 0000 0000 0010 0000 0001 0000
-00001d0 0000 0000 0000 0000 0010 0000 0021 0000
-00001e0 0000 0000 0000 0000 0010 0000 006c 0000
-00001f0 9054 0002 0000 0000 0010 000f 0041 0000
-0000200 904c 0002 0008 0000 0011 000f 004a 0000
-0000210 9054 0002 0000 0000 0010 000f 007f 0000
-0000220 9054 0002 0000 0000 0010 000f 0015 0000
-0000230 03b0 0000 00c4 0000 0012 0008 006b 0000
-0000240 9054 0002 0000 0000 0010 000f 0051 0000
-0000250 9054 0002 0000 0000 0010 000f 005d 0000
-0000260 9054 0002 0000 0000 0010 000f 0077 0000
-0000270 9054 0002 0000 0000 0010 000f 5f00 615f
-0000280 7472 7169 705f 7265 6f73 616e 696c 7974
-0000290 5f00 6d5f 646f 6e69 7469 5f5f 7200 6370
-00002a0 735f 6e65 5f64 7361 6e79 0063 7472 6f69
-00002b0 675f 7465 635f 756f 746e 7265 7400 7079
-00002c0 6965 666e 006f 655f 6164 6174 5f00 625f
-00002d0 7373 735f 6174 7472 5f00 625f 7373 735f
-00002e0 6174 7472 5f5f 5f00 625f 7373 655f 646e
-00002f0 5f5f 5f00 655f 646e 5f5f 5f00 6e65 0064
-0000300 8f44 0002 0017 0000 8f4c 0002 0017 0000
-0000310 8f54 0002 0017 0000 8f58 0002 0017 0000
-0000320 8f60 0002 0017 0000 8f64 0002 0017 0000
-0000330 9024 0002 0017 0000 9028 0002 0017 0000
-0000340 9034 0002 0017 0000 903c 0002 0017 0000
-0000350 9044 0002 0017 0000 904c 0002 0017 0000
-0000360 900c 0002 0316 0000 9010 0002 0416 0000
-0000370 9014 0002 0516 0000 e004 e52d e004 e59f
-0000380 e00e e08f f008 e5be 8c78 0002 c600 e28f
-0000390 ca28 e28c fc78 e5bc c600 e28f ca28 e28c
-00003a0 fc70 e5bc c600 e28f ca28 e28c fc68 e5bc
-00003b0 4830 e92d d030 e24d 40a8 e59f 4004 e08f
-00003c0 5004 e594 fff0 ebff 009c e59f 200c e594
-00003d0 0000 e08f 0028 e58d 0004 e3a0 1008 e594
-00003e0 002c e58d 001c e28d 0020 e58d 0014 e28d
-00003f0 0016 e880 0014 e28d 1028 e28d 2020 e28d
-0000400 0024 e58d 0002 e3a0 400d e1a0 ffe4 ebff
-0000410 d004 e1a0 ffdc ebff 0b10 eddf 1003 e3a0
-0000420 1b02 edd5 2008 e28d 0040 e59f 0ba0 ee61
-0000430 1010 e58d 0000 e08f 000c e58d 000d e1a0
-0000440 100c e28d 0008 e58d 0001 e3a0 0b00 edcd
-0000450 ffd3 ebff d030 e28d 8830 e8bd f000 e320
-0000460 0000 4800 7c88 41b4 8c5c 0002 876c 0001
-0000470 86f4 0001 0000 0000 0000 0000 0000 0000
-0000480 0006 0000 0000 0000 d695 e826 2e0b 3e11
+0000000 ffff ffff ffff ffff ffff ffff ffff ffff
+0000010 ffff ffff ffff ffff ffff ffff ffff ffff
+0000020 ffff ffff ffff ffff ffff ffff ffff ffff
+0000030 ffff ffff ffff ffff ffff ffff ffff ffff
+0000040 ffff ffff ffff ffff ffff ffff ffff ffff
+0000050 ffff ffff ffff ffff ffff ffff ffff ffff
+0000060 ffff ffff ffff ffff ffff ffff ffff ffff
+0000070 ffff ffff ffff ffff ffff ffff ffff ffff
+0000080 ffff ffff ffff ffff ffff ffff ffff ffff
+0000090 ffff ffff ffff ffff ffff ffff ffff ffff
+00000a0 ffff ffff ffff ffff ffff ffff ffff ffff
+00000b0 ffff ffff ffff ffff ffff ffff ffff ffff
+00000c0 ffff ffff ffff ffff ffff ffff ffff ffff
+00000d0 ffff ffff ffff ffff ffff ffff ffff ffff
+00000e0 ffff ffff ffff ffff ffff ffff ffff ffff
+00000f0 ffff ffff ffff ffff ffff ffff ffff ffff
+0000100 ffff ffff ffff ffff ffff ffff ffff ffff
+0000110 ffff ffff ffff ffff ffff ffff ffff ffff
+0000120 ffff ffff ffff ffff ffff ffff ffff ffff
+0000130 ffff ffff ffff ffff ffff ffff ffff ffff
+0000140 ffff ffff ffff ffff ffff ffff ffff ffff
+0000150 ffff ffff ffff ffff ffff ffff ffff ffff
+0000160 ffff ffff ffff ffff ffff ffff ffff ffff
+0000170 ffff ffff ffff ffff ffff ffff ffff ffff
+0000180 ffff ffff ffff ffff ffff ffff ffff ffff
+0000190 ffff ffff ffff ffff ffff ffff ffff ffff
+00001a0 ffff ffff ffff ffff ffff ffff ffff ffff
+00001b0 ffff ffff ffff ffff ffff ffff ffff ffff
+00001c0 ffff ffff ffff ffff ffff ffff ffff ffff
+00001d0 ffff ffff ffff ffff ffff ffff ffff ffff
+00001e0 ffff ffff ffff ffff ffff ffff ffff ffff
+00001f0 ffff ffff ffff ffff ffff ffff ffff ffff
+0000200 ffff ffff ffff ffff ffff ffff ffff ffff
+0000210 ffff ffff ffff ffff ffff ffff ffff ffff
+0000220 ffff ffff ffff ffff ffff ffff ffff ffff
+0000230 ffff ffff ffff ffff ffff ffff ffff ffff
+0000240 ffff ffff ffff ffff ffff ffff ffff ffff
+0000250 ffff ffff ffff ffff ffff ffff ffff ffff
+0000260 ffff ffff ffff ffff ffff ffff ffff ffff
+0000270 ffff ffff ffff ffff ffff ffff ffff ffff
+0000280 ffff ffff ffff ffff ffff ffff ffff ffff
+0000290 ffff ffff ffff ffff ffff ffff ffff ffff
+00002a0 ffff ffff ffff ffff ffff ffff ffff ffff
+00002b0 ffff ffff ffff ffff ffff ffff ffff ffff
+00002c0 ffff ffff ffff ffff ffff ffff ffff ffff
+00002d0 ffff ffff ffff ffff ffff ffff ffff ffff
+00002e0 ffff ffff ffff ffff ffff ffff ffff ffff
+00002f0 ffff ffff ffff ffff ffff ffff ffff ffff
+0000300 ffff ffff ffff ffff ffff ffff ffff ffff
+0000310 ffff ffff ffff ffff ffff ffff ffff ffff
+0000320 ffff ffff ffff ffff ffff ffff ffff ffff
+0000330 ffff ffff ffff ffff ffff ffff ffff ffff
+0000340 ffff ffff ffff ffff ffff ffff ffff ffff
+0000350 ffff ffff ffff ffff ffff ffff ffff ffff
+0000360 ffff ffff ffff ffff ffff ffff ffff ffff
+0000370 ffff ffff ffff ffff ffff ffff ffff ffff
+0000380 ffff ffff ffff ffff ffff ffff ffff ffff
+0000390 ffff ffff ffff ffff ffff ffff ffff ffff
+00003a0 ffff ffff ffff ffff ffff ffff ffff ffff
+00003b0 ffff ffff ffff ffff ffff ffff ffff ffff
+00003c0 ffff ffff ffff ffff ffff ffff ffff ffff
+00003d0 ffff ffff ffff ffff ffff ffff ffff ffff
+00003e0 ffff ffff ffff ffff ffff ffff ffff ffff
+00003f0 ffff ffff ffff ffff ffff ffff ffff ffff
+0000400 ffff ffff ffff ffff ffff ffff ffff ffff
+0000410 ffff ffff ffff ffff ffff ffff ffff ffff
+0000420 ffff ffff ffff ffff ffff ffff ffff ffff
+0000430 ffff ffff ffff ffff ffff ffff ffff ffff
+0000440 ffff ffff ffff ffff ffff ffff ffff ffff
+0000450 ffff ffff ffff ffff ffff ffff ffff ffff
+0000460 ffff ffff ffff ffff ffff ffff ffff ffff
+0000470 ffff ffff ffff ffff ffff ffff ffff ffff
+0000480 ffff ffff ffff ffff ffff ffff ffff ffff
 0000490 ffff ffff ffff ffff ffff ffff ffff ffff
 00004a0 ffff ffff ffff ffff ffff ffff ffff ffff
 00004b0 ffff ffff ffff ffff ffff ffff ffff ffff
@@ -2246,8 +2246,8 @@
 0008c50 ffff ffff ffff ffff ffff ffff ffff ffff
 0008c60 ffff ffff ffff ffff ffff ffff ffff ffff
 0008c70 ffff ffff ffff ffff ffff ffff ffff ffff
-0008c80 ffff ffff ffff ffff ffff ffff ffff ffff
-0008c90 ffff ffff ffff ffff ffff ffff ffff ffff
+0008c80 ffff ffff ffff ffff ffff ffff ffff 0000
+0008c90 0000 6e01 ffff ffff ffff ffff ffff ffff
 0008ca0 ffff ffff ffff ffff ffff ffff ffff ffff
 0008cb0 ffff ffff ffff ffff ffff ffff ffff ffff
 0008cc0 ffff ffff ffff ffff ffff ffff ffff ffff
@@ -8497,8 +8497,8 @@
 0021300 0000 0000 0000 0000 0000 0000 0000 0000
 0021310 0000 0000 0000 0000 0000 0000 0000 0000
 0021320 0000 0000 0000 0000 0000 0000 0000 0000
-0021330 0000 0000 0000 0000 0000 0000 0000 0000
-0021340 0000 0000 0000 0000 0000 0000 0000 0000
+0021330 0000 0000 0000 0000 0000 0000 ecc4 0004
+0021340 0000 0040 0000 0000 0000 0000 0000 0000
 0021350 0000 0000 0000 0000 0000 0000 0000 0000
 0021360 0000 0000 0000 0000 0000 0000 0000 0000
 0021370 0000 0000 0000 0000 0000 0000 0000 0000

Before core0_tx.send and after:

--- AFTER1.txt	2020-07-07 15:08:58.193253104 +0800
+++ AFTER2.txt	2020-07-07 15:08:58.202253285 +0800
@@ -8498,7 +8498,7 @@
 0021310 0000 0000 0000 0000 0000 0000 0000 0000
 0021320 0000 0000 0000 0000 0000 0000 0000 0000
 0021330 0000 0000 0000 0000 0000 0000 ecc4 0004
-0021340 0000 0040 0000 0000 0000 0000 0000 0000
+0021340 0000 0000 0000 0000 0000 0000 0000 0000
 0021350 0000 0000 0000 0000 0000 0000 0000 0000
 0021360 0000 0000 0000 0000 0000 0000 0000 0000
 0021370 0000 0000 0000 0000 0000 0000 0000 0000

Code: https://git.m-labs.hk/pca006132/artiq-zynq/src/branch/corruption_test

pca006132 pushed to corruption_test at pca006132/artiq-zynq 2020-07-07 15:09:55 +08:00
afd7a7c7c6 changed example
pca006132 pushed to corruption_test at pca006132/artiq-zynq 2020-07-07 15:06:05 +08:00
132aa85bba testing corruption
pca006132 pushed to master at pca006132/artiq-zynq 2020-07-07 14:00:01 +08:00
18a458ba68 SdReader: fixed write cache bug.
0119022b2c remove compiler warning
de2c2af523 use new exception vectors
8c0b7cdcf2 runtime: adjust stack and heap sizes
7661b2a288 remove unused import
Compare 6 commits »