From patchwork Thu Jun 10 06:21:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Even Xu X-Patchwork-Id: 458765 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DADEDC47094 for ; Thu, 10 Jun 2021 06:22:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B903F613C6 for ; Thu, 10 Jun 2021 06:22:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230027AbhFJGYC (ORCPT ); Thu, 10 Jun 2021 02:24:02 -0400 Received: from mga17.intel.com ([192.55.52.151]:10599 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbhFJGYB (ORCPT ); Thu, 10 Jun 2021 02:24:01 -0400 IronPort-SDR: clUlXSqTvISsEbkgamURpucUVAsCWIaFLqg4pCVCHZ3NMwr8ZR73ATeCIYkk8FWPtsMa4THiCY C7fWLBLYlSVA== X-IronPort-AV: E=McAfee;i="6200,9189,10010"; a="185610244" X-IronPort-AV: E=Sophos;i="5.83,262,1616482800"; d="scan'208";a="185610244" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2021 23:21:59 -0700 IronPort-SDR: Yem9iuGyxETW9hKudxfZND+nZwC1JEejgbywJSsMPQqnGs5vGgC9rIEBxinD4oRrywIwO4FNfh l3AtBvm/M7bQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,262,1616482800"; d="scan'208";a="482702815" Received: from shsensorbuild2.sh.intel.com ([10.239.132.180]) by orsmga001.jf.intel.com with ESMTP; 09 Jun 2021 23:21:57 -0700 From: Even Xu To: srinivas.pandruvada@linux.intel.com, jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-input@vger.kernel.org, Even Xu Subject: [PATCH 0/3] enable ISH DMA on EHL platform Date: Thu, 10 Jun 2021 14:21:51 +0800 Message-Id: <1623306114-19208-1-git-send-email-even.xu@intel.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org These patch set are used for enabling ISH DMA on EHL platform. During ISH DMA enabling, some platforms (such as EHL) don't support cache snooping, bus driver (ishtp) has to involve a new callback, dma_no_cache_snooping(), in hardware layer (ipc) to get hardware DMA capability. When do cache flush, clflush_cache_range() API is used on X86 which isn't supported by all other archs (such as ARM). Considering ISH only exists on Intel platforms, adding ISH depending on X86 in Kconfig to avoid build warnings or errors on other archs. Even Xu (3): hid: intel-ish-hid: Set ISH driver depends on x86 hid: intel-ish-hid: ishtp: Add dma_no_cache_snooping() callback hid: intel-ish-hid: ipc: Specify that EHL no cache snooping drivers/hid/intel-ish-hid/Kconfig | 1 + drivers/hid/intel-ish-hid/ipc/ipc.c | 26 +++++++++++++++++++++++++- drivers/hid/intel-ish-hid/ishtp/client.c | 18 ++++++++++++++++++ drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | 1 + 4 files changed, 45 insertions(+), 1 deletion(-)