Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp580499yba; Wed, 3 Apr 2019 14:59:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVwjWqyyBjfDbiHpQXtVtyp09plGJb14pDF8uKPg7LThHCALCN3qxm/zRJL4bXI31CvdNk X-Received: by 2002:a65:6645:: with SMTP id z5mr2068430pgv.251.1554328769558; Wed, 03 Apr 2019 14:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554328769; cv=none; d=google.com; s=arc-20160816; b=YyGvmgHSu0McO+3vukpWKHtSc/lgqzgUQ73DV0oWCzmrm60b399hxMovhXyucOGHY6 ek6taMGclYZqLx1LpcDu7Qs11b3asJwKz2Z21vzVsjwPuG0K1cCy4iT1zp8KERolmO+q kfMiZY6iD6JgSrZXdJUIoTGlD7wWeU3489oTZBRqb4/412zrEDbZSlGZ6Li+fhUz84sN MfRX7qfe3TuFqtaGcBtmqB8uWc5Er71zixf2W6saJBc8CJKRxdYWLEVjcCy/ONs6d5Vl jVpgFFoM7sNXZRaIS1RrgB72E+SfAoPUlPQBqxHq0kHrSOYw8B7lVPDTzWnwm3sO0Y8b 17gg== 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=zPLIGb6g6rj4i6F0vOtZsqioM1Xg9bOE7dSX1NmXK20=; b=nCbiX3cTurkpKfX7u1vpELGbYk0koMx7RRmIkgS4YQtgpmkXr5CHCLe7ndiJwQPEJw XtO84h6N7GBNkKhtTQ4MzNQ01xrIUZ+vHROc5tHK8gaztu53FNcQ2+jzkPtY7/ZTS6qg 0uBeN5+TZQ9LuTnuWCUIZoTdm0hAh3ACPh3y5jrwbvO6yMEHxarXNuSrT9qNfQtrZhoF Bz5YP2KfNP/6FP7I53xJq7vf4v9JesqKykq2spxgpLUb19uoG2MJOV+g4N7f7bJgr2Lr IeymRmjkZcFSKVmQmUsVwQng+PaFDs4jQrKqSYJOSiKKVACKxSAC06kLu5XPbVr6Zjwm KztQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JJcND8pH; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f36si15007069pgf.332.2019.04.03.14.59.13; Wed, 03 Apr 2019 14:59:29 -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=@kernel.org header.s=default header.b=JJcND8pH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726329AbfDCV6i (ORCPT + 99 others); Wed, 3 Apr 2019 17:58:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:37338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfDCV6i (ORCPT ); Wed, 3 Apr 2019 17:58:38 -0400 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 33B0E2084B; Wed, 3 Apr 2019 21:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554328717; bh=n9MizSFifBOp4+iFqTCqzgnorratvlaGO2SLnCeWxzY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JJcND8pHcNsNKLnL4Y2EOP9KOi/cTEeMqqK6LJv/0FE0uzHlNzW3UxKpopBcQhDx+ C+DA7nrXN93nSORoPnRO8qKsXf/7j6RQboW7dh80dUZnkntPjzMu+GX5F+0UOoWAxn MNpbBARe8C/zlr38fK32G55MMoFCCp44d+i0jN7Q= Received: by mail-ed1-f47.google.com with SMTP id h22so301367edw.7; Wed, 03 Apr 2019 14:58:37 -0700 (PDT) X-Gm-Message-State: APjAAAXIdA7GeUSHkXQvn/CciP1BGwdMfju6/y01IDfQZgQ/EgQgoSVZ TGvfcAQaCe5dlp/bjiEE4VQwineb3BjTAaeurLA= X-Received: by 2002:a17:906:b84c:: with SMTP id ga12mr1123602ejb.253.1554328715752; Wed, 03 Apr 2019 14:58:35 -0700 (PDT) MIME-Version: 1.0 References: <1554243943-25507-1-git-send-email-richard.gong@linux.intel.com> <20190403142022.GB5752@archbook> <20190403164742.GC5752@archbook> <20190403200800.GE5752@archbook> In-Reply-To: <20190403200800.GE5752@archbook> From: Alan Tull Date: Wed, 3 Apr 2019 16:57:59 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv1] fpga: mgr: add FPGA configuration log To: Moritz Fischer Cc: Richard Gong , linux-fpga@vger.kernel.org, linux-kernel , Richard Gong 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 Wed, Apr 3, 2019 at 3:08 PM Moritz Fischer wrote: > > On Wed, Apr 03, 2019 at 01:37:51PM -0500, Alan Tull wrote: > > > > > > it's state, not status for most fpga manager drivers. It should > > > return 'operating' if everything went well. > > Yeah, sorry :) > > > > It seems like there's a possible scenario where the FPGA starts up > > > with the FPGA in 'operating' mode and the user messes up early enough > > > that the state doesn't change. > > Huh, then we should fix that instead? :) > > > > > > > > > > > Personally not in favor of extra messages, but if we do it we should > > > > change the message to "Sucessfully programmed FPGA". > > > > > > > > I think making it a dbg message is a good trade-off ... > > > > dbg vs info... On the one hand, it is a usually a message the > > developer wants to see so the developer would turn on debug messages. > > But then again FPGA programming doesn't happen that often and it is a > > kind of significant event since it is your hardware changing i.e. it > > won't add a lot messages, but it is sort of an important one if it > > happens. If the system crashes after a FPGA reprogramming event, it > > would be good to have this in the log by default. I don't want to > > argue too powerfully for adding extra messages though. Is this a case > > where info is worth it since fpga programming is significant? > > In the current setup, it doesn't happen often. Going forward people > might have use-cases where this happens a lot more often. Yes, then adding the message could become very spammy. > > I mean if y'all feel like this is required, sure, I still feel people > shouldn't rely on dmesg output for functional verification :) I agree with you that using sysfs to see what state the FPGA mgr ended up in should be adequate most of the time. We probably don't need this. > > I don't wanna guarantee that this message is gonna be there always ... Indeed... Thanks, Alan > > Cheers, > Moritz