lkml.org 
[lkml]   [2020]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH net-next 1/5] net: ipa: head-of-line block registers are RX only
From
Date
On 6/30/20 2:21 PM, David Miller wrote:
> From: Alex Elder <elder@linaro.org>
> Date: Mon, 29 Jun 2020 20:09:58 -0500
>
>> But the reason I was
>> considering it conditional on a config option is that Qualcomm
>> has a crash analysis tool that expects a BUG() call to stop the
>> system so its instant state can be captured. I don't use this
>> tool, and I might be mistaken about what's required.
>
> A Qualcomm debugging tool with poorly choosen expectations does not
> determine how we do things in the kernel.

Of course. I have no problem saying "that can't be done
upstream." But I wasn't as sure (before now) that the use
of BUG() even in this way would be a "hard no." I won't
waste any time trying to implement it.

>> What I would *really* like to do is have a way to gracefully
>> shut down just the IPA driver when an unexpected condition occurs,
>> so I can stop everything without crashing the system. But doing
>> that in a way that works in all cases is Hard.
>
> Users would like their system and the IPA device to continue, even
> if in a reduced functionality manner, if possible.

Here too, I completely agree, though I might have done a poor
job of conveying that. My intention is to recover from any
error if possible, even if it means being only partially
functional.

The only conditions I'd ever treat in this way would be those
that mean "we must not go on," basically along the lines of
what you described for BUG_ON() calls. My point was to try
to isolate the damage done to the IPA device and driver,
rather than killing the system.

-Alex

> Doing things to make that less likely to be possible is undesirable.

\
 
 \ /
  Last update: 2020-07-01 00:42    [W:0.069 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site