From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84984305675; Mon, 15 Jun 2026 10:43:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781520211; cv=none; b=XITPgj9OX4l/J/cnpeb0Pq/3aNE3xKwSJgxM9YP/OMrBE+tSUuS4RZcLv9aw3Dw8P0DotOkzDJUWCWWuMHGxiRrJHB4Kulp1aVzojTB9nYOTp4PfkOMnlK5k1YxmJacBxxRq9qUhAD/N5S0UrPKvuhSTfJEF/5nKDAh2nttjBpQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781520211; c=relaxed/simple; bh=sL2aqGyO8HmBGgKhktkiLHD9OWRqIGRsNaN3SoHiq64=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Bjm3nVldCx7bLypFP8Q+Kd58PmhAU5EALyhohlYDL34/gn+xc5c6NDKHX8CEUb7ClzYA7RpbIeqnoRq2GqSgAGWI5IuEF60oYR96JgKAtaVstJxWCNJfzNlCxTSczGju9VHGTMaDtBg3Dp4MmTbDUJZNrKuwxHT30MF1HfE+WLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1wZ4ey-0000JZ-00; Mon, 15 Jun 2026 12:35:16 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 1693EC06CF; Mon, 15 Jun 2026 12:28:50 +0200 (CEST) Date: Mon, 15 Jun 2026 12:28:50 +0200 From: Thomas Bogendoerfer To: Rosen Penev Cc: linux-mips@vger.kernel.org, open list Subject: Re: [PATCH] MIPS: ath79: reduce ARCH_DMA_MINALIGN Message-ID: References: <20260527222504.17381-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260527222504.17381-1-rosenp@gmail.com> On Wed, May 27, 2026 at 03:25:04PM -0700, Rosen Penev wrote: > Currently, ath79 SoCs use the default ARCH_DMA_MINALIGN value of 128 > bytes defined in mach-generic. This is excessive for these platforms > and leads to significant memory waste in kmalloc. > > Override ARCH_DMA_MINALIGN to use L1_CACHE_BYTES, which is 32 bytes for > ath79 SoCs. > > Signed-off-by: Rosen Penev > --- > arch/mips/include/asm/mach-ath79/kmalloc.h | 7 +++++++ > 1 file changed, 7 insertions(+) > create mode 100644 arch/mips/include/asm/mach-ath79/kmalloc.h > > diff --git a/arch/mips/include/asm/mach-ath79/kmalloc.h b/arch/mips/include/asm/mach-ath79/kmalloc.h > new file mode 100644 > index 000000000000..954f5d6e0dd0 > --- /dev/null > +++ b/arch/mips/include/asm/mach-ath79/kmalloc.h > @@ -0,0 +1,7 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef __ASM_MACH_ATH79_KMALLOC_H > +#define __ASM_MACH_ATH79_KMALLOC_H > + > +#define ARCH_DMA_MINALIGN L1_CACHE_BYTES > + > +#endif /* __ASM_MACH_ATH79_KMALLOC_H */ > -- > 2.54.0 applied to mips-next Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]