Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp197657pxa; Tue, 4 Aug 2020 03:21:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWYc1uezcHwaCUWHNOfHMSmn3OxwdPm0LIjTTyb0EHRtttJ+F0Zgv+/rTIoXQXZDQdKqSI X-Received: by 2002:aa7:d7d7:: with SMTP id e23mr19074164eds.347.1596536471882; Tue, 04 Aug 2020 03:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596536471; cv=none; d=google.com; s=arc-20160816; b=r4jLdQ3yuejXrPlFhdF3IgYjVx4UL4dHqEvzxkqb7SSx8xHFYv7oZrJxUZj2KuVpOb oPzG0VlDg8al7N7blNmpRgAAxLnjJyd+6rXsQhsOBd/gCpSmnuRvjkOKYbhPOy9n2WUs o6RphbP5efdo4n08Icd6CQUYauz7xeTwjGy88TDwYF1Y3P7lmmyvNjyt9eys1GYu7tBN xou0jBj8NOd+oftyiEl26qjod2j13bjj5VfiWHmR7ANjdGKiZClizEnKR/Be96b2tFBO V1UXK5KmIRuy5zy2zxnKuAirDpA3Js6AE8UQ3pfaVf0bSmHqt6blFvAmpbWy/ilG4krd PJ4Q== 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=Vxs4LqcUNH0Jw0cXxuZoI19OKDAZrWCpN5cP9SxJsT8=; b=OI4atD5sXvkbbWeB/Scc8d/seYrVi7oX08bzlb6Y9rPKgqOd6YwBbyPyOGmq6GFT4I JEadUAyDl8b6LdKzM0fWZPxBJqzM06mE6g5LhzKcyb641t38VH8WdK0IimtAb2oSqEZx sWnUCmR+dd02inCZ1zAExApXlRZuwp2y1yA3cs0IrlAypB48Ky1j5HnY8unyRtOPdWjE wvrdMJtSWwKs9b0iAS1PH8DfyAxo513iH129yNZWdAPjbXXw3r26Ou7Zzhr2+t0v0JG+ T/VKCHl0xJFPnEtFjH5rlU8VcdpvKVhgHxMxCj2ZVZ/mjwzLSZcLpTSSesC1FuVJjiYl P1WA== 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 p10si12237428edy.86.2020.08.04.03.20.49; Tue, 04 Aug 2020 03:21:11 -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 S1726386AbgHDKUg (ORCPT + 99 others); Tue, 4 Aug 2020 06:20:36 -0400 Received: from foss.arm.com ([217.140.110.172]:42222 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbgHDKUf (ORCPT ); Tue, 4 Aug 2020 06:20:35 -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 4A13D1FB; Tue, 4 Aug 2020 03:20:35 -0700 (PDT) Received: from bogus (unknown [10.37.12.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A5A83F718; Tue, 4 Aug 2020 03:20:33 -0700 (PDT) Date: Tue, 4 Aug 2020 11:20:25 +0100 From: Sudeep Holla To: Jason Liu Cc: will@kernel.org, catalin.marinas@arm.com, ashal@kernel.org, maz@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] arm64: kexec: no need to do irq_chip->irq_mask if it already masked Message-ID: <20200804102025.GA15199@bogus> References: <20200804085657.10776-1-jason.hui.liu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200804085657.10776-1-jason.hui.liu@nxp.com> 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 +Marc Z On Tue, Aug 04, 2020 at 04:56:57PM +0800, Jason Liu wrote: > No need to do the irq_chip->irq_mask() if it already masked. > BTW, unconditionally do the irq_chip->irq_mask() will also bring issues > when the irq_chip in the runtime PM suspend. Accessing registers of the > irq_chip will bring in the exceptions. For example on the i.MX: > The change looks good and is inline with the additional checks we do for eoi and disable. However, the imx_irqsteer_irq_mask is not safe to be called with runtime suspend. What happens if some driver using the irq on this chip calls disable_irq when this irqchip is suspended ? -- Regards, Sudeep