From patchwork Mon Aug 19 15:24:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13768501 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2085.outbound.protection.outlook.com [40.107.20.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBCD23BBCC; Mon, 19 Aug 2024 15:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.85 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724081098; cv=fail; b=auKHbITIKihJevUA+EUwi+z9PJwlvtS0yHMeKrKa6/fEdhsNk0Vh+oHrUSN1YVbHDYK+UsJ6DDPv2H99+o/ER069+yVru0lAWT4kaILQXROs6H0qRkxcXSU2WbQAZPriCe59o1MGQonfM6LOGQPhT0BiZic/1KVxb1RThVmB6vA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724081098; c=relaxed/simple; bh=xT4oMXROmCJPMAK8gQLpWoP77+vk++yOYNZ8UKrjpF0=; h=Message-ID:Date:From:Subject:To:Cc:Content-Type:MIME-Version; b=LCvSC8eEytXdHosaWNyrvsV2+hKIly12B2v2MiEuSJiY05LpI9rhCW78iEYaonkPJFZQyAyWzVXSlwiVPGfi9z0GH0OueyxVKrE2L13CYQ7v9YJSsw1AEm8+PakNcp+anWEyGAA/PR5yJWTgXGJhmGfNnjuybQbWpLhTwNIDhYE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=siemens.com; dkim=pass (2048-bit key) header.d=siemens.com header.i=@siemens.com header.b=BkZrr26T; arc=fail smtp.client-ip=40.107.20.85 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siemens.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=siemens.com header.i=@siemens.com header.b="BkZrr26T" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RNZlvXiK0+plnM9e7q/2R7VFslK5oorrbP/9dGGaP0CTMBnmml5k8EpJJXA8RzWxigFTnWTgVnNxH+jXUWucvfvsFAnK4Fp1k6QfHzwHnQwo2QJQrqoy7ufE5BCktFAW4+MzO/kqF5xzosbTWhOz1TK/GiYOMr/CR8zF0OIuUCOxI+D4sIQCcNavjuNunGmBLQyYxlsga7W14+b7LEObi0kBGF9GU/xfgX+z3UWZiyFAQ96sGhkfStO6IUMXUS80UARz6BVjpZaFjeGQzjrOEzBFUWZQBvoftuhXXyZsOULIKX0cNZsk3TanEAceaOOkTftznZE5Y8KzDoCBYArNtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UlMzO7tYNc/Z28oizVFpyU4Aj72vP543gy7yQsCl2e8=; b=NrenKIKQwE2hDJlw4TinWChEyJASwed3pvmJZc9wRSFPhGrvtdSZXEwcUqpPV4uuFX1EEcz5GHjayxDNQM8ES8sXHD4eI5JnP2vPw1EI5/0ADAKsgBUgs4dGNNyqbf/gLY1b4QKq6tid2Xe5xY+Tf+nUzUKoZ/u97uoVP/R4TBRiphRBvqGFeZ22TmV1+orzd7oTGBAdRjd2gFIpXB3BWYr6TcYLbtYrmJ9XTC2nHSaCbsAMv4wpk/72wOaO3zhfkPInV1thM6KomkDpp5R8JWwHA1CM75/yTzmYoC3zhcQ8coRcMG2Mh9QyFWA0wALU7DGJtUkFCcE6Fr5BBxMb+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UlMzO7tYNc/Z28oizVFpyU4Aj72vP543gy7yQsCl2e8=; b=BkZrr26TfzoZbM43jzX2gRE7YW+TwpuZuPk8zLQmspIUr/JJIgV7FjpEfAkwg229+RJ0/Hl0ZUyvEuLEkym+jqH6rSMzAcbFFO3rPoktEooZNvfOverOwwC4CBUB0Xq3AVeHTtgmAZzY8dN6f4GAuRu2GUSd4tGDBl/wZNQqgAHUAcO8brJSZq29WhJ6gWuS3n6FNvoo+Glykg3dwhDFq1jBrsKxlGgwi/ze/QAG0r+DBrcxslrad+pdy1MezPje2xgX8jecivaIB+lFcOOwgwk0j6NASG7YBjJnclX/d6xQNXeETYUgEbvtK4nuvppAx4yuNVPyqqX20yfabu5RAw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by PAXPR10MB5662.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:245::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.20; Mon, 19 Aug 2024 15:24:54 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408%4]) with mapi id 15.20.7875.019; Mon, 19 Aug 2024 15:24:54 +0000 Message-ID: <9f481156-f220-4adf-b3d9-670871351e26@siemens.com> Date: Mon, 19 Aug 2024 17:24:51 +0200 User-Agent: Mozilla Thunderbird From: Jan Kiszka Subject: [PATCH] remoteproc: k3-r5: Fix error handling when power-up failed Content-Language: en-US To: Bjorn Andersson , Mathieu Poirier , linux-remoteproc@vger.kernel.org Cc: Linux Kernel Mailing List , Apurva Nandan , Beleswar Padhi , "stable@vger.kernel.org" , Nishanth Menon Autocrypt: addr=jan.kiszka@siemens.com; keydata= xsFNBGZY+hkBEACkdtFD81AUVtTVX+UEiUFs7ZQPQsdFpzVmr6R3D059f+lzr4Mlg6KKAcNZ uNUqthIkgLGWzKugodvkcCK8Wbyw+1vxcl4Lw56WezLsOTfu7oi7Z0vp1XkrLcM0tofTbClW xMA964mgUlBT2m/J/ybZd945D0wU57k/smGzDAxkpJgHBrYE/iJWcu46jkGZaLjK4xcMoBWB I6hW9Njxx3Ek0fpLO3876bszc8KjcHOulKreK+ezyJ01Hvbx85s68XWN6N2ulLGtk7E/sXlb 79hylHy5QuU9mZdsRjjRGJb0H9Buzfuz0XrcwOTMJq7e7fbN0QakjivAXsmXim+s5dlKlZjr L3ILWte4ah7cGgqc06nFb5jOhnGnZwnKJlpuod3pc/BFaFGtVHvyoRgxJ9tmDZnjzMfu8YrA +MVv6muwbHnEAeh/f8e9O+oeouqTBzgcaWTq81IyS56/UD6U5GHet9Pz1MB15nnzVcyZXIoC roIhgCUkcl+5m2Z9G56bkiUcFq0IcACzjcRPWvwA09ZbRHXAK/ao/+vPAIMnU6OTx3ejsbHn oh6VpHD3tucIt+xA4/l3LlkZMt5FZjFdkZUuAVU6kBAwElNBCYcrrLYZBRkSGPGDGYZmXAW/ VkNUVTJkRg6MGIeqZmpeoaV2xaIGHBSTDX8+b0c0hT/Bgzjv8QARAQABzSNKYW4gS2lzemth IDxqYW4ua2lzemthQHNpZW1lbnMuY29tPsLBlAQTAQoAPhYhBABMZH11cs99cr20+2mdhQqf QXvYBQJmWPvXAhsDBQkFo5qABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEGmdh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Okuoa01EqNi9yqyLA8gPgg/DhOpGtK8KokCsdYsTbk= X-ClientProxiedBy: FR0P281CA0065.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:49::18) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) Precedence: bulk X-Mailing-List: linux-remoteproc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|PAXPR10MB5662:EE_ X-MS-Office365-Filtering-Correlation-Id: d233b758-e25f-4472-a004-08dcc063137b X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?BBRWQJWb/3s81OpY4gVaenqhlkwsr1n?= =?utf-8?q?JfiJwJshGBr+qEz5aY6r3o6OpFxExgxZ5yHN70hHAL5fxF/cd7qNypse+F5WEsHoV?= =?utf-8?q?yV2g8pYlmH2zLQHW2WcqCf2goQL5sQmwjOqhpsIB9D5lXt+rIRNgLJPx+uEaxFVzZ?= =?utf-8?q?dtNGDdWqLEgRSNLYqqEwnQufm+sMHV6ExR9J2wv+qZPDP5U3o6IvyYUczjy8K7GNX?= =?utf-8?q?gA6I2v16HCZO/1EUXtvJF5QbiNf0AlJXj7BwrYYwWgMtFQlllqQpe7rEY8awk8vzm?= =?utf-8?q?bcQ7r1pW3pjfy3hVe8KR/k2AYAm5Rb6GB6g8dgVmrcyv68EamyDsEFI3wKauP0DGs?= =?utf-8?q?Htt3+4yvpmGDubcPFm4p5oYs3Zuh/oT7DpKUpl6/PijRJRRrqNB0YGD3G9QOJ97uN?= =?utf-8?q?tdVWCGMbsImN4rMY5IWlcog7+qKtz8bntPooFlcvg2jhzxJPeGOmgawXpFAN+PmL2?= =?utf-8?q?4digD+e7dyfL598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:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?UAT09oNKUSRQMRLxQeqWfhujPDwJ?= =?utf-8?q?+9aELw2uLaPz5Fs7rdNnvQRo/dVA2ihzbAakNmZLNyOqMu7snzqO8lk95BuVoyeUv?= =?utf-8?q?w54X+2DCLBv1ncvlqLM21t4Blq3PRDLXxvW48C/8YfEPUnxGNuZHKAOOEpbM0Wv1a?= =?utf-8?q?LYazWKvBtLl3B/gfaYEvGPzj5AAVX0QmN+9i36rQhoknupKfO1YvjQdinXJZdgmM9?= =?utf-8?q?Axm3LNBetkW8Y0FfReGR9W4EhtkpIbNYYMBcxoiVT6F2UkLxoe3JC/0JMmcTU2c1E?= =?utf-8?q?qkzBxo9VAVivQq7pZwNxojeN1+DbHy+osEcuh7zKuhQqYdahlAcZxGgZZNDkRJyt6?= =?utf-8?q?TytT/nJ6cJl9bmvnSd1gyg4FIhnrI1nsqgTb40clDIZu/T7JHPMWOEZ48TFwf58kE?= =?utf-8?q?TXFYtiR9WKAh7AKta9q7+JcZas9XUvAYLnYACtXqlmWgPR/K6t1V0CYiWNvdrVvxk?= =?utf-8?q?ZWTxPwDpKO1m0VLiwndvLuPU1kildFUUuJ0e80WnABGyp10s05prIj6AGu/LClyrC?= =?utf-8?q?sfJIRB5jB9Y1zcxCShp/13T4aJwGPrmmupw+oCan+yMcTP3HMOQkwyf0hTHd+g6vJ?= =?utf-8?q?klBNtUBWPN3hEDhA58SIm0SDSHw775J/Gq2oekFCr8mzr0YVK9tRvCSffa7MeJBUK?= =?utf-8?q?Ag+rOqVqSjpwUuXlyjJMhv6+QnQ8g2b1DJ7bTyWpxK6J6Gzp8BtSk+Jn9c/vcm86W?= =?utf-8?q?gqO2964hpll1zZ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id: d233b758-e25f-4472-a004-08dcc063137b X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2024 15:24:54.1619 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OsvQI+Sb6PAmCvE3pQ0ymxcfIo4gzYcPbzDn/yLeNlJEt0+cmcgE86Ww8ayxOAO0V2ObL8Y9CQSkEW6KDLiZLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR10MB5662 From: Jan Kiszka By simply bailing out, the driver was violating its rule and internal assumptions that either both or no rproc should be initialized. E.g., this could cause the first core to be available but not the second one, leading to crashes on its shutdown later on while trying to dereference that second instance. Fixes: 61f6f68447ab ("remoteproc: k3-r5: Wait for core0 power-up before powering up core1") Signed-off-by: Jan Kiszka Acked-by: Beleswar Padhi --- drivers/remoteproc/ti_k3_r5_remoteproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/ti_k3_r5_remoteproc.c b/drivers/remoteproc/ti_k3_r5_remoteproc.c index 39a47540c590..eb09d2e9b32a 100644 --- a/drivers/remoteproc/ti_k3_r5_remoteproc.c +++ b/drivers/remoteproc/ti_k3_r5_remoteproc.c @@ -1332,7 +1332,7 @@ static int k3_r5_cluster_rproc_init(struct platform_device *pdev) dev_err(dev, "Timed out waiting for %s core to power up!\n", rproc->name); - return ret; + goto err_powerup; } } @@ -1348,6 +1348,7 @@ static int k3_r5_cluster_rproc_init(struct platform_device *pdev) } } +err_powerup: rproc_del(rproc); err_add: k3_r5_reserved_mem_exit(kproc);