Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3462627imm; Mon, 6 Aug 2018 05:21:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc28WNZ4RC8kXjSDljATB+xSCG10mW0mD0uvrZO0EJedXZGQGcAgIvBMDkCN25ugtH34P5u X-Received: by 2002:a17:902:b608:: with SMTP id b8-v6mr1908319pls.312.1533558066089; Mon, 06 Aug 2018 05:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533558066; cv=none; d=google.com; s=arc-20160816; b=MnBLWHNs7P1CtEAQ7tRdAMZ8ecAG6F0OL1alo8DLsoCEtOAkedCOcT+KIAhyfXAdYE tPgDFMdICQ4o9n3NYGG0dbB+LkO4vkiG2VxBcSNwo0iC9Zl4OpEfCJ9jd4m424I2z66B euGw3wCDeGq6gFvmW4bMC9z5hIuLPK0ahgZ0RYDhNTI3soU8tnWQDfODIT2T9sH/QYoU PbmwctihqCoW4MyHGrr62SMFp1rNy3ssJY1FKwb3QE7YLhxZANAC4x5dvjAXx/y8wpoe COo9JdTqyASI/f5t7Orypi/w13vnRkcABBNsPUug42jEItub7V6ZwRDSETdYy2TilxTQ f1gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=dO7fODqdnaKG7aBGz/oJJSIFUHItJhIh2DWqbPdSuPQ=; b=mESYumbcE+x36jAlvEl/A3VehdhAL9aDr3JNmOTgzCTN4rxUyLyx7mhFeN/Dvl2eUJ bQXEwbPxKL4cmFSjzQom9hQbBgdanLHRdK9eq2HVt33DxzXFLSpBh5PGj9f/J74AslkG cuinnav4CNOXLupYWcR+PiMzYZKB5glOnRX1ZGLreKlsNJiMctw1EWCMwT0/ThMe+uxC Vtv6/mupv4j4oT/cNPd/evUOHTPJsTPk5ct8dGZXogG9m/KL3UYba+a703LL97H52wWO 2OxdCeRsyXrkWuVSl0cDbX6U3UWAIOZeX+wp3c6La11AVtuKKTKkWruHn4lwjSkdaUAW Z4AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WZAC3Es9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15-v6si12770252pgo.574.2018.08.06.05.20.50; Mon, 06 Aug 2018 05:21:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b=WZAC3Es9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732278AbeHFO2Z (ORCPT + 99 others); Mon, 6 Aug 2018 10:28:25 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:35676 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731081AbeHFO2Y (ORCPT ); Mon, 6 Aug 2018 10:28:24 -0400 Received: by mail-io0-f196.google.com with SMTP id w11-v6so10834202iob.2 for ; Mon, 06 Aug 2018 05:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dO7fODqdnaKG7aBGz/oJJSIFUHItJhIh2DWqbPdSuPQ=; b=WZAC3Es9/ACy7gqkHFyBuf6XIrOHcBXyUCidqMHHWZi3M0SUc4CmjLlgxpyJ3E+fcG i3cGOFc1ySuUChrDcoh1wBlHBw6Ocyvx8n23lXUsdPCkHRVQtAOFdbyfnLCl1HsnVYmS 5tkC2GhFz5K60PE1kMYaVqepV/hZjdEsJtUYc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dO7fODqdnaKG7aBGz/oJJSIFUHItJhIh2DWqbPdSuPQ=; b=QnDnjiknQRGIniJWpjapqedz4on1XnyAzpli3fH9MN2q+/vmcgP+l70Xs6/5Rb9/W1 FJiW/DcO/V2FcsxM23eCPeWJxqCOpgxlPqHCIuxi26TNUcv3uC02+S9hz8UtbfWEchT/ nFp0dy/gwEUj4mLkK8F4ovtDTuZyHFJ8zXEMtPjDP0fKQPKMHEM3Dg1losS474nZpBpL S/wWZEW/xzEqyJLuOVn0mHw6cglQ7XiEvGRiGum6YpfwCv5L2Fdrs+erLoU5B57BNcDC YbVE582aLmJ/qFknV7sVBnd/izzWbRM400/dOU05NJDRpn2mKjMZkilmMLFo3QcQVaR0 h5HA== X-Gm-Message-State: AOUpUlHDQWDkAE8RjA9+ABs/hvyFBEQdROnJ3aR5yRkL6GHZ6IwK0X8V TJEdWbbFqK7l/1ppLrU3omV9T7hO+TGgY2OTFuRVbA== X-Received: by 2002:a6b:5208:: with SMTP id g8-v6mr15521400iob.60.1533557972705; Mon, 06 Aug 2018 05:19:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:ac05:0:0:0:0:0 with HTTP; Mon, 6 Aug 2018 05:19:31 -0700 (PDT) In-Reply-To: References: <11f9185a-7f71-83df-3a57-0a0ae9c1f934@arm.com> From: Ard Biesheuvel Date: Mon, 6 Aug 2018 14:19:31 +0200 Message-ID: Subject: Re: framebuffer corruption due to overlapping stp instructions on arm64 To: Mikulas Patocka Cc: Florian Weimer , Andrew Pinski , Richard Earnshaw , Ramana Radhakrishnan , Thomas Petazzoni , GNU C Library , Catalin Marinas , Will Deacon , Russell King , LKML , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6 August 2018 at 14:09, Mikulas Patocka wrote: > > > On Mon, 6 Aug 2018, Ard Biesheuvel wrote: > >> >> Are we talking about a quirk for the Armada 8040 or about PCIe on ARM >> >> in general? >> > >> > I don't know - there are not any other easily available PCIe ARM boards >> > except for Armada 8040. >> >> ... indeed, and sadly, the ones that are available all have this >> horrible Synopsys DesignWare PCIe IP that does not implement a true >> root complex at all, but is simply repurposed endpoint IP with some >> tweaks so it vaguely resembles a root complex. >> >> But this is exactly why I am asking: I use a AMD Seattle Overdrive as >> my main Linux development system, and it runs the gnome-shell stack >> flawlessly (using the nouveau driver), as well as a UEFI framebuffer >> using efifb. So my suspicion is that this is either a Synopsys IP >> issue or an interconnect issue, and has nothing to do with the >> impedance mismatch between AMBA and PCIe. > > If you run the program for testing memcpy on framebuffer that I posted in > this thread - does it detect some corruption for you? > I won't be able to check that for a while - I'm currently travelling. > > BTW. does the Radeon GPU driver work for you? > > My observation is that OpenGL with Nouveau works, but it's slow and the > whole system locks up when playing video in chromium. > No that works fine for me. VDPAU acceleration works as well, but it depends on your chromium build whether it can actually use it, I think? In any case, mplayer can use vdpau to play 1080p h264 without breaking a sweat on this system. Note that the VDPAU driver also relies on memory semantics, i.e., it may use DC ZVA (zero cacheline) instructions which are not permitted on device mappings. This is probably just glibc's memset() being invoked, but I remember hitting this on another PCIe-impaired arm64 system with Synopsys PCIe IP > Radeon HD 6350 (pre-GCN), doesn't lock up, but OpenGL (and Glamour) has > many artifacts and corrupted textures. When I switch it to EXA > acceleration and don't use OpenGL, it works. > > The artifacts are not fixed by preloading a glibc with fixed memcpy, so > there's supposedly some other bug somewhere. > Yes, I have the same experience, and I have been meaning to report it to the maintainers/developers. Good to have another data point.