Skip to content

Commit ec2e075

Browse files
authored
Merge pull request #2199 from tkatila/ptl-support
NPU: add device ids for PTL etc.
2 parents 2a9b924 + 03a0a5b commit ec2e075

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

cmd/npu_plugin/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The following CPU families are currently detected by the plugin:
2020
* Core Ultra Series 1 (Meteor Lake)
2121
* Core Ultra Series 2 (Arrow Lake)
2222
* Core Ultra 200V Series (Lunar Lake)
23+
* Core Ultra Series 3 (Panther Lake)
2324

2425
Intel NPU plugin registers a resource to the Kubernetes cluster:
2526
| Resource | Description |

cmd/npu_plugin/npu_plugin.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ var npuIDs = []string{
5151
"0x643e", // Core Ultra 200V Series
5252
"0xad1d", // Core Ultra Series 2
5353
"0x7d1d", // Core Ultra Series 2 (H)
54+
"0xb03e", // Core Ultra Series 3
55+
"0xfd3e", // WCL https://github.com/torvalds/linux/blob/f0b9d8eb98dfee8d00419aa07543bdc2c1a44fb1/drivers/accel/ivpu/ivpu_drv.h#L29
56+
"0xd71d", // NVL https://github.com/torvalds/linux/blob/f0b9d8eb98dfee8d00419aa07543bdc2c1a44fb1/drivers/accel/ivpu/ivpu_drv.h#L30
5457
}
5558

5659
type cliOptions struct {

cmd/npu_plugin/npu_plugin_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,20 @@ func TestScan(t *testing.T) {
174174
},
175175
expectedDevs: 2,
176176
},
177+
{
178+
name: "PTL device",
179+
sysfsdirs: []string{
180+
"accel0/device/drm/accel0", "accel0/device/drm/accelD0",
181+
},
182+
sysfsfiles: map[string][]byte{
183+
"accel0/device/vendor": []byte("0x8086"),
184+
"accel0/device/device": []byte("0xb03e"),
185+
},
186+
devfsdirs: []string{
187+
"accel0",
188+
},
189+
expectedDevs: 1,
190+
},
177191
}
178192

179193
for _, tc := range tcases {

deployments/nfd/overlays/node-feature-rules/node-feature-rules.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ spec:
137137
class: {op: In, value: ["1200"]}
138138
device: {
139139
op: In,
140-
value: ["7e4c","643e","ad1d","7d1d"]
140+
value: ["7e4c","643e","ad1d","7d1d","b03e", "fd3e", "d71d"]
141141
}
142142
matchAny:
143143
- matchFeatures:

0 commit comments

Comments
 (0)