Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b21ce1 commit 60a4454Copy full SHA for 60a4454
drivers/gpu/drm/radeon/radeon_cs.c
@@ -342,10 +342,17 @@ int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data)
342
return -EINVAL;
343
344
/* we only support VM on some SI+ rings */
345
- if ((p->rdev->asic->ring[p->ring]->cs_parse == NULL) &&
346
- ((p->cs_flags & RADEON_CS_USE_VM) == 0)) {
347
- DRM_ERROR("Ring %d requires VM!\n", p->ring);
348
- return -EINVAL;
+ if ((p->cs_flags & RADEON_CS_USE_VM) == 0) {
+ if (p->rdev->asic->ring[p->ring]->cs_parse == NULL) {
+ DRM_ERROR("Ring %d requires VM!\n", p->ring);
+ return -EINVAL;
349
+ }
350
+ } else {
351
+ if (p->rdev->asic->ring[p->ring]->ib_parse == NULL) {
352
+ DRM_ERROR("VM not supported on ring %d!\n",
353
+ p->ring);
354
355
356
}
357
358
0 commit comments