Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1242240iob; Thu, 19 May 2022 02:22:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXF23O5Ygc3Nn5wmotmSqRw5xN3mpwIMeUyWuPHtQ7qvljsKf+q2hkASecIfdyDDUauAWk X-Received: by 2002:a17:90a:c303:b0:1df:1ab6:68fb with SMTP id g3-20020a17090ac30300b001df1ab668fbmr4130238pjt.181.1652952153831; Thu, 19 May 2022 02:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652952153; cv=none; d=google.com; s=arc-20160816; b=fHCO5sIlA611p2iWikszmwwzBmI5GIwg3bzcXjhZEeFzp44C2nZ5TQiFUr5Gwp3Cx2 N/WGW+xpk142+pNf0tvJvKFfv/tyEo8A10MWpQ0wehlJdJgYo1BiQ9AXOZhh1O9kW8Kq +E/ZX2RFDiDLx1hDLRyX2GDgH0grCR8f1Hly+kMsnCEV8XbcS7xDpdI7mZ+28w0Ho1sv +YtvI684ozp++SKpIYL5Iy/qbn9C8BsAJfN8AkkePMPZyjNahNVaeKCsMDUY95gacjVF /R+WWr7UDquJH0mpid9UpfRV8ogiM731aRub29uqDAEi/1TKaaviTeSf7c5K8QIGZGgt u9Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hlT+nEh13sxfPL8BMq3ZIcK+GnrU9MTSpis94fJEm5I=; b=mOADdTJxan2LXBmvHzOewN6AqCMhf0VRUogMfAnL3fNgiIprh6fhczXKFbEnWijLQ9 S/8rhkRuOvoNujlGAVoyeXDkQHkRjWct9/+kC7uGw21FsYKLTJtlgxusewGDfTnv4klV 4EIc4qUenIlSseNQSoQGKPWTHxg8EezR0YMzPCMtwNRazPvR4kOo3D0FQrGysMVvuIQb 9p9kDxL3MeKx7cZUo3hnJk/XAX6BGM85zPsIocgv7HoUEbaFBPPLlmceANy++de4LJc1 RvslahwrkDRCBZkbA0YyVj5xhvgRijvsmcjBvA2hZKafEGLX9+kwsXVS2viMf7NiR7s6 HGwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TEBCCbVD; 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 4-20020a17090a194400b001dcc53646a2si9292795pjh.76.2022.05.19.02.22.19; Thu, 19 May 2022 02:22:33 -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=TEBCCbVD; 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 S233661AbiESEeg (ORCPT + 99 others); Thu, 19 May 2022 00:34:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbiESEed (ORCPT ); Thu, 19 May 2022 00:34:33 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86744C1EEF; Wed, 18 May 2022 21:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652934872; x=1684470872; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6H7Y0vRICaaXnBsjuel9L4ADqlH4Ymet5HLS2FGL6V8=; b=TEBCCbVDMxxdJlJbnkDgg8Cmzb9KG7+CQu2Dp22yY3Ygddu1cCOFp1Wr IJN0wSv6cGdRF2vcCbj+mYgq3oKE/9X5SF7g0lQCxHk7EpNJNATzy/HD5 0CnXqpqKenZuL9OKwe0tXTryjimKJLpxELtt9id/v7qmJKDX+sFx6Rpzg 501voPu3OP/aDPO4aoEF6dJrlUlnmbg0lo9yI83q2m5Meb1rw5N7zGrRU 3w/lezX/+cZverWVC3ghHO52g7Z1A7OlcNPXGfBxRpilVGlmS5x1PGoBn NpP9WNEcxZITLRLtpLDt0c5rMnkVGExoP8AfUkfQDd7W7QGWg/NMzRl2E g==; X-IronPort-AV: E=McAfee;i="6400,9594,10351"; a="259584030" X-IronPort-AV: E=Sophos;i="5.91,236,1647327600"; d="scan'208";a="259584030" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 21:34:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,236,1647327600"; d="scan'208";a="742709968" Received: from unknown (HELO localhost.localdomain) ([10.226.216.90]) by orsmga005.jf.intel.com with ESMTP; 18 May 2022 21:34:29 -0700 From: tien.sung.ang@intel.com To: mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com Cc: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, tien.sung.ang@intel.com Subject: Re: [PATCH] fpga: altera-cvp: Truncated bitstream error support Date: Thu, 19 May 2022 12:34:12 +0800 Message-Id: <20220519043412.2805706-1-tien.sung.ang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <3911c8c7-da6d-e6f2-c747-3b601d9cdacc@redhat.com> References: <3911c8c7-da6d-e6f2-c747-3b601d9cdacc@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 The send_buf is always used throughout the life-span of the CvP driver. Hence, we thought it would be wise to just pre-allocate it one time at the start of the probe/init. It is also fine if we do it in the altera_cvp_write. The only issue we see in this is that, a minor hit on the performance as you need to then, allocate the buffer on every new CvP FPGA configuration write. As for STEP 16, the previous implementation checks the Error latch bit which stores the previous transaction's result. If an error occurs prior to this, the driver would throw an error which is not right. The correct step is to just check for the current CvP error status from the register. Hope that is fine with you. Thanks