Commit ccd9169
drivers: hv: dxgkrnl: Add support for locking a shared allocation by not the owner
WDDM has a restriction that an allocation of a shared resource can be
locked for CPU access only by the resource creator (the owner). This
restriction is removed for system memory only allocations. This change
adds support for this feature.
Signed-off-by: Iouri Tarassov <iourit@linux.microsoft.com>
[kms: forward port to 6.6 from 6.1. No code changes made.]
Signed-off-by: Kelsey Steele <kelseysteele@microsoft.com>1 parent 77d5e27 commit ccd9169
3 files changed
Lines changed: 31 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
563 | | - | |
| 562 | + | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
616 | 627 | | |
617 | 628 | | |
618 | 629 | | |
| |||
658 | 669 | | |
659 | 670 | | |
660 | 671 | | |
661 | | - | |
| 672 | + | |
662 | 673 | | |
663 | 674 | | |
664 | 675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| |||
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
412 | | - | |
413 | | - | |
414 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
415 | 417 | | |
416 | 418 | | |
417 | 419 | | |
| |||
429 | 431 | | |
430 | 432 | | |
431 | 433 | | |
432 | | - | |
433 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
| |||
5031 | 5035 | | |
5032 | 5036 | | |
5033 | 5037 | | |
| 5038 | + | |
5034 | 5039 | | |
5035 | 5040 | | |
5036 | 5041 | | |
| |||
5050 | 5055 | | |
5051 | 5056 | | |
5052 | 5057 | | |
5053 | | - | |
| 5058 | + | |
| 5059 | + | |
5054 | 5060 | | |
5055 | | - | |
5056 | | - | |
| 5061 | + | |
| 5062 | + | |
| 5063 | + | |
| 5064 | + | |
5057 | 5065 | | |
| 5066 | + | |
5058 | 5067 | | |
5059 | 5068 | | |
5060 | 5069 | | |
| |||
0 commit comments