Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp916440imm; Wed, 8 Aug 2018 07:51:26 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzoAz95sbAgfDK4drSZCS8L88qfGKjRhuKdcXU8RvoqVGiIqwqwRYV4hrxrTOI6cA3H4NvL X-Received: by 2002:a62:f610:: with SMTP id x16-v6mr3327820pfh.169.1533739885952; Wed, 08 Aug 2018 07:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533739885; cv=none; d=google.com; s=arc-20160816; b=fq54XOqa3drTjZ1f1xwqnovQlDF0x27EdScXSZbGbp9u5GYF6nqel9O7s4lU4ULliW Rp6Jwq9qrn29n5BblHdW0FVpU6yhFMU/P9u5qqRDNA0Kza0/gXbk7kO/bjryTXKzqfUO 99Dmh8u36GNMmFN09/+GhXwI87qO7Rr8h1wrswmhE51uG0GVhglt0GmJkm1XFIKWtU45 c9h5M+Cu/TRO+8IrVqhZQJSv/+DHvnBgtYuKNFgGQsekD7HL/PxU6/pvNL2AOOgSDYla 7M8ENJZA9bIBYesIH4UQE6zC0tYUB/Lr+9vFkdy+Gmk/+htPPB53cDEk3oss2OAtlA8l +sMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VI5a6s0hi10lmmb5aMdJQmqD7sz+NJE4BO53a9lQLRo=; b=AMxoQbPLKu+unR7usr+wttb7+zoPMNQSCiVA++uZKj6s2RKzPnZMuaPIZTMNq6WOqG YZtsIUqMfrRG07sIPaxctp1u2TEgZsia4Jf0j4cNDmtmLgdD3WAhWbpk5Lzpt+QTbQRS NAxk8v4VtLbJj2d4VyM6m82ouU7nTByxY+8rGveIARaZR5upRRTbQ+c40nPahh2RpOVu l7rTP2eNkUs4oQvObSaqPs4W/ymtC6Mm7m9JwetDa6ml6QA674/8ewbij6wy+XOpUEtt uilvYXfi4zfvq6HDVnCwGJoUdLR2NMp37aiC1uTAvgOP9U3cAn/Tlq4JTEmnWI16/+mX kMiQ== 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 n128-v6si4889544pfn.90.2018.08.08.07.51.10; Wed, 08 Aug 2018 07:51:25 -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 S1727544AbeHHRKW (ORCPT + 99 others); Wed, 8 Aug 2018 13:10:22 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40182 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727146AbeHHRKW (ORCPT ); Wed, 8 Aug 2018 13:10:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6135118A; Wed, 8 Aug 2018 07:50:22 -0700 (PDT) Received: from iMac.local (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 420A43F5D4; Wed, 8 Aug 2018 07:50:20 -0700 (PDT) Date: Wed, 8 Aug 2018 15:50:17 +0100 From: Catalin Marinas To: David Laight Cc: 'Mikulas Patocka' , Thomas Petazzoni , Joao Pinto , Ard Biesheuvel , Will Deacon , Russell King , Linux Kernel Mailing List , Matt Sealey , linux-pci , Jingoo Han , linux-arm-kernel Subject: Re: framebuffer corruption due to overlapping stp instructions on arm64 Message-ID: <20180808145017.GE24736@iMac.local> References: <20180803094129.GB17798@arm.com> <20180808121641.GB24736@iMac.local> <19c70d2a0b224db78f72dd316ad006b8@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19c70d2a0b224db78f72dd316ad006b8@AcuMS.aculab.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 08, 2018 at 02:26:11PM +0000, David Laight wrote: > From: Mikulas Patocka > > Sent: 08 August 2018 14:47 > ... > > The problem on ARM is that I see data corruption when the overlapping > > unaligned writes are done just by a single core. > > Is this a sequence of unaligned writes (that shouldn't modify the > same physical locations) or an aligned write followed by an > unaligned one that updates part of the earlier write. > (Or the opposite order?) In the memcpy() case, there can be a sequence of unaligned writes but they would not modify the same byte (so no overlapping address at the byte level). -- Catalin