From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B89ACC31E40 for ; Thu, 15 Aug 2019 07:19:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8BB2B2086C for ; Thu, 15 Aug 2019 07:19:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565853568; bh=XpNhBaFQIlRTjjCr4gEBKzLH1BRqF5qmc6+Pq+FncRc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=PDQ/+FH291vyFXDLRtUc/rj/Iz3Gj9AJGwWX7SuhFBnOkKZhluzoID3Mkk1rzy27r yFxeNqa6QUPThM2j9kCDsW5ik0N5jOB7lMypMzkuhLOhiRxRkZe6IfdIY1aoaLirMA pV3z51mSVS3HMyNBOI2mc8Mu8VDnIuRDMNoYLpDc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730186AbfHOHT2 (ORCPT ); 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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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.