From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA217EDE9A4 for ; Thu, 14 Sep 2023 10:58:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236387AbjINK6O (ORCPT ); Thu, 14 Sep 2023 06:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbjINK6M (ORCPT ); Thu, 14 Sep 2023 06:58:12 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EE931FC0 for ; Thu, 14 Sep 2023 03:58:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72486C433C8; Thu, 14 Sep 2023 10:58:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694689088; bh=rUYhkyTuPj7ApZAOUD6dArBv3dyDSPnmyCzau1cFCjg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M6wtWjAAF7WGBRZnKIphw8mUEmVkovGFAXaqBr30m2bL5aXGOSsjprP+jUwzbJsYY ySMfW4/zqW3RLQlcQUSeT/+7yDZ9SIwOiEKT3B2mN38XX5IDRltFUreU0Dnec5pqs+ zs6L/KIg9Gcltbt1RBvz+XPQaRfBmDxEqCvdLNRRn0fLURHPqu5vsWd+DLZkLXYoqk 5Z7933TxFbGi5AajdnYQe4nLBi17JKp51yId+BWfGfpWIFjeoaA14KM4MxG126FtuA Y4sfEKHyoyDTg6roynomr5ZSc7KeH39/1whVsnq2StG01F3VPiP5QFlZsGmTdQPDL7 JdJ7pyULyrbVg== Date: Thu, 14 Sep 2023 12:57:59 +0200 From: Simon Horman To: Shinas Rasheed Cc: aayarekar@marvell.com, davem@davemloft.net, edumazet@google.com, egallen@redhat.com, hgani@marvell.com, kuba@kernel.org, linux-kernel@vger.kernel.org, mschmidt@redhat.com, netdev@vger.kernel.org, pabeni@redhat.com, sburla@marvell.com, sedara@marvell.com, vburru@marvell.com, vimleshk@marvell.com Subject: Re: [net PATCH v2] octeon_ep: fix tx dma unmap len values in SG Message-ID: <20230914105759.GY401982@kernel.org> References: <20230913084156.2147106-1-srasheed@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230913084156.2147106-1-srasheed@marvell.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 13, 2023 at 01:41:56AM -0700, Shinas Rasheed wrote: > Lengths of SG pointers are kept in the following order in > the SG entries in hardware. > 63 48|47 32|31 16|15 0 > ----------------------------------------- > | Len 0 | Len 1 | Len 2 | Len 3 | > ----------------------------------------- > | Ptr 0 | > ----------------------------------------- > | Ptr 1 | > ----------------------------------------- > | Ptr 2 | > ----------------------------------------- > | Ptr 3 | > ----------------------------------------- > Dma pointers have to be unmapped based on their > respective lengths given in this format. > > Fixes: 37d79d059606 ("octeon_ep: add Tx/Rx processing and interrupt support") > Signed-off-by: Shinas Rasheed Reviewed-by: Simon Horman