Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp36444imm; Thu, 16 Aug 2018 15:02:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzbsdb1l1w6RblGhj/INscFjxtywNybhjPLKDeXxSiCK1X3RfgnDBpTZdi2oIXinWNIQL61 X-Received: by 2002:a62:1756:: with SMTP id 83-v6mr34392127pfx.217.1534456962108; Thu, 16 Aug 2018 15:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534456962; cv=none; d=google.com; s=arc-20160816; b=SAwERwXypDrhgZNLLRJ3Cq822yoNT9yzPPK6iBI1NWbqx35rcejRMaJlzunwIIZRda IHuwTfHrz6LVvyUwMSh2I/sOsUWKbsPRxaLU+iIALB8ZOajZrLgC53SC4ltApeM3jsvs 9SNPu85XghqLqd9lFsSsHjiiVCFgEOMGfqsiCO+DIswDQOgkKmnFPhYfjGBKrRlkAefx 3RWbFMGABZEKsXmc/yYsdgGxm1TJkUO9xEzpu5Qhem7lMClQo49qYE+RLyNzC4S/x2M5 /Mr1afGROR+JEDNguLLRZWFO0+OkBvKRQhdWt+QB/ogFdR0STBnkfUwA7rMsSyQlBWSw wk4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=w9AkNs0FkR1w/3GFu1Vzzpy+TZydMmyeI+LasrmjPfc=; b=Ni3qdaNBmx3PgxS1EBRE5NUmSWl6jyFWKg+oCNfvUZdsTWQpfujIvph90VCcxy8Ab3 v9qP/VaRj5+L2bSKJeH+0LDZeB4hp/+4oS/nRKKCpgANvLtlZgGrYtkzengikZomSQEg X1cTleU79+nG5NFWOtvkmEBzHFkbFx3H0x+jBTUeGf17aTGDizWBmyFdZSeeaI+7i30Q laqi7HjgMJRYRkxru4oLRCORWDdps/HVu2zmi+Hqzhzn/i4I/hjzUrm7JrMp4QUU5dz5 LZeQc1dC6s8unAZgMIxJrHwaD+wWs9dADcVF+LCQJeJrTAKnXjV2bkiQ3P/CBbLBbOvO Br5w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si413966pga.30.2018.08.16.15.01.53; Thu, 16 Aug 2018 15:02:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726004AbeHQBB1 (ORCPT + 99 others); Thu, 16 Aug 2018 21:01:27 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:33913 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725915AbeHQBB1 (ORCPT ); Thu, 16 Aug 2018 21:01:27 -0400 Received: by mail-pl0-f68.google.com with SMTP id f6-v6so2729597plo.1 for ; Thu, 16 Aug 2018 15:00:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=w9AkNs0FkR1w/3GFu1Vzzpy+TZydMmyeI+LasrmjPfc=; b=NTAvmeUMdwX+hrmkJIVD7wsYEHC3Rr44BFhu7aDbXGtA8ujJVr6xscVP0crPt12n7o ZTGZo0ZD5YiWmRZITwxsnZ26SV3KnSZG0XztlIGJzr/iwi5lFUd7lf5H4B8o0/N7+72f CKO6GDQcGdiFJkfq2gNs9eCOpb5CiDhCwPCM9ut7M+jHIjLxH6XKzNunbJxsQRzhMPIK r/9+HTO+7AtPgdtvkD6iDeeWYiLG/msBvxEqnW3D8V72v6BFr35yhAfO4TTS2CoqKmsR wUz3fXXclEzOyDtaT/8YNuoGB7heBIot1Dft3VzRlU2Y4L59Xr4EwNsIrCcOFnakshhG 7amQ== X-Gm-Message-State: AOUpUlEYpWRqKTDSYA+oy7ujOM3UM3bvKEOAGUTScxZAPnplBtVTb6bZ yhYnZBwoIs2ksyR0LzLwtTtW3A== X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr30294114plb.172.1534456837215; Thu, 16 Aug 2018 15:00:37 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id 64-v6sm358841pfi.89.2018.08.16.15.00.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Aug 2018 15:00:36 -0700 (PDT) Date: Thu, 16 Aug 2018 15:00:34 -0700 From: Moritz Fischer To: Federico Vaga Cc: Alan Tull , Moritz Fischer , Jonathan Corbet , Randy Dunlap , Dinh Nguyen , Appana Durga Kedareswara Rao , linux-kernel , linux-fpga@vger.kernel.org, Linux Doc Mailing List , Alan Tull , Matthew Gerlach Subject: Re: [PATCH 2/2] fpga: add FPGA manager debugfs Message-ID: <20180816220034.GA4431@archbook> References: <20180815220958.3606-1-atull@kernel.org> <20180816185952.GA3932@archbook> <1841468.1pWPcT6Du7@harkonnen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1841468.1pWPcT6Du7@harkonnen> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Federico, On Thu, Aug 16, 2018 at 11:21:32PM +0200, Federico Vaga wrote: > Hi, > > On Thursday, August 16, 2018 10:04:51 PM CEST Alan Tull wrote: > > On Thu, Aug 16, 2018 at 1:59 PM, Moritz Fischer wrote: > > > Hi Alan, > > > > Hi Moritz, > > > > > comments inline. While I see how this is useful, I have the > > > suspicion that from the moment this gets merged vendor kernels > > > will just default to use this ... > > > > Yeah, I have that suspicion as well. That's probably why I sat on > > this and didn't upstream it for 2 years. But on the other hand, I > > keep hearing of lots of cases of people implementing this > > independently anyway. At least if it is debugfs, it makes it clear > > that it's not intended for production use. > > I'm one of those guys who implemented this independently. We all have in one way or another ;) Most people on ARM run an out of tree patch using devicetree overlays these days I hope rather than /dev/mem and UIO ... or other vender solutions... > > @Mortiz > I do not see how this can be a bad thing (from what you wrote I guess you > prefer another interface). Which interface to use depends on the use case. > If you have this suspicion it's, I guess, because such interface it is > extremely easy to use. What happens to a kernel driver doing MMIO with devices while you reload the entire FPGA from userland? > > @Alan > DebugFS can be a first step, but I would go for a normal device in /dev at > some point. I do not see why this should not be used in production I'm not against having a userland interface to reprogram the FPGA, the Intel DFL code is a good example of a sensible one, doing so in a safe manner. Ideally we'll get around to have a more generic interface, as we get time to work on it. - Moritz