mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel.daenzer@mailbox.org>
To: Borislav Petkov <bp@alien8.de>
Cc: "Alex Deucher" <alexdeucher@gmail.com>,
	amd-gfx@lists.freedesktop.org,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: evergreen_packet3_check:... radeon 0000:1d:00.0: vbo resource seems too big for the bo
Date: Tue, 9 Sep 2025 10:43:47 +0200	[thread overview]
Message-ID: <63b7c020-e589-4644-887e-3922af939009@mailbox.org> (raw)
In-Reply-To: <20250908180022.GHaL8Zto-PsVsPa0e0@fat_crate.local>

On 08.09.25 20:00, Borislav Petkov wrote:
> On Mon, Sep 08, 2025 at 07:05:17PM +0200, Michel Dänzer wrote:
>> These messages are primarily intended for developers, not users
> 
> But everybody sees them! And they're flooding the console.

There's no question that dev_warn_ratelimited is wrong here, I'm just saying dev_warn_once isn't quite right either.


BTW, the same arguments apply to the other dev_warn calls in evergreen_cs.c. Their conditions can be controlled by user space, so they must not generate any dmesg output by default.


> And if those messages are only for developers, they better be not visible by
> default but behind a CONFIG_DEBUG or a similar switch.

Hence my suggestion to use a dbg variant, which isn't visible by default but can be enabled (and disabled again) at runtime.


> And developers don't have every hw to test on. So you need to rely on users to
> report issues to you. Because those messages probably don't fire on your hw
> but someone else would hit them. And the chances are high that someone else is
> a user.

Then the developer needs to tell the user how to enable the debugging output and get it to them. That's pretty standard.


>> (which will notice and report the corresponding user-space issues instead).
> 
> The case due to which we're having this conversation didn't manifest itself
> into anything - it was only flooding my dmesg.

The message is logged if the kernel needs to fix up invalid data passed in by user space. That may have had no noticeable effect in your case, it certainly could in other cases though.


-- 
Earthling Michel Dänzer       \        GNOME / Xwayland / Mesa developer
https://redhat.com             \               Libre software enthusiast

  reply	other threads:[~2025-09-09  8:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-29 17:16 Borislav Petkov
2025-08-29 18:26 ` Alex Deucher
2025-08-29 19:40   ` Borislav Petkov
2025-08-29 20:48     ` Borislav Petkov
2025-08-30 16:30       ` Alex Deucher
2025-08-30 17:48         ` Borislav Petkov
2025-08-31 21:42           ` Timur Kristóf
2025-08-31 22:08             ` Borislav Petkov
2025-09-01  9:27           ` Michel Dänzer
2025-09-01 10:10             ` Borislav Petkov
2025-09-08 17:05               ` Michel Dänzer
2025-09-08 18:00                 ` Borislav Petkov
2025-09-09  8:43                   ` Michel Dänzer [this message]
2025-09-09 16:16                     ` Borislav Petkov
2025-09-09 16:21                       ` Alex Deucher
2025-09-09 17:00                         ` Michel Dänzer
2025-09-10  8:02                         ` Christian König
2025-09-10  8:12                           ` Michel Dänzer

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=63b7c020-e589-4644-887e-3922af939009@mailbox.org \
    --to=michel.daenzer@mailbox.org \
    --cc=alexander.deucher@amd.com \
    --cc=alexdeucher@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=bp@alien8.de \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    /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®