Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2858694rdb; Wed, 15 Nov 2023 12:40:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRyQtYw+OnqWn6hzj6epBVQZMpplJ/qEKXiWX1/qhWjQ5AjbwfBx/g/UNiGI/iLcpQZ3UV X-Received: by 2002:a17:902:ee12:b0:1cc:6a09:a489 with SMTP id z18-20020a170902ee1200b001cc6a09a489mr5723390plb.33.1700080854556; Wed, 15 Nov 2023 12:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700080854; cv=none; d=google.com; s=arc-20160816; b=Q37EkpjlNwF6mxByNgqRV5xIbsonMqRx0x4mfx5fRw96mGYQpnMmlGn8eLi2rF2wn1 +HrAWjt5HySMALMrik5i0RKLnTgMB/JNSoxBt76WkUZ26s1RsSKJmtIyGHLx/xXs6JTt +arVy1nfX/7OkmG70VRIWPNxu6WtVJ+JBA1B7dVC1vGfndhQ3Hbr62BU68VG+IadNhPK CeiqbQli9PzeXF+IF8oxLM4CzD3BG5xIVo15XZHMh/vSabA+Fye5bg4jKyUPQeQy1X2c RgfP+T+F4chewlpimVg1L4t3QOWWB0Sqgh9uJ6janF8HrqWzokRotAtHC11HMGcaFQaG O2aQ== 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=lJk32jukk1PRqCIMtIEPwe2rTloyHZYj/KdzqUDF1RU=; fh=EkZkkC63zuTs6lsISEomnkF9wZ7uZ0Uo7F1DfgY8CXI=; b=vUSeF9/DX+b4tvmTw8CRPv1aUXUOkQr+yhqKVAIVxjJD97EKcZjVCwTcVsy56ziTen 5l6kxAjMxjAiMVBQvZN7ovp3cJpAxINOk1EUp6TExqtgF4634KH3Hbvl4gmlveGkRIZE P27FYnQ07DxGwuIQTI3V7imIWomV7jLqcdkAqk+B/TJvX7DyduNZR7ub/ehAv8qDsyB7 M1PABtgGka1R+2+uTEf4alG5PRYw/EenUCmGgAd6hHm1XrXxZoGQWJrLJ2RWpP77j0oq majZDMq8kSC1g1zBPzUS9Ii68C4YCQlhxCSicejW0Ee5TRQnHS2YAyXRxNU+M/GPVVdZ oRSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OWAIERkD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p12-20020a170902eacc00b001cc38a6cb77si10459562pld.204.2023.11.15.12.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:40:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OWAIERkD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D5F8B8077F83; Wed, 15 Nov 2023 12:40:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344443AbjKOUkG (ORCPT + 99 others); Wed, 15 Nov 2023 15:40:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344569AbjKOUjy (ORCPT ); Wed, 15 Nov 2023 15:39:54 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C7661BC5 for ; Wed, 15 Nov 2023 12:39:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700080747; x=1731616747; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=oyRW0yJOnAQMk+aLzL3aM5R69kLnq/p9mbXN8ypSMoY=; b=OWAIERkDMYDIpoXoax3JGenPKsGL1LWqbozYBtyznZwyUWS6LlzdaXxY 5j8cSMcnTJO4i/GOeOeDwWCL9zqxQXAG92lgRPxlxE3hUZWplPp4GwQ6u 3J3DOs79ClHcj+dm5flYSssfUCpHO9aWP/0/WLvga+WAnk2qmuNmfot3w ARF4K4tGlMk+N6maF7ptnGVKcjRwLq99bhBI2rgAyKbOvKp8PIDvBl1u3 e/Acc9fGyj7RrL+qj1dRxhAeBvg4glceu3KYBGUuLvgweyHjEcD8Oj5rj PnICl/Ty5Ytzu6MS/zADtL3+DuE31e1ecYtpRdbYKMigyX0Wcq5tEu5dB A==; X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="12504643" X-IronPort-AV: E=Sophos;i="6.03,306,1694761200"; d="scan'208";a="12504643" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2023 12:35:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="758604661" X-IronPort-AV: E=Sophos;i="6.03,306,1694761200"; d="scan'208";a="758604661" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga007.jf.intel.com with SMTP; 15 Nov 2023 12:35:17 -0800 Received: by stinkbox (sSMTP sendmail emulation); Wed, 15 Nov 2023 22:35:16 +0200 Date: Wed, 15 Nov 2023 22:35:16 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: "Winkler, Tomas" Cc: "Teres Alexis, Alan Previn" , "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 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=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 12:40:20 -0800 (PST) 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. > 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