Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp717820imm; Wed, 8 Aug 2018 04:41:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw0kobVJJGjx8ZXosi8avGMj3qD0supbyQLYeI7yGswlCNPnQbIa4Pykv8+JkGOWe0MKgJb X-Received: by 2002:a63:2e09:: with SMTP id u9-v6mr2236093pgu.294.1533728479691; Wed, 08 Aug 2018 04:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533728479; cv=none; d=google.com; s=arc-20160816; b=qLToeV8yk6GfA+8AEVt0hrpu++qCBLIz4cbkJmTAtrGIpoPFnfbUpw3cKIuZ0sGrl+ omPOrmXKL9G0d/WgJBG0xOLGwDq6Gmh/h8OQflFL7BSYzzwQn1LzkIPMHbHBcN9DpQdw LUtjzzrjKtvkEC7Hjsv0vKI5RjujfqS0LNhWcxaF5+MquMgKqDOPM8VcRFnj4C3veOdy V+wOaATCqs4mok1kK13L5DG7U6ALueruzn42/8vmGrJLbRH4Q/hCAjEjLWhAP1uCupiy MIeslfGM170WmNuNLM+KGK6j/ytp3hPQ0mHV5Q/f/E0+EUXPh2LU0elFipOpMhHx8aTp Xn6g== 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=Zw/K+qU+6pDb6nzO8wZkz+s8u4aPJr3IB1WltUBYxoo=; b=A7WSHIlx+xaiHyiHfRzdCLnRfolxMAiqIfhoUovrBqxGW4JcHnRsoTQF3jRC8pZu95 L6Gs0Z3rRp+stANVJSYZruO1/9u+XZsTNDdZdGYQHTvJ/4/MnnCIw2y2D8uRLvHeI6Ru 0gYS/HGkRlAL8/WCaJcYM/x7lmItcNqrI1AiWOV34xoy5eRja9vcgCd4aViEkZlkrzNm HEH/YgC2aRaPbKMwK/okbPx5axntC/wOw1xeqqfN0WPNmtw7PF9LldzxXxpEEF0r4kw2 IWTHWu8wj+LW6aplup1q4T1HI/If1CQe3yEG6sHE1cABEHvdlD8yosbMNvGu9I4cYoSE LQSg== 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 m126-v6si4827198pfb.126.2018.08.08.04.41.04; Wed, 08 Aug 2018 04:41:19 -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 S1727025AbeHHN6v (ORCPT + 99 others); Wed, 8 Aug 2018 09:58:51 -0400 Received: from foss.arm.com ([217.140.101.70]:37512 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726745AbeHHN6v (ORCPT ); Wed, 8 Aug 2018 09:58:51 -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 84CB67A9; Wed, 8 Aug 2018 04:39:33 -0700 (PDT) Received: from iMac.local (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 657C33F2EA; Wed, 8 Aug 2018 04:39:31 -0700 (PDT) Date: Wed, 8 Aug 2018 12:39:28 +0100 From: Catalin Marinas To: Mikulas Patocka Cc: Will Deacon , Jingoo Han , Joao Pinto , Thomas Petazzoni , libc-alpha@sourceware.org, Ard Biesheuvel , Russell King , Linux Kernel Mailing List , Matt Sealey , linux-pci@vger.kernel.org, linux-arm-kernel Subject: Re: framebuffer corruption due to overlapping stp instructions on arm64 Message-ID: <20180808113927.GA24736@iMac.local> References: <20180803094129.GB17798@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) 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 01:09:02PM -0400, Mikulas Patocka wrote: > while (1) { > start = (unsigned)random() % (LEN + 1); > end = (unsigned)random() % (LEN + 1); > if (start > end) > continue; > for (i = start; i < end; i++) > data[i] = val++; > memcpy(map + start, data + start, end - start); > if (memcmp(map, data, LEN)) { It may be worth trying to do a memcmp(map+start, data+start, end-start) here to see whether the hazard logic fails when the writes are unaligned but the reads are not. This problem may as well appear if you do byte writes and read longs back (and I consider this a hardware problem on this specific board). -- Catalin