Re: 4GB Physical. Less than 3GB in Linux.

2007-04-16 Thread Robert Hancock
ost of the MMIO region above 3GB preventing RAM from being mapped there, and doesn't support remapping the covered RAM to above 4GB. Nothing the kernel can do about it. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http:

Re: Machine Check Exception on Opteron 265

2007-04-14 Thread Robert Hancock
ally cause such a problem. So now we wonder if this might be an MCE bug, or really a HW problem, and if it is one of the CPUs, or the RAM thats faulty. We are running 2.6.18. Sounds like some bad RAM.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL P

Re: Why kmem_cache_free occupy CPU for more than 10 seconds?

2007-04-13 Thread Robert Hancock
cond_resched() voluntarily since CONFIG_PREEMPT_VOLUNTARY and CONFIG_PREEMPT_BKL are both turned on? From my understanding these 2 options should make schedule happen even if CPU is under heavy load.. No, only CONFIG_PREEMPT will do that. -- Robert Hancock Saskatoon, SK, Canada To email, r

Re: Loud "pop" coming from hard drive on reboot

2007-04-13 Thread Robert Hancock
uldn't have to, and yet the drive loses power so it does an emergency retract. Making the kernel shutdown on reboot would only add more spindown/up cycles for normally working systems. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EM

Re: Help Understanding Linux memory management

2007-04-10 Thread Robert Hancock
ossible to disable the pagecache? Not as far as I know, it's unlikely this would be of any benefit. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line

Re: Two questions regarding Opening files within Kernel!

2007-04-07 Thread Robert Hancock
/WhyWritingFilesFromKernelIsBad -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More maj

Re: 2.6.9 won't compile

2007-04-06 Thread Robert Hancock
be personally CC'ed in the answers/comments posted in response to this post ? Your compiler is probably too new to be able to compile 2.6.9. You'd likely be better off trying the latest kernels and making a detailed report of the problems you're having with it.. -- Robert Hancock

Re: Invalid operand: kernel BUG at mm/rmap.c:434! and arch/i386/mm/highmem.c:42!)

2007-04-06 Thread Robert Hancock
certain source (defective RAM? Bad application or device driver?), please let me know as I'm pulling what little hair I have left out on this one. Suggestions on what to try would be greatly appreciated. Thanks! First try updating to the latest RHEL update kernel, that one's out of

Re: IRQ splitting

2007-04-05 Thread Robert Hancock
d are in likely share a physical interrupt line and there is no way to separate them in software. You can try moving the card(s) to different slots.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -

Re: set up new kernel with grub

