Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp972861lqt; Fri, 7 Jun 2024 04:37:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0m7E+dr4o2zINoxE8oLT8ShJ4tvUDJJ1IIZM9tmsPaaOxKe00oLNUN+ig2SzB6qpcZiuW5dK7vKRe7VBwbIRWQP69G3TVRq05eK7Cjw== X-Google-Smtp-Source: AGHT+IFWpZ/Ap11/AGP36V/V3b9FP4NgJdC9hHOmnMVvAP1VJLdmolhQoIz72c8FamS3awyfCaDQ X-Received: by 2002:a17:906:3482:b0:a68:ee4b:1e18 with SMTP id a640c23a62f3a-a6cd6663fb7mr182380066b.21.1717760274709; Fri, 07 Jun 2024 04:37:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717760274; cv=pass; d=google.com; s=arc-20160816; b=LpucvqNozZKns4gBhX+sjArv0q3XV4blq1codbI3SyxXnaIaR+2ceq0l6tnU0fDwND 4PQLSwewZtbN5SD2m/MJnmxSDOaPY38yK7RQVxHL7BTSMOW4kt91kt/uG1TnP0radZoI 9JuS/z7Egpw2/7RdTDL/mkk+R/EVlcNj2uAsoempIlHg14oJEg5nl11+RJ9bEkXUuufO A8VlDKI/sENM2CzSP7I4rx9dNOaLJeX2qN87Vlqj4Y+H+zcmYFM4l3CEUtPBCoVwFYsK cFfH7ElRmwTVNciB2TxpLMQEdgK5bgvM+huAWU5Phowg27L+mHcTrnF1nnReW1VnGONm KBSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lvYqQ5/bTx2mr6QqFodZi3CJrkyPQF56y3Qre1x9ne0=; fh=V9eY7vOuYQXGmFv5/ogJEPFHeTWXsXNfxGfs3BTpOpY=; b=gHzH3JPILf7wse4Xgx6DF62awpNR5K2Fju3l0JKFm/lElrz8ld8BO8Hmp9ac8w8P41 EDUvp/niudQt0DehOkfmXFkZKNrrmKyCAOR4zyuISEsmfSsFSki1KaMjQZVObhnfTLBq ZkVNtVXcUCYgL8TAV0j63aWOyRk+B//4XLxiZegf//UNiKbilYf+bo55uE8277Qgz5PH raSsF1qlTL4IIEcGPEGHCpSJW3hbK7ihNj+2n2hXfZPhl+v8tNmMvLVSCWc5+Fa1jhOa jPdMuuRSoVvK9sBxxYmQ3eGkGe9yiwol/Ur3v8HbHojIYhOM6RvGpoYoNCx/6YllKzDM ZPng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQSQfIhV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c807065f5si175378666b.514.2024.06.07.04.37.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:37:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQSQfIhV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D58CD1F27129 for ; Fri, 7 Jun 2024 11:31:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DFB2188CD5; Fri, 7 Jun 2024 11:31:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cQSQfIhV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3A6ED18734E; Fri, 7 Jun 2024 11:31:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759877; cv=none; b=Z2ke6BkriU3iNFzrdwFpU2W0e/Xhux2yoQbzJERb7npvCVypm1lqxcH22+XS2IlSGsCFvh7UrqPpK5NA2omE4xVPI92XS/OTcUOAFEp6fojML0WW28a3NhesjZwOhETjMtM29qbDbL6fxZaW5MG3oYJTfJLUSARBeOEavsyJ7qM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759877; c=relaxed/simple; bh=Nkzv4hcPPvps22qWpC47FSwYdykZx12iKlrS0Wd94wA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hdKQXFPeicDJB4d+/47WFVDTa9mCYsv6JXmuu7+kWHJeMy6wHtYEsPpHaeYpZeE3LhAJDwamU1Rq5UpJ0l5zk6NBPYvaEP8mkSZiGl8MJC+NG5UJ5eUCM5z8i4tGTpw7ZEq1Ee3mdXgjwhG60Hy8ukOKExEEYwVNyzEvQCpo5ko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cQSQfIhV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DD8CC2BBFC; Fri, 7 Jun 2024 11:31:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717759876; bh=Nkzv4hcPPvps22qWpC47FSwYdykZx12iKlrS0Wd94wA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cQSQfIhVy92SkTaaGnvSgGOmaOrGPEO9ebOslY3tPDyGu2jF1GTJI9arb4XK29his 0BLTfM2LZthM3JHTsdnQHQt0Z4GQiN7MUermB1jSdlNyTlO1ebFCHNF2nXBVU7sbDs N9dCpUgXtuB9ixdap7wO+KFbjkfX+Fe6eWjl+w1HdJ7rrbqG6mvqzpIHR+sxpLYEBy h7g2mVnP6NnWsT3CayAWQbJNEjj4VeA41bOhubBCrmLD+Op1b9G/fVnN4BqtzwWJmv zYcpo16xMyADhz6EMSN1zwreNy5aX1bROtpuyJXMk6eS6rivF7GgpBMYO/OFEV4fJP Bj9egWQZQQb8g== Date: Fri, 7 Jun 2024 12:31:11 +0100 From: Simon Horman To: Sagar Cheluvegowda Cc: Vinod Koul , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Jochen Henneberg , linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Lunn , Andrew Halaney Subject: Re: [PATCH net v2] net: stmmac: dwmac-qcom-ethqos: Configure host DMA width Message-ID: <20240607113111.GA27689@kernel.org> References: <20240605-configure_ethernet_host_dma_width-v2-1-4cc34edfa388@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240605-configure_ethernet_host_dma_width-v2-1-4cc34edfa388@quicinc.com> On Wed, Jun 05, 2024 at 11:57:18AM -0700, Sagar Cheluvegowda wrote: > Commit 070246e4674b ("net: stmmac: Fix for mismatched host/device DMA > address width") added support in the stmmac driver for platform drivers > to indicate the host DMA width, but left it up to authors of the > specific platforms to indicate if their width differed from the addr64 > register read from the MAC itself. > > Qualcomm's EMAC4 integration supports only up to 36 bit width (as > opposed to the addr64 register indicating 40 bit width). Let's indicate > that in the platform driver to avoid a scenario where the driver will > allocate descriptors of size that is supported by the CPU which in our > case is 36 bit, but as the addr64 register is still capable of 40 bits > the device will use two descriptors as one address. > > Fixes: 8c4d92e82d50 ("net: stmmac: dwmac-qcom-ethqos: add support for emac4 on sa8775p platforms") > Signed-off-by: Sagar Cheluvegowda > --- > Changes in v2: > Fix commit message to include a commit body > Replace the proper fixes tag > Remove the change-Id > - Link to v1: https://lore.kernel.org/r/20240529-configure_ethernet_host_dma_width-v1-1-3f2707851adf@quicinc.com Thanks, this change looks good to me - the usage of dma_addr_width is in line with my understanding of how it is intended to be used. And, AFAICS, the changes in v2 address the review of v1. Reviewed-by: Simon Horman ...