Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp117385imu; Tue, 15 Jan 2019 17:54:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN5owtrn2I2QQrdDj2zs35Zr6NjEb4m7gDND6qNn16Be2lE3d7B0xq36D/hEIhvi6Ahbo01f X-Received: by 2002:a17:902:503:: with SMTP id 3mr7212421plf.233.1547603694873; Tue, 15 Jan 2019 17:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547603694; cv=none; d=google.com; s=arc-20160816; b=mLoEPRZv1pW2Y0c8qetEYI8tr8jiauo9v4c5erTpIPgrGX9pBdzE3i6/nx3n5bwTTF QQQwWtlHd/lPxGdJpR12NXgMq7D6+Be35D7Wi8nusfltn+L2crHRWkzN3AKJ/wuy0k2A Q02NuxmptVcNWKlP2JNRnk86GVC5vKGRBTZoLwcUK50lw3LLojwP6zYJMN2LsK4kx203 s9LwR46lxP83tQwHIYov82StsZ+neOtQgzebnBlP2E0siX+JgIWp5uK/kYA9jDEbjfcD I5zi9GMkUtJWX/ROoS2eXQ2xK1q+hvtYz258kEGXd3L6xbk2FL2oDm4fhdQPhCHI2U+q CgTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=h/1d7nEqiwpnAbpLIFWjjZY6Lu4ReDuXa4iDO+xs6pU=; b=UZmINpDI+33RgyKkeqr33mGGeo7Tp98LyI0HUe6HDHdMPwkxFhBSCi1/aoH1U1v/fp vX6sakEsolqty8fP+t2DVmrNhL3L3+g1wVrjuvmxJgKScCw2V0EDjxc0HkoHhYPj8cOy FbbMRW6K1eUBOFxUH3OI8O2ILsV6zkM5l4IcQL+NDrYGcCKhHvT0XNO7UyAGH7MJU0S+ Kzx9lE3bBkopV8vqUGIY5uCVaWOAti9iJp515Csx4T+UbbRVX8tFhc/cN707gd3NDsPD brAVD4M8a+yLJfxd8NSKlEOt5aW80IY2dGvwoZyFnwrxLydZ291/E2itDKGwUIzEbtB4 Ae6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=OA+YRIBU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si5243898pfg.78.2019.01.15.17.54.35; Tue, 15 Jan 2019 17:54:54 -0800 (PST) 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=@synopsys.com header.s=mail header.b=OA+YRIBU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387897AbfAOQ6Z (ORCPT + 99 others); Tue, 15 Jan 2019 11:58:25 -0500 Received: from smtprelay4.synopsys.com ([198.182.47.9]:37924 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728613AbfAOQ6T (ORCPT ); Tue, 15 Jan 2019 11:58:19 -0500 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 8B2EC24E16F3; Tue, 15 Jan 2019 08:58:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1547571498; bh=POsdSu2h1MWWntYZn018yDa8VSmiuZgpPL8E7jdQPwY=; h=From:To:CC:Subject:Date:References:From; b=OA+YRIBU1/4IAbepfPMkpV5ou17ESTOi90wmECBH1U6YYkhqvk540zFxIBKIyO4L7 H7Y1COSh9j1q26p4a4jbHE/pjw7UC8ZqqGLCZ3Rd/DmZDlsMpG5e9Ishmr8zkCRN6F W3+KjndQq3C1fFH+0xbbamc64RWxEXHBwOivTnnCbyKRFQ9eh4FEfkYXYqE39F0mrG WfHWCPP0HgR1uaj475CRp29HEftFt6eaWXcdqAT7PNPNwUFaZU0Xb8eogUQSWnzdZS kYYnkHXBAQ2k2L2gHcO8tA4F6zp8iI4Sd71lP2GuIpLL6E4j1QbYmaLOUQmMpnK2M9 L/1b19ZB4O8wA== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 4453435CB; Tue, 15 Jan 2019 08:58:18 -0800 (PST) Received: from US01WEMBX2.internal.synopsys.com ([fe80::e4b6:5520:9c0d:250b]) by US01WEHTC3.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Tue, 15 Jan 2019 08:58:18 -0800 From: Vineet Gupta To: Eugeniy Paltsev , "linux-snps-arc@lists.infradead.org" CC: "linux-kernel@vger.kernel.org" , "Alexey Brodkin" Subject: Re: [PATCH 1/2] ARCv2: LIB: memeset: fix doing prefetchw outside of buffer Thread-Topic: [PATCH 1/2] ARCv2: LIB: memeset: fix doing prefetchw outside of buffer Thread-Index: AQHUrBw2ZJte6r90DkSex+vHyLGaMw== Date: Tue, 15 Jan 2019 16:58:17 +0000 Message-ID: References: <20190114151649.32726-1-Eugeniy.Paltsev@synopsys.com> <1547553603.24248.49.camel@synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.106] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/15/19 4:00 AM, Eugeniy Paltsev wrote:=0A= >>> -#ifdef PREALLOC_NOT_AVAIL=0A= >>> - prefetchw [r3, 64] ;Prefetch the next write location=0A= >>> -#else=0A= >>> - prealloc [r3, 64]=0A= >>> -#endif=0A= >>> + PREALLOC_INSTR([r3, 64]) ;Prefetch the next write location=0A= >> These are not solving the issue - I'd break this up and move these bits = to your=0A= >> next patch.=0A= > Actually these are solving another issue - current implementation may cal= l=0A= > 'prealloc' instruction for L1 cache line which doesn't fully belongs to= =0A= > memeset area in case of 128B L1 D$ line length. As the 'prealloc' fill ca= che line=0A= > with zeros this leads to data corruption.=0A= >=0A= > So I would better keep these changes in this 'fix' patch.=0A= =0A= Fair enough. Although technically it is different bug which we haven't actu= ally=0A= hit, found by code review.=0A= =0A= > BTW, I've forgot again to add Cc: stable@vger.kernel.org, could you add i= t for me,=0A= > when applying patch?=0A= > Thanks.=0A= =0A= Yes, I did that already !=0A= =0A= -Vineet=0A=