Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp344371ybl; Thu, 15 Aug 2019 18:44:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEj2gaAdakn26G0+MQVtsRcvyd5A+XD5kvRopmRKE4vHp1wVqI1mb2ag4PQ/ie7KXlQJ/9 X-Received: by 2002:a17:902:aa95:: with SMTP id d21mr6667761plr.185.1565919891804; Thu, 15 Aug 2019 18:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565919891; cv=none; d=google.com; s=arc-20160816; b=Dn+k/7XUZduP5NAtPSbb/i/E33XnWgf33JOOTmlykBgnvWC0sDn6G5lAJYgQMCtv4C kNZbNZ4KqR7+piyzmdXUeg5kJBTc4QgfU+qwb3nwn18W0pQhnwvoWLsgjLJbSFeiEdVZ r8cmboOwIK6tNEp3ldTshumAnIyZ7sULA+SLR5EENFe6WelfR0kIbC0KxYwA56uC4okt 9vgA8B+LU8V8pzOZz1dLhTkKehbLe5NewFfHn3m+Pnll/R6V/9YQDLsYGAGqc6zd4Nyx qe5kXyRoVIpseYemluSJQTQil4WThLNY7G5QP3ZWOj8MdsnAmvAkWp14V4iJRU76J7Fo NwdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=kto5kddsXCk/fGf7X+QyYrDoEbGog57zQ50k3Zrbaro=; b=UBQUIOkhfRtYLBdI7CMdb93aIRKA/iGjya4ZR3Z37bk2jLFdPKVODw+eZvCQpiKsNC OGzeQDNFsFZ0HWENE0OqPbyd06I6POXgMlqknKP2TBLwHx/vVEKrORA7hy5xkJGLdz9I M23sJNePsjsTayn9amBkEPsrKbYCzmrQECXco7W1UMlKnH1J2TVcHV04VplwvvsH7z30 r9slhRjy+hneB7i0flcoBPrNfxDYylgyAszxWOC5jtwBEvEMgV/iL8/gq+HcW2GwZWD8 et4lRfMUqFsSe5/Z2CeIMJNx4BJq5WnzhFCvNE+4kEFQB1wmLn/2TNbfdpxh907Qi9l6 sg/g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22si3148608pfi.289.2019.08.15.18.44.35; Thu, 15 Aug 2019 18:44:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726483AbfHPBma (ORCPT + 99 others); Thu, 15 Aug 2019 21:42:30 -0400 Received: from ozlabs.org ([203.11.71.1]:49931 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbfHPBma (ORCPT ); Thu, 15 Aug 2019 21:42:30 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 468mKG2TSzz9sN6; Fri, 16 Aug 2019 11:42:26 +1000 (AEST) From: Michael Ellerman To: Greg Kroah-Hartman , Alastair D'Silva Cc: alastair@d-silva.org, 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 In-Reply-To: <20190815071924.GA26670@kroah.com> References: <20190815045543.16325-1-alastair@au1.ibm.com> <20190815071924.GA26670@kroah.com> Date: Fri, 16 Aug 2019 11:42:22 +1000 Message-ID: <87mug97uo1.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg Kroah-Hartman writes: > 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. That was done in upstream commit: 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") Which is a larger change that we don't want to backport. This patch is a minimal fix for stable trees. >> 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(-) Acked-by: Michael Ellerman > > > 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. > > Hi Greg, This is "option 3", submit the patch directly, and the patch "deviates from the original upstream patch" because the upstream patch was a wholesale conversion from asm to C. This patch applies cleanly to v4.14 and v4.19. The change log should have mentioned which upstream patch it is not a backport of, is there anything else we should have done differently to avoid the formletter bot :) cheers