Commit bf51e2a
accel/amdxdna: Remove buffer size check when creating command BO
[ Upstream commit 08fe1b5 ]
Large command buffers may be used, and they do not always need to be
mapped or accessed by the driver. Performing a size check at command BO
creation time unnecessarily rejects valid use cases.
Remove the buffer size check from command BO creation, and defer vmap
and size validation to the paths where the driver actually needs to map
and access the command buffer.
Fixes: ac49797 ("accel/amdxdna: Add GEM buffer object management")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260206060237.4050492-1-lizhi.hou@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 825f218 commit bf51e2a
1 file changed
+19
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
746 | 744 | | |
747 | 745 | | |
748 | 746 | | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | 747 | | |
756 | 748 | | |
757 | 749 | | |
| |||
765 | 757 | | |
766 | 758 | | |
767 | 759 | | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | 760 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | 761 | | |
780 | 762 | | |
781 | 763 | | |
| |||
872 | 854 | | |
873 | 855 | | |
874 | 856 | | |
| 857 | + | |
875 | 858 | | |
876 | 859 | | |
877 | 860 | | |
| |||
880 | 863 | | |
881 | 864 | | |
882 | 865 | | |
883 | | - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
884 | 870 | | |
885 | 871 | | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
| |||
0 commit comments