From: liulongfang <liulongfang@huawei.com>
To: Oliver Neukum <oneukum@suse.com>, Greg KH <gregkh@linuxfoundation.org>
Cc: <linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] USB:bugfix a controller halt error
Date: Thu, 27 Jul 2023 15:00:06 +0800 [thread overview]
Message-ID: <f03958f4-de73-ec43-fa13-02727b6018c3@huawei.com> (raw)
In-Reply-To: <05f0dc06-5a16-fba7-a256-b1d9dea989de@suse.com>
On 2023/7/26 19:16, Oliver Neukum wrote:
> On 26.07.23 09:18, Greg KH wrote:
>> On Wed, Jul 26, 2023 at 02:44:01PM +0800, liulongfang wrote:
>
>>> This is a test conducted under a special test scenario.
>>> ECC memory errors are caused by some test tools.
>
> So we are looking at a corner case here.
>
> I think we need to step back, get an overview. And I would
> like to apologize for not being entirely helpful.
>
> I see a theoretical possibility here of what is going wrong
> and an extremely theoretical bug, but it would be very good
> if you could describe your test setup.
>
> So. You are inducing simulated memory errors.
> For this scenario to make any sense your failure must be
>
> 1. temporary - that is you have detected memory corruption but the RAM cell is not broken
> 2. unrecoverable - that is we have lost data
> 3. locateable - that is you know it hit the buffer of this operation and only it
>
> Am I correct so far?
>
You are right about the testing process.
But this problem can exist in the real environment, just the probability of
occurrence is very low.
Use a test tool just to make it easier to trigger it.
> Furthermore your system reports the error to the HC, so that in last
> consequence the transfer fails. Right?
>
>> What memory is failing, and why does just this single check matter in
>> the whole kernel?
>
> The difference here is that we are deliberately ignoring errors.
>
>> If hardware is broken, and failing, it's not the job of the kernel to
>> protect against that, is it? Shouldn't the ECC memory controller have
>> properly notified the kernel of the fault
>
> Definitely it should. But this whole discussion makes only sense
> if exactly that happens.
>
Our test tool only simulates that external interference destroys this part
of the data in the buffer on the ECC memory. Even without this testing tool.
This problem may also occur on real business hardware devices.
>> and reset the machine because
>> it is now in an undetermined state?
>
> No. It is not in an undetermined state if your detection logic is good enough.
>
> Regards
> Oliver
> .
>
Thanks,
Longfang.
next prev parent reply other threads:[~2023-07-27 7:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-21 10:00 liulongfang
2023-07-21 11:08 ` Greg KH
2023-07-26 6:44 ` liulongfang
2023-07-26 7:18 ` Greg KH
2023-07-26 11:16 ` Oliver Neukum
2023-07-27 7:00 ` liulongfang [this message]
2023-07-27 8:46 ` Oliver Neukum
2023-07-27 4:02 ` liulongfang
2023-07-21 14:57 ` Alan Stern
2023-07-24 12:35 ` Oliver Neukum
2023-07-26 6:58 ` liulongfang
2023-07-26 14:20 ` Alan Stern
2023-07-27 7:03 ` liulongfang
2023-07-27 8:47 ` Oliver Neukum
2023-07-27 14:42 ` Alan Stern
2023-07-27 15:31 ` Oliver Neukum
2023-07-27 15:57 ` Alan Stern
2023-08-10 1:20 ` liulongfang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f03958f4-de73-ec43-fa13-02727b6018c3@huawei.com \
--to=liulongfang@huawei.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=oneukum@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®