Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4908860imm; Tue, 7 Aug 2018 09:17:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeQf7weYwolM6OGz7SVTDhhjjESNNOeBIDnKgw7X+G7tM8xXXUHeXk/NTRGIXQoCRYiSaXH X-Received: by 2002:a63:c80e:: with SMTP id z14-v6mr18947462pgg.77.1533658635825; Tue, 07 Aug 2018 09:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533658635; cv=none; d=google.com; s=arc-20160816; b=QEi/H5Iu3vueMXY/Vskq609R/+njpvMhPJkxPDSvz2AP/HEEhvdMdlmFhgnAR6EOIW hTxCH0c4BprOlMo1audptYJoMfIgHsjSQWopCa1JQ80+FxknWM3POKzGzGPK3Z5ugs5M 1an/wEGcWmI7en4IB6YqfMd7uSshOyAykqPPAlGh4PK/HLr4+s1AjBW95TIqqOc2oHW9 GYfPN/YoiAh6A4cFSjyOwUSPGt2ptKCWg9dMwDeTHvM40QJ5DWwyZP8uDLNfOeXmRUcu /OJ4L6FYuyrizcZq8NA1zGBuSSAs3zrfGsvB9MvAG3BHE5MTQMJOrau5D5VAjaUS66yc j70A== 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=UX8XBZRvhUz86zxdM656EB6rA/52yupBdC9TsQt3l8M=; b=KG2U1O4m+adRdwSoUw/rUzUsnI6pJD0mv2nH3N4Y0tP0iRi5oV3fuPPK27Pno7H3yU m63SN5lYVVVZ2NIm85nlwkoRpQUfabC5bJB10/PwNq25ngXqW9QQDJyursVBMIy5C0Ex Y2NhBwryXLtvWc0gXhl6x5RXjpOEoyVlbvmvLcj3knSOm7G7GAyIRs505o9FezvN4s9k umll35s5ajYNGp0IDlYJ6auKNU8hZ3dVheFA0Xc9UWScczUiosmlVSnyOvUznojVyw+J svLLhC55S76GseE24WCPyOY/IE6Ghvz8IS92Uqmk24eXPtFcPaWBtL7u9uFngEK6rFIa k/5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EsMXxXPQ; 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 b16-v6si1375990pgw.478.2018.08.07.09.17.00; Tue, 07 Aug 2018 09:17:15 -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=EsMXxXPQ; 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 S2403767AbeHGQzS (ORCPT + 99 others); Tue, 7 Aug 2018 12:55:18 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:39362 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389073AbeHGQzS (ORCPT ); Tue, 7 Aug 2018 12:55:18 -0400 Received: by mail-it0-f67.google.com with SMTP id g141-v6so23256684ita.4 for ; Tue, 07 Aug 2018 07:40:40 -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=UX8XBZRvhUz86zxdM656EB6rA/52yupBdC9TsQt3l8M=; b=EsMXxXPQt8LhRjSnWsa4mEaZgnUCUnGP5Ryir1PGG8LCLAw9zkEPVXVQhVeSNmO8qV UVcsn/7JtymH55tIV8prMDwEF96r1FK5rwS47jwGwt479hmXQcLvRhe+POQyZ32qaeG7 zzuvMTNMXcNXaprQzfCAbr4t7/2q7Y/uqlA/0= 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=UX8XBZRvhUz86zxdM656EB6rA/52yupBdC9TsQt3l8M=; b=rhkNOG7kGi2mwsWgAaoTNFksMlthAHDjB1rHo8zz5P54t7Kcxzwqair5VfrZkvD5ja XebI0XqtJ+CZ9Xll2XAllWHynI/ejqL2qk4YWK1+h8cB7zik6SI9WuBO34Is/b/xYCJU Pa5bO+vD6xipxFszECaV7gUFYzWJCCcyHpZKhhHi3ZXfB2vbUNepTJt77sSiTvIl/weJ 6Q7pdEDESfFVNlkGdC6U6id7qOxzUotHC+lR3bRfekjCYGHYUhbi8lHlExcIhhCyHRV6 qgES6C0reRx62EQgmWA2V+tKSj/K8Np8hLEBMCjrJ8n1OZZpjl7r7hX6BYhrPcQdz6rm q75Q== X-Gm-Message-State: AOUpUlF/EkapWG6sPODAWCs5yXdceu0KGja1809Px/FhwQQu7W0Hu+16 lnRmV9DDmqwfpCjRvdHBUybFBbPItEj0Lc6FTj8d7A== X-Received: by 2002:a24:148c:: with SMTP id 134-v6mr2150990itg.50.1533652840170; Tue, 07 Aug 2018 07:40:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:ac05:0:0:0:0:0 with HTTP; Tue, 7 Aug 2018 07:40:39 -0700 (PDT) In-Reply-To: References: From: Ard Biesheuvel Date: Tue, 7 Aug 2018 16:40:39 +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 7 August 2018 at 16:14, Mikulas Patocka wrote: > > > On Mon, 6 Aug 2018, Ard Biesheuvel wrote: > >> 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 > > DC ZVA can be disabled with the SCTRL_EL1.DZE bit, so that neither kernel > nor userspace will use it. Of course, but only the OS can do that, and only system wide unless we're eager to create infrastructure for managing this per process. But it is also beside the point: I mentioned it to illustrate that even use cases like libvdpau that don't operate on the 'framebuffer' abstraction make assumptions about VRAM having true memory semantics. > If the mapping didn't support unaligned writes, > it would be worse. > > Mikulas