Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2274824pxp; Mon, 21 Mar 2022 15:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfBnjEuetOymU4oguReqV4jepzNcvNlg68y9ogvBZsVbAgt63DLY/acXTXlHNTRMTxAYIH X-Received: by 2002:a17:903:244b:b0:154:4104:4668 with SMTP id l11-20020a170903244b00b0015441044668mr11083595pls.30.1647902178734; Mon, 21 Mar 2022 15:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647902178; cv=none; d=google.com; s=arc-20160816; b=mwnlnnasWpVtDyo+BBdCWxKYydIrkzLhFetfifSoiFXtiSwQOAJmWp62zaoAj8WUPj fQx8Ly+W4O4C2VK6C60SfO4Vuq1xwhZrpQ5dodDXpEws25zKIJEg9sI19vRQNP9Su34+ tq2OPK7RbPMZxCECd/ZV0Inj7lUq3reFrzRAx4aMAmiLH4OhyEsv4H5hJrLh28jhBnFP 0xEruJOWMfXYNSK1oQGrO7l1iHmQH9scT4M9zwhk5bSCSjtsEC418Cb2psSX7JQXrJxP hjnNKRv/b4//o99l61+SCWimjCZKX8MICqh4r2WQFkFN/d0JW4Tkd7GesTjnjvcdsOaN OAOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=obaOjAdryqP2qc69EQLjpYCegESyjAgiVw6k4cPxyZo=; b=fpwIOek3b+e/EPbSLqcgh3USmjwiKFGemq+u0IyjTvafwgfOGXX57FzLvNF4BeXzwp 04owae6NlLs/BYiU8d6wblXzHXj4b0bRFGsUcdV7mz3rmPlrp3Lm9lsIXGxEbfEftyl0 5IuAqhSzKoBcpaMURJ4nteb/4YvA9c3+ZMYq1ZcUsUl3N8/xMeVCM0047CpXJzi0GsJW 4/5flKtjQ6XIA5Iyd0f5F/UIbnxTeVTERmDysLaPCU0HDlVD1E4N//LR2ZWmdh8vjzGW Ki+lz4vJHgnoSDHrY62qaNddE5RXUaFPNjb4XyAbhg4WIr0odzkg81w13raV0rzPVSnt EsZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=TklZW5x4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s3-20020aa78283000000b004fa3a8dffd6si8112537pfm.141.2022.03.21.15.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:36:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=TklZW5x4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 264FC3B974B; Mon, 21 Mar 2022 14:49:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345590AbiCUJDm (ORCPT + 99 others); Mon, 21 Mar 2022 05:03:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345528AbiCUJDk (ORCPT ); Mon, 21 Mar 2022 05:03:40 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C3598FE7B for ; Mon, 21 Mar 2022 02:02:11 -0700 (PDT) Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220321090206epoutp01a1df40e2aabb95e769f5a3f128f43c7f~eWd6wP33i2991429914epoutp01_ for ; Mon, 21 Mar 2022 09:02:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220321090206epoutp01a1df40e2aabb95e769f5a3f128f43c7f~eWd6wP33i2991429914epoutp01_ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1647853326; bh=obaOjAdryqP2qc69EQLjpYCegESyjAgiVw6k4cPxyZo=; h=From:To:Cc:Subject:Date:References:From; b=TklZW5x4B/BgVjI9IX3bpjOYVb9QD8su0GiUUGXeRCycEHeT7U/lQw/eO48zEycSb PS6+js5QEx3HWUTruuyjIptelRFqVxkTvneSSnr/C2DQp58HCmcqeHM9iv2ipWcb9J CVBt5EK6YrjJK4ovhbwYLE/DfzfNjLMCzIL0glE8= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220321090206epcas2p31eaf3d1b8e8c000912fd07a0ab4b9796~eWd6VOA1R3112631126epcas2p3R; Mon, 21 Mar 2022 09:02:06 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.102]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4KMTC00ssCz4x9QC; Mon, 21 Mar 2022 09:02:04 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id F2.81.16040.A0F38326; Mon, 21 Mar 2022 18:02:02 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20220321090202epcas2p1bfa78db059c1f6f6acbbb015e4bf991c~eWd2xhO1m0731007310epcas2p1J; Mon, 21 Mar 2022 09:02:02 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220321090202epsmtrp1b814ddbe0867f61120e1f78fe0ded0d7~eWd2wwwzq2591125911epsmtrp1W; Mon, 21 Mar 2022 09:02:02 +0000 (GMT) X-AuditID: b6c32a46-bffff70000023ea8-66-62383f0a0288 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id FF.E7.03370.A0F38326; Mon, 21 Mar 2022 18:02:02 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220321090202epsmtip2e1e01a66a4ff88e0e31169705049d6c7~eWd2n55oj1773717737epsmtip2B; Mon, 21 Mar 2022 09:02:02 +0000 (GMT) From: Daehwan Jung To: Mathias Nyman , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org (open list:USB XHCI DRIVER), linux-kernel@vger.kernel.org (open list), Howard Yen , Jack Pham , Puma Hsu , "J . Avila" , Daehwan Jung , sc.suh@samsung.com Subject: [PATCH v3 0/4] support USB offload feature Date: Mon, 21 Mar 2022 17:59:50 +0900 Message-Id: <1647853194-62147-1-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPKsWRmVeSWpSXmKPExsWy7bCmuS6XvUWSwbV16hZ3FkxjsnhyZBG7 RfPi9WwW1/+8Z7Rof36BzeLyrjlsFouWtTJbNG+awmoxc62yRdfdG4wOXB6X+3qZPBZsKvVY vOclk8f+uWvYPfq2rGL0+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTMwFDX0NLC XEkhLzE31VbJxSdA1y0zB+gwJYWyxJxSoFBAYnGxkr6dTVF+aUm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xejaL63/eM1q0P7/AZnF51xw2i0XLWpktmjdNYbWYuVbZouvuDUYHLo/Lfb1MHgs2lXos 3vOSyWP/3DXsHn1bVjF6fN4kF8AWxWWTkpqTWZZapG+XwJXx7vV11oI/fBUPTog0MP7g7mLk 4JAQMJG4spiri5GLQ0hgB6PE3V+rmLsYOYHikhJL595gh7CFJe63HGGFKPrGKHFi8yMmkGY2 AS2J7wsZQWpEBOIkVlzewwJSwyywkUli0oNLLCAJYQFjiVP3/oMNYhFQlZgyYx0biM0r4Crx /uQWJogFchI3z3UyT2DkWcDIsIpRMrWgODc9t9iwwCgvtVyvODG3uDQvXS85P3cTIzjMtLR2 MO5Z9UHvECMTB+MhRgkOZiUR3sUfzJOEeFMSK6tSi/Lji0pzUosPMUpzsCiJ817oOhkvJJCe WJKanZpakFoEk2Xi4JRqYBJ6KChzrzG3tkVc87buA4/iXNMLqtfVldtyzF7nPqlbcVup5Dn/ dfkHqsx52twRpY8MTE62+x45Ybpo9ZUK3r2h0RNWm4pPmPfjSbKly9QW/8n/ZwYvYYu/P1u7 JaN57vUd+ms/xseu9MibPSv3h7bAWY7dk7mLN4gc+iT1Ie+gcP1pB2lv96DDaa2G65a8+Dvn ef/OHwscDi4OOxnR+X9j1Dz/H5dC21feuWwRt99M6nKchb0Xc/XBqICwvZuex09nXX9FSlGi /l5f9K6350ovpXM7n5Wb+D7M5bH09fYNqbbnP2U8X7Wyb19hMeuTI10eyybJLdg34WrCJMvY bbvmRhx9cTDVIXLz919ZizOUWIozEg21mIuKEwG+n9RaogIAAA== X-CMS-MailID: 20220321090202epcas2p1bfa78db059c1f6f6acbbb015e4bf991c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220321090202epcas2p1bfa78db059c1f6f6acbbb015e4bf991c References: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset is for USB offload feature, which makes Co-processor to use some memories of xhci. Especially it's useful for USB Audio scenario. Audio stream would get shortcut because Co-processor directly write/read data in xhci memories. It could get speed-up using faster memory like SRAM. That's why this gives vendors flexibilty of memory management. Several pathches have been merged in AOSP kernel(android12-5.10) and I put together and split into 3 patches. Plus let me add user(xhci-exynos) module to see how user could use it. To sum up, it's for providing xhci memories to Co-Processor. It would cover DCBAA, Device Context, Transfer Ring, Event Ring, ERST. It needs xhci hooks and to export some xhci symbols. Changes in v2 : - Fix commit message by adding Signed-off-by in each patch. - Fix conflict on latest. Changes in v3 : - Remove export symbols and xhci hooks which xhci-exynos don't need. - Modify commit message to clarify why it needs to export symbols. - Check compiling of xhci-exynos. Daehwan Jung (4): usb: host: export symbols for xhci hooks usage usb: host: add xhci hooks for USB offload usb: host: add some to xhci overrides for USB offload usb: host: add xhci-exynos driver drivers/usb/host/Kconfig | 9 + drivers/usb/host/Makefile | 1 + drivers/usb/host/xhci-exynos.c | 982 +++++++++++++++++++++++++++++++++ drivers/usb/host/xhci-exynos.h | 63 +++ drivers/usb/host/xhci-hub.c | 7 + drivers/usb/host/xhci-mem.c | 150 ++++- drivers/usb/host/xhci-plat.c | 43 +- drivers/usb/host/xhci-plat.h | 7 + drivers/usb/host/xhci-ring.c | 1 + drivers/usb/host/xhci.c | 90 ++- drivers/usb/host/xhci.h | 50 ++ 11 files changed, 1379 insertions(+), 24 deletions(-) create mode 100644 drivers/usb/host/xhci-exynos.c create mode 100644 drivers/usb/host/xhci-exynos.h -- 2.31.1