From: "Souza, Jose" <jose.souza@intel.com>
To: "Harrison, John C" <john.c.harrison@intel.com>,
"De Marchi, Lucas" <lucas.demarchi@intel.com>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Vivi, Rodrigo" <rodrigo.vivi@intel.com>,
"Filipchuk, Julia" <julia.filipchuk@intel.com>,
"thomas.hellstrom@linux.intel.com"
<thomas.hellstrom@linux.intel.com>
Subject: Re: [PATCH] Revert "drm/xe/devcoredump: Add ASCII85 dump helper function"
Date: Fri, 13 Dec 2024 17:25:18 +0000 [thread overview]
Message-ID: <29a8ead7e28a72f7d9498d1701932836d7c14981.camel@intel.com> (raw)
In-Reply-To: <74c5a108-c5aa-49e3-b841-ff7ca838fae0@intel.com>
On Fri, 2024-12-13 at 08:56 -0800, John Harrison wrote:
> On 12/13/2024 08:48, Lucas De Marchi wrote:
> > On Fri, Dec 13, 2024 at 04:28:58PM +0000, Jose Souza wrote:
> > > On Fri, 2024-12-13 at 09:50 -0600, Lucas De Marchi wrote:
> > > > On Fri, Dec 13, 2024 at 03:24:59PM +0000, Jose Souza wrote:
> > > > > On Fri, 2024-12-13 at 07:10 -0800, José Roberto de Souza wrote:
> > > > > > On Fri, 2024-12-13 at 08:38 -0600, Lucas De Marchi wrote:
> > > > > > > On Fri, Dec 13, 2024 at 09:12:52AM -0500, Rodrigo Vivi wrote:
> > > > > > > > We do not break userspace.
> > > > > >
> > > > > > There is other patch that also breaks Mesa parser:
> > > > > >
> > > > > > drm/xe/devcoredump: Improve section headings and add tile info
> > > > > >
> > > > > > > >
> > > > > > > > This reverts commit ec1455ce7e35a31289d2dbc1070b980538698921.
> > > > > > >
> > > > > > > But we have users calling this function.... the revert is not
> > > > so simple.
> > > > > > > I think we need to revert the functionality rather than
> > > > reverting all
> > > > > > > the patches, otherwise it will cause a lot of headaches.
> > > > > > >
> > > > > > > I propose we go with:
> > > > > > >
> > > > > > > a) drop the \n that broke mesa and merge that with cc stable.
> > > > > > >
> > > > > > > b) move back the entry to the previous section that broke mesa
> > > > and cc
> > > > > > > stable.
> > > > > > >
> > > > > > > José, would it be ok to merge a patch in mesa and port that
> > > > > > > to mesa stable that simply looks at 2 possible sections?
> > > > Or even
> > > > > > > drop the section checks... ?
> > > > >
> > > > > But if Xe KMD is reverting the patch that changed the hwctx
> > > > section why would Mesa need to also parse the new(future to be
> > > > reverted) section?
> > > >
> > > > first is to undo the damage, with 0 changes in mesa. We do that
> > > > first and
> > > > *then* we agree on what's possible to do to accomodate the 2 parsers we
> > > > have.
> > > >
> > > > If we can get something in mesa to work that is backward compatible
> > > > (i.e. the
> > > > changed parser is able to parse both before and after the kernel
> > > > change),
> > > > then it could be considered to a mesa stable and the kernel side
> > > > changed.
> > >
> > > Okay, reasonable plan. But the ascii85 encoder with \n will not be
> > > brought back right?
> >
> > maybe let's agree on how to possibly bring it back? I suggested using a
> > space as continuation line char. This way you can just check the last
> > char
> > returned by getline() you are calling and see if you can go ahead and
> > proceed or if you still need to get more data. Neither space nor newline
> > are part of the ascii85 character set, so it's safe and you can handle
> > continuation in one place in your loop.
> >
> > if you are just ignoring any ascii85, then I believe it's even simpler:
> > you check sections and keys with a space since both keys and section
> > titles contain space, which is not part of the ascii85 char set.
> >
> > Lucas De Marchi
> Yes, I would strongly prefer to use line wrapped ASCII85 data for all
> blobs in the devcoredump. Including things like batch buffers and other
> VM entries that the mesa tool is presumably wanting to decode.
>
> If adding a <space> character to the end of each line is an acceptable
> fix then I have no problems with that. But not line wrapping at all
> means having to carry that change as a non-upstream patch in either the
> internal tree or in individual developer's local trees. Either that or
> we just cannot debug a lot of hard to repro problems.
Can't Xe KMD use the line wrapped version of ASCII85 when printing to dmesg and keep the regular encoder when devcoredump file is read?
>
> John.
>
next prev parent reply other threads:[~2024-12-13 17:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 14:12 [PATCH] Revert "drm/xe/devcoredump: Add ASCII85 dump helper function" Rodrigo Vivi
2024-12-13 14:38 ` Lucas De Marchi
2024-12-13 15:10 ` Souza, Jose
2024-12-13 15:18 ` Lucas De Marchi
2024-12-13 15:24 ` Souza, Jose
2024-12-13 15:50 ` Lucas De Marchi
2024-12-13 16:28 ` Souza, Jose
2024-12-13 16:48 ` Lucas De Marchi
2024-12-13 16:56 ` John Harrison
2024-12-13 17:25 ` Souza, Jose [this message]
2024-12-13 17:38 ` John Harrison
2024-12-13 19:43 ` Souza, Jose
2024-12-13 20:26 ` John Harrison
2024-12-13 20:46 ` Souza, Jose
2024-12-13 21:39 ` Lucas De Marchi
2024-12-14 1:08 ` John Harrison
2024-12-13 16:58 ` ✓ CI.Patch_applied: success for " Patchwork
2024-12-13 16:59 ` ✗ CI.checkpatch: warning " Patchwork
2024-12-13 16:59 ` ✗ CI.KUnit: failure " Patchwork
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=29a8ead7e28a72f7d9498d1701932836d7c14981.camel@intel.com \
--to=jose.souza@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=john.c.harrison@intel.com \
--cc=julia.filipchuk@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=thomas.hellstrom@linux.intel.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