Loading drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +4 −2 Original line number Diff line number Diff line Loading @@ -2071,6 +2071,7 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, u32 tmp, viewport_w, viewport_h; int r; bool bypass_lut = false; const char *format_name; /* no fb bound */ if (!atomic && !crtc->primary->fb) { Loading Loading @@ -2182,8 +2183,9 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, bypass_lut = true; break; default: DRM_ERROR("Unsupported screen format %s\n", drm_get_format_name(target_fb->pixel_format)); format_name = drm_get_format_name(target_fb->pixel_format); DRM_ERROR("Unsupported screen format %s\n", format_name); kfree(format_name); return -EINVAL; } Loading drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +4 −2 Original line number Diff line number Diff line Loading @@ -2046,6 +2046,7 @@ static int dce_v11_0_crtc_do_set_base(struct drm_crtc *crtc, u32 tmp, viewport_w, viewport_h; int r; bool bypass_lut = false; const char *format_name; /* no fb bound */ if (!atomic && !crtc->primary->fb) { Loading Loading @@ -2157,8 +2158,9 @@ static int dce_v11_0_crtc_do_set_base(struct drm_crtc *crtc, bypass_lut = true; break; default: DRM_ERROR("Unsupported screen format %s\n", drm_get_format_name(target_fb->pixel_format)); format_name = drm_get_format_name(target_fb->pixel_format); DRM_ERROR("Unsupported screen format %s\n", format_name); kfree(format_name); return -EINVAL; } Loading drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +4 −2 Original line number Diff line number Diff line Loading @@ -1952,6 +1952,7 @@ static int dce_v8_0_crtc_do_set_base(struct drm_crtc *crtc, u32 viewport_w, viewport_h; int r; bool bypass_lut = false; const char *format_name; /* no fb bound */ if (!atomic && !crtc->primary->fb) { Loading Loading @@ -2056,8 +2057,9 @@ static int dce_v8_0_crtc_do_set_base(struct drm_crtc *crtc, bypass_lut = true; break; default: DRM_ERROR("Unsupported screen format %s\n", drm_get_format_name(target_fb->pixel_format)); format_name = drm_get_format_name(target_fb->pixel_format); DRM_ERROR("Unsupported screen format %s\n", format_name); kfree(format_name); return -EINVAL; } Loading drivers/gpu/drm/drm_atomic.c +3 −2 Original line number Diff line number Diff line Loading @@ -837,8 +837,9 @@ static int drm_atomic_plane_check(struct drm_plane *plane, /* Check whether this plane supports the fb pixel format. */ ret = drm_plane_check_pixel_format(plane, state->fb->pixel_format); if (ret) { DRM_DEBUG_ATOMIC("Invalid pixel format %s\n", drm_get_format_name(state->fb->pixel_format)); const char *format_name = drm_get_format_name(state->fb->pixel_format); DRM_DEBUG_ATOMIC("Invalid pixel format %s\n", format_name); kfree(format_name); return ret; } Loading drivers/gpu/drm/drm_crtc.c +13 −8 Original line number Diff line number Diff line Loading @@ -2592,8 +2592,9 @@ static int __setplane_internal(struct drm_plane *plane, /* Check whether this plane supports the fb pixel format. */ ret = drm_plane_check_pixel_format(plane, fb->pixel_format); if (ret) { DRM_DEBUG_KMS("Invalid pixel format %s\n", drm_get_format_name(fb->pixel_format)); const char *format_name = drm_get_format_name(fb->pixel_format); DRM_DEBUG_KMS("Invalid pixel format %s\n", format_name); kfree(format_name); goto out; } Loading Loading @@ -2902,8 +2903,9 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data, ret = drm_plane_check_pixel_format(crtc->primary, fb->pixel_format); if (ret) { DRM_DEBUG_KMS("Invalid pixel format %s\n", drm_get_format_name(fb->pixel_format)); const char *format_name = drm_get_format_name(fb->pixel_format); DRM_DEBUG_KMS("Invalid pixel format %s\n", format_name); kfree(format_name); goto out; } } Loading Loading @@ -3279,6 +3281,7 @@ int drm_mode_addfb(struct drm_device *dev, static int format_check(const struct drm_mode_fb_cmd2 *r) { uint32_t format = r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN; const char *format_name; switch (format) { case DRM_FORMAT_C8: Loading Loading @@ -3343,8 +3346,9 @@ static int format_check(const struct drm_mode_fb_cmd2 *r) case DRM_FORMAT_YVU444: return 0; default: DRM_DEBUG_KMS("invalid pixel format %s\n", drm_get_format_name(r->pixel_format)); format_name = drm_get_format_name(r->pixel_format); DRM_DEBUG_KMS("invalid pixel format %s\n", format_name); kfree(format_name); return -EINVAL; } } Loading @@ -3355,8 +3359,9 @@ static int framebuffer_check(const struct drm_mode_fb_cmd2 *r) ret = format_check(r); if (ret) { DRM_DEBUG_KMS("bad framebuffer format %s\n", drm_get_format_name(r->pixel_format)); const char *format_name = drm_get_format_name(r->pixel_format); DRM_DEBUG_KMS("bad framebuffer format %s\n", format_name); kfree(format_name); return ret; } Loading Loading
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +4 −2 Original line number Diff line number Diff line Loading @@ -2071,6 +2071,7 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, u32 tmp, viewport_w, viewport_h; int r; bool bypass_lut = false; const char *format_name; /* no fb bound */ if (!atomic && !crtc->primary->fb) { Loading Loading @@ -2182,8 +2183,9 @@ static int dce_v10_0_crtc_do_set_base(struct drm_crtc *crtc, bypass_lut = true; break; default: DRM_ERROR("Unsupported screen format %s\n", drm_get_format_name(target_fb->pixel_format)); format_name = drm_get_format_name(target_fb->pixel_format); DRM_ERROR("Unsupported screen format %s\n", format_name); kfree(format_name); return -EINVAL; } Loading
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +4 −2 Original line number Diff line number Diff line Loading @@ -2046,6 +2046,7 @@ static int dce_v11_0_crtc_do_set_base(struct drm_crtc *crtc, u32 tmp, viewport_w, viewport_h; int r; bool bypass_lut = false; const char *format_name; /* no fb bound */ if (!atomic && !crtc->primary->fb) { Loading Loading @@ -2157,8 +2158,9 @@ static int dce_v11_0_crtc_do_set_base(struct drm_crtc *crtc, bypass_lut = true; break; default: DRM_ERROR("Unsupported screen format %s\n", drm_get_format_name(target_fb->pixel_format)); format_name = drm_get_format_name(target_fb->pixel_format); DRM_ERROR("Unsupported screen format %s\n", format_name); kfree(format_name); return -EINVAL; } Loading
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +4 −2 Original line number Diff line number Diff line Loading @@ -1952,6 +1952,7 @@ static int dce_v8_0_crtc_do_set_base(struct drm_crtc *crtc, u32 viewport_w, viewport_h; int r; bool bypass_lut = false; const char *format_name; /* no fb bound */ if (!atomic && !crtc->primary->fb) { Loading Loading @@ -2056,8 +2057,9 @@ static int dce_v8_0_crtc_do_set_base(struct drm_crtc *crtc, bypass_lut = true; break; default: DRM_ERROR("Unsupported screen format %s\n", drm_get_format_name(target_fb->pixel_format)); format_name = drm_get_format_name(target_fb->pixel_format); DRM_ERROR("Unsupported screen format %s\n", format_name); kfree(format_name); return -EINVAL; } Loading
drivers/gpu/drm/drm_atomic.c +3 −2 Original line number Diff line number Diff line Loading @@ -837,8 +837,9 @@ static int drm_atomic_plane_check(struct drm_plane *plane, /* Check whether this plane supports the fb pixel format. */ ret = drm_plane_check_pixel_format(plane, state->fb->pixel_format); if (ret) { DRM_DEBUG_ATOMIC("Invalid pixel format %s\n", drm_get_format_name(state->fb->pixel_format)); const char *format_name = drm_get_format_name(state->fb->pixel_format); DRM_DEBUG_ATOMIC("Invalid pixel format %s\n", format_name); kfree(format_name); return ret; } Loading
drivers/gpu/drm/drm_crtc.c +13 −8 Original line number Diff line number Diff line Loading @@ -2592,8 +2592,9 @@ static int __setplane_internal(struct drm_plane *plane, /* Check whether this plane supports the fb pixel format. */ ret = drm_plane_check_pixel_format(plane, fb->pixel_format); if (ret) { DRM_DEBUG_KMS("Invalid pixel format %s\n", drm_get_format_name(fb->pixel_format)); const char *format_name = drm_get_format_name(fb->pixel_format); DRM_DEBUG_KMS("Invalid pixel format %s\n", format_name); kfree(format_name); goto out; } Loading Loading @@ -2902,8 +2903,9 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data, ret = drm_plane_check_pixel_format(crtc->primary, fb->pixel_format); if (ret) { DRM_DEBUG_KMS("Invalid pixel format %s\n", drm_get_format_name(fb->pixel_format)); const char *format_name = drm_get_format_name(fb->pixel_format); DRM_DEBUG_KMS("Invalid pixel format %s\n", format_name); kfree(format_name); goto out; } } Loading Loading @@ -3279,6 +3281,7 @@ int drm_mode_addfb(struct drm_device *dev, static int format_check(const struct drm_mode_fb_cmd2 *r) { uint32_t format = r->pixel_format & ~DRM_FORMAT_BIG_ENDIAN; const char *format_name; switch (format) { case DRM_FORMAT_C8: Loading Loading @@ -3343,8 +3346,9 @@ static int format_check(const struct drm_mode_fb_cmd2 *r) case DRM_FORMAT_YVU444: return 0; default: DRM_DEBUG_KMS("invalid pixel format %s\n", drm_get_format_name(r->pixel_format)); format_name = drm_get_format_name(r->pixel_format); DRM_DEBUG_KMS("invalid pixel format %s\n", format_name); kfree(format_name); return -EINVAL; } } Loading @@ -3355,8 +3359,9 @@ static int framebuffer_check(const struct drm_mode_fb_cmd2 *r) ret = format_check(r); if (ret) { DRM_DEBUG_KMS("bad framebuffer format %s\n", drm_get_format_name(r->pixel_format)); const char *format_name = drm_get_format_name(r->pixel_format); DRM_DEBUG_KMS("bad framebuffer format %s\n", format_name); kfree(format_name); return ret; } Loading