All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@nabladev.com>
To: Bradley Morgan <bradley.morgan@linux.dev>,
	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: Tue, 1 Dec 2026 05:16:39 +0100	[thread overview]
Message-ID: <96c0cac9-e248-7b64-e653-de22dced5ffa@nabladev.com> (raw)
In-Reply-To: <FC851B46-F2DF-45D1-A28A-BF25E3891874@linux.dev>

Hello Bradley,

On 30.11.26 17:15, Bradley Morgan wrote:
> 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

you mean:

"[PATCH] powerpc: mpc8xx: remove unused I2C DPRAM definitions"

looks fine, just added my Reviewed-by

bye,
Heiko
-- 
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: office@nabladev.com
Geschäftsführer : Stefano Babic

  reply	other threads:[~2026-12-01  4: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
2026-12-01  4:16           ` Heiko Schocher [this message]
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=96c0cac9-e248-7b64-e653-de22dced5ffa@nabladev.com \
    --to=hs@nabladev.com \
    --cc=bradley.morgan@linux.dev \
    --cc=chleroy@kernel.org \
    --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.