Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3521636imm; Mon, 6 Aug 2018 06:19:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdVHZhGDKHx3KTwgtF3G3Xa+ysHPRenNv1FNZo32n+8qBqBwz2oGNfqBCfAysogcJcsbeMe X-Received: by 2002:a63:bf43:: with SMTP id i3-v6mr14484365pgo.342.1533561585226; Mon, 06 Aug 2018 06:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533561585; cv=none; d=google.com; s=arc-20160816; b=BKvCoNSCiNDNI6axxPAgw0mEA3M4rLuF+zOqQYmiVFBOUcprp01t+324SYMKSOGC/1 gox2Si27hlQxRrfn3Ub6GSiLtMC86ZCl+BQeGRiyro2kliz+eJuhBA3pGF26800OxmOn CuQ2g966dyLdPqjnIKTq+94fhkHhW6Os1TCnFuyXcsqO9zUlrJW7D+aMP4IzIn417Z5I Xh8hiP2dnss/DjGTGMGDwPNdplsCHv1HhrvXE7+bP/INf6VSQ/HjDY46TKdlU2AZfY/K 9xpge5mQKA/LdpInEVZzwDWfKVylQvVJ8InQ662uR+i9ytx6LS7cZJb6l28kj5xUvqm6 SB4A== 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=tYIO4A7ou5+hf45teEkZ2sJsFMUgU4VM790JBwG2wAI=; b=AeqRefd8h5YUwzMKLsRE/tU2p/Sg74vWvOJTKva3xgoNo0C+xUYuXlS3+2ZrDbdlOK GkO2lAnVFt7LmnqytDvCJmtdeWvVEdfkDSYbSCkyr4Sk5LmtBXOEAeNSa3c3QL7W8DYc FK8bHp/s5tbLPhwjTNmfvlgd8dbLjvtTF2mfe3vQxCV0lVpVOZEpd8h3i3M13/aarCmu FxYlbDQI3chUy1fQVZKoSEZgorTa6KDBDATdMvd2JgQRxCNiJg9e1Re20aiAgrzn4FcP NIDWapWHB9l9f42pxkqFvJ4rcoD3uyeWByOWbcRy+7LAdCGgZQB56CCIQ8eSu5qg35yK x/ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IM/x1VdE"; 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 p3-v6si9614443pld.329.2018.08.06.06.19.30; Mon, 06 Aug 2018 06:19:45 -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="IM/x1VdE"; 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 S1730112AbeHFOay (ORCPT + 99 others); Mon, 6 Aug 2018 10:30:54 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:35891 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726988AbeHFOay (ORCPT ); Mon, 6 Aug 2018 10:30:54 -0400 Received: by mail-it0-f66.google.com with SMTP id p81-v6so17857692itp.1 for ; Mon, 06 Aug 2018 05:22:01 -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=tYIO4A7ou5+hf45teEkZ2sJsFMUgU4VM790JBwG2wAI=; b=IM/x1VdEMAmzTZIp7I6XPCKGfcCIXtJzPGmvp7BEOITXqJEO/D9AJr/Fz7r9z8x4ya Geq1q9u4VcteXlWKKCul8lD9lp507aASDUW0maK5PkZyWKHfkmrxe+qKa1V3Gkh6CEtJ INJjLN++a5fTBn5Bztz6/xHqGtxpadQ/x9aQ8= 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=tYIO4A7ou5+hf45teEkZ2sJsFMUgU4VM790JBwG2wAI=; b=JLV3c9sVb3EpDlhoSGCcMiS95z147GN1cV036y/zhN9sI8jMozKuhais1NzDgjfUa3 /rZf2YXbxGM8AhDio3CNinNGo0qg/gJqmHjIOMl1+Pj+s03kspZnnNWlPo9wBEVh/i9q ZuawZxZkGjdr2izZAziQf8lBy23n/wmmGJMj1rHuDH0jAHFX1l2DlRuUpiKmNRsmYRaq mDp4BJ3h1y4QtkEtnSdFPzh6cSqw2HF0zPhxq9D5NV4EiWryEvLl01/zx00XCMAGQmjj BeUv88JaYPeoW244DATdR0R+spQ31ZkqdwNM79nS6XlArCVU2zh94Y1SdQ+/kKz9JCbv h/8w== X-Gm-Message-State: AOUpUlFZcjPR6tZOjX3QYrN4zqHlof1D+z0xIwcB/i7bXTldp9PlAjbV lB/wRLY4Ru1lLtWnQKQrjTKEvqyl1HyU+mp9KcproQ== X-Received: by 2002:a24:148c:: with SMTP id 134-v6mr14812781itg.50.1533558121013; Mon, 06 Aug 2018 05:22:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:ac05:0:0:0:0:0 with HTTP; Mon, 6 Aug 2018 05:22:00 -0700 (PDT) In-Reply-To: References: <11f9185a-7f71-83df-3a57-0a0ae9c1f934@arm.com> From: Ard Biesheuvel Date: Mon, 6 Aug 2018 14:22:00 +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:19, Ard Biesheuvel wrote: > 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. >> Are you setting the pstate to auto? That helps a lot in my experience. I.e., echo auto > /sys/kernel/debug/dri/0/pstate