Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp796839imm; Wed, 8 Aug 2018 06:02:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwgqtoe5N1oa1OSbNCCU2ImdvFfESSsdAArrEbAMOw+tt2nCRiSzX23MDGoPccW+CwqBXVi X-Received: by 2002:a63:6441:: with SMTP id y62-v6mr2511026pgb.240.1533733349850; Wed, 08 Aug 2018 06:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533733349; cv=none; d=google.com; s=arc-20160816; b=PIh9tLc3XrE7X86KT4yuV5eVe1FS6F402XrIY6YpZqwnaoZCG9uXHl4X7cMNg/RPgu thaFMFQ8jWxXaWwJWA/0mGAlyPoo2Qg1JP2d370uDqwC5xjFNTX3EhCbW66gk+dJsB9c 4UedoUd1Q0pJQsAV8ezej8wdU+q95NGcKGzXyINmZPMBpbZn+8BKmSzJxDi/NEIoRfOq 84JyoSollG6FRTCSqUIL+DkqSF9Ybn3Mt58RJQTjBQO/0MDwDwq+MwAxB8AnTlQrkV3q oFATqdoueuu05LW35N8aP+dJmUw0KExsrbDIPXmlzqWH2lRA63cMh4t/k8Uy3Br0e+KO SZUg== 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=zh2i+ZTpi1rGoAlbpQsKOXEKriDWmj/W2Bzztt77bAk=; b=u8yyf7DAUIAorHp3yADh0vt4+iemYPfl1Rns7ffk8HfeflNc/2cEYzupquUWrrgrIm ZMIy8ZGqGr5hd+feU6iCH1ijpgnDRXQt/y5nnYOQun479fGcADIAJ30Z1Um48tFBSHqx ATAf7vaAPgUHgPUHsMpOAx97OJhsoBqq8uEijBFANMuq3ZkRhBuIBn4h33WMY8Z7Ix1t 1fhMBlguVpe2uUEuwYQ1gRgOipfaJAPjtJQDiPPDe0MxtQnVJNJQ68vaYHK0mv62ClKD Ee/nYB1T5KyUMUm2sDUCB3UyVZ9KfO8t288lwACdazKFimkBP3YQSEeE1ggFfb+evfoZ umyg== 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 f15-v6si3103533plr.470.2018.08.08.06.02.15; Wed, 08 Aug 2018 06:02: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727296AbeHHPUx convert rfc822-to-8bit (ORCPT + 99 others); Wed, 8 Aug 2018 11:20:53 -0400 Received: from eu-smtp-delivery-211.mimecast.com ([146.101.78.211]:41631 "EHLO eu-smtp-delivery-211.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727274AbeHHPUx (ORCPT ); Wed, 8 Aug 2018 11:20:53 -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-127-zYzYkRyqPYe78HSMLppyOA-1; Wed, 08 Aug 2018 14:01:14 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b::d117) by AcuMS.aculab.com (fd9f:af1c:a25b::d117) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 8 Aug 2018 14:02:54 +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 14:02:54 +0100 From: David Laight To: 'Catalin Marinas' , Matt Sealey CC: Mikulas Patocka , 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 Date: Wed, 8 Aug 2018 13:02:54 +0000 Message-ID: References: <20180803094129.GB17798@arm.com> <20180808121641.GB24736@iMac.local> In-Reply-To: <20180808121641.GB24736@iMac.local> 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: zYzYkRyqPYe78HSMLppyOA-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: Catalin Marinas > Sent: 08 August 2018 13:17 ... > I think hazarding is what goes wrong here, especially since with > overlapping unaligned addresses. However, I disagree that it is > impossible to implement this properly on a platform with PCIe so that > Normal NC mappings can be used. I've been trying to follow this discussion... Is the problem just that reads don't snoop/flush the write-combining buffer? Aligned writes that end on an appropriate boundary will leave the write combining buffer empty. But if the buffer isn't emptied the PCIe read gets ahead of the PCIe write. ISTR even x86 requires a fence instruction in some sequence associated with write-combining writes. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)