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 64456455AD for ; Mon, 15 Jul 2024 17:27:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EC0C40A75; Mon, 15 Jul 2024 17:27:33 +0200 (CEST) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mails.dpdk.org (Postfix) with ESMTP id DF444402DD for ; Mon, 15 Jul 2024 17:27:31 +0200 (CEST) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-36799a67d9cso3626533f8f.0 for ; Mon, 15 Jul 2024 08:27:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721057251; x=1721662051; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/SBNsmR3Rtu7YAzJv4sFvGNeyghZPfQuc1QmBFkeMls=; b=CWoSFGTMo6MwUEADQuUspbzVn+ZV2ieHPURBERLRTpvFoMETCKQLoli6gmWLR16HaF m067ZODGgLAa7I8mWKhxMcAqKi0wnmFuWdny0eESVkem1J3P/G49Z47s3JmQmel1nlmC 7tVV0L9CFVJrz/wVMiTz5R0vAZ2q4FPnI/uPOhOJ0PGmTE/mEjVjHkACHrBLGG/+m7Qo hf1LJrumKwoVoNwecNGUdAZtRMBpX5PWdjDfhlwjEuCdH3k+U8qp43+lvxNWsIxBCShg CGC9ak3TJt3TauXjJqWbz34YxM9vhuBWGaiVmm4qVq6QB70qath8WGAe3wqHSANAOYSl pzPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721057251; x=1721662051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/SBNsmR3Rtu7YAzJv4sFvGNeyghZPfQuc1QmBFkeMls=; b=bqDTKZ81yRQUL8mdHi4cYxHLLJ9MmXUIkWpTIBdm1dWEKg115efNlFLbBiLZvTg+Rr Q8QCp/6LWveRMVTW1qM9cLJ2bH+0Fvimx3pyWsnLIMBNSp/jqFV9HPsRcsd5+AXGQX8F l/tej9Wp0ypxkO86US1DhrIXEMdb/4dBO2M3Hy3WkaA7crXwnMwZW+Fp+GxRPnFEgDSj lo8Qrk8bY2dz9SHhMe9AVa4eqFjpQjcBa22BD2qYzK0mga3rjfw28djOKht3NkJhG86+ CvuWQyg7KWA6ydM/YqeRLEVh1JLthX6v+CfunUIgGubcOzUWuqSim/fdVOZkgSHjWfEO U0wg== X-Forwarded-Encrypted: i=1; AJvYcCWb4/XznrYfnD4n8oK6w1B3hunQE6ijfDXssXh5G2fiGnNiXNOJD7tQdaJ73rU4kPfejaZmnJ4g76UDiyMhZPU= X-Gm-Message-State: AOJu0YxnD2PoyO50EZdI4f0KuZ38GLXDMspOQooMag8U2KwPsnj2PwnX W3L3xBM6/qcoELmNlQxHAcR7OM7rQKLHWAnMctD9vNSbXqrJmQRuCbsKbWfG X-Google-Smtp-Source: AGHT+IGxmsNGCgeQm0DbwCuELxAZA+SFdApJQrNDPsrHpbDhWfNHO7AA+hZM6HbE4dCENsb98jLxCA== X-Received: by 2002:a05:6000:1546:b0:367:8ff5:5870 with SMTP id ffacd0b85a97d-368240ac9a5mr61138f8f.47.1721057251478; Mon, 15 Jul 2024 08:27:31 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680dabf195sm6655604f8f.42.2024.07.15.08.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 08:27:30 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Maxime Coquelin , dpdk stable Subject: patch 'baseband/la12xx: forbid secondary process' has been queued to stable release 22.11.6 Date: Mon, 15 Jul 2024 16:25:48 +0100 Message-Id: <20240715152704.2229503-10-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240715152704.2229503-1-luca.boccassi@gmail.com> References: <20240624235907.885628-81-luca.boccassi@gmail.com> <20240715152704.2229503-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 22.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/17/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/cbe35e02f95454b3f698af10e41ee6d1fb95b903 Thanks. Luca Boccassi --- >From cbe35e02f95454b3f698af10e41ee6d1fb95b903 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Tue, 2 Jul 2024 11:39:21 +0530 Subject: [PATCH] baseband/la12xx: forbid secondary process [ upstream commit 95547dc69119154c85abfa7e8523e83a7ac05c9e ] The la12xx driver do not have any checks for secondary process and it causes the system to try to initialize the driver, causing segmentation faults. LA12xx driver do not support multi-processing. Return when not called from Primary process. Fixes: f218a1f92017 ("baseband/la12xx: introduce NXP LA12xx driver") Signed-off-by: Hemant Agrawal Reviewed-by: Maxime Coquelin --- drivers/baseband/la12xx/bbdev_la12xx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/baseband/la12xx/bbdev_la12xx.c b/drivers/baseband/la12xx/bbdev_la12xx.c index bb754a5395..1a56e73abd 100644 --- a/drivers/baseband/la12xx/bbdev_la12xx.c +++ b/drivers/baseband/la12xx/bbdev_la12xx.c @@ -1084,6 +1084,9 @@ la12xx_bbdev_remove(struct rte_vdev_device *vdev) PMD_INIT_FUNC_TRACE(); + if (rte_eal_process_type() != RTE_PROC_PRIMARY) + return 0; + if (vdev == NULL) return -EINVAL; -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-07-15 16:19:35.311188712 +0100 +++ 0010-baseband-la12xx-forbid-secondary-process.patch 2024-07-15 16:19:34.448203901 +0100 @@ -1 +1 @@ -From 95547dc69119154c85abfa7e8523e83a7ac05c9e Mon Sep 17 00:00:00 2001 +From cbe35e02f95454b3f698af10e41ee6d1fb95b903 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 95547dc69119154c85abfa7e8523e83a7ac05c9e ] + @@ -13 +14,0 @@ -Cc: stable@dpdk.org