Re: [PATCH 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-10 Thread Peter Chubb
>>>>> "Javier" == Javier Martinez Canillas >>>>> writes: Javier> The Exynos interrupt combiner IP looses its state when the SoC s/looses/loses/ Peter C -- Dr Peter Chubb

Re: [PATCH 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-10 Thread Peter Chubb
Javier == Javier Martinez Canillas javier.marti...@collabora.co.uk writes: Javier The Exynos interrupt combiner IP looses its state when the SoC s/looses/loses/ Peter C -- Dr Peter Chubb peter.chubb AT nicta.com.au

Re: [PATCH] Documentation: ARM: EXYNOS: Describe boot loaders interface

2015-06-06 Thread Peter Chubb
-boot/blob/odroidxu3-v2012.07/board/samsung/smdk5420/lowlevel_init.S at symbol nscode_base near line 104 -- Dr Peter Chubb peter.chubb AT nicta.com.au http://www.ssrg.nicta.com.au Software Systems Research Group/NICTA -- To unsubscribe from this list: send the line

Re: [PATCH] Documentation: ARM: EXYNOS: Describe boot loaders interface

2015-06-06 Thread Peter Chubb
/lowlevel_init.S at symbol nscode_base near line 104 -- Dr Peter Chubb peter.chubb AT nicta.com.au http://www.ssrg.nicta.com.au Software Systems Research Group/NICTA -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] debug: Do not permit CONFIG_DEBUG_STACK_USAGE=y on IA64 or PARISC

2012-07-26 Thread Peter Chubb
t; but not all of them. Ingo> Yes, that's another possible solution, assuming that it's really Ingo> only about the up/down difference. Ingo> Thanks, IA64 has two stacks -- the standard one, that grows down, and the register stack engine backing store, that grows up. The usual mechanisms

Re: [PATCH] debug: Do not permit CONFIG_DEBUG_STACK_USAGE=y on IA64 or PARISC

2012-07-26 Thread Peter Chubb
. Peter C -- Dr Peter Chubb peter.chubb AT nicta.com.au http://www.ssrg.nicta.com.au Software Systems Research Group/NICTA -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

Fix compilation with gcc 4.2

2007-08-08 Thread Peter Chubb
a zx1_defconfig kernel with gcc 4.2 on IA64. Signed-off-by: Peter Chubb <[EMAIL PROTECTED]> Index: linux-2.6-git/kernel/profile.c === --- linux-2.6-git.orig/kernel/profile.c 2007-08-09 12:10:19.921216500 +1000 +++ linux-2.6-git/

Fix compilation with gcc 4.2

2007-08-08 Thread Peter Chubb
a zx1_defconfig kernel with gcc 4.2 on IA64. Signed-off-by: Peter Chubb [EMAIL PROTECTED] Index: linux-2.6-git/kernel/profile.c === --- linux-2.6-git.orig/kernel/profile.c 2007-08-09 12:10:19.921216500 +1000 +++ linux-2.6-git/kernel

Re: [RFC] Deferred interrupt handling.

2007-07-18 Thread Peter Chubb
this working to pass interrupts to a type-II (hosted) virtual machine monitor running a guest kernel with native drivers. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia - To unsubscribe from this list

Re: [RFC] Deferred interrupt handling.

2007-07-18 Thread Peter Chubb
this working to pass interrupts to a type-II (hosted) virtual machine monitor running a guest kernel with native drivers. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia - To unsubscribe from this list

Re: linux-ia64 build warning messages

2007-06-06 Thread Peter Chubb
ey reference. But I'm no gcc guru. The alternative is to get modpost to ignore such references, at the cost of perhaps missing a real problem somewhere. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT

Re: linux-ia64 build warning messages

2007-06-06 Thread Peter Chubb
problem somewhere. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: BUG: sleeping function called from invalid context at kernel/fork.c:385

2007-06-03 Thread Peter Chubb
een 'acpi_sba_ioc_driver' and 'ioc_seq_ops') WARNING: arch/ia64/hp/common/built-in.o(.sdata+0x0): Section mismatch: reference to .init.data:__setup_str_sba_page_override before 'reserve_sba_gart' (at offset -0x204c2613) -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu

Re: BUG: sleeping function called from invalid context at kernel/fork.c:385

2007-06-03 Thread Peter Chubb
'acpi_sba_ioc_driver' and 'ioc_seq_ops') WARNING: arch/ia64/hp/common/built-in.o(.sdata+0x0): Section mismatch: reference to .init.data:__setup_str_sba_page_override before 'reserve_sba_gart' (at offset -0x204c2613) -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au

