Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp506420yba; Wed, 3 Apr 2019 13:09:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeph0WHlxhF8JVBeZemSaZM6SSEKc/N0x4Ps4nl0DBUpijQSDL/xqSVWf3x/HaIe0anSf0 X-Received: by 2002:a65:53cb:: with SMTP id z11mr1578025pgr.139.1554322148465; Wed, 03 Apr 2019 13:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554322148; cv=none; d=google.com; s=arc-20160816; b=nXEi+6GHXD6aF92mSbajmvYhGtHbk77fyIiHnxlroomiMKGyrri+ojCYsHID5fQc4O ySeAI4du7EyTJpevwP5JtC4nuvReAaRu0+cuBBkuBhT0n/6ChFoe2cMBTbCA1flO7htw klvHzBfzoDVaBfy7cSyK+NHLvCWmWHWwIpbdqmMwX7ngXL7d2+EwyFEXGCvrh/o4BJ4m UJAZUkNb3GFhDDqLv8K4zo+v0B/XsfMkMJqXhByB/iEKdZcl6UsWsBrSyBEifCaP025O nn+g/s1CAWJhb7kBi2Z2r6p33Gp9wwKrDRdNHhVLH034jORpY2Xp/yuPztmAH1yeOYHZ C50g== 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; bh=uHKSmpJ6TEB5Q5rJL9DUphvSnMeX0tQN907vAl1IddE=; b=BrE0zNQPO8i7pqumUVqjdgYhS1IJbbE3+AfXoxWIGaBIRi6SLNvIHEkmF4BWcR057D b2ncuXb7tIbYzGq9KcfmaYq0+uriFupYuiiQCtdF8R7nbmmv7mZG9XgYzBe+DDYDTlb8 tj5oC+xj6I2SRcrHW6AObesC1bBFT6Ep3jHpFNN79saDnRR9SFFpFQqiHtDunXTLCS1j w8RtBiQZlp5Ds4eVYoZmaFbsTCzUzbUyNHXDQA737v0kyZxDAGizLhB0Bh6E6vHUUxe3 fNqmtEsWCcN6lh/iVnSgn1doj4sX1FCsiH200JjRrGniCDrbg9jkuw4qnZS/ULXnYZj8 oCcQ== 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 d11si3696122pfn.171.2019.04.03.13.08.53; Wed, 03 Apr 2019 13:09:08 -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 S1726607AbfDCUIE (ORCPT + 99 others); Wed, 3 Apr 2019 16:08:04 -0400 Received: from mail-ot1-f54.google.com ([209.85.210.54]:45381 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbfDCUID (ORCPT ); Wed, 3 Apr 2019 16:08:03 -0400 Received: by mail-ot1-f54.google.com with SMTP id e5so133323otk.12; Wed, 03 Apr 2019 13:08:03 -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=uHKSmpJ6TEB5Q5rJL9DUphvSnMeX0tQN907vAl1IddE=; b=hvLHTcuAgVVOsICWnJiewXBqX8y7qnB7xDPF/YK2mYjqXlXKppWDoRp1lR93bjbrRU WwcxuImNhdRW4/Qr8XY7UkatMC2hih0JXYnUelM6QXgJZtbz50KlHV2LC9moC7yg8bg6 KTKNLwZLAj9XPCNjBE45Xga53VxQBT64uVcuQezzmbfHLffAJQXEPpBj7LYsQYSK/zz2 pSPa++zn8CeQmuThXX/Ch1GlASxitYzLxV35oOb5hAYYLdgv6dhT8lIIr20dh6oC96TV P4KLQNgJBUOedkQRy+26gzzD/JCC+FUklAl/BDzXNxFua2fLem/PqAhT5jotD2qo7pPS 160Q== X-Gm-Message-State: APjAAAXCBeCt99t5ZPWGjIXWQm8Yz6N7S6eb8ohMIz7JHspt6tC/GoV+ yZm+tANB3vQ/bkxc99c0QRM= X-Received: by 2002:a9d:600d:: with SMTP id h13mr1326807otj.114.1554322082589; Wed, 03 Apr 2019 13:08:02 -0700 (PDT) Received: from localhost ([130.164.62.212]) by smtp.gmail.com with ESMTPSA id m124sm7111978oia.3.2019.04.03.13.08.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 13:08:01 -0700 (PDT) Date: Wed, 3 Apr 2019 13:08:00 -0700 From: Moritz Fischer To: Alan Tull Cc: Moritz Fischer , Richard Gong , linux-fpga@vger.kernel.org, linux-kernel , Richard Gong Subject: Re: [PATCHv1] fpga: mgr: add FPGA configuration log Message-ID: <20190403200800.GE5752@archbook> References: <1554243943-25507-1-git-send-email-richard.gong@linux.intel.com> <20190403142022.GB5752@archbook> <20190403164742.GC5752@archbook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 don't wanna guarantee that this message is gonna be there always ... Cheers, Moritz