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 X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5418C433DF for ; Sat, 23 May 2020 20:11:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C9C720735 for ; Sat, 23 May 2020 20:11:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="fjO1yaIo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387883AbgEWULZ (ORCPT ); Sat, 23 May 2020 16:11:25 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:36761 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387847AbgEWULY (ORCPT ); Sat, 23 May 2020 16:11:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590264683; 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=2qnRCIXxHF6BhP+2IkXpbnLjh8zaRORpqHMG3dWu3u0=; b=fjO1yaIozznBlz1ZG72ySeyOGHGNEUjAO0WzpjbYQQ23TW1zk+2bFG+BO7A8jXD7A78t1g hXb7TUS3MQnK70IaeBSL+hwCiwbgrHjqXHppHY+tSCn2xMsJnEadfF50nSBqqBYx83kAzK cJFNgDIJzuCDTJnfI/QNY0hI2AEHqzs= 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-161-6Hs4ARt5NaWnaAgew9bW4g-1; Sat, 23 May 2020 16:11:19 -0400 X-MC-Unique: 6Hs4ARt5NaWnaAgew9bW4g-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 232AA1009441; Sat, 23 May 2020 20:11:12 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C519C19C71; Sat, 23 May 2020 20:11:11 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id 04NKBBKb030518; Sat, 23 May 2020 16:11:11 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id 04NKB9fs030510; Sat, 23 May 2020 16:11:09 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Sat, 23 May 2020 16:11:09 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: "Maciej W. Rozycki" cc: Ivan Kokshaysky , "Maciej W. Rozycki" , Arnd Bergmann , Richard Henderson , Matt Turner , Greg Kroah-Hartman , alpha , linux-serial@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH v4] alpha: fix memory barriers so that they conform to the specification In-Reply-To: Message-ID: References: <20200513144128.GA16995@mail.rc.ru> <20200523151027.GA10128@mail.rc.ru> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On Sat, 23 May 2020, Maciej W. Rozycki wrote: > On Sat, 23 May 2020, Mikulas Patocka wrote: > > > > A statement expression would do though, e.g.: > > > > > > #define readb_relaxed(addr) ({ mb(); __raw_readb(addr); }) > > > > > > and might be preferable for code brevity to adding a zillion of inline > > > functions. > > > > > > Maciej > > > > I know, but that file uses inline functions everywhere else, so I wanted > > to make it consistent. > > Fair enough, fine with me. I still can't access my Alpha system, have > you verified your latest version at run time? > > Maciej Yes - it runs without any hang. Mikulas