Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp243226imm; Fri, 3 Aug 2018 02:43:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpenA+A7KqRdqMP7FFRl76t1hvtoKFBAb7RVPZRnYJDfqIZKp+G+mzRHDTOP2tqgP3L17WuL X-Received: by 2002:a62:be03:: with SMTP id l3-v6mr3608824pff.138.1533289402221; Fri, 03 Aug 2018 02:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533289402; cv=none; d=google.com; s=arc-20160816; b=wuBIEAHwUEGgl6wzQ5BwOxw1ftsIojsQ2zi5jVnZVUWGoNZE+8J26cRp2hwtKrwKyg im/Xx/uknDxyvyHMGceg2wkluEPu0Dwe2QKfLNjmqDrpdXvc/F2j98jqhjbn47ixC/WT oFcoP/SbFWXtHpXHDpW8cFPouY+DbmH6mG6wt5JZMy1mlwrBy71niu4Amj6mSLnselOV vAnqzmYFpWVxHei61y/QpNlj3jnZiN96U1uT8vVjJ279i+pGlGym8qdD3hWOhtqzNFqS WUTBN+2kxZPNVzZlqTxDkNgODIJUJ0ShS40YBw6rLN5aF0rS1wOhq6zRYk5jFBoowaVY lViw== 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=fmMALivZ9aDha7pI5THefFUVE8vkE762Bi7Ud5ft5SI=; b=LS/kWfPNEnTZ64cY5y/4tRvqLX1my/doqOEXMII4u+txVd6eLYKfSM8S2cwKynLwiS 07fu+cFv2gbIVPo8A3oknj7nG4jnUlAU4z46Rsu/uo2g9WKpVSts617czVZn8a9g2l7m 24+euLHlNGsVfYQpIIRcJYV97yrXo/6C8kEX3Vqo7uSNIcs+8uzx7P18XLY4zMUPfcdi e6UVuMCH7gjG3AiTDUVx1juJGRrGep/tt5zStEm+svHvPRcHZA7HXkiSEs9kOPLppoiG mlmdhWhoMVRdnDTnCztNRBZcgE6+vfFyiJWOypK5h/BvL0YNfAmB4fOQsQ7YmgVSn4Dl hs8A== 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 x65-v6si4993613pff.196.2018.08.03.02.43.07; Fri, 03 Aug 2018 02:43:22 -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 S1732459AbeHCLg5 (ORCPT + 99 others); Fri, 3 Aug 2018 07:36:57 -0400 Received: from foss.arm.com ([217.140.101.70]:40662 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728450AbeHCLg5 (ORCPT ); Fri, 3 Aug 2018 07:36:57 -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 98DB180D; Fri, 3 Aug 2018 02:41:27 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 69C913F5B3; Fri, 3 Aug 2018 02:41:27 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 340231AE30FD; Fri, 3 Aug 2018 10:41:30 +0100 (BST) Date: Fri, 3 Aug 2018 10:41:30 +0100 From: Will Deacon To: Ard Biesheuvel Cc: Mikulas Patocka , Matt Sealey , Thomas Petazzoni , libc-alpha@sourceware.org, Catalin Marinas , Russell King , Linux Kernel Mailing List , linux-arm-kernel Subject: Re: framebuffer corruption due to overlapping stp instructions on arm64 Message-ID: <20180803094129.GB17798@arm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 03, 2018 at 09:16:39AM +0200, Ard Biesheuvel wrote: > On 3 August 2018 at 08:35, Mikulas Patocka wrote: > > > > > > On Thu, 2 Aug 2018, Matt Sealey wrote: > > > >> The easiest explanation for this would be that the memory isn?t mapped > >> correctly. You can?t use PCIe memory spaces with anything other than > >> Device-nGnRE or stricter mappings. That?s just differences between the > >> AMBA and PCIe (posted/unposted) memory models. > > Whoa hold on there. > > Are you saying we cannot have PCIe BAR windows with memory semantics on ARM? > > Most accelerated graphics drivers rely heavily on the ability to map > the VRAM normal-non-cacheable (ioremap_wc, basically), and treat it as > ordinary memory. Yeah, I'd expect framebuffers to be mapped as normal NC. That should be fine for prefetchable BARs, no? Will