lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: Mathieu Desnoyers via lttng-dev <lttng-dev@lists.lttng.org>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: lttng-dev <lttng-dev@lists.lttng.org>, paulmck <paulmck@kernel.org>
Subject: Re: [lttng-dev] Add support for the LOONGARCH architecture
Date: Tue, 25 Jan 2022 16:36:02 -0500 (EST)	[thread overview]
Message-ID: <762143656.71334.1643146562410.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <1361211440.68286.1643025545546.JavaMail.zimbra@efficios.com>

Hi,

I notice that the loongarch enablement patch defines:

#define UATOMIC_HAS_ATOMIC_BYTE
#define UATOMIC_HAS_ATOMIC_SHORT

I tried looking into

  https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#atomic-memory-access-instructions

to figure out which atomic instructions or LL/SC would be used to target 1 and 2 byte
variables atomically, but could only find instructions for word and double-word:

2.2.7.1. AM{SWAP/ADD/AND/OR/XOR/MAX/MIN}[DB].{W/D}, AM{MAX/MIN}[_DB].{WU/DU}
2.2.7.2. LL.{W/D}, SC.{W/D}

What am I missing here ?

Thanks,

Mathieu

----- On Jan 24, 2022, at 6:59 AM, lttng-dev lttng-dev@lists.lttng.org wrote:

> Unfortunately, the qemu approach does not help much in testing that the
> liburcu implementation works correctly on a given architecture's
> specific memory model.
> 
> liburcu relies heavily on memory ordering, and liburcu-cds relies on
> both memory ordering and atomic operations and the memory ordering
> guarantees associated with them.
> 
> So if there is any way we could get our hands on real hardware, it
> would be very much relevant for liburcu testing.
> 
> Thanks,
> 
> Mathieu
> 
> ----- On Jan 24, 2022, at 3:02 AM, 张文龙 zhangwenlong@loongson.cn wrote:
> 
>> I'm glad the new architecture can be accepted,At present, our machines are in
>> short supply.I need to go through a very complicated process to provide
>> machines, Can qemu emulator work?
>> 
>> 
>> &gt; -----原始邮件-----
>> &gt; 发件人: "Mathieu Desnoyers" <mathieu.desnoyers@efficios.com>
>> &gt; 发送时间: 2022-01-20 23:59:52 (星期四)
>> &gt; 收件人: "张文龙" <zhangwenlong@loongson.cn>
>> &gt; 抄送: lttng-dev <lttng-dev@lists.lttng.org>
>> &gt; 主题: Re: [lttng-dev] Add support for the LOONGARCH architecture
>> &gt;
>> &gt; ----- On Jan 19, 2022, at 11:03 PM, lttng-dev lttng-dev@lists.lttng.org
>> wrote:
>> &gt;
>> &gt; &gt; Hello, I'm excited to contribute to userspace-rcu, I added loongarch
>> &gt; &gt; architecture for userspace-rcu( The patch file is
>> &gt; &gt; 0001-Add-support-for-the-LOONGARCH-architecture.patch )
>> &gt;
>> &gt; &gt; I have compiled and verified locally (the build log is build_log.txt
>> ),and then
>> &gt; &gt; i runed make check( the make check log is make_check_log.txt ), make
>> &gt; &gt; regtest(the make regtest log is make_regtest_log.txt ) , make
>> short_bench (the
>> &gt; &gt; make short_bench log is make_short_bench_log.txt ),make long_bench(the
>> make
>> &gt; &gt; long_bench log is make_long_bench_log.txt )
>> &gt;
>> &gt; This is great, thanks !
>> &gt;
>> &gt; By the way, is there any way EfficiOS could add two loongarch test boards
>> into
>> &gt; our test rack for automated CI testing ? See https://ci.lttng.org
>> &gt;
>> &gt; We typically deploy at least two boards for each given architecture for
>> redundancy
>> &gt; and availability for both CI and development use.
>> &gt;
>> &gt; This would help ensuring we catch liburcu regressions in the loongarch
>> architecture
>> &gt; in the future.
>> &gt;
>> &gt; Thanks,
>> &gt;
>> &gt; Mathieu
>> &gt;
>> &gt;
>> &gt; &gt; 本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部
>> &gt; &gt; 分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
>> &gt; &gt; This email and its attachments contain confidential information from
>> Loongson
>> &gt; &gt; Technology , which is intended only for the person or entity whose
>> address is
>> &gt; &gt; listed above. Any use of the information contained herein in any way
>> &gt; &gt; (including, but not limited to, total or partial disclosure,
>> reproduction or
>> &gt; &gt; dissemination) by persons other than the intended recipient(s) is
>> prohibited.
>> &gt; &gt; If you receive this email in error, please notify the sender by phone
>> or email
>> &gt; &gt; immediately and delete it.
>> &gt; &gt; _______________________________________________
>> &gt; &gt; lttng-dev mailing list
>> &gt; &gt; lttng-dev@lists.lttng.org
>> &gt; &gt; https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>> &gt; --
>> &gt; Mathieu Desnoyers
>> &gt; EfficiOS Inc.
>> &gt; http://www.efficios.com
>> </lttng-dev@lists.lttng.org></zhangwenlong@loongson.cn></mathieu.desnoyers@efficios.com>
>> 
>> 本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
>> This email and its attachments contain confidential information from Loongson
>> Technology , which is intended only for the person or entity whose address is
>> listed above. Any use of the information contained herein in any way
>> (including, but not limited to, total or partial disclosure, reproduction or
>> dissemination) by persons other than the intended recipient(s) is prohibited.
>> If you receive this email in error, please notify the sender by phone or email
>> immediately and delete it.
> 
> --
> Mathieu Desnoyers
> EfficiOS Inc.
> http://www.efficios.com
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

  reply	other threads:[~2022-01-25 21:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20  4:03 [lttng-dev] Add support for the LOONGARCH architecture 张文龙 via lttng-dev
2022-01-20 15:59 ` Mathieu Desnoyers via lttng-dev
2022-01-24  8:02   ` 张文龙 via lttng-dev
2022-01-24 11:59     ` Mathieu Desnoyers via lttng-dev
2022-01-25 21:36       ` Mathieu Desnoyers via lttng-dev [this message]
2022-03-15 20:26         ` Mathieu Desnoyers via lttng-dev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=762143656.71334.1643146562410.JavaMail.zimbra@efficios.com \
    --to=lttng-dev@lists.lttng.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=paulmck@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).