drm/msm: Verify that MSM_SUBMIT_BO_FLAGS are set
authorJordan Crouse <jcrouse@codeaurora.org>
Tue, 20 Dec 2016 15:54:31 +0000 (08:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 01:59:45 +0000 (18:59 -0700)
commit7d33b41d34f57547e66c27e96075f8210a47b1b5
treeca470e79c3180184b18872702ba9bcedfbcad096
parent50e3950d77ba7d897c5509ca6192f1aaed426dd0
drm/msm: Verify that MSM_SUBMIT_BO_FLAGS are set

[ Upstream commit a6cb3b864b21b7345f824a4faa12b723c8aaf099 ]

For every submission buffer object one of MSM_SUBMIT_BO_WRITE
and MSM_SUBMIT_BO_READ must be set (and nothing else). If we
allowed zero then the buffer object would never get queued to
be unreferenced.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/msm/msm_gem_submit.c