2007-04-04 Thread Robert Hancock
"make modules_install install". -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: [PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver (v2)

2007-04-04 Thread Robert Hancock
Jeff Garzik wrote: Robert Hancock wrote: This adds some NCQ blacklist entries taken from the Silicon Image 3124/3132 Windows driver .inf files. There are some confirming reports of problems with these drives under Linux (for example http://lkml.org/lkml/2007/3/4/178) so let's disable N

Re: OHCI: USB webcam works, but not on USB Hub

2007-04-03 Thread Robert Hancock
g timeslots on the bus - even a USB keyboard/mouse on the same hub would prevent it from getting enough bandwidth. Essentially the driver should fallback to a lower-bandwidth descriptor if the one it tries to use fails rather than just bailing out. -- Robert Hancock Saskatoon, SK,

Re: 2.6.20.4: NETDEV WATCHDOG and lockups

2007-04-03 Thread Robert Hancock
ide, if ACPI is disabled you can't take advantage of CPU clock frequency scaling to save power. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line &qu

[PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver (v2)

2007-04-02 Thread Robert Hancock
This adds some NCQ blacklist entries taken from the Silicon Image 3124/3132 Windows driver .inf files. There are some confirming reports of problems with these drives under Linux (for example http://lkml.org/lkml/2007/3/4/178) so let's disable NCQ on these drives. Signed-off-by: Robert Ha

Re: Fwd: kswapd issues + kernel 2.4.21-32.0.1.ELsmp

2007-04-01 Thread Robert Hancock
ke an old RHEL3 kernel - first off try the latest updated kernel which is 2.4.21-47.0.1.EL. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscr

Re: Why is NCQ enabled by default by libata? (2.6.20)

2007-04-01 Thread Robert Hancock
esn't fill the write cache it's not as much of an issue, but if the write cache fills up then the disk may have to flush out data in a suboptimal order since it can't see what other requests are coming and can't change the order in which that data shows up. -- Robert Hancock

Re: possible mistake in linux kernel header file -- kernel: 2.6.16.29 file: mod_devicetable.h

2007-03-28 Thread Robert Hancock
kernel's header files and strips out everything inside #ifdef __KERNEL__. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe

Re: Why is NCQ enabled by default by libata? (2.6.20)

2007-03-24 Thread Robert Hancock
27; defaults, therefore, I was curious why is NCQ enabled by default? Normally NCQ is faster, though it depends on the drive firmware. It's also possible that software RAID is a case where there are negative interactions. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam

Re: MCE on an NForce4 board (again)

2007-03-23 Thread Robert Hancock
ightly possible that some regression in the sata_nv module could trigger an MCE? If not, would you put your money on the RAM, or could the motherboard be blamed? I hope it's not the CPU ;) -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED]

Re: [PATCH] I/O space boot parameter

2007-03-21 Thread Robert Hancock
handle this by assigning the devices who had no space assigned by the BIOS last, so that we wouldn't try to assign those until we'd already assigned everything else.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: ht

Re: UDP packets scheduling

2007-03-20 Thread Robert Hancock
it at speeds about 5.5Gbps, that is my question. Why is it necessary to avoid bursting? There should be enough buffering along the chain to avoid packet loss with reasonable burst sizes. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED]

Re: sata_nv exceptions in 2.6.20.3

2007-03-20 Thread Robert Hancock
cable on that drive? The controller is reporting SError values and CMD errors, which likely tends to indicate some kind of SATA communication problem.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthan

Re: sata_nv ADMA controller lockup investigation

2007-03-20 Thread Robert Hancock
nd and the controller is still waiting for a response. Could be that this is another drive that needs to be added to the NCQ blacklist, some similar Maxtor models seem to have issues.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTEC

Re: 1000xf bus problem

2007-03-18 Thread Robert Hancock
's what it's running at. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: 1000xf bus problem

2007-03-18 Thread Robert Hancock
z bus rate is should be capable of. How are you determining this? > Any ideas on how to make it work at full speed? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this l

Re: SATA problems in 2.6.20.3

2007-03-17 Thread Robert Hancock
inux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5e5c74a5e11d1e2a99d03132cc6c4455016db6c2 -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe

Re: SATA problems in 2.6.20.3

2007-03-16 Thread Robert Hancock
? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at ht

Re: [BUG 2.6.21-rc3-git9] SATA NCQ failure with Samsum HD401LJ

2007-03-16 Thread Robert Hancock
ve has to be added to the NCQ blacklist. Max This does indeed look like a drive side issue to me (the controller is reporting CPBs with response flags 2 which as far as I can tell indicates it's still waiting for the drive to complete the request). -- Robert Hancock Saskatoon, SK, C

Re: Style Question

2007-03-11 Thread Robert Hancock
sing NULL is better than directly using 0 in C. In kernel, I know it used its own NULL, which may be defined as ((void*)0), but it's _still_ different from raw zero. So can I say using NULL is better than 0 in kernel? It's the preferred style, Sparse will complain about using 0 for a null

Re: libata extension

2007-03-11 Thread Robert Hancock
libata and ide sources and documentation but still dont have broad picture. I believe you should be able to do this by sending ATA pass-through SCSI commands into the device using SG_IO, without any kernel changes. It's really the mechanism that's meant for this.. -- Robert Hancock

Re: How soon is soon? MCP55 NCQ support on Linux...

2007-03-10 Thread Robert Hancock
upport for that chipset was late in coming but I think it does have it now too.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe l

Re: [patch 29/30] sata_nv: don't read shadow registers when in ADMA mode

2007-03-09 Thread Robert Hancock
en be able to usefully test? Yes, you should be able to. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in th

Re: [patch 29/30] sata_nv: don't read shadow registers when in ADMA mode

2007-03-09 Thread Robert Hancock
Jeff Garzik wrote: [EMAIL PROTECTED] wrote: From: Robert Hancock <[EMAIL PROTECTED]> Reading from the ATA shadow registers while we are in ADMA mode may cause undefined behavior. Don't read the ATA status register when completing commands for this reason, it shouldn't

Re: Sleeping thread not receive signal until it wakes up

2007-03-08 Thread Robert Hancock
just before you do the sleep, you'll sit there waiting for something that already occurred. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsu

Re: Question about memory mapping mechanism

2007-03-08 Thread Robert Hancock
mlock this buffer from the userspace application, rather than trying to achieve this in the driver.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the lin

[PATCH] sata_nv: revert use of notifiers for now

2007-03-08 Thread Robert Hancock
ned-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.21-rc3-git3/drivers/ata/sata_nv.c 2007-03-08 17:15:25.0 -0600 +++ linux-2.6.21-rc3-git3edit/drivers/ata/sata_nv.c 2007-03-08 17:19:42.0 -0600 @@ -874,8 +874,14 @@ if (status &

[PATCH] sata_nv: don't read shadow registers when in ADMA mode

2007-03-05 Thread Robert Hancock
result taskfile requested to execute in ADMA mode, since that requires accessing the shadow registers. We also still need to override tf_read since libata will read the result taskfile on a command failure, and we need to go into port register mode before allowing this. Signed-off-by: Robert

Re: data corruption with nvidia chipsets and IDE/SATA drives (k8 cpu errata needed?)

2007-03-04 Thread Robert Hancock
mmu_page); addr += PAGE_SIZE; iommu_page++; } Andi, have you had a look at this? I'm a bit surprised at the lack of reaction to this find.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECT

Re: CK804 SATA Errors (still got them)

2007-03-04 Thread Robert Hancock
efore applying your patch? I've done so now, assuming this _will_ work. The reason I ask is that your diff was offset by 12 lines versus -rc2. I assume it's OK, though I'm not a git expert. I diffed against rc2-git3 which has some CONFIG_PM ifdef changes, those shouldn't

Re: CK804 SATA Errors (still got them)

2007-03-04 Thread Robert Hancock
Alistair John Strachan wrote: Can you try reverting commit 721449bf0d51213fe3abf0ac3e3561ef9ea7827a (link below) and see what effect that has? http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h =721449bf0d51213fe3abf0ac3e3561ef9ea7827a Obviously, I'll let you know if i

Re: asm/atomic.h and user code

2007-03-03 Thread Robert Hancock
settings like CONFIG_SMP in order to actually be atomic, and that's not guaranteed in userspace. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line &qu

Re: CK804 SATA Errors (still got them)

2007-03-01 Thread Robert Hancock
Alistair John Strachan wrote: On Thursday 01 March 2007 15:13, Alistair John Strachan wrote: On Thursday 01 March 2007 14:45, Robert Hancock wrote: This one seems a bit different. This time it's not related to NCQ vs. non-NCQ (this is a non-NCQ write here), it's in ADMA mod

Re: CK804 SATA Errors (still got them)

2007-03-01 Thread Robert Hancock
efore), and from the CPB data it appears the command completed but the controller's registers aren't indicating that it has. Not sure if I've seen one like that before.. How easily can you reproduce this? -- Robert Hancock Saskatoon, SK, Canada To email, remove "n

Re: 2.6.20 SATA error

2007-02-28 Thread Robert Hancock
e patches to allow NCQ support on MCP51 and MCP61 chipsets back in October, but I haven't seen any, or information required to implement same.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancoc

Re: 2.6.20 SATA error

2007-02-28 Thread Robert Hancock
commands and non-NCQ commands. Hopefully this is fixed in 2.6.21-rc. This doesn't seem to be the issue here, since his system isn't using ADMA mode, for reasons unclear to me.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Hom

Re: solved Re: 2.6.20 SATA error

2007-02-28 Thread Robert Hancock
arm, There is one thing that seems odd, if you do have an nForce4 chipset, the kernel should be running the SATA controller in ADMA mode in 2.6.20, but it doesn't seem like it is from your dmesg output. Can you post the output of "lspci -vvn"? Also what kind of motherboa

Re: 2.6.20 SATA error

2007-02-28 Thread Robert Hancock
) sda: Write Protect is off sda: Mode Sense: 00 3a 00 00 SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA Some command timed out, apparently. From this one can't easily say why. Please send full dmesg. -- Robert Hancock Saskatoon, SK, Canad

Re: SMP performance degradation with sysbench

2007-02-27 Thread Robert Hancock
_mysql MySQL tries to get a mutex but it spends about 16.8% of CPU on 8 core machine. Curious that it calls pthread_mutex_trylock (as opposed to pthread_mutex_lock) so often. Maybe they're doing some kind of mutex lock busy-looping? -- Robert Hancock Saskatoon, SK, Canada To email, rem

Re: list.h , list_head and C++

2007-02-27 Thread Robert Hancock
[EMAIL PROTECTED] wrote: On Feb 26, 2:26 pm, Robert Hancock <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: My C++ program needs an intrusive list, possibly with RCU capabilities.The data structurelist_head, defined in /usr/include/ linux/list.h , fits perfectly these needs. You

Re: list.h , list_head and C++

2007-02-26 Thread Robert Hancock
they depend on are not guaranteed to work. Also keep in mind that using these structures probably makes your program a derivative of the kernel and would require your software to be released under the GPL. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [

Re: irq balancing question

2007-02-23 Thread Robert Hancock
2.6.19, too. You need to run the irqbalance daemon to do this, unless the interrupts are distributed in hardware (which only some machines do). -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -

Re: [PATCH] ACPI driver support for pata

2007-02-23 Thread Robert Hancock
s being able to drive a piece of hardware, does anything define which driver will get first dibs on attaching to the device when it's hotplugged? I don't know how this ordering will be enforced in that case. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam&quo

Re: Weird hard disk noise on shutdown (bug #7674)

2007-02-22 Thread Robert Hancock
. If you wait long enough after halting before you power down, you may not get the noise, since many laptop drives unload the heads after a fairly short period of inactivity, and so the heads are already unloaded when the power is shut off. -- Robert Hancock Saskatoon, SK, Canada To email,

Re: [PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver

2007-02-22 Thread Robert Hancock
: spurious interrupt (irq_stat 0x8 active_tag -84148995 sactive 0xf) Sounds like those are some that we should be blacklisting as well, unless Eric has a good reason why not (CCing). Can you provide the full firmware revision strings from those drives, i.e. from "hdparm -I"? -- Robe

Re: [PATCH] ACPI driver support for pata

2007-02-22 Thread Robert Hancock
er instead, since any PATA driver could take advantage of this feature. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-k

Re: libata FUA revisited

2007-02-22 Thread Robert Hancock
would be more likely to fit inside the queue.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: Weird hard disk noise on shutdown (bug #7674)

2007-02-22 Thread Robert Hancock
n adding a feature (IMHO). It's a feature that's in drivers/ide (I believe) but isn't in libata or the SCSI layer. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from th

Re: Weird hard disk noise on shutdown (bug #7674)

2007-02-21 Thread Robert Hancock
Robert Hancock wrote: Alan wrote: Stick some printk calls in drivers/ata/libata-eh.c in ata_eh_suspend, or turn on all the ATA debug and shutdown, the code should issue a cache flush followed by a standbynow1 command for each disk. Alan I believe it runs on suspend, but we don't run

[PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver

2007-02-21 Thread Robert Hancock
This patch adds in some NCQ blacklist entries taken from the Silicon Image Windows drivers' .inf files for the 3124 and 3132 controllers. These entries were marked as ""DisableSataQueueing". Assume these are in their blacklist for a reason and disable NCQ on these drives. S

[PATCH] sata_nv: complain on spurious completion notifiers

2007-02-21 Thread Robert Hancock
isn't outstanding, since the drive may be issuing spurious completions. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.21-rc1edit/drivers/ata/sata_nv.c.prev 2007-02-21 22:17:31.0 -0600 +++ linux-2.6.21-rc1edit/drivers/ata/sata_nv.c 2007-02-21 22:22:14.0

Re: [PATCH] ACPI driver support for pata

2007-02-21 Thread Robert Hancock
figured for UDMA/33 I can assure you that is an 80-wire cable on that device :-) I suppose next step is adding debug to see where it is having issues? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com

Re: Weird hard disk noise on shutdown (bug #7674)

2007-02-21 Thread Robert Hancock
tdown, do we? Tejun Heo had a patch for sd that could (optionally) trigger a START STOP UNIT command to spin the disk down after synchronizing the cache before shutdown, but I haven't heard anything of it lately.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nosp

Re: High CPU usage with sata_nv

2007-02-21 Thread Robert Hancock
Matthew Fredrickson wrote: On Feb 20, 2007, at 9:43 PM, Robert Hancock wrote: Matthew Fredrickson wrote: I have noticed something that might be related as well. I am working on a device driver that would have periodic data errors due to exceptionally long interrupt handling latency. I

Re: libata FUA revisited

2007-02-21 Thread Robert Hancock
n't support non-NCQ FUA, and those (especially the latter) seem to be very popular models. Likely Seagate didn't implement that command since they figured nobody would use that if they had NCQ.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PR

[PATCH] sata_nv: kill old private BMDMA helper functions

2007-02-20 Thread Robert Hancock
. The only thing we need to override as far as ADMA and BMDMA is the post_internal_cmd callback, where we should only call ata_post_internal_cmd if we are in port-register mode. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git14edit/drivers/ata/sata_nv.c.before_cleanup 2007

Re: High CPU usage with sata_nv

2007-02-20 Thread Robert Hancock
at problem at least on nForce4 chipsets.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: 2.6.20 kernel hang with USB drive and vfat doing ftruncate

2007-02-19 Thread Robert Hancock
this state? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED

Re: Serial related oops

2007-02-19 Thread Robert Hancock
coincidental, it is the only sane way to design hardware. You just can't go firing off interrupts without a driver having intentionally enabled them. There are a few devices that have had such issues, but they have been few and far between, certainly not enough to warrant the complexity o

Re: Serial related oops

2007-02-19 Thread Robert Hancock
to handle it and shut off the interrupt before it allows any interrupts to be enabled. (We have such a quirk for certain network controllers where the boot ROM can leave the chip generating interrupts on bootup.) -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam"

[PATCH RFC] libata: FUA updates

2007-02-19 Thread Robert Hancock
311x (since that one is known to have problems) as well as for ITE821x when in smart mode. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- Any comments on this version? It's essentially what I posted previously in "libata FUA revisited", except that the default for F

[PATCH 4/5] sata_nv: Use notifier for completion checks

2007-02-19 Thread Robert Hancock
, accessing them will likely result in a cache miss. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6edit/drivers/ata/sata_nv.c 2007-02-15 22:36:02.0 -0600 +++ linux-2.6.20-git6edit/drivers/ata/sata_nv.c.delayandfixes 2007-02-19 17:00:14.0 -0600 @@ -

[PATCH 3/5] sata_nv: Cleanup taskfile setup

2007-02-19 Thread Robert Hancock
This edits the taskfile setup to more closely match the way that libata sends the taskfile for other controllers. This avoids putting taskfile writes into the CPB buffer that are not needed according to the taskfile flags. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-

[PATCH 1/5] sata_nv: Add CPB register info to error_handler output

2007-02-19 Thread Robert Hancock
When error handling occurs with pending commands, output the contents of the next CPB count and next CPB index registers as well as the others, since these may be useful for debugging. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6edit/drivers/ata/sata_nv.c 2007

[PATCH 5/5] sata_nv: enable hotplug interrupt and fix some readl/readw mismatches

2007-02-19 Thread Robert Hancock
We already have code that handles hotplug interrupt indications in ADMA mode, this turns on the control flag that actually enables these interrupts. Also fixes some cases in the same functions where a 16-bit register was read using a readl instead of a readw. Signed-off-by: Robert Hancock

[PATCH 0/5] sata_nv: various cleanups and fixes

2007-02-19 Thread Robert Hancock
This patch series contains several fixes for issues I noticed while debugging some command timeout problems. None of these proved to be related to that issue, but they fall into the category of things we should be doing anyway. Split into separate patches to ease bisecting in case of issues. -

[PATCH 2/5] sata_nv: cleanup CPB and APRD initialization

2007-02-19 Thread Robert Hancock
Clean up the initialization of the CPB and APRD structures so that we strictly follow the rules for ordering of writes to the CPB flags and response flags, and prevent duplicate initialization. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6edit/drivers/ata/sat

[PATCH] libata: warn if speed limited due to 40-wire cable (v2)

2007-02-19 Thread Robert Hancock
ned up somewhat. Also, it's been inadvertently tested (it seems that pata_amd Nvidia cable detection is broken in current -git..) Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6/drivers/ata/libata-core.c 2007-02-11 17:31:19.0 -0600 +++ linux-2.6.20-g

[PATCH] sata_nv: delay on switching between NCQ and non-NCQ commands

2007-02-19 Thread Robert Hancock
: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6edit/drivers/ata/sata_nv.c.before_hacking 2007-02-15 18:19:13.0 -0600 +++ linux-2.6.20-git6edit/drivers/ata/sata_nv.c 2007-02-15 22:36:02.0 -0600 @@ -219,6 +219,7 @@ void __iomem * gen_block;

Re: forcedeth problems on 2.6.20-rc6-mm3

2007-02-19 Thread Robert Hancock
if (!np->in_shutdown) mod_timer(&np->oom_kick, jiffies + OOM_REFILL); Did anyone push this patch into mainline? forcedeth on 2.6.20-git14 is still completely broken without this patch. -- Robert Hancock Saskatoon, SK, Canada To email, remove "n

Re: libata FUA revisited

2007-02-19 Thread Robert Hancock
need to drain the drive queue before issuing the WRITE/FUA. And at that point we may as well not use the NCQ command, just go for the regular non-NCQ FUA write. I think that should be safe. Aside from the issue above, as I mentioned elsewhere, lots of NCQ drives don't support non-NCQ FUA

Re: pata_amd dropping to PIO on resume

2007-02-16 Thread Robert Hancock
ex to start with. It looks like pata_amd does an ata_pci_clear_simplex only for certain chip models, maybe this model needs it as well? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe

Re: 2.6.20 kernel hang with USB drive and vfat doing ftruncate

2007-02-16 Thread Robert Hancock
l hang and never return. It seems to be stuck in the idle loop(). On FAT filesystems this forces the entire file contents of that size to be written out with zeros. Are you sure the kernel just isn't busy writing out all that data to the disk? -- Robert Hancock Saskatoon, SK,

Re: GPL vs non-GPL device drivers

2007-02-16 Thread Robert Hancock
module-y := file1.o file2.o file3.o else # Normal Makefile KERNELDIR := /lib/modules/`uname -r`/build all:: $(MAKE) -C $(KERNELDIR) M=`pwd` $@ endif -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.c

Re: sata_nv ADMA controller lockup investigation

2007-02-15 Thread Robert Hancock
Jeff Garzik wrote: Robert Hancock wrote: It's curious that only the post-cache-flush command is having issues, and normal NCQ operation seems fine. Maybe it's related to that tag 0 being reused repeatedly? If you take cache flush out of the equation, what happens when NCQ is enab

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Robert Hancock
that calls the kernel build system, and it works fine. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

sata_nv ADMA controller lockup investigation

2007-02-14 Thread Robert Hancock
there's something wrong with the way we are giving the commands to the controller, using the APPEND register. That's another thing that's not in the ADMA standard. It's curious that only the post-cache-flush command is having issues, and normal NCQ operation seems fine. Maybe

Re: libata FUA revisited

2007-02-13 Thread Robert Hancock
Q on it entirely as obviously little thought or testing went into the implementation.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-

Re: SATA Drive No Longer Recognized In New 2.6.20 Kernel

2007-02-12 Thread Robert Hancock
from under the SCSI menu into a new ATA menu (in 2.6.19 I think). -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel&qu

Re: libata FUA revisited

2007-02-12 Thread Robert Hancock
d be nice if you add a comment why the drives are added for documentation. Will do shortly. Eric, do you have any info on the blacklisting of that Maxtor 7B250S0 drive? I would hope that Silicon Image would have a good reason for blacklisting that one.. -- Robert Hancock S

Re: libata FUA revisited

2007-02-11 Thread Robert Hancock
Robert Hancock wrote: Given the above, what I'm proposing to do is: -Remove the blacklisting of Maxtor BANC1G10 firmware for FUA. If we need to FUA-blacklist any drives this should likely be added to the existing "horkage" mechanism we now have. However, at this point I don&

libata FUA revisited

2007-02-11 Thread Robert Hancock
BANC1B70 HTS541060G9SA00 MB3OC60D HTS541080G9SA00 MB4OC60D HTS541010G9SA00 MBZOC60D (the latter 3 being Hitachi Travelstar drives) -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www

Re: NAK new drivers without proper power management?

2007-02-11 Thread Robert Hancock
d say the driver should just define a suspend function that returns -ENOSYS and then the user would know they have to remove that module, etc. before suspending (there is at least some distro script support for doing that automatically based on a config file), since it hasn't a hope of worki

[PATCH] sata_nv: add back some verbosity into ADMA error_handler

2007-02-11 Thread Robert Hancock
it won't spew at inappropriate times like suspend/resume. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6/drivers/ata/sata_nv.c 2007-02-11 17:31:19.0 -0600 +++ linux-2.6.20-git6edit/drivers/ata/sata_nv.c 2007-02-11 17:40:48.0 -0600 @@ -1442

pcim_enable_device BUGs for libata devices in 2.6.20-git6

2007-02-11 Thread Robert Hancock
y. If the event was something else, then pcim_enable_device complains because the device was previously enabled and never disabled. Not sure what the best way to fix this is? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http:

[PATCH] sata_nv: handle SError status indication

2007-02-11 Thread Robert Hancock
ADMA-capable controllers provide a bit in the status register that appears to indicate that the controller detected an SError condition. Update sata_nv to detect this and trigger error handling in order to handle the fault. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- drive

Re: sata_nv - ADMA issues with 2.6.20

2007-02-11 Thread Robert Hancock
probably a simpler way to test them than -mm right now - applying the 2.6.20-git6 patch on top of 2.6.20 should do it. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list

Re: [PATCH] keep track of network interface renaming

2007-02-11 Thread Robert Hancock
ng rid of all those hundreds of "PM: Adding info for" messages in recent kernels.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscri

Re: libsata doesn't like bus without master

2007-02-11 Thread Robert Hancock
Patrick Ale wrote: On 2/11/07, Robert Hancock <[EMAIL PROTECTED]> wrote: Patrick Ale wrote: > Something unrelated to the tests I am doing. > > I found out that the libsata driver doesn't really cope or likes the > idea that you might have a controller without a master dri

Re: NAK new drivers without proper power management?

2007-02-11 Thread Robert Hancock
n't use supend, the reason is that it doesn't work reliably, quite often due to driver issues. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the li

Re: libsata doesn't like bus without master

2007-02-11 Thread Robert Hancock
/driver/OS is allowed to support, but it is not required to.) A single drive should always be set to master (and connected to the end of the cable and not the middle, by the way). -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTEC

<    1   2   3   4   5   6   7   8   >