Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1758096ybl; Thu, 15 Aug 2019 00:21:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzO2QQE/tgBEDHyLH/xF2osEGrEz+X3ik1LdMetT8Ae+0AMyTjuPYEzj8kc07qZTK9oppAv X-Received: by 2002:a17:902:2be6:: with SMTP id l93mr3193655plb.0.1565853700152; Thu, 15 Aug 2019 00:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565853700; cv=none; d=google.com; s=arc-20160816; b=KR/H+ic2FCuwaic5TgBSU9w9mySALXHFcjB/1Pw3k7v6EP7D/J4NEh8/mZxQFAS5T1 L9L4td9f5W3Z0trZ5x1Xai2eUgFVjenpc3HGy/04mg8B12Z9COBM88ltQ9jKvr6YIYHN 8ggKIqwaU9J6GftrrrM94RbNQKGuUvkQ439IUxF49Cc1NdptOz4QypvvruHgFcZneaaD S+JUJ4a+MZImRbi8tmydadgQ8gUJsD/dIyMC5zdkx1UfrLjDFmUGJlzrgtTKjftRH4Zh xe/sQonDxzL1S7tkbu4d56B24l6XD7LvldeZY/4yNCDalEs/MZtZXC/8JmQdi8uQSMtV qvLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0ZeBkGsChOeogWupcchZ+9Yc9HlsxGye3l78LKZCjJ4=; b=YQLTLvyJGKhtmBn1kfyZoh82/inPDm1F8f3lwkUmkvWkAs5xG35dXrR4O16T3Numyi D/+cS2Bv9XOeM1ei9320jSUut3enBNJdsoGeV/lTThI1VejdDpjfVQeH6xKAEZGsh4yj PqLZrHXV1t9QH/eJ/GilzJ+jsEzhZUaECv5n7T/JVHx9s4J+Dboi7rgXsS13kVkRHTd6 ztcCQFL1pV+d7fp1SjH8qT/g4wUQONm+cEuua+wMv1yK1x75eyMMb+G0Pjld8jz0yGT+ b/IHt90WEd/52oHIBjG9/Nua1UWbRDCUEbTfw7ym7KpfkYm9HFgBr865QC1lji3L8OtI XvLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bKhZ99Y8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si1346201pgg.155.2019.08.15.00.21.23; Thu, 15 Aug 2019 00:21:40 -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=@kernel.org header.s=default header.b=bKhZ99Y8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730620AbfHOHT2 (ORCPT + 99 others); Thu, 15 Aug 2019 03:19:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:50856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbfHOHT1 (ORCPT ); Thu, 15 Aug 2019 03:19:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 9FA4A206C2; Thu, 15 Aug 2019 07:19:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565853567; bh=XpNhBaFQIlRTjjCr4gEBKzLH1BRqF5qmc6+Pq+FncRc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bKhZ99Y8TeTfB/qRkAkFYFS6mDXbxkFPsVSTek8pXXZKnzY9G0NJxtayqrkKi6mpe vP+gPPgmnFP5EGC4qTVAJLQbdqesGz8IiINb+CrELocIX77/+R7h8mThgX0QbhfARd FHlk6pYAiX1zOeB7lbRfMh0nKV6JMs1kU5+yTacU= Date: Thu, 15 Aug 2019 09:19:24 +0200 From: Greg Kroah-Hartman To: Alastair D'Silva Cc: alastair@d-silva.org, mpe@ellerman.id.au, stable@vger.kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Allison Randal , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB Message-ID: <20190815071924.GA26670@kroah.com> References: <20190815045543.16325-1-alastair@au1.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190815045543.16325-1-alastair@au1.ibm.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 15, 2019 at 02:55:42PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > Heads Up: This patch cannot be submitted to Linus's tree, as the affected > assembler functions have already been converted to C. > > When calling flush_(inval_)dcache_range with a size >4GB, we were masking > off the upper 32 bits, so we would incorrectly flush a range smaller > than intended. > > This patch replaces the 32 bit shifts with 64 bit ones, so that > the full size is accounted for. > > Signed-off-by: Alastair D'Silva > --- > arch/powerpc/kernel/misc_64.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.