Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2079843ybn; Thu, 26 Sep 2019 06:46:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhwuRbLsI//qdipQP8An+kWGulo/NZogDDX22VUZWPPUvD4NKl+9Q7lz5Fha9XUPci7Qap X-Received: by 2002:a17:906:1ed6:: with SMTP id m22mr3159945ejj.135.1569505570298; Thu, 26 Sep 2019 06:46:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1569505570; cv=pass; d=google.com; s=arc-20160816; b=Ep9sRSaeYtxQaR+z/bqGD5xeUMD/t3vyMvcz5xUjJkl3UquIlk2CZw5siyNus2735+ tRknK1j6LB3tzlgkoA+gg3lzdgUq+MGxvEHxh/3OgCYWpQrNcRcGmucywSK5otCJsGbl 7UT4AAt8MMFdpUTlIVpcZhSkcAvpZENL3qlioOcNhmCvFsfvayueWnrDzYclqFqv55Bg OkEyhqTq3a0GpunvcBhrVffjHSSMr6aNcLfo5S/AZ+/W1HmJSq96/eCuTZVU7Thd18NL C2XVcJuPjg9a+vo8jmKQaeUavyG7qMnk6I6LJwtOxE6XBZSxRD6YTH0uDuWBQz2dbwa8 1oWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=oTtYW8uvTj/5TEI9GSBTGh0QlMy+uHTj2iXaGrnmxhg=; b=j5o4hiDS18x+6BOZWzTDtUHpn+mOPVM9NZyt9cFo7v+TMOJadMt1ALCESVtceDwPU2 XjdU8aJH5zQumaIjl0wUK6CEYCRgFDNot/QQg9lSBUgvVBkbWZyKGwi8ypqMQh3BHTil Aqx0hk0r66kkND8oHcytAuV2x3rApLN9GVehVs3+YTqld+V64oKDvuBR0LXMCvfXA+3e uLe6sN7M1BKqHwROg+UzomuvfqdXAkNYu3EorE530voTiBtfBrOXBfCfFIJl6m8rIb5w aIR/sGJF2x4isPXqkstgBizrXdUPLs257tirlUB0jv2GFm484FohlvqE369yTsGxzzaB tA9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Oeh753P/"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id me9si1061131ejb.280.2019.09.26.06.45.39; Thu, 26 Sep 2019 06:46:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@nxp.com header.s=selector2 header.b="Oeh753P/"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbfIZNpY (ORCPT + 99 others); Thu, 26 Sep 2019 09:45:24 -0400 Received: from mail-eopbgr140048.outbound.protection.outlook.com ([40.107.14.48]:46700 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726500AbfIZNpY (ORCPT ); Thu, 26 Sep 2019 09:45:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VuAhqEDg0f6qQmVGK0uHbcg0tXqCw/FxuC5TCK2ds4z9aewkKCqsZK44m4NMilpGbANBGYh+KHnWuuUoIsD9f0RF6VRtDBfqOzHwH4NRkZ2QdC2yTBIlzb9IStX3US8TVIOK2zRkI8J14m2rDyzvVfvWecvSkIIW0vUVKF/vPpRWvALYRf9Naieo2QTtV0zsXvrRNPUdQnlvnkT3idf7OxLGrnGXDs9nAX6eDbTG3oYGeAulUObrXo9mlf1ed2ibzy4RBfeF0R01MEuFwocGrDijnaNgaNX0VuttNjuOiK2aWK+/RnnQ8vhELtNtmF2amijzP81Jz9PjrNRB80gCJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oTtYW8uvTj/5TEI9GSBTGh0QlMy+uHTj2iXaGrnmxhg=; b=VbmMkRgcYUucuMSSU7KLZ9TttdVFN+vF10gCHo60Q4pXljMcmmTsRV/OhQq79Roa31Xh6Y/xbo4cI/dRIrXGJMjtBisD6YW2uInpZtX4R+nORkHM78IKYhlJxhI3OcjnAxVPtgt0HkMlBBQX6IX8DHHcZbJpBTJ/dZ7xnYq2e0dEvk/x7CPmczg2v3tdK3LNrwA+N+ajy7QHah0DxpECiKsKJn+33Inpdih+FmH7s6SLsQpDP0lKm4EcXtd5azen4rX32AfMMaF2dJRh8dvbUYhnQdKHsB97BVNJe4P9KS8Pd6JtXOGRv1ljmyBgTDKwK/35ZrU5CG9VyrZmUD/Ahg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oTtYW8uvTj/5TEI9GSBTGh0QlMy+uHTj2iXaGrnmxhg=; b=Oeh753P/LrGY6kNsDdqIrQnClMd/KXjlTqMarZAD7wnPaK+3tteZa44Mh+sW4aV83w5547wXvGkPpY/f0Uyf2jIwN0GYIzbqH6YQ0weYSzAyUME34tNR58tFZIo7LRGY6Xm6w80+oFnf14YhzGxX1K0noFJpk9eD4DCHI55Pe+Y= Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1PR0402MB3438.eurprd04.prod.outlook.com (52.134.3.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.22; Thu, 26 Sep 2019 13:45:20 +0000 Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::b84e:b20f:138a:63e9]) by VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::b84e:b20f:138a:63e9%7]) with mapi id 15.20.2284.023; Thu, 26 Sep 2019 13:45:20 +0000 From: Horia Geanta To: Iuliana Prodan , Herbert Xu , Aymen Sghaier CC: "David S. Miller" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH v2] crypto: caam - use mapped_{src,dst}_nents for descriptor Thread-Topic: [PATCH v2] crypto: caam - use mapped_{src,dst}_nents for descriptor Thread-Index: AQHVdGWinHvuPLZHBkmmgYvaLgpxPw== Date: Thu, 26 Sep 2019 13:45:20 +0000 Message-ID: References: <1569500789-7443-1-git-send-email-iuliana.prodan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=horia.geanta@nxp.com; x-originating-ip: [212.146.100.6] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 16be1e0b-4c10-4710-3a45-08d74287c61e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VI1PR0402MB3438; x-ms-traffictypediagnostic: VI1PR0402MB3438:|VI1PR0402MB3438: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2887; x-forefront-prvs: 0172F0EF77 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(346002)(396003)(39860400002)(376002)(366004)(189003)(199004)(76176011)(54906003)(91956017)(76116006)(66946007)(476003)(486006)(71190400001)(71200400001)(186003)(74316002)(66066001)(446003)(26005)(33656002)(14454004)(44832011)(66556008)(110136005)(64756008)(478600001)(558084003)(66476007)(5660300002)(316002)(6636002)(25786009)(6436002)(6246003)(7736002)(4326008)(52536014)(66446008)(2906002)(99286004)(3846002)(6116002)(305945005)(102836004)(8676002)(55016002)(86362001)(81166006)(9686003)(256004)(8936002)(81156014)(229853002)(6506007)(7696005)(53546011)(142933001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB3438;H:VI1PR0402MB3485.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: GsGxjdKlT1wWGirMsG6XGvD9kR0rWyX3WXW+h5782rW9Sm408QmBR/o2FObL8xI2Qd8Pld1Gd/TJlVNzV3SR8iV5UcVY1WUvtn1nPo0rpIpxGewZSh94s1/s/sFm6eLgIbKp1fsULujRnCJcmWcKadPXFfSdS7pgo7k+5yW3SMw+Z6VNRCKXcJJsRQx1SzxA62L3L9RroXOVEfADTFkW8epXn5jQ6RpPWS5ptrWkx4J7UUIzWgqRbI1dcwZVF3zCjywUbuDy+sLs7EBjCP42E4L/ik3P6oiwW21OIwi83SiTjLejGZTOjbISnf6G94RAxPCM109+teGbeFUtu4J50Rei2AGggAk1sBX0W8sqbjdCqAuJH8sYpR4JLA/qgeH5ExyeaRUg+2l/SlVFbj5RJjnVWMrqmZcPT2FKcjwiixQ= Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16be1e0b-4c10-4710-3a45-08d74287c61e X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2019 13:45:20.7083 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +6dadGXcXnu+5psOcj4kEsCqUt4uV5pt+ivMecgc0FASaGhZi5Al8jKBQZNgO1ip4OZUT17h0FRKIh8rmTSqHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3438 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 9/26/2019 3:26 PM, Iuliana Prodan wrote:=0A= > The mapped_{src,dst}_nents _returned_ from the dma_map_sg=0A= > call (which could be less than src/dst_nents) have to be=0A= > used to generate the job descriptors.=0A= > =0A= > Signed-off-by: Iuliana Prodan =0A= Reviewed-by: Horia Geant=E3 =0A= =0A= Thanks,=0A= Horia=0A=