Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3040241rdh; Mon, 27 Nov 2023 05:22:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IELGZEhnJYqQ+xmmk8+MbW+qladawzZ6OL7fzmtKGr6/nE/5H/HgUoq3sUhTsc3J5t4dLcX X-Received: by 2002:a05:6a20:5498:b0:18c:1d42:4e12 with SMTP id i24-20020a056a20549800b0018c1d424e12mr9321205pzk.18.1701091365761; Mon, 27 Nov 2023 05:22:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701091365; cv=none; d=google.com; s=arc-20160816; b=KoDK7mfc8lCRu33a56Kn7t4yImnqkWNQXDLQBups6FdSU9TSrAd7dCF8vj3InP9PLa mXvNnzdiI0n5f/n63I+heuvskOtGnLYUp5IbPZCFx/1oOaEezU61rl4D8HZ0ELE0lF2A 7nb7RDTNE0X0LbDM8WJcwl9ff3cDK/EpXE3s3nV2QnpDItY4SCdM+vPkfv+2SpKh4HDU zHSW2RCq9TvpBTTDxGZv1kKI+6w++MconS9Ea0qFPFDXWgWSagN9w9i8z+Nt5ZR7Potj AkJLT0qDJSe30M9ZG0dTa8G4KsYyFx/MOYBRUY7B4xJTn7ZZW/I1vAvbxtQI70Z6YiVC zBIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8ffPNPAbny4TiyXoA8RoYalKFefJilwDNPAd/HeSpcc=; fh=cQFXvcq7qP9dqwYR2twWuarkdZ5wUoXrXOSxc/E2bDI=; b=IRPgYvlb2ISG/fLLBf/pDwyJWigc7QcoJJcWoTuHUbDnDpMH3qJJLxz+Zo3IaFCIwo Quq70NFMK0YXEl6J9gfCi2IKzuFzvx4ESjLs1IcyIS5PrIehgSEpiqoSXUwu9zAon3Qk wGFJv3eKMw6hrDH7vZQzyFjV8+16kwkymnWh/bt7Yii6JDegFz7wkZ7zTmmO+BfZe1BI YY2fGgDxROk5LNWKaXiK7k7rfVLdmKrkckXoDYiJGrsWQsmplChwmQUl+V1Lp1AbLBwa y1+o+fciQ8p1w08xzgih6j/+YEZt23sJw2aY/B/0EHcsxBSnf40jdyqt0qJGDcmvCoqv iXRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZEThBOnS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b17-20020a056a00115100b006cb906d800esi10054434pfm.107.2023.11.27.05.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:22:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZEThBOnS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 57B8D809ABF6; Mon, 27 Nov 2023 05:22:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233393AbjK0NWc (ORCPT + 99 others); Mon, 27 Nov 2023 08:22:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233286AbjK0NW2 (ORCPT ); Mon, 27 Nov 2023 08:22:28 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 155C81BD for ; Mon, 27 Nov 2023 05:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701091353; x=1732627353; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=kzVK6/8jtEngesohNvB3UsJNfu2VDm6OVryNzNnZYz0=; b=ZEThBOnS4HC5iuGwnx4Q+lq77M/bTdFkOPunC7l0xFLjobqBoBBf/74k 6z82vcpXtbnAh8IjVphpK9KOpO62W86C2BD6diTkGujFYDAyLhXNlpgUG lfv3GzkF8I4cRl4TTaGL3p/4Kla2qRHa4yWeIbw4QtdDSwMoe2gZsTdzQ wZHJdKu2ZhFlvTE18wo7Kwaj61Yp3KCc23xl3fFLNXcELooTg4mlKd+o7 YIEJMW+BCQoDPoutUt3zeBLzgEUsXsQSUDS/EkBNmiI671kSqoFWfGA3R knRfEZ6+gVPY/PQ6EwFmR1TlboFUc6AUpiqM4Gm3su3tO/SqjagfZRrA8 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="392448044" X-IronPort-AV: E=Sophos;i="6.04,230,1695711600"; d="scan'208";a="392448044" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 05:22:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="761600159" X-IronPort-AV: E=Sophos;i="6.04,230,1695711600"; d="scan'208";a="761600159" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga007.jf.intel.com with SMTP; 27 Nov 2023 05:22:29 -0800 Received: by stinkbox (sSMTP sendmail emulation); Mon, 27 Nov 2023 15:22:29 +0200 Date: Mon, 27 Nov 2023 15:22:29 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: "Winkler, Tomas" Cc: "Teres Alexis, Alan Previn" , "gregkh@linuxfoundation.org" , "intel-gfx@lists.freedesktop.org" , "Usyskin, Alexander" , "linux-kernel@vger.kernel.org" , "Lubart, Vitaly" Subject: Re: [Intel-gfx] [char-misc-next 3/4] mei: pxp: re-enable client on errors Message-ID: References: <20231011110157.247552-1-tomas.winkler@intel.com> <20231011110157.247552-4-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 05:22:44 -0800 (PST) On Wed, Nov 15, 2023 at 10:35:16PM +0200, Ville Syrj?l? wrote: > On Tue, Nov 14, 2023 at 06:40:26PM +0000, Winkler, Tomas wrote: > > > > > > > -----Original Message----- > > > From: Teres Alexis, Alan Previn > > > Sent: Tuesday, November 14, 2023 5:32 PM > > > To: ville.syrjala@linux.intel.com; Winkler, Tomas > > > Cc: gregkh@linuxfoundation.org; Usyskin, Alexander > > > ; linux-kernel@vger.kernel.org; intel- > > > gfx@lists.freedesktop.org; Lubart, Vitaly > > > Subject: Re: [char-misc-next 3/4] mei: pxp: re-enable client on errors > > > > > > On Tue, 2023-11-14 at 16:00 +0200, Ville Syrj?l? wrote: > > > > On Wed, Oct 11, 2023 at 02:01:56PM +0300, Tomas Winkler wrote: > > > > > From: Alexander Usyskin > > > > > > > > > > Disable and enable mei-pxp client on errors to clean the internal state. > > > > > > > > This broke i915 on my Alderlake-P laptop. > > > > This fix was already posted, just missed the merging window > > https://lkml.org/lkml/2023/10/31/636 > > Gave this a spin and it fixes the issue for me. Thanks. > > > > > Greg can you please take this fix into v6.7-rc2 run, or I can repost it with the correct subject. We're at -rc3 already and this fix is still not in! > > Thanks > > Tomas > > > > > > > > > > > > > > > > > Hi Alex, i just relooked at the series that got merged, and i noticed that in patch > > > #3 of the series, you had changed mei_pxp_send_message to return bytes sent > > > instead of zero on success. IIRC, we had agreed to not effect the behavior of > > > this component interface (other than adding the timeout) - this was the > > > intention of Patch #4 that i was pushing for in order to spec the interface > > > (which continues to say zero on success). We should fix this to stay with the > > > original behavior - where mei-pxp should NOT send partial packets and will > > > only return zero in success case where success is sending of the complete > > > packets - so we don't need to get back the "bytes sent" > > > from mei_pxp_send_message. So i think this might be causing the problem. > > > > > > > > > Side note to Ville:, are you enabling PXP kernel config by default in all MESA > > > contexts? I recall that MESA folks were running some CI testing with enable > > > pxp contexts, but didn't realize this is being enabled by default in all contexts. > > > Please be aware that enabling pxp-contexts would temporarily disabled > > > runtime-pm during that contexts lifetime. > > > Also pxp contexts will be forced to be irrecoverable if it ever hangs. > > > The former is a hardware architecture requirement but doesn't do anything if > > > you're enabling display (which I beleive also blocks in ADL). The latter was a > > > requirement to comply with Vulkan. > > > > > > ...alan > > > > > > > -- > Ville Syrj?l? > Intel -- Ville Syrj?l? Intel