Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2410142imm; Thu, 27 Sep 2018 12:23:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Bmoh6eAcrVjOkTasVI9S+UPJycJorEF6eDKF9rc37Rah0dF2udY+cZWy1rLnnPD2x1iTq X-Received: by 2002:a62:3995:: with SMTP id u21-v6mr13058820pfj.116.1538076206301; Thu, 27 Sep 2018 12:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538076206; cv=none; d=google.com; s=arc-20160816; b=06sN2xu1HuZeX+Ew+cgh5HjyUY/BoAqEfL1y8jnU9o5h6Lje0hnlOWaU7EZq31VNLM Zsy8BBupTf9armmKwFIwdZ1E0q/nNbxMzYEmYCzFT+O8gisECC2N29jZw5tdsC6xXkl8 lbQ4VelkI8JOCude9Y55kcqSxTnonS93AhSabNABgRJk/4cSMcI4I5nCWt6cKO7dYQVd cqx2rRNDmrVjemx7dns1yWmOhvoA8R97GrnrPaw5btdSrJdZkegEJe+n7AYRiRV3LBHH eHmu0GlwB7fpMmw4mMgbulglEPvW/jdvO956ToO6EdLlks+iopt2An8/qYrn9RIjvKXK FGVA== ARC-Message-Signature: i=1; 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:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=znL1MrrlVDX1rF9VH7+gtZ4cCY4BRM5iJ1LDqfXC1Rs=; b=eJzTcseABOnt4dDYp4kYTkQ97+nFOUNP2LyT1PrXctf6IaOGMnjZEjXcMjKVKH3y7W fF4Gd/wFU8JbQ2cWhP7slNJgBrE4TvoMTbMuPsTW4d4fy/PhWB9wOAKx4IEINCPliYjH modxe2T2+SURZQnPxW+CRaXacleHmmssOq1nPiS/iIIS379kMJkUBD1JpPmQNcH5WeDx EflELCtBrQb8g/QJ6NLpyS3OkG3dxWwrY8MmzW84MaKUGJRnv4aZ84Tj7ihUGkcJCPly KSkND9/zOl5CnA/jX2YgPgJuUgv3h4mhLwhp2D+N5yScoJDmaU3P40mJ4wbreC+N4mrw Hcsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si2513615plt.223.2018.09.27.12.23.10; Thu, 27 Sep 2018 12:23:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728586AbeI1Bmq (ORCPT + 99 others); Thu, 27 Sep 2018 21:42:46 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:30871 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728284AbeI1Bmq (ORCPT ); Thu, 27 Sep 2018 21:42:46 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w8RJJOcO022798; Thu, 27 Sep 2018 21:22:52 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2mqd47td1v-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 27 Sep 2018 21:22:52 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0795438; Thu, 27 Sep 2018 19:22:51 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D1D7E54C8; Thu, 27 Sep 2018 19:22:50 +0000 (GMT) Received: from SFHDAG7NODE2.st.com (10.75.127.20) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 27 Sep 2018 21:22:50 +0200 Received: from SFHDAG7NODE2.st.com ([fe80::d548:6a8f:2ca4:2090]) by SFHDAG7NODE2.st.com ([fe80::d548:6a8f:2ca4:2090%20]) with mapi id 15.00.1347.000; Thu, 27 Sep 2018 21:22:50 +0200 From: Loic PALLARDY To: Wendy Liang CC: Bjorn Andersson , Ohad Ben-Cohen , "linux-remoteproc@vger.kernel.org" , Linux Kernel Mailing List , Arnaud POULIQUEN , "benjamin.gaignard@linaro.org" , Suman Anna Subject: RE: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool Thread-Topic: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool Thread-Index: AQHUJavkF36KvkhroUKheT26RJQNr6UEnv2AgAA/aIA= Date: Thu, 27 Sep 2018 19:22:50 +0000 Message-ID: <88325716f2a6447a9e12312674be317b@SFHDAG7NODE2.st.com> References: <1532697292-14272-1-git-send-email-loic.pallardy@st.com> <1532697292-14272-14-git-send-email-loic.pallardy@st.com> In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.46] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-27_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgV2VuZHkNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3N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ICsgICAgICAgLyogVHJ5IHRvIGZpbmQgZGVk aWNhdGVkIHZkZXYgYnVmZmVyIGNhcnZlb3V0ICovDQo+ID4gKyAgICAgICBtZW0gPSBycHJvY19m aW5kX2NhcnZlb3V0X2J5X25hbWUocnByb2MsICJ2ZGV2JWRidWZmZXIiLCBydmRldi0NCj4gPmlu ZGV4KTsNCj4gPiArICAgICAgIGlmIChtZW0pIHsNCj4gPiArICAgICAgICAgICAgICAgcGh5c19h ZGRyX3QgcGE7DQo+ID4gKw0KPiA+ICsgICAgICAgICAgICAgICBpZiAobWVtLT5vZl9yZXNtX2lk eCAhPSAtMSkgew0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHN0cnVjdCBkZXZpY2Vfbm9k ZSAqbnAgPSBycHJvYy0+ZGV2LnBhcmVudC0+b2Zfbm9kZTsNCj4gPiArDQo+ID4gKyAgICAgICAg ICAgICAgICAgICAgICAgLyogQXNzb2NpYXRlIHJlc2VydmVkIG1lbW9yeSB0byB2ZGV2IGRldmlj ZSAqLw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHJldCA9IG9mX3Jlc2VydmVkX21lbV9k ZXZpY2VfaW5pdF9ieV9pZHgoZGV2LCBucCwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lbS0+b2ZfcmVzbV9pZHgp Ow0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIGlmIChyZXQpIHsNCj4gPiArICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIGRldl9lcnIoZGV2LCAiQ2FuJ3QgYXNzb2NpYXRlIHJlc2Vy dmVkIG1lbW9yeVxuIik7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnb3Rv IG91dDsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICB9DQo+ID4gKyAgICAgICAgICAgICAg IH0gZWxzZSB7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1lbS0+dmEpIHsNCj4g PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldl93YXJuKGRldiwgInZkZXYgJWQg YnVmZmVyIGFscmVhZHkgbWFwcGVkXG4iLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgcnZkZXYtPmluZGV4KTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIHBhID0gcnByb2NfdmFfdG9fcGEobWVtLT52YSk7DQo+ID4gKyAgICAgICAgICAg ICAgICAgICAgICAgfSBlbHNlIHsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IC8qIFVzZSBkbWEgYWRkcmVzcyBhcyBjYXJ2ZW91dCBubyBtZW1tYXBwZWQgeWV0ICovDQo+ID4g KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYSA9IChwaHlzX2FkZHJfdCltZW0tPmRt YTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICB9DQo+ID4gKw0KPiA+ICsgICAgICAgICAg ICAgICAgICAgICAgIC8qIEFzc29jaWF0ZSB2ZGV2IGJ1ZmZlciBtZW1vcnkgcG9vbCB0byB2ZGV2 IHN1YmRldiAqLw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHJldCA9IGRtYW1fZGVjbGFy ZV9jb2hlcmVudF9tZW1vcnkoZGV2LCBwYSwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lbS0+ZGEsDQo+ID4gKyAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZW0tPmxl biwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIERNQV9NRU1PUllfRVhDTFVTSVZFKTsNCj4gPiArICAgICAgICAgICAgICAgICAg ICAgICBpZ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