Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3826332rdb; Thu, 14 Sep 2023 04:05:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErZsQIWvjt5RfLAhu9TmyYEbWsVry05ANwUjI4x/NyMW8zvlsRVgDdKeN9hzMfvVQaK8lO X-Received: by 2002:a17:902:b710:b0:1c3:9544:cf63 with SMTP id d16-20020a170902b71000b001c39544cf63mr4765088pls.23.1694689503731; Thu, 14 Sep 2023 04:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694689503; cv=none; d=google.com; s=arc-20160816; b=CPfj1Fnxpj03ziBrVWwz8AhyWGUNipwq2g8JtrjfSAXBTNhblekCgw6gBZhinVywRB KJO95aPn1uUAPFKnaHpLbutuWxnRH0PTD54B7ohk4cfIosjvRiRo2EnTrXc6YFtMitzQ SVb1YSmi/n4IfUlKybjel/pWR6KtTYeiwO7ibxt7GaQNFoVWdeJQ1fjjtxa3Wkxdfmgx F5U87duHLW3L/HF/ccZ67Ul8gXwDMI3QSS5GaV+z7leDffoH5pno39rogShfUD24Ort+ ca8a4NYIszjdBrixCOWSBKorTlzN/uGCp4bjr3LxPA6E2n+VJqmi1+jMALHH15n5quTf mjfw== 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=zzmE6tcoEd6kLZTzSkKt/4Mf/TyI6FTTqhaomFx1dpg=; fh=tJHO9Gt9MlSEgIvgIDZCbuYH053EfdPl/b/M0SxCdxw=; b=wrhTpFaOcsIHoy0k61h9VIdRH2ARhDtczLKCZ4HyUNqDze/HmajvtQyyWhMsKPIUpd TKczZHErG4enpcjaT+vKFcYUnF34QYrQ/UzuXwgFKwC8pEJQTl7BXiMJrT7+dXLX/Ybd VvGcdrT6/J17Cc07qWeK8CMOVLWrs3H/53/xP7pvAz13r8KHoQOYIxITNgJDAuPN5SZ5 uiv/39PtEdNyfoAmtaYaDbPsRvmSRY5RdN5/YyuMd47uHp3ajOZQoVnBg02Xf1Fzt2Di qa6crg7DwaGKF86pI6cXBQDx7Vw/B4US9PHDGiOgGOdepMrqzbCqzjSSE7cofJEd5J8u JSAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M6wtWjAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id p13-20020a170902ebcd00b001b872e20955si1488075plg.30.2023.09.14.04.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M6wtWjAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E206B8066607; Thu, 14 Sep 2023 03:58:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235935AbjINK6N (ORCPT + 99 others); Thu, 14 Sep 2023 06:58:13 -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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 03:58:13 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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