Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3844637ybv; Tue, 25 Feb 2020 08:17:53 -0800 (PST) X-Google-Smtp-Source: APXvYqydbgVcOmvRF8TVKAerFG9sc8VIKFgxWA5opWG5xQKJoOvZbMiF7AUoZ3cgvI2rU3sgo7QY X-Received: by 2002:a05:6830:1251:: with SMTP id s17mr42755709otp.108.1582647473276; Tue, 25 Feb 2020 08:17:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582647473; cv=none; d=google.com; s=arc-20160816; b=m/DCUXjnbIK/cLYf59m2NndvuuNud3CSm5hy646AZEYYdFnnuNgX1jqQ2dyN34dgy1 2Wy0F62bXXgMmXJtYtvlrKBqS8GIlm69/AZsjbFp+oF8px6daHh6EwGqZilDbQfRxdZy jy7iG9RoQiIliv6uCojKk0CMbUt4yi3s47POrwFVErLcoqqu/6S3ATIY34cvqIF0tb5b YWSZGlV5JJywMBrCvM0HRvz2RJF2UFuCDVkymXEQYAsfsUkx2D4qnMVYE3Sl865/C/K9 a6ua/YKm28a8FOKuDqGnSdT1coZcBAiToXo+5flGsg5x4dOwQAKG+XHQZhaWPZf7f1kQ AJ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=FvmXssgXzomwiatQXIMQzrGl2ESs9hsXO9ChN2d9tWE=; b=EEfdTFG+Vu4dQUd2qY6fgaG3FLrt5Ox6fSMtcUSrMAEj8Ngj6UHmNC6eX+NGM2d/t1 dy41SsNVyQRZxlMIyW3p+5vSdU4R9lghA10EJf5K3LNvsbBpcWgq1nYp10q6pnpR6o7p ufPM1q01zFkpaaEq7dd4fITaXa+qhd1hRzQ616VxFz2FBmmK8n9GJoNhHyBFt4tXj4Ly Z1bTp4RSEvNRT3YTgdTtvLxCiF9vScGiOxp4IhUth1JQi2QvF5QcXIaxaBuPuo3rqgCC UmL4QRrdzsFw1GOvBdTARSs4XnyjUMtJcJhsyD4UsZArJpKCCw4AMPKFKUCP3Y/ZLFHs izDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nKiwBpAG; 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 o2si8605693otj.312.2020.02.25.08.17.40; Tue, 25 Feb 2020 08:17:53 -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=nKiwBpAG; 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 S1730634AbgBYQRL (ORCPT + 99 others); Tue, 25 Feb 2020 11:17:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:58856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728051AbgBYQRK (ORCPT ); Tue, 25 Feb 2020 11:17:10 -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 050F820CC7; Tue, 25 Feb 2020 16:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582647430; bh=l1kpRAXXYq9H4NhUC8N2qXkQy/OJyYRbQ9OH2Dk8bWE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nKiwBpAGLLBuQKBfn37X2vtqT259Mb9XHd5bOP1nZZRGOl6JQzS8GWAsJ7PBuXfwx gZ6TH88rnVq9XSgu26VHUwMb8Qordy829i2btfle/acgmc9QPiO5X8ME6MccexZiKP BCtHM4o8WqXWNHav/CW6STmUhy/9w4kW6sWKCE+4= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j6ctQ-007rqy-BK; Tue, 25 Feb 2020 16:17:08 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 25 Feb 2020 16:17:08 +0000 From: Marc Zyngier To: Heyi Guo Cc: linux-kernel@vger.kernel.org, wanghaibin.wang@huawei.com, Thomas Gleixner , Jason Cooper Subject: Re: [PATCH] irq-gic-v3-its: fix access width for gicr_syncr In-Reply-To: <20200225090023.28020-1-guoheyi@huawei.com> References: <20200225090023.28020-1-guoheyi@huawei.com> Message-ID: <740ba8790b72a42d400cc9fc317c4dba@kernel.org> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/1.3.10 X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: guoheyi@huawei.com, linux-kernel@vger.kernel.org, wanghaibin.wang@huawei.com, tglx@linutronix.de, jason@lakedaemon.net X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-25 09:00, Heyi Guo wrote: > GICR_SYNCR is a 32bit register, so it is better to access it with > 32bit access width, though we have not seen any real problem. > > Signed-off-by: Heyi Guo > > --- > Cc: Marc Zyngier > Cc: Thomas Gleixner > Cc: Jason Cooper > --- > 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 65a11257d220..5c6790e3bfbf 100644 > --- a/drivers/irqchip/irq-gic-v3-its.c > +++ b/drivers/irqchip/irq-gic-v3-its.c > @@ -1321,7 +1321,7 @@ static void lpi_write_config(struct irq_data *d, > u8 clr, u8 set) > > static void wait_for_syncr(void __iomem *rdbase) > { > - while (gic_read_lpir(rdbase + GICR_SYNCR) & 1) > + while (readl_relaxed(rdbase + GICR_SYNCR) & 1) > cpu_relax(); > } Yup, nice catch. Looks like no implementation really cares about it, but still worth fixing. I'll take it for 5.7. Thanks, M. -- Jazz is not dead. It just smells funny...