From patchwork Wed Feb 27 04:19:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 1048660 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=netronome.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b="AmNKAc+r"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 448MsL4BRjz9s55 for ; Wed, 27 Feb 2019 15:19:50 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729610AbfB0ETm (ORCPT ); Tue, 26 Feb 2019 23:19:42 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:38040 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729574AbfB0ETm (ORCPT ); Tue, 26 Feb 2019 23:19:42 -0500 Received: by mail-qk1-f193.google.com with SMTP id p15so9089188qkl.5 for ; Tue, 26 Feb 2019 20:19:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E+5ZicjkzrbyIZree2ldhn9J5hOGMIqKbyHg8gdNvIA=; b=AmNKAc+r5eow2Kko6ZMx7QUW59hhpacB8rhyta5uyNDcdd/MydD6xNcgc9MXIeUPD7 HGGnrUy4nZt1T2+Ujf/AyRV6wh2L8TeAqGxR0Ctlu99s66ZqapfoIR1WHnUeKYKg0oRt Eu5S4QkQtKxT9t05u5pLHNGpGcnKtgqEALT2LKVxhMOVMsE0DKmQ760ToMXXDOC+pea3 /HpFaQ12t8dvNtMhqoJSfL1kXU1rWYPol73b5D81jCLwhXp/wCj6R+Ez2biYJrUmRQyX JAVawYxUO+uVbo0d2rCBNAAoHnm+dU+g0A7u9oyT4uSm6IaStkFznOZ3DQPMtGboYq/Q vVAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E+5ZicjkzrbyIZree2ldhn9J5hOGMIqKbyHg8gdNvIA=; b=FRVeJm++JASmpWpZv+b6nKlRZBEKCSAs6wTxr/uEdhuS5q/LWlpyjpdzb/tqRWZ8Eb dSki1FEubH3uIVh+56yQsgFFkB7i1z18XrCOuv4BDMCYTNzNdOieheWn6s4xQr66lSJy xOTQFqW3Snq4AHhZW+6AgIgE6wF1qnA1OpCQ8CYeTfeoIys/UawDDvZrLia0QyL9nmaH fIs9l1E5732CDWGsX7xUDlpvLEAvXP+qD4GVx2JYoqzwYKPp7VqoQv+imBewT97Q7SSQ 2kIxkWAf79tn2ge4TsqER8FIUiNk7vZbsHXYawINux7ikho1HABlKFeWFVoD9O8fpvzG X0vA== X-Gm-Message-State: AHQUAuZrofi00wQNa2ur4zFclGebUXjTIvM36edQnB0EAbk3HkrGjfNM 1kvrYnDuHHCA9ATU0iEMbVJk9MQBSMc= X-Google-Smtp-Source: APXvYqxIlbHumUFnoG0fJuTuAtx7fkrNfsMRmNHar1+RfK0EpDqRT20kKOtZ6vt2bo3C3S7QhdShNg== X-Received: by 2002:a37:d417:: with SMTP id l23mr755069qki.304.1551241181395; Tue, 26 Feb 2019 20:19:41 -0800 (PST) Received: from jkicinski-Precision-T1700.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id p64sm1497093qkc.62.2019.02.26.20.19.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 20:19:40 -0800 (PST) From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, oss-drivers@netronome.com, Jakub Kicinski Subject: [PATCH net-next 0/5] nfp: control processor DMA support and RJ45 Date: Tue, 26 Feb 2019 20:19:28 -0800 Message-Id: <20190227041933.15194-1-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi! This series starts with adding support for reporting twisted pair media type in ethtool. Remaining patches add support for using DMA with the control/service processor. Currently we always copy the command data into card's memory. DMA support allows us to have the NSP read the data from host memory by itself. Unfortunately, the FW loading and flashing cannot directly map the buffers for DMA because (a) the firmware ABI returns const buffers, and (b) the buffers may be vmalloc()ed in many mysterious/unmappable way. So just bite the bullet - allocate new host buffer for the command and copy. As Dirk explains, the NSP now supports updating all FWs at once which means the max flashing time grew significantly. He bumps the max wait to avoid timeouts. Dirk van der Merwe (1): nfp: nsp: set higher timeout for flash bundle Jakub Kicinski (4): nfp: report RJ45 connector in ethtool nfp: nsp: use fractional size of the buffer nfp: nsp: move default buffer handling into its own function nfp: nsp: allow the use of DMA buffer .../ethernet/netronome/nfp/nfpcore/nfp_nsp.c | 285 +++++++++++++++--- .../ethernet/netronome/nfp/nfpcore/nfp_nsp.h | 1 + .../netronome/nfp/nfpcore/nfp_nsp_eth.c | 3 + 3 files changed, 243 insertions(+), 46 deletions(-)