Skip to contentSkip to conversation

New I-pipe patch for ARM needs testing.

Xenomai-core BOUIN Alexandre 3 participants 3 messages Jun 22, 2007

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Same tests but for AT91SAM9263-EK board :
- one under DD load, latency set to 45µs
- another one under Calibrator load, latency set to 30µs
- and the last under Test_switch load, latency set to 45µs
Xeno-test traces are available and the end of this mail.

We used kernel 2.6.20.13, Xenomai snapshot from 08/06/2007, adeos-ipipe-2.6.20-arm-1.7-03.patch included plus 2.6.20-at91.patch.

A little correction on macb and ipipe patch was needed :
- macb ethernet controler is not detected on startup
- we added some corrections to make 9263 usable under ipipe
- owing to changes in at91 patch (clk are now registered on startup) we made a little correction for future adeos-ipipe-2.6.21-arm.patch.

You will find all added patches attached to this mail.
<<adeos-ipipe-2.6.20-arm-AT91.patch>> <<2.6.20-at91-macb-9263.patch>> <<adeos-ipipe-2.6.20-arm-AT91.patch>>
Latencies are a little worst than on other boards. We presume that it's due to the large number of peripherals.

Our latency tests on AT91 boards are done ;)

Here are the results :

[DD load]

RTD|      12.165|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       3.521|      33.293|      60.825|       0|      -3.201|      86.756
RTD|       9.283|      33.293|      60.825|       0|      -3.201|      86.756
RTD|      11.524|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       9.283|      33.293|      61.145|       0|      -3.201|      86.756
RTD|       4.481|      33.293|      61.145|       0|      -3.201|      86.756
RTD|       3.521|      33.293|      59.864|       0|      -3.201|      86.756
RTD|       9.924|      33.293|      60.185|       0|      -3.201|      86.756
RTD|      11.844|      33.293|      60.185|       0|      -3.201|      86.756
RTD|      10.884|      33.293|      60.505|       0|      -3.201|      86.756
RTD|      10.884|      33.293|      61.145|       0|      -3.201|      86.756
RTD|      11.524|      33.293|      60.825|       0|      -3.201|      86.756
RTD|      11.524|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       8.963|      33.293|      61.145|       0|      -3.201|      86.756
RTD|       7.683|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       7.363|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       8.643|      33.293|      61.145|       0|      -3.201|      86.756
RTD|      10.244|      33.293|      62.425|       0|      -3.201|      86.756
RTD|       9.283|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       9.603|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       8.003|      33.293|      61.145|       0|      -3.201|      86.756
RTT|  05:08:54  (periodic user-mode task, 500 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst
RTD|      10.884|      33.293|      61.145|       0|      -3.201|      86.756
RTD|       2.240|      33.293|      60.825|       0|      -3.201|      86.756
RTD|       8.963|      33.293|      60.185|       0|      -3.201|      86.756
RTD|       3.201|      33.293|      60.185|       0|      -3.201|      86.756
RTD|       5.442|      33.293|      61.465|       0|      -3.201|      86.756
RTD|      11.204|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       9.924|      33.293|      60.505|       0|      -3.201|      86.756
RTD|      11.844|      33.293|      63.706|       0|      -3.201|      86.756
RTD|       6.402|      33.293|      60.825|       0|      -3.201|      86.756
RTD|       7.683|      33.293|      60.825|       0|      -3.201|      86.756
RTD|       9.924|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       9.924|      33.293|      61.145|       0|      -3.201|      86.756
RTD|       8.963|      33.293|      60.505|       0|      -3.201|      86.756
RTD|      10.564|      33.293|      61.145|       0|      -3.201|      86.756
RTD|      14.405|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       3.841|      33.293|      60.505|       0|      -3.201|      86.756
RTD|       9.924|      33.293|      60.505|       0|      -3.201|      86.756
RTD|      10.244|      33.293|      61.145|       0|      -3.201|      86.756
RTD|      11.844|      33.293|      62.105|       0|      -3.201|      86.756
RTD|      11.844|      33.293|      60.505|       0|      -3.201|      86.756
---|--param|----range-|--samples
HSD|    min|   0 -  1 |      134
HSD|    min|   1 -  2 |      488
HSD|    min|   2 -  3 |     1010
HSD|    min|   3 -  4 |      965
HSD|    min|   4 -  5 |      569
HSD|    min|   5 -  6 |      261
HSD|    min|   6 -  7 |      458
HSD|    min|   7 -  8 |     1208
HSD|    min|   8 -  9 |     3131
HSD|    min|   9 - 10 |     3091
HSD|    min|  10 - 11 |     3182
HSD|    min|  11 - 12 |     2400
HSD|    min|  12 - 13 |     1245
HSD|    min|  13 - 14 |      291
HSD|    min|  14 - 15 |       49
HSD|    min|  15 - 16 |        2
HSD|    min|  16 - 17 |       16
HSD|    min|  17 - 18 |       48
HSD|    min|  18 - 19 |       14
HSD|    min|  22 - 23 |        1
---|--param|----range-|--samples
HSD|    avg|   0 -  1 |      135
HSD|    avg|   1 -  2 |      490
HSD|    avg|   2 -  3 |     1016
HSD|    avg|   3 -  4 |      978
HSD|    avg|   4 -  5 |      583
HSD|    avg|   5 -  6 |      306
HSD|    avg|   6 -  7 |      566
HSD|    avg|   7 -  8 |     1337
HSD|    avg|   8 -  9 |     3349
HSD|    avg|   9 - 10 |     3186
HSD|    avg|  10 - 11 |     3243
HSD|    avg|  11 - 12 |     2453
HSD|    avg|  12 - 13 |     1298
HSD|    avg|  13 - 14 |      341
HSD|    avg|  14 - 15 |      189
HSD|    avg|  15 - 16 |      803
HSD|    avg|  16 - 17 |     3917
HSD|    avg|  17 - 18 |    10060
HSD|    avg|  18 - 19 |     5203
HSD|    avg|  19 - 20 |     4228
HSD|    avg|  20 - 21 |     3991
HSD|    avg|  21 - 22 |     4511
HSD|    avg|  22 - 23 |    15382
HSD|    avg|  23 - 24 |    29786
HSD|    avg|  24 - 25 |    65154
HSD|    avg|  25 - 26 |   147550
HSD|    avg|  26 - 27 |   471980
HSD|    avg|  27 - 28 |   450798
HSD|    avg|  28 - 29 |   170972
HSD|    avg|  29 - 30 |    36877
HSD|    avg|  30 - 31 |    16143
HSD|    avg|  31 - 32 |   261816
HSD|    avg|  32 - 33 | 10977878
HSD|    avg|  33 - 34 | 19656366
HSD|    avg|  34 - 35 |  4151436
HSD|    avg|  35 - 36 |    83221
HSD|    avg|  36 - 37 |    24599
HSD|    avg|  37 - 38 |    11920
HSD|    avg|  38 - 39 |     4318
HSD|    avg|  39 - 40 |     4646
HSD|    avg|  40 - 41 |     2715
HSD|    avg|  41 - 42 |     5440
HSD|    avg|  42 - 43 |    99050
HSD|    avg|  43 - 44 |   147505
HSD|    avg|  44 - 45 |    34821
HSD|    avg|  45 - 46 |     6605
HSD|    avg|  46 - 47 |     1202
HSD|    avg|  47 - 48 |      220
HSD|    avg|  48 - 49 |      215
HSD|    avg|  49 - 50 |     1927
HSD|    avg|  50 - 51 |     5521
HSD|    avg|  51 - 52 |     2622
HSD|    avg|  52 - 53 |     1538
HSD|    avg|  53 - 54 |      552
HSD|    avg|  54 - 55 |       61
HSD|    avg|  55 - 56 |       18
HSD|    avg|  56 - 57 |       73
HSD|    avg|  57 - 58 |     5803
HSD|    avg|  58 - 59 |    36837
HSD|    avg|  59 - 60 |    78173
HSD|    avg|  60 - 61 |    55432
HSD|    avg|  61 - 62 |     5094
HSD|    avg|  62 - 63 |      819
HSD|    avg|  63 - 64 |      436
HSD|    avg|  64 - 65 |      217
HSD|    avg|  65 - 66 |       45
HSD|    avg|  66 - 67 |       12
HSD|    avg|  67 - 68 |        2
HSD|    avg|  68 - 69 |        2
HSD|    avg|  69 - 70 |        1
HSD|    avg|  71 - 72 |        1
HSD|    avg|  72 - 73 |        3
HSD|    avg|  74 - 75 |        1
HSD|    avg|  75 - 76 |        1
HSD|    avg|  76 - 77 |        1
HSD|    avg|  77 - 78 |        4
HSD|    avg|  78 - 79 |        2
HSD|    avg|  79 - 80 |        2
HSD|    avg|  80 - 81 |        3
HSD|    avg|  81 - 82 |        6
HSD|    avg|  82 - 83 |        3
HSD|    avg|  83 - 84 |        3
HSD|    avg|  84 - 85 |        1
HSD|    avg|  85 - 86 |        2
HSD|    avg|  86 - 87 |        3
---|--param|----range-|--samples
HSD|    max|  59 - 60 |      288
HSD|    max|  60 - 61 |    12731
HSD|    max|  61 - 62 |     4093
HSD|    max|  62 - 63 |      756
HSD|    max|  63 - 64 |      398
HSD|    max|  64 - 65 |      199
HSD|    max|  65 - 66 |       45
HSD|    max|  66 - 67 |       12
HSD|    max|  67 - 68 |        2
HSD|    max|  68 - 69 |        2
HSD|    max|  69 - 70 |        1
HSD|    max|  71 - 72 |        1
HSD|    max|  72 - 73 |        3
HSD|    max|  74 - 75 |        1
HSD|    max|  75 - 76 |        1
HSD|    max|  76 - 77 |        1
HSD|    max|  77 - 78 |        4
HSD|    max|  78 - 79 |        2
HSD|    max|  79 - 80 |        2
HSD|    max|  80 - 81 |        3
HSD|    max|  81 - 82 |        6
HSD|    max|  82 - 83 |        3
HSD|    max|  83 - 84 |        3
HSD|    max|  84 - 85 |        1
HSD|    max|  85 - 86 |        2
HSD|    max|  86 - 87 |        3
HSH|--param|--samples-|--average--|---stddev--
HSS|    min|     18563|      8.192|      3.112
HSS|    avg|  37126019|     32.748|      2.625
HSS|    max|     18563|     60.450|      1.201
---|------------|------------|------------|--------|-------------------------
RTS|      -3.201|      32.973|      86.756|       0|    05:09:13/05:09:13

[Calibrator load]

HSD|    min|   0 -  1 |       23
HSD|    min|   1 -  2 |       28
HSD|    min|   2 -  3 |       18
HSD|    min|   3 -  4 |       32
HSD|    min|   4 -  5 |       97
HSD|    min|   5 -  6 |      138
HSD|    min|   6 -  7 |      152
HSD|    min|   7 -  8 |      192
HSD|    min|   8 -  9 |      283
HSD|    min|   9 - 10 |      208
HSD|    min|  10 - 11 |      241
HSD|    min|  11 - 12 |      267
HSD|    min|  12 - 13 |      144
HSD|    min|  13 - 14 |       99
HSD|    min|  14 - 15 |      149
HSD|    min|  15 - 16 |      330
HSD|    min|  16 - 17 |     1461
HSD|    min|  17 - 18 |     1646
HSD|    min|  18 - 19 |     1151
HSD|    min|  19 - 20 |      484
HSD|    min|  20 - 21 |      205
HSD|    min|  21 - 22 |      318
HSD|    min|  22 - 23 |     1124
HSD|    min|  23 - 24 |     3020
HSD|    min|  24 - 25 |     4897
HSD|    min|  25 - 26 |     2123
HSD|    min|  26 - 27 |      649
HSD|    min|  27 - 28 |      101
HSD|    min|  28 - 29 |       11
HSD|    min|  29 - 30 |        3
HSD|    min|  30 - 31 |        2
HSD|    min|  31 - 32 |       16
HSD|    min|  32 - 33 |       33
HSD|    min|  33 - 34 |        5
HSD|    min|  35 - 36 |        1
HSD|    min|  36 - 37 |        2
---|--param|----range-|--samples
HSD|    avg|   0 -  1 |       23
HSD|    avg|   1 -  2 |       28
HSD|    avg|   2 -  3 |       22
HSD|    avg|   3 -  4 |       43
HSD|    avg|   4 -  5 |      137
HSD|    avg|   5 -  6 |      187
HSD|    avg|   6 -  7 |      299
HSD|    avg|   7 -  8 |      447
HSD|    avg|   8 -  9 |      609
HSD|    avg|   9 - 10 |      497
HSD|    avg|  10 - 11 |      540
HSD|    avg|  11 - 12 |      659
HSD|    avg|  12 - 13 |      401
HSD|    avg|  13 - 14 |      224
HSD|    avg|  14 - 15 |      240
HSD|    avg|  15 - 16 |      465
HSD|    avg|  16 - 17 |     2029
HSD|    avg|  17 - 18 |     2319
HSD|    avg|  18 - 19 |     1704
HSD|    avg|  19 - 20 |      804
HSD|    avg|  20 - 21 |      443
HSD|    avg|  21 - 22 |      596
HSD|    avg|  22 - 23 |     1489
HSD|    avg|  23 - 24 |     3643
HSD|    avg|  24 - 25 |     6119
HSD|    avg|  25 - 26 |     2682
HSD|    avg|  26 - 27 |     1105
HSD|    avg|  27 - 28 |      486
HSD|    avg|  28 - 29 |     1038
HSD|    avg|  29 - 30 |    70212
HSD|    avg|  30 - 31 |    56640
HSD|    avg|  31 - 32 |    52708
HSD|    avg|  32 - 33 |    43857
HSD|    avg|  33 - 34 |    41572
HSD|    avg|  34 - 35 |    40295
HSD|    avg|  35 - 36 |    45101
HSD|    avg|  36 - 37 |    23779
HSD|    avg|  37 - 38 |    34772
HSD|    avg|  38 - 39 |    53527
HSD|    avg|  39 - 40 |   224892
HSD|    avg|  40 - 41 |   713522
HSD|    avg|  41 - 42 |   443870
HSD|    avg|  42 - 43 |   147427
HSD|    avg|  43 - 44 |    82451
HSD|    avg|  44 - 45 |    63101
HSD|    avg|  45 - 46 |    97675
HSD|    avg|  46 - 47 |   537084
HSD|    avg|  47 - 48 | 10489464
HSD|    avg|  48 - 49 | 13121905
HSD|    avg|  49 - 50 |  1571723
HSD|    avg|  50 - 51 |  1012662
HSD|    avg|  51 - 52 |  2635842
HSD|    avg|  52 - 53 |  1102952
HSD|    avg|  53 - 54 |   193318
HSD|    avg|  54 - 55 |    27236
HSD|    avg|  55 - 56 |    27914
HSD|    avg|  56 - 57 |   622650
HSD|    avg|  57 - 58 |   430457
HSD|    avg|  58 - 59 |   218670
HSD|    avg|  59 - 60 |   292796
HSD|    avg|  60 - 61 |   318929
HSD|    avg|  61 - 62 |   150574
HSD|    avg|  62 - 63 |    94515
HSD|    avg|  63 - 64 |    44035
HSD|    avg|  64 - 65 |    92663
HSD|    avg|  65 - 66 |   201498
HSD|    avg|  66 - 67 |    92536
HSD|    avg|  67 - 68 |     6022
HSD|    avg|  68 - 69 |     3936
HSD|    avg|  69 - 70 |     2842
HSD|    avg|  70 - 71 |     2028
HSD|    avg|  71 - 72 |     1692
HSD|    avg|  72 - 73 |    19161
HSD|    avg|  73 - 74 |    54738
HSD|    avg|  74 - 75 |    51988
HSD|    avg|  75 - 76 |    12469
HSD|    avg|  76 - 77 |    11298
HSD|    avg|  77 - 78 |    13999
HSD|    avg|  78 - 79 |     9041
HSD|    avg|  79 - 80 |     4775
HSD|    avg|  80 - 81 |     3710
HSD|    avg|  81 - 82 |     2234
HSD|    avg|  82 - 83 |     1892
HSD|    avg|  83 - 84 |     1544
HSD|    avg|  84 - 85 |     1672
HSD|    avg|  85 - 86 |      977
HSD|    avg|  86 - 87 |      434
HSD|    avg|  87 - 88 |      337
HSD|    avg|  88 - 89 |      600
HSD|    avg|  89 - 90 |      978
HSD|    avg|  90 - 91 |     1039
HSD|    avg|  91 - 92 |     3270
HSD|    avg|  92 - 93 |    28168
HSD|    avg|  93 - 94 |    21162
HSD|    avg|  94 - 95 |     7248
HSD|    avg|  95 - 96 |     4191
HSD|    avg|  96 - 97 |     2320
HSD|    avg|  97 - 98 |     2278
HSD|    avg|  98 - 99 |    56442
HSD|    avg|  99 -100 |   237929
HSD|    avg| 100 -101 |    70802
HSD|    avg| 101 -102 |    14430
HSD|    avg| 102 -103 |    14533
HSD|    avg| 103 -104 |    13002
HSD|    avg| 104 -105 |     9914
HSD|    avg| 105 -106 |   358555
HSD|    avg| 106 -107 |  1495133
HSD|    avg| 107 -108 |   743224
HSD|    avg| 108 -109 |   163029
HSD|    avg| 109 -110 |    50653
HSD|    avg| 110 -111 |    38450
HSD|    avg| 111 -112 |    38028
HSD|    avg| 112 -113 |    18863
HSD|    avg| 113 -114 |    17403
HSD|    avg| 114 -115 |    10765
HSD|    avg| 115 -116 |    10368
HSD|    avg| 116 -117 |    10304
HSD|    avg| 117 -118 |     7948
HSD|    avg| 118 -119 |     6379
HSD|    avg| 119 -120 |     6637
HSD|    avg| 120 -121 |     6332
HSD|    avg| 121 -122 |     7740
HSD|    avg| 122 -123 |     4607
HSD|    avg| 123 -124 |     5423
HSD|    avg| 124 -125 |     5008
HSD|    avg| 125 -126 |     4218
HSD|    avg| 126 -127 |     4584
HSD|    avg| 127 -128 |     4164
HSD|    avg| 128 -129 |     3924
HSD|    avg| 129 -130 |     7523
HSD|    avg| 130 -131 |     5552
HSD|    avg| 131 -132 |     3398
HSD|    avg| 132 -133 |     2872
HSD|    avg| 133 -134 |     1264
HSD|    avg| 134 -135 |      599
HSD|    avg| 135 -136 |      359
HSD|    avg| 136 -137 |      213
HSD|    avg| 137 -138 |     1065
HSD|    avg| 138 -139 |     2950
HSD|    avg| 139 -140 |    10475
HSD|    avg| 140 -141 |     7105
HSD|    avg| 141 -142 |     2271
HSD|    avg| 142 -143 |      680
HSD|    avg| 143 -144 |      156
HSD|    avg| 144 -145 |       94
HSD|    avg| 145 -146 |       74
HSD|    avg| 146 -147 |       40
HSD|    avg| 147 -148 |       32
HSD|    avg| 148 -149 |       31
HSD|    avg| 149 -150 |       22
HSD|    avg| 150 -151 |       18
HSD|    avg| 151 -152 |       11
HSD|    avg| 152 -153 |        6
HSD|    avg| 153 -154 |        7
HSD|    avg| 154 -155 |       11
HSD|    avg| 155 -156 |        7
HSD|    avg| 156 -157 |        3
HSD|    avg| 157 -158 |        7
HSD|    avg| 158 -159 |        3
HSD|    avg| 159 -160 |        5
HSD|    avg| 160 -161 |        7
HSD|    avg| 161 -162 |        4
HSD|    avg| 162 -163 |        4
HSD|    avg| 163 -164 |        4
HSD|    avg| 164 -165 |        2
HSD|    avg| 165 -166 |        1
HSD|    avg| 167 -168 |        1
HSD|    avg| 168 -169 |        1
HSD|    avg| 169 -170 |        2
HSD|    avg| 170 -171 |        2
HSD|    avg| 175 -176 |        1
HSD|    avg| 176 -177 |        1
---|--param|----range-|--samples
HSD|    max|  73 - 74 |      228
HSD|    max|  74 - 75 |     3834
HSD|    max|  75 - 76 |     1219
HSD|    max|  76 - 77 |     1070
HSD|    max|  77 - 78 |     1261
HSD|    max|  78 - 79 |     1338
HSD|    max|  79 - 80 |     1163
HSD|    max|  80 - 81 |     1727
HSD|    max|  81 - 82 |     1312
HSD|    max|  82 - 83 |     1264
HSD|    max|  83 - 84 |      862
HSD|    max|  84 - 85 |      388
HSD|    max|  85 - 86 |      127
HSD|    max|  86 - 87 |       39
HSD|    max|  87 - 88 |       11
HSD|    max|  88 - 89 |       10
HSD|    max|  89 - 90 |        9
HSD|    max|  90 - 91 |        8
HSD|    max|  91 - 92 |        5
HSD|    max|  92 - 93 |        9
HSD|    max|  93 - 94 |       11
HSD|    max|  94 - 95 |       15
HSD|    max|  95 - 96 |       10
HSD|    max|  96 - 97 |       11
HSD|    max|  97 - 98 |       17
HSD|    max|  98 - 99 |       12
HSD|    max|  99 -100 |       22
HSD|    max| 100 -101 |       18
HSD|    max| 101 -102 |       16
HSD|    max| 102 -103 |       26
HSD|    max| 103 -104 |       31
HSD|    max| 104 -105 |       42
HSD|    max| 105 -106 |       50
HSD|    max| 106 -107 |       30
HSD|    max| 107 -108 |       29
HSD|    max| 108 -109 |       34
HSD|    max| 109 -110 |       11
HSD|    max| 110 -111 |       15
HSD|    max| 111 -112 |       16
HSD|    max| 112 -113 |       16
HSD|    max| 113 -114 |       38
HSD|    max| 114 -115 |       32
HSD|    max| 115 -116 |       36
HSD|    max| 116 -117 |       26
HSD|    max| 117 -118 |       29
HSD|    max| 118 -119 |       32
HSD|    max| 119 -120 |       32
HSD|    max| 120 -121 |       32
HSD|    max| 121 -122 |       23
HSD|    max| 122 -123 |       20
HSD|    max| 123 -124 |       10
HSD|    max| 124 -125 |       12
HSD|    max| 125 -126 |       11
HSD|    max| 126 -127 |       14
HSD|    max| 127 -128 |       18
HSD|    max| 128 -129 |       16
HSD|    max| 129 -130 |       28
HSD|    max| 130 -131 |       59
HSD|    max| 131 -132 |       74
HSD|    max| 132 -133 |       54
HSD|    max| 133 -134 |       29
HSD|    max| 134 -135 |       14
HSD|    max| 135 -136 |        7
HSD|    max| 136 -137 |       11
HSD|    max| 137 -138 |       16
HSD|    max| 138 -139 |       31
HSD|    max| 139 -140 |       81
HSD|    max| 140 -141 |      554
HSD|    max| 141 -142 |     1030
HSD|    max| 142 -143 |      476
HSD|    max| 143 -144 |      130
HSD|    max| 144 -145 |       78
HSD|    max| 145 -146 |       61
HSD|    max| 146 -147 |       36
HSD|    max| 147 -148 |       30
HSD|    max| 148 -149 |       30
HSD|    max| 149 -150 |       21
HSD|    max| 150 -151 |       18
HSD|    max| 151 -152 |       11
HSD|    max| 152 -153 |        5
HSD|    max| 153 -154 |        7
HSD|    max| 154 -155 |       10
HSD|    max| 155 -156 |        7
HSD|    max| 156 -157 |        3
HSD|    max| 157 -158 |        7
HSD|    max| 158 -159 |        3
HSD|    max| 159 -160 |        5
HSD|    max| 160 -161 |        7
HSD|    max| 161 -162 |        4
HSD|    max| 162 -163 |        4
HSD|    max| 163 -164 |        4
HSD|    max| 164 -165 |        2
HSD|    max| 165 -166 |        1
HSD|    max| 167 -168 |        1
HSD|    max| 168 -169 |        1
HSD|    max| 169 -170 |        2
HSD|    max| 170 -171 |        2
HSD|    max| 175 -176 |        1
HSD|    max| 176 -177 |        1
HSH|--param|--samples-|--average--|---stddev--
HSS|    min|     19653|     20.442|      5.205
HSS|    avg|  39307819|     53.751|     17.180
HSS|    max|     19653|     88.757|     23.271
---|------------|------------|------------|--------|-------------------------
RTS|      -8.003|      53.782|     176.073|       0|    05:27:24/05:27:24

[Test_switch load]

RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst
RTD|       4.481|      36.495|      79.713|       0|      -4.801|     106.604
RTD|       1.600|      36.815|      79.072|       0|      -4.801|     106.604
RTD|       8.963|      36.495|      78.752|       0|      -4.801|     106.604
RTD|       2.881|      36.495|      78.112|       0|      -4.801|     106.604
RTD|       8.003|      36.495|      78.752|       0|      -4.801|     106.604
RTD|      11.844|      36.495|      84.515|       0|      -4.801|     106.604
RTD|       1.280|      36.495|      79.072|       0|      -4.801|     106.604
RTD|       8.643|      36.495|      63.706|       0|      -4.801|     106.604
RTD|       2.881|      36.495|      77.792|       0|      -4.801|     106.604
RTD|       3.841|      36.495|      79.072|       0|      -4.801|     106.604
RTD|       8.003|      36.495|      82.594|       0|      -4.801|     106.604
RTD|      10.244|      36.495|      79.393|       0|      -4.801|     106.604
RTD|       0.960|      36.495|      80.033|       0|      -4.801|     106.604
RTD|       8.643|      36.495|      81.954|       0|      -4.801|     106.604
RTD|      11.524|      36.495|      66.907|       0|      -4.801|     106.604
RTD|       1.600|      36.495|      79.713|       0|      -4.801|     106.604
RTD|       3.841|      36.495|      81.633|       0|      -4.801|     106.604
RTD|       9.283|      36.495|      79.072|       0|      -4.801|     106.604
RTD|      10.244|      36.495|      79.393|       0|      -4.801|     106.604
RTD|       1.280|      36.495|      79.393|       0|      -4.801|     106.604
RTD|       2.240|      36.495|      78.752|       0|      -4.801|     106.604
RTT|  01:15:34  (periodic user-mode task, 500 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst
RTD|       9.603|      36.495|      82.274|       0|      -4.801|     106.604
RTD|       8.643|      36.495|      82.914|       0|      -4.801|     106.604
RTD|       1.920|      36.495|      66.907|       0|      -4.801|     106.604
RTD|       5.442|      36.495|      82.594|       0|      -4.801|     106.604
RTD|      17.927|      36.495|      82.914|       0|      -4.801|     106.604
RTD|       2.240|      36.495|     104.363|       0|      -4.801|     106.604
RTD|       2.240|      36.495|      78.112|       0|      -4.801|     106.604
RTD|       9.283|      36.495|      82.914|       0|      -4.801|     106.604
RTD|       9.283|      36.495|      82.274|       0|      -4.801|     106.604
RTD|      10.884|      36.495|      77.472|       0|      -4.801|     106.604
RTD|       9.603|      36.495|      80.033|       0|      -4.801|     106.604
RTD|       9.924|      36.495|      85.475|       0|      -4.801|     106.604
RTD|       3.521|      36.495|      77.472|       0|      -4.801|     106.604
RTD|       9.283|      36.495|      63.386|       0|      -4.801|     106.604
RTD|       3.841|      36.495|      75.871|       0|      -4.801|     106.604
RTD|       9.283|      36.495|      81.954|       0|      -4.801|     106.604
RTD|       8.323|      36.495|      75.551|       0|      -4.801|     106.604
RTD|       2.561|      36.495|      78.432|       0|      -4.801|     106.604
---|--param|----range-|--samples
HSD|    min|   0 -  1 |      135
HSD|    min|   1 -  2 |      417
HSD|    min|   2 -  3 |      655
HSD|    min|   3 -  4 |      490
HSD|    min|   4 -  5 |      172
HSD|    min|   5 -  6 |       83
HSD|    min|   6 -  7 |      125
HSD|    min|   7 -  8 |      230
HSD|    min|   8 -  9 |      528
HSD|    min|   9 - 10 |      547
HSD|    min|  10 - 11 |      577
HSD|    min|  11 - 12 |      388
HSD|    min|  12 - 13 |      157
HSD|    min|  13 - 14 |       26
HSD|    min|  14 - 15 |        3
HSD|    min|  16 - 17 |        9
HSD|    min|  17 - 18 |       10
HSD|    min|  18 - 19 |        1
HSD|    min|  20 - 21 |        1
---|--param|----range-|--samples
HSD|    avg|   0 -  1 |      135
HSD|    avg|   1 -  2 |      418
HSD|    avg|   2 -  3 |      656
HSD|    avg|   3 -  4 |      492
HSD|    avg|   4 -  5 |      179
HSD|    avg|   5 -  6 |       94
HSD|    avg|   6 -  7 |      141
HSD|    avg|   7 -  8 |      271
HSD|    avg|   8 -  9 |      584
HSD|    avg|   9 - 10 |      582
HSD|    avg|  10 - 11 |      600
HSD|    avg|  11 - 12 |      394
HSD|    avg|  12 - 13 |      170
HSD|    avg|  13 - 14 |       55
HSD|    avg|  14 - 15 |      108
HSD|    avg|  15 - 16 |      225
HSD|    avg|  16 - 17 |     1880
HSD|    avg|  17 - 18 |     1848
HSD|    avg|  18 - 19 |      596
HSD|    avg|  19 - 20 |      947
HSD|    avg|  20 - 21 |     1024
HSD|    avg|  21 - 22 |     1951
HSD|    avg|  22 - 23 |     4472
HSD|    avg|  23 - 24 |     7646
HSD|    avg|  24 - 25 |    17268
HSD|    avg|  25 - 26 |    17672
HSD|    avg|  26 - 27 |    13704
HSD|    avg|  27 - 28 |     6231
HSD|    avg|  28 - 29 |     3641
HSD|    avg|  29 - 30 |     2539
HSD|    avg|  30 - 31 |     1987
HSD|    avg|  31 - 32 |     1997
HSD|    avg|  32 - 33 |     2816
HSD|    avg|  33 - 34 |     2797
HSD|    avg|  34 - 35 |    29055
HSD|    avg|  35 - 36 |  1359783
HSD|    avg|  36 - 37 |  5963432
HSD|    avg|  37 - 38 |  1444786
HSD|    avg|  38 - 39 |    73370
HSD|    avg|  39 - 40 |     8495
HSD|    avg|  40 - 41 |    13947
HSD|    avg|  41 - 42 |     1479
HSD|    avg|  42 - 43 |     1155
HSD|    avg|  43 - 44 |     4746
HSD|    avg|  44 - 45 |     7309
HSD|    avg|  45 - 46 |     2100
HSD|    avg|  46 - 47 |      423
HSD|    avg|  47 - 48 |     1409
HSD|    avg|  48 - 49 |    23428
HSD|    avg|  49 - 50 |     8889
HSD|    avg|  50 - 51 |     1799
HSD|    avg|  51 - 52 |     2671
HSD|    avg|  52 - 53 |     2964
HSD|    avg|  53 - 54 |     1719
HSD|    avg|  54 - 55 |     1051
HSD|    avg|  55 - 56 |      590
HSD|    avg|  56 - 57 |      348
HSD|    avg|  57 - 58 |       81
HSD|    avg|  58 - 59 |      123
HSD|    avg|  59 - 60 |      128
HSD|    avg|  60 - 61 |     1124
HSD|    avg|  61 - 62 |     8847
HSD|    avg|  62 - 63 |    21745
HSD|    avg|  63 - 64 |    12408
HSD|    avg|  64 - 65 |     1584
HSD|    avg|  65 - 66 |      150
HSD|    avg|  66 - 67 |      174
HSD|    avg|  67 - 68 |      189
HSD|    avg|  68 - 69 |      168
HSD|    avg|  69 - 70 |      103
HSD|    avg|  70 - 71 |      108
HSD|    avg|  71 - 72 |       79
HSD|    avg|  72 - 73 |      101
HSD|    avg|  73 - 74 |       68
HSD|    avg|  74 - 75 |       70
HSD|    avg|  75 - 76 |      288
HSD|    avg|  76 - 77 |      830
HSD|    avg|  77 - 78 |     2039
HSD|    avg|  78 - 79 |     2193
HSD|    avg|  79 - 80 |     1235
HSD|    avg|  80 - 81 |      981
HSD|    avg|  81 - 82 |      617
HSD|    avg|  82 - 83 |      498
HSD|    avg|  83 - 84 |      394
HSD|    avg|  84 - 85 |      541
HSD|    avg|  85 - 86 |      346
HSD|    avg|  86 - 87 |      188
HSD|    avg|  87 - 88 |       22
HSD|    avg|  88 - 89 |        8
HSD|    avg|  90 - 91 |        4
HSD|    avg|  91 - 92 |        1
HSD|    avg|  92 - 93 |        2
HSD|    avg|  93 - 94 |        2
HSD|    avg|  94 - 95 |        3
HSD|    avg|  95 - 96 |        5
HSD|    avg|  96 - 97 |       10
HSD|    avg|  97 - 98 |       17
HSD|    avg|  98 - 99 |        8
HSD|    avg|  99 -100 |       10
HSD|    avg| 100 -101 |        1
HSD|    avg| 101 -102 |        3
HSD|    avg| 102 -103 |        3
HSD|    avg| 103 -104 |        5
HSD|    avg| 104 -105 |        3
HSD|    avg| 105 -106 |        1
HSD|    avg| 106 -107 |        1
---|--param|----range-|--samples
HSD|    max|  62 - 63 |        2
HSD|    max|  63 - 64 |      103
HSD|    max|  64 - 65 |       51
HSD|    max|  65 - 66 |       10
HSD|    max|  66 - 67 |       15
HSD|    max|  67 - 68 |       11
HSD|    max|  68 - 69 |       11
HSD|    max|  69 - 70 |        8
HSD|    max|  70 - 71 |        4
HSD|    max|  71 - 72 |        3
HSD|    max|  72 - 73 |        5
HSD|    max|  73 - 74 |        6
HSD|    max|  74 - 75 |       11
HSD|    max|  75 - 76 |       34
HSD|    max|  76 - 77 |      124
HSD|    max|  77 - 78 |      495
HSD|    max|  78 - 79 |      736
HSD|    max|  79 - 80 |      570
HSD|    max|  80 - 81 |      437
HSD|    max|  81 - 82 |      352
HSD|    max|  82 - 83 |      343
HSD|    max|  83 - 84 |      245
HSD|    max|  84 - 85 |      386
HSD|    max|  85 - 86 |      307
HSD|    max|  86 - 87 |      176
HSD|    max|  87 - 88 |       22
HSD|    max|  88 - 89 |        8
HSD|    max|  90 - 91 |        4
HSD|    max|  91 - 92 |        1
HSD|    max|  92 - 93 |        2
HSD|    max|  93 - 94 |        2
HSD|    max|  94 - 95 |        3
HSD|    max|  95 - 96 |        5
HSD|    max|  96 - 97 |       10
HSD|    max|  97 - 98 |       17
HSD|    max|  98 - 99 |        8
HSD|    max|  99 -100 |       10
HSD|    max| 100 -101 |        1
HSD|    max| 101 -102 |        3
HSD|    max| 102 -103 |        3
HSD|    max| 103 -104 |        5
HSD|    max| 104 -105 |        3
HSD|    max| 105 -106 |        1
HSD|    max| 106 -107 |        1
HSH|--param|--samples-|--average--|---stddev--
HSS|    min|      4554|      6.250|      3.820
HSS|    avg|   9108577|     36.167|      2.971
HSS|    max|      4554|     79.952|      5.061
---|------------|------------|------------|--------|-------------------------
RTS|      -4.801|      36.495|     106.604|       0|    01:15:53/01:15:53

[Xeno-test]
: cat /proc/xenomai/interfaces/native
0

Thu Jan 1 23:19:08 UTC 1970
running: cat /proc/xenomai/interfaces/posix
Mem: 6308K used, 56196K free, 0K shrd, 0K buff, 2984K cached Load average: 0.23 0.05 0.02 (Status: S=sleeping R=running, W=waiting)

  PID USER     STATUS   RSS  PPID %MEM COMMAND
  207 root     S        872     1  1.3 sh
 1269 root     R        700  1268  1.1 top
 1098 root     S        660   207  1.0 xeno-test
  176 daemon   S        592     1  0.9 portmap
    1 root     S        564     0  0.9 init
  208 root     S        548     1  0.8 syslogd
  209 root     S        532     1  0.8 klogd

-----Message d'origine-----
De : [email protected] [mailto:[email protected] la part de Gilles Chanteperdrix
Envoyé : lundi 4 juin 2007 19:40
À : adeos-main
Objet : [Adeos-main] New I-pipe patch for ARM needs testing.

Hi,

in Xenomai repository (trunk and v2.3.x branch), you will find adeos-ipipe-2.6.20-arm-1.7-03.patch, the latest version of the I-pipe patch for ARM. In addition to merging support for two new boards (ixp4xx and at91sam926x), this patch adds a few important features:
- the at91 patch now applies after the I-pipe patch with no reject ;
- it is now possible for Xenomai to preempt Linux during the mm switch, which should improve Xenomai scheduling latency significantly;
- Xenomai is now able to access directly I-pipe tsc emulation in user-space, providing a low overhead timing facility to user-space applications.

Before including this patch in a new release, and because I could only test the patch on at91rm9200, we would like people to test the patch on their hardware and give us feedback about the stability and performance. In order to adequately stress-test Linux mm context switch, please use something along the lines of the attached test_switch.c.

As for tsc emulation in user-space, I only implemented it for machines with a free-running counter, hoping that someone (maybe Sebastian or Stelian ?) with hardware whose tsc is based on a decrementer could do the work. This tsc emulation in user-space also required to rework a bit Xenomai configure script: it is now necessary to pass a --enable-arm-mach option to configure, and to pass the option --enable-arm-tsc to enable the tsc.

Thanks in advance.

Signature · 1 line
                                                 Gilles Chanteperdrix

Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: at91rm9200.c.orig Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: at91rm9200_time.c.orig Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: at91sam9261.c.orig

arch/arm/mach-at91rm9200/at91sam9263.c +44 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/arch/arm/mach-at91rm9200/at91sam9263.c linux-2.6.20.13-9263/arch/arm/mach-at91rm9200/at91sam9263.c
@@ -28,6 +28,13 @@ static struct map_desc at91sam9263_io_de
 		.length		= SZ_16K,
 		.type		= MT_DEVICE,
 	}, {
+#ifdef CONFIG_IPIPE
+		.virtual	= AT91_VA_BASE_TCB0,
+		.pfn		= __phys_to_pfn(AT91SAM9263_BASE_TCB0),
+		.length		= SZ_16K,
+		.type		= MT_DEVICE,
+        }, {
+#endif /* CONFIG_IPIPE */
 		.virtual	= AT91_IO_VIRT_BASE - AT91SAM9263_SRAM0_SIZE,
 		.pfn		= __phys_to_pfn(AT91SAM9263_SRAM0_BASE),
 		.length		= AT91SAM9263_SRAM0_SIZE,
@@ -266,6 +273,7 @@ void __init at91sam9263_initialize(unsig
  * The default interrupt priority levels (0 = lowest, 7 = highest).
  */
 static unsigned int at91sam9263_default_irq_priority[NR_AIC_IRQS] __initdata = {
+#ifndef CONFIG_IPIPE
 	7,	/* Advanced Interrupt Controller (FIQ) */
 	7,	/* System Peripherals */
 	0,	/* Parallel IO Controller A */
@@ -298,6 +306,42 @@ static unsigned int at91sam9263_default_
 	3,	/* USB Host port */
 	0,	/* Advanced Interrupt Controller (IRQ0) */
 	0,	/* Advanced Interrupt Controller (IRQ1) */
+#else /* CONFIG_IPIPE */
+/* Give the highest priority to TC, since they are used as timer interrupt by
+   I-pipe. */
+	7,	/* Advanced Interrupt Controller (FIQ) */
+	7,	/* System Peripherals */
+	0,	/* Parallel IO Controller A */
+	0,	/* Parallel IO Controller B */
+	0,	/* Parallel IO Controller C, D and E */
+	0,
+	0,
+	6,	/* USART 0 */
+	6,	/* USART 1 */
+	6,	/* USART 2 */
+	0,	/* Multimedia Card Interface 0 */
+	0,	/* Multimedia Card Interface 1 */
+	4,	/* CAN */
+	0,	/* Two-Wire Interface */
+	6,	/* Serial Peripheral Interface 0 */
+	6,	/* Serial Peripheral Interface 1 */
+	5,	/* Serial Synchronous Controller 0 */
+	5,	/* Serial Synchronous Controller 1 */
+	6,	/* AC97 Controller */
+	7,	/* Timer Counter 0, 1 and 2 */
+	0,	/* Pulse Width Modulation Controller */
+	3,	/* Ethernet */
+	0,
+	0,	/* 2D Graphic Engine */
+	3,	/* USB Device Port */
+	0,	/* Image Sensor Interface */
+	3,	/* LDC Controller */
+	0,	/* DMA Controller */
+	0,
+	3,	/* USB Host port */
+	0,	/* Advanced Interrupt Controller (IRQ0) */
+	0,	/* Advanced Interrupt Controller (IRQ1) */
+#endif /*CONFIG_IPIPE */
 };
 
 void __init at91sam9263_init_interrupts(unsigned int priority[NR_AIC_IRQS])
arch/arm/mach-at91rm9200/at91sam926x_time.c +22 -11
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/arch/arm/mach-at91rm9200/at91sam926x_time.c linux-2.6.20.13-9263/arch/arm/mach-at91rm9200/at91sam926x_time.c
@@ -46,6 +46,11 @@ static unsigned long last_crtr;
 #define AT91_ID_TC0 AT91SAM9261_ID_TC0
 #define AT91_ID_TC1 AT91SAM9261_ID_TC1
 #define AT91_ID_TC2 AT91SAM9261_ID_TC2
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#include <asm/arch/at91sam9263.h>
+#define AT91_ID_TC0 AT91SAM9263_ID_TCB
+#define AT91_ID_TC1 AT91SAM9263_ID_TCB
+#define AT91_ID_TC2 AT91SAM9263_ID_TCB
 #else
 #error "Unsupported AT91 processor"
 #endif
@@ -107,6 +112,7 @@ static int at91_timer_initialized;
  * Returns number of microseconds since last timer interrupt.  Note that interrupts
  * will have been disabled by do_gettimeofday()
  *  'LATCH' is hwclock ticks (see CLOCK_TICK_RATE in timex.h) per jiffy.
+ *  'tick' is usecs per jiffy (linux/timex.h).
  */
 static unsigned long at91sam926x_gettimeoffset(void)
 {
@@ -115,7 +121,7 @@ static unsigned long at91sam926x_gettime
 
 	elapsed = (PIT_PICNT(t) * LATCH) + PIT_CPIV(t);		/* hardware clock cycles */
 
-	return (unsigned long)(elapsed * jiffies_to_usecs(1)) / LATCH;
+	return (unsigned long)(elapsed * 1000000) / LATCH;
 }
 
 /*
@@ -357,14 +363,9 @@ static struct irqaction at91sam926x_time
 	.handler	= &at91sam926x_timer_interrupt
 };
 
-static char clk_name [] = "tc%";
+static char clk_name [] = "tc%_clk";
 
-static struct clk tc = {
-	.name		= (const char *) clk_name,
-	.users          = 0,
-	.type		= CLK_TYPE_PERIPHERAL,
-	.pmc_mask       = 1 << (KERNEL_TIMER_IRQ_NUM),
-};
+static struct clk *tc;
 
 void __init at91sam926x_timer_init(void)
 {
@@ -373,9 +374,19 @@ void __init at91sam926x_timer_init(void)
 	if (clk_get_rate(clk_get(NULL, "mck")) != CONFIG_IPIPE_AT91_MCK)
 		at91sam926x_timer_irq.handler = &at91sam926x_bad_freq;
 
-	snprintf(clk_name, sizeof(clk_name), "tc%d", CONFIG_IPIPE_AT91_TC);
-	clk_register(&tc);
-	clk_enable(&tc);
+	/* since 2.6.20-at91.patch, all clocks are registered on startup.
+	 * we just need to get the good struct and enable our tc clock */
+#ifdef CONFIG_ARCH_AT91SAM9263
+	snprintf(clk_name, sizeof(clk_name), "tcb_clk");
+#else
+	snprintf(clk_name, sizeof(clk_name), "tc%d_clk", CONFIG_IPIPE_AT91_TC);
+#endif /* CONFIG_ARCH_AT91SAM9263 */
+
+	tc = clk_get(NULL, clk_name);
+	if((int)tc == 0xfffffffe)	//err code
+		printk("> %s does not exist.",clk_name);
+	else
+		clk_enable(tc);
 	
 	/* No Sync. */
 	at91_tc_write(AT91_TC_BCR, 0);

Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: at91sam926x_time.c.orig

arch/arm/mach-at91rm9200/Kconfig +1 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/arch/arm/mach-at91rm9200/Kconfig linux-2.6.20.13-9263/arch/arm/mach-at91rm9200/Kconfig
@@ -153,6 +153,7 @@ config IPIPE_AT91_MCK
 	default 46080000 if MACH_CSB637
 	default 59904000 if MACH_AT91RM9200EK
 	default 99328000 if MACH_AT91SAM9260EK || MACH_AT91SAM9261EK
+	default 99959589 if MACH_AT91SAM9263EK
 	default 53000000
 	help
 	When Adeos interrupt pipeline is enabled, AT91 timer is based on

Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: Kconfig.orig Seulement dans linux-2.6.20.13-9263/drivers/char: consolemap_deftbl.c Seulement dans linux-2.6.20.13-9263/drivers/char: defkeymap.c Seulement dans linux-2.6.20.13-9263/include: asm

include/asm-arm/arch/hardware.h +3 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/include/asm-arm/arch/hardware.h linux-2.6.20.13-9263/include/asm-arm/arch/hardware.h
@@ -53,7 +53,9 @@
 #define AT91_BASE_TCB0       AT91SAM9260_BASE_TCB0
 #elif defined(CONFIG_ARCH_AT91SAM9261)
 #define AT91_BASE_TCB0       AT91SAM9261_BASE_TCB0
-#endif /* CONFIG_ARCH_AT91SAM9261 */
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#define AT91_BASE_TCB0       AT91SAM9263_BASE_TCB0
+#endif /* CONFIG_ARCH_AT91 */
 #define AT91_VA_BASE_TCB0    AT91_IO_P2V(AT91_BASE_TCB0)
 #endif /* CONFIG_IPIPE */
 

Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch: hardware.h.orig

include/asm-arm/arch/irqs.h +5 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/include/asm-arm/arch/irqs.h linux-2.6.20.13-9263/include/asm-arm/arch/irqs.h
@@ -55,7 +55,11 @@ extern unsigned __ipipe_at91_gpio_banks;
 #elif defined(CONFIG_ARCH_AT91SAM9261)
 #define __ipipe_mach_irq_mux_p(irq)					\
 	((unsigned) (irq - AT91SAM9261_ID_PIOA) < __ipipe_at91_gpio_banks)
-#endif /* CONFIG_ARCH_AT91SAM9261 */
+
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#define __ipipe_mach_irq_mux_p(irq)					\
+	((unsigned) (irq - AT91SAM9263_ID_PIOA) < __ipipe_at91_gpio_banks)
+#endif /* CONFIG_ARCH_AT91 */
 
 #endif /* CONFIG_IPIPE && !__ASSEMBLY__ */
 

Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch: irqs.h.orig Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch: timex.h.orig

include/asm-arm/arch-at91rm9200/hardware.h +3 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/include/asm-arm/arch-at91rm9200/hardware.h linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200/hardware.h
@@ -53,7 +53,9 @@
 #define AT91_BASE_TCB0       AT91SAM9260_BASE_TCB0
 #elif defined(CONFIG_ARCH_AT91SAM9261)
 #define AT91_BASE_TCB0       AT91SAM9261_BASE_TCB0
-#endif /* CONFIG_ARCH_AT91SAM9261 */
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#define AT91_BASE_TCB0       AT91SAM9263_BASE_TCB0
+#endif /* CONFIG_ARCH_AT91 */
 #define AT91_VA_BASE_TCB0    AT91_IO_P2V(AT91_BASE_TCB0)
 #endif /* CONFIG_IPIPE */
 

Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200: hardware.h.orig

include/asm-arm/arch-at91rm9200/irqs.h +5 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/include/asm-arm/arch-at91rm9200/irqs.h linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200/irqs.h
@@ -55,7 +55,11 @@ extern unsigned __ipipe_at91_gpio_banks;
 #elif defined(CONFIG_ARCH_AT91SAM9261)
 #define __ipipe_mach_irq_mux_p(irq)					\
 	((unsigned) (irq - AT91SAM9261_ID_PIOA) < __ipipe_at91_gpio_banks)
-#endif /* CONFIG_ARCH_AT91SAM9261 */
+
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#define __ipipe_mach_irq_mux_p(irq)					\
+	((unsigned) (irq - AT91SAM9263_ID_PIOA) < __ipipe_at91_gpio_banks)
+#endif /* CONFIG_ARCH_AT91 */
 
 #endif /* CONFIG_IPIPE && !__ASSEMBLY__ */
 

Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200: irqs.h.orig Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200: timex.h.orig Seulement dans linux-2.6.20.13-9263/include: config
Seulement dans linux-2.6.20.13-9263/include/linux: autoconf.h Seulement dans linux-2.6.20.13-9263/include/linux: compile.h Seulement dans linux-2.6.20.13-9263/include/linux: utsrelease.h Seulement dans linux-2.6.20.13-9263/include/linux: version.h Seulement dans linux-2.6.20.13-9263/lib: crc32table.h
Seulement dans linux-2.6.20.13-9263/lib: gen_crc32table
Seulement dans linux-2.6.20.13-9263/scripts/basic: docproc
Seulement dans linux-2.6.20.13-9263/scripts/basic: fixdep
Seulement dans linux-2.6.20.13-9263/scripts: bin2c
Seulement dans linux-2.6.20.13-9263/scripts: conmakehash
Seulement dans linux-2.6.20.13-9263/scripts: kallsyms
Seulement dans linux-2.6.20.13-9263/scripts/kconfig: conf
Seulement dans linux-2.6.20.13-9263/scripts/kconfig: lex.zconf.c Seulement dans linux-2.6.20.13-9263/scripts/kconfig: zconf.hash.c Seulement dans linux-2.6.20.13-9263/scripts/kconfig: zconf.tab.c Seulement dans linux-2.6.20.13-9263/scripts/mod: elfconfig.h Seulement dans linux-2.6.20.13-9263/scripts/mod: mk_elfconfig Seulement dans linux-2.6.20.13-9263/scripts/mod: modpost
Seulement dans linux-2.6.20.13-9263/usr: gen_init_cpio

arch/arm/mach-at91rm9200/at91sam9260.c +1 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/arch/arm/mach-at91rm9200/at91sam9260.c linux-2.6.20.13/arch/arm/mach-at91rm9200/at91sam9260.c
@@ -128,7 +128,7 @@ static struct clk ohci_clk = {
 	.type		= CLK_TYPE_PERIPHERAL,
 };
 static struct clk ether_clk = {
-	.name		= "ether_clk",
+	.name		= "macb_clk",
 	.pmc_mask	= 1 << AT91SAM9260_ID_EMAC,
 	.type		= CLK_TYPE_PERIPHERAL,
 };
arch/arm/mach-at91rm9200/at91sam9260_devices.c +26 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/arch/arm/mach-at91rm9200/at91sam9260_devices.c linux-2.6.20.13/arch/arm/mach-at91rm9200/at91sam9260_devices.c
@@ -19,6 +19,7 @@
 #include <asm/arch/at91sam9260.h>
 #include <asm/arch/at91sam926x_mc.h>
 #include <asm/arch/at91sam9260_matrix.h>
+#include <asm/arch/cpu.h>
 
 #include "generic.h"
 
@@ -141,6 +142,11 @@ static struct resource eth_resources[] =
 		.end	= AT91SAM9260_ID_EMAC,
 		.flags	= IORESOURCE_IRQ,
 	},
+	[2] = {
+		.start	= AT91SAM9260_SRAM0_BASE,
+		.end	= AT91SAM9260_SRAM0_BASE + AT91SAM9260_SRAM0_SIZE -1,
+		.flags	= IORESOURCE_MEM,
+	},
 };
 
 static struct platform_device at91sam9260_eth_device = {
@@ -157,6 +163,8 @@ static struct platform_device at91sam926
 
 void __init at91_add_device_eth(struct at91_eth_data *data)
 {
+	unsigned int cidr, sram_size;
+
 	if (!data)
 		return;
 
@@ -188,6 +196,24 @@ void __init at91_add_device_eth(struct a
 		at91_set_B_periph(AT91_PIN_PA22, 0);	/* ETXER */
 	}
 
+	if( cpu_is_at91sam9260() ) {
+
+
+		cidr = at91_sys_read(AT91_DBGU_CIDR);
+
+		switch (cidr & AT91_CIDR_SRAMSIZ) {
+			case AT91_CIDR_SRAMSIZ_32K:
+				sram_size = 2 * SZ_16K;
+				break;
+			case AT91_CIDR_SRAMSIZ_16K:
+			default:
+				sram_size = SZ_16K;
+		}
+
+		eth_resources[2].start = AT91SAM9260_SRAM1_BASE;
+		eth_resources[2].end   = AT91SAM9260_SRAM1_BASE + sram_size - 1;
+	}
+
 	eth_data = *data;
 	platform_device_register(&at91sam9260_eth_device);
 }
arch/arm/mach-at91rm9200/at91sam9263.c +1 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/arch/arm/mach-at91rm9200/at91sam9263.c linux-2.6.20.13/arch/arm/mach-at91rm9200/at91sam9263.c
@@ -108,7 +108,7 @@ static struct clk tcb_clk = {
 	.type		= CLK_TYPE_PERIPHERAL,
 };
 static struct clk ether_clk = {
-	.name		= "ether_clk",
+	.name		= "macb_clk",
 	.pmc_mask	= 1 << AT91SAM9263_ID_EMAC,
 	.type		= CLK_TYPE_PERIPHERAL,
 };
arch/arm/mach-at91rm9200/at91sam9263_devices.c +26 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/arch/arm/mach-at91rm9200/at91sam9263_devices.c linux-2.6.20.13/arch/arm/mach-at91rm9200/at91sam9263_devices.c
@@ -19,6 +19,7 @@
 #include <asm/arch/at91sam9263.h>
 #include <asm/arch/at91sam926x_mc.h>
 #include <asm/arch/at91sam9263_matrix.h>
+#include <asm/arch/cpu.h>
 
 #include "generic.h"
 
@@ -149,6 +150,11 @@ static struct resource eth_resources[] =
 		.end	= AT91SAM9263_ID_EMAC,
 		.flags	= IORESOURCE_IRQ,
 	},
+	[2] = {
+		.start	= AT91SAM9263_SRAM0_BASE,
+		.end	= AT91SAM9263_SRAM0_BASE + AT91SAM9263_SRAM0_SIZE -1,
+		.flags	= IORESOURCE_MEM,
+	},
 };
 
 static struct platform_device at91sam9263_eth_device = {
@@ -165,6 +171,8 @@ static struct platform_device at91sam926
 
 void __init at91_add_device_eth(struct at91_eth_data *data)
 {
+	unsigned int cidr, sram_size;
+
 	if (!data)
 		return;
 
@@ -196,6 +204,24 @@ void __init at91_add_device_eth(struct a
 		at91_set_B_periph(AT91_PIN_PC24, 0);	/* ETXER */
 	}
 
+	if( cpu_is_at91sam9263() ) {
+
+
+		cidr = at91_sys_read(AT91_DBGU_CIDR);
+
+		switch (cidr & AT91_CIDR_SRAMSIZ) {
+			case AT91_CIDR_SRAMSIZ_32K:
+				sram_size = 2 * SZ_16K;
+				break;
+			case AT91_CIDR_SRAMSIZ_16K:
+			default:
+				sram_size = SZ_16K;
+		}
+
+		eth_resources[2].start = AT91SAM9263_SRAM1_BASE;
+		eth_resources[2].end   = AT91SAM9263_SRAM1_BASE + sram_size - 1;
+	}
+
 	eth_data = *data;
 	platform_device_register(&at91sam9263_eth_device);
 }
arch/arm/mach-at91rm9200/board-sam9263ek.c +10 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/arch/arm/mach-at91rm9200/board-sam9263ek.c linux-2.6.20.13/arch/arm/mach-at91rm9200/board-sam9263ek.c
@@ -112,6 +112,14 @@ static struct at91_mmc_data __initdata e
 
 
 /*
+ * MACB Ethernet device
+ */
+static struct at91_eth_data __initdata ek_macb_data = {
+	.is_rmii	= 1,
+};
+
+
+/*
  * NAND flash
  */
 static struct mtd_partition __initdata ek_nand_partition[] = {
@@ -160,6 +168,8 @@ static void __init ek_board_init(void)
 	at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices));
 	/* MMC */
 	at91_add_device_mmc(1, &ek_mmc_data);
+	/* Ethernet */
+	at91_add_device_eth(&ek_macb_data);
 	/* NAND */
 	at91_add_device_nand(&ek_nand_data);
 }
