Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp159010yba; Fri, 12 Apr 2019 00:37:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1htsC+uPDKfxpe42UjFq8+/oDw6f+Jsy13xLpVF23JNTEGagpfUeIP1vT3YY0r+r/7KsZ X-Received: by 2002:a63:f212:: with SMTP id v18mr50312270pgh.231.1555054640262; Fri, 12 Apr 2019 00:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555054640; cv=none; d=google.com; s=arc-20160816; b=OiviZeL+Ky3x5/XRk+FFyY7fblO/MdBrWM/D9a7ikpbD41ZLYy8OK+YDsl+K2Gb7gf gYnOfp9SS7+ZlUxxs0U137gdXWMPyF9aC39fGjl7Hqz++pHdDr8rQBobPBp/0ZNO4H4q NViDNeT9j5+jk6AfqRc/XpE4rrZBHeavjxfwPG/xUfqmMhP6Uei9NlkaeHdjUosZiRJX oHMDyVDhhBdwYyqgulUjqh8uSfrB6vYpcvQ2AIS8ItCEFhp0qCNNf1WBQbHUaF/ndRh2 k79ETEGTJ4IInuak88htJMNtvwKmYwSIDnfEBVm7oYfD9b6vI1BJL5EdCcbh66QKztJm OTwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=NcfN+WqdKsh9W+OJkfbgdXyesiwTOONTaKELzou9GQU=; b=QEZLKJ0sDSMyt7Cxbfy9CNkhsM+5vP6nGaAD/nYfA5PjRR/p5jA1q+2xThpT4mknKb ktmuOYDLkpJaWDIDpTQ/lDBBLWranO41GmhkKnwaSPBaAaNJZUSPc1tUxaDciFvsRyFM wnBPg1k5SelWvz8E6wvSMrf2L8ftsxLWSmHes3JgVABs0c7gnGO0FXdOG85ulFh4OsqB vLqMLVrj+ZiGyVxj1BQHrxy96jFcfPfMT26Y5jTLTdO7SHMSBC08yoqZlkTR3Tbvqieg +X1soMzUvc8GVdposX+OrN7ewHPJQsZlqgu+XgigdUCdKxollODHlr6HBtbpkzb0DP0l 93DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=CvwCuHSU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j127si35734967pfb.25.2019.04.12.00.37.04; Fri, 12 Apr 2019 00:37:20 -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=@synopsys.com header.s=mail header.b=CvwCuHSU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727138AbfDLHfM (ORCPT + 99 others); Fri, 12 Apr 2019 03:35:12 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:46240 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbfDLHfM (ORCPT ); Fri, 12 Apr 2019 03:35:12 -0400 Received: from mailhost.synopsys.com (dc2-mailhost2.synopsys.com [10.12.135.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id 058F324E2587; Fri, 12 Apr 2019 00:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1555054511; bh=NcfN+WqdKsh9W+OJkfbgdXyesiwTOONTaKELzou9GQU=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=CvwCuHSUAfogOeSEpnwydmeSFK9spDhYKz/rbOsN6bVlHrhLnDDFhC1qRcUUgHCCo 0oQ2OGF4KALYVBCqjvXgNKygwjoeKViwwpKFFqax29SEiaPoO97Mb+HZv7g2zfLwk0 QifD05jDqB40+xiHITiOedwDCuxgLOZdLRAJEImisWPKbKd9PS0Bl6SN4vNTOVfVA0 S+y2rTmtgjHPX73/jEj9ow1MQJqllsAp3kJ291Vqx47dIebfioXqwv7/c3GGofiCEZ LqhiqLYdx2/8vA3JHdmeeVyYkzsAWVPHqupXAflypJHUg84fcWoM4KWQFpbEL5aGet 34ZH/N0RFs8ZA== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2.internal.synopsys.com [10.12.239.237]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 0B46BA009D; Fri, 12 Apr 2019 07:35:09 +0000 (UTC) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 12 Apr 2019 00:35:08 -0700 Received: from DE02WEMBXB.internal.synopsys.com ([fe80::95ce:118a:8321:a099]) by DE02WEHTCB.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Fri, 12 Apr 2019 09:35:07 +0200 From: Jose Abreu To: "Leonidas P. Papadakos" , Robin Murphy CC: Jose Abreu , Philipp Tomsich , =?iso-8859-1?Q?Heiko_St=FCbner?= , =?iso-8859-1?Q?Christoph_M=FCllner?= , Maxime Coquelin , Alexandre Torgue , "netdev@vger.kernel.org" , LKML , Linux ARM , Klaus Goger Subject: RE: [PATCH 1/2] stmmac: introduce flag to dynamically disable TX offload for rockchip devices Thread-Topic: [PATCH 1/2] stmmac: introduce flag to dynamically disable TX offload for rockchip devices Thread-Index: AQHU6Ld2BNOIyyJamEeC//pMtZni+6YnhciAgAADZICAAAGHgIAA920AgAAfNACAACI8cIAAipiAgAALMwCAALjx8IAAYG+AgAAFvgCAAASDgIAC4/OwgABi2ACAAAQmgIAAAsSAgAmYDQCAAM6qYA== Date: Fri, 12 Apr 2019 07:35:05 +0000 Message-ID: <78EB27739596EE489E55E81C33FEC33A0B4566A9@DE02WEMBXB.internal.synopsys.com> References: <20190401181840.31255-1-papadakospan@gmail.com> <9d65a22a-2288-dc53-0059-ec4a31424dd8@arm.com> <2312344.mOsv7YkeBG@diego> <9EC67532-2D43-4AAD-BFA7-8B6797067427@theobroma-systems.com> <78EB27739596EE489E55E81C33FEC33A0B421348@de02wembxa.internal.synopsys.com> <4a9839d6-3d90-4354-7b64-78d5c1126e99@arm.com> <78EB27739596EE489E55E81C33FEC33A0B423811@de02wembxa.internal.synopsys.com> <1554245296.1271.0@gmail.com> <78EB27739596EE489E55E81C33FEC33A0B4254A0@de02wembxa.internal.synopsys.com> <1554305721.1328.0@gmail.com> <1554306954.1328.1@gmail.com> <78EB27739596EE489E55E81C33FEC33A0B44985F@DE02WEMBXB.internal.synopsys.com> <1554488052.1193.1@gmail.com> <85c1d945-d49b-3350-6ff4-a058c5a8c1d7@arm.com> <1554489537.1199.0@gmail.com> <1555016970.28872.0@gmail.com> In-Reply-To: <1555016970.28872.0@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.107.19.176] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leonidas P. Papadakos Date: Thu, Apr 11, 2019 at 22:09:30 >=20 > At this point I've settled on snps,txpbl =3D <0x20> by itself. > If I increase the MTU from the default of 1500 I get a stack trace and=20 > link reset almost immediately: > (https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__pastebin.com_raw_= 5JBtfWei&d=3DDwIBAg&c=3DDPL6_X_6JkXFx7AXWqB0tg&r=3DWHDsc6kcWAl4i96Vm5hJ_19I= Jiuxx_p_Rzo2g-uHDKw&m=3D4VBEjla4XZR8-m8v84wV5TnhbHyIvTniApjuk2XMoS8&s=3DpiZ= 9ECO216D0lthteXLpCiOvlHwJhq-x_pBKChT274Y&e=3D) > whether TX Checksumming is ON or OFF. Can you please share the stacktrace here ? I can't access pastebin due to=20 corporate policy. If it's a queue timeout then please share your "dmesg | grep -i stmmac"=20 since boot. >=20 > That said, with the default MTU, I get better speeds when TX=20 > Checksumming is on and the PBL tweak is set. >=20 > Is there a better option in the horizon for the near future? > At least for the Renegade (the only board I have to test) it can serve=20 > as a temporary workaround. > Should I make a patch to replace force_thresh_dma_mode with txbpl=20 > <0x20> for the Renegade specifically? >=20 > In any case I would be happy to help as much as I can to figure out if=20 > it's a board specific thing, or SoC, or even an issue of the Ethernet=20 > device itself. This is not a workaround neither an issue. It's well stablished that PBL=20 setting interferes with COE so one must choose a setting that depends on=20 FIFO size. I would like to make it automatic in the driver but I didn't=20 have the time to submit a patch yet, sorry. Thanks, Jose Miguel Abreu