Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp771480ybb; Thu, 28 Mar 2019 11:51:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbzUTc1FBoqug98feMAye8f6TNCU621bk9bKpO1YgvyJlXuj5XysMm6ZoxoILeAPdGTOcf X-Received: by 2002:a65:6241:: with SMTP id q1mr14014727pgv.244.1553799105252; Thu, 28 Mar 2019 11:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553799105; cv=none; d=google.com; s=arc-20160816; b=F1JVJ1N93cW2qy0HCeLj7ZBmTJFijnWbYZwLwasRjvkRcDUbFCIJQf2c1DHHUhPbO5 BwWFaWlaIGDajm+CJ2ZxMutwR5LI4n4unVZqNe5BFj9Y8eqTIkRrR6ZQaP6t4cEebicz m6VnAAFG/Evbg/zeYISsAU2tJcZjgy/RtL/NdXmqsZzeQyO46lejqlYapE3BjIhexqYy ALYiAavISRRAmmshLuHbdPjZq+tOVX8eSGlBUpyqOrXIi8mDuX4c+7kJvHx07YOnpq2T P0KqVyR1WF6oyyYpPwoY3FKj8uWS4S1PSWyyKNrKsWKimSL+/RX57efkpLyJZLFHXBwC UeRg== 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=nWB8DdTWcPAdApx9TMg8UTUSTSHFU8nghgpm1GMhY/g=; b=vF3QzLrNeX2OVdJVASrG8XOrAGlRhxunnFNpSUc2gEVyR1olSorObWOgslOVnxRJrl uS7Gy23emt+ky0Awv0OM81mXKe1Q/dezYlcOSOwOlPdT/iYvk2TWvLgcDqEVSZ1hQ5Aa dqxz1oVzcr609ARD/k84vHZji9a7VMqFWgBjhNlI/oRN8XUbj4cdK1D+18fuEiic/bBC jfy18QQkkauFhe10jgjj3bteRJS8SsR0YxzdLOaTjTlfqAVgQkoLC6QEb9U+U+eyy0TR PcxYEdOiv/LSr+fvm/u4jnMSPlQwbnclg0to+z2xo53AUplkcnbwbktnOkW0N4Er1L80 WQHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mCHKJTDW; 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 m30si18498189pgb.493.2019.03.28.11.51.29; Thu, 28 Mar 2019 11:51:45 -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=mCHKJTDW; 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 S1726164AbfC1Suv (ORCPT + 99 others); Thu, 28 Mar 2019 14:50:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:43084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbfC1Suu (ORCPT ); Thu, 28 Mar 2019 14:50:50 -0400 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 8CEBD2173C; Thu, 28 Mar 2019 18:50:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553799049; bh=nWB8DdTWcPAdApx9TMg8UTUSTSHFU8nghgpm1GMhY/g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mCHKJTDWFk/RWsCwJa1Eehmh3ehwlGbE+XgOKiiLu0TY/0zXqbqJQH/0kgi68mZ1H s82wPg3kGHXlxo/IwbhjP5Mi9rP6KQIOpreBtr/98nlWT07Ayk8KrwOMs7X2oCM8iQ 8qYUpfknPHnyrK2y+FVaCeG2ZsztpCFMJA/TJF/M= Received: by mail-ed1-f44.google.com with SMTP id x10so18063305edh.11; Thu, 28 Mar 2019 11:50:49 -0700 (PDT) X-Gm-Message-State: APjAAAX/PECjdy6uZ4oX9dkmhN0AiJVF/cZQyFLOWBQUJNJtPW8ameVW G59iv3s+VXizVow5BNYrP/uQ7PCQ8IxO4V5Xg2g= X-Received: by 2002:a50:b65d:: with SMTP id c29mr4327881ede.184.1553799048100; Thu, 28 Mar 2019 11:50:48 -0700 (PDT) MIME-Version: 1.0 References: <1553483264-5379-1-git-send-email-hao.wu@intel.com> <1553483264-5379-3-git-send-email-hao.wu@intel.com> <20190326002852.GA2901@hao-dev> In-Reply-To: <20190326002852.GA2901@hao-dev> From: Alan Tull Date: Thu, 28 Mar 2019 13:50:11 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 02/17] fpga: dfl: fme: align PR buffer size per PR datawidth To: Wu Hao Cc: Moritz Fischer , linux-fpga@vger.kernel.org, linux-kernel , linux-api@vger.kernel.org, Xu Yilun 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 Mon, Mar 25, 2019 at 7:44 PM Wu Hao wrote: > > On Mon, Mar 25, 2019 at 12:50:40PM -0500, Alan Tull wrote: > > On Sun, Mar 24, 2019 at 10:23 PM Wu Hao wrote: > > > > Hi Hao, > > > > Looks good, one question below. > > > > > > > > Current driver checks if input bitstream file size is aligned or > > > not per PR data width (default 32bits). It requires one additional > > > step for end user when they generate the bitstream file, padding > > > extra zeros to bitstream file to align its size per PR data width, > > > but they don't have to as hardware will drop extra padding bytes > > > automatically. > > > > > > In order to simplify the user steps, this patch aligns PR buffer > > > size per PR data width in driver, to allow user to pass unaligned > > > size bitstream files to driver. > > > > > > Signed-off-by: Xu Yilun > > > Signed-off-by: Wu Hao Acked-by: Alan Tull Thanks, Alan