From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6ED28145354 for ; Thu, 11 Jul 2024 19:53:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720727621; cv=none; b=ZNgcvVot7vg/C8vYiK+CCwucEESUHTKYGavECGBUF/fTAIsblhQH+WXFGm0Z6LltGzUQHA/dLAf1nDkR+IL2swY3nUf9BOXOMuvRiXv+2wn1hv+4KQDGm43IC9+ufHniRzF/9BNCj8GphISbsE7lSH2FFZateff9cxnLkkwmpJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720727621; c=relaxed/simple; bh=AQRPgY7Ta8/25Ij5rCjtyYOD71SttvMXsarPss3wXYw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PpTR25TRIBJYQwTqAgW4H70jXbe248L96nQYLoNkag6BYLTGbqXHdS4jWM6w53BgtZBvf9nXxi9PsIE9JN9/1QmWjicXzoavaU4XMgRgmbMrETMXw3W2YAYfBg5Z9na35G9Ki2nHg8RdiUgEBA38+hWEuKhHPoi2C5Lx7ZjgY1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LcS4W0Ju; arc=none smtp.client-ip=209.85.166.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LcS4W0Ju" Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-7f3c804daf7so6428939f.1 for ; Thu, 11 Jul 2024 12:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1720727618; x=1721332418; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=h7yeQY6SPtfR9A82LK11qYfHKg0VfLZL3MuMX9OJe1U=; b=LcS4W0JuDtjwdqEs8sF6QaGm7AQ04gojUPfoc/+Ydqc00+yXiSXzUHGcPdP0rgy86h He6FNZUUkwYoOESC22TECAYZLASxYAJXYiBD1omdRR6UD/0A4pSwgaG1f4hWjXgf4SO4 ipjxj2Trvo+4tEk5IsJYriZYf1+FAKAlQ9sjY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720727618; x=1721332418; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=h7yeQY6SPtfR9A82LK11qYfHKg0VfLZL3MuMX9OJe1U=; b=FzpqgUXidVHuJBHKY8V09yrChRIG35cBUfC7liaoAohVz+dDEqAYuy8uQHvz2CTDY4 LmvBh7uyvHl3JB+tJh5xltiVCmPKv6oFm6yN3E3KpR9A8b/OCBQvKagKjv8V4RxEO+uQ WXI0yMIVHVyEiQqrXLrbuXwdkeQlqRjEVOiG5LQCy9O8vZUxqsT3UVygp3r23/Zn0X4M WQqVHnaIDN1Y+waSvTL9b7o1j8d5HtqYdam1wgLgs/O7dPxnu9k40YOe1/mah4BzoECr AJ4lEIw9L+tSbh5GAYI+1TLXAo5gVIN2QbRBb98Jgtgmr70a4F+13PzbQgBT66Muer23 TbfA== X-Forwarded-Encrypted: i=1; AJvYcCWQORNA1BuA36pggEkX7quqtkZIFvGKff3Foq5QCO6K+W7aEGbtZFQjnrledNcta3ni0Ujg4dts2aqmsqhbj/kgJydM6O1eHKHqMNpDqKBj X-Gm-Message-State: AOJu0YwU1TRU6TF8bU0x7h7osNaOo/tDVGbCghXKPy38EJHlpcxMEzlQ Bk4JZkrPnnQKx81opmLX66vqfOQ2V+YvtNSPHpF2x9+3WYE6ZtEa6zJclmOL1bOj+nQm7MVTnsL g X-Google-Smtp-Source: AGHT+IFrG6tcF3V+I0JwNgxdIK+071GY/2J/P0ieFHoPCC6LxFJ7MDumSBYvlTHYtzu5FY4n8WO7Ag== X-Received: by 2002:a5d:9c12:0:b0:7f9:3fd9:cbd with SMTP id ca18e2360f4ac-7fff92c5c33mr837862539f.0.1720727618527; Thu, 11 Jul 2024 12:53:38 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4c0b1c2b576sm1991316173.177.2024.07.11.12.53.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jul 2024 12:53:38 -0700 (PDT) Message-ID: Date: Thu, 11 Jul 2024 13:53:37 -0600 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/3] kselftest: Add test to report device log errors To: Greg Kroah-Hartman , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Shuah Khan , kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kernelci@lists.linux.dev, Shuah Khan References: <20240705-dev-err-log-selftest-v2-0-163b9cd7b3c1@collabora.com> <2024071003-islamist-expediter-a22c@gregkh> <71c479fb-cd25-45ec-8dd3-0521ef951f58@linuxfoundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: <71c479fb-cd25-45ec-8dd3-0521ef951f58@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/10/24 15:49, Shuah Khan wrote: > On 7/10/24 07:11, Greg Kroah-Hartman wrote: >> On Fri, Jul 05, 2024 at 07:29:53PM -0400, Nícolas F. R. A. Prado wrote: >>> Log errors are the most widely used mechanism for reporting issues in >>> the kernel. When an error is logged using the device helpers, eg >>> dev_err(), it gets metadata attached that identifies the subsystem and >>> device where the message is coming from. This series makes use of that >>> metadata in a new test to report which devices logged errors. >>> >>> The first two patches move a test and a helper script to keep things >>> organized before this new test is added in the third patch. >>> >>> It is expected that there might be many false-positive error messages >>> throughout the drivers code which will be reported by this test. By >>> having this test in the first place and working through the results we >>> can address those occurrences by adjusting the loglevel of the messages >>> that turn out to not be real errors that require the user's attention. >>> It will also motivate additional error messages to be introduced in the >>> code to detect real errors where they turn out to be missing, since >>> it will be possible to detect said issues automatically. >>> >>> As an example, below you can see the test result for >>> mt8192-asurada-spherion. The single standing issue has been investigated >>> and will be addressed in an EC firmware update [1]: >>> >>> TAP version 13 >>> 1..1 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `model_name' property: -6 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `energy_full_design' property: -6 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>>   power_supply sbs-8-000b: driver failed to report `time_to_empty_now' property: -5 >>> not ok 1 +power_supply:sbs-8-000b >>>   Totals: pass:0 fail:1 xfail:0 xpass:0 skip:0 error:0 >>> >>> [1] https://lore.kernel.org/all/cf4d8131-4b63-4c7a-9f27-5a0847c656c4@notapiano >>> >>> Signed-off-by: Nícolas F. R. A. Prado >> >> Acked-by: Greg Kroah-Hartman > > Is this dependent on a linux-next? > > Didn't apply to linux-kselftest next. > I tried applying these on top of linux-kselftest next which is at Linux 6.10-rc7 + other patches. I am not sure what is wrong - first patch applies and the second and third don't. git am fails and manual patch application worked for 2/3, same thing with 3.3 - these should apply cleanly since they don't have obvious conflicts. Please clean this up and send me updated series adding Greg's ack. thanks, -- Shuah