Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1937882ybv; Fri, 14 Feb 2020 08:32:11 -0800 (PST) X-Google-Smtp-Source: APXvYqylQTVSr6CJHBbD453blR3tvS32pS40H4gMPx7WkBostFctIWVlX+Bkoz6XVGxcirwYt7F8 X-Received: by 2002:a9d:7984:: with SMTP id h4mr3005226otm.297.1581697931522; Fri, 14 Feb 2020 08:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697931; cv=none; d=google.com; s=arc-20160816; b=P/ZnimxDUPaMdT6vlePC6ZvmKth0632nqFm7oNnHPkFkNgz807WOr9r2wCHYp1VcCc 2t6pwL4/Hm+I1MmPXHbcGy3H0aVGEXp8oKrfDp0Y1ZhrBHPekbxK6YQdWkXSyIS59pOJ kXlEn4EPOYptWL4S8Fc+AeGaAdxpcpgS4uG43T7oRO5QTbJ5FMJlBsTboU9nl8vB3zdJ i3e5yQDZjGy/vIuVeHlWMJp3g3ckFsKVa5DwAmrHo2KdnjlBGU/W9leFXmp+Vi5o1qe4 WKfsSCramr3P9iFnRhsspbRU1a0KYyKHZ58QhC7ElDlCqxczYA/4YnCgZC5sbgnsraYo TkZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0QE5D8+ZpI28PPHu55JIj2jNJR48VKimdly03syRSFE=; b=JtPcV6ZMpXSedjv9EbM0bihZ0SHpp8avj+BtAKNeeligM/gpJ8Uq3chPEma5YFh4NO OStTi+82CiXY8b/y+c81BBszfbli+5poqSyq8KLkCknxwof9YzmT+ebqSVh/PErmZMgX +AThQZPY9Cy/WVsl8EySFTWjX/LSpWdurazSxWOdto03s8uUUf4xGPILb/ugy6P0+/AD Ppcd8TnZKOKwzSQmRIXjT4fNPogDYJdq0PWMz1PhQWmLCN9kiiWY/UxLveQuPOnTBMR6 hAqZcmhibcKoydBHMFCBzgFjvlNtSzImm1uJ90livqhy/qsqa81aWy4q/Rx2/1D3U+4g vNXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=niNcFd+i; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si3182989oie.181.2020.02.14.08.31.59; Fri, 14 Feb 2020 08:32:11 -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; dkim=pass header.i=@kernel.org header.s=default header.b=niNcFd+i; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406368AbgBNQ0Q (ORCPT + 99 others); Fri, 14 Feb 2020 11:26:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:60934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405449AbgBNQYN (ORCPT ); Fri, 14 Feb 2020 11:24:13 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5A8B72478D; Fri, 14 Feb 2020 16:24:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697453; bh=L0qBFLCFG7F+X1YVyHV7rV+F3j/WY/ygzye+NRM0wI0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=niNcFd+ikwXKqMWB1q4Enx5AHk97UcPrww+tFP6oJP+elOVXNezcb7lddypAvvPuB Sa/TUl1/YoWP8TbK3Z8HPlP0yRZe6aa5UlwOHtAWvw7Xz37OvLua44XN4Zae7+kdlS baY3gjY9UQQItfbbk5SZWoMy+OztYSWWL2F+w/Bg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zenghui Yu , Marc Zyngier , Sasha Levin Subject: [PATCH AUTOSEL 4.9 136/141] irqchip/gic-v3-its: Reference to its_invall_cmd descriptor when building INVALL Date: Fri, 14 Feb 2020 11:21:16 -0500 Message-Id: <20200214162122.19794-136-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zenghui Yu [ Upstream commit 107945227ac5d4c37911c7841b27c64b489ce9a9 ] It looks like an obvious mistake to use its_mapc_cmd descriptor when building the INVALL command block. It so far worked by luck because both its_mapc_cmd.col and its_invall_cmd.col sit at the same offset of the ITS command descriptor, but we should not rely on it. Fixes: cc2d3216f53c ("irqchip: GICv3: ITS command queue") Signed-off-by: Zenghui Yu Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20191202071021.1251-1-yuzenghui@huawei.com Signed-off-by: Sasha Levin --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 0c0cd2768d6e9..d1efbb8dadc53 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -365,7 +365,7 @@ static struct its_collection *its_build_invall_cmd(struct its_cmd_block *cmd, struct its_cmd_desc *desc) { its_encode_cmd(cmd, GITS_CMD_INVALL); - its_encode_collection(cmd, desc->its_mapc_cmd.col->col_id); + its_encode_collection(cmd, desc->its_invall_cmd.col->col_id); its_fixup_cmd(cmd); -- 2.20.1