Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp727105rdg; Wed, 11 Oct 2023 04:02:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxvxxWQ6Vzu47XTKfCyzNIVu/H5yp1h1p/mQguDbEERp690R+ko0dYXVy5JgvutTb+nTOY X-Received: by 2002:a05:6a20:9384:b0:15d:facd:f20c with SMTP id x4-20020a056a20938400b0015dfacdf20cmr23428027pzh.41.1697022156373; Wed, 11 Oct 2023 04:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697022156; cv=none; d=google.com; s=arc-20160816; b=uroOvQ32aldrTZZkZZeIFFEzms7jrdDU2Pycf1zFcMrlHj3b7xHm6sbtDC5kgzU9LK /L8woeHZsxpqmU7QtsXANWRKFKzgApSFm4ctxey2JD4pRzrY+6ob1Kya1XYhDpTyCoxG MMdq6VBKrVA7m+cI/iCejTCSMhXlVmzzuSYSazWcORAye5vyYpkK8hS1sG9dGGYQ6qcY ExEvlqM1EUdZT4VkOUnsnw87ssG+W4j+/kS0K8aoIC0L1UJR4yN5H2WCwCae/Q/pso1Z 3Zc21CM3ObLvVkzMu2QMljlXqxkAWdobaHUkC3o9uYfsoKS2M1tAbYJlEPoLauUtLwpC KXnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DGIdWMor5SdSZB+bvIVW3bR0rmIqEiiSuM58Ivo3cb0=; fh=np4jDbLVnoqkv3+sUYlitby5vs5P86AOvvZOqGHaBE8=; b=oZGGtM02/guXWUjn5O1C3WPAE8h4Yv/uDHatn7M7lBOfSit2TKGpP8w/QBZnm2eOhq V6IHQz3ejjHHY0b2oXmMgRLQm3DfUiUlKvA4Yo/0PnVjPA7L7tsJQSZg/35IscHXrEAE qj6quTFijopLanky4Foi+wQ2IEF7r7IOrEvZBGV9Btqx5gmub03PqUTtG0zhkSgAq9yN XCzuS4/pDaiNk9Yf1N9kFW9PluU2UeaAZbx7SIg2ytWIRouCUvFUWHXfA4d+qOPFJInf Y+b0AEOOnD+/qDXnnnlG/urB5y3EJDUo0GzF/LR/qvuVOsffq5ZscAb3vvUzrBs3Tzxf FsBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hC5O7877; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b0059beadab759si3820800pgb.652.2023.10.11.04.02.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 04:02:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hC5O7877; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EA7F5801B73E; Wed, 11 Oct 2023 04:02:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346577AbjJKLCP (ORCPT + 99 others); Wed, 11 Oct 2023 07:02:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234857AbjJKLCL (ORCPT ); Wed, 11 Oct 2023 07:02:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 814BBB7 for ; Wed, 11 Oct 2023 04:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697022130; x=1728558130; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Y5PY+/hV6/wrlFIbAS/3+SC0p6p4icSVgrCNrHkomwo=; b=hC5O7877ZkaMCO9oL8NS07oBYROb/2JH+vFsGGBHjV8GnMCVIr4yqr+r 2e8TORLz195ULggnJi58nYE9EEXjvhyCWvsL+3q+0josPVkd86Z6/IJ9V OnHr/0SFzIH2BW9ImCTo5pQYM+jyHgG6slcZx2KhzG273Y4AysLNjv49Q 7Dv1esY/dLgIucGGPc5D9dWcbrLK4DoT571eYzUdapFIXLc4zUnLlGcxO 6BYabow6c5j+z9SaguhqDcOsir1bhxNrbcXphgfD+opmFIh6+LAsPv2hC xAwU+jz9WVljxCFDNh6URFUofMmzeDis6DbgaldX0Z3EXG9yDcbMOh9Tz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="369696899" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="369696899" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 04:02:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="788960256" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="788960256" Received: from twinkler-lnx.jer.intel.com ([10.12.231.216]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 04:02:07 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , Vitaly Lubart , linux-kernel@vger.kernel.org, Tomas Winkler Subject: [char-misc-next 0/4] mei: enhance mei pxp recoverability Date: Wed, 11 Oct 2023 14:01:53 +0300 Message-ID: <20231011110157.247552-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 04:02:34 -0700 (PDT) X-Spam-Level: ** - Add timeouts to send/receive API on mei bus to avoid infinite waits and consequent deadlock. - Re-enable the mei pxp client upon loss. - Retry receive operation in case of memory pressure related failure. Alan Previn (1): mei: update mei-pxp's component interface with timeouts Alexander Usyskin (3): mei: bus: add send and recv api with timeout mei: pxp: recover from recv fail under memory pressure mei: pxp: re-enable client on errors drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 8 ++- drivers/misc/mei/bus.c | 88 +++++++++++++++++++++++- drivers/misc/mei/pxp/mei_pxp.c | 88 +++++++++++++++++++++--- include/drm/i915_pxp_tee_interface.h | 6 +- include/linux/mei_cl_bus.h | 8 +++ 5 files changed, 183 insertions(+), 15 deletions(-) -- 2.41.0