From: Bradley Morgan <bradley.morgan@linux.dev>
To: Heiko Schocher <hs@nabladev.com>, Jaeyeong Lee <lee@jaeyeong.cc>,
Christophe Leroy <chleroy@kernel.org>
Cc: u-boot@lists.u-boot-project.org, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v2] serial: mpc8xx: cap SMC receive buffer length
Date: Mon, 30 Nov 2026 16:15:59 +0000 [thread overview]
Message-ID: <FC851B46-F2DF-45D1-A28A-BF25E3891874@linux.dev> (raw)
In-Reply-To: <1c11e94f-7437-07b6-3ffb-d73aa6c4aa78@nabladev.com>
On 30 November 2026 05:19:46 GMT, Heiko Schocher <hs@nabladev.com> wrote:
>Hello Jaeyeong,
>
>On 28.11.26 00:22, Jaeyeong Lee wrote:
>> The MPC8xx serial object starts at DPRAM offset 0x800 while the SPI
>> receive descriptor starts at 0x840. The serial receive buffer begins
>> after two buffer descriptors and an index, and is followed by the
>> transmit byte.
>>
>> Cap SYS_SMC_RXBUFLEN at 32 for all configurations. This keeps the
>> complete serial object below the SPI descriptor area without coupling
>> the serial configuration to the SPI driver. Document the constraint
>> next to the DPRAM layout.
>>
>> Link:
>https://lore.kernel.org/u-boot/179024275173.70674.16356876476594066413@proton.me/
>> Signed-off-by: Jaeyeong Lee <lee@jaeyeong.cc>
>> ---
>> Changes in v2:
>> - Cap SYS_SMC_RXBUFLEN at 32 regardless of whether SPI is enabled.
>> - Drop the static assertion and document the limit near CPM_SPI_BASE.
>>
>> arch/powerpc/include/asm/cpm_8xx.h | 1 +
>> drivers/serial/Kconfig | 1 +
>> 2 files changed, 2 insertions(+)
>
>Thanks!
>
>Reviewed-by: Heiko Schocher <hs@nabladev.com>
thanks for reviewing you lot, mind reviewing Jaeyeongs second patch? I
suggested
it being a series so it'll be easier for me to apply
>
>bye,
>Heiko
>
>
--- Thanks!
next prev parent reply other threads:[~2026-11-30 16:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <179024275173.70674.16356876476594066413@proton.me>
2026-09-25 4:30 ` [SECURITY] MPC8xx serial RX buffer overlaps SPI descriptors in DPRAM Heiko Schocher
2026-11-27 15:08 ` [PATCH] serial: mpc8xx: prevent DPRAM overlap with SPI descriptors Jaeyeong Lee
2026-11-27 16:42 ` Christophe Leroy (CS GROUP)
2026-11-27 17:09 ` Bradley Morgan
2026-11-28 8:00 ` Christophe Leroy (CS GROUP)
2026-11-27 23:22 ` [PATCH v2] serial: mpc8xx: cap SMC receive buffer length Jaeyeong Lee
2026-11-28 7:58 ` Christophe Leroy (CS GROUP)
2026-11-30 5:19 ` Heiko Schocher
2026-11-30 16:15 ` Bradley Morgan [this message]
2026-12-01 4:16 ` Heiko Schocher
2026-11-30 19:32 ` Bradley Morgan
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=FC851B46-F2DF-45D1-A28A-BF25E3891874@linux.dev \
--to=bradley.morgan@linux.dev \
--cc=chleroy@kernel.org \
--cc=hs@nabladev.com \
--cc=lee@jaeyeong.cc \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.