Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp888815imm; Wed, 8 Aug 2018 07:25:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwFwpuosjeMvJ2iaShBp/OyhhTYpTnXADinFzJUGScDEocjnGsqimYg9wB1RDqtBroCvTLB X-Received: by 2002:a17:902:d710:: with SMTP id w16-v6mr2823145ply.93.1533738348163; Wed, 08 Aug 2018 07:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533738348; cv=none; d=google.com; s=arc-20160816; b=cqBYLnLlnUIlJkrgJuKDQNbZDOnfsCO91d6kkFQog4XoDi9e0/cv9qdlcNKpCGH1+5 3nKrCGxwXw7VlQs2G5KrK6E40gGh31ySU4Qk7uu7edIwiB74x+Uut/ykJ0LmHip8cE4X 6NGukRfiVNpEan8cLbBWy+VX/YrWc6ROMEHbho023X7fTaFJJIj50u9Tewxd+bIuarv5 ZUE9Gq14CHCYIw8RB5oiKfgt1qMixVYKedVNjwA31HT5hR9bjCrFRCdreiZiUv/oiTN6 pJqhrsVhAyowL0r1/Y4/QBkKVTjtBdS8Hm3gbGzT/rkeb7cGykB762XT1BTHO4g+PMHk Y+jQ== 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=VQ16ncEmy6s2PVo9UfXIsb+igD3RxmN+JT8YyaNFpmQ=; b=aP/PagROCA7z1QBorAQcaMolREtpXDxMhswqloq9lQfroDP6MlR/WkbSMq02QEUVKJ x59vrFVTX3C1vkW+uDOld/RyfhFZ3msS0TPRNdAeNK/gHh/QXjBEnvh7vC8fVMCANOvr I07UcvjhPy/W65AppX00JDtl3NOVx3H+l24ytyzXbGuo40gmQSKW6bRk+eNJiT1d40HK FeXn3ovHTxP6ydWmHrpil1t60GSq9VXC9c/jMdfrRoxVsTTrMhSm9ouIyFNbLal/Djct kvCAiADvee+q0oguJXNMYD6/cxztEWgrui74eXNc6l37f+JDAO11UL29PP3RqkLtx0NU o03g== 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 i5-v6si3931909pgc.351.2018.08.08.07.25.33; Wed, 08 Aug 2018 07:25:48 -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 S1727394AbeHHQo3 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 8 Aug 2018 12:44:29 -0400 Received: from eu-smtp-delivery-211.mimecast.com ([207.82.80.211]:21483 "EHLO eu-smtp-delivery-211.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727078AbeHHQo3 (ORCPT ); Wed, 8 Aug 2018 12:44:29 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-46-t8xWS1qPMOymlMkb5Reqfg-1; Wed, 08 Aug 2018 15:24:32 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 8 Aug 2018 15:26:11 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Wed, 8 Aug 2018 15:26:11 +0100 From: David Laight To: 'Mikulas Patocka' 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 Thread-Topic: framebuffer corruption due to overlapping stp instructions on arm64 Thread-Index: AQHULxGqyzS7gP0u+Em6lFS72D3AkaS10FEA///9OACAABjskA== Date: Wed, 8 Aug 2018 14:26:11 +0000 Message-ID: <19c70d2a0b224db78f72dd316ad006b8@AcuMS.aculab.com> References: <20180803094129.GB17798@arm.com> <20180808121641.GB24736@iMac.local> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.33] MIME-Version: 1.0 X-MC-Unique: t8xWS1qPMOymlMkb5Reqfg-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)