From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-f196.google.com (mail-oi1-f196.google.com [209.85.167.196]) by dpdk.org (Postfix) with ESMTP id 69A9E23D for ; Fri, 5 Oct 2018 14:19:55 +0200 (CEST) Received: by mail-oi1-f196.google.com with SMTP id u74-v6so10176505oia.11 for ; Fri, 05 Oct 2018 05:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fJZGxJ5aZuvbIwCSiKRhUwwAPyibhx/mGIhygr/s7PI=; b=W14e5oQJx0pkp+i3O5lEo96CI9z46uumgnVsImfHFL7SHpV+G4N8VmgHGbtkgw/2a3 Di8atJ9Tt5ARwvVX96vzfYO8TFL9ll/AQtw7ni+gLlhg2tLFNllwN0BV6g1/EXy1R6Io tiP9ms+qtJ8JIZZ5ttexrMFQlPaRcXWW6u7C67unhzP1EL7+Rlhz2nCzlqPyA5lb0Sn5 iP7GJOctN5O6Hfs2vlbWsx1xF1KF7UufWSr2PJoA6EVZxZFJH5Pr/5gJGzDpb+3Ikh/y l3aIdiXgoBhVX0GsvIfRmQwGcF5dUikx+NWnt3PXYq7dGCUlrkeW85AAA0D+hgf7mcnz ROsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fJZGxJ5aZuvbIwCSiKRhUwwAPyibhx/mGIhygr/s7PI=; b=eyRjuis/jhCeDiorUSzk8HEtF+VIxYAe+HuFp+4RictDJfnddciPSJ56YTZU0gWjN4 FfjC6M2/UusMPhZqJA170HBEBxFVp1jrZ6lJNM86vIT51Y0TRJxqyCD+0nqxM5nZ7t8N bkq+ScObFFhED2Jv1xZcPNnsjKozi+5mWYLPrN5i5765zCCeVSxgFB8SVeI/ph28DCId AE4XHBdDxOTHBewOF+A86c1jnSNfZsggBQtmT0WrRwZ774LCbuqIk0ztzEagLas6cMLA aTWXkwO3ESsKEJeJHZPfSoz86gJR6R0GA9cvcGNo/9UR9/n/zPbX49LSHKFEb3wjXIy7 42ag== X-Gm-Message-State: ABuFfojq3MHHCeABRkFqL0tftuyYnY3XxupHemzfSySTWpMihv/IC5NP B9gQrLY/1+fJgJYZtCr/DgTCpv3gYi34Wp0977P+nw== X-Google-Smtp-Source: ACcGV62puW83mKBXsFlRVVc5dbZFkuAWN2kxRPAYhQDA0o6kss1NgXI9lz/nn998hGSd5nzj5ldVIucNp5k9IXKRVfI= X-Received: by 2002:aca:3e56:: with SMTP id l83-v6mr4940332oia.170.1538741994483; Fri, 05 Oct 2018 05:19:54 -0700 (PDT) MIME-Version: 1.0 References: <1538741212-7922-1-git-send-email-alejandro.lucero@netronome.com> <1538741212-7922-2-git-send-email-alejandro.lucero@netronome.com> In-Reply-To: From: Alejandro Lucero Date: Fri, 5 Oct 2018 13:19:43 +0100 Message-ID: To: "Burakov, Anatoly" Cc: dev Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v2 1/6] mem: add function for checking memsegs IOVAs addresses X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2018 12:19:55 -0000 On Fri, Oct 5, 2018 at 1:15 PM Burakov, Anatoly wrote: > On 05-Oct-18 1:06 PM, Alejandro Lucero wrote: > > A device can suffer addressing limitations. This function checks > > memsegs have iovas within the supported range based on dma mask. > > > > PMDs should use this function during initialization if device > > suffers addressing limitations, returning an error if this function > > returns memsegs out of range. > > > > Another usage is for emulated IOMMU hardware with addressing > > limitations. > > > > It is necessary to save the most restricted dma mask for checking out > > memory allocated dynamically after initialization. > > > > Signed-off-by: Alejandro Lucero > > --- > > Reviewed-by: Anatoly Burakov > > Thanks Anatoly. I have just noticed I did not remove the previous keeping of the dma mask. I will send another version just with this change and will add you review if you are happy if I do so. > -- > Thanks, > Anatoly >