Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1666585

Re: [PATCH v6 25/34] swiotlb: Add warnings for use of bounce buffers with SME

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject Re: [PATCH v6 25/34] swiotlb: Add warnings for use of bounce buffers with SME
Date 2017-06-15 11:10 +0200
Message-ID <tSyWR-yc-1@gated-at.bofh.it> (permalink)
References <tPRjk-44i-19@gated-at.bofh.it> <tPYEa-d6-13@gated-at.bofh.it> <tSjO9-7DO-7@gated-at.bofh.it> <tSyWR-yc-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jun 14, 2017 at 02:49:02PM -0500, Tom Lendacky wrote:
> I guess I don't need the sme_active() check since the second part of the
> if statement can only ever be true if SME is active (since mask is
> unsigned).

... and you can define sme_me_mask as an u64 directly (it is that already,
practically, as we don't do SME on 32-bit) and then get rid of the cast.

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v6 25/34] swiotlb: Add warnings for use of bounce buffers  with SME Borislav Petkov <bp@alien8.de> - 2017-06-14 19:00 +0200
  Re: [PATCH v6 25/34] swiotlb: Add warnings for use of bounce buffers  with SME Borislav Petkov <bp@alien8.de> - 2017-06-15 11:10 +0200

csiph-web