<div id="editor_version_1.35.4_3JKtNYEF" style="word-break:break-word;"><div data-zone-id="0" data-line-index="0" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">According to your(Villie) reply, the *info has been checked info earlier, and I have read the code of framebuffer_check() and related drm_get_format_info() which it calls, but unfortunatelly, I haven't seen  judgement(check) for it. What I only found related with check is the sentence below (in *drm_format_info() in drivers/gpu/drm/drm_fourcc.c):</div><div data-zone-id="0" data-line-index="1" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">```</div><div data-zone-id="0" data-line-index="2" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">info = __drm_format_info(format);</div><div data-zone-id="0" data-line-index="3" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">WARN_ON(!info);</div><div data-zone-id="0" data-line-index="4" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">``` </div><div data-zone-id="0" data-line-index="5" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">But to the best of my knowledge, "WARN_ON" only gives a dump_stack(), not  discontinue the program going on, so it will indeed go to the below line in framebuffer_check() and raise an error:</div><div data-zone-id="0" data-line-index="6" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">```</div><div data-zone-id="0" data-line-index="7" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">for (i = 0; i < info->num_planes; i++) {</div><div data-zone-id="0" data-line-index="8" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">```</div><div data-zone-id="0" data-line-index="9" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;">So maybe it will make  sense of my commited code.</div><div data-zone-id="0" data-line-index="10" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><br></div><div data-zone-id="0" data-line-index="11" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">Signed-off-by: Peng Hao <</span></span></span></span></span><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);"><a href="mailto:penghao@dingdao.com" target="_blank" rel="noopener noreferrer" style="transition: color 0.3s ease 0s; cursor: pointer; text-decoration: none; color: rgb(36, 91, 219);">penghao@dingdao.com</a></span></span></span></span></span><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">></span></span></span></span></span></div><div data-zone-id="0" data-line-index="12" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">---</span></span></span></span></span></div><div data-zone-id="0" data-line-index="13" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);"> drivers/gpu/drm/drm_framebuffer.c | 4 ++++</span></span></span></span></span></div><div data-zone-id="0" data-line-index="14" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);"> 1 file changed, 4 insertions(+)</span></span></span></span></span></div><div data-zone-id="0" data-line-index="15" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><br></div><div data-zone-id="0" data-line-index="16" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c</span></span></span></span></span></div><div data-zone-id="0" data-line-index="17" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">index aff3746dedfb..be7dd1998c04 100644</span></span></span></span></span></div><div data-zone-id="0" data-line-index="18" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">--- a/drivers/gpu/drm/drm_framebuffer.c</span></span></span></span></span></div><div data-zone-id="0" data-line-index="19" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">+++ b/drivers/gpu/drm/drm_framebuffer.c</span></span></span></span></span></div><div data-zone-id="0" data-line-index="20" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">@@ -194,6 +194,10 @@ static int framebuffer_check(struct drm_device *dev,</span></span></span></span></span></div><div data-zone-id="0" data-line-index="21" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);"><span> <wbr></span></span></span></span></span></span></div><div data-zone-id="0" data-line-index="22" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">         /* now let the driver pick its own format info */</span></span></span></span></span></div><div data-zone-id="0" data-line-index="23" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">         info = drm_get_format_info(dev, r);</span></span></span></span></span></div><div data-zone-id="0" data-line-index="24" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">+        if (!info) {</span></span></span></span></span></div><div data-zone-id="0" data-line-index="25" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">+                drm_dbg_kms(dev, "no matched format info\n");</span></span></span></span></span></div><div data-zone-id="0" data-line-index="26" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">+                return -EFAULT;</span></span></span></span></span></div><div data-zone-id="0" data-line-index="27" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">+        }</span></span></span></span></span></div><div data-zone-id="0" data-line-index="28" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);"><span> <wbr></span></span></span></span></span></span></div><div data-zone-id="0" data-line-index="29" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">         for (i = 0; i < info->num_planes; i++) {</span></span></span></span></span></div><div data-zone-id="0" data-line-index="30" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">                 unsigned int width = fb_plane_width(r->width, info, i);</span></span></span></span></span></div><div data-zone-id="0" data-line-index="31" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">-- </span></span></span></span></span></div><div data-zone-id="0" data-line-index="32" data-line="true" style="font-size: 14px; margin-top: 4px; margin-bottom: 4px; line-height: 1.6;"><span style="font-weight: 400;"><span style="font-size: 14px;"><span style="font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Tahoma, "PingFang SC", Arial, sans-serif;"><span style="color: rgb(31, 35, 41);"><span style="background-color: rgb(255, 255, 255);">2.37.1</span></span></span></span></span></div></div>