Commit 8d5db9b
committed
firmware: arm_ffa: Fix FFA notifications cleanup path
JIRA: https://issues.redhat.com/browse/RHEL-102691
commit 6d67cbe
Author: Sudeep Holla <sudeep.holla@arm.com>
Date: Tue, 24 Oct 2023 11:56:20 +0100
We allow the FF-A to be initialised successfully even when notification
fails. When the notification fails, ffa_notifications_cleanup() gets
called on the failure path.
However, the driver information about the notifications like the irq,
workqueues and cpu hotplug state for enabling and disabling percpu IRQ
are not cleared. This may result in unexpected behaviour during CPU
hotplug because of percpu IRQ being enabled and disabled or during the
driver removal when ffa_notifications_cleanup() gets executed again.
Fix the FFA notifications cleanup path by clearing all the notification
related driver information.
Link: https://lore.kernel.org/r/20231024-ffa-notification-fixes-v1-4-d552c0ec260d@arm.com
Tested-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>1 parent 5b56708 commit 8d5db9b
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
| 1329 | + | |
1330 | 1330 | | |
| 1331 | + | |
| 1332 | + | |
1331 | 1333 | | |
1332 | 1334 | | |
1333 | 1335 | | |
| |||
1344 | 1346 | | |
1345 | 1347 | | |
1346 | 1348 | | |
1347 | | - | |
| 1349 | + | |
1348 | 1350 | | |
| 1351 | + | |
| 1352 | + | |
1349 | 1353 | | |
1350 | | - | |
| 1354 | + | |
1351 | 1355 | | |
| 1356 | + | |
| 1357 | + | |
1352 | 1358 | | |
1353 | 1359 | | |
1354 | 1360 | | |
1355 | 1361 | | |
1356 | | - | |
| 1362 | + | |
1357 | 1363 | | |
| 1364 | + | |
| 1365 | + | |
1358 | 1366 | | |
1359 | 1367 | | |
1360 | 1368 | | |
| |||
0 commit comments