Message ID | 20250217101706.2104498-1-eugen.hristev@linaro.org (mailing list archive) |
---|---|
Headers | show |
Series | pstore: directly mapped regions | expand |
On Mon, 2025-02-17 at 12:16 +0200, Eugen Hristev wrote: > This series comes as an RFC proposed solution to enhance pstore and > devcoredump with the following functionality: ... > This patch series attempts to solve this by reusing existing > infrastructure in pstore and devcoredump, and provide a copy-free ... You mention devcoredump multiple times, but it almost seems like you don't even know what devcoredump does? I don't see how there's any relation at all, and the code added to it seems to have no relation to the actual functionality of devcoredump either? johannes
On 2/17/25 12:23, Johannes Berg wrote: > On Mon, 2025-02-17 at 12:16 +0200, Eugen Hristev wrote: > >> This series comes as an RFC proposed solution to enhance pstore and >> devcoredump with the following functionality: > > ... > >> This patch series attempts to solve this by reusing existing >> infrastructure in pstore and devcoredump, and provide a copy-free > > ... > > You mention devcoredump multiple times, but it almost seems like you > don't even know what devcoredump does? I don't see how there's any > relation at all, and the code added to it seems to have no relation to > the actual functionality of devcoredump either? At this moment going through devcoredump is not something that impacts the idea of the implementation. The whole reason of going through it (because things work without it as well), is to see whether this has any kind of impact or not, and if there is any kind of fit/reason of going through it. Devcoredump is involved because the whole core registration is similar to a core area that devcoredump could use. For example, would it be interesting to have a handler going through all devices, and have the dump areas already registered ? Meaning, when there is a request to generate a core dump, one could directly dump this area instead of calling back the driver, and provide that to the userspace instead of the driver calling the dev_coredumpv by its own. > > johannes
On Mon, 2025-02-17 at 12:44 +0200, Eugen Hristev wrote: > > At this moment going through devcoredump is not something that impacts > the idea of the implementation. Yeah. I don't think it _should_ go through it at all. > The whole reason of going through it (because things work without it as > well), is to see whether this has any kind of impact or not, and if > there is any kind of fit/reason of going through it. So it's just a trial balloon? > Devcoredump is involved because the whole core registration is similar > to a core area that devcoredump could use. Yeah but ... > For example, would it be interesting to have a handler going through all > devices, and have the dump areas already registered ? > Meaning, when there is a request to generate a core dump, one could > directly dump this area instead of calling back the driver, and provide > that to the userspace instead of the driver calling the dev_coredumpv by > its own. I'll be blunt ... so you _really_ haven't understood devcoredump then? It's really not doing this. It's not meant to do this... It's intended to dump data from inside the device when the device crashes. Please remove devcoredump involvement from this series. johannes
On 2/17/25 13:19, Johannes Berg wrote: > On Mon, 2025-02-17 at 12:44 +0200, Eugen Hristev wrote: >> >> At this moment going through devcoredump is not something that impacts >> the idea of the implementation. > > Yeah. I don't think it _should_ go through it at all. > >> The whole reason of going through it (because things work without it as >> well), is to see whether this has any kind of impact or not, and if >> there is any kind of fit/reason of going through it. > > So it's just a trial balloon? Yes, that's why it's marked as an RFC. > >> Devcoredump is involved because the whole core registration is similar >> to a core area that devcoredump could use. > > Yeah but ... > >> For example, would it be interesting to have a handler going through all >> devices, and have the dump areas already registered ? >> Meaning, when there is a request to generate a core dump, one could >> directly dump this area instead of calling back the driver, and provide >> that to the userspace instead of the driver calling the dev_coredumpv by >> its own. > > I'll be blunt ... so you _really_ haven't understood devcoredump then? > > It's really not doing this. It's not meant to do this... It's intended > to dump data from inside the device when the device crashes. > > Please remove devcoredump involvement from this series. Thank you for your feedback. > > johannes
On Mon, 2025-02-17 at 13:39 +0200, Eugen Hristev wrote: > > On 2/17/25 13:19, Johannes Berg wrote: > > On Mon, 2025-02-17 at 12:44 +0200, Eugen Hristev wrote: > > > > > > At this moment going through devcoredump is not something that impacts > > > the idea of the implementation. > > > > Yeah. I don't think it _should_ go through it at all. > > > > > The whole reason of going through it (because things work without it as > > > well), is to see whether this has any kind of impact or not, and if > > > there is any kind of fit/reason of going through it. > > > > So it's just a trial balloon? > > Yes, that's why it's marked as an RFC. > (IMHO) that doesn't make it acceptable to just randomly go modify code you don't understand the purpose of, certainly not without actually stating such. But anyway, I'll leave it at that. johannes