Kernel timers and jiffie wrap-around

2000-11-29 Thread Jamie
hanged. Surely I've misunderstood something in the timer code ? Can anyone shed some light on this ? Thanks for your help, -jamie. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 22/25] Generic dynamic per cpu refcounting

2012-11-29 Thread Jamie Lokier
n we > go to tear down. > > A coworker at lunch actually pointed out to me that the reason this is > true is just that modular arithmatic is still associative with addition > and subtraction. It's just like jiffies. Everyone understands jiffies arithmetic I hope. -- Jamie -- T

Re: [PATCH 09/11] liblockdep: support using LD_PRELOAD

2013-02-07 Thread Jamie Iles
gt; +int pthread_rwlock_init(pthread_rwlock_t *rwlock, > + const pthread_rwlockattr_t *attr) > +{ > + if (ll_pthread_rwlock_init == NULL) > + init_preload(); Why is this one special, doesn't init_preload being a constructor make this redundant? Jamie -- To unsubscribe fro

Re: [PATCH 09/11] liblockdep: support using LD_PRELOAD

2013-02-08 Thread Jamie Iles
On Thu, Feb 07, 2013 at 09:31:22AM -0500, Sasha Levin wrote: > On 02/07/2013 05:28 AM, Jamie Iles wrote: > >> +int pthread_rwlock_init(pthread_rwlock_t *rwlock, > >> > +const pthread_rwlockattr_t *attr) > >> > +{ > >>

Re: [PATCH 2/2] ARM: remove mach .init_irq for irqchip_init users

2013-04-03 Thread Jamie Iles
On Thu, Mar 28, 2013 at 09:46:45PM +0100, Maxime Ripard wrote: > Now that the arm core code calls irqchip_init, we can remove it from all > the machines that were using it. > > Signed-off-by: Maxime Ripard > Acked-by: Simon Horman Acked-by: Jamie Iles Thanks Maxime! -- To u

Re: [PATCH 00/11] x86/microcode: Early load microcode

2012-10-01 Thread Jamie Gloudon
Seems like a better alternative to microcode_ctl which some distros don't contain. Regards, Jamie Gloudon On Mon, Oct 01, 2012 at 06:27:45PM +0200, Borislav Petkov wrote: > On Mon, Oct 01, 2012 at 12:11:51PM -0400, Jamie Gloudon wrote: > > Hey, > > > > Any chance

Re: [PATCH 00/11] x86/microcode: Early load microcode

2012-10-02 Thread Jamie Gloudon
On Tue, Oct 02, 2012 at 06:39:54AM +0200, Borislav Petkov wrote: > On Mon, Oct 01, 2012 at 07:37:04PM -0400, Jamie Gloudon wrote: > > On Mon, Oct 01, 2012 at 06:27:45PM +0200, Borislav Petkov wrote: > > > On Mon, Oct 01, 2012 at 12:11:51PM -0400, Jamie Gloudon

Re: [PATCH] crypto: picoxcell: Add terminating entry for platform_device_id table

2012-11-04 Thread Jamie Iles
Hi Axel, On Sun, Nov 04, 2012 at 11:36:25PM +0800, Axel Lin wrote: > The platform_device_id table is supposed to be zero-terminated. > > Signed-off-by: Axel Lin Good spot! Thanks for fixing. Acked-by: Jamie Iles Jamie -- To unsubscribe from this list: send the line "uns

[PATCH] scripts/sortextable: support objects with more than 64K sections.

2012-11-05 Thread Jamie Iles
Building with a large config and -ffunction-sections results in a large number of sections and sortextable needs to be able to handle that. Implement support for > 64K sections as modpost does. Cc: David Daney Cc: H. Peter Anvin Signed-off-by: Jamie Iles --- scripts/sortextable.c |

Re: [RFC] page-table walkers vs memory order

2012-07-30 Thread Jamie Lokier
rresponding check instructions (ld.c / chk.a). The default is 'enable'. I don't know if that results in value speculation of the relevant kind. -- Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.k

[PATCH] workqueue: defer to waiting stop_machine

2013-08-28 Thread Jamie Liu
: Jamie Liu --- include/linux/stop_machine.h | 13 + kernel/stop_machine.c| 16 kernel/workqueue.c | 4 +++- 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/include/linux/stop_machine.h b/include/linux/stop_machine.h index 3b5e910..a315f92

Re: [PATCH] workqueue: cond_resched() after processing each work item

2013-08-28 Thread Jamie Liu
hine while preventing anything else from > happening on all other CPUs. The two would deadlock. > > Jmamie Liu reports that this deadlock scenario exists around s/Jmamie/Jamie/ > scsi_requeue_run_queue() and libata port multiplier support, where one > port may exclude command pro

Re: [PATCH] workqueue: defer to waiting stop_machine

2013-08-29 Thread Jamie Liu
Hi Andreas, Just calling cond_resched() does appear to be the more general solution, and is already on tj/wq/for-next as b22ce2785d97423846206cceec4efee0c4afd980 "workqueue: cond_resched() after processing each work item". Thanks, Jamie On Thu, Aug 29, 2013 at 1:45 PM, Andreas M

Re: [PATCHv2 3/5] serial: 8250_dw: Map IO memory

2012-12-03 Thread Jamie Iles
> + uart.port.flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_FIXED_PORT; > uart.port.dev = &pdev->dev; > > + uart.port.membase = ioremap(regs->start, regs->end - regs->start); Doesn't this have an off-by-one error? Perhaps: + uart.port.membase = ioremap(r

Re: [PATCHv2 0/5] serial: 8250: 8250_dw changes and dynamic capabilities

2012-12-03 Thread Jamie Iles
able to > deliver their UART's capabilities when they are registering ports. Other than my comment on 3/5 it looks great. Reviewed-by: Jamie Iles Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vge

Re: [PATCHv3 3/5] serial: 8250_dw: Map IO memory

2012-12-04 Thread Jamie Iles
Looks good to me! On Tue, Dec 04, 2012 at 05:21:52PM +0200, Heikki Krogerus wrote: > This needs to be done in order to later access the > Designware specific registers. > > Signed-off-by: Heikki Krogerus Reviewed-by: Jamie Iles -- To unsubscribe from this list: send the line

Re: [PATCH] scripts/sortextable: support objects with more than 64K sections.

2012-12-07 Thread Jamie Iles
On Mon, Nov 05, 2012 at 09:06:44AM +, Jamie Iles wrote: > Building with a large config and -ffunction-sections results in a large > number of sections and sortextable needs to be able to handle that. > Implement support for > 64K sections as modpost does. > > Cc: David Dan

Re: [PATCH] ARM: ftrace: Ensure code modifications are synchronised across all cpus

2012-12-10 Thread Jamie Lokier
t; exception return to get back to the new code -- depends on how your > stop/resume code works). If I've understood that exchange, it implies that using patch_text() to replace an instruction not in the list of special ones, with a trap or jump, isn't ok? And so it's ok to repla

Re: [3.7-rc5/rc6 regression] "drm/nvc0/disp: fix regression in vblank semaphore release" broke nouveau driver and mplayer

2012-11-17 Thread Jamie Heilman
-xorg-video-nouveau 1:1.0.1-3 and mplayer2 2.0-600-g95e81df w/the xv video output driver > git bisect identified the following culprit: > > 11d92561c81be2f4a7af37f035e1af294b960abe is the first bad commit I bisected to the same commit as well. -- Jamie Heilman http:

Re: [PATCH v2 3/4] clocksource: dw_apb_timer_of: select DW_APB_TIMER

2013-06-04 Thread Jamie Iles
the core timer and the dt addon. > > As dw_apb_timer_of always depends on dw_apb_timer let it select > DW_APB_TIMER itself without the need for every platform to do it. > > Signed-off-by: Heiko Stuebner Acked-by: Jamie Iles -- To unsubscribe from this list: send the line "un

Re: [PATCH v2 2/4] clocksource: dw_apb_timer_of: add clock-handling

2013-06-04 Thread Jamie Iles
> The clock-frequency property is kept to act as fallback if no clocks > are specified. > > Signed-off-by: Heiko Stuebner Acked-by: Jamie Iles -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

Re: [PATCH v2 1/4] clocksource: dw_apb_timer_of: enable the use the clocksource as sched clock

2013-06-04 Thread Jamie Iles
source as sched_clock instead. > > Therefore enable the driver to distiguish between devices with and without > sptimer based on the devicetree data and select the correct timer as > sched_clock. > > Signed-off-by: Heiko Stuebner Acked-by: Jamie Iles -- To unsubscribe from this list:

Re: [PATCH v2 4/4] clocksource: dw_apb_timer_of: use clocksource_of_init

2013-06-04 Thread Jamie Iles
"picochip,pc3x2-timer", > dw_apb_timer_init); > +CLOCKSOURCE_OF_DECLARE(apb_timer, "snps,dw-apb-timer-osc", > dw_apb_timer_init); I think maybe we also want CLOCKSOURCE_OF_DECLARE() instances for the contents of sptimer_ids for completeness, otherwise looks good. Ac

