public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 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 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
* [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