File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -512,15 +512,16 @@ static int idxd_probe(struct idxd_device *idxd)
512
512
dev_dbg (dev , "IDXD reset complete\n" );
513
513
514
514
if (IS_ENABLED (CONFIG_INTEL_IDXD_SVM ) && sva ) {
515
- if (iommu_dev_enable_feature (dev , IOMMU_DEV_FEAT_SVA ))
515
+ if (iommu_dev_enable_feature (dev , IOMMU_DEV_FEAT_SVA )) {
516
516
dev_warn (dev , "Unable to turn on user SVA feature.\n" );
517
- else
517
+ } else {
518
518
set_bit (IDXD_FLAG_USER_PASID_ENABLED , & idxd -> flags );
519
519
520
- if (idxd_enable_system_pasid (idxd ))
521
- dev_warn (dev , "No in-kernel DMA with PASID.\n" );
522
- else
523
- set_bit (IDXD_FLAG_PASID_ENABLED , & idxd -> flags );
520
+ if (idxd_enable_system_pasid (idxd ))
521
+ dev_warn (dev , "No in-kernel DMA with PASID.\n" );
522
+ else
523
+ set_bit (IDXD_FLAG_PASID_ENABLED , & idxd -> flags );
524
+ }
524
525
} else if (!sva ) {
525
526
dev_warn (dev , "User forced SVA off via module param.\n" );
526
527
}
You can’t perform that action at this time.
0 commit comments