From: "Jordan Crouse" <jordan.crouse@amd.com>
To: "Ben Gardner" <gardner.ben@gmail.com>
Cc: linux-kernel@vger.kernel.org, info-linux@ldcmail.amd.com
Subject: Re: i386: CS5535 chip support - cpu
Date: Fri, 9 Dec 2005 15:47:55 -0700 [thread overview]
Message-ID: <20051209224755.GV19006@cosmic.amd.com> (raw)
In-Reply-To: <808c8e9d0512090701l1f065c23radaa8ff5d800da2a@mail.gmail.com>
On 09/12/05 09:01 -0600, Ben Gardner wrote:
>
> I think your phrase "somewhat sane BIOS" sums up the problem nicely.
> I threw in the UART1 config because UART2 has problems. Paranoia.
> I'm not sure that the UART1 config is needed, so I'm willing to scrap
> it, or wrap it in a config option.
>
> If you are interested in my experience with UART2, see the kernel
> buzilla report #5677.
> My guess (not based on any data) is that a BIOS call (initiated by
> Linux) uses the DDC, but doesn't restore the GPIO to its original
> state. So, again, a BIOS problem.
Reading BZ 5677, I get some perspective on your issue now. I would agree
that the data sounds like something is subverting the GPIO pins for its
own use, and definately DDC is the logical conclusion.
Ok, so now with a bit of perspective on the issue, then I think that
adding code to win back the serial port is useful, but it should be wrapped
in a config or command line option, so that users can decide for themselves.
After all, DDC is useful too (if you're an X user).
> > Now, if your particular board has its own very good reasons for handling
> > this, then thats fine, but I don't think this should be accepted as CS5535
> > support, because it stands a fairly good chance of causing trouble over
> > the larger set of Geode devices. I'll certainly listen to arguments
> > to the contrary, though.
>
> I'm curious as to what trouble this could cause?
I'm mainly worried about resource conflicts and such, especially with the
first serial port. I'm less worried about the second port (as you could
see from my code), but on the particular platform where that
code was most useful, we had a fixed set of features so we knew we be more
carefree. Certainly, on the big development platforms with a full BIOS,
the code would be far more worriesome.
> Your patch looks like it would also solve the UART2 problem.
> What I still don't understand is why UART2 works fine in DOS and in
> linux 2.6.13-rc6-mm1, but not in the current kernel - in short, why is
> this needed?
Our internal BIOS defaults to DDC on the second CS5535/CS5536 serial
port, which normally isn't any big deal, because the first port is
available, and if worse comes to worse, I can always switch over to LPC.
But on platforms like the Thin Client RDK, which is more like a production
platform, there aren't any physical serial ports populated. So in order to
get access, our systems guys made a little dongle that plugged into
the VGA port and split out the DDC lines and turned them into a serial
connection. And this code was born to turn off the default DDC and
enable the serial port.
> Anyway, I recommend adding sanity checks on MSR_DIVIL_GLD_CAP and
> MSR_LBAR_GPIO before writing to the IO port. The code as-is may cause
> problems on a non-cs5535 board.
Thats a great point. Actually, we should check for both CS5535 and
CS5536, since the code will work on both.. :)
> Thanks for your input.
Thanks for your interest.
Jordan
--
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>
next prev parent reply other threads:[~2005-12-09 22:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 19:42 [PATCH 1/3] i386: CS5535 chip support - cpu Jordan Crouse
2005-12-09 15:01 ` Ben Gardner
2005-12-09 22:47 ` Jordan Crouse [this message]
2005-12-10 8:44 ` Pavel Machek
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=20051209224755.GV19006@cosmic.amd.com \
--to=jordan.crouse@amd.com \
--cc=gardner.ben@gmail.com \
--cc=info-linux@ldcmail.amd.com \
--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