From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0B2BEA034F; Tue, 8 Jun 2021 10:31:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 773DE4067A; Tue, 8 Jun 2021 10:31:37 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 4491F4013F for ; Tue, 8 Jun 2021 10:31:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623141095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DaVYGPcCAfsvrQw9rIJDTpM93+mh4UpsjwnhjaOTu/U=; b=I8WT1p9rMY2ab1VnF5pwrZgCxPEu4cEWbRTKal2HhCcMVSlO+K1+INilk7zjJ3hcQanfzk fril+s2vFRmXrI9jsyxj+BZFxWHHDWF0bISsJ55Rx17I0agMwFpdqa1o0FkNEMfqwEiQn6 uuzvbLFEcxTQroPBz1aqgRavLPB4bI4= Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-187-DiQQPd-2NUmjh4hlCdaDWg-1; Tue, 08 Jun 2021 04:31:31 -0400 X-MC-Unique: DiQQPd-2NUmjh4hlCdaDWg-1 Received: by mail-ua1-f69.google.com with SMTP id w19-20020a9f2c930000b029026e4e38604fso1593482uaj.8 for ; Tue, 08 Jun 2021 01:31:31 -0700 (PDT) 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=DaVYGPcCAfsvrQw9rIJDTpM93+mh4UpsjwnhjaOTu/U=; b=MoY5WcUEfKwk3PbIH39LM+DEOOAlgffvmFug55GjdLcdcEHKhnG/hlx7u/rHxqJ56m 3zRw+Onnelmn3kInAGqaxCjtMj8sX7dUS2NkHuORlpJKASADHuoykacAYTNBbdv9iZTW E2vx3fBhKn4fMbmiTeR7L4F1DWqEPHyshc5XvKwvFn/+z40rwN6GD8WBmDu9dyLhdxap 5mUodck+FgnyL836hh+kIIMNd8G+oJKtjGWPvrlO7gyqjyeJs6WPmZEG/Q8ZrqEW3PcV 5BWpcU+V3RkzVrE4mTdQmE9+sebFiHG8mEXlGD7A6Mm8KByq4hBVjhovQ538FbfOnxLP qegw== X-Gm-Message-State: AOAM530prs+Gjnanu/jQN1LhgL+JUfndGlAYS7IlwIVVrOjgQa/Dfixe Kihk2vm1huaf8o3y8OagfMko2bkhhSd7agwGLacQVUj0nXm1+MmSWk6MlpLHB6LLpGJm476Qndd mFlKasIst4wsL82mCdS4= X-Received: by 2002:a67:cd08:: with SMTP id u8mr3781853vsl.18.1623141091461; Tue, 08 Jun 2021 01:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzT7Z8P2Sg1tHtewx8lpC9MoMhlFAXAQr5M72P32sBe7BxP6VCg0k+/k0y06ICYeq7EIzlst4/HROW0VrIyWE= X-Received: by 2002:a67:cd08:: with SMTP id u8mr3781848vsl.18.1623141091311; Tue, 08 Jun 2021 01:31:31 -0700 (PDT) MIME-Version: 1.0 References: <20210421050243.130585-1-haiyue.wang@intel.com> <20210524012346.496560-1-haiyue.wang@intel.com> In-Reply-To: <20210524012346.496560-1-haiyue.wang@intel.com> From: David Marchand Date: Tue, 8 Jun 2021 10:31:20 +0200 Message-ID: To: Haiyue Wang Cc: dev , Qi Zhang , "Wang, Liang-min" Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v7 0/3] fix PF reset causes VF memory request failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, May 24, 2021 at 3:44 AM Haiyue Wang wrote: > > Trigger the VF reset from PF reset, > > echo 1 > /sys/bus/pci/devices/PF-BDF/reset > > the PCI bus master bit will cleared on VF, so the VF needs to enable > this bit before restart. > > This patch set adds the API to enable PCI bus master. > > v7: fix the commit message typo, and update some description. > v6: update the annotate symbol version, and add some comments in source code > v5: error handling if bus master enable failed > v4: change the API to set type, so can enable or disable > v3: added the missed annotate symbol add time > v2: rebase to new librte directory path > > Haiyue Wang (3): > bus/pci: set PCI master in command register > net/iavf: enable PCI bus master after reset > net/i40e: enable PCI bus master after reset Series applied, thanks Haiyue. I'll post a followup patch on using this API in other parts of dpdk. -- David Marchand