Repository navigation
refpolicy-targeted: allow qcom_nhx to access the kgsl GPU node - #3551
Dmitry Baryshkov (lumag) merged 1 commit into
Conversation
6912d22 to
5b0e9e6
Compare
This comment has been minimized.
This comment has been minimized.
Test Results 119 files 824 suites 8h 35m 13s ⏱️ Results for commit 1970fbb. ♻️ This comment has been updated with latest results. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dmitry Baryshkov (lumag)
left a comment
There was a problem hiding this comment.
Please read contributing guidelines and write a sensible commit message. There is no need to repeat the patch contents in prose.
5b0e9e6 to
a277f4a
Compare
Updated the commit message to explain the problem: Shikra camera GPU resize uses Adreno OpenCL, which needs /dev/kgsl-3d0, and SELinux denied it. |
Dmitry Baryshkov (lumag)
left a comment
There was a problem hiding this comment.
Will it work if OpenCL is provided by Mesa rather than by the Adreno libs?
No. This is specific to Adreno OpenCL, which needs /dev/kgsl-3d0. Mesa isn't supported by the KGSL driver. |
This comment has been minimized.
This comment has been minimized.
|
Dmitry Baryshkov (@lumag) could you please review this PR |
a277f4a to
9022b29
Compare
Does Camera on Shikra require Adreno OpenCL or will CamX work with Mesa? |
On Shikra, the camera software resizes frames on the GPU, which is the first GPU-based solution in QLI. It relies on Qualcomm's Adreno OpenCL implementation, which needs /dev/kgsl-3d0. The nativehaltest binary runs in qcom_nhx_t, which is denied access to that node, so OpenCL initialisation fails. Allow qcom_nhx_t to access the GPU device node. Also add the rules needed to silence the non-fatal denials seen when qti-cam-server.service is stopped and started with systemctl. Express every rule through refpolicy interfaces instead of raw allow statements against types owned by other modules. Signed-off-by: Rohit Biradar <[email protected]>
9022b29 to
1970fbb
Compare
Still unanswered. If CamX can work with Mesa OpenCL implementation, then we also need to allow access to DRI devices |
At this point of time, CamX can't work with Mesa OpenCL implementation, But works only with Adreno based GPU Solution. |
|
Ricardo Salveti (@ricardosalveti) could you please review this PR. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6c0c59f
into
qualcomm-linux:master
On Shikra, the camera software resizes frames on the GPU, which is the
first GPU-based solution in QLI. It relies on Qualcomm's Adreno OpenCL
implementation, which needs /dev/kgsl-3d0. The nativehaltest binary
runs in qcom_nhx_t, which is denied access to that node, so OpenCL
initialisation fails.
Allow qcom_nhx_t to access the GPU device node. Also add the rules
needed to silence the non-fatal denials seen when qti-cam-server.service
is stopped and started with systemctl.
Express every rule through refpolicy interfaces instead of raw allow
statements against types owned by other modules.