RE: kernel BUG at drivers/block/cciss.c:1260! (with recent linux-2.6 tree)

2008-01-29 Thread Luck, Tony
>> Ah crap, I see the problem, nioc is most often equal to rioc. Dang. >> Please try this bandaid, will push a real fix now. Patches arriving faster than I can test :-) ... The bandaid appears to be working (no hang yet). > This is way cleaner. Will try this next. -Tony -- To unsubscribe from t

RE: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Luck, Tony
> > > This broke powerpc (and presumably ia64 and sparc64) in current > > > linux-2.6.git: > > > > I'm generating a "fixup patch" right now... > > thanks! Sorry about that: we cross-built on ARM but not on SMP non-x86 > platforms so this dependency/breakage went unnoticed. Yes ... all ia64 buil

RE: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Luck, Tony
> Could you check the patch below? With this applied to latest -git, ia64 > buils fine for me in a cross-compiling environment. (but i dont know > whether it boots ...) Uni-processor build still fails with this patch (config is arch/ia64/configs/tiger_defconfig with CONFIG_SMP switched from =y

RE: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Luck, Tony
> could you try the full patchset that Travis has just sent and which i've > put into x86.git, you can pull it from: > >git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86.git > > it's a fixes only tree, ontop of Linus-very-latest. Head 4b9e425c25f84. > [pull from ssh://master.ker

RE: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Luck, Tony
> I'm having trouble replicating this error. With the latest linux-2.6.git > plus the patch I just sent, I get the following errors: > > drivers/input/mouse/psmouse-base.c:45: error: __param_proto causes a section > type conflict > drivers/md/md.c:5881: error: __param_start_ro causes a section ty

RE: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Luck, Tony
> ah, that was the vital clue. The patch below makes the small memory > model only defined on SMP, and makes the config build/link fine here. > Does this build and boot on your box? I applied this on top of the git pull from git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86.git a

RE: x86/non-x86: percpu, node ids, apic ids x86.git fixup

2008-01-30 Thread Luck, Tony
> could you send the .config you are using? Ok. Attached. -Tony upconfig Description: upconfig

bad pgd/pmd in latest BK on ia64

2005-03-14 Thread Luck, Tony
Trying to boot a build of the latest BK on ia64 I see a series of messages like this: mm/memory.c:99: bad pgd e001feba4000. mm/memory.c:99: bad pgd e001febac000. mm/memory.c:99: bad pgd e001febc0d10. mm/memory.c:105: bad pmd f000eef3f200. mm/memory.c:105: bad pmd f000eef3f000e2c3.

RE: [PATCH 1/5] freepgt: free_pgtables use vma list

2005-03-21 Thread Luck, Tony
Builds clean and boots on ia64. I haven't tried any hugetlb operations on it though. -Tony - 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

RE: [PATCH 1/5] freepgt: free_pgtables use vma list

2005-03-22 Thread Luck, Tony
>> For example, you may have a single page (start,end) address range >> to free, but if this is enclosed by a large enough (floor,ceiling) >> then it may free an entire pgd entry. >> >> I assume the intention of the API would be to provide the full >> pgd width in that case? > >Yes, that is what s

RE: [PATCH 1/5] freepgt: free_pgtables use vma list

2005-03-22 Thread Luck, Tony
>> be changed to use pgd_addr_end() to gather up all the vma that >> are mapped by a single pgd instead of just spanning out the next >> PMD_SIZE? > >Oh, I don't think so. I suppose it could be done at this level, >but then the lower levels would go back to searching through lots >of unnecessary c

RE: [PATCH 1/5] freepgt: free_pgtables use vma list

2005-03-22 Thread Luck, Tony
>How it works is that it knows the extent in each direction >where mappings do not exist. > >Once we know we have a clear span up to the next PMD_SIZE >modulo (and PUD_SIZE and so on and so forth) we know we >can liberate the page table chunks covered by such ranges. Ok ... I see that now (I was m

RE: [PATCH 1/6] freepgt: free_pgtables use vma list

2005-03-23 Thread Luck, Tony
+* Why all these "- 1"s? Because 0 represents both the bottom +* of the address space and the top of it (using -1 for the +* top wouldn't help much: the masks would do the wrong thing). +* The rule is that addr 0 and floor 0 refer to the bottom of +* the add

RE: [PATCH] Consolidate compat_sys_waitid

2005-02-15 Thread Luck, Tony
>This patch does: > - consolidate the three implementations of compat_sys_waitid > (some were called sys32_waitid). > - adds sys_waitid syscall to ppc > - adds sys_waitid and compat_sys_waitid syscalls to ppc64 > >Parisc seemed to assume th existance of compat_sys_waitid.

RE: [patch -mm series] ia64 specific /dev/mem handlers

2005-02-22 Thread Luck, Tony
>On Tue, Feb 22, 2005 at 09:41:04AM -0500, Jes Sorensen wrote: >> >> + if (page->flags & PG_uncached) >> >> Andrew> dude. That ain't gonna work ;) >> >> Pardon my lack of clue, but why not? > >I think you're supposed to always use test_bit() to check page flags You defined PG_uncached as "20" .

RE: [PATCH 0/6] freepgt: free_pgtables shakeup

2005-03-23 Thread Luck, Tony
>OK, attached is my first cut at slimming down the boundary tests. >I have only had a chance to try it on i386, so I hate to drop it >on you like this - but I *have* put a bit of thought into it >Treat it as an RFC, and I'll try to test it on a wider range of >things in the next couple of days.

RE: [PATCH 1/6] freepgt: free_pgtables use vma list

2005-03-30 Thread Luck, Tony
>Though my knowledge of out-of-tree patches is very limited, >I believe "end == 0" is not possible on any arch - when "end" >originates from vma->vm_end (or vm_struct->addr + size). There >are plenty of "BUG_ON(addr >= end)"s dotted around to support that, >and other places that would be confused

pipe performance regression on ia64

2005-01-18 Thread Luck, Tony
David Mosberger pointed out to me that 2.6.11-rc1 kernel scores very badly on ia64 in lmbench pipe throughput test (bw_pipe) compared with earlier kernels. Nanhai Zou looked into this, and found that the performance loss began with Linus' patch to speed up pipe performance by allocating a circular

RE: [Lmbench-users] Re: pipe performance regression on ia64

2005-01-18 Thread Luck, Tony
>Maybe lmbench could add a feature that bw_pipe will fork CPU >number of children to measure the average throughput. > >This will give a much reasonable result when running bw_pipe >on a SMP Box, at least for Linux. bw_pipe (along with most/all of the lmbench tools already has a "-P" argument t

RE: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

2007-11-12 Thread Luck, Tony
> > Ahh so the need to be able to expand per cpu memory storage on demand > > is not as critical as we thought. > > > > Yes, but still desirable for future optimizations. > > For example, I do think using a per cpu memory storage on net_device refcnt & > last_rx could give us some speedups. We

RE: [patch 07/30] cpu alloc: IA64 support

2007-11-16 Thread Luck, Tony
+# Maximum of 128 MB cpu_alloc space per cpu +config CPU_AREA_ORDER + int + default "13" Comment only matches code when page size is 16K ... and we are (slowly) moving to 64k as the default (which with order 13 allocation would mean 512M) -Tony - To unsubscribe from this list: send th

RE: [RFC PATCH 0/2] Fix linux/swap.h build wart

2007-10-26 Thread Luck, Tony
> These patches propose to break the recursion instead by removing the > linux/pagemap.h -> linux/highmem.h inclusion. I'd like to know > whether there are any fundamental reasons that this include should be > preserved. Not fundamental reasons, but these patches break the ia64 build for most con

RE: [patch] __do_IRQ does not check IRQ_DISABLED when IRQ_PER_CPU is set

2007-10-31 Thread Luck, Tony
> One user encountering this behavior is the CPE handler (in > arch/ia64/kernel/mca.c). When the CPE handler encounters too many > CPEs (such as a solid single bit error), it sets up a polling timer > and disables the CPE interrupt (to avoid excessive overhead logging > the stream of single bit e

RE: build fix for x86_64...

2007-07-19 Thread Luck, Tony
> Looks good. Looks good to me too (I'm to blame for the version posted by Doug that only fixed ia64 ... I didn't take the time to check whether there was a CONFIG_COMPAT option for x86_64 ... oops). > Tony, perhaps it would make sense to define some common CONFIG > for COMPAT_FOR_U64_ALIGNMENT l

RE: build fix for x86_64...

2007-07-20 Thread Luck, Tony
> Half dozens? I was imagining having to have "help" messages ... which of course we don't. > config COMPAT_FOR_U64_ALIGNMENT > bool > default y Plausible. Randy suggested: > def_bool y Which is better. But if we unconditionally set this CONFIG variable, then the code in fs/

RE: build fix for x86_64...

2007-07-20 Thread Luck, Tony
At the moment our problem is that there is some code that has been added to handle the compatability problem caused by u64 objects having different alignment when running on 32-bit and 64-bit systems. This only affects ia64 and x86-64 because all the other 32/64 bit capable systems wisely avoided

RE: Linus 2.6.23-rc1

2007-07-23 Thread Luck, Tony
> Sorry about that. I thought my review had caught all of these. I missed it too (my old gcc version 3.4.6 doesn't pop a warning for this). Presumably the same change is needed for clocksource_itc in arch/ia64/kernel/time.c -Tony - To unsubscribe from this list: send the line "unsubscribe linux

Section mismatch warnings for early memory allocations

2007-07-23 Thread Luck, Tony
Checking for section mismatches across all of vmlinux is kicking out a bunch of new warnings. Many of them real, but I have a few from routines like this: foo(...) { static int first_time = 1; if (first_time) { all_i_need = alloc_bootmem(NR_CPUS * xxx);

RE: [PATCH] ia64: fix build failure on fs/quota.c

2007-07-26 Thread Luck, Tony
This issue wandered off onto a long thread "build fix for x86_64" which died out without a final patch. Here's the summary: > +#if defined(CONFIG_X86_64) || (defined(CONFIG_IA64) && > defined(CONFIG_COMPAT)) It was pointed out that x86-64 also has a CONFIG_COMPAT, so the "right" #ifdef mess wou

RE: [PATCH 2.6.23-rc5] driver/char/hpet.c: remove clocksourcewarning on !IA64

2007-09-02 Thread Luck, Tony
> This patch eliminates the warnings when the clocksoure isn't used. > It also removes some other unused stuff that goes along with the > clocksource .. > > I don't have access to an ia64 machine, or even a compiler .. So this > one is untested for that. I'm hoping one of the ia64 guys can help > t

RE: [2/2] 2.6.23-rc2: known regressions with patches

2007-08-06 Thread Luck, Tony
> > Caused-By : Thomas Renninger <[EMAIL PROTECTED]> > > commit 29b71a1ca74491fab9fed09e9d835d840d042690 > A patch was sent to Tony. AFAIK it got accepted, not sure whether it > already is in any and which git tree... The suggested patch adds manual padding to the acpi_dev

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-09 Thread Luck, Tony
> +#define atomic_read(v) (*(volatile __s32 *)&(v)->counter) > +#define atomic64_read(v) (*(volatile __s64 *)&(v)->counter) > > #define atomic_set(v,i) (((v)->counter) = (i)) > #define atomic64_set(v,i)(((v)->counter) = (i)) Losing the volatile from the "set"

RE: [PATCH] ia64: fix a few section mismatch warnings

2007-07-27 Thread Luck, Tony
- mca_data = alloc_bootmem(sizeof(struct ia64_mca_cpu) -* NR_CPUS + KERNEL_STACK_SIZE); + mca_data = mca_bootmem(NR_CPUS + KERNEL_STACK_SIZE); Oops. You moved the multiply by sizeof(struct ia64_mca_cpu) up into the mca_bootmem()

RE: [1/2] 2.6.23-rc1: known regressions with patches v2

2007-07-27 Thread Luck, Tony
> commit b716395e2b8e450e294537de0c91476ded2f0395 > Handled-By : Luck, Tony <[EMAIL PROTECTED]> > Patch1 : http://lkml.org/lkml/2007/7/20/255 > Patch2 : http://lkml.org/lkml/2007/7/20/272 > Status : patch available Just sent the "please p

[PATCH] Fix ENOSYS undeclared errors from linux/pm.h

2007-07-30 Thread Luck, Tony
With CONFIG_SUSPEND=n I get build errors from at least a couple of files because of the use of ENOSYS in the stub for pm_suspend(). Should those .c files be forced to include errno.h? Or should we have the include in pm.h? Assuming the latter ... Signed-off-by: Tony Luck <[EMAIL PROTECTED]> ---

RE: [PATCH] ia64: fix a few section mismatch warnings

2007-07-30 Thread Luck, Tony
> > Oops. You moved the multiply by sizeof(struct ia64_mca_cpu) up into > > the mca_bootmem() function to make it very specific to this use. But > > mutiply has higher precedence than addition. > > Oh crap - good catch. > Shall I resubmit a corrected patch? Are there any other ways that we might

RE: regression on HP zx1 platform from ACPI autoload modulespatches

2007-07-31 Thread Luck, Tony
> commit 8c8eb78f673c07b60f31751e1e47ac367c60c6b7 Oops. I cut & pasted the wrong commit id. The fix went in as commit 7091138fb762aed22317b4ff91eb211e7da3865c. > FYI, I did a git pull yesterday just before I hit this issue so I should > have had the latest stuff. So this confuses me. Linus pu

RE: [PATCH] flush icache before set_pte take6. [3/4] add montecito brand name

2007-07-31 Thread Luck, Tony
+ } else if (family == 0x20) + memcpy(brand, "Montecito", 10); NAK. We don't really have names for the different cpu families. "Montecito" is definitely not the right string to apply here (Montvale will also have family == 0x20). The old McKinley/Madison strin

RE: [PATCH] flush icache before set_pte take6. [4/4] optimization for cpus other than montecito

2007-07-31 Thread Luck, Tony
> This seems crazy to me. Flushing should occur according to the > *architecture*, not model-by-model. Even if we happen to get "lucky" > on pre-Montecito CPUs, that doesn't justify such ugly hacks. Or you > really want to debug this *again* come next CPU? Ditto. The only reason we should ever

RE: regression on HP zx1 platform from ACPI autoload modulespatches

2007-07-31 Thread Luck, Tony
> Tony, it looks like the patch has not hit Linus tree yet: Huh? I can see it in his tree via gitweb. Here's the patch: http://tinyurl.com/3csnu6 and the raw "blob" for sba_iommu.c: http://tinyurl.com/397cy6 [Scroll down to line 2018 and you'll see the new code in place]. S

RE: "Add support for vector domain" breaks boot on x355

2007-07-31 Thread Luck, Tony
> The following commit (4994be1b3fe9120c88022ff5c0c33f6312b17adb) broke > Linus' Tree between 2.6.22-git15 and 2.6.22-git16 on a 2-node 8-way x455 > (Madison procs). Thanks to Ryan Hodges for bisecting down to this > commit. Thanks for taking the time to do the git bisect to identify the problem c

RE: scripts/mod/file2alias.c cross compile problem

2007-08-02 Thread Luck, Tony
> Adrian Bunk: scripts/mod/file2alias.c is compiled with HOSTCC and ensures that > kernel_ulong_t is correct, but it can't cope with different padding on > different architectures. Surely this is the root cause ... you can't expect that the alignment rules of HOSTCC to make any sense for an arbitr

RE: scripts/mod/file2alias.c cross compile problem

2007-08-02 Thread Luck, Tony
>>> struct acpi_device_id { >>> __u8 id[ACPI_ID_LEN]; >>> + __u8 dummy[FILLUP_LEN]; >>> kernel_ulong_t driver_data; >>> }; >> >> What's so special about this structure that we get an error? > > It's special because it's a device_id structure, and those structures > must come out identic

RE: [PATCH] flush icache before set_pte() on ia64 take9 [2/2] flush icache at set_pte

2007-08-10 Thread Luck, Tony
This version looks really clean. Thank for keeping working on this through 9 versions! A couple of small issues. 1) In arch/ia64/mm/init.c: __ia64_sync_icache_dcache() - if (!pte_exec(pte)) - return; /* not an executable page... */ + BUG_ON(!pte

RE: [PATCH] flush icache before set_pte() on ia64 take9 [2/2] flush icache at set_pte

2007-08-10 Thread Luck, Tony
> What about code-size? textdata bss dec hex filename 9499911 911620 1313065 11724596 b2e734 vmlinux-before textdata bss dec hex filename 9504047 911620 1313065 11728732 b2f75c vmlinux-after So about 4K extra. In the kernel I built (tiger_

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-10 Thread Luck, Tony
> That's distressing. I'm about to resubmit with a volatile cast in > atomic_set as well, since people expect that behavior and I've been > shown a legitimate case where it could matter. Does the assembly look > right with that cast in atomic_set() as well? No. With the casts to volatile in

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-10 Thread Luck, Tony
> Use atomic64_read to read an atomic64_t. Thanks Andreas! Chris: This bug is why the 8-byte loads got changed to 4-byte + sign-extend by your change to atomic_read(). With this applied together with shuffling the volatile from the declaration to the usage (in both atomic_read() and atomic_set()

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-10 Thread Luck, Tony
> Possibly. Either that or we've uncovered some latent bugs. Maybe a > combination of the two. Can you list those 19 changes so we can evaluate them? Here are the functions in which they occur in the object file. You may have to chase down some inlining to find the function that actually uses

RE: [PATCH 9/24] make atomic_read() behave consistently on ia64

2007-08-10 Thread Luck, Tony
> Here are the functions in which they occur in the object file. You > may have to chase down some inlining to find the function that > actually uses atomic_*(). Ignore this ... Andreas' patch was only two lines so I thought I'd "save time" by just hand-editing the source over on my build machine.

RE: kvm warning

2007-08-13 Thread Luck, Tony
> Solution (1) above sounds preferable, unless there are mysterious reasons > why ia64 wants to avoid Kconfig.preempt (adding Tony Luck to Cc:). Send me a patch and unless it causes more problems than it solves, I'll put it in. -Tony - To unsubscribe from this list: send the line "unsubscribe lin

RE: [PATCH] [429/2many] MAINTAINERS - SGI SN-IA64 (Altix) SERIAL CONSOLE DRIVER

2007-08-13 Thread Luck, Tony
@@ -4084,6 +4084,7 @@ P:Pat Gefre M: [EMAIL PROTECTED] L: [EMAIL PROTECTED] S: Supported +F: Documentation/ia64/serial.txt SGI VISUAL WORKSTATION 320 AND 540 P: Andrey Panin Huh? Perhaps this should be: +F: drivers/serial/sn_console.c -Tony - To unsubscr

RE: [PATCH 10/23] make atomic_read() and atomic_set() behavior consistent on ia64

2007-08-14 Thread Luck, Tony
> Use volatile consistently in atomic.h on ia64. > This will do weird things without Andreas Schwab's fix: > http://lkml.org/lkml/2007/8/10/410 The build is very noisy with the inline versions of atomic_{read,set} and their 64-bit siblings. Here are the prime culprits (some of them repeat >100 ti

RE: [PATCH 10/23] make atomic_read() and atomic_set() behavior consistent on ia64

2007-08-14 Thread Luck, Tony
>> include/linux/skbuff.h:521: warning: passing arg 1 of `atomic_read' discards >> qualifiers from pointer target type >> include/net/sock.h:1244: warning: passing arg 1 of `atomic_read' discards >> qualifiers from pointer target type >> include/net/tcp.h:958: warning: passing arg 1 of `atomic_re

RE: [PATCH] ia64: default the NUMA node distance when there is no ACPI SLIT

2007-08-15 Thread Luck, Tony
+ printk(KERN_INFO "Building NUMA distance from ACPI 2.0 SLIT\n"); This printk just looks like noise during boot. Surely this is normal behavior on a NUMA system? + printk(KERN_INFO "No SLIT table, defaulting NUMA distance\n"); But this one deserves more prominence than just KERN_IN

RE: scripts/mod/file2alias.c cross compile problem

2007-08-16 Thread Luck, Tony
> -#define ACPI_ID_LEN 9 > +#define ACPI_ID_LEN 16 /* only 9 bytes needed here, 16 bytes are used */ What will happen if someone uses more than 9 bytes? With the old limit there would be a compile time error it someone initialized with: {"PNP0C0ABCDEFGH", 0}, But if we change ACPI_ID_

RE: [PATCH 0/24] make atomic_read() behave consistently across all architectures

2007-08-16 Thread Luck, Tony
>> 6674: while (atomic_read(&j->DSPWrite) > 0) >> 6675- atomic_dec(&j->DSPWrite); > > If the maintainer of this code doesn't see a compelling reason to add > cpu_relax() in this loop, then it should be patched. Shouldn't it be just re-written without the loop: if ((tmp = atom

RE: [PATCH 0/3] vmcoreinfo support for dump filtering

2007-10-17 Thread Luck, Tony
> This? That does the trick, yes. > (please tell me if you want me to send this to Linus) I've put it in my tree now ... so I'll ask Linus to pull it from there. -Tony - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More ma

[no subject]

2007-11-09 Thread Luck, Tony
Just pulled latest git tree from Linus and a few ia64 configurations (anything with CONFIG_NUMA=y) won't build. The offending commit appears to be: 230140cffa7feae90ad50bf259db1fa07674f3a7 Here's the error messages from the compiler: CC [M] drivers/infiniband/core/cma.o In file included

RE: [PATCH] [IA64] Include kexec.h in arch/ia64/kernel/process.c

2007-02-07 Thread Luck, Tony
> kexec.h is needed by arch/ia64/kernel/process.c so for the > declaration of kexec_disable_iosapic() which is used in machine_shutdown(). > +#include I merged this into your earlier change (moving machine_shutdown() into process.c). Linus pulled it last night. I also added a "#ifdef CONFIG_KE

Re: [PATCH] ia64: Fix noncoherent DMA API so devres builds

2007-02-12 Thread Luck, Tony
On Sun, Feb 11, 2007 at 09:30:21PM -0800, Roland Dreier wrote: > This patch fixes this by converting dma_{alloc,free}_noncoherent() > into inline functions that call the corresponding coherent functions, > instead of trying to do this with macros. > > Signed-off-by: Roland Dreier <[EMAIL PROTECTED

RE: [Ksummit-2006-discuss] 2007 Linux Kernel Summit

2007-01-26 Thread Luck, Tony
> Long term it may make sense for us to give ourselves plenty of > planning slop of more like 24 months, so if one location doesn't work > out we have time to work out another one. That looks way too conservative. If kernel summit had 500+ attendees, I can see why you'd need a such long lead time

Re: [Ksummit-2007-discuss] Re: [Ksummit-2006-discuss] 2007 Linux Kernel Summit

2007-01-30 Thread Luck, Tony
On Tue, Jan 30, 2007 at 07:11:34AM +0100, Jes Sorensen wrote: > > Not sure that abstract of a discussion thing would really work though. > > It seems a bit contradicting in itself. > > I was thinking more an abstract as in something that should provide a > short summary of the problem and why it s

sg_dma_address and sg_dma_len

2006-12-13 Thread Luck, Tony
Ralph, I'm seeing dozens of build warnings and errors on ia64 from infiniband. According to git you touched it last, so even if you aren't to blame, you are by definition an expert :-) E.g. In file included from include/rdma/ib_addr.h:37, from drivers/infiniband/core/addr.c:39:

RE: sg_dma_address and sg_dma_len

2006-12-13 Thread Luck, Tony
> Since pci.h includes it seems like the fix would be > to move the two lines: > #define sg_dma_len(sg) ((sg)->dma_length) > #define sg_dma_address(sg) ((sg)->dma_address) > to include/asm-ia64/scatterlist.h Sounds like a good plan ... a test build with this change fixed

RE: [patch 0/3] no MAX_ARG_PAGES -v2

2007-06-13 Thread Luck, Tony
> This patch-set aims at removing the current limit on argv+env space aka. > MAX_ARG_PAGES. Running with this patch shows that /bin/bash has some unpleasant O(n^2) performance issues with long argument lists. I made a 1Mbyte file full of pathnames, then timed the execution of: $ /bin/echo `cat m

RE: [patch 0/3] no MAX_ARG_PAGES -v2

2007-06-14 Thread Luck, Tony
> > Interesting. If you're exceeding your stack ulimit, you should be > > seeing either an "argument list too long" message or getting a > > SIGSEGV. Have you tried bypassing wc and piping the output straight > > to a file? > > I think it sends SIGKILL on failure paths. Setting stack limit to un

RE: [patch 0/3] no MAX_ARG_PAGES -v2

2007-06-15 Thread Luck, Tony
> > > A good heuristic, though, might be to limit > > > argument size to a percentage (say 25%) of maximum stack size and > > > validate this inside copy_strings(). > > > > This seems to do: > > Looks good. Me too. As I increase the number of arguments, I now have a smooth cutover from "works"

RE: [PATCH] ia64: Scalability improvement of gettimeofday with jitter compensation

2007-06-15 Thread Luck, Tony
> > ret = cmpxchg(&last_cycle, last, new); > > if (ret == last) > > return new; /* you win! */ > > else > > return ret; /* you lose. ret is winner's new */ > > Interesting solution. But there may be multiple updates of last happening. > Which of the winners is the real winner? It mi

RE: [patch] removes MAX_ARG_PAGES

2007-05-25 Thread Luck, Tony
> I just tried this on an Altix from the test lab, and ia32 bash just > started. I don't have any native x86 binaries on my Madison-based testbox, so my test case was to compile a simple program that counted total length of argument strings on an x86 box, and copy it to my ia64 box. So that I wou

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

2007-05-30 Thread Luck, Tony
> Hmmm - I wonder if my tree is screwed up in some weird way. I'm seeing link > warnings as well: > > WARNING: init/built-in.o - Section mismatch: reference to .init.data: from > .sdata after 'root_mountflags' (at offset 0x38) I thought that I'd got the section mis-match warnings down to just one

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

2007-05-30 Thread Luck, Tony
> `.exit.text' referenced in section `.init.text' of drivers/built-in.o: > defined in discarded section `.exit.text' of drivers/built-in.o This one is a fatal error ... the code is trying to call a function that has been marked __exit in a driver that has been built-in, instead of as a module.

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

2007-05-30 Thread Luck, Tony
> Ahh okay. cscope will do that too But all have __exit. The trick is that one of them *shouldn't* have __exit. With cscope you'll have to use the "Find functions calling this function:" mode to try and find the __init function that is calling an __exit function. -Tony - To unsubscribe from

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

2007-05-31 Thread Luck, Tony
> Tony, the ia64 section mismatch "whack-a-mole" is far from over :( Can you post the .config file that you are using when you see all those warnings ... I'll start bopping them on their cute little heads. -Tony - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

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

2007-06-01 Thread Luck, Tony
> Tony, what system are you using to compile on, OS, etc? $ cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 5 Beta) -Tony - 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: sleeping function called from invalid context at kernel/fork.c:385

2007-06-01 Thread Luck, Tony
> I used the sn2_defconfig in the tree :) So there is something odd happening. Russ complained that he was still seeing several errors from the sn2_defconfig build too when I posted the "last fix" to Len. But I don't see them when I build. -Tony - To unsubscribe from this list: send the line "u

RE: volatile and atomic_t/spinlock_t

2007-06-05 Thread Luck, Tony
> So is > > while (__raw_spin_is_locked(&v)); > > supposed to work? Or should that be > > while (__raw_spin_is_locked(&v)) > cpu_relax(); > > as well and all the volatiles can/should go away? cpu_relax() is a really good idea in every spinloop on hyper-threaded cores. I

RE: [rfc] increase struct page size?!

2007-05-18 Thread Luck, Tony
> I wonder if there are other uses for the free space? unsigned long moreflags; Nick and Hugh were just sparring over adding a couple (or perhaps 8) flag bits. This would supply 64 new bits ... maybe that would keep them happy for a few more years. -Tony - To unsubscribe from this list:

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

2007-05-23 Thread Luck, Tony
> > Saw this when running strace -f on a script on 2.6.21 on ia64: > > > > BUG: sleeping function called from invalid context at kernel/fork.c:385 > > in_atomic():1, irqs_disabled():0 ... snip ... > > I could reproduce it via 'strace -f sleep 1' > > > > I'd say this is specific to ia64. Som

RE: [KJ][PATCH 02/03]ROUND_UP|DOWN macro cleanup in arch/ia64,x86_64

2007-04-13 Thread Luck, Tony
> So as ALIGN macro does the same work as ROUNDUP, Although it is mathematically the same operation, the semantic associations of the name are important too. If I have an I/O device that works in blocks of a given size, I don't think that I'm "aligning" a request to make it match the capabilities

RE: [patch] removes MAX_ARG_PAGES

2007-05-07 Thread Luck, Tony
> We've tested the following architectures: i386, x86_64, um/i386, > parisc, and frv. These are representative of the various scenarios > which this patch addresses, but other architecture teams should try it > out to make sure there aren't any unexpected gotchas. Doesn't build on ia64: complaint

RE: [PATCH 1/3] kbuild: complain about missing system calls.

2007-05-07 Thread Luck, Tony
> You could add them to scripts/checksyscalls.sh itself -- I think it's > fairly unlikely that those are syscalls which a new arch port is going > to 'forget' :) Like this? diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh index f98171f..4d49056 100755 --- a/scripts/checksyscalls.s

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

2007-05-08 Thread Luck, Tony
+#ifndef is_affinity_mask_valid +#define is_affinity_mask_valid() 1 +#endif + int no_irq_affinity; static int irq_affinity_write_proc(struct file *file, const char __user *buffer, unsigned long count, void *data) @@ -42,6 +46,9 @@ static int irq_affinity_writ

RE: [PATCH 1/3] kbuild: complain about missing system calls.

2007-05-08 Thread Luck, Tony
Looks more complex than necessary. Why do you want to execute an arch specific script to list the __IGNORE symbols? That would allow an arch to generate a list with sed/perl/etc. but that looks like overkill. If you just have an arch specific file with the right defines. E.g. for x86_64 in inclu

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

2007-05-08 Thread Luck, Tony
> It had a dopey little bug: > > -#define is_affinity_mask_valid() 1 > +#define is_affinity_mask_valid(val) 1 That would fix warnings on non-ia64 systems (which is a step in the right direction). But on ia64 I have the #define is_affinity_mask_valid is_affinity_mask_valid in play at that point,

RE: [PATCH 4/4] IA64: SPARSE_VIRTUAL 16M page size support

2007-04-05 Thread Luck, Tony
> This implements granule page sized vmemmap support for IA64. Christoph, Your calculations here are all based on a granule size of 16M, but it is possible to configure 64M granules. With current sizeof(struct page) == 56, a 16M page will hold enough page structures for about 4.5G of physical sp

Re: [KJ][PATCH 02/03]ROUND_UP|DOWN macro cleanup in arch/ia64,x86_64

2007-04-12 Thread Luck, Tony
On Fri, Apr 13, 2007 at 02:01:40AM +0530, Milind Arun Choudhary wrote: > - size = ROUNDUP(size, iovp_size); > + size = ALIGN(size, iovp_size); Why is "ALIGN" better than "ROUNDUP"? I can't see any point to this change. -Tony - To unsubscribe from this list: send the line "unsubscribe lin

RE: [3/5] 2.6.21-rc4: known regressions (v2)

2007-03-26 Thread Luck, Tony
> What I'm proposing we do is move the irq allocation code out of > pci_enable_device and the irq freeing code out of pci_disable_device > in the future. Sounds rational ... in a world that wasn't dominated by PCI it would seem to be the logical approach (since the irq code would have much more ut

RE: condingstyle, was Re: utrace comments

2007-04-30 Thread Luck, Tony
> I'm a bit lost here. Are we referring to > > if (expr) { > ... > } else { > ... > } > > versus > > if (expr) { > ... > } > else { > ... > } This one is already covered by Documentation/CodingStyle

Re: [PATCH 04/32] x86/intel_rdt: Add L3 cache capacity bitmask management

2016-07-22 Thread Luck, Tony
On Fri, Jul 22, 2016 at 04:12:04AM -0300, Marcelo Tosatti wrote: > How does this patchset handle the following condition: > > 6) Create reservations in such a way that the sum is larger than > total amount of cache, and CPU pinning (example from Karen Noel): > > VM-1 on socket-1 with 80% of reser

Re: [PATCH 13/32] Documentation, x86: Documentation for Intel resource allocation user interface

2016-07-27 Thread Luck, Tony
On Wed, Jul 27, 2016 at 11:20:31AM -0500, Nilay Vaish wrote: > And over here you have switched to using CLOS ID and you do not > mention Cache ID at all. > As I said above, I think Cache ID and CLOS ID are the same thing. If > that is the case, I think Cache ID should be completely replaced with >

RE: [PATCH v2 11/33] x86/intel_rdt: Hot cpu support for Cache Allocation

2016-09-13 Thread Luck, Tony
> Just for my info, why do we need not update MSRs when a cpu goes offline? The CBM (cache bitmask) MSRs are shared by all the cpus that use that same cache. So they mustn't be updated when some of the CPUs go offline, because the remaining ones are still using them. I suppose you could do somet

Re: [PATCH v2 07/33] x86/intel_rdt: Add support for Cache Allocation detection

2016-09-13 Thread Luck, Tony
On Tue, Sep 13, 2016 at 03:40:18PM -0700, Dave Hansen wrote: > Are you sure you don't want to add RDT to disabled-features.h? You have > a config option for it, so it seems like you should also be able to > optimize some of these checks away when the config option is off. Makefile looks like this

Re: [PATCH v2 26/33] Task fork and exit for rdtgroup

2016-09-13 Thread Luck, Tony
On Tue, Sep 13, 2016 at 04:13:04PM -0700, Dave Hansen wrote: > Yikes, is this a new global lock and possible atomic_inc() on a shared > variable in the fork() path? Has there been any performance or > scalability testing done on this code? > > That mutex could be a disaster for fork() once the fi

RE: [PATCH V2 2/4] x86/mce, PCI: Provide quirks to identify Xeon models with machine check recovery

2016-09-01 Thread Luck, Tony
> What are we doing with the recovery bool? You want to keep the cmdline > switch: mce=recovery? I want to keep if for new systems ... there will be a lag between me getting them, and adding new quirks. > Btw, it needs documenting over mcheck_enable(). Yes - should have been done before. Will s

RE: [PATCH 1/2] x86/intel_rdt/mbm: Fix MBM overflow handler during hot cpu

2017-08-16 Thread Luck, Tony
> You could alternatively use flush and make the worker code schedule the > work on a still online CPU in the domain instead of blindly rescheduling it > on the same CPU. We looked at that when you suggested flush. The problem is that we have already deleted the current cpu from the bitmask for th

RE: [PATCH] ACPI/APEI: Add BERT data driver

2017-08-16 Thread Luck, Tony
> One thing I missed commenting on in the previous version - > > Have you thought of exposing the error records via /sys/firmware/acpi? > The tables are already exposed there and as BERT is part of ACPI > logically that's a better fit compared to a misc device. That was my first thought :-) But I

[PATCH-resend] mm/hwpoison: Clear PRESENT bit for kernel 1:1 mappings of poison pages

2017-08-16 Thread Luck, Tony
From: Tony Luck Speculative processor accesses may reference any memory that has a valid page table entry. While a speculative access won't generate a machine check, it will log the error in a machine check bank. That could cause escalation of a subsequent error since the overflow bit will be th

Re: [PATCH] ACPI/APEI: Add BERT data driver

2017-08-17 Thread Luck, Tony
On Thu, Aug 17, 2017 at 11:25:23AM +0100, Punit Agrawal wrote: > Though, I am OK with "table-data/BERT" as well. So I coded this up ... and it looks much better than I thought it might. A bit larger than the previous version that modified drivers/acpi/apei/bert.c. But on the plus side easy to ext

Re: [PATCH] ACPI/APEI: Add BERT data driver

2017-08-17 Thread Luck, Tony
On Thu, Aug 17, 2017 at 09:28:53PM +0200, Rafael J. Wysocki wrote: > What about /sys/firmware/acpi/tables/data/ and then one file per table > under it with the same name as the table file under tables/ ? "data" works. ACPI table names are all upper-case, so it can't conflict. Any programs that sca

[PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region

2017-08-17 Thread Luck, Tony
From: Tony Luck The ACPI sysfs interface provides a way to read each ACPI table from userspace via entries in /sys/firmware/acpi/tables/ The BERT table simply provides the size and address of the error record in BIOS reserved memory and users may want access to this record. In an earlier age we

<    1   2   3   4   5   6   7   8   9   10   >