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 F07273FF88A; Tue, 26 May 2026 14:51:12 +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=1779807074; cv=none; b=d8PGEdPvKIETUAsltmzQPkZV+xecA42lNkMe4ydXvL2vV4HHgMiX58Sp6dSJfqWZsUhGsmjv6G2xtyNHlzs7DAB1NuJQ9A8TCf8SnhH83bohbnK/Jt2BtPBT1DlcQ1fJA1UnyRQ1c9PfG52kphJhVF1D7utR+Nxlqn9UhsR3eWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779807074; c=relaxed/simple; bh=NMdeeyE/bKkXz2gAan02F24Low4Q5zyVPiysCb61mUs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=khmdUH2lzWip4++bvn38gnnNac00GACc7m9HGQKAeqPoolreY+mstPTnTGKzBz0pcouDW1YzmzFO7m7VAYrN3bfAQzqL3fTwHb5uOd5mr5v2yaUAWDO+6U+WziIOXQuCGlEbtM6YOe7WaF/4FLXFiFPl22Zr8Nit/GcHGFhU88s= 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 1wRt7c-00015F-00; Tue, 26 May 2026 16:51:08 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id B109DC0522; Tue, 26 May 2026 16:42:49 +0200 (CEST) Date: Tue, 26 May 2026 16:42:49 +0200 From: Thomas Bogendoerfer To: Qingfang Deng Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Mieczyslaw Nalewaj , Felix Fietkau , Hauke Mehrtens , Aleksander Jan Bajkowski , Christian Marangi , Rosen Penev , Nick Hainke , openwrt-devel@lists.openwrt.org Subject: Re: [PATCH] MIPS: ralink: reduce ARCH_DMA_MINALIGN Message-ID: References: <20260428082543.95896-1-qingfang.deng@linux.dev> 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: <20260428082543.95896-1-qingfang.deng@linux.dev> On Tue, Apr 28, 2026 at 04:25:40PM +0800, Qingfang Deng wrote: > Currently, Ralink 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 16 bytes for > RT288X and 32 bytes for other Ralink SoCs. > > Signed-off-by: Qingfang Deng > --- > arch/mips/include/asm/mach-ralink/kmalloc.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > create mode 100644 arch/mips/include/asm/mach-ralink/kmalloc.h 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 ]