forked from adapteva/epiphany-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
768 lines (591 loc) · 25.2 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
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-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: Capitalize ENABLE_ESIM.
* configure.ac: Likewise.
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-03-03 Ola Jeppsson <[email protected]>
* e-hal/src/epiphany-hal.c (e_is_addr_in_emem): Use right type
for memory segment.
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-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]>
* src/e-hal/src/epiphany-hal.c (ssize_t ee_write_buf): Temporarily
limit writes to 4 byte chunks to work around temporary limitations
new eLink programmable logic.
2014-12-04 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-hal-data.h: Update to match new PL eLink
interface.
* src/e-hal/src/epiphany-hal.c (int e_reset_system):
Likewise.
2014-10-31 Ola Jeppsson <[email protected]>
* Create 2014.11 branch
2014-10-29 Ola Jeppsson <[email protected]>
* src/e-xml/src/epiphany-hal.c (int e_reset_system): Don't call
e_shm_reset()
* src/e-hal/src-epiphany-shm-manager.c (int e_shm_reset): Remove
function
(int e_shm_init): Move all shm table initialization and reset.
logic here. If the shm table passes the sanity check, do nothing.
Otherwise reset it. This needs more work but now programs can
access the table concurrently.
* src/e-hal/src/epiphany-shm-manager.h: Remove e_shm_reset()
function prototype.
2014-10-29 Ola Jeppsson <[email protected]>
* src/e-utils/e-loader/src/e-loader.c: Fixed some segfaults.
2014-10-24 Ola Jeppsson <[email protected]>
* src/e-server/e-server.sh:
* src/e-utils/e-hw-rev/e-hw-rev.sh:
* src/e-utils/e-loader/e-loader.sh:
* src/e-utils/e-read/e-read.sh:
* src/e-utils/e-reset/e-reset.sh:
* src/e-utils/e-reset/run.sh:
* src/e-utils/e-write/e-write.sh:
Delete. Thanks to the Epiphany device driver these are unnecessary.
2014-10-24 Ola Jeppsson <[email protected]>
* src/e-utils/e-hw-rev/e-hw-rev.c: Quick fix. Reg offsets were wrong.
2014-10-20 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-shm-manager.h (int e_shm_reset):
* src/e-hal/src/epiphany-shm-manager.c (int e_shm_reset):
Add shm table reset function
* src/e-hal/src/epiphany-shm-manager.c (int shm_table_sanity_check):
(int e_shm_init):
(int e_shm_alloc):
(void e_shm_finalize):
(int e_shm_attach):
Defer shm table integrity check until it is actually used.
* src/e-hal/src/epiphany-hal.c (int e_reset_system):
Call e_shm_reset()
2014-10-17 Ola Jeppsson <[email protected]>
* src/e-hal/src/epiphany-shm-manager.c:
Use lockf() instead of POSIX semaphores for synchronization.
* src/e-hal/Makefile:
Don't link with pthreads.
2014-10-14 Ola Jeppsson <[email protected]>
* src/e-hal/Makefile:
Link with -lpthreads. e-shm API uses POSIX semaphores.
2014-08-14 Andreas Olofsson <[email protected]>
* creating 2014.08.rc release branch
2014-08-06 Ben Chaco <[email protected]>
* src/e-hal/Makefile:
Link libmemman.a
* src/e-hal/src/epiphany-hal-data.h:
* src/e-hal/src/epiphany-hal.h:
* src/e-hal/src/epiphany-shm-manager.c (int e_shm_init):
(int e_shm_alloc):
(int e_shm_attach):
(int e_shm_release):
(shm_alloc_region):
(shm_compact_heap):
Added memory manager for shm allocations
* src/e-memman/Makefile:
* src/e-memman/include/memman.h:
* src/e-memman/src/memman.c (int memman_init):
(void *memman_alloc):
(static void coalesce):
(void memman_free):
Initial import
* src/e-utils/e-trace/src/a_trace.c (int trace_init):
(int trace_read_n):
Don't set loader verbosity, set host verbosity to H_D0
2014-08-05 Ben Chaco <[email protected]>
* src/e-hal/src/epiphany-hal-data.h:
* src/e-hal/src/epiphany-shm-manager.c (int e_shm_init):
(void e_shm_finalize):
(int e_shm_alloc):
(int e_shm_attach):
(int e_shm_release):
Moved shm lock semaphore definition out of the shm_table
strucuture and into a global variable
* src/e-lib/Makefile:
Removed -O3 optimization level option from EXTRACFLAGS
2014-07-17 Ben Chaco <[email protected]>
* build-libs.sh:
Changed default EPIPHANY_PREFIX from "e-" to "epiphany-elf-".
Removed explicit CROSS_COMPILE variable from the Make command so
that the environment variable will be used. Tabified the script
to remove mixed uses of TAB characters and whitespace.
2014-06-12 Ben Chaco <[email protected]>
* src/e-hal/src/epiphany-hal.c (int e_init):
(int e_open):
(int e_alloc):
(int ee_read_esys):
(ssize_t ee_write_esys):
(int e_reset_system):
Removed test for root privs, use /dev/epiphany for memory mapping,
Fixed return value checks from open() syscall.
* src/e-utils/e-hw-rev/e-hw-rev.c (int main):
(int e_close):
(int e_read_esys):
Use /dev/epiphany for memory mapping. Untabified.
2014-06-10 Ola Jeppsson <[email protected]>
* src/e-xml/Makefile:
e-xml: Only export public API functions in shared library
Don't clutter namespace.
objdump --dynamic-syms Release/libe-xml.so | grep " g " | wc -l
Before: 262
After: 27
* src/e-xml/src/parse_c.c:
e-xml: Add example program that uses C bindings
* src/e-xml/Makefile:
* src/e-xml/src/epiphany_xml.cpp:
* src/e-xml/src/epiphany_xml_c.h:
e-xml: Add C api
* src/e-xml/src/epiphany_platform.h:
* src/e-xml/src/epiphany_xml.h:
e-xml: Add include guards to header files
* src/e-xml/src/epiphany_xml.cpp:
e-xml: Fix mismatched delete / new[]
2014-05-28 Ben Chaco <[email protected]>
* build-libs.sh:
Updates to fix CROSS_COMPILE and CROSS_PREFIX - allow CROSS_PREFIX from env var
2014-05-27 Ben Chaco <[email protected]>
* build_tools/make_exe.rules:
* src/e-server/Makefile:
* src/e-utils/e-hw-rev/Makefile:
* src/e-utils/e-loader/Makefile:
* src/e-utils/e-read/Makefile:
* src/e-utils/e-reset/Makefile:
* src/e-utils/e-write/Makefile:
Added DBG_LIB_PATHS for linking debug versions of static libraries within exe Makefiles.
2014-05-26 Jeremy Bennett <[email protected]>
* build-libs.sh: Set CROSS_PREFIX as CROSS_COMPILE value for make.
2014-05-23 Jeremy Bennett <[email protected]>
* .gitignore: Created.
2014-05-14 Ben Chaco <[email protected]>
* build-libs.sh (function build-loader): Implement make-based build.
(function build-hal): Implement make-based build.
(function build-server): Implement make-based build.
(function build-utils): Implement make-based build.
(function build-lib): Implement make-based build.
(function usage): Added a clean build (-c) option.