Page MenuHomeFreeBSD

ntb: Add Xeon Gen3 support
ClosedPublic

Authored by markj on Oct 5 2020, 2:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 1:52 AM
Unknown Object (File)
Fri, May 3, 9:28 PM
Unknown Object (File)
Fri, May 3, 9:28 PM
Unknown Object (File)
Fri, May 3, 12:23 PM
Unknown Object (File)
Tue, Apr 23, 12:47 PM
Unknown Object (File)
Feb 24 2024, 11:28 AM
Unknown Object (File)
Feb 11 2024, 9:10 AM
Unknown Object (File)
Feb 11 2024, 9:10 AM

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34230
Build 31375: arc lint + arc unit

Event Timeline

markj requested review of this revision.Oct 5 2020, 2:52 PM
markj created this revision.

Looks good to me.

sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1301

Might want to keep the comment and assert on default.

sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1301

Note that the NTB type is an enum, so I'm not sure that having a default case makes sense.

1312

Isilon's patch and Linux and DPDK perform 8-byte reads and writes for doorbells.

  • A few fixups, switch on the NTB hardware type to make code a bit clearer.
  • Update the man page.

No objection. I don’t really want to be an NTB maintainer, fwiw. I skimmed maybe half of this and it seemed reasonable.

This revision is now accepted and ready to land.Oct 13 2020, 4:59 PM
In D26683#596653, @cem wrote:

No objection. I don’t really want to be an NTB maintainer, fwiw. I skimmed maybe half of this and it seemed reasonable.

Thanks for looking. If I don't get any feedback in the next few days I'll just go ahead and commit.

Thanks for looking. If I don't get any feedback in the next few days I'll just go ahead and commit.

👌

vangyzen added a subscriber: vangyzen.

I'm not an NTB expert, but LGTM.

sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1146

desired_vectors was just assigned to num_vectors, so this is always true.

1155

Indentation?

1301

It would catch a scribbler earlier.

1835

Indentation?

2142–2143

Indentation?

I assume this is a rare case, but adding the sizes to the error message could be helpful.

3253–3256

You could remove the condition and keep only limit = base + size;. Or maybe a different condition is needed?

markj added inline comments.
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1155

I think this can just be removed.

3253–3256

I believe we can just remove the conditional.

markj marked an inline comment as done.

Address feedback.

This revision now requires review to proceed.Oct 17 2020, 3:16 PM
This revision is now accepted and ready to land.Oct 18 2020, 10:18 PM
This revision was automatically updated to reflect the committed changes.