Received: by 2002:a17:90a:2044:0:0:0:0 with SMTP id n62csp533340pjc; Mon, 20 May 2019 11:22:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqykP9BwfHSeiTYNNB+AtEw8naZe3jSa6DkRHgycIgkbESyEsUsi/AZUeQeELmTNUAd3GOAn X-Received: by 2002:a62:65c1:: with SMTP id z184mr62908009pfb.130.1558376569577; Mon, 20 May 2019 11:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558376569; cv=none; d=google.com; s=arc-20160816; b=PtH78cdeXXpcpdXlUODVLg7IjJeIlm0Q7O83ikIOauW1BWLXdAj9Y6eFLaVzzzX7Z3 TSCcj+jhkJWUOXhC+a6VA3svekrp2hHbaYRdVvSpF7KjgmsNyUOy3emShaLpmrBb1jZm tOEu58DTTOqTOeQL5P91imgv6gVTCgPb2JeIHHv3uY5toDEVqjQ6PqaUFQhrEsTSq3vu 3tjuzxUHNa8xEQkAm3msqy33K1AsyDsbG5sv7CPGiyygG3uz0GvoS/YKGuEh2NmAwv1Z 5z4l9KdgpfKUqkjxfAAyBlTYwxmQFzXwJxezlIQrLmWddhfgE66F/b3k9eDuiGGRRaOs iDGA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=LZ9wE683n0C5yjhKbdgsiksRQ/utvzytcQ5/oroGBgE=; b=ZupEkqaJWszvfPtTgGHIXQE7RBFu91g7KX5lJ5g6ymdzPJZwEmhx3XR1GhLpUuw6ic xU3sFq983UhCyREY4l0zUeUtWzVQC7yXPvQfsven7FePgbuxnjJP2Ibd4miQ27/KDv9S TinsDHTP9Kr1AAvG6Z3WkPUL+tRsZ7e7dpZKuDv0r6iTLx1vUFc6guwydnnVqYKzdAHv G8vy5vw7wNBwoShiLXYAQl7C4XyeXeeZxPCvpQskFhNzQbS2+cRkU6OVH+UTJiGWPYWV LEJRMX9bHJonZ9AzbykeKrox5LybJ9a047NuVLCO878DokREd/SlV9wYHxPaZ5r72zG1 JRbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GcPGlfCi; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n129si20347494pfn.106.2019.05.20.11.22.34; Mon, 20 May 2019 11:22:49 -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=@chromium.org header.s=google header.b=GcPGlfCi; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392867AbfETRhK (ORCPT + 99 others); Mon, 20 May 2019 13:37:10 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44227 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392771AbfETRhJ (ORCPT ); Mon, 20 May 2019 13:37:09 -0400 Received: by mail-lj1-f195.google.com with SMTP id e13so13232570ljl.11 for ; Mon, 20 May 2019 10:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LZ9wE683n0C5yjhKbdgsiksRQ/utvzytcQ5/oroGBgE=; b=GcPGlfCiiLFvcvLs7/DCm9x1vt1/0qPmXgvBx7BD9BV9b9oigsJ1qQB+Gbw1WZfUp0 qKzGm2GiJju8+CTNepHC4vdaBxNIuf+jNEQBgONdxeHuZMqFAZ9cnVdeK7cpgsihc7bx EqPKrLU4zdN2ITMKq/h+DoJvKHiL0LudPLqvQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LZ9wE683n0C5yjhKbdgsiksRQ/utvzytcQ5/oroGBgE=; b=EqY/NBuerlad99msst5pd83V13IhGbm/3eA22nPyH9qqPmEXBoz9bMO6DJijYcN1sp Co4X9rwoMeJpz7UIv2DxYYQN9+ohm/klY0qjUhZKhDP+BI0ft5kwM++WZxnOs+K1spJn lJVWRhs1WiUJqVGjaoHfTvi9rNySBOTN5Js3Y3+MylydW3BGzwmc7wlrh+iepY5bFZMB dDq9WNz7uER0UYT03FgPGcsOm8EKjNNghfXcG65lk+Ez06xFJClYvij250uaOeODj7wt dmDkaIJymgXi92DMXD/tU2pXUrNvTHeEbskznN7/8UT+Pqw7Tkqoo1gduZRsujAI7L2C fH7w== X-Gm-Message-State: APjAAAXvh2yUqPsPb+NkWchnMVJuo/s2zjcaUe2vtxb8qzhHssCp6seC 0D6ihq7DVLmAALfXyKAaH/1FrqE6iZM= X-Received: by 2002:a2e:b0da:: with SMTP id g26mr20510546ljl.161.1558373827805; Mon, 20 May 2019 10:37:07 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id q124sm3872240ljq.75.2019.05.20.10.37.06 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 10:37:06 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id 188so13238824ljf.9 for ; Mon, 20 May 2019 10:37:06 -0700 (PDT) X-Received: by 2002:a2e:8956:: with SMTP id b22mr32405874ljk.134.1558373826185; Mon, 20 May 2019 10:37:06 -0700 (PDT) MIME-Version: 1.0 References: <20190512012508.10608-1-elder@linaro.org> <20190512012508.10608-10-elder@linaro.org> <14a040b6-8187-3fbc-754d-2e267d587858@linaro.org> <4a34d381-d31d-ea49-d6d3-3c4f632958e3@linaro.org> <8040fa0e-8446-1ec0-cf75-ac1c17331da5@linaro.org> In-Reply-To: From: Evan Green Date: Mon, 20 May 2019 10:36:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/18] soc: qcom: ipa: GSI transactions To: Alex Elder Cc: Arnd Bergmann , David Miller , Bjorn Andersson , Ilias Apalodimas , syadagir@codeaurora.org, mjavid@codeaurora.org, Ben Chan , Eric Caruso , abhishek.esse@gmail.com, Linux Kernel Mailing List 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 Mon, May 20, 2019 at 9:50 AM Alex Elder wrote: > > On 5/20/19 11:34 AM, Evan Green wrote: > > On Mon, May 20, 2019 at 7:44 AM Alex Elder wrote: > >> > >> On 5/20/19 9:43 AM, Arnd Bergmann wrote: > >>> I have no idea how two 8-bit assignments could do that, > >>> it sounds like a serious gcc bug, unless you mean two > >>> 8-byte assignments, which would be within the range > >>> of expected behavior. If it's actually 8-bit stores, please > >>> open a bug against gcc with a minimized test case. > >> > >> Sorry, it's 8 *byte* assignments, not 8 bit. -Alex > > > > Is it important to the hardware that you're writing all 128 bits of > > No, it is not important in the ways you are describing. > > We're just geeking out over how to get optimal performance. > A single 128-bit write is nicer than two 64-bit writes, > or more smaller writes. > > The hardware won't touch the TRE until the doorbell gets > rung telling it that it is permitted to do so. The doorbell > is an I/O write, which implies a memory barrier, so the entire > TRE will be up-to-date in memory regardless of whether we > write it 128 bits or 8 bits at a time. > Ah, understood. Carry on!