* [PATCH] m68k: fix TT bootup freeze / unexpected (SCU) interrupt messages
@ 2024-06-23 23:25 Eero Tamminen
2024-06-23 23:37 ` Michael Schmitz
0 siblings, 1 reply; 3+ messages in thread
From: Eero Tamminen @ 2024-06-23 23:25 UTC (permalink / raw)
To: linux-m68k; +Cc: Michael Schmitz, Geert Uytterhoeven, Eero Tamminen
Avoid freeze on Atari TT / MegaSTe boot with continues messages of:
unexpected interrupt from 112
Which was due to VBL interrupt being enabled in SCU sys mask, but
there being no handler for that any more.
Fixes: 1fa0b29f3a43f9dd
Reported-By: Nicolas Pomarède and Christian Zietz
(Bug and fix verified first on real Atari TT by Christian Zietz,
this patch later on in Hatari emulator.)
---
arch/m68k/atari/ataints.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/m68k/atari/ataints.c b/arch/m68k/atari/ataints.c
index 230203ffb..fa189eeb7 100644
--- a/arch/m68k/atari/ataints.c
+++ b/arch/m68k/atari/ataints.c
@@ -303,11 +303,7 @@ void __init atari_init_IRQ(void)
if (ATARIHW_PRESENT(SCU)) {
/* init the SCU if present */
- tt_scu.sys_mask = 0x10; /* enable VBL (for the cursor) and
- * disable HSYNC interrupts (who
- * needs them?) MFP and SCC are
- * enabled in VME mask
- */
+ tt_scu.sys_mask = 0x0; /* disable all interrupts */
tt_scu.vme_mask = 0x60; /* enable MFP and SCC ints */
} else {
/* If no SCU and no Hades, the HSYNC interrupt needs to be
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] m68k: fix TT bootup freeze / unexpected (SCU) interrupt messages
2024-06-23 23:25 [PATCH] m68k: fix TT bootup freeze / unexpected (SCU) interrupt messages Eero Tamminen
@ 2024-06-23 23:37 ` Michael Schmitz
2024-06-24 7:15 ` Geert Uytterhoeven
0 siblings, 1 reply; 3+ messages in thread
From: Michael Schmitz @ 2024-06-23 23:37 UTC (permalink / raw)
To: Eero Tamminen, linux-m68k; +Cc: Geert Uytterhoeven
Hi Eero,
thanks for your patch!
On 24/06/24 11:25, Eero Tamminen wrote:
> Avoid freeze on Atari TT / MegaSTe boot with continues messages of:
> unexpected interrupt from 112
>
> Which was due to VBL interrupt being enabled in SCU sys mask, but
> there being no handler for that any more.
>
> Fixes: 1fa0b29f3a43f9dd
Fixes: 1fa0b29f3a43f9dd ("fbdev: Kill Atari vblank cursor blinking")
Your Signed-off-by needed as well. And you might want to add:
Link:
https://lore.kernel.org/all/9aa793d7-82ed-4fbd-bce5-60810d8a9119@helsinkinet.fi
before the signed-off tag.
With that addressed:
Reviewed-by: Michael Schmitz <schmitzmic@gmail.com>
> Reported-By: Nicolas Pomarède and Christian Zietz
>
> (Bug and fix verified first on real Atari TT by Christian Zietz,
> this patch later on in Hatari emulator.)
> ---
> arch/m68k/atari/ataints.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/arch/m68k/atari/ataints.c b/arch/m68k/atari/ataints.c
> index 230203ffb..fa189eeb7 100644
> --- a/arch/m68k/atari/ataints.c
> +++ b/arch/m68k/atari/ataints.c
> @@ -303,11 +303,7 @@ void __init atari_init_IRQ(void)
>
> if (ATARIHW_PRESENT(SCU)) {
> /* init the SCU if present */
> - tt_scu.sys_mask = 0x10; /* enable VBL (for the cursor) and
> - * disable HSYNC interrupts (who
> - * needs them?) MFP and SCC are
> - * enabled in VME mask
> - */
> + tt_scu.sys_mask = 0x0; /* disable all interrupts */
> tt_scu.vme_mask = 0x60; /* enable MFP and SCC ints */
> } else {
> /* If no SCU and no Hades, the HSYNC interrupt needs to be
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] m68k: fix TT bootup freeze / unexpected (SCU) interrupt messages
2024-06-23 23:37 ` Michael Schmitz
@ 2024-06-24 7:15 ` Geert Uytterhoeven
0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2024-06-24 7:15 UTC (permalink / raw)
To: Michael Schmitz; +Cc: Eero Tamminen, linux-m68k
On Mon, Jun 24, 2024 at 1:37 AM Michael Schmitz <schmitzmic@gmail.com> wrote:
>
> On 24/06/24 11:25, Eero Tamminen wrote:
> > Avoid freeze on Atari TT / MegaSTe boot with continues messages of:
> > unexpected interrupt from 112
> >
> > Which was due to VBL interrupt being enabled in SCU sys mask, but
> > there being no handler for that any more.
> >
> > Fixes: 1fa0b29f3a43f9dd
>
> Fixes: 1fa0b29f3a43f9dd ("fbdev: Kill Atari vblank cursor blinking")
>
> Your Signed-off-by needed as well. And you might want to add:
Indeed
> Link: https://lore.kernel.org/all/9aa793d7-82ed-4fbd-bce5-60810d8a9119@helsinkinet.fi
Please use "Closes:" for links to bug reports.
scripts/checkpatch.pl would have told you (due to the presence of
Reported-by:)
> before the signed-off tag.
>
> With that addressed:
>
> Reviewed-by: Michael Schmitz <schmitzmic@gmail.com>
Thanks to all!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-24 7:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-23 23:25 [PATCH] m68k: fix TT bootup freeze / unexpected (SCU) interrupt messages Eero Tamminen
2024-06-23 23:37 ` Michael Schmitz
2024-06-24 7:15 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox