Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp189728pxu; Sun, 22 Nov 2020 04:51:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlvYsfvCNHaDH9NsPygIrPoKk5QDgJhtXyyvBdJCFAepMzRv7k3RPa0N5NJ/a1DhzJYQmL X-Received: by 2002:a50:d617:: with SMTP id x23mr3831640edi.361.1606049471408; Sun, 22 Nov 2020 04:51:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606049471; cv=none; d=google.com; s=arc-20160816; b=JNL/HMDlmV43MbStkzGUOMsZDHdcT426LbpPGIBZWFUvNnvBzPfZOJIvDyTk5ef8pO AjixX3C83679h+4RWWyPFTgb/LyvLc3ncL/ESTLtU09JwZq3CBfbGKPcNFjZ+1fA0qEd slNG2N8zhdVC3ICLpnX45Yf67UO5EVUulX6NTqEWR0UwFldYO6W+Ao7XwMkOt6VHLHlp pA5gZzIEuOmIEaSMk0nBg+Y6aLAufZuh5pKPvwYrYEwWgz+08GfOmsuvdAWeVQ7NgE9P ZrUOhmBAyKhEi5ChMvVR0769o5IyAq5V1tgzv1F5ueq6eV8OBviLzJg+CNxCDDWjyg7E 6E+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j7jRHg5zNBz65l0PzrP+P/aR3kLF2Bx9d/4lUOmBNSM=; b=whSxNg7WPyWTIb+MVryNWW6nEUmmpdzzfL9OPLnZYVLbkWNgVn6Nk92G6bdkR/BTNr NTG3FE3xz64ljiW97+iC8q97sE4lZS+UpEbfL+6xUmMngAFbG+uYeJvUIu9fI7WVAZ9k bzLpEoaIuM9iQcaEcVyw61LxrDbj3sMzz2hT+DL7HpateQqpURrPnmo9wondDLzXgSUh dIrmx7GBnMqdR8qJS7X+kxDXn8doAVvvWeW+NBHEGLTqNzggFMBVWO9zEd7QvvG2pHBk d+a/QnYxqTkYtgl3IFKnl45AnqXCZ9Y2YkyxY5n87lKt8Dk3PiBmcn8xHeejwMb3BhPZ xcUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Le6LlQtE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lt13si4814182ejb.564.2020.11.22.04.50.49; Sun, 22 Nov 2020 04:51:11 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=Le6LlQtE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbgKVMry (ORCPT + 99 others); Sun, 22 Nov 2020 07:47:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:40460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727646AbgKVMry (ORCPT ); Sun, 22 Nov 2020 07:47:54 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A5BB22078D; Sun, 22 Nov 2020 12:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606049273; bh=X53NXA4jh+8pasL9eOJKbJri9ATWtPFDIOuBX04nt9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Le6LlQtEMDJUFIOh7oHVlDEmSwD6GbIEKECrZtLCx7veOInNMX669Xvs+siCHl5p9 Nv3cZ9hmV+VVIAQs5vmiJNo6+zmhyPRleWNSZHNdfceX5qU+wO3SQVpngZq9Jnf+bf mon9NCjzFlGFCESyLsqCLxR/PmuBJkfkCJqjK8j4= Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kgomV-00ChPX-Et; Sun, 22 Nov 2020 12:47:51 +0000 From: Marc Zyngier To: Xu Qiang , linux-kernel@vger.kernel.org, tglx@linutronix.de Cc: rui.xiang@huawei.com Subject: Re: [PATCH -next] irq-chip/gic-v3-its: Fixed an issue where the ITS executes the residual commands in the queue again when the ITS wakes up from sleep mode. Date: Sun, 22 Nov 2020 12:47:48 +0000 Message-Id: <160604923575.224052.1351706430622290182.b4-ty@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201107104226.14282-1-xuqiang36@huawei.com> References: <20201107104226.14282-1-xuqiang36@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: xuqiang36@huawei.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, rui.xiang@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 7 Nov 2020 10:42:26 +0000, Xu Qiang wrote: > On my platform, ITS_FLAGS_SAVE_SUSPEND_STATE is not set,thus do nothing > in its suspend and resuse function.On the other hand,firmware stores > GITS_CTRL,GITS_CBASER,GITS_CWRITER and GITS_BASER in the suspend, > and restores these registers in the resume. As a result, the ITS executes > the residual commands in the queue. > > Memory corruption may occur in the following scenarios: > > [...] Applied to irq/irqchip-next, thanks! [1/1] irqchip/gic-v3-its: Unconditionally save/restore the ITS state on suspend commit: a51f7296f38f498c6f186c82ae3aa25ae10bb266 Cheers, M. -- Without deviation from the norm, progress is not possible.