Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/gpu/drm/smi is broken in 4.18.0 #17

Open
jiangtao9999 opened this issue Aug 20, 2018 · 0 comments
Open

drivers/gpu/drm/smi is broken in 4.18.0 #17

jiangtao9999 opened this issue Aug 20, 2018 · 0 comments

Comments

@jiangtao9999
Copy link

jiangtao9999 commented Aug 20, 2018

in drivers/gpu/drm/smi/smi_mode.c

Change:
#if LINUX_VERSION_CODE > KERNEL_VERSION(4,18,0)
To :
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,18,0)

drivers/gpu/drm/smi/smi_plane.c :

--- drivers/gpu/drm/smi/smi_plane.c.orig        2018-08-20 16:31:50.919918731 +0800
+++ drivers/gpu/drm/smi/smi_plane.c     2018-08-20 16:33:12.324298391 +0800
@@ -339,7 +339,7 @@
                        crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h, ctx);
        else
                return drm_plane_helper_update(plane, crtc, fb,
-                       crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h);
+                       crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h, ctx);
 #else
        if (plane->type == DRM_PLANE_TYPE_PRIMARY)
                return drm_primary_helper_update(plane, crtc, fb,
@@ -369,7 +369,7 @@
        if (plane->type == DRM_PLANE_TYPE_PRIMARY)
                return drm_primary_helper_disable(plane, ctx);
        else
-               return drm_plane_helper_disable(plane);
+               return drm_plane_helper_disable(plane, ctx);
 #else
        if (plane->type == DRM_PLANE_TYPE_PRIMARY)
                return drm_primary_helper_disable(plane, ctx);

And .....
What is smi ??????

@jiangtao9999 jiangtao9999 changed the title drivers/gpu/drm/smi is broken . drivers/gpu/drm/smi is broken in 4.18.0 Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant