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

N6000/N6001 sudo fpgainfo errors all returns error code 70 #3032

Open
rchriste1 opened this issue Oct 25, 2023 · 1 comment
Open

N6000/N6001 sudo fpgainfo errors all returns error code 70 #3032

rchriste1 opened this issue Oct 25, 2023 · 1 comment
Assignees

Comments

@rchriste1
Copy link
Contributor

Running

sudo fpgainfo errors all

With N6000 or N6001 card gives the correct output of FME and PORT errors, but return error code 70. When running with either argument "fme" or "port" instead of "all" the error code is zero as expected.

It seems the problem occurs due to the addition of UIO interfaces for N6000/N6001 in commit 029ef77, that can be seen with

sudo fpgainfo port

These devices are also found in the "errors all" command, but "fpgaGetProperties(tokens[i], &props);" in errors-command() returns error 4, which result in the returned error code.

This does not happen in the "sudo fpgainfo errors port" case, because a FPGA_IFC_DFL filter is added. If the same filter is added in the "VERB_ALL" case as shown here, the UIO devices are not included so the problem seems to be solved with adding these 4 lines.

		case VERB_ALL:
			res = fpgaPropertiesSetInterface(*filter,
				FPGA_IFC_DFL);
			ON_FPGAINFO_ERR_GOTO(
				res, out, "setting type to FPGA_IFC_DFL");

This also works for N501x cards, but I do not know if it leads to problems for other cards.

@rchriste1
Copy link
Contributor Author

Hi @anandaravuri , do you need more information? should I create a pull request with the above proposed solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants