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 B1BB745619 for ; Fri, 12 Jul 2024 19:30:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A6BE742F8F; Fri, 12 Jul 2024 19:30:50 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 1793142EFB for ; Fri, 12 Jul 2024 19:30:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720805447; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sRJNGszk0yuzFL7tphq3ozWHAYKtqUgIJL9HUMkkGZs=; b=UFYPb25nRT8t54YIMgsNwRmPwojJ6rAfN95x7V3QpiiYsvAoXfcFK4+IH6NFUX+pexOuF9 OqiwHjdrsymi/wloQtUfH55Wcu67HmQVTFKYux+G8tYSjzy7iskR/I46jMaQNWtfBRNMp2 /a9Gi3W37MmNE/7FleVjwnDoF3/Dq6k= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-367-u_OuPC4PPeykRXc_B8elXw-1; Fri, 12 Jul 2024 13:30:46 -0400 X-MC-Unique: u_OuPC4PPeykRXc_B8elXw-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2ee91ac534bso22385941fa.1 for ; Fri, 12 Jul 2024 10:30:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720805444; x=1721410244; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sRJNGszk0yuzFL7tphq3ozWHAYKtqUgIJL9HUMkkGZs=; b=gKNlJZrP+0Ug9YINS/HkToyvgmYJeWZJOmSVH8RT9zZFHkeecJkMX4oAC8hY4MSatl 15SB+rsDHs9UHsZ6O4xBMkYfDaW9el0ZziQ5u4cbQ1hUrmL9cXwUGSREGzd8o7TGMpn1 cBQTTxHY7Dsb+BhGUQ+gAtdcT3ssqzJQENL+3CRO4gYtNtwE3sa/Egi7QcL32Av4HPBR wjaIxiNiS5fveXxShN66Waupwkc2md9i+3kCfe34yiX0NmGl45GPMW6wKOJNMkB0K5Kn bSDMooS80mODp/7ZazBxV9FA5U9dS+UPpb8us9Mf+OT25R+6k3FxcVG5dMQ1Mpsrul5O 9+VQ== X-Forwarded-Encrypted: i=1; AJvYcCVmqs9iLPBLk/kFo3etKKOvlet4gQsWI/00W3LoxG4Jz0DrkYH1nCTnKhjBpGy5kSzq0K/17bIWqdWwLp8z2uo= X-Gm-Message-State: AOJu0YyMeNi5I6pKcgqJS3DkEkvtNNxGQ/9NZY45LRTxp8Ry2SA2sx6l Ji1T/8dDo9L4lAMJDEIS9hf0bRAGfgT7Rtgad6roR1ZUqTTMmV/HGtScCv1L90sodZnvynrckIW nIbODNgdeVXliYup+a8JXkRX6zPoI8DhCIGpX5nRZTk9U9eDkiufeqklwc4wsi8t62AbcBrIJyk WfUGHYM9+Rm5DT2cs3alU= X-Received: by 2002:a2e:8e8c:0:b0:2ee:8698:10ed with SMTP id 38308e7fff4ca-2eeb3190d76mr75327681fa.49.1720805444501; Fri, 12 Jul 2024 10:30:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0eVAMcVtAl+vEX0TS2rOLJaa1eJo5yjFATfEQJhvn7phlkNENOOn3wn07qA9X5qfJvS0okUYN67EI69EdFig= X-Received: by 2002:a2e:8e8c:0:b0:2ee:8698:10ed with SMTP id 38308e7fff4ca-2eeb3190d76mr75327611fa.49.1720805444079; Fri, 12 Jul 2024 10:30:44 -0700 (PDT) MIME-Version: 1.0 References: <20240702021946.4194102-1-chaoyong.he@corigine.com> <20240702074007.1547-1-chaoyong.he@corigine.com> <20240702074007.1547-3-chaoyong.he@corigine.com> In-Reply-To: <20240702074007.1547-3-chaoyong.he@corigine.com> From: David Marchand Date: Fri, 12 Jul 2024 19:30:32 +0200 Message-ID: Subject: Re: [PATCH v6 2/2] bus/pci: fix secondary process save 'FD' problem To: Chenbo Xia Cc: dev@dpdk.org, oss-drivers@corigine.com, Zerun Fu , mukawa@igel.co.jp, stable@dpdk.org, Long Wu , Peng Zhang , Anatoly Burakov , Chaoyong He X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hello, On Tue, Jul 2, 2024 at 9:40=E2=80=AFAM Chaoyong He wrote: > > From: Zerun Fu > > In the previous logic the 'fd' was only saved in the primary process, > but for some devices this value is also used in the secondary logic. > > For example, the call of 'rte_pci_find_ext_capability()' will fail in > the secondary process. > > Fix this problem by getting and saving the value of 'fd' also in the > secondary process logic. > > Fixes: 9b957f378abf ("pci: merge uio functions for linux and bsd") > Cc: mukawa@igel.co.jp > Cc: stable@dpdk.org > > Signed-off-by: Zerun Fu > Reviewed-by: Chaoyong He > Reviewed-by: Long Wu > Reviewed-by: Peng Zhang > Acked-by: Anatoly Burakov Chenbo, Are you ok with this fix? Thanks. --=20 David Marchand