Message ID | 20240826071641.2691374-2-manojvishy@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A9CAC5472D for <linux-arm-kernel@archiver.kernel.org>; Mon, 26 Aug 2024 07:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QIcgUoBTp9GuGTx+59sM7fDXSn2WoTkdtpOjFEdC9AM=; b=B5g+VD3sJF9sTgN0gxlyqrefoc fsdq28gDWSg4mWphyZ3sqzRRn8mHOq0v3qCxfcfCtkY00ZarsE+mOKIkU5I1EPpAVVMnWrjic438l go5a4qX3JzuuF9iAqBXKeP6/dRhrEuTwES0JkTSFh2gYudzl535ndyXLLCEYNpfEcpED83wbgfk5M Vaoir2GS2UInmclvdJmORjVqIUab7rU+b/Wr0ITJFGd6Gb62d/0EyAbQGVMz22ACzxJwiyhHF5r6I Ae4bUl6hARr1p1e42jFFmmbgHNSmcX2OZF6cYiiNYmr83A9EvVAtvW1OmZcM7RBXdW9PNlzph69b9 pxv2/Y3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siU4c-00000006FEg-2iuo; Mon, 26 Aug 2024 07:23:34 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTyB-00000006EFy-46BI for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 07:16:57 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-e03b3f48c65so7263342276.0 for <linux-arm-kernel@lists.infradead.org>; Mon, 26 Aug 2024 00:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1724656614; x=1725261414; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=QIcgUoBTp9GuGTx+59sM7fDXSn2WoTkdtpOjFEdC9AM=; b=YyrwRpdU1JiiHFCamBYy5Hqdm0y1X9K1y4HEEZWZGNoYjlwMY/g4nFvHy//g76i/ow r1caiGR1ShPcHLFOHB9Iap4ZyIWCqIaa2KgFPVxhVZx6F6ABgCH208m6dsyiqBTXDX2H PTTYhnysNbzdUz3mXsSnKe1maAV4PfVZDDY4P+y+jfdSX4wRY+SvHMphoVEkLmWt8Pwx O5qTTdcWBCLJsEbKTb1Nzx3CnfhIVORIDImbn/rq167bU11GxJvcFfS5gszdd+CwcikC TddfwxJ045iAUokzOpOc3jq1fVFOLf6G7i3eLUPqc4w7K6DSf11oYgEb8yzySksIinpu YOEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724656614; x=1725261414; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QIcgUoBTp9GuGTx+59sM7fDXSn2WoTkdtpOjFEdC9AM=; b=PZoHhQl2yex1qBUNmOv7G9LsVjz49zDzEVWGSsiWIhhvIewKTpAWlzMvtyZm+Kjkam Z4iXaASUhult9gbEnavZXFx2hVb8peTEaph5IevamImFB/CBRyZOStc2b3tos+JxdCNM YWx1YHHQER+lKVo4aZ70yfzWuBrq8PYizNb42dxufbcbseeEiYhlQDHkv/OYUrUTK6IN /f1m9JFVuLyuZu/wYhcxMHiCvK00fk6bGNhFk2hCCpuHhHPwDJtR/zKX9uqsG6eO8NGd TXNson7PTk3bLfbB7iYS1mtWspwM8DXVeS0r2rbhAGkGcxwGKpIBHaEreVKvUI4+3SNp 677g== X-Forwarded-Encrypted: i=1; AJvYcCUmMgauXMUpo0h0qZGVRDOYbqOqdoaL9Gifjq/Eft3e7sO0eHkeHjFzwdxkETGUjUZ9ZGECc6oIHtcuw6MS7doB@lists.infradead.org X-Gm-Message-State: AOJu0Yx+yWO5VBZS/4gI1rSwWFpo5QhRCeAi0oCZoEMEDrvG20BOkwQ4 57AiHZdB5ASSfIx/IWkcRXLvWh4NgAOTmMxeJqCTn0KVFh8gO88kbjn1+HjkWKI6xDGLU/S6n21 xd95A6U3jpMTh3Hbysw== X-Google-Smtp-Source: AGHT+IHrlol7Anpnd920uxfnTbedTgfOoLRdg3g5Rtafipisfy+CH2cN56NbbUf6MkXF303FuBbETzycPNKV+61W X-Received: from manojvishy.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:413f]) (user=manojvishy job=sendgmr) by 2002:a25:ad5d:0:b0:e16:50d2:3d36 with SMTP id 3f1490d57ef6-e17a86208demr247806276.7.1724656613663; Mon, 26 Aug 2024 00:16:53 -0700 (PDT) Date: Mon, 26 Aug 2024 07:16:38 +0000 In-Reply-To: <20240826071641.2691374-1-manojvishy@google.com> Mime-Version: 1.0 References: <20240826071641.2691374-1-manojvishy@google.com> X-Mailer: git-send-email 2.46.0.295.g3b9ea8a38a-goog Message-ID: <20240826071641.2691374-2-manojvishy@google.com> Subject: [PATCH v1 1/4] iommu: Add IOMMU_SYS_CACHE flag for system cache control From: Manoj Vishwanathan <manojvishy@google.com> To: Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Joerg Roedel <joro@8bytes.org>, Alex Williamson <alex.williamson@redhat.com>, linux-arm-kernel@lists.infradead.org Cc: kvm@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, David Dillow <dillow@google.com>, Manoj Vishwanathan <manojvishy@google.com> Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_001656_033246_99A17D80 X-CRM114-Status: GOOD ( 10.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
vfio/iommu: Flag to allow userspace to set DMA buffers system cacheable
|
expand
|
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 04cbdae0052e..ca895c83c24f 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -31,6 +31,12 @@ */ #define IOMMU_PRIV (1 << 5) +/* + * Flag to indicate whether the associated page should be cached in the + * system's cache hierarchy. + */ +#define IOMMU_SYS_CACHE (1 << 6) + struct iommu_ops; struct iommu_group; struct bus_type;
This flag indicates whether the associated page should be cached in the system's cache hierarchy. Signed-off-by: Manoj Vishwanathan <manojvishy@google.com> --- include/linux/iommu.h | 6 ++++++ 1 file changed, 6 insertions(+)