From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7B33395D86 for ; Mon, 9 Mar 2026 11:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773054418; cv=none; b=YQaVuZtE1oxbhQZpWCxWtNhZZD4qrrPj6O20CdWsrPdU+qkLMemHATIA7uiGPq2iFtBVogR6/rkoK61WsBBPkCrxFsGPy+XPzRjLBGMvnjBE8RSv4Ho/k9Lqqki1OS6/tiaIT2wEQP3XppOYDMfI0ZG5IY9Yc3uiHn7L5U/OhgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773054418; c=relaxed/simple; bh=7jFrjfVpNEF7+5pofyTW+BP7utiTtPBz1JY9cb1Gn74=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OvUPXkVX4K8tl7OA4/3O01T3ai29Pp6AZVcmQaKlxmFFK6A+GBfD2UwU3u+C9ghGW3Mk07wKJbBtFAoBDImlZOH3LimU9bcb/XH0Y1/KIVkLcsh/iRndyyyZA9Rg2lIMyYrYGt4d0uLIrukISjaNBJr8i5ZS3Y6l68vBJ06KwDQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=cT5pkRzX; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=RQOpNbCf; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="cT5pkRzX"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="RQOpNbCf" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 629827VJ3051928 for ; Mon, 9 Mar 2026 11:06:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=TrEOcA+LHeeXNlAZJAw+XIej 7hfOvjSZS4fXCV/6ZP8=; b=cT5pkRzXP6qVFsUdkwZYKvpu2QDIkKWB/m+APQg3 xlQJXyfUDxe5z5j/J9YHHaQyCPT1iK2NE/VExyzQbVIPzEXUZl+ZXZxrAH/SZhyi tKDLTr3m9k69Gy909AFRL0cI6KdJD7DFNOmt3wC463C8wLM48cDSrkLOLtV5Ix/o EDSTiDTPnhe+j3+TlBGosUM8+4DtPOw1rEaWNMn42G008p9ZCTZJMzyltrDd9F4Z O85hGkC/n+PYGdq5mEMfYii5Gpg1wSToemHQAr1t3Jy3ucXGiNbcLnHmcYvBMfaf Gujxy+JLvzq0bucFV/9+WtoERcTQlj3aLeDFfn45uRcXQA== Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cr9qewenn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 09 Mar 2026 11:06:56 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-35984ef203bso8113062a91.3 for ; Mon, 09 Mar 2026 04:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773054415; x=1773659215; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=TrEOcA+LHeeXNlAZJAw+XIej7hfOvjSZS4fXCV/6ZP8=; b=RQOpNbCfRJ7MED4Vn4Ge6BKR98b5p2WNs6+d5oSeuypj3+2S6Gv0mouS9ED09ZZPDc FAVwcOkmoRVEUvC2Zp1MnX6YfcFgXZ2gFTHfS2EhO3YnGoRen6UkluPTG1jRPkBLCdm2 quhLzp2LR1mlgG21AN9BKNgWh08UrRMIvW5hu17xGuihmubujvXtfPLW93ro3bqse4A1 /WD/4IoRF/JRxpsWg3l7yN2I3GTtCQFt6jviSBwgOjCjb3h/yx6eqdumeh+W1DSxan3z VcmaGekqdjcXci6QTIysaw0uBBlnoFqQ/+32OzWBHQlDTGICCH1chBLu0rv1zhK9KBL/ zYVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773054415; x=1773659215; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TrEOcA+LHeeXNlAZJAw+XIej7hfOvjSZS4fXCV/6ZP8=; b=q2a7EmEeJhbTB48WeeHTCBS9X9X+yR1TIyN1zTeFQhpNtWt1TskJ/AvcdYhWcMC9d6 jwgTOopBsy/xil/yrPAIoJLmcfw4wrmJWndnl3oj3Y5XIpI1pfQxk3M+sFst+JvkPL61 zV82wLE8+Pb9A/MEP9gcFTeazKzddkoOpI6kU6K8XqMq7I7P30hQUzcUrtSWBefSWwMn jTdsdK4yA/D8VTH/ptE7OWUoA+/jpIY9JkYWMpId/QgxXRt5qhAzkbQHGh2doxPF4AQN mqYT+CTndAFFYZY3Ae0L04qoW6S1xXzG9ABjWSt8/L60PaOpS4HOPDYVCo1XS9LLCvUR OABw== X-Forwarded-Encrypted: i=1; AJvYcCWxJ28em9di0LGWoRjFlZgmmES9StGKpGcmMK+UQKc4ddipWk8whiv1LJ761p1Zvfgw6/p4cSLAf8H+sg==@lists.linux.dev X-Gm-Message-State: AOJu0Yz+eglL+kzMHvOjK8GtrjFdpo3cxugbWmDyDv6PN+y9IBkHj3/W AzpSZeAZ0nNeX8DfmsDFmeFD5dvdRcPgNOA17Q+XG39aF9e28tUzih+H+YHM2q9DuvNzx2XwY93 zJHW4WkV1ngFmcY1+PxCGnzZ9L/xacGVJs14CKsoG9sOuwOYoQ362Q1W6wDEQoYI4kg== X-Gm-Gg: ATEYQzwYVcfBEsFSKwfqERnzz+rXwWxcqo+gZf23rLNcu1uS9NSvormAW9fgkm0JDNX sqgaOYUCSB4yuVkr/POOsyMPbz9j9TXln3HEo9q2whsEqkAiwHXEHSnjhSjITf3Wvsw4SGLMPH4 PPq6oONOELp5yuHYg8LA3165S3UMbRvMprvADsf4mUEozNsqW3Xa5WTc/7drBH/5HIPVCUSD75v 5ckl1tX46MpfycD7f0eQN1cgW99VgaB8vaUw2aPlJdZuoXMuQR15Hul2W00Li2pGX+RMIhS27J1 cDB60OHzCafgvd++T+WJ5L8tCaD/6hLRr9Zo8+/VPBTkyRWg/24xJNSFwrWx/wrXwQvWxI7OF+a Goq12g4SAFODG2CTze7MQOwoCwEL82iU2sQc= X-Received: by 2002:a17:90a:d2ce:b0:34c:fe57:278c with SMTP id 98e67ed59e1d1-359be353f40mr9443428a91.34.1773054415398; Mon, 09 Mar 2026 04:06:55 -0700 (PDT) X-Received: by 2002:a17:90a:d2ce:b0:34c:fe57:278c with SMTP id 98e67ed59e1d1-359be353f40mr9443395a91.34.1773054414906; Mon, 09 Mar 2026 04:06:54 -0700 (PDT) Received: from oss.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-359bcc2d096sm4067057a91.14.2026.03.09.04.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 04:06:54 -0700 (PDT) Date: Mon, 9 Mar 2026 16:36:44 +0530 From: Mohd Ayaan Anwar To: "Russell King (Oracle)" Cc: Andrew Lunn , Alexandre Torgue , Andrew Lunn , AngeloGioacchino Del Regno , Chen-Yu Tsai , "David S. Miller" , Eric Dumazet , Frank Li , imx@lists.linux.dev, Jakub Kicinski , Jan Petrous , Jonathan Hunter , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, Maxime Chevallier , netdev@vger.kernel.org, Paolo Abeni , Pengutronix Kernel Team , s32@nxp.com, Samuel Holland , Sascha Hauer , Yao Zi Subject: Re: [PATCH net-next v2 0/7] net: stmmac: start to shrink memory usage Message-ID: References: Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Proofpoint-ORIG-GUID: 8essugA0LlDwVa1pUc9vdcipHV5x6ZRe X-Proofpoint-GUID: 8essugA0LlDwVa1pUc9vdcipHV5x6ZRe X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzA5MDEwMiBTYWx0ZWRfX7yLjsvat2vII yxJNpRmw7BhowRV1v0eKr8k434upRfWnLcPMayoFuJRht4DNL4cHy8KLndyAhVAH8CEZjUKX24x OvD2oXcBOdzEl5h1vEj4l+t94VeeLsdagFnqdM+MqIU+HrhXZSQ1WmFF0fhTeCEJ/OCKViszrnO rpzukgsowU2SSgGvRr/VsvghUPN/KetsXJwlQWZz2nrZaUCLGkkhDFjfvbVVGANG1O4qU/ICpy4 pZ7/JiR7vMNerZ/jOV31ASM3esnOC7rSVPJ48leGC8ktEHXKoh69NrXTA8y5I8P0OboxfjIv5/9 x7fTp7kGnAKZjOfdcxojJjlcusEFNKBrAWr1QtMPZzyYz0xNBRt+RC4OkuAYm3Tdi6b+3aY5Vzg yQTfVHXLPRJ6j5s/YI830JMV1FuZoCcOGG/Gfip1EWtezITpPrjF+GeuL5KtYezdg3mohbk/CM4 ZF62lFTGzX20WVPKzOQ== X-Authority-Analysis: v=2.4 cv=dcqNHHXe c=1 sm=1 tr=0 ts=69aea9d0 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=kj9zAlcOel0A:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=J-7NsHqoITSIJWJjikQA:9 a=CjuIK1q_8ugA:10 a=zZCYzV9kfG8A:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-09_03,2026-03-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 malwarescore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2603090102 Hi Russell, On Mon, Mar 09, 2026 at 09:38:26AM +0000, Russell King (Oracle) wrote: > Hi, > > Start shrinking stmmac's memory usage by avoiding using "int" for > members that are only used for 0/1 (boolean) values, or values that > can't be larger than 255. > > In addition, as struct stmmac_dma_cfg is approximately a cache line, > shrinks below a cache line as a result of this patch set, and is > required, there is no point separately allocating this from > struct plat_stmmacenet_data. Embed it into the end of this struct > and set the existing pointer to avoid large wide-spread changes. > > Lastly, add documentation for struct stmmac_dma_cfg, and document > the stmmac clocks as best we can given the driver history. > > v2: > - fix error in commit message for patch 5 > - fix typo in comment in patch 6 > No issues found with v1 on QCS9100 Ride R3, so feel free to add: Tested-by: Mohd Ayaan Anwar Ayaan