Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3621082ybe; Sun, 15 Sep 2019 20:32:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgsihEEXlnFgFW2JGdSLPkDJQmnH0VGfPI5l82lXoLCO1hnZIw78iD5vmLjBbOuYfv/DEB X-Received: by 2002:a17:906:6618:: with SMTP id b24mr49663749ejp.215.1568604749252; Sun, 15 Sep 2019 20:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568604749; cv=none; d=google.com; s=arc-20160816; b=RuwdlAfJ0kQlCMZb1JV2D6USFNiIJJk+j5Fav7V2FFP1gvAiIkowNkh2reSgQjgdWO hzP7MU+XdTsjl7j5JN75FvFpWijnsaiaQ/7J1keKJaFwaRxPAImc77HkG9LjzIpuhb/8 G/wxwrNaojyqsaJAXhJV5noJ5fJ/fK/LSL5C0C9/tDXx0WqxqKlCb40t5LNLu7aPMRea z1E2jSCcWj5Nvs2mY+pNCxneCPuvxbgLyEqMrJTU7WsZT8rD5HV8owWu02MJYgKI6OR1 uulB3NWRia0h18iVmwufeskSlaWSGsOP6In3nQ4Edozz6zYcbJSrfgyow8SY3dVaZHtv x2aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:message-id :content-transfer-encoding:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:from; bh=4rBwWR10mXCDG1OXYOTQkm4k3oOM48ikYdNjkvzgGn0=; b=hH+0QVofqnrm5kcFXDFNtkeWcVbyyhdaKU54KKoR8B8H5m6zdiiaeGxjIwTjxFOrXC u4VnuX8wzQWNHGXfsdgHImStHx/pFy6cOi3TUnNssLy0qCvUgq5k+DQn3bfoCPnGU2g6 nMBrcgIzEsoJ9+s5mmTRlOH4YyfonX2pvsL+r+7zMIZMhfXf+pVuC+Ty5znJi4wWNIDb b4ESzDtkm+/f4/24T2FISm4emqNOIstFnc+/KJxpHUUNXICbUjdsCRBfX7pczEH/WBkx rXz7AN2XuSMNOXdAcRNlBYD6iO54no3mztJ8YtmjMR3WsfnpaELKTkP7P/7RAGTgYjdg Lo4A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si2899074edq.174.2019.09.15.20.32.06; Sun, 15 Sep 2019 20:32:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728820AbfIPD0L (ORCPT + 99 others); Sun, 15 Sep 2019 23:26:11 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:13358 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728809AbfIPD0L (ORCPT ); Sun, 15 Sep 2019 23:26:11 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x8G3MXFJ062066 for ; Sun, 15 Sep 2019 23:26:09 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2v1vgkenmd-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 15 Sep 2019 23:26:09 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Sep 2019 04:26:07 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 16 Sep 2019 04:26:02 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x8G3Q1Yx50462912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Sep 2019 03:26:01 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3B08311C04A; Mon, 16 Sep 2019 03:26:01 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DB9E411C04C; Mon, 16 Sep 2019 03:26:00 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 16 Sep 2019 03:26:00 +0000 (GMT) Received: from adsilva.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id E0E33A01B5; Mon, 16 Sep 2019 13:25:57 +1000 (AEST) From: "Alastair D'Silva" To: Christophe Leroy Cc: stable@vger.kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Greg Kroah-Hartman , Thomas Gleixner , Qian Cai , Nicholas Piggin , Allison Randal , Andrew Morton , Mike Rapoport , Michal Hocko , David Hildenbrand , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Mon, 16 Sep 2019 13:25:57 +1000 In-Reply-To: References: <20190903052407.16638-1-alastair@au1.ibm.com> <20190903052407.16638-2-alastair@au1.ibm.com> Organization: IBM Australia Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19091603-0028-0000-0000-0000039D501E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19091603-0029-0000-0000-0000245FC33D Message-Id: Subject: RE: [PATCH v2 1/6] powerpc: Allow flush_icache_range to work across ranges >4GB X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-09-16_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=852 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909160034 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2019-09-14 at 09:46 +0200, Christophe Leroy wrote: > > Le 03/09/2019 à 07:23, 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. > > Isn't there the same issue in arch/powerpc/kernel/vdso64/cacheflush.S > ? > > Christophe Yes, there is. I'll fix it, but I wonder whether anything calls it? I asked Google, and every mention of it was in the kernel source or mailing list. Maybe BenH can chime in? -- Alastair D'Silva Open Source Developer Linux Technology Centre, IBM Australia mob: 0423 762 819