Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp963213ybe; Wed, 11 Sep 2019 07:23:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX8ng2dvt8TI1N3d4jQGMXKHFdmxALAe9YApmrCNoYXc0r17vlgPqagMFc429NifVV+yGz X-Received: by 2002:a05:6402:299:: with SMTP id l25mr36790509edv.159.1568211788842; Wed, 11 Sep 2019 07:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568211788; cv=none; d=google.com; s=arc-20160816; b=Y68AFbrMFpZ9gfgMrsiDU2UAmt2Rqg67M1udf49TDbilav05h5conAVOjCa2sTQuZS hPEVmi4NDa5XFHB6ELgxViNEgjftksVSjebQI9Tq20YNpws0Zan540+WB+wHNK1l+7/g r5bW/8uKgRlETItgKnQssUssxKNWLky8L9KIxRgdjDdMB613Ml8opaAer6Q2etbD2xe5 NmjdpGxJX2EdSZ9d5VtDcDcMs/ahAGq1buzuMXZqMufhbVL+gHtSm6O/v/wkGZg9Swve 1pmVI1R9aKYXoOv/Ce0jgQNfSHMhvALRRqx941i8IcSa95TlW0IqSKhy5/ibVFoKBN8K BIwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=XamH73bOILkAe3VrUONQyRSD8odUdqwHxqJzUj2gFzo=; b=ZF8G/njI6YEtQIEV8Nx2Z3FAIaOJRIXv7BNFNsiBTfbs+B8Vk5Lz9jeoKyGkDyGPy4 ri2E69ZxgCltyg4qX3+MPgeBGs+RPotWiqrdiQt1E4H3SqjdGV1swkvi/XJap396AAYk lpYkUvQ5agPywQW4KBh7Eew3JpWCYRG3QzBIGfPdfad2dNF2IeUdACG+yp4FzEHPWip/ cgTe/eznu35tleItgtwVmYyrToDahGE/4pA4Kcj52FCrclX5esLYR8S0LQrV4dk9AWo9 q+cEREB52rHSyHUpfDIyuJeJnAZQVxbP98whCZatiKkm2FJRiGnsK9G6RZuMRl/mLpoC y2Jg== 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; dmarc=fail (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 r17si3635116edx.257.2019.09.11.07.22.43; Wed, 11 Sep 2019 07:23:08 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728250AbfIKOSi (ORCPT + 99 others); Wed, 11 Sep 2019 10:18:38 -0400 Received: from foss.arm.com ([217.140.110.172]:48390 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbfIKOSh (ORCPT ); Wed, 11 Sep 2019 10:18:37 -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 3FE671000; Wed, 11 Sep 2019 07:18:37 -0700 (PDT) Received: from big-swifty.misterjones.org (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1EFAE3F67D; Wed, 11 Sep 2019 07:18:33 -0700 (PDT) Date: Wed, 11 Sep 2019 15:18:31 +0100 Message-ID: <86blvqsyq0.wl-maz@kernel.org> From: Marc Zyngier To: Talel Shenhar Cc: , , , , , , , , , , , Subject: Re: [PATCH v2 3/3] soc: amazon: al-pos: cast to u64 before left shifting In-Reply-To: <1568142310-17622-4-git-send-email-talel@amazon.com> References: <1568142310-17622-1-git-send-email-talel@amazon.com> <1568142310-17622-4-git-send-email-talel@amazon.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Sep 2019 20:05:10 +0100, Talel Shenhar wrote: > > Fix wrap around for pos errors on addresses above 32 bit. > > Reported-by: kbuild test robot > Signed-off-by: Talel Shenhar > --- > drivers/soc/amazon/al_pos.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soc/amazon/al_pos.c b/drivers/soc/amazon/al_pos.c > index a865111..e95e1fc 100644 > --- a/drivers/soc/amazon/al_pos.c > +++ b/drivers/soc/amazon/al_pos.c > @@ -49,7 +49,7 @@ static irqreturn_t al_pos_irq_handler(int irq, void *info) > writel(0, pos->mmio_base + AL_POS_ERROR_LOG_1); > > addr = FIELD_GET(AL_POS_ERROR_LOG_0_ADDR_LOW, log0); > - addr |= (FIELD_GET(AL_POS_ERROR_LOG_1_ADDR_HIGH, log1) << 32); > + addr |= (((u64)FIELD_GET(AL_POS_ERROR_LOG_1_ADDR_HIGH, log1)) << 32); > request_id = FIELD_GET(AL_POS_ERROR_LOG_1_REQUEST_ID, log1); > bresp = FIELD_GET(AL_POS_ERROR_LOG_1_BRESP, log1); > > -- > 2.7.4 > This fix should be squashed into the previous patch. Thanks, M. -- Jazz is not dead, it just smells funny.