Re: [PATCH Resend] - SN: validate smp_affinity mask on intr redirect

2007-05-08 Thread Peter Chubb
return false; Why not just: return cpus_weight(cpumask) == 1; It's a Boolean; treat it as one. (If you thought the average kernel programmer (who's s/he?) understood the logical implication rule it could be: return !ia64_platform_is("sn2") || cpus_wei

Re: [PATCH Resend] - SN: validate smp_affinity mask on intr redirect

2007-05-08 Thread Peter Chubb
: return cpus_weight(cpumask) == 1; It's a Boolean; treat it as one. (If you thought the average kernel programmer (who's s/he?) understood the logical implication rule it could be: return !ia64_platform_is(sn2) || cpus_weight(cpumask) == 1; ) -- Dr Peter Chubb http

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Peter Chubb
> "Jeremy" == Jeremy Fitzhardinge <[EMAIL PROTECTED]> writes: Jeremy> And do the same in pte pages for actual mapped pages? Or do Jeremy> you think they would be too densely populated for it to be Jeremy> worthwhile? We've been doing some measurements on how densely clumped ptes are. On

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Peter Chubb
Jeremy == Jeremy Fitzhardinge [EMAIL PROTECTED] writes: Jeremy And do the same in pte pages for actual mapped pages? Or do Jeremy you think they would be too densely populated for it to be Jeremy worthwhile? We've been doing some measurements on how densely clumped ptes are. On 32-bit

Re: Ski for huge page size !

2006-11-27 Thread Peter Chubb
t related to huge page size ??? sudhnesh> Will the problems related to huge pages such as sudhnesh> swapping,IO,etc...will be covered if I use ski with 2.6 sudhnesh> kernel image configured for ia64 archi with huge page size sudhnesh> support ? Should work perfectly. We've been using Ski for sim

Re: How to boot 2.6 kernel using hp ski simulator ???

2006-11-27 Thread Peter Chubb
make CROSS_COMPILE=ia64-linux-gnu ARCH=ia64 boot to build kernel and bootloader. You need to get or build yourself a disk image. Instructions for building at http://www.gelato.unsw.edu.au/IA64wiki/skidiskimage -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw

Re: Ski for huge page size !

2006-11-27 Thread Peter Chubb
to huge pages such as sudhnesh swapping,IO,etc...will be covered if I use ski with 2.6 sudhnesh kernel image configured for ia64 archi with huge page size sudhnesh support ? Should work perfectly. We've been using Ski for similar work, looking at SuperPage support. -- Dr Peter Chubb http

Re: How to boot 2.6 kernel using hp ski simulator ???

2006-11-27 Thread Peter Chubb
=ia64-linux-gnu ARCH=ia64 boot to build kernel and bootloader. You need to get or build yourself a disk image. Instructions for building at http://www.gelato.unsw.edu.au/IA64wiki/skidiskimage -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http

RE: ip_contrack refuses to load if built UP as a module on IA64

