Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2073328imu; Fri, 23 Nov 2018 04:19:57 -0800 (PST) X-Google-Smtp-Source: AJdET5cq7RhJHGN1ar+fMKsKDFRgI0yWWtYcSfso5oq+D6sol331q0B9LEdb4ubFlSoqogNiPV+y X-Received: by 2002:a63:2f07:: with SMTP id v7mr13045839pgv.368.1542975597471; Fri, 23 Nov 2018 04:19:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542975597; cv=none; d=google.com; s=arc-20160816; b=Ip7/zIwQFUwenNZQKWGxl3znuMgKojBdmsaWicwPpYOOnIyg+tssBgaaqqqO+KJmQv aYPGzVtkSqBgjEISzOWXU0J/04h+8vrHXrr+TcAggcYZi9Uhne9SZcO+29CKkmzTCnYI Xbprl2h5ygr2z10lmwhZM6S3TMp6MiIH4BzimTtQyu5UqgDFUXEgbS8MO1/DFTLsOuES 0poj04FG28vtq9rhIzghiNrHu7rsLgT6czp+Q357PfSn2KLCKCy1Mobh21xnRw7qQXVM SVE0h6862CE/LbtFAzQ3tSvZpioyZ6HQgaF5ts/1aOJi8dff38A1P0FxyD2I3wobrHQf gHzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=79XsYIzmUffqE6x5b+Hz4kT5Ju35X98nMTe8IZKUkz4=; b=c42b62uL1YBiPg3ZZUho5ckp1Bdi9Mw3/F5NkcAGjFv64wJ8mH1CP8VxEeAoOPKaY+ oLGYu0Cip1l0ghRj6bExzpkxeFFFWKHKdS7NWUzvwoSAJHfUI8FlKLWy2zycWh12OJVK LWAF/bDjgpcAS4ctzjmKjDbqIdchvtwFekHXpp+Iv/IKLoi/xz3RMXKpSe2UcC9Vo7NM jKPhq5JDKLV9G/OTIpV2WFDtS/To9LDQ1SvBPi6KT798fZYGsjWt4UzWAevB/RVHjCRP kIg6gWxR20uQAIaLxQli3pmqEUQjGz9iYkPKJP/afMcVStl7uY1Gx+OCsuHclNdK0x3W J6cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z15si14143231pgi.304.2018.11.23.04.19.21; Fri, 23 Nov 2018 04:19:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2394524AbeKVVus (ORCPT + 99 others); Thu, 22 Nov 2018 16:50:48 -0500 Received: from mga03.intel.com ([134.134.136.65]:39305 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387933AbeKVVus (ORCPT ); Thu, 22 Nov 2018 16:50:48 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2018 03:11:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,265,1539673200"; d="scan'208";a="91290765" Received: from twinkler-lnx.jer.intel.com ([10.12.91.48]) by orsmga007.jf.intel.com with ESMTP; 22 Nov 2018 03:11:51 -0800 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler Subject: [char-misc-next v2 0/7] mei: Add DMA ring Date: Thu, 22 Nov 2018 13:11:35 +0200 Message-Id: <20181122111142.18653-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a resend of the second part for the mei dma ring, that was left out. This series adds an alternative method for transferring data between the mei driver and the device via a DMA ring. The DMA ring allows transferring data in bigger chunks, up to 128K, than the HW ring 512B. The actual sizes depend on particular MEI generations. The HW ring is faster for packets that fits into the HW ring while a packet that would require fragmentation is faster to send via the DMA ring. V2: 1. Use single license for the new dma-ring.c file. 2. Adjust kdoc to new requirements: https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html Alexander Usyskin (2): mei: bump hbm version to 2.1 mei: me: mark CNP devices as having dma support Tomas Winkler (5): mei: dma ring buffers allocation mei: hbm: setup dma ring mei: hw: add dma ring control block mei: dma ring: implement rx circular buffer logic mei: dma ring: implement transmit flow drivers/misc/mei/Makefile | 1 + drivers/misc/mei/client.c | 66 +++++++-- drivers/misc/mei/dma-ring.c | 269 +++++++++++++++++++++++++++++++++++ drivers/misc/mei/hbm.c | 88 +++++++++++- drivers/misc/mei/hbm.h | 2 + drivers/misc/mei/hw-me.c | 6 + drivers/misc/mei/hw.h | 29 +++- drivers/misc/mei/init.c | 2 +- drivers/misc/mei/interrupt.c | 41 ++++-- drivers/misc/mei/mei_dev.h | 26 +++- drivers/misc/mei/pci-me.c | 4 +- 11 files changed, 500 insertions(+), 34 deletions(-) create mode 100644 drivers/misc/mei/dma-ring.c -- 2.17.2