Skip to content

Commit

Permalink
Merge branch 'master' into feature/pip_install
Browse files Browse the repository at this point in the history
  • Loading branch information
tswhison committed Apr 10, 2023
2 parents 12116f5 + 2065ed5 commit 5843f8e
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 17 deletions.
8 changes: 4 additions & 4 deletions binaries/ofs.uio/uio/ofs_uio.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env python3
# Copyright(c) 2022, Intel Corporation
# Copyright(c) 2022-2023, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -464,14 +464,14 @@ def mailbox_write(self, region_index, address, value):
self.write64(region_index, self.MAILBOX_CMD_CSR, 0x0)
time.sleep(MAILBOX_POLL_TIMEOUT)

# write value
self.write32(region_index, self.MAILBOX_WR_DATA_CSR, value)

# Set write bit and write cmd address
mbox_cmd_sts = mailbox_cmd_sts(0x2)
mbox_cmd_sts.cmd_addr = address
self.write64(region_index, self.MAILBOX_CMD_CSR, mbox_cmd_sts.value)

# write value
self.write32(region_index, self.MAILBOX_WR_DATA_CSR, value)

# Poll for ACK_TRANS bit index 2, wdith 2
if not self.read_poll_timeout(region_index,
self.MAILBOX_CMD_CSR,
Expand Down
4 changes: 2 additions & 2 deletions binaries/opae.io/opae/io/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@
'platform': 'Intel Acceleration Development Platform N6001'
},
(0x8086, 0xbcce, 0x8086, 0x17d4): {
'platform': 'Intel Acceleration Development Platform C6100'
'platform': 'Intel IPU Platform F2000X-PL'
},
(0x8086, 0xbccf, 0x8086, 0x17d4): {
'platform': 'Intel Acceleration Development Platform C6100'
'platform': 'Intel IPU Platform F2000X-PL'
},
(0x8086, 0xaf00, 0x8086, 0): {
'platform': 'Intel Open FPGA Stack Platform'
Expand Down
2 changes: 1 addition & 1 deletion libraries/libopae-c/cfg-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ STATIC fpgainfo_config_data default_fpgainfo_config_table[] = {
"Intel Acceleration Development Platform N6001" },

{ 0x8086, 0xbcce, 0x8086, 0x17d4, 0x12, "libboard_c6100.so", NULL,
"Intel Acceleration Development Platform C6100" },
"Intel IPU Platform F2000X-PL" },

{ 0, 0, 0, 0, -1, NULL, NULL, "" }
};
Expand Down
2 changes: 1 addition & 1 deletion opae.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@

