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)
Feb 24 2024, 11:28 AM
Unknown Object (File)
Feb 11 2024, 9:10 AM
Unknown Object (File)
Feb 11 2024, 9:10 AM
Unknown Object (File)
Feb 9 2024, 4:56 PM
Unknown Object (File)
Dec 20 2023, 6:29 AM
Unknown Object (File)
Dec 12 2023, 9:42 PM
Unknown Object (File)
Nov 20 2023, 3:19 AM
Unknown Object (File)
Nov 20 2023, 3:19 AM

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34132
Build 31293: 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
1306

Might want to keep the comment and assert on default.

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

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

1317

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?

1306

It would catch a scribbler earlier.

1840

Indentation?

2147–2148

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.