From: Pavel Machek <pavel@suse.cz>
To: paul.devriendt@amd.com
Cc: davej@redhat.com, linux-kernel@vger.kernel.org, aj@suse.de,
richard.brunner@amd.com, mark.langsdorf@amd.com
Subject: Re: Cpufreq for opteron
Date: Mon, 25 Aug 2003 10:46:16 +0200 [thread overview]
Message-ID: <20030825084616.GC403@elf.ucw.cz> (raw)
In-Reply-To: <99F2150714F93F448942F9A9F112634C080EF006@txexmtae.amd.com>
Hi!
> > > There's a *lot* of this in this driver. Does it really need
> > that much
> > > debugging info ? Additionally, the combination of dprintk, tprintk,
> > > printk (KERN_DEBUG is really messy, and kind of defeats the point
> > > of having these macros. If they're not going to be consistent, don't
> > > use them at all.
> >
> > Yep, I do not like those ?printk's too. Anyway, I killed most #ifdef
> > DEBUG, and converted it to BUG_ON(). That makes driver shorter and
> > easier to read. Hopefully not much new hardware will be buggy.
>
> I am not really expecting to see a lot of buggy hardware. Hopefully !
>
> I am, however, expecting to see BIOS problems. This code has been tested
> internally on a few machines, and every single one of the had some form
> or error in the BIOS. Even the AMD internal only development platforms
> had problems Some of this stuff was defined kind of late, and went through
> several revisions.
Okay, but hopefully machines being sold in retail will have bug-free
BIOSes?
> There are many debug prints in the code, plus additional code that is
> enabled when DEBUG/TRACE are defined. This is all there, based on the
> experience of debugging these early machines in house.
You are welcome to keep the debugging version of your driver for
debugging early machines; it is even possible that 2.4.X version
distributed with SuSE is going to be "debugging" one. But I do not
think Linus/Dave Jones is going to accept debugging version into
mainline kernel.
[And I hope those BUG_ON()'s should be enough to do some debugging,
too. You will not get a nice error message but ugly backtrack, but it
should be enough].
> Without the debug/trace code there, I have to fall back to "please put
> the machine in a box and mail it to me" instead of "email me the log
> file".
Well, if your users will use SuSE 2.4 kernel, they will have logfile,
anyway. By the time 2.6 is widely used, I *hope* bios problems are
already fixed.
> I know the debug code is ugly ... but, I am expecting to need it. In the
> next rev of the driver, when hardware is publicly for sale, we have some
> degree of stability, etc ... then great. But, for now, releasing a driver
> that has only been tested on prototype hardware ... and removing the
> debug code. Ouch.
If we want the code to be in 2.6.X final, it is good to start pushing
it _now_. And we can't reasonably expect linus to eat patch with
_that_ much debugging.
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
next prev parent reply other threads:[~2003-08-25 8:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-22 20:09 Cpufreq for opteron paul.devriendt
2003-08-25 8:46 ` Pavel Machek [this message]
2003-08-25 13:30 ` Valdis.Kletnieks
-- strict thread matches above, loose matches on Subject: below --
2003-08-27 0:43 paul.devriendt
2003-08-27 0:43 ` paul.devriendt
2003-08-27 5:13 ` Dominik Brodowski
2003-09-04 10:00 ` Dominik Brodowski
2003-08-25 14:09 paul.devriendt
2003-08-25 12:53 paul.devriendt
2003-08-25 13:51 ` Pavel Machek
[not found] <99F2150714F93F448942F9A9F112634C080EF006@txexmtae.amd.com.suse.lists.linux.kernel>
[not found] ` <20030825084616.GC403@elf.ucw.cz.suse.lists.linux.kernel>
2003-08-25 10:56 ` Andi Kleen
2003-08-24 15:31 paul.devriendt
2003-08-25 9:35 ` Pavel Machek
2003-08-22 16:25 Andi Kleen
2003-08-22 13:59 Pavel Machek
2003-08-22 14:43 ` Dave Jones
2003-08-22 19:55 ` Pavel Machek
2003-08-22 20:05 ` Pavel Machek
2003-08-26 23:02 ` Dominik Brodowski
2003-08-26 23:02 ` Dominik Brodowski
2003-08-22 14:52 ` Christoph Hellwig
2003-08-22 14:55 ` Dave Jones
2003-08-22 19:54 ` Pavel Machek
2003-08-23 7:55 ` Rogier Wolff
2003-08-23 17:50 ` Christoph Hellwig
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=20030825084616.GC403@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=aj@suse.de \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.langsdorf@amd.com \
--cc=paul.devriendt@amd.com \
--cc=richard.brunner@amd.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.