Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp727361ima; Wed, 24 Oct 2018 08:17:57 -0700 (PDT) X-Google-Smtp-Source: AJdET5e9YrMsGxqvtx3M5KMsIP1BSTQZbISreN/VK5U+uVQlO0IxehhEXadtVCSMDQip13v8QWdY X-Received: by 2002:a17:902:700a:: with SMTP id y10-v6mr2889975plk.218.1540394277197; Wed, 24 Oct 2018 08:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540394277; cv=none; d=google.com; s=arc-20160816; b=A9siZC4WDtmOAQIWMMoFP4MyHuVlCCfkuQUwMIHTtjDDIttDmk/rZt1K6zAhkgoO6Q s28WAw7nzVuR3x9xWny/M0Gln8bCfsSS3hDJ1YRVHxfLPRoyM0mM9js8zXxo7Ol3gYax QmoD3tpTe5ebXTzD0UGA6isBI/lWPCcjfIq9A6uFacNL25iPKfmJFpXxOwFBw4UiPW0u QzIDyh/ATbOdSF9lM/u4CJQNWkoo9ZVWRT23Jf8WE+rJ81eH0Lds6CJ+JG4M1KCeJFMa Z5MiBi1Mu1NXT4HEFk2f1r96EKu3NOMVa7+yq4zSEeHc/grdglWq9VW0Q5n8oAGqRICS BOCA== 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=Y8HHbdqHOwyVfsGPJDgILnS/ktC/DAMpAAZYfFnWHYo=; b=DlJUuAWaLHeLY7qFgN5LAaK6LfyV0N8u5FInNCYdJyB7HJu++JWOiCKE81qejwj178 x72WDninWuB8lmjuw5cB2VBJGKbJ0V8VeA/ZWfNWXdvtvmHtiiqIkrz7Ug8gcXfcd5xl 7CFizJV+yE01pIYRCSnxWdIWMmPgWAyXovJgNTUYDgY1ib3LeUEvHj+hx9SGSCSyhIsa L9mOK9QPPJ1erdBkLDBDJh6IEOnP5Rp5p4QdQaUXqUnFAIUTQuTo2v6eAvZq3qzqxnYC n4o6nDl2GEkUXmKE2vyQzjVun4JH5Ny4MajKZNuzGGooWI0RD41GxEeCAOUDBbK0a6d5 dwyg== 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 n15-v6si4926697pgi.537.2018.10.24.08.17.31; Wed, 24 Oct 2018 08:17:57 -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 S1726826AbeJXXmn (ORCPT + 99 others); Wed, 24 Oct 2018 19:42:43 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:58027 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726407AbeJXXmm (ORCPT ); Wed, 24 Oct 2018 19:42:42 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9OEx5v3019294; Wed, 24 Oct 2018 17:14:07 +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 2nan9y34vb-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Oct 2018 17:14:07 +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 C963E34; Wed, 24 Oct 2018 15:14:06 +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 59871516C; Wed, 24 Oct 2018 15:14:06 +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; Wed, 24 Oct 2018 17:14:06 +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; Wed, 24 Oct 2018 17:14:06 +0200 From: Loic PALLARDY To: Suman Anna , "bjorn.andersson@linaro.org" , "ohad@wizery.com" CC: "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Arnaud POULIQUEN" , "benjamin.gaignard@linaro.org" Subject: RE: [PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator Thread-Topic: [PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator Thread-Index: AQHUJavkKiQgZmDpyUyOATXoSlfNXqUt8CgAgAEaCEA= Date: Wed, 24 Oct 2018 15:14:05 +0000 Message-ID: References: <1532697292-14272-1-git-send-email-loic.pallardy@st.com> <1532697292-14272-13-git-send-email-loic.pallardy@st.com> <59fad1e3-11a2-939e-c47e-4351fb636e2d@ti.com> In-Reply-To: <59fad1e3-11a2-939e-c47e-4351fb636e2d@ti.com> 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.49] 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-10-24_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing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