linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Schmitz <schmitzmic@gmail.com>
To: Paolo Pisati <p.pisati@gmail.com>,
	linux-m68k <linux-m68k@lists.linux-m68k.org>
Subject: Re: [PATCH v2] m68k: amiga: config: upon boot, turn off all incoming interrupts from the Warp1260
Date: Fri, 31 May 2024 09:16:48 +1200	[thread overview]
Message-ID: <aea77fa1-9369-40f2-be17-d76c6da499a3@gmail.com> (raw)
In-Reply-To: <20240530155719.680002-1-p.pisati@gmail.com>

Paolo,

thanks for addressing all review comments!

On 31/05/24 03:57, Paolo Pisati wrote:
> Amiga 1200 boot crashes in local_irq_enable() (or auto_irq_enable()) with an
> interrupt storm (the Warp1260 board interrupts appear to still be active at boot
> time): CS-Lab told me where to find the interrupt register (and its layout) so
> here's patch that turns off all incoming interrupts during
> config.c::amiga_parse_bootinfo().
>
> Changes since v1:
> -addressed all comments from Geert and Michael

One more nitpick: The changes history should be placed after all tags 
that must be retained in the final commit message, and separated from 
these tags by a line containing just '---'.

That way, your review change history will not become part of the final 
commit message.

With that said,

Reviewed-by: Michael Schmitz <schmitzmic@gmail.com>

>
> Link: https://lore.kernel.org/r/ZkjwzVwYeQtyAPrL@amaterasu.local
> Cc: stable <stable@kernel.org>
> Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
> ---
>   arch/m68k/amiga/config.c       | 9 +++++++++
>   include/uapi/linux/zorro_ids.h | 3 +++
>   2 files changed, 12 insertions(+)
>
> diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c
> index 3137b45750df..fa74452600c1 100644
> --- a/arch/m68k/amiga/config.c
> +++ b/arch/m68k/amiga/config.c
> @@ -180,6 +180,15 @@ int __init amiga_parse_bootinfo(const struct bi_record *record)
>   			dev->slotsize = be16_to_cpu(cd->cd_SlotSize);
>   			dev->boardaddr = be32_to_cpu(cd->cd_BoardAddr);
>   			dev->boardsize = be32_to_cpu(cd->cd_BoardSize);
> +
> +			/* CS-LAB Warp 1260 workaround */
> +			if (be16_to_cpu(dev->rom.er_Manufacturer) == ZORRO_MANUF(ZORRO_PROD_CSLAB_WARP_1260) &&
> +			    dev->rom.er_Product == ZORRO_PROD(ZORRO_PROD_CSLAB_WARP_1260)) {
> +
> +				/* turn off all interrupts */
> +				pr_info("Warp 1260 card detected: applying interrupt storm workaround");
> +				*(uint32_t *)(dev->boardaddr + 0x1000) = 0x0FFF;
> +			}
>   		} else
>   			pr_warn("amiga_parse_bootinfo: too many AutoConfig devices\n");
>   #endif /* CONFIG_ZORRO */
> diff --git a/include/uapi/linux/zorro_ids.h b/include/uapi/linux/zorro_ids.h
> index 6e574d7b7d79..393f2ee9c042 100644
> --- a/include/uapi/linux/zorro_ids.h
> +++ b/include/uapi/linux/zorro_ids.h
> @@ -449,6 +449,9 @@
>   #define  ZORRO_PROD_VMC_ISDN_BLASTER_Z2				ZORRO_ID(VMC, 0x01, 0)
>   #define  ZORRO_PROD_VMC_HYPERCOM_4				ZORRO_ID(VMC, 0x02, 0)
>   
> +#define ZORRO_MANUF_CSLAB					0x1400
> +#define  ZORRO_PROD_CSLAB_WARP_1260				ZORRO_ID(CSLAB, 0x65, 0)
> +
>   #define ZORRO_MANUF_INFORMATION					0x157C
>   #define  ZORRO_PROD_INFORMATION_ISDN_ENGINE_I			ZORRO_ID(INFORMATION, 0x64, 0)
>   

      reply	other threads:[~2024-05-30 21:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-30 15:57 [PATCH v2] m68k: amiga: config: upon boot, turn off all incoming interrupts from the Warp1260 Paolo Pisati
2024-05-30 21:16 ` Michael Schmitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aea77fa1-9369-40f2-be17-d76c6da499a3@gmail.com \
    --to=schmitzmic@gmail.com \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=p.pisati@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).