All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksii Kurochko <oleksii.kurochko@gmail.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Alistair Francis" <alistair.francis@wdc.com>,
	"Bob Eshleman" <bobbyeshleman@gmail.com>,
	"Connor Davis" <connojdavis@gmail.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Julien Grall" <julien@xen.org>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH for 4.21 v7 3/4] xen/riscv: make zbb as mandatory
Date: Wed, 26 Feb 2025 18:16:32 +0100	[thread overview]
Message-ID: <6a7e6dad-b2d3-46df-be9a-d9ec3451cd37@gmail.com> (raw)
In-Reply-To: <e9f75fd0-4e65-4f06-a671-7f497354872d@suse.com>

[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]


On 2/26/25 3:49 PM, Jan Beulich wrote:
> On 26.02.2025 15:38, Oleksii Kurochko wrote:
>> On 2/26/25 1:58 PM, Jan Beulich wrote:
>>> On 20.02.2025 18:44, Oleksii Kurochko wrote:
>>>> According to riscv/booting.txt, it is expected that Zbb should be supported.
>>>>
>>>> Signed-off-by: Oleksii Kurochko<oleksii.kurochko@gmail.com>
>>>> ---
>>>> Changes in v7:
>>>>    - new patch.
>>>> ---
>>>>    xen/arch/riscv/arch.mk | 7 ++-----
>>>>    1 file changed, 2 insertions(+), 5 deletions(-)
>>> Please can you also tidy asm/cmpxchg.h of ANDN_INSN() then?
>> Sure, I can leave only:
>> /*
>>    * To not face an issue that gas doesn't understand ANDN instruction
>>    * it is encoded using .insn directive.
>>    */
>> #define ANDN_INSN(rd, rs1, rs2)                 \
>>       ".insn r OP, 0x7, 0x20, " rd ", " rs1 ", " rs2 "\n"
> Wait, no - why would you? Patch 0.5 is supposed to be setting a baseline
> where Zbb is known by the tool chain. With that proper "andn" can be used
> wherever we like.

I thought that Zbb in binutils (part of whic is gas) was added later then
I mentioned in Patch 0.5 but Zbb was added starting from 2.37, so we can
just really use `andn` instruction instead of `.insn` .

Thanks for clarification.

~ Oleksii

[-- Attachment #2: Type: text/html, Size: 2088 bytes --]

  reply	other threads:[~2025-02-26 17:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-20 17:44 [PATCH for 4.21 v7 0/4] RISC-V runtime detection of extenstions Oleksii Kurochko
2025-02-20 17:44 ` [PATCH for 4.21 v7 1/4] automation: drop debian:11-riscv64 container Oleksii Kurochko
2025-02-21  8:35   ` Jan Beulich
2025-02-21 11:57     ` Oleksii Kurochko
2025-02-21 12:30       ` Jan Beulich
2025-02-21 17:04         ` Oleksii Kurochko
2025-02-21 12:31       ` Jan Beulich
2025-02-20 17:44 ` [PATCH for 4.21 v7 2/4] xen/riscv: drop CONFIG_RISCV_ISA_RV64G Oleksii Kurochko
2025-02-26 12:55   ` Jan Beulich
2025-02-20 17:44 ` [PATCH for 4.21 v7 3/4] xen/riscv: make zbb as mandatory Oleksii Kurochko
2025-02-26 12:58   ` Jan Beulich
2025-02-26 14:38     ` Oleksii Kurochko
2025-02-26 14:49       ` Jan Beulich
2025-02-26 17:16         ` Oleksii Kurochko [this message]
2025-02-20 17:44 ` [PATCH for 4.21 v7 4/4] xen/riscv: identify specific ISA supported by cpu Oleksii Kurochko
2025-02-21 17:02 ` [PATCH for 4.21 v7 0.5/4] xen/README: add compiler and binutils versions for RISCV-64 Oleksii Kurochko
2025-02-24 10:57   ` Jan Beulich
2025-02-24 15:52     ` Oleksii Kurochko

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=6a7e6dad-b2d3-46df-be9a-d9ec3451cd37@gmail.com \
    --to=oleksii.kurochko@gmail.com \
    --cc=alistair.francis@wdc.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=bobbyeshleman@gmail.com \
    --cc=connojdavis@gmail.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.