"c6100": {
"enabled": true,
"platform": "Intel Acceleration Development Platform C6100",
"platform": "Intel IPU Platform F2000X-PL",

"devices": [
{ "name": "c6100_pf", "id": [ "0x8086", "0xbcce", "0x8086", "0x17d4" ] },
Expand Down
4 changes: 2 additions & 2 deletions python/opae.admin/opae/admin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@
'platform': 'Intel Acceleration Development Platform N6001'
},
(0x8086, 0xbcce, 0x8086, 0x17d4): {
'platform': 'Intel Acceleration Development Platform C6100'
'platform': 'Intel IPU Platform F2000X-PL'
},
(0x8086, 0xbccf, 0x8086, 0x17d4): {
'platform': 'Intel Acceleration Development Platform C6100'
'platform': 'Intel IPU Platform F2000X-PL'
},
(0x8086, 0xaf00, 0x8086, 0): {
'platform': 'Intel Open FPGA Stack Platform'
Expand Down
14 changes: 13 additions & 1 deletion samples/host_exerciser/host_exerciser_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,22 @@ class host_exerciser_cmd : public test_command
// Interrupt test mode
if (he_lpbk_cfg_.IntrTestMode == 1) {
if (!he_interrupt(ev)) {
status = -1;
status = -1;
if (host_exe_->logger_->should_log(spdlog::level::debug)) {
std::cout << std::endl;
he_dump_buffer(source_, "Post-execution source");
he_dump_buffer(destination_, "Post-execution destination");
std::cout << std::endl;
}
}
else {
status = he_compare_buffer();
if (host_exe_->logger_->should_log(spdlog::level::debug)) {
std::cout << std::endl;
he_dump_buffer(source_, "Post-execution source");
he_dump_buffer(destination_, "Post-execution destination");
std::cout << std::endl;
}
he_perf_counters();
}
} else if (host_exe_->he_continuousmode_) {
Expand Down
6 changes: 3 additions & 3 deletions tests/opae.admin/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
"c6100": {
"enabled": true,
"platform": "Intel Acceleration Development Platform C6100",
"platform": "Intel IPU Platform F2000X-PL",
"devices": [
{ "name": "c6100_pf", "id": [ "0x8086", "0xbcce", "0x8086", "0x17d4" ] },
Expand Down Expand Up @@ -472,8 +472,8 @@ def test_fpgareg_platform_for(self):
assert Config.fpgareg_platform_for(0x8086, 0xbccf, 0x8086, 0x1770) == 'Intel Acceleration Development Platform N6000'
assert Config.fpgareg_platform_for(0x8086, 0xbcce, 0x8086, 0x1771) == 'Intel Acceleration Development Platform N6001'
assert Config.fpgareg_platform_for(0x8086, 0xbccf, 0x8086, 0x1771) == 'Intel Acceleration Development Platform N6001'
assert Config.fpgareg_platform_for(0x8086, 0xbcce, 0x8086, 0x17d4) == 'Intel Acceleration Development Platform C6100'
assert Config.fpgareg_platform_for(0x8086, 0xbccf, 0x8086, 0x17d4) == 'Intel Acceleration Development Platform C6100'
assert Config.fpgareg_platform_for(0x8086, 0xbcce, 0x8086, 0x17d4) == 'Intel IPU Platform F2000X-PL'
assert Config.fpgareg_platform_for(0x8086, 0xbccf, 0x8086, 0x17d4) == 'Intel IPU Platform F2000X-PL'
assert Config.fpgareg_platform_for(0x8086, 0xaf00, 0x8086, 0) == 'Intel Open FPGA Stack Platform'
assert Config.fpgareg_platform_for(0x8086, 0xaf01, 0x8086, 0) == 'Intel Open FPGA Stack Platform'
assert Config.fpgareg_platform_for(0x8086, 0xbcce, 0x8086, 0) == 'Intel Open FPGA Stack Platform'
Expand Down
6 changes: 3 additions & 3 deletions tests/opae.io/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"c6100": {
"enabled": true,
"platform": "Intel Acceleration Development Platform C6100",
"platform": "Intel IPU Platform F2000X-PL",
"devices": [
{ "name": "c6100_pf", "id": [ "0x8086", "0xbcce", "0x8086", "0x17d4" ] },
Expand Down Expand Up @@ -337,8 +337,8 @@ def test_opae_io_platform_for(self):
assert Config.opae_io_platform_for(0x8086, 0xbccf, 0x8086, 0x1770) == 'Intel Acceleration Development Platform N6000'
assert Config.opae_io_platform_for(0x8086, 0xbcce, 0x8086, 0x1771) == 'Intel Acceleration Development Platform N6001'
assert Config.opae_io_platform_for(0x8086, 0xbccf, 0x8086, 0x1771) == 'Intel Acceleration Development Platform N6001'
assert Config.opae_io_platform_for(0x8086, 0xbcce, 0x8086, 0x17d4) == 'Intel Acceleration Development Platform C6100'
assert Config.opae_io_platform_for(0x8086, 0xbccf, 0x8086, 0x17d4) == 'Intel Acceleration Development Platform C6100'
assert Config.opae_io_platform_for(0x8086, 0xbcce, 0x8086, 0x17d4) == 'Intel IPU Platform F2000X-PL'
assert Config.opae_io_platform_for(0x8086, 0xbccf, 0x8086, 0x17d4) == 'Intel IPU Platform F2000X-PL'
assert Config.opae_io_platform_for(0x8086, 0xaf00, 0x8086, 0) == 'Intel Open FPGA Stack Platform'
assert Config.opae_io_platform_for(0x8086, 0xaf01, 0x8086, 0) == 'Intel Open FPGA Stack Platform'
assert Config.opae_io_platform_for(0x8086, 0xbcce, 0x8086, 0) == 'Intel Open FPGA Stack Platform'
Expand Down

0 comments on commit 5843f8e

Please sign in to comment.