-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathChangeLog
1195 lines (928 loc) · 38.7 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2016-11-23 Ola Jeppsson <[email protected]>
* e-hal/src/pal-target.c (pal_read_buf): Don't negate E_ERR
when returning error.
(pal_write_buf): Likewise.
(pal_read_word): Likewise.
(pal_read_reg): Likewise.
2016-11-23 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (_ee_set_core_config): Support
linker scripts that places configuration sections in external
ram.
2016-11-22 Ola Jeppsson <[email protected]>
* configure.ac: Call AX_CXX_COMPILE_STDCXX_11.
* m4/ax_cxx_compile_stdcxx.m4: New file.
* m4/ax_cxx_compile_stdcxx_11.m4: New file.
2016-11-17 Ola Jeppsson <[email protected]>
* e-lib/include/e_ic.h (e_irqhandler_t): New typedef.
(e_irq_attach): Update function prototype. Add cover macro
that casts handler argument to e_irqhandler_t.
* e-lib/src/e_irq_attach.c: Change handler type to
e_irqhandler_t.
2016-11-15 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (ee_set_core_config): Show deprecation
warning once.
2016-11-14 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (ee_set_core_config): Fix typo in
format string.
2016-11-14 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (gdbserver_attached_p): New
function.
(_e_default_start_group): Halt cores, before sending SYNC if
EHAL_GDBSERVER env var is set.
(static int e_halt_group): New function.
2016-11-14 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (ee_reset_regs): Reset PC.
2016-11-14 Ola Jeppsson <[email protected]>
* configure.ac (enable-esim) (pal-target): Add missing "["
brackets.
2016-11-14 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (ee_set_core_config): Rename ...
(_ee_set_core_config): ... to this.
(ee_set_core_config): "New" function. Added as OMPi 2.0.0
compatibility hack. DO NOT USE.
2016-10-06 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (native_target_ops): Fix typo
{native_taget_ops} in definition of forward declaration.
2016-08-03 Ola Jeppsson <[email protected]>
* e-hal/src/pal-target.c (pal_to_rank): Use
p_coords_to_rank().
(pal_open): Open team with 2D topology.
(pal_close): Use p_team_size() instead of calculating team
size manually.
2016-07-23 Ola Jeppsson <[email protected]>
* e-hal/src/pal-target.c (pal_close): Replace p_wait() call
with call to p_kill().
2016-07-23 Ola Jeppsson <[email protected]>
* e-hal/src/pal-target.c (pal_load_group): Fix range bug.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/pal-target.c (pal_load_group): Call p_run() with
P_RUN_PREPARE flag.
(pal_start_group): Call P_RUN with P_RUN_PREPARED flag.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/pal-target.c (pal_populate_platform): Query device
parameters from PAL.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/pal-target.c (pal_to_rank): Implement.
(pal_to_rank): Likewise.
(pal_alloc): Likewise.
(pal_free): Likewise.
(pal_read_buf): Likewise.
(pal_write_buf): Likewise.
(pal_read_word): Likewise.
(pal_write_word): Likewise.
(pal_read_reg): Likewise.
(pal_write_reg): Likewise.
(pal_mread_word): Likewise.
(pal_mwrite_word): Likewise.
(pal_mread_buf): Likewise.
(pal_mwrite_buf): Likewise.
(pal_reset_system): Likewise.
(pal_populate_platform): Likewise.
(pal_init): Likewise.
(pal_finalize): Likewise.
(pal_open): Likewise.
(pal_close): Likewise.
(pal_load_group): Likewise.
(pal_start_group): Likewise.
(pal_get_raw_pointer): Likewise.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/esim-target.c (ee_get_raw_pointer_esim):
Implement.
(esim_target_ops): Use ee_get_raw_pointer as get_raw_pointer
callback.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (e_load): Simplify.
(_e_default_load_group): Rename from e_load_group. Don't start
program. Adjust arguments.
(e_load_group): Implement. Use target callbacks.
* e-hal/src/epiphany-hal.c (_e_default_start_group): Rename
from ee_start_group. Adjust arguments.
(e_start): Use target callback.
(e_start_group): Use target callback.
(native_taget_ops):
* e-hal/src/esim-target.c (esim_target_ops): Use
_e_default_load_group and _e_default_start_group as load_group
and start_group native callbacks.
* e-hal/src/esim-target.c (esim_target_ops): Likewise but for
esim.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-shm-manager.c (e_shm_init_esim_and_pal):
Rename from e_shm_init_esim.
(e_shm_init): Call e_shm_init_esim_and_pal for both esim and
pal targets.
(e_shm_alloc): Call device callback.
(e_shm_attach): Likwise.
(e_shm_get_shmtable): Support PAL target.
(e_shm_put_shmtable): Likewise.
* e-hal/src/epiphany-hal.c (shm_alloc_native): Move native
specific code here from e_shm_alloc.
* e-hal/src/esim-target.c (esim_target_ops): Use alloc_esim as
target shm_alloc callback.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_free): Split out target specific
code to target callbacks.
(free_native): Move native specific code here from e_free.
* e-hal/src/esim-target.c (free_esim): Move esim specific code
here from e_free.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_alloc): Make more generic.
(alloc_native): Move native specific code here from e_alloc.
* e-hal/src/esim-target.c (alloc_esim): Move esim specific
code here from e_alloc.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_close): Test for native target
instead of NOT esim target.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_open): Always call
target_ops->open()
(ee_open_native): Implemented.
* e-hal/src/esim-target.c (ee_open_esim): Implemented.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (ee_esim_target_p): Support "sim".
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data-local.h (e_target_ops):
Add load_group, start_group, get_raw_pointer, alloc, shm_alloc
& free.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data-local.h (e_platform_t): Move
target_ops member...
* e-hal/src/epiphany-hal.c: ... from here.
(e_finalize): Use e_platform.target_ops.
(e_open): Likewise.
(e_close): Likewise.
(ee_read_word): Likewise.
(ee_write_word): Likewise.
(ee_read_buf): Likewise.
(ee_write_buf): Likewise.
(ee_read_reg): Likewise.
(ee_write_reg): Likewise.
(ee_mread_word): Likewise.
(ee_mwrite_word): Likewise.
(ee_mread_buf): Likewise.
(ee_mwrite_buf): Likewise.
(e_reset_system): Likewise.
2016-07-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data.h: Include
epiphany-hal-data-local.h after e_bool_t declaration.
* e-hal/src/epiphany-hal-data-local.h: Include
epiphany-hal-data.h
2016-07-13 Ola Jeppsson <[email protected]>
* src/epiphany-hal-data-local.h (e_chip_db_t): Move here from
epiphany-hal.c
(E_CHIP_DB_NUM_CHIP_VERSIONS): Move define here from
epiphany-hal.c. Add E_ prefix.
(e_chip_params_table): Add declaration.
* src/epiphany-hal.c (e_chip_db_t): Move to
epiphany-hal-data-local.h
(CHIP_DB_NUM_CHIP_VERSIONS): Move to epiphany-hal-data-local.h.
(chip_params_table): Rename to ...
(e_chip_params_table): ... this.
(ee_set_chip_params): Change from chip_params_table to
e_chip_params_table. Change from CHIP_DB_NUM_CHIP_VERSIONS to
E_CHIP_DB_NUM_CHIP_VERSIONS.
* src/esim-target.c (ee_populate_platform_esim): Change from
chip_params_table to e_chip_params_table.
2016-06-15 Ola Jeppsson <[email protected]>
* configure.ac: Check for ESIM and PAL headers and libraries
before enabling the targets in the e-hal build.
2016-06-13 Ola Jeppsson <[email protected]>
* e-hal/src/esim-target.c (ee_esim_target_p): Rename from
esim_target_p.
* e-hal/src/esim-target.h: Adjust function prototype for
ee_esim_target_p
* e-hal/src/e-loader.c (ee_process_elf): Adjust for name
change to ee_esim_target_p.
* e-hal/src/epiphany-hal.c (e_init): Ditto.
(e_finalize): Ditto.
(e_open): Ditto.
(e_close): Ditto.
(ee_read_reg): Ditto.
(e_alloc): Ditto.
(e_free): Ditto.
(ee_reset_core): Ditto.
(e_reset_group): Ditto.
* e-hal/src/epiphany-shm-manager.c (e_shm_init): Ditto.
(e_shm_finalize): Ditto.
2016-06-06 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_init): Don't call e_shm_init().
* e-hal/src/epiphany-shm-manager.c (e_shm_get_shmtable): Merge
shm_lock_file() and e_shm_get_shmtable() into one function.
Call e_shm_init() if needed.
(e_shm_put_shmtable): Rename from shm_unlock_file().
* e-utils/src/e-clear-shmtable.c (main): Call
e_shm_put_shmtable() to release table.
2016-05-10 Ola Jeppsson <[email protected]>
* e-hal/Makemodule.am (libe_loader_la_SOURCES): Add
e-process-SREC.c
* e-hal/src/e-loader.c (e_load_group): Add back support for
SREC.
* e-hal/src/e-process-SREC.c: New file.
2016-05-10 Ola Jeppsson <[email protected]>
* e-lib/include/e_lib.h: Change search order for e-lib header
files to first look in same directory as the header file with
the include directive (use quotes instead of brackets).
* e-lib/include/e_dma.h: Likewise.
* e-lib/include/e_ic.h: Likewise.
2016-05-10 Ola Jeppsson <[email protected]>
* e-lib/include/e_coreid.h: Add extern "C" for C++.
* e-lib/include/e_ctimers.h: Likewise.
* e-lib/include/e_dma.h: Likewise.
* e-lib/include/e_ic.h: Likewise.
* e-lib/include/e_mem.h: Likewise.
* e-lib/include/e_mutex.h: Likewise.
* e-lib/include/e_regs.h: Likewise.
* e-lib/include/e_shm.h: Likewise.
* e-lib/include/e_trace.h: Likewise.
* e-lib/include/e_types.h: Likewise.
2016-05-02 Ola Jeppsson <[email protected]>
* bsps/parallella64/fast.ldf: Adjust linker script exported
symbol names for __USER_LABEL_PREFIX__ change.
* bsps/parallella64/internal.ldf: Likewise.
* bsps/parallella64/legacy.ldf: Likewise.
* bsps/parallella_E16G3_1GB/fast.ldf: Likewise.
* bsps/parallella_E16G3_1GB/internal.ldf: Likewise.
* bsps/parallella_E16G3_1GB/legacy.ldf: Likewise.
2016-05-02 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (is_valid_range): Always allow empty
range.
(ee_process_elf): Skip empty segments.
2016-05-02 Ola Jeppsson <[email protected]>
* e-lib/src/e_reg_read.c (e_reg_read): Use global address for
accessing register through MMR.
* e-lib/src/e_reg_write.c (e_reg_write): Likewise.
2016-04-18 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data-local.h (e_target_ops): Add
open() and close() target functions.
* e-hal/src/epiphany-hal.c (e_open): Call target open function
if target is PAL.
(e_close): Call target close function if target is PAL.
(pal_open): Add dummy function.
(pal_close): Add dummy function.
(pal_target_ops): Point to pal_open()/pal_close().
2016-04-18 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data-local.h (e_platform_t): Rename
esim member to priv and make it void.
* e-hal/src/epiphany-hal-data.h (e_epiphany_t): Likewise.
(e_mem_t): Likewise.
* e-hal/src/e-loader.c (ee_process_elf): Adjust for above name
change.
* e-hal/src/epiphany-hal.c (e_open): Likewise.
(e_alloc): Likewise.
* e-hal/src/epiphany-shm-manager.c (e_shm_init_esim):
Likewise.
(e_shm_alloc): Likewise.
(e_shm_attach): Likewise.
* e-hal/src/esim-target.c (ee_read_word_esim): Likewise.
(ee_write_word_esim): Likewise.
(ee_read_buf_esim): Likewise.
(ee_write_buf_esim): Likewise.
(ee_read_reg_esim): Likewise.
(ee_write_reg_esim): Likewise.
(ee_mread_word_esim): Likewise.
(ee_mwrite_word_esim): Likewise.
(ee_mread_buf_esim): Likewise.
(ee_mwrite_buf_esim): Likewise.
(ee_init_esim): Likewise.
(ee_finalize_esim): Likewise.
2016-04-08 Ola Jeppsson <[email protected]>
* e-lib/src/e_reg_read.c (e_reg_read): Drop volatile qualifier
for reg_val. Don't call e_global_address().
* e-lib/src/e_reg_write.c (e_reg_write): Likewise.
2016-04-08 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany2.h: New file.
2016-04-07 Ola Jeppsson <[email protected]>
* e-trace/Makemodule.am (e-trace-server): Add ETRACE_LIBS to
link.
(e-trace-dump): Likewise.
2016-04-04 Ola Jeppsson <[email protected]>
* bsps/parallella64/fast.ldf: Reserve addresses below 0x100
for internal use.
* bsps/parallella64/internal.ldf: Likewise.
* bsps/parallella_E16G3_1GB/fast.ldf: Likewise.
* bsps/parallella_E16G3_1GB/internal.ldf: Likewise.
2016-03-21 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data.h (e_sys_reg_id_t): Remove enum.
(e_syscfg_tx_t): Remove struct.
(e_syscfg_rx_t): Remove struct.
(e_syscfg_clk_t) Remove struct.
(e_syscfg_coreid_t): Remove struct.
(e_syscfg_version_t): Remove struct.
(e_syscfg_gpio_t): Remove struct.
* e-utils/src/e-hw-rev.c (e_syscfg_version_t): Add struct
(HACK).
2016-03-03 Ola Jeppsson <[email protected]>
* e-hal/Makemodule.am (libe-hal.la) [ENABLE_PAL_TARGET]: Add
pal-target.c to build.
* e-hal/src/epiphany-hal-api-local.h: Add prototype for
ee_native_target_p and ee_pal_target_p.
* e-hal/src/epiphany-hal.c (ee_native_target_p): New function.
(bool ee_pal_target_p): New function.
(e_init): Add support for PAL target.
* e-hal/src/pal-target.c: New file.
2016-03-03 Ola Jeppsson <[email protected]>
* e-hal/Makemodule.am: Capitalize ENABLE_ESIM.
* configure.ac: Likewise.
2016-03-03 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-api-local.h: Add prototype for
ee_esim_target_p.
* e-hal/src/e-loader.c: Include epiphany-hal-api-local.h.
* e-hal/src/epiphany-hal.c (ee_esim_target_p): Move from
esim-target.c.
2016-03-03 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data-local.h (e_target_ops): Move
struct here from epiphany-hal.c. Add init, finalize, and
populate_platform members.
* e-hal/src/epiphany-hal.c (e_init): Platform initialization
factored out to target ops. Call target init.
(e_finalize): Call target finalize.
(populate_platform_native): New function.
(init_native): New function.
(finalize_native): New function.
(native_target_ops): Added.
* e-hal/src/epiphany-shm-manager.c (e_shm_init):
ee_esim_target_p was renamed from esim_target_p.
(e_shm_finalize): Likewise.
* e-hal/src/e-loader.c (ee_process_elf): Likewise.
* e-hal/src/esim-target.c (ee_init_esim): New function.
(ee_finalize_esim): New function.
(ee_populate_platform_esim): Moved from
epiphany-hal.c:ee_hdf_from_sim_cfg().
(ee_read_word_esim): Moved from epiphany-hal.c.
(ee_write_word_esim): Likewise.
(ee_read_buf_esim): Likewise.
(ee_write_buf_esim): Likewise.
(ee_read_reg_esim): Likewise.
(ee_write_reg_esim): Likewise.
(ee_mread_word_esim): Likewise.
(ee_mwrite_word_esim): Likewise.
(ee_mread_buf_esim): Likewise.
(ee_mwrite_buf_esim): Likewise.
(e_reset_system_esim): Likewise.
(esim_target_ops): Added.
* e-hal/src/esim-target.h: Declare esim_target_ops.
2016-03-03 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_is_addr_in_emem): Use right type
for memory segment.
2016-03-02 Ola Jeppsson <[email protected]>
* Makefile.am: Always include bsps build rules.
2016-03-01 Ola Jeppsson <[email protected]>
* configure.ac: Add --enable-pal-target argument. Add
ENABLE_PAL_TARGET Automake conditional
* e-hal/Makemodule.am [ENABLE_PAL_TARGET]: Set PAL CFLAGS and
LDFLAGS.
2016-03-01 Ola Jeppsson <[email protected]>
* configure.ac: Add --disable-ehal and --disable-elib
arguments.
* Makefile.am: Conditional build of e-lib based on flags given
to configure. Conditional build of e-hal (and libraries that
depend on e-hal).
2016-02-29 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_open): Comment out call to
ee_soft_reset_core().
(e_close): Likewise.
2016-02-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_open): Call ee_soft_reset_core()
(e_close): Likewise.
2016-02-22 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (ee_reset_regs): Mask all but SYNC
irq in IMASK.
2016-02-18 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (ee_soft_reset_dma): Implement.
(ee_reset_regs): Clean up. Add reset_dma parameter. Enable
clock gating. Write FSTATUS instead of STATUS.
(ee_soft_reset_core): Use ee_soft_reset_dma. Disable timers
early. Also check ILAT to determine that core is idle.
2016-02-18 Ola Jeppsson <[email protected]>
* e-utils/src/e-read.c (main): Remove call to
e_reset_system().
* e-utils/src/e-write.c (main): Likewise.
2016-02-18 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (ee_soft_reset_core): Replace
unnecessary call to ee_reset_regs() with one write to ILATCL.
2016-02-18 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (soft_reset_payload): Add missing
branch.
(ee_soft_reset_core): Improve robustness. Fail on detected
errors.
* e-hal/src/e-loader.c (e_load_group): Check return value from
ee_soft_reset_core().
2016-02-18 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (e_load_group): Replace call to
ee_reset_group() with call to ee_soft_reset_core().
* e-hal/src/epiphany-hal-api-local.h: Add ee_soft_reset_core
function prototype.
* e-hal/src/epiphany-hal.c (ee_reset_regs): Implemented.
(ee_soft_reset_core): Implemented.
2016-02-17 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (e_load_group): Call ee_reset_group.
* e-hal/src/epiphany-hal-api-local.h: Add function prototypes
for ee_reset_group and ee_start_group.
* e-hal/src/epiphany-hal.c (ee_reset_group): Implemented.
(ee_reset_core): Use ee_reset_group.
(e_reset_group): Use ee_reset_group.
(ee_start_group): Implemented.
(e_start): Use ee_start_group.
(e_start_group): Use ee_start_group.
2016-02-16 Ola Jeppsson <[email protected]>
* e-utils/Makemodule.am: Add e-dump-regs target.
* e-utils/src/e-dump-regs.c: New file.
2016-02-16 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-shm-manager.c (e_shm_init_native): Fill in
shm_alloc struct.
* e-hal/src/epiphany-hal.c (e_init): Call e_shm_init() again.
2016-02-15 Ola Jeppsson <[email protected]>
* bsps/parallella64/platform.hdf (ESYS_REGS_BASE): Remove.
(EMEM_BASE_ADDRESS): Use mesh address.
* bsps/parallella_E16G3_1GB/parallella_E16G3_1GB.hdf: Likewise.
* e-hal/src/epiphany-hal-api-local.h: Update EPIPHANY_DEV.
* e-hal/src/epiphany-hal-data-local.h (e_platform_t): Remove
regs_base member.
* e-hal/src/epiphany-hal.c (struct target_ops): Remove
ee_read_esys and ee_write_esys members.
(e_init): Comment out call to e_shm_init().
(e_finalize): Remove call ee_disable system().
(ee_read_esys_esim): Remove.
(ee_read_esys_native): Remove.
(ee_read_esys): Remove.
(ee_write_esys_esim): Remove.
(ee_write_esys_native): Remove.
(ee_write_esys): Remove.
(disable_nsw_elinks): Remove.
(enable_clock_gating): Remove.
(e_reset_system_native): Use new kernel ABI.
(ee_disable_system): Remove.
(ee_parse_simple_hdf): Make ESYS_REGS_BASE entries no-ops.
* e-utils/src/e-hw-rev.c (main): Use dummy value for version
reg
2015-12-21 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (clear_sram): Take sram size from first chip in
e_platform structure.
* e-hal/src/epiphany-hal-data-local.h: Add E_ESIM chip, and
E_PARALLELLASIM platform.
* e-hal/src/epiphany-hal.c (e_init): Use chip configuration from
simulator configuration when target is esim.
(ee_hdf_from_sim_cfg): Implemented.
2015-12-14 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_init): Remove conditional check for
esim target before calling e_shm_init().
(e_finalize): Likewise but for e_shm_finalize().
(ee_mread_word_esim): Fix incorrect address calculation for shared
memory objects.
(ee_mwrite_word_esim): Likewise.
(ee_mread_buf_esim): Likewise.
(ee_mwrite_buf_esim): Likewise.
* e-hal/src/epiphany-shm-manager.c (LOCK_SHM_TABLE)
(UNLOCK_SHM_TABLE): Make no-op when target is esim. Fix later.
(e_shm_init_esim): Implemented.
(e_shm_init_native): Move native initialization code here ...
(e_shm_init): ...from here. Call
(e_shm_finalize): Add support for esim target.
(e_shm_alloc): Likewise.
(e_shm_attach): Likewise.
* e-hal/src/epiphany.h (GLOBAL_SHM_SIZE): Use ULL postfixes in macro.
* e-hal/src/esim-target.c (es_ops): Initialize client_get_raw_pointer.
* e-hal/src/esim-target.h (es_ops): Add client_get_raw_pointer.
2015-12-14 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data.h (e_shmseg_t) (e_shmseg_pvt_t)
(e_shmtable_t): Use explicit memory layout in structures to stay clear
of architectural differences.
* e-lib/include/e_shm.h (e_shmseg_t) (e_shmseg_pvt_t) (e_shmtable_t):
Likewise. (Identical with above, should be moved to common file)
2015-12-11 Ola Jeppsson <[email protected]>
* e-utils/Makemodule.am: Add e-meshdump target.
* e-utils/src/e-meshdump.c: New file.
2015-12-11 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (clear_sram): Implemented.
(e_load_group): Call clear_sram().
(ee_set_core_config): Always set LOADER_BSS_CLEARED_FLAG.
2015-12-11 Ola Jeppsson <[email protected]>
* e-lib/src/e_coreid_get_coreid.c (e_get_coreid): Let compiler decide
register for coreid_in_reg variable. Fix error in inline assembly,
coreid_in_reg is an output, not input.
* e-lib/src/e_mutex_lock.c (e_mutex_lock): Make lock variable hold
THIS coreid when THIS core takes the lock.
2015-12-11 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (loader_sections): Add struct.
(section_info): Add struct.
(loader_cfg): Add struct.
(e_load_group): Call lookup_section().
(lookup_sections): Implemented.
(ee_set_core_config): Add table parameter. Take section offset from
table instead of using hard coded values.
2015-12-11 Ola Jeppsson <[email protected]>
* bsps/parallella64/fast.ldf (loader_cfg): Add output section.
* bsps/parallella64/internal.ldf: Likewise.
* bsps/parallella_E16G3_1GB/fast.ldf: Likewise.
* bsps/parallella_E16G3_1GB/internal.ldf: Likewise.
2015-12-10 Ola Jeppsson <[email protected]>
* bsps/parallella64/fast.ldf (workgroup_cfg): Rename section from
workgroup_config. Force allocation even if empty.
(ext_mem_cfg): Rename from external_mem_config. Force allocation even
if empty.
* bsps/parallella64/internal.ldf: Likewise.
* bsps/parallella_E16G3_1GB/fast.ldf: Likewise.
* bsps/parallella_E16G3_1GB/internal.ldf: Likewise.
2015-12-08 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_finalize): If target is esim, disconnect
with stop parameter set to true.
* e-hal/src/esim-target.h (esim_ops): Add stop parameter to
client_disconnect to match esim.h
2015-12-07 Ola Jeppsson <[email protected]>
* e-hal/src/e-loader.c (is_epiphany_exec_elf): New function.
(is_srec_file): New function.
(e_load_group): Rewrite to use mmaped file.
(ee_process_elf): Likewise.
(is_local): New function.
(is_valid_addr): New function.
(is_valid_range): New function.
* e-hal/src/epiphany-hal.c (e_is_addr_in_emem): New function.
* e-hal/src/epiphany-hal-api.h (e_is_addr_in_emem): Add function
prototype.
2015-12-06 Ola Jeppsson <[email protected]>
* e-hal/Makemodule.am (libe_loader_la_SOURCES): Remove
e-process-SREC.c
* e-hal/src/e-loader.c (int e_load_group): Deprecate SREC support.
(ee_process_ELF): Move function here from e-process-SREC.c
* e-hal/src/e-process-SREC.c: Remove.
2015-12-06 Ola Jeppsson <[email protected]>
* configure.ac (AC_ARG_ENABLE(esim)): Adjust help text.
* e-hal/Makemodule.am (noinst_HEADERS): Add esim-target.h.
(libe_loader_la_SOURCES): Add esim-target.c
(libe_hal_la_SOURCES): Likewise.
(libe_loader_la_CFLAGS) [enable_esim]: Add needed flags.
(libe_hal_la_CFLAGS) [enable_esim]: Likewise.
(libe_loader_la_LDFLAGS) [enable_esim]: Add needed libs.
(libe_hal_la_LDFLAGS) [enable_esim]: Likewise.
(libe-loader-esim.la): Removed target.
(libe-hal-esim.la): Likewise.
* e-hal/src/e-loader.c: Rewrite to detect target at runtime.
* e-hal/src/e-process-SREC.c: Likewise.
* e-hal/src/epiphany-hal-data.h: Add EHAL_TARGET_ENV define.
* e-hal/src/epiphany-hal.c (target_ops): Added struct.
(use_esim_target_ops): Implemented.
(e_init): Rewrite to select target at runtime.
(e_finalize): Likewise.
(e_open): Likewise.
(e_close): Likewise.
(e_alloc): Likewise.
(e_free): Likewise.
(ee_reset_core): Likewise.
(e_reset_group): Likewise.
(ee_read_word): Likewise.
(ee_write_word): Likewise.
(ee_read_buf): Likewise.
(ee_write_buf): Likewise.
(ee_read_reg): Likewise.
(ee_write_reg): Likewise.
(ee_mread_word): Likewise.
(ee_mwrite_word): Likewise.
(ee_mread_buf): Likewise.
(ee_mwrite_buf): Likewise.
(ee_read_esys): Likewise.
(ee_write_esys): Likewise.
(e_reset_system): Likewise.
* e-hal/src/esim-target.c: New file.
* e-hal/src/esim-target.h: New file.
2015-12-04 Ola Jeppsson <[email protected]>
* configure.ac (CFLAGS): Set to CFLAGS_FOR_TARGET when configuring
e-lib.
(CXXFLAGS): Likewise, but CXXFLAGS_FOR_TARGET.
(CPPFLAGS): Likewise, but CPPFLAGS_FOR_TARGET.
(LDFLAGS): Likewise, but LDFLAGS_FOR_TARGET.
2015-12-04 Ola Jeppsson <[email protected]>
* e-lib/src/e_mutex_barrier.c (e_barrier): tgt_bar_array should be an
array of pointers to volatile e_barrier_t.
* e-lib/src/e_mutex_barrier_init.c (e_barrier_init): Likewise.
* e-lib/include/e_mutex.h (e_mutex_init): Add warning attribute.
(e_barrier_init): Update function prototype.
(e_barrier): Update function prototype.
* e-lib/src/e_mutex_init.c (e_mutex_init): Make no-op.
* e-lib/src/e_mutex_lock.c (e_mutex_lock): Inline assembly should
clobber memory.
* e-lib/src/e_mutex_unlock.c (e_mutex_unlock): Use inline
assembly to clear mutex.
2015-12-04 Ola Jeppsson <[email protected]>
* configure.ac (AC_ARG_ENABLE(esim)): Added.
* e-hal/Makemodule.am [enable_esim]: Build libe-loader-esim.la and
libe-hal-esim.la.
(libe_loader_esim_la): Added target.
(libe_hal_esim_la): Added target.
* e-hal/src/e-process-SREC.c (ee_process_ELF) [ESIM_BACKEND]: Add
missing call to fseek().
* e-hal/src/epiphany-hal.c (e_init) [ESIM_BACKEND]:
es_client_connect() changed name from es_slave_connect(). Don't call
e_shm_init() for now.
(e_finalize) [ESIM_BACKEND]: es_client_disconnect() changed name from
es_slave_disconnect(). Don't call e_shm_finalize() for now.
(ee_read_reg) [ESIM_BACKEND]: E_CORE_GP_REG_BASE was removed. Replace
with E_REG_R0 instead.
(ee_write_reg) [ESIM_BACKEND]: Likewise.
2015-12-01 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (ee_reset_core) [ESIM_BACKEND]: Make calls
to usleep conditional.
2015-11-30 Ola Jeppsson <[email protected]>
* e-hal/src/e-process-SREC.c [ESIM_BACKEND]: Include esim.h.
(ee_process_elf) [ESIM_BACKEND]: Add ESIM implementation.
2015-11-30 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal-data-local.h (e_platform_t): Add esim handle.
* e-hal/src/epiphany-hal-data.h (e_epiphany_t): Likewise.
(e_mem_t): Likewise.
* e-hal/src/epiphany-hal.c [ESIM_BACKEND]: Include esim.h
(e_open) [ESIM_BACKEND]: Call es_slave_connect().
[!ESIM_BACKEND]: Make calls to mmap() / open() conditional.
(e_close) [!ESIM_BACKEND]: Make calls to munmap() / close()
conditional.
(ee_read_word) [ESIM_BACKEND]: Add esim implementation.
(ee_write_word) [ESIM_BACKEND]: Likewise.
(ee_read_buf) [ESIM_BACKEND]: Likewise.
(ee_write_buf) [ESIM_BACKEND]: Likewise.
(ee_read_reg) [ESIM_BACKEND]: Likewise.
(ee_write_reg) [ESIM_BACKEND]: Likewise.
(ee_mread_word) [ESIM_BACKEND]: Likewise.
(ee_mwrite_word) [ESIM_BACKEND]: Likewise.
(ee_mread_buf) [ESIM_BACKEND]: Likewise.
(ee_mwrite_buf) [ESIM_BACKEND]: Likewise.
(ee_read_esys) [ESIM_BACKEND]: Add ESIM placeholder. Return error.
(ee_write_esys) [ESIM_BACKEND]: Likewise.
(e_reset_system) [ESIM_BACKEND]: Add esim implementation.
2015-11-20-2015-11-23 Ola Jeppsson <[email protected]>
Major refactoring.
Switch to Autotools based build system.
* e-utils: Moved from src/e-utils. Split trace stuff into...
* e-trace: ...added.
* e-hal: Moved from src/e-hal.
* src/e-loader: Code moved into e-hal.
* src/e-memman: Code moved into e-hal.
* e-server: Moved from src/e-server.
* e-xml: Moved from src/e-xml.
* e-lib: Moved from src/e-lib.
2015-09-18 Ola Jeppsson <[email protected]>
* src/e-loader/src/e-loader.c: Convert line endings from DOS
to UNIX.
2015-09-07 Ola Jeppsson <[email protected]>
* bsps/parallella64/fast.ldf: Adjust for Epiphany GCC
__USER_LABEL_PREFIX__ change from "_" to "".
* bsps/parallella64/internal.ldf: Likewise.
* bsps/parallella64/legacy.ldf: Likewise.
* bsps/parallella_E16G3_1GB/fast.ldf: Likewise.
* bsps/parallella_E16G3_1GB/internal.ldf: Likewise.
* src/e-lib/src/e_ctimer_get.s: Likewise.
* src/e-lib/src/e_ctimer_set.s: Likewise.
* src/e-lib/src/e_ctimer_start.s: Likewise.
2015-05-22 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (int e_free): Fix thinko that
caused resource leak.
2015-03-20 Mateusz Kaczanowski <[email protected]>
* src/e-lib/src/e_mem_read.c (void *e_read): Add src to base.
* src/e-lib/src/e_mem_write.c (void *e_write): Add dst to
base.
2015-01-29 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (static int
disable_nsw_elinks): Insert delays between write to E_SYS_*
registers.
(static int enable_clock_gating): Likewise.
(int e_reset_system): Likewise.
2015-01-23 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (static int
disable_nsw_elinks): Created. This function disables the
north, south, and west eLinks.
(int e_reset_system): Call disable_nsw_elinks().
2015-01-23 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (int ee_disable_system): Also
disable TX and RX.
2015-01-16 Yoshifuji Naoki <[email protected]>
* src/e-loader/src/e-loader.c: Make 'executable' argument const
to suppress warnings.
* src/e-loader/src/e-loader.h: Likewise.
* src/e-loader/src/e-process-SREC.c: Likewise.
2015-01-15 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-shm-manager.c (int e_shm_init): Add
missing newlines.
(static int shm_table_sanity_check): Likewise.
2015-01-15 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-shm-manager.c (int e_shm_init): Lower
the severity for select SHM error reports.
(static int shm_table_sanity_check): Likewise.
2015-01-15 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal-data.h: Be more explicit about
bitfield members' width.
2015-01-15 Ola Jeppsson <[email protected]>
* src/e-utils/e-read/src/e-read.c (int main): Call
e_reset_system() before accessing Epiphany chip.
2015-01-15 Ola Jeppsson <[email protected]>
* src/e-utils/e-write/src/e-write.c (int main): Call
e_reset_system() before writing to Epiphany chip.
2015-01-15 Ola Jeppsson <[email protected]>
* src/e-utils/e-loader/src/e-loader.c (int main): Always call
'e_reset_system()'. Make reset flags no-ops. Do not call
'e_finalize()'.
(void usage): Remove reset flags.
2015-01-15 Ola Jeppsson <[email protected]>
* src/e-utils/e-hw-rev/Makefile: Add e-hal to include search path.
Link with e-hal.
* src/e-utils/e-hw-rev/e-hw-rev.c (void print_platform_info):
Created.
(int main): Use e-hal API.
(int e_open): Removed
(int e_read_esys): Removed
2015-01-14 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal-data.h: Removing base addresses for
clarity, most of these addresses will never change.
Added missing registers in chip.
Fixed names to correspond to architecture manual and datasheet for
chip.
* src/e-hal/src/epiphany-hal.c (int ee_read_reg): Adjust for
above.
(ssize_t ee_write_reg): Likewise.
(static int enable_clock_gating): Likewise.
2015-01-13 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal-data.h: Fix inconsistencies with
e_syscfg* types.
* src/e-hal/src/epiphany-hal.c (int e_reset_system): Use the right
type for rxcfg.
2015-01-13 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal-data.h: Rename all occurrences of
'field' in ESYS register structs to 'fields'.
* src/e-hal/src/epiphany-hal.c (int e_reset_system): Adjust for
above change.
(int ee_disable_system): Likewise.
2015-01-13 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (int e_reset_system): Set e-link TX
clock divider back to 4 for select platforms.
2015-01-07 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (static int enable_clock_gating):
Created.
(int e_reset_system): Enable clock gating.
2015-01-07 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (int ee_disable_system): Created.
This function disables the Epiphany chip by stopping the c-clock.
(int e_finalize): Call ee_disable_system().
* src/e-hal/src/epiphany-hal-api-local.h: Add prototype for
ee_disable_system().
2015-01-07 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (int e_reset_system): Remove
dead code. Programming the link clock divider is not needed with
the new bitstream.
2014-12-23 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal.c (static inline void *aligned_memcpy):
Implemented wrapper that only calls memcpy when src dst and size
are 32 bit WORD aligned.
(ssize_t ee_write_buf): Use aligned_memcpy() instead of memcpy().
2014-12-12 Ola Jeppsson <[email protected]>
* src/e-lib/src/e_trace.c: Remove signum argument from interrupt
handlers. There is no signum argument for interrupt handlers.
* src/e-lib/src/e_trace_dma.c: Likewise.
2014-12-04 Ola Jeppsson <[email protected]>
* bsps/parallella64/platform.hdf: Adjust ESYS register base to
match new eLink PL.
* bsps/parallella_E16G3_1GB/parallella_E16G3_1GB.hdf: Likewise.
2014-12-04 Ola Jeppsson <[email protected]>