drivers/net/Kconfig +12 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/drivers/net/Kconfig linux-2.6.20.13/drivers/net/Kconfig
@@ -199,6 +199,17 @@ config MACB
 	  To compile this driver as a module, choose M here: the module
 	  will be called macb.
 
+config MACB
+	tristate "Atmel MACB support"
+	depends on NET_ETHERNET && (AVR32 || ARCH_AT91SAM9260)
+	select MII
+	help
+	  The Atmel MACB ethernet interface is found on many AT32 and AT91
+	  parts. Say Y to include support for the MACB chip.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called macb.
+
 source "drivers/net/arm/Kconfig"
 
 config MACE
@@ -226,7 +237,7 @@ config MACE_AAUI_PORT
 
 config BMAC
 	tristate "BMAC (G3 ethernet) support"
-	depends on NET_ETHERNET && PPC_PMAC && PPC32
+	depends on NET_ETHERNET && PPC_PMAC && PPC32 &
 	select CRC32
 	help
 	  Say Y for support of BMAC Ethernet interfaces. These are used on G3
drivers/net/macb.c +18 -12
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/drivers/net/macb.c linux-2.6.20.13/drivers/net/macb.c
@@ -1047,12 +1047,12 @@ static int __devinit macb_probe(struct p
 	spin_lock_init(&bp->lock);
 
 #if defined(CONFIG_ARCH_AT91)
-	bp->pclk = clk_get(&pdev->dev, "macb_clk");
-	if (IS_ERR(bp->pclk)) {
+	bp->macb_clk = clk_get(&pdev->dev, "macb_clk");
+	if (IS_ERR(bp->macb_clk)) {
 		dev_err(&pdev->dev, "failed to get macb_clk\n");
 		goto err_out_free_dev;
 	}
-	clk_enable(bp->pclk);
+	clk_enable(bp->macb_clk);
 #else
 	bp->pclk = clk_get(&pdev->dev, "pclk");
 	if (IS_ERR(bp->pclk)) {
@@ -1102,7 +1102,11 @@ static int __devinit macb_probe(struct p
 	init_completion(&bp->mdio_complete);
 
 	/* Set MII management clock divider */
+	#if defined(CONFIG_ARCH_AT91)
+		pclk_hz = clk_get_rate(bp->macb_clk);
+	#else
 	pclk_hz = clk_get_rate(bp->pclk);
+	#endif
 	if (pclk_hz <= 20000000)
 		config = MACB_BF(CLK, MACB_CLK_DIV8);
 	else if (pclk_hz <= 40000000)
@@ -1128,17 +1132,17 @@ static int __devinit macb_probe(struct p
 
 	pdata = pdev->dev.platform_data;
 	if (pdata && pdata->is_rmii)
-#if defined(CONFIG_ARCH_AT91)
+	#if defined(CONFIG_ARCH_AT91)
 		macb_writel(bp, USRIO, (MACB_BIT(RMII) | MACB_BIT(CLKEN)) );
-#else
+	#else
 		macb_writel(bp, USRIO, 0);
-#endif
+	#endif
 	else
-#if defined(CONFIG_ARCH_AT91)
+	#if defined(CONFIG_ARCH_AT91)
 		macb_writel(bp, USRIO, MACB_BIT(CLKEN));
-#else
+	#else
 		macb_writel(bp, USRIO, MACB_BIT(MII));
-#endif
+	#endif
 
 	bp->tx_pending = DEF_TX_RING_PENDING;
 
@@ -1165,12 +1169,14 @@ err_out_free_irq:
 err_out_iounmap:
 	iounmap(bp->regs);
 err_out_disable_clocks:
-#ifndef CONFIG_ARCH_AT91
+#if defined(CONFIG_ARCH_AT91)
+	clk_disable(bp->macb_clk);
+#else
 	clk_disable(bp->hclk);
-	clk_put(bp->hclk);
-#endif
 	clk_disable(bp->pclk);
+	clk_put(bp->hclk);
 err_out_put_pclk:
+#endif
 	clk_put(bp->pclk);
 err_out_free_dev:
 	free_netdev(dev);
drivers/net/macb.h +1 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/drivers/net/macb.h linux-2.6.20.13/drivers/net/macb.h
@@ -371,6 +371,7 @@ struct macb {
 
 	spinlock_t		lock;
 	struct platform_device	*pdev;
+	struct clk		*macb_clk;
 	struct clk		*pclk;
 	struct clk		*hclk;
 	struct net_device	*dev;
drivers/net/Makefile +1 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/drivers/net/Makefile linux-2.6.20.13/drivers/net/Makefile
@@ -196,6 +196,7 @@ obj-$(CONFIG_SMC91X) += smc91x.o
 obj-$(CONFIG_SMC911X) += smc911x.o
 obj-$(CONFIG_DM9000) += dm9000.o
 obj-$(CONFIG_FEC_8XX) += fec_8xx/
+obj-$(CONFIG_MACB) += macb.o
 
 obj-$(CONFIG_MACB) += macb.o
 

Seulement dans linux-2.6.20.13/include/asm-arm: arch

include/asm-arm/arch-at91rm9200/at91_dbgu.h +31 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/include/asm-arm/arch-at91rm9200/at91_dbgu.h linux-2.6.20.13/include/asm-arm/arch-at91rm9200/at91_dbgu.h
@@ -35,6 +35,37 @@
 #define		AT91_CIDR_NVPSIZ	(0xf  << 8)		/* Nonvolatile Program Memory Size */
 #define		AT91_CIDR_NVPSIZ2	(0xf  << 12)		/* Second Nonvolatile Program Memory Size */
 #define		AT91_CIDR_SRAMSIZ	(0xf  << 16)		/* Internal SRAM Size */
+
+#define AT91_CIDR_SRAMSIZ_1K (1 << 16)
+#define AT91_CIDR_SRAMSIZ_2K (2 << 16)
+#define AT91_CIDR_SRAMSIZ_112K (4 << 16)
+#define AT91_CIDR_SRAMSIZ_4K (5 << 16)
+#define AT91_CIDR_SRAMSIZ_80K (6 << 16)
+#define AT91_CIDR_SRAMSIZ_160K (7 << 16)
+#define AT91_CIDR_SRAMSIZ_8K (8 << 16)
+#define AT91_CIDR_SRAMSIZ_16K (9 << 16)
+#define AT91_CIDR_SRAMSIZ_32K (10 << 16)
+#define AT91_CIDR_SRAMSIZ_64K (11 << 16)
+#define AT91_CIDR_SRAMSIZ_128K (12 << 16)
+#define AT91_CIDR_SRAMSIZ_256K (13 << 16)
+#define AT91_CIDR_SRAMSIZ_96K (14 << 16)
+#define AT91_CIDR_SRAMSIZ_512K (15 << 16)
+
+#define AT91_CIDR_SRAMSIZ_1K (1 << 16)
+#define AT91_CIDR_SRAMSIZ_2K (2 << 16)
+#define AT91_CIDR_SRAMSIZ_112K (4 << 16)
+#define AT91_CIDR_SRAMSIZ_4K (5 << 16)
+#define AT91_CIDR_SRAMSIZ_80K (6 << 16)
+#define AT91_CIDR_SRAMSIZ_160K (7 << 16)
+#define AT91_CIDR_SRAMSIZ_8K (8 << 16)
+#define AT91_CIDR_SRAMSIZ_16K (9 << 16)
+#define AT91_CIDR_SRAMSIZ_32K (10 << 16)
+#define AT91_CIDR_SRAMSIZ_64K (11 << 16)
+#define AT91_CIDR_SRAMSIZ_128K (12 << 16)
+#define AT91_CIDR_SRAMSIZ_256K (13 << 16)
+#define AT91_CIDR_SRAMSIZ_96K (14 << 16)
+#define AT91_CIDR_SRAMSIZ_512K (15 << 16)
+
 #define		AT91_CIDR_ARCH		(0xff << 20)		/* Architecture Identifier */
 #define		AT91_CIDR_NVPTYP	(7    << 28)		/* Nonvolatile Program Memory Type */
 #define		AT91_CIDR_EXT		(1    << 31)		/* Extension Flag */
MAINTAINERS +7 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-clean/MAINTAINERS linux-2.6.20.13/MAINTAINERS
@@ -602,6 +602,13 @@ P:	Haavard Skinnemoen
 M:	[email protected]
 S:	Supported
 
+ATMEL MACB ETHERNET DRIVER
+P:	Atmel AVR32 Support Team
+M:	[email protected]
+P:	Haavard Skinnemoen
+M:	[email protected]
+S:	Supported
+
 ATMEL WIRELESS DRIVER
 P:	Simon Kelley
 M:	[email protected]

Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: at91rm9200.c.orig Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: at91rm9200_time.c.orig Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: at91sam9261.c.orig

arch/arm/mach-at91rm9200/at91sam9263.c +44 -0

62 lines not on this page · raw message

arch/arm/mach-at91rm9200/at91sam926x_time.c +22 -11
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/arch/arm/mach-at91rm9200/at91sam926x_time.c linux-2.6.20.13-9263/arch/arm/mach-at91rm9200/at91sam926x_time.c
@@ -46,6 +46,11 @@ static unsigned long last_crtr;
 #define AT91_ID_TC0 AT91SAM9261_ID_TC0
 #define AT91_ID_TC1 AT91SAM9261_ID_TC1
 #define AT91_ID_TC2 AT91SAM9261_ID_TC2
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#include <asm/arch/at91sam9263.h>
+#define AT91_ID_TC0 AT91SAM9263_ID_TCB
+#define AT91_ID_TC1 AT91SAM9263_ID_TCB
+#define AT91_ID_TC2 AT91SAM9263_ID_TCB
 #else
 #error "Unsupported AT91 processor"
 #endif
@@ -107,6 +112,7 @@ static int at91_timer_initialized;
  * Returns number of microseconds since last timer interrupt.  Note that interrupts
  * will have been disabled by do_gettimeofday()
  *  'LATCH' is hwclock ticks (see CLOCK_TICK_RATE in timex.h) per jiffy.
+ *  'tick' is usecs per jiffy (linux/timex.h).
  */
 static unsigned long at91sam926x_gettimeoffset(void)
 {
@@ -115,7 +121,7 @@ static unsigned long at91sam926x_gettime
 
 	elapsed = (PIT_PICNT(t) * LATCH) + PIT_CPIV(t);		/* hardware clock cycles */
 
-	return (unsigned long)(elapsed * jiffies_to_usecs(1)) / LATCH;
+	return (unsigned long)(elapsed * 1000000) / LATCH;
 }
 
 /*
@@ -357,14 +363,9 @@ static struct irqaction at91sam926x_time
 	.handler	= &at91sam926x_timer_interrupt
 };
 
-static char clk_name [] = "tc%";
+static char clk_name [] = "tc%_clk";
 
-static struct clk tc = {
-	.name		= (const char *) clk_name,
-	.users          = 0,
-	.type		= CLK_TYPE_PERIPHERAL,
-	.pmc_mask       = 1 << (KERNEL_TIMER_IRQ_NUM),
-};
+static struct clk *tc;
 
 void __init at91sam926x_timer_init(void)
 {
@@ -373,9 +374,19 @@ void __init at91sam926x_timer_init(void)
 	if (clk_get_rate(clk_get(NULL, "mck")) != CONFIG_IPIPE_AT91_MCK)
 		at91sam926x_timer_irq.handler = &at91sam926x_bad_freq;
 
-	snprintf(clk_name, sizeof(clk_name), "tc%d", CONFIG_IPIPE_AT91_TC);
-	clk_register(&tc);
-	clk_enable(&tc);
+	/* since 2.6.20-at91.patch, all clocks are registered on startup.
+	 * we just need to get the good struct and enable our tc clock */
+#ifdef CONFIG_ARCH_AT91SAM9263
+	snprintf(clk_name, sizeof(clk_name), "tcb_clk");
+#else
+	snprintf(clk_name, sizeof(clk_name), "tc%d_clk", CONFIG_IPIPE_AT91_TC);
+#endif /* CONFIG_ARCH_AT91SAM9263 */
+
+	tc = clk_get(NULL, clk_name);
+	if((int)tc == 0xfffffffe)	//err code
+		printk("> %s does not exist.",clk_name);
+	else
+		clk_enable(tc);
 	
 	/* No Sync. */
 	at91_tc_write(AT91_TC_BCR, 0);

Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: at91sam926x_time.c.orig

arch/arm/mach-at91rm9200/Kconfig +1 -0
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/arch/arm/mach-at91rm9200/Kconfig linux-2.6.20.13-9263/arch/arm/mach-at91rm9200/Kconfig
@@ -153,6 +153,7 @@ config IPIPE_AT91_MCK
 	default 46080000 if MACH_CSB637
 	default 59904000 if MACH_AT91RM9200EK
 	default 99328000 if MACH_AT91SAM9260EK || MACH_AT91SAM9261EK
+	default 99959589 if MACH_AT91SAM9263EK
 	default 53000000
 	help
 	When Adeos interrupt pipeline is enabled, AT91 timer is based on

Seulement dans linux-2.6.20.13-9263/arch/arm/mach-at91rm9200: Kconfig.orig Seulement dans linux-2.6.20.13-9263/drivers/char: consolemap_deftbl.c Seulement dans linux-2.6.20.13-9263/drivers/char: defkeymap.c Seulement dans linux-2.6.20.13-9263/include: asm

include/asm-arm/arch/hardware.h +3 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/include/asm-arm/arch/hardware.h linux-2.6.20.13-9263/include/asm-arm/arch/hardware.h
@@ -53,7 +53,9 @@
 #define AT91_BASE_TCB0       AT91SAM9260_BASE_TCB0
 #elif defined(CONFIG_ARCH_AT91SAM9261)
 #define AT91_BASE_TCB0       AT91SAM9261_BASE_TCB0
-#endif /* CONFIG_ARCH_AT91SAM9261 */
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#define AT91_BASE_TCB0       AT91SAM9263_BASE_TCB0
+#endif /* CONFIG_ARCH_AT91 */
 #define AT91_VA_BASE_TCB0    AT91_IO_P2V(AT91_BASE_TCB0)
 #endif /* CONFIG_IPIPE */
 

Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch: hardware.h.orig

include/asm-arm/arch/irqs.h +5 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/include/asm-arm/arch/irqs.h linux-2.6.20.13-9263/include/asm-arm/arch/irqs.h
@@ -55,7 +55,11 @@ extern unsigned __ipipe_at91_gpio_banks;
 #elif defined(CONFIG_ARCH_AT91SAM9261)
 #define __ipipe_mach_irq_mux_p(irq)					\
 	((unsigned) (irq - AT91SAM9261_ID_PIOA) < __ipipe_at91_gpio_banks)
-#endif /* CONFIG_ARCH_AT91SAM9261 */
+
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#define __ipipe_mach_irq_mux_p(irq)					\
+	((unsigned) (irq - AT91SAM9263_ID_PIOA) < __ipipe_at91_gpio_banks)
+#endif /* CONFIG_ARCH_AT91 */
 
 #endif /* CONFIG_IPIPE && !__ASSEMBLY__ */
 

Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch: irqs.h.orig Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch: timex.h.orig

include/asm-arm/arch-at91rm9200/hardware.h +3 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/include/asm-arm/arch-at91rm9200/hardware.h linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200/hardware.h
@@ -53,7 +53,9 @@
 #define AT91_BASE_TCB0       AT91SAM9260_BASE_TCB0
 #elif defined(CONFIG_ARCH_AT91SAM9261)
 #define AT91_BASE_TCB0       AT91SAM9261_BASE_TCB0
-#endif /* CONFIG_ARCH_AT91SAM9261 */
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#define AT91_BASE_TCB0       AT91SAM9263_BASE_TCB0
+#endif /* CONFIG_ARCH_AT91 */
 #define AT91_VA_BASE_TCB0    AT91_IO_P2V(AT91_BASE_TCB0)
 #endif /* CONFIG_IPIPE */
 

Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200: hardware.h.orig

include/asm-arm/arch-at91rm9200/irqs.h +5 -1
diff -aurdpbB -X nodiff linux-2.6.20.13-9263-clean/include/asm-arm/arch-at91rm9200/irqs.h linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200/irqs.h
@@ -55,7 +55,11 @@ extern unsigned __ipipe_at91_gpio_banks;
 #elif defined(CONFIG_ARCH_AT91SAM9261)
 #define __ipipe_mach_irq_mux_p(irq)					\
 	((unsigned) (irq - AT91SAM9261_ID_PIOA) < __ipipe_at91_gpio_banks)
-#endif /* CONFIG_ARCH_AT91SAM9261 */
+
+#elif defined(CONFIG_ARCH_AT91SAM9263)
+#define __ipipe_mach_irq_mux_p(irq)					\
+	((unsigned) (irq - AT91SAM9263_ID_PIOA) < __ipipe_at91_gpio_banks)
+#endif /* CONFIG_ARCH_AT91 */
 
 #endif /* CONFIG_IPIPE && !__ASSEMBLY__ */
 

Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200: irqs.h.orig Seulement dans linux-2.6.20.13-9263/include/asm-arm/arch-at91rm9200: timex.h.orig Seulement dans linux-2.6.20.13-9263/include: config
Seulement dans linux-2.6.20.13-9263/include/linux: autoconf.h Seulement dans linux-2.6.20.13-9263/include/linux: compile.h Seulement dans linux-2.6.20.13-9263/include/linux: utsrelease.h Seulement dans linux-2.6.20.13-9263/include/linux: version.h Seulement dans linux-2.6.20.13-9263/lib: crc32table.h
Seulement dans linux-2.6.20.13-9263/lib: gen_crc32table
Seulement dans linux-2.6.20.13-9263/scripts/basic: docproc
Seulement dans linux-2.6.20.13-9263/scripts/basic: fixdep
Seulement dans linux-2.6.20.13-9263/scripts: bin2c
Seulement dans linux-2.6.20.13-9263/scripts: conmakehash
Seulement dans linux-2.6.20.13-9263/scripts: kallsyms
Seulement dans linux-2.6.20.13-9263/scripts/kconfig: conf
Seulement dans linux-2.6.20.13-9263/scripts/kconfig: lex.zconf.c Seulement dans linux-2.6.20.13-9263/scripts/kconfig: zconf.hash.c Seulement dans linux-2.6.20.13-9263/scripts/kconfig: zconf.tab.c Seulement dans linux-2.6.20.13-9263/scripts/mod: elfconfig.h Seulement dans linux-2.6.20.13-9263/scripts/mod: mk_elfconfig Seulement dans linux-2.6.20.13-9263/scripts/mod: modpost
Seulement dans linux-2.6.20.13-9263/usr: gen_init_cpio

#1 lore raw
Quoted 8 lines · BOUIN Alexandre

Same tests but for AT91SAM9263-EK board :
- one under DD load, latency set to 45µs
- another one under Calibrator load, latency set to 30µs
- and the last under Test_switch load, latency set to 45µs
Xeno-test traces are available and the end of this mail.

We used kernel 2.6.20.13, Xenomai snapshot from 08/06/2007, adeos-ipipe-2.6.20-arm-1.7-03.patch included plus 2.6.20-at91.patch.

Quoted 8 lines

A little correction on macb and ipipe patch was needed :
- macb ethernet controler is not detected on startup
- we added some corrections to make 9263 usable under ipipe
- owing to changes in at91 patch (clk are now registered on startup) we made a little correction for future adeos-ipipe-2.6.21-arm.patch.

You will find all added patches attached to this mail.
<<adeos-ipipe-2.6.20-arm-AT91.patch>> <<2.6.20-at91-macb-9263.patch>> <<adeos-ipipe-2.6.20-arm-AT91.patch>>
Latencies are a little worst than on other boards. We presume that it's due to the large number of peripherals.

<pure theory without looking at details here>
Every additional IRQ source can cause additional delays of your benchmarked event. All those IRQs may once in a while line up just in front of your RT-IRQ, delaying it yet a bit more.
</end of theory>

Jan

#2 lore raw
In reply to BOUIN Alexandre
Quoted 13 lines · BOUIN Alexandre

Same tests but for AT91SAM9263-EK board :
- one under DD load, latency set to 45µs
- another one under Calibrator load, latency set to 30µs
- and the last under Test_switch load, latency set to 45µs
Xeno-test traces are available and the end of this mail.

We used kernel 2.6.20.13, Xenomai snapshot from 08/06/2007, adeos-ipipe-2.6.20-arm-1.7-03.patch included plus 2.6.20-at91.patch.

A little correction on macb and ipipe patch was needed :
- macb ethernet controler is not detected on startup
- we added some corrections to make 9263 usable under ipipe
- owing to changes in at91 patch (clk are now registered on startup) we made a little correction for future adeos-ipipe-2.6.21-arm.patch.

Quoted 5 lines

You will find all added patches attached to this mail.
<<adeos-ipipe-2.6.20-arm-AT91.patch>> <<2.6.20-at91-macb-9263.patch>> <<adeos-ipipe-2.6.20-arm-AT91.patch>>
Latencies are a little worst than on other boards. We presume that it's due to the large number of peripherals.

Our latency tests on AT91 boards are done ;)

That is great, thanks. Your patch will be merged into future patches (ipipe for 2.6.21 or 2.6.22), where support for 9263 was merged.

About the latency issue, have you checked that it is not due to the prioritized interrupt controller ?

Signature · 1 line
					    Gilles Chanteperdrix.