Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3039693pxa; Tue, 18 Aug 2020 05:11:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8VP3tZ11xOwxvXOKR6zaPx2SZA0kscH+G+YiBHBJbjIHEGeMxoyNELku5W5DVqYBMf9JP X-Received: by 2002:a05:6402:17a4:: with SMTP id j4mr7126333edy.52.1597752662081; Tue, 18 Aug 2020 05:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597752662; cv=none; d=google.com; s=arc-20160816; b=ESaqYY/iGVrT4FHNxdJ9Wm4R4V/jREZENnR5Z4NY7x+D/4XQz9yNAk/HxQipcu7uzk lb9PAvMepOAvoyYxX7Clzaz0av0FYDCX65h82qM87qZN6/OPWhjpIwCeAE+K2hOguEvB 0ZcCC8cPJQ2OVaeSdW5X65j2u+cjJtlH50Jqmmnb4x879XiHjBZPUwiRR8jsupVE3z34 wmjECidQ01rz/Krz6TAg2u5+q0BZIImh0v6V0Igc2BBjvky9KGLEdyHcZ96IrGoUjPqN Ikx52yn2906Hl0zZkUZzwRqynhYMLDlNI2vGIcGFXqQYuvYfi3Scg0L6lR9ZvPWSYM+E 6QDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=Src/gtIYczW0f8slzPBTlZzj3WR1Jx1NrCwTellqOi4=; b=hQXkz/axIi+nfLpuRJWzE83XHblu8OXFmJBp7iJoc67bYnf8x19TkGzeXLyGciIp72 OB1usMBKqkk/wxTM8R2kyq3OLv0EwRWloVHZ0v2y1mju/71AfWrJK1N2iKXUcXeoduZZ Tut38vAyk2HDqXlMci3wtab86/no1DBflsmDV9d3O5SwmqARBxf2jzD+r5qmNlYMLQmx SagBpnJJSPkXat5bnJ6+H48ygrRHZ38htAYTlWGugYDctnd4k1XZWzH+RlbSEvX4h1Us gfrkFe0ucDrqtswkAMO4JR6YZ5PJrshT4hRX4bGKIDzYk2KscQykbKbCCZtupKrET2OW SJaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z8si13353000ejj.334.2020.08.18.05.10.38; Tue, 18 Aug 2020 05:11:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726727AbgHRMJ6 (ORCPT + 99 others); Tue, 18 Aug 2020 08:09:58 -0400 Received: from mga07.intel.com ([134.134.136.100]:58725 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbgHRMJ5 (ORCPT ); Tue, 18 Aug 2020 08:09:57 -0400 IronPort-SDR: qlC9t0RqywJ59IymggbLtjlaylBzqCE2Nyi8qbhtYn1WzDDcqssETyi0mwxUUIuVLLiQTrj8G7 +H90PGgSygdw== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="219200358" X-IronPort-AV: E=Sophos;i="5.76,327,1592895600"; d="scan'208";a="219200358" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 05:09:56 -0700 IronPort-SDR: Cpj3mVf/b75ctf071bSHheOjWInCzy+9GhIXcx4QgaR+vhgcWg6YaZN40ewUVOPqIxhmLFL8ta M5YZNEVycsKA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,327,1592895600"; d="scan'208";a="326712920" Received: from twinkler-lnx.jer.intel.com ([10.12.91.138]) by orsmga008.jf.intel.com with ESMTP; 18 Aug 2020 05:09:55 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler Subject: [char-misc-next 00/13] mei: add support for virtual tags Date: Tue, 18 Aug 2020 14:51:34 +0300 Message-Id: <20200818115147.2567012-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for mei virtualization for ACRN but might be used for other purposes such as sandboxing. ACRN is an open-source hypervisor maintained by The Linux Foundation. The support for ACRN was added in kernel in v5.3. The patches were part of the ACRN service OS kernel for a while. https://github.com/projectacrn/acrn-kernel Only selected platforms, notable for IoT usage, such as APL-I, have firmware that supports vtags. Alexander Usyskin (10): mei: hbm: add capabilities message mei: restrict vtag support to hbm version 2.2 mei: add vtag support bit in client properties mei: bump hbm version to 2.2 mei: add a spin lock to protect rd_completed queue mei: add a vtag map for each client mei: handle tx queue flushing for vtag connections mei: bus: use zero vtag for bus clients. mei: bus: unconditionally enable clients with vtag support mei: add connect with vtag ioctl Tomas Winkler (3): mei: add support for mei extended header. mei: docs: add vtag ioctl documentation mei: virtio: virtualization frontend driver Documentation/ABI/testing/sysfs-bus-mei | 7 + Documentation/driver-api/mei/mei.rst | 37 + drivers/misc/mei/Kconfig | 10 + drivers/misc/mei/Makefile | 3 + drivers/misc/mei/bus-fixup.c | 12 + drivers/misc/mei/bus.c | 89 ++- drivers/misc/mei/client.c | 423 ++++++++++-- drivers/misc/mei/client.h | 22 +- drivers/misc/mei/debugfs.c | 9 +- drivers/misc/mei/hbm.c | 101 ++- drivers/misc/mei/hbm.h | 2 + drivers/misc/mei/hw-virtio.c | 874 ++++++++++++++++++++++++ drivers/misc/mei/hw.h | 150 +++- drivers/misc/mei/interrupt.c | 113 ++- drivers/misc/mei/main.c | 284 +++++++- drivers/misc/mei/mei_dev.h | 34 +- include/uapi/linux/mei.h | 49 ++ 17 files changed, 2084 insertions(+), 135 deletions(-) create mode 100644 drivers/misc/mei/hw-virtio.c -- 2.25.4