From: Jocelyn Falempe <jfalempe@redhat.com>
To: peder.bergan@gmail.com, Javier Martinez Canillas <javierm@redhat.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] drm/panic: Speed up QR code encoding
Date: Thu, 3 Dec 2026 15:50:36 +0100 [thread overview]
Message-ID: <7b0e7343-67a6-49c6-9300-b1cc33851b83@redhat.com> (raw)
In-Reply-To: <20261126-perf-drm-panic-qr-v1-0-51856937dc4d@gmail.com>
On 11/26/26 17:53, Peder Bergan via B4 Relay wrote:
> The DRM panic helper encodes kernel log data into a QR code. Speed up
> encoding by searching alignment centers per axis, applying fixed mask 0
> during data placement, and simplifying exponent reduction in
> Reed-Solomon error correction.
>
> I benchmarked the extracted encoder with Rust 1.100.0 on an x86-64
> Ryzen 7 9800X3D. Across 12 paired warm runs per workload, median
> version-40 encoding time fell from 1.778 ms to 0.277 ms with a
> 2,900-byte raw payload and from 1.782 ms to 0.284 ms with a URL and
> a 2,800-byte payload encoded in numeric mode. Both workloads produced
> identical QR images. The timings cover encoding only. Log collection,
> compression and framebuffer drawing were outside the benchmark.
>
> In the differential checks, each patch preserved the returned width
> and all output bytes across 6,002 raw and URL test inputs. The mask
> traversal check covered all 40 QR versions, including the remainder
> modules.
>
> I also ran the drm_panic_helper KUnit suite in x86-64 QEMU/KVM with
> the QR URL empty and with a URL configured. Both runs passed all 45
> checks, including 15 QR cases.
I pushed it to drm-misc-next.
Thanks for your contribution.
Best regards,
--
Jocelyn>
> ---
> OpenAI Codex assisted with coding and testing.
>
> ---
> Peder Bergan (3):
> drm/panic: Check QR alignment centers one axis at a time
> drm/panic: Apply the QR mask while drawing data modules
> drm/panic: Simplify QR error correction exponent reduction
>
> drivers/gpu/drm/drm_panic_helper_qr.rs | 59 +++++++++++++---------------------
> 1 file changed, 23 insertions(+), 36 deletions(-)
> ---
> base-commit: 5ce32a0c94a827ff44ee60898c28060714dcff75
> change-id: 20261126-perf-drm-panic-qr-58b69ed0f455
>
> Best regards,
> --
> Peder Bergan <peder.bergan@gmail.com>
prev parent reply other threads:[~2026-12-03 14:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 16:53 Peder Bergan via B4 Relay
2026-11-26 16:53 ` [PATCH 1/3] drm/panic: Check QR alignment centers one axis at a time Peder Bergan via B4 Relay
2026-11-27 12:41 ` Jocelyn Falempe
2026-11-26 16:53 ` [PATCH 2/3] drm/panic: Apply the QR mask while drawing data modules Peder Bergan via B4 Relay
2026-11-27 12:42 ` Jocelyn Falempe
2026-11-26 16:53 ` [PATCH 3/3] drm/panic: Simplify QR error correction exponent reduction Peder Bergan via B4 Relay
2026-11-27 12:42 ` Jocelyn Falempe
2026-12-03 14:50 ` Jocelyn Falempe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b0e7343-67a6-49c6-9300-b1cc33851b83@redhat.com \
--to=jfalempe@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=javierm@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=peder.bergan@gmail.com \
--cc=rust-for-linux@vger.kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®