From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 7629DD8080A for ; Thu, 20 Jul 2023 12:46:00 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RkXGX5PsTgDOzweE8dUS0x0UQaU9J0QjUQMzOBT8m9s=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-Received:X-Received:X-Received:X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version:References:In-Reply-To:From:Date:X-Gmail-Original-Message-ID:Message-ID:Subject:To:Cc:Precedence:List-Unsubscribe:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:Content-Type; s=20140610; t=1689857159; v=1; b=jOmJlQ4zkyVohJjaOlb2ikFemFGoqe9Y1aU+jjILc0CpyYpLcRg2fiV9+qWH+65jSun+a2Vf Hzwrcd1ch18PndgkNdkf3htHBIUb78tFgs8CxQqYNCSWb0I+OxWBjJuyp5BeB8FVgu0b9r9afvp umQmNi8Tf44Wu/ZSsuGE9wRM= X-Received: by 127.0.0.2 with SMTP id LsMiYY7687511xO21kt9AyHg; Thu, 20 Jul 2023 05:45:59 -0700 X-Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web11.11971.1689857158443850729 for ; Thu, 20 Jul 2023 05:45:58 -0700 X-Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E283F61A7F for ; Thu, 20 Jul 2023 12:45:57 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 410E8C433C8 for ; Thu, 20 Jul 2023 12:45:57 +0000 (UTC) X-Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-4f95bf5c493so1180188e87.3 for ; Thu, 20 Jul 2023 05:45:57 -0700 (PDT) X-Gm-Message-State: DBezcgxiaKpXGlDrdV499R4ex7686176AA= X-Google-Smtp-Source: APBJJlH8hYartQdkPW2gVZZtet3PwPH3Fu5PjwAXZeAnwl32jSk2FFt7ci5xEcklCMQUb0MFOB19HPFpb8/fBxX6O4M= X-Received: by 2002:a2e:b60a:0:b0:2b9:563b:7e3a with SMTP id r10-20020a2eb60a000000b002b9563b7e3amr2185155ljn.32.1689857155215; Thu, 20 Jul 2023 05:45:55 -0700 (PDT) MIME-Version: 1.0 References: <20230719113317.276124-1-kraxel@redhat.com> <010201896ee54d34-2b5c712c-d799-49b0-a2eb-f0838988b313-000000@eu-west-1.amazonses.com> <57y2vtkzqkqjfoft2vn7gem527frwh3i4ymk7piaztyxlfz4fz@eqeuogfkl5vf> In-Reply-To: <57y2vtkzqkqjfoft2vn7gem527frwh3i4ymk7piaztyxlfz4fz@eqeuogfkl5vf> From: "Ard Biesheuvel" Date: Thu, 20 Jul 2023 14:45:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg/IoMmuDxe: add locking to IoMmuAllocateBounceBuffer To: Gerd Hoffmann Cc: Michael Brown , devel@edk2.groups.io, Jiewen Yao , Jordan Justen Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org Content-Type: text/plain; charset="UTF-8" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=jOmJlQ4z; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=kernel.org (policy=none) On Thu, 20 Jul 2023 at 10:28, Gerd Hoffmann wrote: > > > > > mReservedMemBitmap &= (UINT32)(~MapInfo->ReservedMemBitmap); > > > > > > I'd expect modern compilers optimize that to a single instruction, > > > > You mean something along the lines of > > > > andl %reg, mReservedMemBitmap(%rip) > > > > right? > > Yes. > > > > but > > > yes, it's not guaranteed to happen, the compiler can choose to generate > > > a series of load + and + store instructions instead. > > > > That is sadly all we have on ARM, unless you use LSE atomics, which > > are optional in the architecture so we never use those in EDK2. > > ARM means v7 only or both v7+v8? > All of it. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107099): https://edk2.groups.io/g/devel/message/107099 Mute This Topic: https://groups.io/mt/100233359/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-