2005-08-31 Thread Peter Chubb
will not be invoked. Signed-off-by: Peter Chubb <[EMAIL PROTECTED]> diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c --- a/arch/ia64/kernel/module.c +++ b/arch/ia64/kernel/module.c @@ -951,4 +951,10 @@ percpu_modcopy (void *pcpudst, const voi if (cpu_poss

'mdio_bus_exit' in discarded section .text.exit

2005-08-31 Thread Peter Chubb
sections in, say, phy_init(). Signed-off-by: Peter Chubb <[EMAIL PROTECTED]> diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -170,7 +170,7 @@ int __init mdio_bus_init(void) return bus_register(_bu

'mdio_bus_exit' in discarded section .text.exit

2005-08-31 Thread Peter Chubb
sections in, say, phy_init(). Signed-off-by: Peter Chubb [EMAIL PROTECTED] diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -170,7 +170,7 @@ int __init mdio_bus_init(void) return bus_register(mdio_bus_type

RE: ip_contrack refuses to load if built UP as a module on IA64

2005-08-31 Thread Peter Chubb
will not be invoked. Signed-off-by: Peter Chubb [EMAIL PROTECTED] diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c --- a/arch/ia64/kernel/module.c +++ b/arch/ia64/kernel/module.c @@ -951,4 +951,10 @@ percpu_modcopy (void *pcpudst, const voi if (cpu_possible(i

Re: Where is the performance bottleneck?

2005-08-29 Thread Peter Chubb
ngle threaded and tends not to get the full benefit of either the multiple spindles nor the multiple processors. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send

Re: Where is the performance bottleneck?

2005-08-29 Thread Peter Chubb
benefit of either the multiple spindles nor the multiple processors. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Include assembly entry points in TAGS

2005-08-22 Thread Peter Chubb
for MIPS, which needs to match LEAF(entrypoint) Signed-off-by: Peter Chubb <[EMAIL PROTECTED]> diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -1187,7 +1187,7 @@ cscope: FORCE $(call cmd,cscope) quiet_cmd_TAGS = MAKE $@ -cmd_TAGS = $(all-sources) | etags - +cm

Include assembly entry points in TAGS

2005-08-22 Thread Peter Chubb
for MIPS, which needs to match LEAF(entrypoint) Signed-off-by: Peter Chubb [EMAIL PROTECTED] diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -1187,7 +1187,7 @@ cscope: FORCE $(call cmd,cscope) quiet_cmd_TAGS = MAKE $@ -cmd_TAGS = $(all-sources) | etags - +cmd_TAGS = $(all

Re: fcntl(F_GETLEASE) semantics??

2005-08-10 Thread Peter Chubb
>>>>> "Trond" == Trond Myklebust <[EMAIL PROTECTED]> writes: Trond> to den 11.08.2005 Klokka 09:48 (+1000) skreiv Peter Chubb: >> Hi, The LTP test fcntl23 is failing. It does, in essence, fd = >> open(xxx, O_RDWR|O_CREAT, 0777); if (fcntl(fd, F_S

fcntl(F_GETLEASE) semantics??

2005-08-10 Thread Peter Chubb
' opens the file for writing or truncates it. The kernel implements `any process' (including the current one). Which semantics are correct? Personally I think that what the kernel implements is correct (you can't get a read lease unsless there are no writers _at_ _all_) -- Dr Peter Chubb http

fcntl(F_GETLEASE) semantics??

2005-08-10 Thread Peter Chubb
' opens the file for writing or truncates it. The kernel implements `any process' (including the current one). Which semantics are correct? Personally I think that what the kernel implements is correct (you can't get a read lease unsless there are no writers _at_ _all_) -- Dr Peter Chubb http

Re: fcntl(F_GETLEASE) semantics??

2005-08-10 Thread Peter Chubb
Trond == Trond Myklebust [EMAIL PROTECTED] writes: Trond to den 11.08.2005 Klokka 09:48 (+1000) skreiv Peter Chubb: Hi, The LTP test fcntl23 is failing. It does, in essence, fd = open(xxx, O_RDWR|O_CREAT, 0777); if (fcntl(fd, F_SETLEASE, F_RDLCK) == -1) fail; fcntl always returns EAGAIN

Re: How to get the physical page addresses from a kernel virtual address for DMA SG List?

2005-08-04 Thread Peter Chubb
You may want to take a look at the user-mode driver infrastructure patches, which do almost exactly what you're trying to do. Get them from http://www.gelato.unsw.edu.au/cgi-bin/viewcvs.cgi/cvs/kernel/usrdrivers/kernel-2.6.12-rc3/ -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc

Re: How to get the physical page addresses from a kernel virtual address for DMA SG List?

2005-08-04 Thread Peter Chubb
You may want to take a look at the user-mode driver infrastructure patches, which do almost exactly what you're trying to do. Get them from http://www.gelato.unsw.edu.au/cgi-bin/viewcvs.cgi/cvs/kernel/usrdrivers/kernel-2.6.12-rc3/ -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc

Re: Hangcheck problem

2005-03-30 Thread Peter Chubb
ngle jiffy error gives you the printout you mention. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

Re: Hangcheck problem

2005-03-30 Thread Peter Chubb
Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - 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

Re: How to measure time accurately.

2005-03-29 Thread Peter Chubb
f you're on a multiprocessor, the cycle counters of different processors need not be synchronised. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the lin

Re: How to measure time accurately.

2005-03-29 Thread Peter Chubb
not be synchronised. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - 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: LBD/filesystems over 2TB: is it safe?

2005-03-21 Thread Peter Chubb
s (to be published in Linux.Conf.Au next month) show that XFS is significantly faster for some workloads. Also its scalability to very large filesystems is much more mature than ext3. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately,

Re: LBD/filesystems over 2TB: is it safe?

2005-03-21 Thread Peter Chubb
faster for some workloads. Also its scalability to very large filesystems is much more mature than ext3. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line

Re: forkbombing Linux distributions

2005-03-20 Thread Peter Chubb
nf On an almost-single-user system such as most desktops, there isn't much point in setting this. On shared systems, it can be useful. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe

Re: forkbombing Linux distributions

2005-03-20 Thread Peter Chubb
, there isn't much point in setting this. On shared systems, it can be useful. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: vm_dirty_ratio seems a bit large.

2005-03-17 Thread Peter Chubb
end them to understand fixed point. Keep printing integers as integers, print non-integers with one (or two: will we ever need 0.01% increments?) decimal places. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political t

Re: vm_dirty_ratio seems a bit large.

2005-03-17 Thread Peter Chubb
% increments?) decimal places. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Can no longer build ipv6 built-in (2.6.11, today's BK head)

2005-03-15 Thread Peter Chubb
/built-in.o A simple fix is to delete the __exit from the various functions now that they're called other than at module_exit. Signed-off-by: Peter Chubb <[EMAIL PROTECTED]> Index: linux-2.5-import/net/ipv6/route.c === --- lin

Can no longer build ipv6 built-in (2.6.11, today's BK head)

2005-03-15 Thread Peter Chubb
/built-in.o A simple fix is to delete the __exit from the various functions now that they're called other than at module_exit. Signed-off-by: Peter Chubb [EMAIL PROTECTED] Index: linux-2.5-import/net/ipv6/route.c === --- linux-2.5

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-14 Thread Peter Chubb
>>>>> "Jon" == Jon Smirl <[EMAIL PROTECTED]> writes: Jon> On Tue, 15 Mar 2005 14:47:42 +1100, Peter Chubb Jon> <[EMAIL PROTECTED]> wrote: >> What I really want to do is deprivilege the driver code as much as >> possible. Whatever a d

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-14 Thread Peter Chubb
>>>>> "Jon" == Jon Smirl <[EMAIL PROTECTED]> writes: Jon> On Mon, 14 Mar 2005 12:42:27 +1100, Peter Chubb Jon> <[EMAIL PROTECTED]> wrote: >> >>>>> "Jon" == Jon Smirl <[EMAIL PROTECTED]> writes: >> >>

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-14 Thread Peter Chubb
Jon == Jon Smirl [EMAIL PROTECTED] writes: Jon On Mon, 14 Mar 2005 12:42:27 +1100, Peter Chubb Jon [EMAIL PROTECTED] wrote: Jon == Jon Smirl [EMAIL PROTECTED] writes: The scenario I'm thinking about with these patches are things like low-latency user-level networking between nodes

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-14 Thread Peter Chubb
Jon == Jon Smirl [EMAIL PROTECTED] writes: Jon On Tue, 15 Mar 2005 14:47:42 +1100, Peter Chubb Jon [EMAIL PROTECTED] wrote: What I really want to do is deprivilege the driver code as much as possible. Whatever a driver does, the rest of the system should keep going. That way malicious

inode_lock heavily contended in 2.6.11

2005-03-13 Thread Peter Chubb
seeing this on more realistic workloads? -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
>>>>> "Jon" == Jon Smirl <[EMAIL PROTECTED]> writes: Jon> On Mon, 14 Mar 2005 12:42:27 +1100, Peter Chubb Jon> <[EMAIL PROTECTED]> wrote: >> >>>>> "Jon" == Jon Smirl <[EMAIL PROTECTED]> writes: >> >>

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
le parts of a device driver (latency can be > 2 usec), so you don't really want to have to read it again within the driver... so you'd probably want to pass it as part of the interrupt arguments to the driver. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The techni

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
e driver tries to open the file representing the interrupt. Jon> Also what about SMP, if you shut the IRQ off on one CPU isn't it Jon> still enabled on all of the others? Nope. disable_irq_nosync() talks to the interrupt controller, which is common to all the processors. The main problem

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
n> interrupts acknowledged correctly and you'll end up rebooting. That's not actually true, at least when we developed drivers here. The only times we had to reboot were the times we mucked up the dma register settings, and dma'd all over the kernel by mistake... -- Dr Peter Chubb http://www

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
>>>>> "Jon" == Jon Smirl <[EMAIL PROTECTED]> writes: Jon> On Fri, 11 Mar 2005 14:36:10 +1100, Peter Chubb Jon> <[EMAIL PROTECTED]> wrote: >> As many of you will be aware, we've been working on infrastructure >> for user-mode PCI and ot

Re: User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11)

2005-03-13 Thread Peter Chubb
>>>>> "Greg" == Greg KH <[EMAIL PROTECTED]> writes: Greg> On Fri, Mar 11, 2005 at 07:34:46PM +1100, Peter Chubb wrote: >> >>>>> "Greg" == Greg KH <[EMAIL PROTECTED]> writes: >> Greg> On Fri, Mar 11, 2005 at 02:

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
On Gwe, 2005-03-11 at 03:36, Peter Chubb wrote: > +static irqreturn_t irq_proc_irq_handler(int irq, void *vidp, struct pt_regs > *regs) > +{ > + struct irq_proc *idp = (struct irq_proc *)vidp; > + > + BUG_ON(idp->irq != irq); > + disable_irq_nosync(irq); &

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
On Gwe, 2005-03-11 at 03:36, Peter Chubb wrote: +static irqreturn_t irq_proc_irq_handler(int irq, void *vidp, struct pt_regs *regs) +{ + struct irq_proc *idp = (struct irq_proc *)vidp; + + BUG_ON(idp-irq != irq); + disable_irq_nosync(irq); + atomic_inc(idp-count

Re: User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11)

2005-03-13 Thread Peter Chubb
Greg == Greg KH [EMAIL PROTECTED] writes: Greg On Fri, Mar 11, 2005 at 07:34:46PM +1100, Peter Chubb wrote: Greg == Greg KH [EMAIL PROTECTED] writes: Greg On Fri, Mar 11, 2005 at 02:37:17PM +1100, Peter Chubb wrote: +/* + * The PCI subsystem is implemented as yet-another pseudo

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
Jon == Jon Smirl [EMAIL PROTECTED] writes: Jon On Fri, 11 Mar 2005 14:36:10 +1100, Peter Chubb Jon [EMAIL PROTECTED] wrote: As many of you will be aware, we've been working on infrastructure for user-mode PCI and other drivers. The first step is to be able to handle interrupts from user

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
mucked up the dma register settings, and dma'd all over the kernel by mistake... -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
about SMP, if you shut the IRQ off on one CPU isn't it Jon still enabled on all of the others? Nope. disable_irq_nosync() talks to the interrupt controller, which is common to all the processors. The main problem is that it's slow, because it has to go off-chip. -- Dr Peter Chubb http

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
to read it again within the driver... so you'd probably want to pass it as part of the interrupt arguments to the driver. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send

Re: User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-13 Thread Peter Chubb
Jon == Jon Smirl [EMAIL PROTECTED] writes: Jon On Mon, 14 Mar 2005 12:42:27 +1100, Peter Chubb Jon [EMAIL PROTECTED] wrote: Jon == Jon Smirl [EMAIL PROTECTED] writes: The scenario I'm thinking about with these patches are things like low-latency user-level networking between nodes

inode_lock heavily contended in 2.6.11

2005-03-13 Thread Peter Chubb
seeing this on more realistic workloads? -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: Microstate Accounting for 2.6.11

2005-03-11 Thread Peter Chubb
t there are some who do. I've maintained this patch since mid 2003, and have seen a steady trickle of downloads --- one or two a week. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe

Re: User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11)

2005-03-11 Thread Peter Chubb
>>>>> "Greg" == Greg KH <[EMAIL PROTECTED]> writes: Greg> On Fri, Mar 11, 2005 at 02:37:17PM +1100, Peter Chubb wrote: >> +/* + * The PCI subsystem is implemented as yet-another pseudo >> filesystem, + * albeit one that is never mounted. +

Re: User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11)

2005-03-11 Thread Peter Chubb
Greg == Greg KH [EMAIL PROTECTED] writes: Greg On Fri, Mar 11, 2005 at 02:37:17PM +1100, Peter Chubb wrote: +/* + * The PCI subsystem is implemented as yet-another pseudo filesystem, + * albeit one that is never mounted. + * This is its magic number. + */ +#define USR_PCI_MAGIC (0x12345678

Re: Microstate Accounting for 2.6.11

2005-03-11 Thread Peter Chubb
or two a week. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes *forever* - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: Microstate Accounting for 2.6.11

2005-03-10 Thread Peter Chubb
>>>>> "Andrew" == Andrew Morton <[EMAIL PROTECTED]> writes: Andrew> Peter Chubb <[EMAIL PROTECTED]> wrote: >> Timing data on threads at present is pretty crude: when the timer >> interrupt occurs, a tick is added to either system time or

Microstate accounting, IA64 support

2005-03-10 Thread Peter Chubb
Microstate Accounting: Add suppoort for IA64. linux-2.6-ustate/arch/ia64/Kconfig | 25 +++ linux-2.6-ustate/arch/ia64/kernel/entry.S| 44 +++ linux-2.6-ustate/arch/ia64/kernel/irq_ia64.c | 21 +++-

Microstate Accounting for 2.6.11, patch 4/6

2005-03-10 Thread Peter Chubb
Microstate accounting: Account for time in interrupt handlers for I386. arch/i386/kernel/irq.c | 13 - 1 files changed, 12 insertions(+), 1 deletion(-) Index: linux-2.6-ustate/arch/i386/kernel/irq.c === ---

Microstate Accounting for 2.6.11, patch 6/6

2005-03-10 Thread Peter Chubb
Microstate accounting: Track time spent asleep while paging, in poll() or select(), or on a futex separately from other sleeps. fs/select.c |2 ++ kernel/futex.c |2 ++ mm/memory.c |6 +- Index: linux-2.6-ustate/mm/memory.c

Microstate Accounting for 2.6.11, patch 5/6

2005-03-10 Thread Peter Chubb
Microstate accounting: Add the I386 system call. arch/i386/kernel/entry.S |2 +- include/asm-i386/unistd.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6-ustate/arch/i386/kernel/entry.S === ---

Microstate Accounting for 2.6.11, patch 3/6

2005-03-10 Thread Peter Chubb
-by: Peter Chubb <[EMAIL PROTECTED]> Index: linux-2.6-ustate/arch/i386/Kconfig === --- linux-2.6-ustate.orig/arch/i386/Kconfig 2005-03-11 09:59:38.773632446 +1100 +++ linux-2.6-ustate/arch/i386/Kconfig 2005-03-11

Microstate Accounting for 2.6.11, patch 2/6

2005-03-10 Thread Peter Chubb
Microstate Accounting: Add hooks into the scheduler to track state changes. Arrange for parent process's child times to be updated at process exit. kernel/sched.c |8 kernel/exit.c |3 +++ Index: linux-2.6-ustate/kernel/sched.c

Microstate Accounting for 2.6.11, patch 3/

2005-03-10 Thread Peter Chubb
Microstate Accounting: Track time in system calls and interrupts, i386 code. Signed-off-by; Peter Chubb <[EMAIL PROTECTED]> arch/i386/kernel/entry.S | 16 arch/i386/kernel/irq.c | 13 - Index: linux-2.6-ustate/arch/i386/kernel/e

Microstate Accounting for 2.6.11

2005-03-10 Thread Peter Chubb
-03-11 09:58:20.574030768 +1100 @@ -0,0 +1,472 @@ +/* + * Microstate accounting. + * Try to account for various states much more accurately than + * the normal code does. + * + * Copyright (c) Peter Chubb 2005 + * UNSW and National ICT Australia + * This code is released under the Gnu Public L

User mode drivers: part 2: PCI device handling (patch 2/2 for 2.6.11)

2005-03-10 Thread Peter Chubb
User-level drivers: Add system calls for I386 and IA64. Signed-Off-By: Peter Chubb <[EMAIL PROTECTED]> # # arch/i386/kernel/entry.S |4 # arch/ia64/kernel/entry.S |8 # include/asm-i386/unistd.h |6 +- # include/asm-ia64/unistd.h |4 # 4 files chang

User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11)

2005-03-10 Thread Peter Chubb
usr_pci_open, or the struct mapping_info was never mapped for this device Signed-off-by: Peter Chubb <[EMAIL PROTECTED]> # # drivers/Makefile |3 # drivers/pci/Kconfig|6 # drivers/usr/Makefile |2 # drivers/usr/sys.c

User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-10 Thread Peter Chubb
to handle interrupt } If you don't care about latency, then forget about the mlockall() and setting the priority, and you don't need CONFIG_PREEMPT. Signed-off-by: Peter Chubb <[EMAIL PROTECTED]> kernel/irq/proc.c | 163 ++ 1 files changed

Re: binary drivers and development

2005-03-10 Thread Peter Chubb
> "John" == John Richard Moser <[EMAIL PROTECTED]> writes: John> I've done more thought, here's a small list of advantages on John> using binary drivers, specifically considering UDI. You can John> consider a different implementation for binary drivers as well, John> with most of the same

Re: binary drivers and development

2005-03-10 Thread Peter Chubb
John == John Richard Moser [EMAIL PROTECTED] writes: John I've done more thought, here's a small list of advantages on John using binary drivers, specifically considering UDI. You can John consider a different implementation for binary drivers as well, John with most of the same advantages.

User mode drivers: part 1, interrupt handling (patch for 2.6.11)

2005-03-10 Thread Peter Chubb
to handle interrupt } If you don't care about latency, then forget about the mlockall() and setting the priority, and you don't need CONFIG_PREEMPT. Signed-off-by: Peter Chubb [EMAIL PROTECTED] kernel/irq/proc.c | 163 ++ 1 files changed, 153

User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11)

2005-03-10 Thread Peter Chubb
usr_pci_open, or the struct mapping_info was never mapped for this device Signed-off-by: Peter Chubb [EMAIL PROTECTED] # # drivers/Makefile |3 # drivers/pci/Kconfig|6 # drivers/usr/Makefile |2 # drivers/usr/sys.c | 952

User mode drivers: part 2: PCI device handling (patch 2/2 for 2.6.11)

2005-03-10 Thread Peter Chubb
User-level drivers: Add system calls for I386 and IA64. Signed-Off-By: Peter Chubb [EMAIL PROTECTED] # # arch/i386/kernel/entry.S |4 # arch/ia64/kernel/entry.S |8 # include/asm-i386/unistd.h |6 +- # include/asm-ia64/unistd.h |4 # 4 files changed, 17

Microstate Accounting for 2.6.11

2005-03-10 Thread Peter Chubb
:58:20.574030768 +1100 @@ -0,0 +1,472 @@ +/* + * Microstate accounting. + * Try to account for various states much more accurately than + * the normal code does. + * + * Copyright (c) Peter Chubb 2005 + * UNSW and National ICT Australia + * This code is released under the Gnu Public Licence, version

Microstate Accounting for 2.6.11, patch 3/

2005-03-10 Thread Peter Chubb
Microstate Accounting: Track time in system calls and interrupts, i386 code. Signed-off-by; Peter Chubb [EMAIL PROTECTED] arch/i386/kernel/entry.S | 16 arch/i386/kernel/irq.c | 13 - Index: linux-2.6-ustate/arch/i386/kernel/entry.S

Microstate Accounting for 2.6.11, patch 2/6

2005-03-10 Thread Peter Chubb
Microstate Accounting: Add hooks into the scheduler to track state changes. Arrange for parent process's child times to be updated at process exit. kernel/sched.c |8 kernel/exit.c |3 +++ Index: linux-2.6-ustate/kernel/sched.c

Microstate Accounting for 2.6.11, patch 3/6

2005-03-10 Thread Peter Chubb
-by: Peter Chubb [EMAIL PROTECTED] Index: linux-2.6-ustate/arch/i386/Kconfig === --- linux-2.6-ustate.orig/arch/i386/Kconfig 2005-03-11 09:59:38.773632446 +1100 +++ linux-2.6-ustate/arch/i386/Kconfig 2005-03-11 09:59:38.777538666

Microstate Accounting for 2.6.11, patch 5/6

2005-03-10 Thread Peter Chubb
Microstate accounting: Add the I386 system call. arch/i386/kernel/entry.S |2 +- include/asm-i386/unistd.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6-ustate/arch/i386/kernel/entry.S === ---

Microstate Accounting for 2.6.11, patch 6/6

2005-03-10 Thread Peter Chubb
Microstate accounting: Track time spent asleep while paging, in poll() or select(), or on a futex separately from other sleeps. fs/select.c |2 ++ kernel/futex.c |2 ++ mm/memory.c |6 +- Index: linux-2.6-ustate/mm/memory.c

Microstate Accounting for 2.6.11, patch 4/6

2005-03-10 Thread Peter Chubb
Microstate accounting: Account for time in interrupt handlers for I386. arch/i386/kernel/irq.c | 13 - 1 files changed, 12 insertions(+), 1 deletion(-) Index: linux-2.6-ustate/arch/i386/kernel/irq.c === ---

Microstate accounting, IA64 support

2005-03-10 Thread Peter Chubb
Microstate Accounting: Add suppoort for IA64. linux-2.6-ustate/arch/ia64/Kconfig | 25 +++ linux-2.6-ustate/arch/ia64/kernel/entry.S| 44 +++ linux-2.6-ustate/arch/ia64/kernel/irq_ia64.c | 21 +++-

Re: Microstate Accounting for 2.6.11

2005-03-10 Thread Peter Chubb
Andrew == Andrew Morton [EMAIL PROTECTED] writes: Andrew Peter Chubb [EMAIL PROTECTED] wrote: Timing data on threads at present is pretty crude: when the timer interrupt occurs, a tick is added to either system time or user time for the currently running thread. Thus in an unpacthed kernel

Re: Reading large /proc entry from kernel module

2005-03-08 Thread Peter Chubb
file *file, const char *buffer, Kristian> unsigned long count, void *data) { Kristian> char *policy; Kristian> int *lbuf; Kristian> int i; Here's your problem: lbuf should be a char * not an int *. When you look lbuf[0] you'll get the first four characters packed into the in

Re: Reading large /proc entry from kernel module

2005-03-08 Thread Peter Chubb
count, void *data) { Kristian char *policy; Kristian int *lbuf; Kristian int i; Here's your problem: lbuf should be a char * not an int *. When you look lbuf[0] you'll get the first four characters packed into the int. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc

  1   2   >