Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1092778imm; Wed, 19 Sep 2018 11:56:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZgvJNflmlLLYFXFLQh3uC2Eafxa8W24oRvxYnqkMDjJeX2KrVhPNxGZxsCOeW9iyKXbisS X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr34788073plx.73.1537383384129; Wed, 19 Sep 2018 11:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537383384; cv=none; d=google.com; s=arc-20160816; b=mgBN/IEqoKI4E4MlBpd+G2oqhzYa0VeIcKhaqVk15MO3q4iatvbdSb9KYbIY/H+xht 7hjv7Pc+3k6egIU1fDFSHxMoOANFVUJYnquEWu2auvAAOuQsYpiPVRVW0TX5H09HL5hO fpdV3QJdEHGTQICU86jQwI5WcOsD9MY+aEV13gPUH19ZlyNDf2nx2EWW/5raWqCMG+oy 71S8OXzKVjGpngbvj+8rotiVtB3G6FK06JcpkdibcxKzsfdn+5n/p/Xp9OYUEASzebwf U3iCTtjQuErqwkYKJ1ywhkf/hR06ODoogMx7dlBzFy8Bszxovr37HYNT8EA3GkQAlMPS WglA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DoGHJ15gjZrElqfEEF5NDNPQAnEBkgN/QqXOuiCVbp8=; b=f/UlskY91M5yHVjiXG1CRzgUdSCZQRKik1czHcF7r3BkZPmoZWi5bIDnV0qHA+AWd4 hIb/Qp5CezGFr9d/lLqUPvZnvd3aMsXDAuHNwSdrgDvjBaWplrSypcy/WyvgHMtCOyn8 OUM+StTLwbRbBAciMjq9AxRIlcGXFwxuMZmmymYsEnNv1MrqmzWXr9MjAEOlub0rhFQ1 bITefSYL1H5jIkN9m4EsNXgS7U6Jsdyr09ev+C3wl8SyhJBdlUWyZozYSXTkps/xXwDA g/ftwve7Pk9+Kkx5IEIlJMd7bkgJn1fJrd73/a7dIVPBdaJc6u3fD4DiTIH/VEJv2DJp Dnyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=CvuxWrnO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si3406125pgi.677.2018.09.19.11.56.08; Wed, 19 Sep 2018 11:56:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=CvuxWrnO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732734AbeISXrZ (ORCPT + 99 others); Wed, 19 Sep 2018 19:47:25 -0400 Received: from mail-sn1nam01on0078.outbound.protection.outlook.com ([104.47.32.78]:51488 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726902AbeISXrZ (ORCPT ); Wed, 19 Sep 2018 19:47:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DoGHJ15gjZrElqfEEF5NDNPQAnEBkgN/QqXOuiCVbp8=; b=CvuxWrnOga3SaxkxBD3avgPjyA7SsG92+Uj8ctxCLvNYbmwnX4Jq50em9qApBC/0pT0wAyNILD9k7EVRWGhCS+ld0fGwvzkNEo6T9ycVoXn5FvIOENp4CiLicK25C2zGU7D+xiT5yRdTNv4k8qy6y/cRtcd+uFvkZS7IQecVL3Q= Received: from BL0PR02CA0047.namprd02.prod.outlook.com (2603:10b6:207:3d::24) by BYAPR02MB4758.namprd02.prod.outlook.com (2603:10b6:a03:4e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.14; Wed, 19 Sep 2018 18:08:18 +0000 Received: from CY1NAM02FT029.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::202) by BL0PR02CA0047.outlook.office365.com (2603:10b6:207:3d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.17 via Frontend Transport; Wed, 19 Sep 2018 18:08:18 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; microchip.com; dkim=none (message not signed) header.d=none;microchip.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT029.mail.protection.outlook.com (10.152.75.143) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1164.13 via Frontend Transport; Wed, 19 Sep 2018 18:08:17 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1g2gtc-0003ZU-Oy; Wed, 19 Sep 2018 11:08:16 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1g2gtX-0001uh-LJ; Wed, 19 Sep 2018 11:08:11 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w8JI871q020652; Wed, 19 Sep 2018 11:08:07 -0700 Received: from [10.23.119.44] (helo=xsjedgari31.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1g2gtS-0001u9-WB; Wed, 19 Sep 2018 11:08:07 -0700 Date: Wed, 19 Sep 2018 20:08:06 +0200 From: "Edgar E. Iglesias" To: Michal Simek CC: , , "Edgar E. Iglesias" , "David S. Miller" , , , Joe Hershberger , Nicolas Ferre Subject: Re: [PATCH] net: macb: Clean 64b dma addresses if they are not detected Message-ID: <20180919180806.3tps6yukhm3ry43i@toto> References: <0997a0e77b5e5c04c9a4d277d702d93a1a8a7448.1537373294.git.michal.simek@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <0997a0e77b5e5c04c9a4d277d702d93a1a8a7448.1537373294.git.michal.simek@xilinx.com> User-Agent: NeoMutt/20170609 (1.8.3) X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(7916004)(136003)(376002)(39860400002)(346002)(396003)(2980300002)(438002)(199004)(189003)(97756001)(63266004)(26005)(9786002)(186003)(46406003)(106002)(33716001)(426003)(336012)(486006)(446003)(476003)(23726003)(11346002)(478600001)(126002)(77096007)(1076002)(356003)(106466001)(9686003)(305945005)(58126008)(81166006)(47776003)(6862004)(316002)(50466002)(5660300001)(8936002)(2906002)(16586007)(36386004)(76176011)(4326008)(8676002)(6246003)(54906003)(229853002)(6636002)(81156014)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR02MB4758;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT029;1:Y85dMTzS1/xVPYnB5oGzsfCEXiXeujbR78B5BD5n3PKE2EHEgnu9Ho9j0P58CQ4slgnjo9wSTFOXtCWqRe+8BiZKDjlcSu1QoXv4iv4F8tJ1Gor0oCAB1qFheiVkaznk X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a167bb6e-47ad-4ba5-0cbc-08d61e5ae041 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BYAPR02MB4758; X-Microsoft-Exchange-Diagnostics: 1;BYAPR02MB4758;3:zdaMVSLV2wpXt2qw95S3h7IXkQ/FAzeTm5EHaP9Mo3a0iR3chaXAIOB7ypyK/GXQcdLWWPgPDo6YMPcSjprAd33Afo4odD0nN2WpnsZ5unupNI0bSCh4iAbU/bkc80/qBEUaydFisWka6T+4ZWZ+qpPTFjZ7DBNDL8oINaKcDNdpS/ecq3RKbphfAO47K6lcLYOZKWC6Mx8RSs3JQ3xeuWRC2upXv63/kc5YqtIPsDNVP2qEnYjsTNzVE9N4+fPJqMDEEivQLV9Cmqlred1RmdpYLdyeeUX8rhtOYCbbUv2KXTcrc+xRetOckazGwDGvuXxjwy3DGs20LQ+IHMnefm3otosoBwaOYlkZc3FBxOw=;25:QCzzEiwa9j2+cw87fqBNaeahAT0/gZIXx5edJXK+4g0HDgm0dY12atESwwB/8uwaT5G8WQY/zs//ZWwXmhqOhRl65NztjsFFsqCTmtJt25e+nmgsXoMxWi4VooA+8lrqJZiKgzfteji4kMy7AJlxpcAqwDcgrpmuKzh79Yasolh3U181Ys96+WIgSxSi9LakX3egCj6dTR2GibfrB1wqZGKPPtA7mII0Act3Lq41yDSkwo7r/uA2tnG+0moQKGcj28DvnHZaWV+VrI/KXJqnDc1P3j+jYwJQiG1Ag6jjAiKtLRTtPgIxKIJ7RrFIAUL8FxnJeMei3OOrfT4FDgOOdw== X-MS-TrafficTypeDiagnostic: BYAPR02MB4758: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;BYAPR02MB4758;31:PQcS1hh+j9cE+pd9H6v7K1rzepvTcQ01bCjV4psGSeBIU8XbGbZYUQ2K7QCHHRCTWRGaIqnWzlThyw/hQQ3EJ7uKvEWIjmAHisoUXDjPAUFgGkR1hP3yxZBR0vAxXy3epBZIxmXVTF8RUxOO4sjt3LH8c3GH67YtHoI8agdNbK2U31eDiJd0pcFevIw9cB+AWAc91Ae7bgq6zInykmux88tlGB3wPgO432o9VoMAMW0=;20:aQ3BZI/Sbyzk2f8yBs6z0rXUXUixTAie6mamBKjejd+QTalB8fF82lKnazjw5Xx+rIz7hUIqN0AsWqrlBFLoUTZdlP78III3/kOn8BAJhqsIsi1rkFAy1egVOPAxf8QcJ8ppdEqiBXeK5zfpaMuNUs7DIVtyDSuUTFV86J0khoX+kNIQM34FdK+5I5zltaAJpsIGSTcbVaf6/g7b367/r5qOJF5LLNQoAydPDj0NZ/gLcCASkN1H6M+4sahPXvMtmnTIp//vxw6ODv/g2iHMvF4KuwKLjXhCoT7Wtw/eYpWEGw2bRtEkxa0jHv/9ZjOVW0vUrOS0BKHkSJrJK0E7+VD3K1IOe36GYz9X8VHBvCxiNN4euP5VlM0GxuvYsq7kDlO4RUXbqFMM9/cxkLIr7G71DzwS98Mgz8grgw76WzNpqTISr+14tMJRH+KRd330aHIu4d/fkSPdgJAYmerb3QjmfsJuQjWcy2BIXvbzDFnXQKUSgXyXB+374WDjfoh4 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3231355)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(201708071742011)(7699050);SRVR:BYAPR02MB4758;BCL:0;PCL:0;RULEID:;SRVR:BYAPR02MB4758; X-Microsoft-Exchange-Diagnostics: 1;BYAPR02MB4758;4:0sYFD0Yu8TdFEJIMZVofgNbHYDU+D6GRJ9jBPkV2aZJfkT//WdnaUYzdPzY1alXy0WQEM/i+znhteqX0+zUj4jJL5VJwlLY03KI2pzJCd5dHNrPwgweBwyXQsumj2GG/DUo/IEqXEtTvNyagnDGhD5MUTlCIy+aNwW6pOB1olfSb28JKvelNRcTr4mMttEpBNmNGa5XcIoYoZZ6qxjpqW0ehgwugFZohMtn+g4gwKLsaSm4oxwpEerRcqY4HXrYR+iKguKwEBaPMPROQgE2w/VeWdBNNBTfPnWP9dgT5JhKBld838hJpQnqlS7SPQ0BW X-Forefront-PRVS: 0800C0C167 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BYAPR02MB4758;23:Xy49cp0X6jkd04ntGguvsVqbsyzrJmrTjtV/XD+9G?= =?us-ascii?Q?gMo7Jrwz1SrWKgFklqOfTXqCIoVJE7rNU0ZqAWDCcU+ugjWkHDNNRFLRPL4G?= =?us-ascii?Q?tNG06+n5gCnVZoondY082LCEU2nyQtg9z1wruQyh9WTWyuYGKG9wgR5RbRql?= =?us-ascii?Q?vwAp9+5VN446QpmRGQa4BqMb+v6wcNtioTQn8IeItZcHMf2knEYbGhk/ifzk?= =?us-ascii?Q?v+P68rvlSne+QERSCvTl/1PPEHPU/2CGsQGeHJGFNKzckwOdi6SeIBChlAwQ?= =?us-ascii?Q?HjtgG55dnHP5Tz16l5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cOA4=;7:p3yh3hePZ9N7Nb/j+P4T08mcSyPXWbEhIGu6ZxAsv0oWkVTt8em4zfEqHO3JA7uORD1EGbNn1F3CJF0WeFPYKh4v/pgrmU2BT4Vpz2mUFX/lFwODL6vGO+Ov96Wnp+ZPs6AA94j7FoVgC1AzBppgKgkrISBGA/hL354mzvvv9tSgV6krXvJKgicBAmhUcsfjYwmwxA6RUg4oYirjk3T7RBD5m71PyrSd//J2LIWq3XGt7Wb7XOqHQ9SfmveK1rNK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2018 18:08:17.2441 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a167bb6e-47ad-4ba5-0cbc-08d61e5ae041 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4758 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 19, 2018 at 06:08:18PM +0200, Michal Simek wrote: > Clear ADDR64 dma bit in DMACFG register in case that HW_DMA_CAP_64B > is not detected on 64bit system. > The issue was observed when bootloader(u-boot) does not check macb > feature at DCFG6 register (DAW64_OFFSET) and enabling 64bit dma support > by default. Then macb driver is reading DMACFG register back and only > adding 64bit dma configuration but not cleaning it out. > > This is also align with other features which are also cleared if they are not > present. Hi Michal, > > Signed-off-by: Michal Simek > --- > > drivers/net/ethernet/cadence/macb_main.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c > index 16e4ef7d7185..79707dff3f13 100644 > --- a/drivers/net/ethernet/cadence/macb_main.c > +++ b/drivers/net/ethernet/cadence/macb_main.c > @@ -2163,6 +2163,8 @@ static void macb_configure_dma(struct macb *bp) > #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT > if (bp->hw_dma_cap & HW_DMA_CAP_64B) > dmacfg |= GEM_BIT(ADDR64); > + else > + dmacfg &= ~GEM_BIT(ADDR64); > #endif I think you might want to do this clearing outside of the #ifdef. If CONFIG_ARCH_DMA_ADDR_T_64BIT is not defined, we'd want to make sure the ADDR64 is cleared. E.g something like: dmacfg &= ~GEM_BIT(ADDR64); #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT if (bp->hw_dma_cap & HW_DMA_CAP_64B) dmacfg |= GEM_BIT(ADDR64); #endif Same thing for the USE_HWSTAMP/PTP flags below. Best regards, Edgar > #ifdef CONFIG_MACB_USE_HWSTAMP > if (bp->hw_dma_cap & HW_DMA_CAP_PTP) > -- > 1.9.1 >