public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* Regression: Atari SCU support
@ 2024-06-19 14:43 Eero Tamminen
  2024-06-20  1:24 ` Michael Schmitz
  0 siblings, 1 reply; 2+ messages in thread
From: Eero Tamminen @ 2024-06-19 14:43 UTC (permalink / raw)
  To: linux-m68k; +Cc: Geert Uytterhoeven, Michael Schmitz

Hi,

During the development of Atari TT / MegaSTe SCU support for Hatari 
emulator, it was noticed that m68k Linux does not properly initialize 
SCU registers / IRQ handlers on boot.

Currently Linux freezes at boot and spews "unexpected interrupt" 
messages constantly on TT.

Nicolas Pomarède and Christian Zietz investigated:
* Issue to be due to VBL IRQ handler removal [1]
* boot to succeed if either 0x00 is written to the SCU sys_mask 
(preferred), or handler is provided for VEC_INT4 [2] when SCU is used

Christian has verified the issue and its workaround on real Atari TT.


	- Eero

[1] 
https://github.com/torvalds/linux/commit/1fa0b29f3a43f9dd8080d24cd16790b15ef963f5
[2] 
https://git.tuxfamily.org/hatari/hatari.git/tree/tools/linux/0004-WA-avoid-unexpected-SCU-interrupts.patch

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Regression: Atari SCU support
  2024-06-19 14:43 Regression: Atari SCU support Eero Tamminen
@ 2024-06-20  1:24 ` Michael Schmitz
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Schmitz @ 2024-06-20  1:24 UTC (permalink / raw)
  To: Eero Tamminen, linux-m68k; +Cc: Geert Uytterhoeven

Hi Eero,

while the workaround will shut up the unexpected interrupt messages, it 
still does not prevent that interrupt from happening.

falcon_hblhandler() will not set the IPL sufficiently high for that, and 
I do not know whether permanently setting IPL 4 will quiesce other 
system interrupts.

Setting tt_scu.sys_mask zero is indeed the preferred option.

If you or Christian want to submit a patch to that effect, I'll gladly 
add my review tag.

Cheers,

     Michael


On 20/06/24 02:43, Eero Tamminen wrote:
> Hi,
>
> During the development of Atari TT / MegaSTe SCU support for Hatari 
> emulator, it was noticed that m68k Linux does not properly initialize 
> SCU registers / IRQ handlers on boot.
>
> Currently Linux freezes at boot and spews "unexpected interrupt" 
> messages constantly on TT.
>
> Nicolas Pomarède and Christian Zietz investigated:
> * Issue to be due to VBL IRQ handler removal [1]
> * boot to succeed if either 0x00 is written to the SCU sys_mask 
> (preferred), or handler is provided for VEC_INT4 [2] when SCU is used
>
> Christian has verified the issue and its workaround on real Atari TT.
>
>
>     - Eero
>
> [1] 
> https://github.com/torvalds/linux/commit/1fa0b29f3a43f9dd8080d24cd16790b15ef963f5
> [2] 
> https://git.tuxfamily.org/hatari/hatari.git/tree/tools/linux/0004-WA-avoid-unexpected-SCU-interrupts.patch

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-20  1:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 14:43 Regression: Atari SCU support Eero Tamminen
2024-06-20  1:24 ` Michael Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox