From nobody Mon Sep 28 17:48:46 2026 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D15BA299959 for ; Thu, 20 Aug 2026 02:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787192037; cv=none; b=ghtw11GOUda+2bIrnolbME7NOd96iZT8M9Qc817rAYhSRlE9g8aWm+dDlIv9fSL5jPXGXoDNIjA7Z/KrWHJ1os/QPl26sOjtofyMtKxJg3CcPVsAw6Qz/X79N8Cf8gn57/bNxKl6mSLlmqJHT5JKPhviY7LT2i0BWc4OBhBhRxM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787192037; c=relaxed/simple; bh=3hbOfzMPraVxmbQ8VcNeNfDL2C8QW2wx3gkJMNvCvWw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=CWtY2+MaXbwNPf+okIcEw79tE0fGm56X3iOjcIukeosHgUwTUTAd3UuL97vR0Q0ZiN8AF3bUld6jiUNbNLzxh1VIcfuDDv0DJaxqGiIcSOrgZ1fGg8WpF7AfkzCkU5LRCGIXFBuDphO8JaA0YXbEr6hBvQm2sUEscOuWqULE9H8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: c816b9149c3c11f19a56ed5b684f684d-20260820 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.19,REQID:4d03c018-63e2-4117-bf7d-13ad3a5e2e8a,IP:0,U RL:0,TC:0,Content:0,EDM:-20,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-20 X-CID-META: VersionHash:7db8b62,CLOUDID:d767d709704772514f98cf92c1c0355a,BulkI D:nil,BulkQuantity:0,SF:102|123|850|865|898,TC:nil,Content:0|15|50,EDM:1|- 100,IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0 ,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: c816b9149c3c11f19a56ed5b684f684d-20260820 X-User: yaolu@kylinos.cn Received: from localhost.localdomain [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 479494335; Thu, 20 Aug 2026 10:13:49 +0800 From: yaolu@kylinos.cn To: jfalempe@redhat.com, javierm@redhat.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de Cc: john.ogness@linutronix.de, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Lu Yao Subject: [PATCH] drm/log: Fix damaged rectangle height in drm_log_draw_line() Date: Thu, 20 Aug 2026 10:13:43 +0800 Message-Id: <20260820021343.46033-1-yaolu@kylinos.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Lu Yao DRM_RECT_INIT() expects x, y, width and height, should use 'scanout->scaled_font_h' here. rather than '(scanout->line + 1) * scanout->scaled_font_h'. Fixes: f7b42442c4ac ("drm/log: Introduce a new boot logger to draw the kmsg= on the screen") Signed-off-by: Lu Yao --- drivers/gpu/drm/clients/drm_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/clients/drm_log.c b/drivers/gpu/drm/clients/dr= m_log.c index 467cdce57dd3..da413ec1c7e1 100644 --- a/drivers/gpu/drm/clients/drm_log.c +++ b/drivers/gpu/drm/clients/drm_log.c @@ -113,7 +113,7 @@ static void drm_log_draw_line(struct drm_log_scanout *s= canout, const char *s, const u8 *src; u32 px_width =3D fb->format->cpp[0]; struct drm_rect r =3D DRM_RECT_INIT(0, scanout->line * scanout->scaled_fo= nt_h, - fb->width, (scanout->line + 1) * scanout->scaled_font_h); + fb->width, scanout->scaled_font_h); u32 i; =20 if (drm_client_buffer_vmap_local(scanout->buffer, &map)) --=20 2.25.1