From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55F1BC433F5 for ; Fri, 1 Oct 2021 16:26:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3BD3061278 for ; Fri, 1 Oct 2021 16:26:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355059AbhJAQ2T (ORCPT ); Fri, 1 Oct 2021 12:28:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:38964 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354755AbhJAQ2I (ORCPT ); Fri, 1 Oct 2021 12:28:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633105583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UwEKyPsnSKFhsqq8id3pFmmYALFQTXASAYKjNUFFU1A=; b=FS7/6pNDxrMC2CAaN+mNTMtBpgzwgF/zsS4FlUl1ozAGWe3iACwZ1haV7OvYV7ff2ASEpx YZ5o898kRgDFMcrU71Ui22cHANpisPvYGi+ffm5UW0w1RE+1S70eIHJYfeN6CNyfEMG/Tc oM/JwteXEFlddFdLqQ77IDxEHwkr9SQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-323-scy-XxOJOru9zldaLqk83A-1; Fri, 01 Oct 2021 12:26:20 -0400 X-MC-Unique: scy-XxOJOru9zldaLqk83A-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0E6AA1926DA0; Fri, 1 Oct 2021 16:26:18 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.176]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 847575DA61; Fri, 1 Oct 2021 16:26:13 +0000 (UTC) From: Florian Weimer To: Mathieu Desnoyers Cc: Segher Boessenkool , Will Deacon , paulmck , Peter Zijlstra , linux-kernel , Linus Torvalds , Alan Stern , Andrea Parri , Boqun Feng , Nicholas Piggin , David Howells , j alglave , luc maranget , akiyks , linux-toolchains , linux-arch Subject: Re: [RFC PATCH] LKMM: Add ctrl_dep() macro for control dependency References: <20210928211507.20335-1-mathieu.desnoyers@efficios.com> <87lf3f7eh6.fsf@oldenburg.str.redhat.com> <20210929174146.GF22689@gate.crashing.org> <2088260319.47978.1633104808220.JavaMail.zimbra@efficios.com> Date: Fri, 01 Oct 2021 18:26:11 +0200 In-Reply-To: <2088260319.47978.1633104808220.JavaMail.zimbra@efficios.com> (Mathieu Desnoyers's message of "Fri, 1 Oct 2021 12:13:28 -0400 (EDT)") Message-ID: <871r54ww2k.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org * Mathieu Desnoyers: > One cheap way to achieve said R->W dependency (as well as R->RW on > architectures which to not reorder R->R) is to ensure that the > generated assembly contains a conditional branch. Will any conditional branch do, or is it necessary that it depends in some way on the data read? Thanks, Florian