Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp855680imj; Thu, 7 Feb 2019 13:00:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IZPBppoz1IypHEf9hSKZ9e6VLf1CUXktlEWlRnAcxU/8WjHj3AjD6YlhcXn3BXeoJIIkOVl X-Received: by 2002:a17:902:3143:: with SMTP id w61mr18934427plb.253.1549573243097; Thu, 07 Feb 2019 13:00:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549573243; cv=none; d=google.com; s=arc-20160816; b=VP/e/k/CsTWsxck2uCytg8vJ+aDNhVHuEbInS1TeM/92u5PhdsYmO7aOIc4M0ZRRtW kEqWBUvHiVMhFv2jY8jYUZGCday6jcNBOdWns6Kv1D8ilt37h7pJuFWqAf7ClvhoI/sv owU5pQavTG8Kb0JESwrZ3FaWnOoyMQIiysNjqvdUEuw+X3vn3tWPolEbXdsPGf/NkmuM KkelHvO01orbs3kyD/BWvB2VJ3ZgBb/xhQqrd0dr7h0qyoWClUN2i6PZD2pGJy5XJzPS YxmjKKwapWXFtaPv6yyV+b5DxfeXTfHpb5AglasdnjHHVjcy5of3Jm5LHyYTYSjTmCVo tQLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Ll+RrlUBio+bXY0XWO3zvB1teixekEEdr+Em9IYDyuo=; b=O5ZUWTPFD98DQ6zUqEZhq9LU8blIz/u9EDSEt4O4afVKwDD6r72vcVhtLli1Oe9u/4 5eyK0l7JhbTVhqbiRnxhYWBLlrsZV1DNrVVNbF9Fk76MOV0bvK7hqB0DDctkEPrSb2zL fEqCa5AYFukgfWKNxo3unh5TOOP65ft4FBxfxo71EXBvH+GGyWtd9ZRLXuiOhENh17rp Ssi/MKn4ViHe0VcaWs4cXcZuVNXebhqMAZ0JDezRT9KqFoafvaRWA/TPkEiOUb6nhgBI uk5cZiu3cKWGXT5ZJASay7MRtLktbU1mIbvetY0nZg2qOzTduHK78CuSsCWUrCDtpWgR 3Uzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j39si11324plb.272.2019.02.07.13.00.26; Thu, 07 Feb 2019 13:00:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727646AbfBGU6Q (ORCPT + 99 others); Thu, 7 Feb 2019 15:58:16 -0500 Received: from emh03.mail.saunalahti.fi ([62.142.5.109]:53414 "EHLO emh03.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727485AbfBGU6P (ORCPT ); Thu, 7 Feb 2019 15:58:15 -0500 Received: from darkstar.musicnaut.iki.fi (85-76-102-43-nat.elisa-mobile.fi [85.76.102.43]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 1879D400C8; Thu, 7 Feb 2019 22:58:12 +0200 (EET) Date: Thu, 7 Feb 2019 22:58:12 +0200 From: Aaro Koskinen To: Marc Zyngier Cc: Thomas Gleixner , Jason Cooper , linux-kernel@vger.kernel.org, tomli@tomli.me, "Rafael J. Wysocki" , Ralf Baechle , Paul Burton , James Hogan Subject: Re: [PATCH] irqchip/i8259: fix shutdown order by moving syscore_ops registration Message-ID: <20190207205812.GA11315@darkstar.musicnaut.iki.fi> References: <20190206212608.27189-1-aaro.koskinen@iki.fi> <8492440b-b489-0ce1-865c-4505042cb061@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8492440b-b489-0ce1-865c-4505042cb061@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Feb 07, 2019 at 08:56:37AM +0000, Marc Zyngier wrote: > On 06/02/2019 21:26, Aaro Koskinen wrote: > > static void init_8259A(int auto_eoi) > > { > > unsigned long flags; > > @@ -332,6 +324,7 @@ struct irq_domain * __init __init_i8259_irqs(struct device_node *node) > > panic("Failed to add i8259 IRQ domain"); > > > > setup_irq(I8259A_IRQ_BASE + PIC_CASCADE_IR, &irq2); > > + register_syscore_ops(&i8259_syscore_ops); > > return domain; > > } > > > > > > Given that this is a change of behaviour that is likely to affect other > platforms (I see at least another 6 MIPS machines using the i8259), > could someone make sure that this doesn't cause any regression? This is > unlikely to affect the SGI boxes, as they predate any notion of power > management, but something like Malta could potentially be affected. For shutdown, I don't think there are many syscore_ops users on these platforms. Actually I could find only two that I think could be used: - cpufreq (issue fixed by this patch, and Loongson is the only user anyway) - leds-trigger Then suspend/resume: i8259 doesn't implement suspend, so there is no change in behaviour. In resume it does PIC re-init, but syscore_resume() is done with interrupts disabled so the order shouldn't matter. A.