From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93ABBC43461 for ; Fri, 11 Sep 2020 10:13:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E2C0221E5 for ; Fri, 11 Sep 2020 10:13:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725554AbgIKKNP (ORCPT ); Fri, 11 Sep 2020 06:13:15 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:35363 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgIKKNN (ORCPT ); Fri, 11 Sep 2020 06:13:13 -0400 Received: by mail-il1-f193.google.com with SMTP id y9so703570ilq.2; Fri, 11 Sep 2020 03:13:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hNAgDJmssVpw4aMJ18Kb1if3usn2Q1OLYU7PwTagydI=; b=XasShgc6jkunjr2FzZ2Zg/+2Uhkko/zR/kargiaqWBq9SC1RxEJ0HJVB7X5kmS/xGe Z0AjLhyZ3NeOrAvxlSTt5kCJV++AymMQObb07iSMLUL7VlyhZrAk1b59sCyDOXPHzEGd x/DdwSvl6bb+F462eDWi1KlvtZ58lp1EkUHajWY/g5zsaGbvU7qYHCifUvBb8NiYeVWA xe+yFpCyjTLgFIW/Ul/rZhz2yvNxMM2DWEfMkU3Midc0LzQSscHG0JZwnqGRZSZqgvi0 B6FLiu/QSYfASdsnc4W/b6V7qTMcKX+LWHyBLAS4adT0UcI+uDA5/Hphc/xjZYz1GXVj gYwg== X-Gm-Message-State: AOAM533vaImYiSvsm9uYTTrIDCADG42k/dnhYW272C3zyraoslkPyTPb PjnO3tMvXgD0mbL/QpL8fQxoSTJ+fTh+oprcJVs= X-Google-Smtp-Source: ABdhPJwUVdyO+k4KE34x6ppO9BMm8P/K08kHVYCJa1Rk6zmWOIv8EG/Kfr5AxqsGi6/kDCieNbG0G7aV+4cuRnsSBhs= X-Received: by 2002:a92:2806:: with SMTP id l6mr1095325ilf.147.1599819188684; Fri, 11 Sep 2020 03:13:08 -0700 (PDT) MIME-Version: 1.0 References: <1599624552-17523-1-git-send-email-chenhc@lemote.com> <1599624552-17523-3-git-send-email-chenhc@lemote.com> <613dd7bc4d7eeec1a5fd30f679fc83eb@kernel.org> <6af66ab3dbf81cc1d0cf4c204ebac2b8@kernel.org> In-Reply-To: <6af66ab3dbf81cc1d0cf4c204ebac2b8@kernel.org> From: Huacai Chen Date: Fri, 11 Sep 2020 18:12:55 +0800 Message-ID: Subject: Re: [PATCH 3/3] irqchip/loongson-pch-pic: Reserve legacy LPC irqs To: Marc Zyngier Cc: Thomas Bogendoerfer , Thomas Gleixner , Jason Cooper , "open list:MIPS" , Fuxin Zhang , Jiaxun Yang , stable Content-Type: text/plain; charset="UTF-8" Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Hi, Marc, On Fri, Sep 11, 2020 at 3:50 PM Marc Zyngier wrote: > > On 2020-09-11 05:13, Huacai Chen wrote: > > Hi, Marc, > > > > On Thu, Sep 10, 2020 at 6:08 PM Marc Zyngier wrote: > >> > >> On 2020-09-09 05:09, Huacai Chen wrote: > >> > Reserve legacy LPC irqs (0~15) to avoid spurious interrupts. > >> > >> How can they be spurious? Why are they enabled the first place? > >> > >> This looks like you are papering over a much bigger issue. > > The spurious interrupts are probably occurred after kdump and the irq > > number is in legacy LPC ranges. I think this is because the old kernel > > doesn't (and it can't) disable devices properly so there are stale > > interrupts in the kdump case. > > I don't really understand why the old kernel can't turn the interrupts > off. Most architectures are able t, why not yours? > > Finally, why don't you just shut these interrupts off the first place > in the interrupt controller init? Adding a whole lot of kernel > data structures as a band-aid doesn't strike me as the best possible > idea. Not to mention that if they keep firing, all you are doing > is adding extra overhead. After tests, I found that the previous patch (patch 2 in this series) can avoid most spurious interrupts and kdump can work, so I will send V2 to drop this patch. Huacai > > M. > -- > Jazz is not dead. It just smells funny...