Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1150508imm; Wed, 8 Aug 2018 11:38:10 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyItrYrfXr63+nuAy5Yxe6MyvGjNBgu79vbTWzw6hB+Wx9pgcJLt6+A8/xZO2uTuy0sF+1Z X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr3581805pld.43.1533753490802; Wed, 08 Aug 2018 11:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533753490; cv=none; d=google.com; s=arc-20160816; b=EHEhf01YeQ/sE8JQTS427T49sQYx48MJTxv4clq+qk0oz+sbmr/YFHUD3/Nujf7MG8 szO9kHeQiLFD1iZtIXW7susY2F2bf/g8dTLJegZX5XYW9ttbE50Xjj1V6DGf1SrPbeNu 13L8XlA1MUYadAGs1ajCQonBQOSjkiQF8R/QoVmm/Nvqxhd5DDnqAG22zlOzocrooCtY D0V6AUZGnM4N44xKGYNzluCAHkPmSFfTZgzVTdOR1AeOrUSkSlrk3hwnHTg+BCor6Cl5 7sLFC6oMjLZ1Ykw0zQfmR63Zq2YLCULiNPR9cI1E/2N4yRJilGY0ex2xIBdTZ5Yc3nCz fAuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=rFqltVCKh/1N/+CZyzLdxLtXJwDKk1N9Dtust+ePBCY=; b=h0YJh31qyhHSYE5h9gBdNaKiM6nfAb1bTyzEL0YbLAH9FL9jIYn037RNH5hcjBA8H+ E/aiQbLH3lmSuGouXDrRyPLJbz0UdQEocd1fyNatLjTWq78LRyC/EfS46BKphbX/tVhb WVcnmotzlF3YrRgECODiQ3c/bwklDekt0eNMG6mYpECIgTopC0pSoFtJ0eS2VfRsaTD7 AurISLZEHW8QOxvjJ/kVyZKVyyguzStv1lm1j0m8QTEbczeYQZZUrWM3VFoFaLncSCkF EiaQFXD1WhQkTyHHe4yLN7V8CA87mwC/0CbQZUNNh0+UMUElc0FKQElD/MFEhTXHvPnF +nqA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p81-v6si5071161pfi.345.2018.08.08.11.37.55; Wed, 08 Aug 2018 11:38:10 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729721AbeHHU6B (ORCPT + 99 others); Wed, 8 Aug 2018 16:58:01 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44764 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727295AbeHHU6B (ORCPT ); Wed, 8 Aug 2018 16:58:01 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E5E327B2B2; Wed, 8 Aug 2018 18:37:03 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 892132156897; Wed, 8 Aug 2018 18:37:03 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id w78Ib3Lt027667; Wed, 8 Aug 2018 14:37:03 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w78Ib256027650; Wed, 8 Aug 2018 14:37:02 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Wed, 8 Aug 2018 14:37:02 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: David Laight cc: "'Catalin Marinas'" , Matt Sealey , Thomas Petazzoni , Joao Pinto , Ard Biesheuvel , linux-pci , Jingoo Han , Will Deacon , Russell King , Linux Kernel Mailing List , linux-arm-kernel Subject: RE: framebuffer corruption due to overlapping stp instructions on arm64 In-Reply-To: <19c70d2a0b224db78f72dd316ad006b8@AcuMS.aculab.com> Message-ID: References: <20180803094129.GB17798@arm.com> <20180808121641.GB24736@iMac.local> <19c70d2a0b224db78f72dd316ad006b8@AcuMS.aculab.com> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 08 Aug 2018 18:37:04 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 08 Aug 2018 18:37:04 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mpatocka@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Aug 2018, 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?) > > It might be that the unaligned writes are bypassing the write-combining > buffer (without flushing it) - so overtake the aligned write. > > Alternatively the unaligned writes go through the write-combining > buffer but the byte-enables aren't handled in the expected way. > > It ought to be possible to work out which sequence is actually broken. > > David All the unaligned/or aligned writes inside memcpy write the same value to the overlapping bytes. So, the corruption can't be explained just by reordering the writes or failing to detect hazard between them. Mikulas