Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3384768ybl; Sun, 11 Aug 2019 22:42:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqx09UQPGpdntchgpSncHJsEw1nEzUYUopqgymiDA58F/2gmtFG34vSSr+1YmBSGvkE1E2g0 X-Received: by 2002:a63:1046:: with SMTP id 6mr29423820pgq.111.1565588535337; Sun, 11 Aug 2019 22:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565588535; cv=none; d=google.com; s=arc-20160816; b=RHgfqBkvZoMJbLgGxRFHVLhpsV3JxAhsD1TXMEBtynr7XKCoZHPSa1AYVo9k6bXtKH Di8SgN/hvs3wACR5Ic2Fe7AO949loIXvPgV71wCY+PjC7k0L/P7QqaCOPs0/5Oig/5v7 Q0RyNVE4/QEZm90v6gQnoH0xLU7vnuAOYhQFVebXfd4sjy0Gc6iMFXUpfmXGZGGsLv5w 6Ih2FKv7tEkGHO/8BBQ6mWeXxOSdPz4QsuCbjGDEw5g67QhUpqMqfKHcfUJduEt+Wh0I MwTZua3iEjrliGWB8YRvYoZQaWNmLItLLN1NdHJV3y1ONS5I+w34msgplEzUQutdxrZb c5fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aSvscXTe0OBobtl058VSABuVDDxAT9o0ET91HCafAZA=; b=yKdjnkQFVTfgbp3VbHz4Iu+BfvYZ4TbAa41yC3JnRKxsEsmNBtPdJNFhTBEGtbUF1v v2W9abpzMORi8JUUpQ6ceZKBrUTuOBlrKy4kPcwCT1uRo+3VtCzCdE7JDmvXiJQfZFG7 1H1qAt6sa2IPeObvWyeJXaIsQTswSSAOc2gYpij4BZM708UH5b6/kBlvX117Kc1N/92Y Ixoh8JFe5L5AvrQQQOHcjJA2wrGZ7cCfSXJwaUPw7HDtLh4mJI/MA+lz5Ah0paewhnNV lAkPF/Eo79sMEMndfL++sXHt6q093o0TWmTbmECMU27E9zvCY6NBGqRArGJ/ltRnyQtd 1Dog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=tXM4FaMZ; 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 6si33220407pgb.201.2019.08.11.22.41.59; Sun, 11 Aug 2019 22:42:15 -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=@c-s.fr header.s=mail header.b=tXM4FaMZ; 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 S1726608AbfHLFl1 (ORCPT + 99 others); Mon, 12 Aug 2019 01:41:27 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:14787 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbfHLFl1 (ORCPT ); Mon, 12 Aug 2019 01:41:27 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 466Ppn2qyjzB09bJ; Mon, 12 Aug 2019 07:41:21 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=tXM4FaMZ; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id AL-sfYbjepFg; Mon, 12 Aug 2019 07:41:21 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 466Ppn1fyPzB09bG; Mon, 12 Aug 2019 07:41:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1565588481; bh=aSvscXTe0OBobtl058VSABuVDDxAT9o0ET91HCafAZA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=tXM4FaMZLqgfa4UR8st58PV1szduvw8v5jkRKMjbScOYDFsi4YNXO0oKicwpOmSqz W0zVjFAoBzwPimyH5wKH18OkZFcMly4tE5ma3IQW9gs5GoppZEaa7lmdtJyrnu5vgi oAav5yZjevb1WD9dxYLY9XsxX/Y1sHQhaAawM2+s= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 249CB8B791; Mon, 12 Aug 2019 07:41:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id isJuowyE8M47; Mon, 12 Aug 2019 07:41:26 +0200 (CEST) Received: from [172.25.230.101] (po15451.idsi0.si.c-s.fr [172.25.230.101]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EA6148B752; Mon, 12 Aug 2019 07:41:25 +0200 (CEST) Subject: Re: [PATCH 1/2] powerpc: Allow flush_icache_range to work across ranges >4GB To: Alastair D'Silva Cc: stable@vger.kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Greg Kroah-Hartman , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20190809004548.22445-1-alastair@au1.ibm.com> <72a3fca157a508a9f1bc6ea20801b9227d788f1d.camel@au1.ibm.com> From: Christophe Leroy Message-ID: Date: Mon, 12 Aug 2019 07:41:25 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <72a3fca157a508a9f1bc6ea20801b9227d788f1d.camel@au1.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 12/08/2019 à 03:19, Alastair D'Silva a écrit : > On Fri, 2019-08-09 at 10:59 +0200, Christophe Leroy wrote: >> >> Le 09/08/2019 à 02:45, Alastair D'Silva a écrit : >>> From: Alastair D'Silva >>> >>> When calling flush_icache_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. >>> >>> Heads-up for backporters: the old version of flush_dcache_range is >>> subject to a similar bug (this has since been replaced with a C >>> implementation). >> >> Can you submit a patch to stable, explaining this ? >> > > This patch was sent to stable too - or did you mean send another patch > for the stable asm version of flush_dcache_range? > Yes I meant a patch for your 'heads-up', in extenso a patch for fixing flush_dcache_range(). And for this patch, you put stable is copy of the mail, but for it to be taken into account it needs to also explicitely include a Cc: stable@vger.kernel.org in the commit message. I guess Michael will add it for this time. Christophe