Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp891451lqb; Wed, 29 May 2024 13:50:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXG4/O/zQYM8G6M2hdy+rKgEh7MaMp1m6o3yTdVpU6P57h4sKd63m9mPe9tUua8ERajK9nhvZ/4Ee8K117kXCdeFKETZev8aPzSm2Uhqg== X-Google-Smtp-Source: AGHT+IGE1dvwOqDVDr0y2wy+DL9f166ASK+zOFt9z0C5ZOBfrhtU23/afLCPgIuLzS5X6LMTNP9a X-Received: by 2002:a05:6830:11c1:b0:6ef:9159:8915 with SMTP id 46e09a7af769-6f90af2985amr319350a34.37.1717015852964; Wed, 29 May 2024 13:50:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717015852; cv=pass; d=google.com; s=arc-20160816; b=Fzn6n/2c8JuO5j9jkUT+fIBuJHKb70vjsqDs1X5TyP9Gq7GIMjFEz9v1axZ60WkDK3 d7il04w0xCPO8dVTs2bvI8J7wWkzA0wGcn9uUsnrqnp/sKkwLSVVLt0ajOemEzsXTWrp LoEoHjQda+djejp3NF9wqn+p8KX6/vMprQjX3yZUyGWJXSGSKEIQ9Laf0ksATscU3ZPQ THempXxRuQdDaLNw5ydDMF1aG5BLNnNOA5YezTnK1mHeZEeP+lQhLACkNJrlRByw0QeJ LvCebAt0DjSU45qCqk10JNxjyN3N2+U5JfHoDMJZTwQKMNy1MORY+ojHctt89bm6+Mcg 5Hmw== 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=1G4MuJLfcNe+eQlPR9y6C2DI9izpMDDpafLXltcFND8=; fh=o6jKI7uFi2VST2Ln4km0dlzuzEqNvuxOMpG3Spxro28=; b=FXLcVSNXHCsq1kJ0VxIsANGxm+Skj6lhBu2vP7iAFI9K+RWR0h9xJaqrBxVH0S2Mpc v7cL4iixAGliNg+0TM5gqmI9r/MuYmgP9moBKp5SyJ4DjlDqvmkjS2dgIW5wZFyPXs0/ 4UflOlR+ZXzBcK5pyViL1yOYmimn/qSu7zRVw80rnl7+8B61zzY01zhBE4JpVgCQIeNB 8AWYLSnm4jPaw16wQhgeyyv9am31pCacRhgJYh0qpQzFKm0MAU1nxcwfj0tB8xiVJR+s SbCS03IP6W4tNJ/6HlAyDFRKPQgU48+S6Nro1tsPwQev7++Ao+8KNt8sqnFEmBQtJRJz gcFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="XHt+MPZ/"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-194677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17c2f62si135911161cf.88.2024.05.29.13.50.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 13:50:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="XHt+MPZ/"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-194677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3DDC31C218AB for ; Wed, 29 May 2024 20:50:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CDA31C8FB1; Wed, 29 May 2024 20:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XHt+MPZ/" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 C91D41C6894 for ; Wed, 29 May 2024 20:50:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717015838; cv=none; b=elt/tGOKov2Ea4quSSOhufp09rBiSk6DnPRJDCWfRwuP8Uz0Rgdg21c8Xl3j7LZAJzGKlAoIjDFx8P0OGiUucwOdsVwG5LXqWMHLTbhHoeKfF9g1bpnLARoM1831SgL6jpsvUjR6Wt8TP75t5LNqAiHe3C1tbdySDjrO3F6i2xc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717015838; c=relaxed/simple; bh=lblQCcvQsEn3C0L7QF+8CmIxKphkimznAVnOBSt1Fq4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vAr1lrSJBuF4n20vEw5ytxS2ihy+F8xl43opkvkQrogwVO9WqsNIGWZQ37uvIU8Y3v5FgoodDUFR5vwn6Vurv64Skp4Ny5QKXrh/QTwSi/mDI4qpwFVfG6Bh8Uszm8ExgQdydwLcDs4CLyb+ITI5L/338y+JNg3NC6830CMEHtw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XHt+MPZ/; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717015834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1G4MuJLfcNe+eQlPR9y6C2DI9izpMDDpafLXltcFND8=; b=XHt+MPZ/lbhv1pMxuZjFaLaYe71ysbNkxUTlNk6IIhgo+su6shYnE27kcESG31w6LfKZ3s tm50fV/SzSzxl3BhP2jMpq734kfQjQUhMhH9jPRWKUz9IuQ/su/umD4uDvy/MBx6AKHVcE WZMIsPtw0f8ueY5g76108wQq8jhn9og= Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-391-QDIH5lrxPsONRWP3ibmC_A-1; Wed, 29 May 2024 16:50:33 -0400 X-MC-Unique: QDIH5lrxPsONRWP3ibmC_A-1 Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-3c9ad64e35bso60013b6e.3 for ; Wed, 29 May 2024 13:50:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717015832; x=1717620632; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1G4MuJLfcNe+eQlPR9y6C2DI9izpMDDpafLXltcFND8=; b=qi2B+ohsOJwa4v7M23vBeIO7vnhjiQ+Mu/xk0cTF2mQlD3s7HZrz8d2RDoScceMt6S 9B88ik5Rr2QbfLHlkKmg2pncvmL6laMOVmdJlstp7SJYbRlt4IxmMCWYUJmFVvYMI/pj UkJawbx+grJ5qbZMUg276jIJb3COrdhrFT4ey3k7QqhL+bc2LSCLSGxmYAH+mqa+KdKA ndTJhsUV69ksUaZMNsv+ofCa0T6TNsBf4W0VdOb4U7b3InGUMIvRXCPtCfVH7ghTxHl6 dmRpclVFPPzHfuvtWvcLYM0mHn9uC3fqPp7KY6D1sNveSEt3bHWh2YfCWytL+I0qJVDm 7n6w== X-Forwarded-Encrypted: i=1; AJvYcCUL0CqtCetc+JTgjxPOmUQN0jdz3NGNR8ZAJQFjrev5S3PDAOTxknfp2jAgGhM84XNuAfcsjndzynFLcDk85bDG6E8IBFhDZwB+cPzj X-Gm-Message-State: AOJu0Yzs90tpqxtFAwdBKUITOd5uK3Ukhe9x9aitD12Ch05VxsLJJFFM nqa661gZYVbM7jPbJnneal4G9jevEcNmyVuNSw64ckwxIk8o9hRhzf3TqOUf3E1hf78sfiqKVdD BKes6mg2/fJEji8lSusvNcraXZb7xyNbw3SFW6P8MV9kxwZopJdaLom2AjdUV/w== X-Received: by 2002:a05:6808:1ab0:b0:3d1:c187:15d5 with SMTP id 5614622812f47-3d1dcca93c5mr144663b6e.20.1717015832362; Wed, 29 May 2024 13:50:32 -0700 (PDT) X-Received: by 2002:a05:6808:1ab0:b0:3d1:c187:15d5 with SMTP id 5614622812f47-3d1dcca93c5mr144646b6e.20.1717015831958; Wed, 29 May 2024 13:50:31 -0700 (PDT) Received: from x1gen2nano ([2600:1700:1ff0:d0e0::33]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ad8fa000eesm22065026d6.1.2024.05.29.13.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 13:50:31 -0700 (PDT) Date: Wed, 29 May 2024 15:50:28 -0500 From: Andrew Halaney 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 Subject: Re: [PATCH] net: stmmac: dwmac-qcom-ethqos: Configure host DMA width Message-ID: <7w5bibuejmd5kg3ssozaql4urews26kpj57zvsaoq2pva3vrlo@agfxwq5i65pc> References: <20240529-configure_ethernet_host_dma_width-v1-1-3f2707851adf@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: <20240529-configure_ethernet_host_dma_width-v1-1-3f2707851adf@quicinc.com> $Subject should be have [PATCH net] since this targets the net tree: https://docs.kernel.org/process/maintainer-netdev.html On Wed, May 29, 2024 at 11:39:04AM GMT, Sagar Cheluvegowda wrote: > Fixes: 070246e4674b ("net: stmmac: Fix for mismatched host/device DMA address width") > Signed-off-by: Sagar Cheluvegowda Please, always write a commit body, even if its simple. Just inferring from this patch, I am guessing there is some limitation on CPU's DMA address width that doesn't match up with the MAC's ability? Paint that picture for us here please! We want to know the _why_ in this section. Also, I think the Fixes: here would be for adding support for this SoC in the driver, not what's listed? Might make more sense after you have a proper body though. > --- > Change-Id: Ifdf3490c6f0dd55afc062974c05acce42d5fb6a7 I know this is under the ---, so its not actually in the commit, but I'd not include that at all when submitting. Someone will complain about it looking like this is from / for a downstream fork. At least checkpatch doesn't warn about it, but a human probably will :P > --- > drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > index e254b21fdb59..65d7370b47d5 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > @@ -93,6 +93,7 @@ struct ethqos_emac_driver_data { > bool has_emac_ge_3; > const char *link_clk_name; > bool has_integrated_pcs; > + u32 dma_addr_width; > struct dwmac4_addrs dwmac4_addrs; > }; > > @@ -276,6 +277,7 @@ static const struct ethqos_emac_driver_data emac_v4_0_0_data = { > .has_emac_ge_3 = true, > .link_clk_name = "phyaux", > .has_integrated_pcs = true, > + .dma_addr_width = 36, > .dwmac4_addrs = { > .dma_chan = 0x00008100, > .dma_chan_offset = 0x1000, > @@ -845,6 +847,8 @@ static int qcom_ethqos_probe(struct platform_device *pdev) > plat_dat->flags |= STMMAC_FLAG_RX_CLK_RUNS_IN_LPI; > if (data->has_integrated_pcs) > plat_dat->flags |= STMMAC_FLAG_HAS_INTEGRATED_PCS; > + if (data->dma_addr_width) > + plat_dat->host_dma_width = data->dma_addr_width; > > if (ethqos->serdes_phy) { > plat_dat->serdes_powerup = qcom_ethqos_serdes_powerup; > > --- > base-commit: 1b10b390d945a19747d75b34a6e01035ac7b9155 > change-id: 20240515-configure_ethernet_host_dma_width-c619d552992d > > Best regards, > -- > Sagar Cheluvegowda > >