Re: [PATCH] MIPS: lib: prefetch ahead in csum_partial()

From: Maciej W. Rozycki

Date: Mon Oct 19 2026 - 14:43:46 EST


Hi Geert,

> > So oddly enough we're missing Tx49 support in the toolchain and we've
> > only managed to survive with CPU_HAS_PREFETCH enabled for CPU_TX49XX
> > because it also implies DMA_NONCOHERENT via MACH_TX49XX -> MACH_TXX9,
> > which in turn disables stuff in arch/mips/lib/memcpy.S.
> >
> > Quite straighforward to fix in binutils since docs are available (as in:
> > I have a copy), but do we have any users? Geert?
>
> Yes, I still boot test rbtx4927 regularly.

Thanks for confirming.

> I never touched binutils sources, though...

No worries, this seems straightforward: just PREF, MADD/U plus [D]MULT/U
extensions, and DERET/SDBBP debug stuff, much of which shared with the
Tx39 we already support, so just a matter of sticking another flag onto
the existing opcode table entries.

I'd estimate it as one day worth of engineering effort plus maybe another
one for machines to work through verification, for the binutils side and
the associated changes needed for GCC, i.e. a `-march=' option update plus
maybe enabling a couple of existing machine description patterns for the
Tx49 too. Would you be able to run GCC verification with your system?

So I guess I could squeeze this in after the oustanding Allegrex support
review, hopefully to start this week.

Maciej