Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1865810ybe; Thu, 12 Sep 2019 00:21:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZpxz8eqK54D/c79/xhliBL+cF4eH0AOinKV+UY6nF/b5U7ELoEGApBq/rDMI3a1G85qvt X-Received: by 2002:a17:906:b254:: with SMTP id ce20mr33280710ejb.129.1568272899428; Thu, 12 Sep 2019 00:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568272899; cv=none; d=google.com; s=arc-20160816; b=yB9Ij8rKjCNvaKQRMw38S/4mn8VrR9uXOWOl2WieQjq4xthe56v/fCiMIjQBR04O0l eQrjsE+Ogq9YiTdDK52xUVlpRISlIrJyO0AJVCLfdSFb06OoDoSC+LdgjxNkXUG689bh bYQIOt6y1i9rdFX8aEF6Ny1kW9zcorxuOIF+9XCmKf87Pveab6Psx05AhBoF+SZV0QJ6 FPY3T7StJbXSeMcPC490JgZDpHuDWqjS8rpyk68QlTijpuha0hu7nn9eeqXRpOlA3nDp E2LBNxIuD3pZh1WDCd2fch/1G/DPuPPGXze+ILKULgDbNt1Xj0dNdufGeMqORa0Ts5bq cZYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=v/pX95VG0dk6qWY6B2d9zRKQJS6kq+3rjfgFHXmjK3k=; b=oD96UoipGnWH/r7Oq7hILFnPwiDWlwLA6NspAMG7nVNtCIUEAQ0+v5v5qUhDP1ZI+r hijbWQtL3VIdM0cuTt5acHfsPqwn7a0cvUL2D+b0GurEEeGdO0zF+oSfnPCC29har/uk OEBqBXRhR76HaS0R7Ns8Og6VddMYap1H60NapkXBihBEhInANi1TT4FM3R+22doxceRe k8FGHwv25yCCfHRmkwnfw87IE0uJ7S+rhRaIe83vnxJoGWv6wRE8PwpWapjZ4ZRkX1k3 i5fYWEZ0G/seNKIB7Fe2ZiGRAs9bBG8SiOnXuuX3EZNTXCPMc5ZZ9kxZUieFbwgJQb86 ySeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=uJ1keCPW; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k23si15557144ede.274.2019.09.12.00.21.06; Thu, 12 Sep 2019 00:21:39 -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; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=uJ1keCPW; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729686AbfILGv1 (ORCPT + 99 others); Thu, 12 Sep 2019 02:51:27 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:49346 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729622AbfILGv1 (ORCPT ); Thu, 12 Sep 2019 02:51:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1568271086; x=1599807086; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=v/pX95VG0dk6qWY6B2d9zRKQJS6kq+3rjfgFHXmjK3k=; b=uJ1keCPWpZraDikDMGwDTZUm6pvR/c5WBIa8mJj588WrSGPnVVUrsram mTVL1FrsggrLzNprA08vPxx6y139+HCfolb2BFf/BbrPU+y/xYP9PkJlX XfCUG0wSsyK+wX5JnoYhfWGuSi6cDaU9Y7n0eRVsqfgUN3eboO/iDpqKP g=; X-IronPort-AV: E=Sophos;i="5.64,495,1559520000"; d="scan'208";a="750339449" Received: from iad6-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com) ([10.124.125.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 12 Sep 2019 06:51:24 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com (Postfix) with ESMTPS id 74E36A0491; Thu, 12 Sep 2019 06:51:21 +0000 (UTC) Received: from EX13D01EUB002.ant.amazon.com (10.43.166.113) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 12 Sep 2019 06:51:20 +0000 Received: from [10.125.238.52] (10.43.162.242) by EX13D01EUB002.ant.amazon.com (10.43.166.113) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 12 Sep 2019 06:51:14 +0000 Subject: Re: [UNVERIFIED SENDER] Re: [PATCH v2 3/3] soc: amazon: al-pos: cast to u64 before left shifting To: Marc Zyngier CC: , , , , , , , , , , , References: <1568142310-17622-1-git-send-email-talel@amazon.com> <1568142310-17622-4-git-send-email-talel@amazon.com> <86blvqsyq0.wl-maz@kernel.org> From: "Shenhar, Talel" Message-ID: <57d36339-d1e6-ac60-1ec2-4fb6bebf6d2f@amazon.com> Date: Thu, 12 Sep 2019 09:51:09 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: <86blvqsyq0.wl-maz@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.43.162.242] X-ClientProxiedBy: EX13D08UWC003.ant.amazon.com (10.43.162.21) To EX13D01EUB002.ant.amazon.com (10.43.166.113) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/11/2019 5:18 PM, Marc Zyngier wrote: > 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. Sure, Shall be part of v3. > > Thanks, > > M. >