-
Notifications
You must be signed in to change notification settings - Fork 14
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
Enable NFD rule for GPU resource driver Helm chart #68
Open
oxxenix
wants to merge
5
commits into
intel:main
Choose a base branch
from
oxxenix:gpu-nfd-rule
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
apiVersion: nfd.k8s-sigs.io/v1alpha1 | ||
kind: NodeFeatureRule | ||
metadata: | ||
name: intel-gpu-device-rule | ||
spec: | ||
rules: | ||
- name: "intel.gpu" | ||
labels: | ||
"intel.feature.node.kubernetes.io/gpu": "true" | ||
matchFeatures: | ||
- feature: pci.device | ||
matchExpressions: | ||
vendor: {op: In, value: ["8086"]} | ||
class: {op: In, value: ["0300", "0380"]} | ||
matchAny: | ||
- matchFeatures: | ||
- feature: kernel.loadedmodule | ||
matchExpressions: | ||
i915: {op: Exists} | ||
- matchFeatures: | ||
- feature: kernel.enabledmodule | ||
matchExpressions: | ||
i915: {op: Exists} | ||
--- | ||
apiVersion: nfd.k8s-sigs.io/v1alpha1 | ||
kind: NodeFeatureRule | ||
metadata: | ||
name: intel-gpu-platform-labeling | ||
spec: | ||
rules: | ||
# A_Series (Alchemist) | ||
- labels: | ||
gpu.intel.com/family: "A_Series" | ||
matchFeatures: | ||
- feature: pci.device | ||
matchExpressions: | ||
class: {op: In, value: ["0300"]} | ||
vendor: {op: In, value: ["8086"]} | ||
device: | ||
op: In | ||
value: | ||
- "56a6" | ||
- "56a5" | ||
- "56a1" | ||
- "56a0" | ||
- "5694" | ||
- "5693" | ||
- "5692" | ||
- "5691" | ||
- "5690" | ||
- "56b3" | ||
- "56b2" | ||
- "56a4" | ||
- "56a3" | ||
- "5697" | ||
- "5696" | ||
- "5695" | ||
- "56b1" | ||
- "56b0" | ||
name: intel.gpu.a.series | ||
# Max_Series | ||
- labels: | ||
gpu.intel.com/family: "Max_Series" | ||
matchFeatures: | ||
- feature: pci.device | ||
matchExpressions: | ||
class: {op: In, value: ["0380"]} | ||
vendor: {op: In, value: ["8086"]} | ||
device: | ||
op: In | ||
value: | ||
- "0bda" | ||
- "0bd5" | ||
- "0bd9" | ||
- "0bdb" | ||
- "0bd7" | ||
- "0bd6" | ||
- "0bd0" | ||
name: intel.gpu.max.series | ||
# Flex_Series | ||
- labels: | ||
gpu.intel.com/family: "Flex_Series" | ||
matchFeatures: | ||
- feature: pci.device | ||
matchExpressions: | ||
class: {op: In, value: ["0300", "0380"]} | ||
vendor: {op: In, value: ["8086"]} | ||
device: | ||
op: In | ||
value: | ||
- "0f00" | ||
- "0f01" | ||
- "0f02" | ||
name: intel.gpu.flex.series |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As there are still
gpu.intel.com/family
label rules forA_Series
&Max_Series
, for constency there should be alsoFlex_Series
one, or Flex GPUs should be included toA_Series
, as they're also "Alchemist" variants.Btw. nowadays there would need to be also
B_Series
, but that sounds really bad for the latest & greatest Intel client platform (so such labeling would be very unlikely to be OKed by marketing). I.e. I think the family name of that should rather be e.g.Battlemage
, andA_Series
(which nobody's going to recognize) should rather beAlchemist
...PS. PCI IDs for these are documented here: https://dgpu-docs.intel.com/devices/hardware-table.html#gpus-with-supported-drivers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored nfd rules a bit. See the latest commit