Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7529455imu; Tue, 22 Jan 2019 07:27:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ghAmcwhSZkTChqTF4aiFiZiB5SZyOOz8eaz6W4sei0I28oKTOEnrOlB0ArEC9hhzv/bC0 X-Received: by 2002:a17:902:28e9:: with SMTP id f96mr34807296plb.169.1548170864658; Tue, 22 Jan 2019 07:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548170864; cv=none; d=google.com; s=arc-20160816; b=AwBe33Ct0AFSkJjIHy6jofO9fq2ISJ3tLIxXM8qBROXDoE8QH2pEbKDfmF3gCzi5vR Ywg1DUv1+IJS5EL3pbW/WQdEaEFaiay1I3STTgZV0y5wNZkUKTI5kvIhWq3chSUAZrGc FThH6j3Lc3Pw2Q8RYJZ0Ll9EKbMGVU+Ozo6dQIOaN9PHjQTiAaZFprs2zpB9Nb2ecZZo wGlCQgrskfKb9lBMVxZqph0nwUIZQFaKJge+1LOKaowJnqotGgE7J1eiOuQupLfxIQtR LrJWZJis9ceAu6HczTwQDeuTy9ZeJ25t1dNL4jXp+AQUiCcbt6UGUmO3BIq24645TATi DbrA== 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=WPxE7W00rs0gkC0ZJ05GtoReBlWyhmhYGKHZAHSrnJQ=; b=beCeNjbu3jl6qDFJziqFPbFrZeWne0CnSoBMSBwx5bb6+L6GJmsJ7WK4MNL23y/d7G IBdY33xv1m5zsZgIyotGDTnB4xXQyK1qu4vfuXb4chAug2hNw/wCQIJME6TP4ybU01xN tORTQ0rYC8XjKDjVcfKYJC3trn6XoQPUz4vroq7m6oVaKZUwIxhLGfPTCEmv2au3qob2 wVFEoASX4YqbFuVkgejUn60VO54tuy37fqgz4tvy/wOKg6QsMAcBFIdhOE3fVSG0CpOE 7Zvz3PrYki9rFedE2A/kQTFxCUvH7wK1HeffMc/Hjbvxyv35xyZhyWXiZHIU5cq/TE8l AJ4Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j187si16249867pfg.160.2019.01.22.07.27.29; Tue, 22 Jan 2019 07:27:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729382AbfAVPZa (ORCPT + 99 others); Tue, 22 Jan 2019 10:25:30 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55780 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729442AbfAVPXq (ORCPT ); Tue, 22 Jan 2019 10:23:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B87B81596; Tue, 22 Jan 2019 07:23:45 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.113]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ECBA03F589; Tue, 22 Jan 2019 07:23:43 -0800 (PST) Date: Tue, 22 Jan 2019 15:23:41 +0000 From: Catalin Marinas To: Julien Thierry Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, daniel.thompson@linaro.org, joel@joelfernandes.org, marc.zyngier@arm.com, christoffer.dall@arm.com, james.morse@arm.com, will.deacon@arm.com, mark.rutland@arm.com Subject: Re: [PATCH v9 09/26] arm64: Unmask PMR before going idle Message-ID: <20190122152341.GE187049@arrakis.emea.arm.com> References: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> <1548084825-8803-10-git-send-email-julien.thierry@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1548084825-8803-10-git-send-email-julien.thierry@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 03:33:28PM +0000, Julien Thierry wrote: > CPU does not received signals for interrupts with a priority masked by > ICC_PMR_EL1. This means the CPU might not come back from a WFI > instruction. > > Make sure ICC_PMR_EL1 does not mask interrupts when doing a WFI. > > Since the logic of cpu_do_idle is becoming a bit more complex than just > two instructions, lets turn it from ASM to C. > > Signed-off-by: Julien Thierry > Suggested-by: Daniel Thompson > Cc: Catalin Marinas > Cc: Will Deacon Reviewed-by: Catalin Marinas