Re: [ 130/184] CVE-2012-4508 kernel: ext4: AIO vs fallocate stale

2013-06-07 Thread Jamie Iles
Hi Ben, Willy, On Fri, Jun 07, 2013 at 06:42:05AM +0100, Ben Hutchings wrote: > On Tue, 2013-06-04 at 19:23 +0200, Willy Tarreau wrote: > > 2.6.32-longterm review patch. If anyone has any objections, please let me > > know. > > > > -- > > d

Re: [PATCH 0/5] MIPS/tty/8250: Use standard 8250 drivers for OCTEON

2013-06-18 Thread Jamie Iles
s inclomplete serial support. > > Then we just make minor patches to 8250_dw, and rip out all this > OCTEON code. > > Since the patches are all interdependent, we might want to merge them > via a single tree (perhaps Ralf's MIPS tree). Looks good! Reviewed-by: Jamie Iles for

[PATCH] scripts/sortextable: support objects with more than 64K sections.

2013-07-25 Thread Jamie Iles
Building with a large config and -ffunction-sections results in a large number of sections and sortextable needs to be able to handle that. Implement support for > 64K sections as modpost does. Cc: Rusty Russell Signed-off-by: Jamie Iles --- scripts/sortextable.c |

Re: [PATCH 04/20] ARM: picoxcell: Remove init_irq declaration in machine description

2013-05-14 Thread Jamie Iles
Hi Maxime, Thanks for this, I'll add it to my tree. I've modified it slightly to kill off the other irq includes, hopefully that's okay with you. Thanks, Jamie 8<--- >From 4b83f75a7af388aaf5f79ccf72c37074bc9166da Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Tue,

Re: dw_apb_timer_of.c: remove parts that were picoxcell-specific

2013-05-07 Thread Jamie Iles
t exists on both > platforms, and adds missing of_node_put() in dw_apb_timer_init(). > > Signed-off-by: Pavel Machek Acked-by: Jamie Iles -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: dw_apb_timer_of.c: remove parts that were picoxcell-specific

2013-04-26 Thread Jamie Iles
rk as osctimer_ids is private to the dw_apb_timer files as is timer_get_base_and_rate. The other timer is unused in picoxcell though so dw_apb_timer_init(1), something like the patch below on top of yours. Thanks, Jamie diff --git i/arch/arm/mach-picoxcell/common.c w/arch/arm/mach-picoxce

Re: [patch 01/15] clocksource: apb_timer: Remove unsused function

2013-04-26 Thread Jamie Iles
Hi Thomas, On Thu, Apr 25, 2013 at 08:31:43PM -, Thomas Gleixner wrote: > Signed-off-by: Thomas Gleixner > Cc: Jamie Iles Looks good, thanks for fixing this. Acked-by: Jamie Iles -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

Re: [PATCH 04/20] ARM: picoxcell: Remove init_irq declaration in machine description

2013-05-20 Thread Jamie Iles
On Thu, May 16, 2013 at 10:19:56AM +0200, Maxime Ripard wrote: > Hi Jamie, > > Le 14/05/2013 18:20, Jamie Iles a écrit : > > Hi Maxime, > > > > Thanks for this, I'll add it to my tree. I've modified it slightly to > > kill off the other irq includes,

Re: [PATCH 1/2] clocksource: dw_apb: remove unused header

2013-05-27 Thread Jamie Iles
ultz > Cc: Thomas Gleixner > Cc: Jamie Iles Acked-by: Jamie Iles -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

v3.5 nfsd4 regression; utime sometimes takes 40+ seconds to return

2012-08-14 Thread Jamie Heilman
49bfe90136653c. (I say based on, because I have to apply the patch from http://marc.info/?l=linux-nfs&m=133950479803025 or face additional problems.) I'll try to get full rcpdebug traces on client and server as the delay is occuring in the hopes that helps pin things down, and post them sep

Re: v3.5 nfsd4 regression; utime sometimes takes 40+ seconds to return

2012-08-15 Thread Jamie Heilman
Jamie Heilman wrote: > I'll try to get full rcpdebug traces on client and server as the delay > is occuring in the hopes that helps pin things down, and post them > separately. OK, here are the logs from client and server, where a run of my test program under strace -T resulted in:

Re: v3.5 nfsd4 regression; utime sometimes takes 40+ seconds to return

2012-08-16 Thread Jamie Heilman
J. Bruce Fields wrote: > On Wed, Aug 15, 2012 at 01:58:54PM +0000, Jamie Heilman wrote: > > Jamie Heilman wrote: > > > I'll try to get full rcpdebug traces on client and server as the delay > > > is occuring in the hopes that helps pin things down, and post them >

Re: v3.5 nfsd4 regression; utime sometimes takes 40+ seconds to return

2012-08-16 Thread Jamie Heilman
one that was updated, but the > former was the one that the callback used. > > Symptoms were a long delay on utime(). This is because the utime() > generated a setattr which recalled a delegation, but the cb_recall was > ignored by the client because it had the wr

Re: power: Add simple poweroff-gpio driver

2012-12-14 Thread Jamie Lentin
Commit: 96ff0f5c7efd4a2205c48a76a6a1fcd2731e6128 > Parent: f4a00139b7cbeff538e616a21f6b57249a9d3ed8 > Author: Jamie Lentin > AuthorDate: Sat Nov 17 09:51:04 2012 +0100 > Committer: Jason Cooper > CommitDate: Sat Nov 24 02:56:38 2012 + > > power: Add simple poweroff-gpio drive

Re: x86_64: wrong DirectMap kB

2012-10-01 Thread Jamie Gloudon
your output looks like with the full amount on 3.6? Jamie Gloudon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FA

Re: x86_64: wrong DirectMap kB

2012-10-01 Thread Jamie Gloudon
I was also skeptical about DirectMap results added up being less than MemTotal. I see now, Thanks for the explanation. Jamie Gloudon On Mon, Oct 01, 2012 at 08:23:38AM -0700, Hugh Dickins wrote: > On Mon, 1 Oct 2012, Jamie Gloudon wrote: > > > > Interesting. I am able to rep

Re: [PATCH 00/11] x86/microcode: Early load microcode

2012-10-01 Thread Jamie Gloudon
Hey, Any chance of this getting merge for the 3.7 cycle? Regards, Jamie Gloudon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Pleas

Re: jffs2: -ENOSPC when truncating file?!

2008-02-24 Thread Jamie Lokier
here should be enough space for the size change node, provided GC is invoked when necessary and the node sizes are compatible for this in corner cases. -- Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majord

Proposal for "proper" durable fsync() and fdatasync()

2008-02-25 Thread Jamie Lokier
For a while, I've been meaning to bring it up on linux-kernel... The fsync problem - Chris Wedgwood wrote: > On Mon, Feb 25, 2008 at 08:50:40PM +, Jamie Lokier wrote: > > > On Linux (and other host OSes), fdatsync() and fsync() don't always > > commit

Re: Proposal for "proper" durable fsync() and fdatasync()

2008-02-25 Thread Jamie Lokier
Jeff Garzik wrote: > Jamie Lokier wrote: > >By durable, I mean that fsync() should actually commit writes to > >physical stable storage, > > Yes, it should. Glad we agree :-) > >I was surprised that fsync() doesn't do this already. There was a lot > >of ef

Re: Proposal for "proper" durable fsync() and fdatasync()

2008-02-26 Thread Jamie Lokier
Andrew Morton wrote: > On Tue, 26 Feb 2008 07:26:50 +0000 Jamie Lokier <[EMAIL PROTECTED]> wrote: > > > (It would be nicer if sync_file_range() > > took a vector of ranges for better elevator scheduling, but let's > > ignore that :-) > > Two passes: >

Re: Proposal for "proper" durable fsync() and fdatasync()

2008-02-26 Thread Jamie Lokier
no_ new APIs. It offers ordering barriers only, which aren't enough. I tried to explain, discuss some changes and then suggest optimisations. -- Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo

Re: Proposal for "proper" durable fsync() and fdatasync()

2008-02-26 Thread Jamie Lokier
equivalent to AIO-style fdatasync() on a limited range of offsets, and WAIT_AFTER seems to be equivalent to waiting for any previously issued such ops to complete. Any data access metadata updates that btrfs must make for fdatasync(), it must also make for sync_file_range(), for the limited range of o

Re: Proposal for "proper" durable fsync() and fdatasync()

2008-02-26 Thread Jamie Lokier
lush not just the disks with data pages, but the _other_ disks in a software RAID with data pointer metadata pages, but ideally not all of them (think database journal commit). That can be implemented with per-buffer pending-barrier/flush flags (like I described for pages in the first mail), which

Re: Proposal for "proper" durable fsync() and fdatasync()

2008-02-26 Thread Jamie Lokier
fdatasync() work well, with a genuine flush (or equivalent (see FUA), only when required, and not a mere ordered barrier), no inode write, and to make sync_file_range()[*] offer the fancier applications finer controls which reflect what they actually need. [*] - or whatever. -- Jamie -- To un

Re: Proposal for "proper" durable fsync() and fdatasync()

2008-02-26 Thread Jamie Lokier
ce in most cases. Apps: don't always want a full flush; sometimes a barrier would do. -- Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: Proposal for "proper" durable fsync() and fdatasync()

2008-02-26 Thread Jamie Lokier
Jörn Engel wrote: > On Tue, 26 February 2008 15:28:10 +0000, Jamie Lokier wrote: > > > > > One interesting aspect of this comes with COW filesystems like btrfs or > > > logfs. Writing out data pages is not sufficient, because those will get > > > lost unless t

Negative module use count for usb/acm

2001-04-03 Thread Jamie Lokier
This is kernel 2.4.2, as kernel 2.4.3 doesn't seem to work with pppd's chat program. Spot the incongruity below! (It will go to -4 when I disconnect). This is on a laptop, which is suspended from time to time. Maybe this gives a clue as to what's causing the fault. enjoy, -

Re: [Linux-fbdev-devel] Re: fbcon slowness [was NTP on 2.4.2?]

2001-04-04 Thread Jamie Lokier
ven on Intel MTRRs are not enabled for 2.5M framebuffers. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: __switch_to macro

2001-04-06 Thread Jamie Lokier
r program then tries to access data referenced by that segment register, user space will get a general_protection fault. As it's only user space that calls modify_ldt to invalidate an LDT entry, that's reasonable. There's one thing that confuses me: don't you get a segment_not_present fault? I

Re: __switch_to macro

2001-04-06 Thread Jamie Lokier
l.. I peeked into traps.c.. I do seem a call to die_if_no_fixup > in this function. And I think loadsegment is already making an entry in > exception table. Ah, you're right. I didn't follow DO_ERROR all the way to do_trap and hency search_exception_table. -- Jamie - To unsubsc

Re: How to build modules outside the kernel tree? [Was: Proper way to release binary driver?]

2001-04-08 Thread Jamie Lokier
ke" builds and installs a driver module written with (more or less) the 2.4 API on any kernel from 2.0 to 2.4, and the driver source is not full of ifdefs. I suppose you're wondering where to get these files. Mail me and I'll see if there's much demand. cheers, -- Jamie - T

Re: build -->/usr/src/linux

2001-04-08 Thread Jamie Lokier
Miquel van Smoorenburg wrote: > .. but there should be a cleaner way to get at the CFLAGS used > to compile the kernel. There is a way though I'd not call it clean. Here is an extract from the Makefile I am using for separately-distributed modules. It should work with kernels 2.0 to 2.4, all su

Re: build -->/usr/src/linux

2001-04-09 Thread Jamie Lokier
the kernel's reconfigured, a new file needs to be created. For 2.2 kernels it must depend on whether SMP is defined too. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: build -->/usr/src/linux

2001-04-10 Thread Jamie Lokier
#x27;re hard enough to do a cross compile, you can build external modules using "make KERNEL_RELEASE=2.4.2 KERNEL_SOURCE=/home/jamie/cross_compiling/kernel ARCH=mips64" or whatever. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body o

Re: build -->/usr/src/linux

2001-04-10 Thread Jamie Lokier
t; * > * Nobody is assuming that. If you're hard enough to do a cross compile, > * you can build external modules using "make KERNEL_RELEASE=2.4.2 > * KERNEL_SOURCE=/home/jamie/cross_compiling/kernel ARCH=mips64" or > * whatever. > > Applications make that assumption

Re: build -->/usr/src/linux

2001-04-10 Thread Jamie Lokier
for module packages to look there _unless_ you say otherwise. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: No 100 HZ timer !

2001-04-10 Thread Jamie Lokier
's no coincidence that I've had to write another very similar event loop recently. You can see, this sort of thing is a real waste of CPU. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majo

Re: No 100 HZ timer !

2001-04-10 Thread Jamie Lokier
ng X extensions for this working Last time I looked at XF86DGA (years ago), it seemed to have the right hooks in place. Just a matter of server implementation. My recollection is dusty though. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Re: No 100 HZ timer !

2001-04-10 Thread Jamie Lokier
at's a 1990s problem that doesn't need a 2000s solution though :-) -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC] Ext2 Directory Index - File Structure

