Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1420851lqz; Mon, 1 Apr 2024 06:07:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBamFPdhYJtV2TcVHjbe/wVxW4H7apFdB28wfeqmUB3FfccMyJF/VpNLQobxSrOe0Eb6Glf/xjyRdX+e8tlZmoR6bSrzSNOYa+CqZy0Q== X-Google-Smtp-Source: AGHT+IFdMsVnK6RQQJwHM9UNav6MVKOcNVkca8EG6T0UxhjoK6YwcX2U4sFGvzZv8IYadpqWWGN+ X-Received: by 2002:a05:6a20:6722:b0:1a1:878d:d3f6 with SMTP id q34-20020a056a20672200b001a1878dd3f6mr6833225pzh.26.1711976854064; Mon, 01 Apr 2024 06:07:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711976854; cv=pass; d=google.com; s=arc-20160816; b=hkDa0rXD5oksppkob6uKEB6967zG9BdeUfyNVdr8wvQHK0LVZU5CCn46eHiSr5UpU9 KmSeXriVKPJbs3q6A6XmQOIw/oatb9SGdIATtMAeRTpfD9VSaGySQPV5/VmVpi/vLgLs 2aSTiNirfQMhd2cUJyeZvgJAybTVcZflbKQRGg3O5X9mUVlXPpL7+fzATEgQ9Bixp2lT X2e54+tux/Q+FTIFy9u5HkI+IoMMi40X6vLLj/uYDhmpAHux0Et8jlLaMIxU/Jh8rg3W EX/pIrHoLFtgVq8uzzUKNfwaCQZ6FkO71OkdIqS9wfVm0wYaDW6lI+wxdHqR4NtZ3kBz I7jQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=B/+pSaRtMlBhbIQ8bQzyueXDaSoX0kvYqnBkb9VTM3g=; fh=cIMOw+nmL3NekyrqmO5hsWU3x3YK+KBgogi6erOQJSQ=; b=m0YBJJf3WLIo5ayYbbpRYGkcjQlJ5B7QKkx2QJ8pu6rZCWs7xY8tkv37cIficG9/Py 1clOjKlQdJp2IazxsIM5jb8pUhE51tdb3/8bBXMuIaDBBzypWlhKIePTttmHbO65PSir qqZUgl5ZasGezUQlXJex1pkaD+eSieTkYp8IBVcdz3FpJthW7439BABOKQHS8HZ4rPb3 mBJUmiZVOcBe1+mFnXZUlu7VkSOU+eFzMmj9TyOu6O+PiB1PqjHQNBcyrbQy9NT5GgVd Kou8XOWQOz/Ym2CSMsMTM5qYPrFiS0viDc8Ou8vwGmWIjwqEtCCYK0qbgqdkWGGubCgd c+Ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-126666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126666-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q15-20020a631f4f000000b005dc88260f76si9400931pgm.330.2024.04.01.06.07.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 06:07:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-126666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126666-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A34CE281E90 for ; Mon, 1 Apr 2024 13:07:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C4503EA72; Mon, 1 Apr 2024 13:07:28 +0000 (UTC) Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 108A63A262 for ; Mon, 1 Apr 2024 13:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711976847; cv=none; b=PQ4ltImBaWc8IEBVktIvz/MgkbP5UHd/Jl6Oth82qHrP1+9rsdlC4cKtz0sScffEeQVrvavBKqtism88MBNFwtNiGYzp7qnot1GVIdRFFi0qOKer7optAzRUTzKmNlo/7Rkfs94QR2B1WCY7SeAjhhDKI1Ig9Ro5ZLXfnRx23TE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711976847; c=relaxed/simple; bh=naRjLMP089cDBXeBSeVUhlhSJRaQ93qWYMkOBAu58YE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hYzCfh3v0NAWTLQsar1bqm170FSpL0ouZFZDJxLUv82SIWJBNipz+oRs7KxQvmUFIWYjmV4AQzsaq+mPEYNmHSoY8Z4CoPVOw0ppZqcTbTBRHQr61NG5M2GnkOFt7fD83l7mPpd2AajFzeFFP/2uMVNjoMykOkpi8T9zI97I2n4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.224] (ip5f5aedc1.dynamic.kabel-deutschland.de [95.90.237.193]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 1255A61E5FE01; Mon, 1 Apr 2024 15:07:02 +0200 (CEST) Message-ID: Date: Mon, 1 Apr 2024 15:06:56 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Linux logs error: `mei_me 0000:00:16.0: cl:host=04 me=00 is not connected` To: Alexander Usyskin , Tomas Winkler Cc: LKML References: <4c785706-2961-4eac-b5d7-2cf89c195969@molgen.mpg.de> <9a0551c8-d29e-4fb8-a85e-6f7f72e0de69@molgen.mpg.de> Content-Language: en-US From: Paul Menzel In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Alexander, Thank you very much for your reply. Am 01.04.24 um 08:54 schrieb Usyskin, Alexander: >> -----Original Message----- >> Sent: Saturday, March 30, 2024 13:56 >> Am 30.03.24 um 11:50 schrieb Winkler, Tomas: >>> >>>> -----Original Message----- >>>> From: Paul Menzel >>>> Sent: Friday, March 29, 2024 12:49 PM >> >> […] >> >>>> On a Dell XPS 13 9360/0596KF, BIOS 2.21.0 06/02/2022 with Debian >>>> sid/unstable and self-built Linux 6.9-rc1+ with one patch on top [1] and >>>> KASAN enabled. >>>> >>>> $ git log --no-decorate --oneline -2 a2ce022afcbb >>>> a2ce022afcbb [PATCH] kbuild: Disable KCSAN for autogenerated *.mod.c intermediaries >>>> 8d025e2092e2 Merge tag 'erofs-for-6.9-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs >>>> >>>> After several ACPI S3 (deep) suspend and resume cycles, this morning I >>>> noticed the error below: >>>> >>>> [29357.177635] mei_me 0000:00:16.0: cl:host=04 me=00 is not connected >>>> >>>> This seems to be logged from `mei_write()` in `drivers/misc/mei/main.c`. >>>> >>>> if (!mei_cl_is_connected(cl)) { >>>> cl_err(dev, cl, "is not connected"); >>>> rets = -ENODEV; >>>> goto out; >>>> } >>>> >>>> with `drivers/misc/mei/client.h` containing: >>>> >>>> /** >>>> * mei_cl_is_connected - host client is connected >>>> * >>>> * @cl: host client >>>> * >>>> * Return: true if the host client is connected >>>> */ >>>> static inline bool mei_cl_is_connected(const struct mei_cl *cl) >>>> { >>>> return cl->state == MEI_FILE_CONNECTED; >>>> } >>>> >>>> Unfortunately, I do not know at all, why the ME needs to be written to, and >>>> what was tried to be written, and what the effect of this failure is. >>>> >>>> Could you please take a look at it? >>> >>> Looks like a timing issue between setting up HDCP by graphics and >>> device power management. I don't think this is a really an issue if >>> this is happening during power cycles stress. >> >> Understood. Could this be because of the Address Sanitizer (KASAN)? >> >>> Anyway we will look at that, will you be able to provide more debug >>> information if we ask for it? >> >> Thank you. Yes, I can test patches. But right now, I was only able to >> see this once, so I am not sure how to reproduce it. > > This print is in the code path executed from user-space only. Seem > like some user space app have had connection opened before suspend > and tried to write after resume, but driver closed all connections on > suspend. This is normal flow; user space should reopen handle and > retry in this case. Interesting. Would user space program could this be? > The print can be demoted to debug, I think. Understood. Still maybe it could be extended too, so the cause/solution could be deduced from the Linux logs. Kind regards, Paul PS: Only if you care: > -- > Alexander (Sasha) Usyskin Your signature delimiter misses a trailing space at the end [1]. [1]: https://en.wikipedia.org/wiki/Signature_block#Standard_delimiter