Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1368388pxk; Thu, 10 Sep 2020 13:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT4IN5q/DjXM5q2OZDzc4IdB+jwRDaiclVbCNaZmXRw6XEJCpr0FT+qF+Ri57wo/YOvNVH X-Received: by 2002:a17:906:ca4f:: with SMTP id jx15mr10597202ejb.454.1599770360239; Thu, 10 Sep 2020 13:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599770360; cv=none; d=google.com; s=arc-20160816; b=E3+SFB/oZI8uROU2+w1HQpamZ+q5iVk/EXeX8zz1EOiOObagegVgYDGgNaQUEkMFNh I3gf5I4kWwthAl+cHmEy77Ia3F9ECf2Xsadk3P1HrfVBRiST3BTzJPXF0YbYIQOD2Gve NKN80MO6wJn9xuXVSuC6WIgL0iOJnzNKBQ49dsf19u0Y20onZ/ZyDukFmC7bt8Hmaefi V5aa3mI0KmLlHllocxyII1q+BlTO+4Xv10diaB9jslQg6VZRrXvQqv26ODX08P2Xhmj+ L5wokxR6Ek4CfQM1SjrFwzeGQCaGQyDk1C54kWvh3ym6tW2XLQ12OFKe707jBcOxf8ab kZEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8LiDEfXSWfpsbBSoq6IWpeigMyRkjdi4v6vinxD3gBY=; b=0PSigM8kZz34ziAaaKeqRomDI7UqUHjbLWqXHqYAPrC8E3cB4c8OJoxOQlDLMN0Upx yUdMJcxLuXsbkSKeUiTlD2ikdD4x1QDlUMQuUsVyEchJ6hL5SgzHvoCjcDsVPi5jOpQw r5dRjBkVmBZzlsDSQYDugsUae9SCUcJbUBH8o7Ea6Vz5K2QqVSnCHpfpBnOU6c9kkgxm nAEzkPojyV5GUtDnQtB/kO1y/69k4rErgrQV13DLPJ9HCJyzE/Th53YI5T16jbbTHlII m1ba3R9ql8r0IINevAQpPsgJLIBDLbkWfu1tJOfzlFIsQGps0pKlbryMjpraWCQIdbH6 vPEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FabsM6mH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si4461915edp.364.2020.09.10.13.38.56; Thu, 10 Sep 2020 13:39:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FabsM6mH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbgIJUiW (ORCPT + 99 others); Thu, 10 Sep 2020 16:38:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbgIJUbD (ORCPT ); Thu, 10 Sep 2020 16:31:03 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA2DC061573; Thu, 10 Sep 2020 13:31:03 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id m12so6532382otr.0; Thu, 10 Sep 2020 13:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8LiDEfXSWfpsbBSoq6IWpeigMyRkjdi4v6vinxD3gBY=; b=FabsM6mH8zl+nq3wFo2aBTClQ77IW9YtTEQFjPcUypqarW6Iii0RBqd67QFSN9BuFu VZIqrihaQjBjdDfqPFldmfMLxe12KhJz6DD6rvh8lXjCJ2JMOPSew1oK7YtjtdGuuVFb /sfvaxRn8ZJy54x2Re3L9TlWOFoBX/xtitpeYmbSxYcSkf9QUQq7VXu+QXyYcFunHp2s 7Zhd+zWAP/cqQVXHQjf0b66oadOYLZYPes0gQ/D4mqlYx3MYzr1bS5FBdS6d5r5H3k5l fECRvuuR1tHGOp0bKkR1nGOilK6OAFT8Tiedz8ao63+B0rNM1KVwHz+Op9o96yHZEyHi xpzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8LiDEfXSWfpsbBSoq6IWpeigMyRkjdi4v6vinxD3gBY=; b=finJoVG/cqrjPnjmSTE5rDwS48uI68DkE95vYNKPzsMCzKB0e+JZjcqyLSDPJlvQy1 nZu8nx5d6YC+VVWG86x+dO8lbP0oJ6nKx+yePwfUG4rM9dnYS71H7j+Rl4NJoMF6wI5s oAlX6HKEtL0If4ozVRifQqZr+5S4TqBaB4bAHMNzty9OJiDphQWq2gIDjdcB1y+WT1Gf gw4cXyQU7iVNuMuauXyVvdEU+5B1SRjsdS8qYr1EqGPgl86wnNbpX1W9sv3gnuyLC2hQ ZFf22VGxnVbVVkmympjLju7sv6RsmrFyq9tIyuQd7zdQ/w2zx9GpPc5WDWbdamh0D1Zg 02og== X-Gm-Message-State: AOAM5319B2KLVd+dH2fOjlLkDBuGni6DRZX1Qk0e5VjYBBHJaL5ZI1PZ BBnf9WAkaj7KvwD0Nx3X6gxwrnTkaDBuFjSLB6M= X-Received: by 2002:a9d:6d95:: with SMTP id x21mr5300130otp.339.1599769862040; Thu, 10 Sep 2020 13:31:02 -0700 (PDT) MIME-Version: 1.0 References: <20200910161126.30948-1-oded.gabbay@gmail.com> <20200910130112.1f6bd9e9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200910202513.GH3354160@lunn.ch> In-Reply-To: <20200910202513.GH3354160@lunn.ch> From: Oded Gabbay Date: Thu, 10 Sep 2020 23:30:33 +0300 Message-ID: Subject: Re: [PATCH 00/15] Adding GAUDI NIC code to habanalabs driver To: Andrew Lunn Cc: Jakub Kicinski , "Linux-Kernel@Vger. Kernel. Org" , netdev@vger.kernel.org, SW_Drivers , Greg Kroah-Hartman , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2020 at 11:25 PM Andrew Lunn wrote: > > > Can you please elaborate on how to do this with a single driver that > > is already in misc ? > > As I mentioned in the cover letter, we are not developing a > > stand-alone NIC. We have a deep-learning accelerator with a NIC > > interface. > > This sounds like an MFD. > > Andrew Yes and no. There is only one functionality - training of deep learning (Accelerating compute operations) :) The rdma is just our method of scaling-out - our method of intra-connection between GAUDI devices (similar to NVlink or AMD crossfire). So the H/W exposes a single physical function at the PCI level. And thus Linux can call a single driver for it during the PCI probe. I hope that in future generations we will improve that, but it is what it is for GAUDI. I don't see how to do it otherwise currently but if you have ideas please share. Oded