Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2232031/?format=api
{ "id": 2232031, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2232031/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/20260428082543.95896-1-qingfang.deng@linux.dev/", "project": { "id": 45, "url": "http://patchwork.ozlabs.org/api/1.1/projects/45/?format=api", "name": "OpenWrt development", "link_name": "openwrt", "list_id": "openwrt-devel.lists.openwrt.org", "list_email": "openwrt-devel@lists.openwrt.org", "web_url": "http://openwrt.org/", "scm_url": "git://git.openwrt.org/openwrt.git", "webscm_url": "https://dev.openwrt.org/browser" }, "msgid": "<20260428082543.95896-1-qingfang.deng@linux.dev>", "date": "2026-04-28T08:25:40", "name": "MIPS: ralink: reduce ARCH_DMA_MINALIGN", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "109bb06787156c5a3010e8c6e3ba280570b675c2", "submitter": { "id": 93261, "url": "http://patchwork.ozlabs.org/api/1.1/people/93261/?format=api", "name": "Qingfang Deng", "email": "qingfang.deng@linux.dev" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/20260428082543.95896-1-qingfang.deng@linux.dev/mbox/", "series": [ { "id": 502523, "url": "http://patchwork.ozlabs.org/api/1.1/series/502523/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openwrt/list/?series=502523", "date": "2026-04-28T08:25:40", "name": "MIPS: ralink: reduce ARCH_DMA_MINALIGN", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502523/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2232031/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232031/checks/", "tags": {}, "headers": { "Return-Path": "\n <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=2EIKwzEU;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=Ss5KZ1zG;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g73dP2STqz1yJw\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 02 May 2026 20:13:09 +1000 (AEST)", "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wJ7JU-00000008lgB-2dUR;\n\tSat, 02 May 2026 10:11:08 +0000", "from out-171.mta0.migadu.com ([2001:41d0:1004:224b::ab])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHdlj-00000000t8M-2LDS\n\tfor openwrt-devel@lists.openwrt.org;\n\tTue, 28 Apr 2026 08:26:13 +0000" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=fniXqX80GYSNN5wyQQUM6AnRFwijoI3otiWdQhprX68=; b=2EIKwzEUOXkBY2\n\tvTaQElGdRdP85IMD2cMmDc3Y3ixw1X+z6jTI2GqlrI05U6m8IDgRhE3hdVVVQVVa3RuiPJN/NRKrA\n\tKFJmwx8+isleSg1KTlh65sBnPgOY+4/9lREoY61Sdj020R8PxZKJTN65ftPF/07BzPTZWE+ZicQJu\n\tecTq6dyoEamBXVyUwBN/uEclamaV+361H0YY7jZtECJnrsa/nBw3hCuR0iHDItTmN7irPPPX+MdD5\n\tVCD29ZyFFU+ZqvFGmRUnMTHVj1/4AMzSg4BOmxwr3YLXbYV7TR0RHdjPoz9frAOhfp89MaO8gbuqZ\n\tMFZPC0Jtf+EJD9axoKgA==;", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1;\n\tt=1777364765;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding;\n\tbh=11q5oz16touL9vV9JV8N3vUJRYbj1YLjofdcEYdHyuE=;\n\tb=Ss5KZ1zGcXPnv6r5b4U7i7xPwWm6c53xFGyh/whfz/b34aXCJ62Fwb2AI3r7am8pGbI/k6\n\t7FBgGNpmOfyDePqtbAnsgm+YW50mQfSnaKTrELinrFa7UvBhvlwHYzdFPOolX7GBI9P5jc\n\tgjejC1f+yCHR4qwBC/rRl4Jpe+ZdD/g=" ], "X-Report-Abuse": "Please report any abuse attempt to abuse@migadu.com and\n include these headers.", "From": "Qingfang Deng <qingfang.deng@linux.dev>", "To": "Thomas Bogendoerfer <tsbogend@alpha.franken.de>,\n\tQingfang Deng <qingfang.deng@linux.dev>,\n\tlinux-mips@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Cc": "Mieczyslaw Nalewaj <namiltd@yahoo.com>,\n\tFelix Fietkau <nbd@nbd.name>,\n\tHauke Mehrtens <hauke@hauke-m.de>,\n\tAleksander Jan Bajkowski <olek2@wp.pl>,\n\tChristian Marangi <ansuelsmth@gmail.com>,\n\tRosen Penev <rosenp@gmail.com>,\n\tNick Hainke <vincent@systemli.org>,\n\topenwrt-devel@lists.openwrt.org", "Subject": "[PATCH] MIPS: ralink: reduce ARCH_DMA_MINALIGN", "Date": "Tue, 28 Apr 2026 16:25:40 +0800", "Message-ID": "<20260428082543.95896-1-qingfang.deng@linux.dev>", "MIME-Version": "1.0", "X-Migadu-Flow": "FLOW_OUT", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20260428_012611_822179_CA2187DF ", "X-CRM114-Status": "UNSURE ( 8.55 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-2.1 (--)", "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam. The original\n message has been attached to this so you can view it or label\n similar future email. If you have any questions, see\n the administrator of that system for details.\n Content preview: Currently,\n Ralink SoCs use the default ARCH_DMA_MINALIGN value\n of 128 bytes defined in mach-generic. This is excessive for these\n platforms\n and leads to significant memory waste in kmalloc. Override\n ARCH_DMA_MINALIGN\n to use L1_CACHE_BYTES, which is 16 bytes for RT288X and 32 bytes for other\n Ralink SoCs.\n Content analysis details: (-2.1 points, 5.0 required)\n pts rule name description\n ---- ----------------------\n --------------------------------------------------\n -0.0 SPF_PASS SPF: sender matches SPF record\n -0.0 SPF_HELO_PASS SPF: HELO matches SPF record\n -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from\n envelope-from domain\n 0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID Message has at least one valid DKIM or DK\n signature\n -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n author's\n domain\n -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n [score: 0.0000]\n 0.0 TO_EQ_FM_DIRECT_MX To == From and direct-to-MX", "X-Mailman-Approved-At": "Sat, 02 May 2026 03:11:07 -0700", "X-BeenThere": "openwrt-devel@lists.openwrt.org", "X-Mailman-Version": "2.1.34", "Precedence": "list", "List-Id": "OpenWrt Development List <openwrt-devel.lists.openwrt.org>", "List-Unsubscribe": "<https://lists.openwrt.org/mailman/options/openwrt-devel>,\n <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>", "List-Archive": "<http://lists.openwrt.org/pipermail/openwrt-devel/>", "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>", "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>", "List-Subscribe": "<https://lists.openwrt.org/mailman/listinfo/openwrt-devel>,\n <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>", "Errors-To": "\n openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org" }, "content": "Currently, Ralink SoCs use the default ARCH_DMA_MINALIGN value of 128\nbytes defined in mach-generic. This is excessive for these platforms\nand leads to significant memory waste in kmalloc.\n\nOverride ARCH_DMA_MINALIGN to use L1_CACHE_BYTES, which is 16 bytes for\nRT288X and 32 bytes for other Ralink SoCs.\n\nSigned-off-by: Qingfang Deng <qingfang.deng@linux.dev>\n---\n arch/mips/include/asm/mach-ralink/kmalloc.h | 9 +++++++++\n 1 file changed, 9 insertions(+)\n create mode 100644 arch/mips/include/asm/mach-ralink/kmalloc.h", "diff": "diff --git a/arch/mips/include/asm/mach-ralink/kmalloc.h b/arch/mips/include/asm/mach-ralink/kmalloc.h\nnew file mode 100644\nindex 000000000000..1693209d3f37\n--- /dev/null\n+++ b/arch/mips/include/asm/mach-ralink/kmalloc.h\n@@ -0,0 +1,9 @@\n+/* SPDX-License-Identifier: GPL-2.0 */\n+#ifndef __ASM_MACH_RALINK_KMALLOC_H\n+#define __ASM_MACH_RALINK_KMALLOC_H\n+\n+#ifdef CONFIG_DMA_NONCOHERENT\n+#define ARCH_DMA_MINALIGN\tL1_CACHE_BYTES\n+#endif\n+\n+#endif /* __ASM_MACH_RALINK_KMALLOC_H */\n", "prefixes": [] }