Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4999098img; Tue, 26 Mar 2019 23:20:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpVRbD6e/mUeOPZHwmHIaVuzD+cwxhqBLZQLrg0m782QvWSnUU2+sYKVwrUN8PxESJlEJB X-Received: by 2002:a63:6b89:: with SMTP id g131mr19125581pgc.438.1553667609900; Tue, 26 Mar 2019 23:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553667609; cv=none; d=google.com; s=arc-20160816; b=hrbxcQhb9gvgpP+aSs9mWUHLA1zItHql+LxplR8KbwlmK+JpiqWxYsYKD9f90eQsrW eBeXpJvWnpcx2kcMiBnJXA+oy7nzvqxNDMuHsYmWutd5pN3l8AByDuLkTXAYeDMArw+c +PpZJWQJSZgswKPz6DybC0TzlZSj3p8fQGdfyBzo396uHxZ4HkOG+UDgsxcu8gSdV1Gr 1u1wMtBIZIHlt45ZGEDkxcg8KCWSPwItI1L7BLqfEgT/2pGO9c7OL4ly50ZN8QwVxcDN 7/sHtKsoRo/7wOaVWRwDflDY83TwrUnJsVH9sdqvyk5AHg+96Bk2wUV2nlDrlJqfoKMK o1Pg== 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=ghf9wS8PcBTL7w6vTlgOJ9bC2Jev82DESlJaNkh5dWw=; b=iJROJEEkmOeTBzG+TNqO3heU3qSJIEvklyYnn9/l+CzO30m8IraLXFEtk0bcXI/tUN MWZOV1lsv3gcsn38MEdPesq+tojT7lGreg8mcL6ME30QkJOQvInReIX146rtpiuhVMds fD2FehcFfSIkeHzqXz6xFDVWnh2hTLXJRsSLTm8gkJkelikv/lsPEaPdVsuf67+cEK6S /dx+kAX7K6peKbuzpS4JYgTgM/wwl5TnEhrArJ/UtesqkJxJ6UEzIWBpMjxp71JIq7GX 0gJo3kK5O1mY0JZPM7h3DRUVHUVBpQNGdRtDQIo3g75bcAcN7ETOYUMLnXDBAMJyj509 jzew== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si17762777pgc.312.2019.03.26.23.19.54; Tue, 26 Mar 2019 23:20:09 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733018AbfC0GTB (ORCPT + 99 others); Wed, 27 Mar 2019 02:19:01 -0400 Received: from mga14.intel.com ([192.55.52.115]:15861 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbfC0GTB (ORCPT ); Wed, 27 Mar 2019 02:19:01 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2019 23:19:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,275,1549958400"; d="scan'208";a="331042090" Received: from hao-dev.bj.intel.com (HELO localhost) ([10.238.157.65]) by fmsmga006.fm.intel.com with ESMTP; 26 Mar 2019 23:18:58 -0700 Date: Wed, 27 Mar 2019 14:03:34 +0800 From: Wu Hao To: Scott Wood Cc: Alan Tull , Moritz Fischer , linux-fpga@vger.kernel.org, linux-kernel , linux-api@vger.kernel.org, Ananda Ravuri , Xu Yilun Subject: Re: [PATCH 03/17] fpga: dfl: fme: support 512bit data width PR Message-ID: <20190327060334.GA13084@hao-dev> References: <1553483264-5379-1-git-send-email-hao.wu@intel.com> <1553483264-5379-4-git-send-email-hao.wu@intel.com> <127a9356a7bf597d35dd361f2b16bf80460f0370.camel@redhat.com> <655bf2991a4f8bf6a473c91218d6dba7748520aa.camel@redhat.com> <580c6c604d3915c105f076fc7f22ab5da98598fc.camel@redhat.com> <20190327043743.GA20968@hao-dev> <29827fcdcdd4fb46b680a6bd184b44fca638666e.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29827fcdcdd4fb46b680a6bd184b44fca638666e.camel@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 01:10:31AM -0500, Scott Wood wrote: > On Wed, 2019-03-27 at 12:37 +0800, Wu Hao wrote: > > On Tue, Mar 26, 2019 at 04:22:34PM -0500, Scott Wood wrote: > > > On Tue, 2019-03-26 at 14:33 -0500, Alan Tull wrote: > > > > On Mon, Mar 25, 2019 at 5:58 PM Scott Wood wrote: > > > > > > > > > > Hi Scott, > > > > > > > > > On Mon, 2019-03-25 at 17:53 -0500, Scott Wood wrote: > > > > > > On Mon, 2019-03-25 at 11:07 +0800, Wu Hao wrote: > > > > > > > +#else > > > > > > > +static inline void copy512(void *src, void __iomem *dst) > > > > > > > +{ > > > > > > > + WARN_ON_ONCE(1); > > > > > > > +} > > > > > > > +#endif > > > > > > > Likewise, this will be called if a revision 2 device is used on non- > > > > > > x86 > > > > > > (or on x86 with an old binutils). The driver should fall back to > > > > > > 32- > > > > > > bit > > > > > > in such cases. > > > > Unfortunately revision 2 is only for integrated FPGA solution, and it > > doesn't > > support any fallback solution (original 32bit data partial reconfiguration > > is > > not supported any more), so driver has to WARN in such path. > > >From the commit message it seemed like this was just an optimization, not > something necessary to support revision 2. > > If there's no way to program the device without AVX512, then printing an > error message and returning an error to userspace would be better than > WARN_ON, since it's not actually a kernel bug. Fair enough. Will do. Thanks for the suggestion. Hao > > -Scott >