(Follow-up, not a regression) A task woken by an IRQ handler on CPU 0 can still wait until the sleep ends
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- operating-systems
Línea de trabajo
Read kernel/src/lib.rs:109-136 and awkernel_lib/src/cpu/sleep_cpu_no_std.rs, focusing on sleep and wake_up; trace how an IRQ that enqueues a task affects the current CPU while its tag is Active. Check the existing model and identify what must change so this wake path is covered. Done means the task does not wait for the sleep timeout after that IRQ, with a model update covering the path.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
File: kernel/src/lib.rs:109-136, awkernel_lib/src/cpu/sleep_cpu_no_std.rs
(sleep, wake_up).
The primary CPU runs with interrupts disabled except in the IRQ window at the
top of the loop and inside sleep_cpu(). An IRQ that arrives during
wake_task() or wake_workers() is handled right after
InterruptEnable::new() in sleep(), while the tag is still Active. If the
handler wakes a task:
wake_cpu(0)targets the current CPU and does nothing.reset_wakeup_timer()does nothing, because the tag isActive.- The CPU then moves to
Waitingand halts until the timeout (up to 1 second),
withNUM_TASK_IN_QUEUE > 0and possibly all workers asleep.
This window existed before, and it was wider in the old order. But the
saturated counter kept the primary CPU spinning, which hid the delay; with an
exact counter it becomes visible, in the same way as the timer case that this
PR fixes.
One possible fix is to let wake_up() on the current CPU change Active to
Continue, so that the next sleep() returns at once. The current model does
not cover this path, because its interrupt handlers do not enqueue tasks, so
such a change should come with a model update.
- Lenguaje dominante
- Rust
- Estrellas
- 282
- Forks
- 12
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 28
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tier4/awkernel
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 2 días
-
Deadlock in ixgbeAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
Los mantenedores suelen responder en 2 días
Todos los issues de tier4/awkernel
Issues similares
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
flashbots/panetiere#46 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jlcodes99/cockpit-tools#3190 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Feyisara2108/stellargive#1376 ·
Los mantenedores suelen responder en 1 día
-
area:post bug effort:medium P7 source:agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día