2001-04-11 Thread Jamie Lokier
Daniel Phillips wrote: > ls already can't handle the directories I'm working with on a regular > basis. It's broken and needs to be fixed. A merge sort using log n > temporary files is not hard to write. ls -U | sort should do the trick. -- Jamie - To unsubscribe

Re: No 100 HZ timer !

2001-04-11 Thread Jamie Lokier
a very complex thing, and there are ways to optimise them for typical cases like the above. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: No 100 HZ timer !

2001-04-11 Thread Jamie Lokier
e vsync IRQs fine. E.g. TVGA > 8900C. Think of the original 64k and 256k VGA cards. I think some of those didn't have an irq, but did have a way to read the progress of the raster, which you could PLL to using timer interrupts. Some video games still look fine at 320x200 :-) -- Jamie

Re: No 100 HZ timer !

2001-04-11 Thread Jamie Lokier
. There's literature online about this class of problems: look up "event set" and "simulation" and "fast priority queue". enjoy, -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] 2nd try: i386 rw_semaphores fix

2001-04-12 Thread Jamie Lokier
stream. This means that "memory" acts as a "compiler read barrier". > In short: I disagree 100%. A "memory" clobber -does- effectively tell the > compiler that memory is read. If the compiler doesn't realize that, then > it's a compiler bug wai

