Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fpgainfo: for N501x add show board info read from BMC #2843

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

rchriste1
Copy link
Contributor

Signed-off-by: Roger Christensen rc@silicom.dk

@rchriste1 rchriste1 requested a review from a team as a code owner February 13, 2023 15:13
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4164882080

  • 0 of 10 (0.0%) changed or added relevant lines in 1 file are covered.
  • 7 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.05%) to 65.871%

Changes Missing Coverage Covered Lines Changed/Added Lines %
libraries/libboard/board_n5010/board_n5010.c 0 10 0.0%
Files with Coverage Reduction New Missed Lines %
libraries/plugins/xfpga/open.c 1 74.68%
libraries/plugins/xfpga/mmio.c 6 82.87%
Totals Coverage Status
Change from base Build 4128334959: -0.05%
Covered Lines: 13140
Relevant Lines: 19948

💛 - Coveralls

@@ -189,7 +205,9 @@ fpga_result print_bom_info(const fpga_token token)
if (mac_addr.ether_addr_octet[3] == 0x2d)
serial_name[16] = '0'; //N5013
uint32_t number = (mac_addr.ether_addr_octet[4] << 4) + (mac_addr.ether_addr_octet[5] >> 4);
printf("%-32s : %s.%04u\n", "Board Serial", serial_name, number);
char board_info[FPGA_VAR_BUF_LEN] = { 0 };
read_n5014_board_info(token, board_info);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (read_n5014_board_info(token, board_info) == FPFG_OK)
printf("%-32s : %s.%04u (%s)\n", "Board Serial", serial_name, number, board_info)
else
printf("%-32s : %s.%04u (%s)\n", "Board Serial", serial_name, number, "N/A")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I will add check, just leaving out the last part in case of failure.

@rchriste1 rchriste1 force-pushed the rchriste/n501x-fpgainfo-boardinfo branch from e336385 to 9e85267 Compare February 14, 2023 15:20
Signed-off-by: Roger Christensen <rc@silicom.dk>
@rchriste1 rchriste1 force-pushed the rchriste/n501x-fpgainfo-boardinfo branch from 9e85267 to 41c8163 Compare February 14, 2023 15:40
@anandaravuri anandaravuri merged commit 9fd73c0 into master Feb 14, 2023
@rchriste1 rchriste1 deleted the rchriste/n501x-fpgainfo-boardinfo branch February 16, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants