Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2759917iog; Mon, 27 Jun 2022 02:16:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tqkrNQGnaUK7fvuz6LfGINEorlLELuELT4tzP1/S7M/xTJdmhwpKcp6ujSps/RRDki9tVO X-Received: by 2002:a17:903:248:b0:168:cf03:eefe with SMTP id j8-20020a170903024800b00168cf03eefemr13480876plh.124.1656321408522; Mon, 27 Jun 2022 02:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656321408; cv=none; d=google.com; s=arc-20160816; b=nC5UzZQe0w53IuVdnqlAkJbxbr8S1DbOFqHw58ZWXiRBtpHUMLJc2ETr4gJoR8hA0j ZkXLp77CnGBMxepwHbWrvQslN7wgvCB7jQ84iymL6swtvNB+rxHrtklREY8F9q2irluo UlnC7PiROaknGKGIwVMgyrXpPxAmVp3MxSkEygEHkT2Ba0ySbqpZlqrMUKpeO/hHs+zY FrDQDGgfW5UsoJs2vbgMb68zMiWrCB0c2+WSGbDaPso1lc9xhawWaKUcGInrO8wYky4A /BzkvE3+zP+xvtARNWjNGyxiCFGq29g9EmV6LwBYw75G0wEyODAUoyIMpSPiMbotY4Me xLAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ebR8XnKuvoXKsjEVGIersIMp9MtIqJ+lVIiIY5mfaDc=; b=l2dNT3FLLVFqNbNcRKIRB2S4DOnNVUUhGHol9paCMNJGF6tzWLHYwfHw9woYjfH72p jK9+yvM7htbpiLjIaG3RCJxiuqyrkGgq/VkOmlavqfsHss5NRAFUNEzqyf4ES0qgCYxV nlS+DdP35URp9HnwhYxwo7uNdoANBVIcEe62t07W79fl6I0VzQUB6P5HqVaA1gNjAcga q4wJJ1M4FXogxKmcMQEkKJTFtXrZ/f/iZMn3JIJ7hnUDZmto1m359IFvSNauT8gLT474 GXSUYjEtjTcnz20JbVUhgMK0kaSDNzOmLwzFMF9lzHq1F6KjVCWftd5a00b4ee9ob4GA 9LDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LdxQKtLM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t190-20020a6381c7000000b0040dbf0dab12si7429780pgd.399.2022.06.27.02.16.36; Mon, 27 Jun 2022 02:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LdxQKtLM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233376AbiF0JBO (ORCPT + 99 others); Mon, 27 Jun 2022 05:01:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232665AbiF0JBN (ORCPT ); Mon, 27 Jun 2022 05:01:13 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB09638D; Mon, 27 Jun 2022 02:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656320472; x=1687856472; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Q8IKnNQM5WuT51cs8F0X37bF3np5AyCm5DrvLRqHPNg=; b=LdxQKtLM2RVNvp9ogJ6K1DVwD3EZ2BZ8bkFPpAgbRyRN9mo3Bc7L0X4w 1HyHSzhjJlCMxjhF+8qMpw5Y6E4jjC/exHKwHSPKqWtKTieeBpHlxyRkO BJWMZd6goQc1b1w75sNGKoCyBqtORfVz6iZYpbzlJVK7BcVfLQsem3fTQ h5dg5gmvrxIK88+m6MtuV4zAUSnU0CWN1I1Qm7fFx0pieI/A18/1P7kSx wZD+w0fCMIPFJ5Ejfjbpm2Y+ni9+H3PkDipzDuFBE1AKcr9/dX0N+PBcZ pPTrT6SUwzdwugpulGVvo50ha6asbKEyfnqLam6vjBi5UHUXlnMTAq2YC g==; X-IronPort-AV: E=McAfee;i="6400,9594,10390"; a="281442844" X-IronPort-AV: E=Sophos;i="5.92,225,1650956400"; d="scan'208";a="281442844" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2022 02:01:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,225,1650956400"; d="scan'208";a="679498814" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jun 2022 02:01:09 -0700 Date: Mon, 27 Jun 2022 16:52:55 +0800 From: Xu Yilun To: tien.sung.ang@intel.com Cc: christophe.jaillet@wanadoo.fr, hao.wu@intel.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, mdf@kernel.org, trix@redhat.com Subject: Re: [PATCH v2] fpga: altera-cvp: Truncated bitstream error support Message-ID: <20220627085255.GA2264502@yilunxu-OptiPlex-7050> References: <20220608103058.GG481269@yilunxu-OptiPlex-7050> <20220627074553.3136597-1-tien.sung.ang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220627074553.3136597-1-tien.sung.ang@intel.com> X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 27, 2022 at 03:45:53PM +0800, tien.sung.ang@intel.com wrote: > > > Though without doubt, your solution is doable, I have a > > > discussion with the Intel architect and they insisted that > > > the device driver must not make such a decision. The decision to > > > drop or accept a transfer is up to the firmware. The firmware > > > Why dropping or accepting is forbidden, but padding is allowed? If the > > decision is no operation to the data, then padding should also be > > forbidden. > > > > insisted that the buffer be padded with whatever value. They > > > If I understand right, the 2 decisions are conflicted. On one hand, > > the driver should not care about the data. On another hand, the > > driver should still care about the data for some rule. > > > So please firstly reach your agreement before making patches. > > Had some delays in replying,from the perspective of the driver, > Intel architects want it to be just purely on the transfer of > data without inspecting the data. > If the size of a transfer is 4096bytes, we can padd it. > I can do that which I think it is not an issue. > Let me create a reworked patch to pad the payload with Zeros. No, it's not about padding with Zeros or other values. If we should stick on no image touching, then please fix the firmware. If we need a workaround in driver, then making a decent fix. Blindly copy the image is just a bad idea, and it could actually be avoided. Thanks, Yilun > Would this be OK for patch v3? > > > > Yes, it could look confusing to other programmers. And, yes, the > > > padding doesn't matter. Let me relook into this. As the driver is > > > already re-tested by the silicon validatioin. > > > I want to avoid making any change as it > > > would meant another couple of weeks of re-testing. > > > Can this be accepted as it is? > > > Sorry, I can't. Some clarification is needed. > > Reply as above, let us implement the padding in the > next patch v3. Appreciate your inputs. Thanks