Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp318573pxa; Wed, 5 Aug 2020 01:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv9KokhgPjFCopm7cLQYpHhN2+wvDVlhf6EePYqqpkR3HBGYulRFgb4C2my2w0E46XKO40 X-Received: by 2002:a05:6402:c0a:: with SMTP id co10mr1876840edb.342.1596617445167; Wed, 05 Aug 2020 01:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596617445; cv=none; d=google.com; s=arc-20160816; b=pBsMWecgmKQFwjMckliKmnZgfjM1X11Y3XY5x6FIS6bHkz7yaLdRE0+eKhrDPZSKU1 iSexEDSTwub2Oiq5MOSMvWLZb3WWha9m1YnPMmQu9nr/8zl1UOQQDkXIT+ZXIZ3H/Dvr 7/neGimi+ej5KXGTMIgsyPwu1geSTDI8Kiis+olHHJ9KIhHAVl0dnNmEKe9WppC/pFL9 Lt4OUDcyZJqck0CKU5oDcj2ulmTua8IFywPthGGfsdh9dIDyXl32IUGH7ib+T9nOXuHn Zdfma830iH2E+lQBSYfEUyM2P8orrICaybO81hUb0CTLMQBAdFqGTNyVFSg69RNsBuJo h+ZQ== 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=a+506hfVeVFYRPe+R0siOMZKt1KAb5Ivsc9hBq4RYNk=; b=ROcYJOFKfg1GeJ8QXHh+yfBLdkjFcJRtJfXPfcezhQ5zUVywAtWaxYIgNjPKLAbtEA AUxufapPR76wYTWaKOl9mu6EOBycojTXicYqOjKjmQeCj8FlLXAMsVHZuefD2eTXQhv9 mQTZIVn6sW3XxZF7Yxtw9Wf/1Lr979VPt6ejWKxQhTFbZq0b3X56V5XAyYRX5H/jLyIM bWo+W0/oDgB9LTCzpO6BPAQYJkep7/6y0D01zZb03q849nBh+Y/7Wvt+wuGALkg1A8mp 0BKJ6nN/Uc0i8kzrxEPUyu7ttXUurdLSUtvB1MzVr8iOTtrmK6iO9sV2F8kJCR3vuG1O Ykhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si835768edq.25.2020.08.05.01.50.22; Wed, 05 Aug 2020 01:50:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726604AbgHEIsN (ORCPT + 99 others); Wed, 5 Aug 2020 04:48:13 -0400 Received: from foss.arm.com ([217.140.110.172]:56058 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbgHEIsL (ORCPT ); Wed, 5 Aug 2020 04:48:11 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 273B7D6E; Wed, 5 Aug 2020 01:48:11 -0700 (PDT) Received: from bogus (unknown [10.37.12.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1750C3F6CF; Wed, 5 Aug 2020 01:48:08 -0700 (PDT) Date: Wed, 5 Aug 2020 09:47:57 +0100 From: Sudeep Holla To: Jason Liu Cc: Marc Zyngier , "catalin.marinas@arm.com" , "will@kernel.org" , "sashal@kernel.org" , "linux-kernel@vger.kernel.org" , Sudeep Holla , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 1/1] arm64: kexec: no need to do irq_chip->irq_mask if it already masked Message-ID: <20200805084748.GA4818@bogus> References: <20200804085657.10776-1-jason.hui.liu@nxp.com> <20200804113850.GB15199@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 05, 2020 at 06:31:20AM +0000, Jason Liu wrote: > > > > Indeed, the runtime PM ops in that driver looks dodgy. Any calls to mask_irq > > from drivers or anywhere with irqchip suspended with just blows up the > > system. > > If you look at the chip->irq_mask implementation on different platforms, almost > all with directly access the register of the irqchip including irqsteer. > There are fine due to driver will use the common mask_irq API. > That still doesn't explain how you can prevent system from blowing up if chip->irq_mask gets called with irqchip suspended ? -- Regards, Sudeep