Re: No 100 HZ timer !

2001-04-12 Thread Jamie Lokier
aches and so on. In theory the memory is reclaimed as required :-) It's not a big issue with timers, as the timer elements are fixed size structures that tend to be embedded in other structures. So the lifetime of the timer element is the same as the lifetime of the object associated with the ti

Re: No 100 HZ timer !

2001-04-12 Thread Jamie Lokier
ransferred over the PCI bus). -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: CML2 1.0.0 release announcement

2001-04-12 Thread Jamie Lokier
ble RED, I won't realise that I need to enable traffic shaping first to discover the RED option. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: No 100 HZ timer!

2001-04-13 Thread Jamie Lokier
) removal. You've just described the same as the current implementation, but with lists for longer term timers. I.e. slower. With your coarser points, you have to sort the front elements of the coarse list into a fine one from time to time. The idea of having jiffie-point pointers into a data

Re: badly punctuated parameter list in `#define' (2.4.3-ac5 and 2.4.4 -pre2)

2001-04-13 Thread Jamie Lokier
so perhaps this is not required? -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC] Ext2 Directory Index - File Structure

2001-04-13 Thread Jamie Lokier
Daniel Phillips wrote: > Jamie Lokier wrote: > > Daniel Phillips wrote: > > > ls already can't handle the directories I'm working with on a regular > > > basis. It's broken and needs to be fixed. A merge sort using log n > > > temporar

Re: Data-corruption bug in VIA chipsets

2001-04-13 Thread Jamie Lokier
, or the Tyan in particular? I've sent several reports of sudden system death on a VIA motherboard, that were confirmed by a few other people. It's still present in 2.2: Mandrake 7's installer froze, twice, until I added "ide=nodma" (or whatever the option is). Note, this

Re: No 100 HZ timer!

2001-04-13 Thread Jamie Lokier
george anzinger wrote: > If we are to do high-res-timers, I think we will always have to do some > sort of a sort on insert. Yes, that's called a priority queue... (And you don't actually sort on each insertion). -- Jamie - To unsubscribe from this list: send the line "uns

Re: No 100 HZ timer!

2001-04-13 Thread Jamie Lokier
imers are often removed before percolating down to the smallest tables. It is possible to produce a general purpose heap which also has this property. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: device driver questions

2001-04-13 Thread Jamie Lokier
ice's PCI configuration to have a 4k or more sized window. (You said you were willing to move functionality into the hardware, so I assume you can do this). That guarantees it will be page aligned, and without other devices overlapping in userspace. -- Jamie - To unsubscribe from this list:

Re: No 100 HZ timer!

2001-04-15 Thread Jamie Lokier
, but then you'd have to deal with memory allocation failures and memory deadlocks, making add_timer rather complicated. It's not acceptable for add_timer to fail or require kmalloc(). -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: No 100 HZ timer!

2001-04-17 Thread Jamie Lokier
at has > been discussed here has a O(log(n)) removal time. Several priority queue structures support removal in O(1) time. Perhaps you are thinking of the classic array-based heap, for which removal is O(log n) in the general case. -- Jamie - To unsubscribe from this list: send the line "

Re: Let init know user wants to shutdown

2001-04-23 Thread Jamie Lokier
BIOS is making the speaker beep), then syncing the disk, then maybe another pause, then maybe some more disk activity, then finally shutting down. 2.3 started the disk activity immediately and didn't pause. Perhaps 2.4.3 mm problems?) -- Jamie - To unsubscribe from this list: send the line

Re: Reason (was: Re: dropcopyright script)

2001-02-14 Thread Jamie Lokier
lt;;-)> all files should begin with a short description of the contents of the file, 1 or 2 lines long. The copyright notice comes next. Surely that's enough to identify an icon? -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messa

Re: x86 ptep_get_and_clear question

2001-02-15 Thread Jamie Lokier
[Added Linus and linux-kernel as I think it's of general interest] Kanoj Sarcar wrote: > Whether Jamie was trying to illustrate a different problem, I am not > sure. Yes, I was talking about pte_test_and_clear_dirty in the earlier post. > Look in mm/mprotect.c. Look at the

Re: x86 ptep_get_and_clear question

2001-02-15 Thread Jamie Lokier
ic to one architecture. Do all SMP CPUs support by Linux do the same thing on converting TLB entries from clean to dirty, or do they have a subtle, easily missed data integrity problem? -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: x86 ptep_get_and_clear question

2001-02-15 Thread Jamie Lokier
s? I can vaguely imagine some COW optimisation where the pte is updated to be writable with the new page's address, and there is no need to flush other processor TLBs because they will do so when they first write to the page. (But of course you have to be careful synchronising with other u

Re: x86 ptep_get_and_clear question

2001-02-15 Thread Jamie Lokier
interesting thought experiment though is this: << lock; read pte pte |= dirty write pte >> end lock; if (!present(pte)) do_page_fault(); It would have a mighty odd effect wouldn't it? -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: x86 ptep_get_and_clear question

2001-02-15 Thread Jamie Lokier
to want to make > them bigger than necessary - so saving off the source address is > unlikely. Then again, these hypothetical addresses etc. aren't part of the associative lookup, so could be located in something like an ordinary cache ram, with just an index in the TLB itself. -- Jamie

Re: x86 ptep_get_and_clear question

2001-02-16 Thread Jamie Lokier
) is used by several garbage collectors, including threaded ones. Maybe mprotect() isn't the best primitive for those anyway, but it's what they have to work with atm. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

Re: x86 ptep_get_and_clear question

2001-02-16 Thread Jamie Lokier
t; or "double scan" schemes for mprotect() and it can stay as fast as possible. Btw, a possible mprotect optimisation: there is no need for flush_tlb_range() when increasing permissions. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: x86 ptep_get_and_clear question

2001-02-16 Thread Jamie Lokier
k (_PAGE_CHG_MASK, pte); > atomic_set_mask (pgprot_val(newprot), *pte); > > for multi threaded apps. cmpxchg is probably faster. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: x86 ptep_get_and_clear question

2001-02-16 Thread Jamie Lokier
ult to test. If anyone reports the message, _then_ we think about the problem some more. Ben, fancy writing a boot-time test? -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: x86 ptep_get_and_clear question

2001-02-16 Thread Jamie Lokier
(don't call > free_pages_ok() until flush_tlb_ipi returned). The difference is that we > might have to perform a second pass to clear any spurious 0x40 bits. That second pass is what I had in mind. > * munmap(file): No. Second pass required for correct msync behaviour. It is? -- Jam

Re: x86 ptep_get_and_clear question

2001-02-16 Thread Jamie Lokier
re and impossible to work around processor bug has to do with this thread. It doesn't actually change page fault handling, does it? -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info a

Re: x86 ptep_get_and_clear question

2001-02-16 Thread Jamie Lokier
with write, change with lock; > . > . > . > > But you'll never prove that you tested every combination. Indeed. -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.

Re: [rfc] Near-constant time directory index for Ext2

2001-02-21 Thread Jamie Lokier
, so such massive changes are out of question > and your log n access argument is right. A gigantic hash table has serious problems with non-locality of reference. Basically any regular access pattern you started with is destroyed. This is a problem with pageable RAM, let alone disks with mi

Re: [NFS] Updated patch for the [2.4.x] NFS 'missing directory entry a.k.a. IRIX server' problem...

2001-02-27 Thread Jamie Lokier
(I hacked getdents to return d_type). d_type is quite effective for `find' type scans. I really ought to release an updated treescan -- the intent was always to replace the backend of `find' but I got caught up trying to optimise the order of open/readdir/close sequences and then on to oth

Re: binfmt_script and ^M

2001-02-27 Thread Jamie Lokier
hich takes a list of files or standard input as argument: #!/usr/bin/perl -pi s/\r\n$/\n/ -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.htm

Re: [OT] Re: binfmt_script and ^M

2001-02-27 Thread Jamie Lokier
Tim Waugh wrote: > > Isn't `perl' overkill? Why not just: > > > > tr -d '\r' > > while read line; do echo ${line%?}; done And those can be convert a set of files as "fromdos *.c" can they? :-) -- Jamie - To unsubscribe from this list

Re: binfmt_script and ^M

2001-02-28 Thread Jamie Lokier
chooses the interpreter based on filename :-) -- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: FS callback routines

2001-01-10 Thread Jamie Lokier
cute permission on the directory. Also, you are getting notifications for unlinked files, which perhaps you should not be able to know anything about. (If the directory wasn't accessible when the file was unlinked for example, but was made accessible later). -- Jamie - To unsubscribe from this

  1   2   3   4   5   >