* re: [preview] VIA IDE 4.0 and AMD IDE 2.0 with automatic PCI clock detection
@ 2001-02-09 22:42 Philip Langdale
2001-02-10 9:11 ` Vojtech Pavlik
0 siblings, 1 reply; 5+ messages in thread
From: Philip Langdale @ 2001-02-09 22:42 UTC (permalink / raw)
To: linux-kernel
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Vojtech,
I've tried out your new via driver and it
appears to have solved the problem with
the mis-detected ls-120 drive, but the ata66
drives are still being run at 33.
More interestingly, the pci-clk calculations
seem to be returning badly off values.
My motherboard is a kt133a+686b btk7a from abit.
When I set the FSB to 133 with PCI=133/4=33 the
timing code returns 43mhz.
when I set the FSB to 100 with PCI=100/3=33 then
it returns 42mhz.
These are scarely different from the nominal values.
I didn't observe anything bad in the few minutes
I was running like this, but right now I've hacked
the driver back to a hardcoded 33.
What should I do next?
--phil
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [preview] VIA IDE 4.0 and AMD IDE 2.0 with automatic PCI clock detection
2001-02-09 22:42 [preview] VIA IDE 4.0 and AMD IDE 2.0 with automatic PCI clock detection Philip Langdale
@ 2001-02-10 9:11 ` Vojtech Pavlik
0 siblings, 0 replies; 5+ messages in thread
From: Vojtech Pavlik @ 2001-02-10 9:11 UTC (permalink / raw)
To: Philip Langdale; +Cc: linux-kernel
On Fri, Feb 09, 2001 at 04:42:52PM -0600, Philip Langdale wrote:
>
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Vojtech,
>
> I've tried out your new via driver and it
> appears to have solved the problem with
> the mis-detected ls-120 drive, but the ata66
> drives are still being run at 33.
>
> More interestingly, the pci-clk calculations
> seem to be returning badly off values.
>
> My motherboard is a kt133a+686b btk7a from abit.
>
> When I set the FSB to 133 with PCI=133/4=33 the
> timing code returns 43mhz.
>
> when I set the FSB to 100 with PCI=100/3=33 then
> it returns 42mhz.
>
> These are scarely different from the nominal values.
> I didn't observe anything bad in the few minutes
> I was running like this, but right now I've hacked
> the driver back to a hardcoded 33.
>
> What should I do next?
Are you willing to do some experiments? I suppose the 686b is somewhat
different than the other chips (I tested it on 686a and 586b).
--
Vojtech Pavlik
SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [preview] VIA IDE 4.0 and AMD IDE 2.0 with automatic PCI clock detection
@ 2001-02-09 15:05 Byron Stanoszek
2001-02-09 15:58 ` Vojtech Pavlik
0 siblings, 1 reply; 5+ messages in thread
From: Byron Stanoszek @ 2001-02-09 15:05 UTC (permalink / raw)
To: vojtech; +Cc: linux-kernel
> I've decided that too much trouble has been caused by a wrong PCI clock
> specified to the IDE drivers (which in turn compute wrong IDE timings).
>
> I've made the VIA and AMD drivers detect the PCI clock automatically.
> Because this is a very significant change, I've upped the major release
> numbers to 4 and 2.
>
> Could anyone with these chipsets check these drivers if they detect the
> PCI clock correctly on their systems?
Certainly. I tested this on my machine with PCIClk 33, 34, and 36.6. The driver
correctly tuned the clocks to 33, 34, and 37 (expected and not harmful). It
works very well.
One thing to note: You should probably display the new clock speed in the
kernel debug messages on bootup. Also I don't know if you've done this already,
but if the user specifies an idebus=xx then that should override the auto
detection.
I do have a concern however. When you autodetect the PCI clock, does that
propagate to other IDE controllers that have been initialized? For instance, my
Abit KT7-Raid also has a Highpoint 370 controller. My fear is that it may get
initialized to 33 before the VIA controller is started and before detecting
that the true PCI clock is really 37. Unless the Highpoint controller has an
external timing mechanism I think this could pose a problem.
If it could help things, maybe a patch can be made to the standard IDE setup
routines that will replace the message "Assuming 33MHz for PIO modes" to
"Autodetected PCI Clock at 37MHz". This would ensure that all the IDE drivers
get set up with the correct detected PCI clock, and not just VIA/AMD's.
Thoughts/comments?
-Byron
--
Byron Stanoszek Ph: (330) 644-3059
Systems Programmer Fax: (330) 644-8110
Commercial Timesharing Inc. Email: byron@comtime.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [preview] VIA IDE 4.0 and AMD IDE 2.0 with automatic PCI clock detection
2001-02-09 15:05 Byron Stanoszek
@ 2001-02-09 15:58 ` Vojtech Pavlik
0 siblings, 0 replies; 5+ messages in thread
From: Vojtech Pavlik @ 2001-02-09 15:58 UTC (permalink / raw)
To: Byron Stanoszek; +Cc: linux-kernel
On Fri, Feb 09, 2001 at 10:05:44AM -0500, Byron Stanoszek wrote:
> > I've decided that too much trouble has been caused by a wrong PCI clock
> > specified to the IDE drivers (which in turn compute wrong IDE timings).
> >
> > I've made the VIA and AMD drivers detect the PCI clock automatically.
> > Because this is a very significant change, I've upped the major release
> > numbers to 4 and 2.
> >
> > Could anyone with these chipsets check these drivers if they detect the
> > PCI clock correctly on their systems?
>
> Certainly. I tested this on my machine with PCIClk 33, 34, and 36.6. The driver
> correctly tuned the clocks to 33, 34, and 37 (expected and not harmful). It
> works very well.
Great! I'm glad to hear that it works also elsewhere that on my test
computers.
> One thing to note: You should probably display the new clock speed in the
> kernel debug messages on bootup.
Probably yes.
> Also I don't know if you've done this already,
> but if the user specifies an idebus=xx then that should override the auto
> detection.
It doesn't override it, that'd require patching the generic code so that
it doesn't return '33' in the default case.
> I do have a concern however. When you autodetect the PCI clock, does that
> propagate to other IDE controllers that have been initialized? For instance, my
> Abit KT7-Raid also has a Highpoint 370 controller. My fear is that it may get
> initialized to 33 before the VIA controller is started and before detecting
> that the true PCI clock is really 37. Unless the Highpoint controller has an
> external timing mechanism I think this could pose a problem.
It doesn't propagate, it's local to the via driver. Anyway, I've checked
the sources and the only driver that actually checks the system bus
speed other than my VIA and AMD drivers is the QD6580 VL-BUS IDE driver ...
All others assume 33 MHz PCI. Which in my opinion is a bug. Andre thinks
it's correct.
> If it could help things, maybe a patch can be made to the standard IDE setup
> routines that will replace the message "Assuming 33MHz for PIO modes" to
> "Autodetected PCI Clock at 37MHz". This would ensure that all the IDE drivers
> get set up with the correct detected PCI clock, and not just VIA/AMD's.
Unfortunately the PCI speed measuring code needs help from the chipset
itself, so it isn't possible to implement in generic code. Maybe a
callback could be added to the chipset-specific drivers, though ...
I do have some plans with ide-pci.c, so ...
--
Vojtech Pavlik
SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [preview] VIA IDE 4.0 and AMD IDE 2.0 with automatic PCI clock detection
@ 2001-02-09 8:28 Vojtech Pavlik
0 siblings, 0 replies; 5+ messages in thread
From: Vojtech Pavlik @ 2001-02-09 8:28 UTC (permalink / raw)
To: linux-kernel, andre
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
Hi!
I've decided that too much trouble has been caused by a wrong PCI clock
specified to the IDE drivers (which in turn compute wrong IDE timings).
I've made the VIA and AMD drivers detect the PCI clock automatically.
Because this is a very significant change, I've upped the major release
numbers to 4 and 2.
Could anyone with these chipsets check these drivers if they detect the
PCI clock correctly on their systems?
Thanks.
Just untar the attached file into drivers/ide and recompile.
--
Vojtech Pavlik
SuSE Labs
[-- Attachment #2: amd-2.0+via-4.0.tar.bz2 --]
[-- Type: application/octet-stream, Size: 9902 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-02-10 9:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-09 22:42 [preview] VIA IDE 4.0 and AMD IDE 2.0 with automatic PCI clock detection Philip Langdale
2001-02-10 9:11 ` Vojtech Pavlik
-- strict thread matches above, loose matches on Subject: below --
2001-02-09 15:05 Byron Stanoszek
2001-02-09 15:58 ` Vojtech Pavlik
2001-02-09 8:28 Vojtech Pavlik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox