Repository navigation
Commit babc250
udlfb: introduce a rendering mutex
Rendering calls may be done simultaneously from the workqueue,
dlfb_ops_write, dlfb_ops_ioctl, dlfb_ops_set_par and dlfb_dpy_deferred_io.
The code is robust enough so that it won't crash on concurrent rendering.
However, concurrent rendering may cause display corruption if the same
pixel is simultaneously being rendered. In order to avoid this corruption,
this patch adds a mutex around the rendering calls.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: Bernie Thompson <bernie@plugable.com>
Cc: Ladislav Michl <ladis@linux-mips.org>
Cc: <stable@vger.kernel.org>
[b.zolnierkie: replace "dlfb:" with "uldfb:" in the patch summary]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>1 parent 6b11f9d commit babc250
2 files changed
Lines changed: 31 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
| 609 | + | |
| 610 | + | |
609 | 611 | | |
610 | 612 | | |
611 | 613 | | |
612 | 614 | | |
613 | 615 | | |
614 | 616 | | |
615 | | - | |
616 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
617 | 621 | | |
618 | | - | |
619 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
620 | 626 | | |
621 | 627 | | |
622 | | - | |
623 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
624 | 632 | | |
625 | 633 | | |
626 | 634 | | |
| |||
654 | 662 | | |
655 | 663 | | |
656 | 664 | | |
657 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
658 | 670 | | |
659 | 671 | | |
660 | 672 | | |
| |||
782 | 794 | | |
783 | 795 | | |
784 | 796 | | |
| 797 | + | |
| 798 | + | |
785 | 799 | | |
786 | | - | |
| 800 | + | |
787 | 801 | | |
788 | 802 | | |
789 | | - | |
| 803 | + | |
790 | 804 | | |
791 | 805 | | |
792 | 806 | | |
793 | 807 | | |
794 | 808 | | |
795 | | - | |
| 809 | + | |
796 | 810 | | |
797 | 811 | | |
798 | 812 | | |
| |||
825 | 839 | | |
826 | 840 | | |
827 | 841 | | |
| 842 | + | |
| 843 | + | |
828 | 844 | | |
829 | 845 | | |
830 | 846 | | |
| |||
986 | 1002 | | |
987 | 1003 | | |
988 | 1004 | | |
| 1005 | + | |
| 1006 | + | |
989 | 1007 | | |
990 | 1008 | | |
991 | 1009 | | |
| |||
1682 | 1700 | | |
1683 | 1701 | | |
1684 | 1702 | | |
| 1703 | + | |
1685 | 1704 | | |
1686 | 1705 | | |
1687 | 1706 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments