Skip to contentSkip to conversation

bk pull on ia64 linux tree

DISCUSSION David Mosberger 1 participant 12 messages Jul 28, 2003 – Dec 21, 2003

lore
Share & tools
lore
#0 lore raw

Hi Linus,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This fixes a stupid typo and works around a problem caused by a recent ACPI change by moving the bootmem initialization before ACPI initialization. Together with a three-liner change to the ACPI subsystem (attached below for the benefit of the linux-ia64 list), this makes 2.6.0-test2 work on ia64.

Thanks!

	--david
 arch/ia64/kernel/setup.c |    3 +--
 include/asm-ia64/io.h    |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

through these ChangeSets:

<[email protected]> (03/07/26 1.1486)
ia64: Two small fixes to make ia64 build & work again.

=== drivers/acpi/pci_irq.c 1.18 vs edited ==--- 1.18/drivers/acpi/pci_irq.c Wed Jun 11 09:54:02 2003
+++ edited/drivers/acpi/pci_irq.c Sat Jul 26 00:05:17 2003
@@ -370,6 +370,10 @@
eisa_set_level_irq(dev->irq);
}
#endif
+#ifdef CONFIG_IOSAPIC
+ if (acpi_irq_model = ACPI_IRQ_MODEL_IOSAPIC)
+ iosapic_enable_intr(dev->irq);
+#endif

return_VALUE(dev->irq);
}

#1 lore raw

Hi Linus,

Just a few small fixes/cleanups:

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below.

Thanks!

	--david
 arch/ia64/ia32/sys_ia32.c     |   12 +-
 arch/ia64/kernel/efivars.c    |   98 ++++++++++++++++---
 arch/ia64/kernel/entry.S      |    4 
 arch/ia64/kernel/mca.c        |   11 ++
 include/asm-ia64/sn/nodepda.h |    3 
 include/asm-ia64/unistd.h     |  212 +++++++++++++++++++++++++-----------------
 6 files changed, 232 insertions(+), 108 deletions(-)

through these ChangeSets:

<[email protected]> (03/08/15 1.1138)
ia64: Make things compile with gcc-pre3.4 and work on the simulator.

<[email protected]> (03/08/15 1.1137)
entry.S:
ia64: Fix prologue directives for sys_clone() and sys_clone2()

<[email protected]> (03/08/13 1.1046.562.24)
[PATCH] ia64: export EFI systab

I know this probably needs to get exported somewhere other than /proc, but the rest of efivars is still in /proc and if somebody does convert efivars, they might as well do this systab bit at the same time.

<[email protected]> (03/08/13 1.1046.562.23)
[PATCH] ia64: Trivial 2.5 efivars.c whitespace cleanup

Convert leading spaces to tabs.

<[email protected]> (03/08/13 1.1046.562.22)
[PATCH] ia64: Kill warnings in sys_ia32.c

This patch kills compilation warnings in sys_ia32.c.

<[email protected]> (03/08/13 1.1046.562.21)
ia64: Patch by Peter Chubb: Kill _syscallX macros that generate lots of warnings, in favour of inline syscalls for clone() and execve(), and direct calling of kernel functions for other system calls.

<[email protected]> (03/08/13 1.1046.562.20)
[PATCH] ia64: is_headless_node fix

Fix is_headless_node() macro to use node_to_cpumask().

#2 lore raw
In reply to David Mosberger

Hi Linus,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below.

Thanks!

	--david
 include/asm-ia64/sn/ioc3.h               |  705 -------------------------------
 include/asm-ia64/sn/klclock.h            |   61 --
 arch/ia64/Kconfig                        |    3 
 arch/ia64/Makefile                       |    1 
 arch/ia64/hp/common/sba_iommu.c          |    5 
 arch/ia64/hp/sim/boot/boot_head.S        |    8 
 arch/ia64/hp/sim/boot/bootloader.c       |   10 
 arch/ia64/ia32/elfcore32.h               |    5 
 arch/ia64/ia32/sys_ia32.c                |   11 
 arch/ia64/kernel/acpi.c                  |    4 
 arch/ia64/kernel/efi.c                   |    2 
 arch/ia64/kernel/entry.S                 |    4 
 arch/ia64/kernel/fsys.S                  |    4 
 arch/ia64/kernel/init_task.c             |    6 
 arch/ia64/kernel/perfmon.c               |  305 +++++++------
 arch/ia64/kernel/perfmon_hpsim.h         |   75 +++
 arch/ia64/kernel/smpboot.c               |    4 
 arch/ia64/kernel/time.c                  |   79 ++-
 arch/ia64/kernel/unwind.c                |    5 
 arch/ia64/oprofile/Kconfig               |   22 
 arch/ia64/oprofile/Makefile              |    9 
 arch/ia64/oprofile/init.c                |   25 +
 arch/ia64/scripts/toolchain-flags        |    2 
 arch/ia64/sn/io/drivers/ioconfig_bus.c   |   16 
 arch/ia64/sn/io/machvec/pci_bus_cvlink.c |    2 
 arch/ia64/sn/io/machvec/pci_dma.c        |    2 
 arch/ia64/sn/io/sn2/ml_SN_intr.c         |    4 
 arch/ia64/sn/io/sn2/pcibr/pcibr_ate.c    |    1 
 arch/ia64/sn/io/sn2/pcibr/pcibr_config.c |    1 
 arch/ia64/sn/io/sn2/pcibr/pcibr_dvr.c    |    1 
 arch/ia64/sn/io/sn2/pcibr/pcibr_error.c  |    1 
 arch/ia64/sn/io/sn2/pcibr/pcibr_hints.c  |    1 
 arch/ia64/sn/io/sn2/pcibr/pcibr_intr.c   |    1 
 arch/ia64/sn/io/sn2/pcibr/pcibr_rrb.c    |    1 
 arch/ia64/sn/io/sn2/pcibr/pcibr_slot.c   |    1 
 arch/ia64/sn/io/sn2/pic.c                |    1 
 include/asm-ia64/acpi.h                  |   78 +--
 include/asm-ia64/hw_irq.h                |    1 
 include/asm-ia64/intel_intrin.h          |  254 +++++++++++
 include/asm-ia64/ptrace.h                |    6 
 include/asm-ia64/signal.h                |   13 
 include/asm-ia64/sn/hcl.h                |    1 
 include/asm-ia64/sn/nodepda.h            |    2 
 include/asm-ia64/sn/pci/pciio.h          |   34 +
 include/asm-ia64/sn/sn2/intr.h           |    3 
 include/asm-ia64/spinlock.h              |   57 ++
 include/asm-ia64/uaccess.h               |   87 +++
 include/asm-ia64/unistd.h                |    1 
 48 files changed, 879 insertions(+), 1046 deletions(-)

through these ChangeSets:

<[email protected]> (03/09/08 1.1242)
[PATCH] ia64: unwind.c fix for spinlock-debug compilation

If you try to compile 2.6.0-test[45] with spinlock debugging on, then unwind.c won't compile, because it uses a #define magic that hides the variable in the spinlock debugging code (also called magic).

<[email protected]> (03/09/08 1.1241)
[PATCH] ia64: MINSIGSTKSZ on ia32

MINSIGSTKSZ is defined differently for i386 and ia64. This patch improves compatibility with apps which use sigaltstack(2) with sizes between MINSIGSTKSZ_IA32 and MINSIGSTKSZ.

<[email protected]> (03/09/08 1.1240)
[PATCH] ia64: fix typo in spinlock.h

<[email protected]> (03/09/08 1.1153.64.28)
[PATCH] ia64: fix current usage in sn2 code

For some reason, we had a structure field called 'current'. This patch fixes that.

<[email protected]> (03/09/08 1.1153.64.27)
[PATCH] ia64: misc. sn2 updates

Fix a couple of sn2 files.

<[email protected]> (03/09/08 1.1153.64.26)
ia64: Drop unnecessary version check in sba_iommu.c.

<[email protected]> (03/09/08 1.1153.64.25)
ia64: Fix things so that they compile with the latest GCC 3.4, which optimize
away static variables with no compiler-visible use.

<[email protected]> (03/09/08 1.1153.64.24)
[PATCH] ia64: remove unused sn2 header files

This patch eliminates two unused SN2 header files:
include/asm-ia64/sn/klclock.h and include/asm-ia64/sn/ioc3.h.

<[email protected]> (03/09/05 1.1153.64.23)
ia64: Direct sys_fadvise64() to sys_fadvise64_64().

<[email protected]> (03/09/05 1.1153.64.22)
ia64: Fix asm-ia64/acpi.h typo & name-collision.

<[email protected]> (03/09/05 1.1153.64.21)
ia64: Finnish adding ECC support. Based on patch by Suresh Siddah.

<[email protected]> (03/09/05 1.1153.64.20)
[PATCH] ia64: perfmon2 update

This patch fixes the following:

- correct a bug in pfm_close() which was causing some per-process sessions to not unreserve on exit.

- changed the permission checking to load a context to allow more flexibility, modeled after ptrace_attach().

<[email protected]> (03/09/05 1.1153.64.19)
ia64: Document the typo that made it into the definition of MINSTKSZ
(last two numbers got transposed). Thanks to Arun Sharma for finding this. New glibc's will have the value corrected, but we leave the kernel at the old (bogus) value to retain backwards- compatibility (and while a strange value, the old value works just fine).

<[email protected]> (03/09/02 1.1153.64.18)
ia64: Drop unnecessary fadvise64_64() bloat (it isn't needed on 64-bit
platforms).

<[email protected]> (03/08/28 1.1153.64.17)
[PATCH] ia64: perfmon2 update

This patch:- added support for the fake HP simulator PMU. Most of the
code provided by Ian Wienand. Allows a kernel compiled for the simulator and with CONFIG_PERFMON enabled to boot.

- cleaned up all CTX_*() macros for the context state changes.

- relaxed constraint for system-wide session by allowing all task with access to the context's file descriptor to manipulate the context as long as they run on the CPU the context is attached to.

<[email protected]> (03/08/28 1.1153.64.16)
[PATCH] ia64: trim.bottom trims the wrong entry

efi_memmap_walk() repeatedly trims the same
entry, instead of trimming each of the entries in the granule.

<[email protected]> (03/08/28 1.1153.64.15)
[PATCH] ia64: Fix "nosmp" breakage from cpumask patch.

Patch should be self-explanatory.

<[email protected]> (03/08/28 1.1153.64.14)
[PATCH] ia64: fix PM config option

CONFIG_PM is set without a menu entry to turn it on/off.

<[email protected]> (03/08/28 1.1153.64.13)
[PATCH] ia64: clean up acpi_boot_init()

I was confused about this bit
of code in acpi_boot_init():

           smp_boot_data.cpu_count = available_cpus;
           if (available_cpus = 0) {
                   printk(KERN_INFO "ACPI: Found 0 CPUS; assuming 1\n");
                   available_cpus = 1; /* We've got at least one of these, no? */
           }
   
           smp_build_cpu_map();

because it first saves available cpus in smp_boot_data, then potentially modifies available_cpus. This looked at first like a bug, but I think actually works out correctly, because smp_boot_data.cpu_count is only used in smp_build_cpu_map(), and if cpu_count is zero, it prevents us from looking at smp_boot_data.cpu_phys_id[0], which hasn't been initialized.

This should only happen with really buggy firmware, so I'm not even sure it's worth doing more than panicking, but if we're going to deal with it, I propose the following patch to avoid even the appearance of a bug. This just does what acpi_parse_lsapic() would have done if the firmware tables were correct.

<[email protected]> (03/08/28 1.1153.64.12)
[PATCH] ia64: oprofile support

I have revised the oprofile patch for ia64 to provide just the basic timer interrupt mechanism to avoid interferring with the perfmon 2.0 support. I have verified the oprofile ia64 patch applies cleanly and build a working kernel with the 2.6.0-test4 kernel and the linux-2.6.0-test4-ia64-030826.diff.bz2 patch.

More work is required to get oprofile to work with the perfmon 2.0. However, the patch as it is currently implements should not cause problems for the perfom 2.0 support.

#3 lore raw
In reply to David Mosberger

Hi Linus,

Please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below. Relative to what I sent you yesterday, this update adds a largish update to perfmon. This makes perfmon "feature complete" (and thanks to John Levon, ready to interoperate with oprofile) and Stephane promised me that there will only be bug fixes from now on. I hope this is still acceptable, because this was all being worked on (and much of if done) before you declared the bug-fix-only status.

Thanks!

	--david
 Documentation/ia64/fsys.txt         |   57 +++
 arch/ia64/Kconfig                   |    4 
 arch/ia64/kernel/acpi.c             |    4 
 arch/ia64/kernel/asm-offsets.c      |   18 +
 arch/ia64/kernel/fsys.S             |  208 +++++++++++--
 arch/ia64/kernel/gate.S             |    3 
 arch/ia64/kernel/head.S             |   19 +
 arch/ia64/kernel/mca.c              |   30 -
 arch/ia64/kernel/mca_asm.S          |    6 
 arch/ia64/kernel/patch.c            |    6 
 arch/ia64/kernel/perfmon.c          |  571 +++++++++++++++++++-----------------
 arch/ia64/kernel/perfmon_itanium.h  |    4 
 arch/ia64/kernel/perfmon_mckinley.h |   22 +
 arch/ia64/kernel/setup.c            |   37 ++
 arch/ia64/kernel/time.c             |   13 
 arch/ia64/sn/kernel/sn2/io.c        |    4 
 include/asm-ia64/asmmacro.h         |   23 -
 include/asm-ia64/delay.h            |    9 
 include/asm-ia64/machvec_sn2.h      |    2 
 include/asm-ia64/mca.h              |    2 
 include/asm-ia64/mca_asm.h          |    3 
 include/asm-ia64/pal.h              |   12 
 include/asm-ia64/perfmon.h          |   11 
 include/asm-ia64/posix_types.h      |    2 
 include/asm-ia64/serial.h           |  106 ------
 25 files changed, 702 insertions(+), 474 deletions(-)

through these ChangeSets:

<[email protected]> (03/10/16 1.1536)
[PATCH] ia64: perfmon-2 fixes

- remove PFM_FL_UNSECURE support because broken
- remove instrumentation code for syswide ctx update (5% speedup)
- integrated cleanups from John Levon
- remove references to pmu_conf.ovfl_val from loops, use local variable
- updated pfm_bad_permissions()
- support reset values for non-counting pmds
- serialization of PFM_RESTART
- added support for restart_active in per-task mode
- remove potential deadlock caused by calling pfm_overflow_handler() from pfm_load_regs()
- fix invalid check in perfmon_mckinley() for PMC13

<[email protected]> (03/10/16 1.1535)
[PATCH] ia64: MCA min_state area must be uncacheable

Software Developer's Manual page 2:270, section 11.3.2.3 says that the processor min-state save area must be in an uncacheable region ... but current MCA recovery code allocates the min-state area "ia64_mca_min_state_save_info" in regular kernel data/bss.

This patch re-uses the same min-state area that the PAL/SAL used to report the error to Linux ... which mostly requires deleting code and declarations (some of which were wrong, MIN_STATE_AREA_SIZE ought to have been 58). The real "work" is copying the pointer to the min-state area from the sal_to_os handoff structure into the os_to_sal structure.

<[email protected]> (03/10/15 1.1534)
ia64: Important security fix for fsyscalls. Without this patch, the McKinley E9
workaround caused fsyscalls to return with the wrong privilege level. This patch also adds fsys_rt_sigprocmask(), which happens to be a good test-case for this bug. Only McKinley systems using fsyscalls are affected. Merced and Madison are OK.

<[email protected]> (03/10/15 1.1533)
[PATCH] ia64: a little more documentation in fsys.txt

Attached is a suggestion for a small addition to fsys.txt about how userspace can use fast system calls.

If people think this is totally wrong, or that something like this might be more appropriate in our WiKi, that's fine.

<[email protected]> (03/10/15 1.1532)
ia64: Fix __delay() even more: it's just not safe to inline the delay-
loop because, e.g., the compiler might decide to unroll the loop when passed a constant, etc.

<[email protected]> (03/10/15 1.1531)
[PATCH] ia64: fix serial port naming

Now that the serial driver fully supports discovery via ACPI, we can get rid of all the legacy junk in asm-ia64/serial.h. This keeps the serial driver from blindly probing I/O port space.

This also fixes a long-standing serial device naming issue:
ttyS0-ttyS3 were always reserved for the compiled-in COM ports, even if they weren't present in the box. Any additional PCI or ACPI ports appeared starting at ttyS4 (except for the special case of things described
in the HCDP). Now we'll just name ttyS devices in the
order they're discovered, without any holes for non-existent devices.

This is a little bit ugly for serial console because the HCDP is currently the only way we learn about serial ports before the actual ACPI discovery. All HP firmware implements HCDP, but Intel firmware does not. So in the absence of an HCDP, we have to probe for legacy COM ports. Otherwise, the serial console wouldn't work until the serial driver discovers the port via ACPI.

<[email protected]> (03/10/15 1.1530)
[PATCH] ia64: correct ino_t to be 64 bits wide

This brings the kernel in sync with glibc (and all other 64-bit platforms other than Alpha and S390x). This fixes ustat() and breaks nfsctl_export, but the latter is a deprecated interface anyhow (newer versions of nfsutils use "exportfs" instead).

<[email protected]> (03/10/15 1.1529)
ia64: Fix __delay() to do The Right Thing. In practice, this may
cause BogoMIPS to drop to half the clock-speed with current versions of GCC, but this just shows that GCC doesn't generate very good code for single-cycle loops. Perhaps it will motivate someone to improve GCC in this area (though it's hardly of practical value, other than for producing large BogoMIPS values).

<[email protected]> (03/10/15 1.1528)
[PATCH] ia64: force on appropriate generic options

Make sure that generic kernels actually build by forcing on the necessary options. With this patch I was able to build a generic kernel out of the to-linus-2.5 tree.

<[email protected]> (03/10/14 1.1527)
[PATCH] ia64: drop bogus "now < last_tick" message

itc_get_offset() has a consistency check which is no longer valid now that xtime_lock is a seq_lock. Drop the bogus check.

<[email protected]> (03/10/14 1.1526)
[PATCH] ia64: SN2 module fix

Because we're the only platform with seperate in, out, and read routines, we have to include the file that defines them in our machvec header so that users of the functions will get the right defines and not use the non-inline function variants (which are only necessary for generic kernels).

<[email protected]> (03/10/14 1.1525)
[PATCH] ia64: Another MCA fix

The definition of the pal_process_state_info_s structure misses out some useful pieces (e.g. the "mi" bit which indicates whether we should call PAL_MC_ERROR_INFO to get more details).

Worse yet, some of the bits are in the wrong places (cc/tc/bc).

See Volume 2 of "Intel Itanium Architecture Software Developer's Manual". (In the Rev 2.1 October 2002 edition, p. 2:268 and 2:276).

<[email protected]> (03/10/13 1.1524)
[PATCH] ia64: cannot convert region 5 address to physical by clearing bits 63:61

Another no-brainer bug fix snipped out of the quagmire of the MCA/TLB patch. This one is for 2.6 only, we must use the new LOAD_PHYSICAL() macro to get the physical address of the code label that we want to jump to, the INST_VA_TO_PA() macro just clears the region bits, which only works for region 7 addresses.

<[email protected]> (03/10/13 1.1523)
[PATCH] ia64: infinite loop in ia64_mca_wakeup_ipi_wait

This bugfix has been hiding inside the MCA TLB patches.

There is an infinite loop in ia64_mca_wakeup_ipi_wait() because the compiler optimizes away the test at the bottom of the while loop. It does this because IA64_MCA_WAKEUP_VECTOR is 0xf0, so irr_bit is known to be the constant 0x30, a.k.a. 48 in decimal. So when the compiler looks at the expression:

It observes that 1' as unsigned
long.

#5 lore raw
In reply to David Mosberger

Hi Linus,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below.

Thanks!

	--david
 arch/ia64/kernel/efi.c       |   26 +++++
 arch/ia64/kernel/gate-data.S |    2 
 arch/ia64/kernel/irq.c       |    2 
 arch/ia64/kernel/module.c    |   82 ++++++++++++++++-
 arch/ia64/kernel/perfmon.c   |  200 +++++++++++++++++++++++++------------------
 arch/ia64/kernel/process.c   |    8 +
 arch/ia64/kernel/unwind_i.h  |    8 -
 include/asm-ia64/io.h        |    3 
 include/asm-ia64/module.h    |    3 
 include/asm-ia64/namei.h     |    2 
 include/asm-ia64/unwind.h    |    6 +
 11 files changed, 240 insertions(+), 102 deletions(-)

through these ChangeSets:

<[email protected]> (03/10/24 1.1364)
ia64: Fix/finish kernel module table support so it actually works.

<[email protected]> (03/10/23 1.1363)
[PATCH] ia64: fix critical perfmon2 bugs

This patch fixes the following issues:

- fix a nasty corner case by which a task could inherit psr.pp/psr.up that could be stale by the time it runs. psr.pp/psr.up bits must be cleared on fork and inherited on execve(). Test case provided by John Levon.

- mask interrupts when locking the pfm stat structure. We don't want to take PMU interrupts in the middle of this kind of critical section.

- fix a bug in pfm_close() for context which use asynchronous notifications. You cannot call fasync_helper() with interrupts disabled because it reenables them. There was no real danger of moving the call outside our critical section.

- fix a bug in in pfm_flush_pmds() where you can leave the freeze bit set in the pmc saved state.

- updated dump_pmu_state()

- cleanup the BUG_ON() usage

<[email protected]> (03/10/23 1.1362)
[PATCH] ia64: fix broken __emul_prefix

his seems to be broken for ia32 on ia64 and possibly other emulation architectures as well. The problem comes from fs/namei.c:set_fs_altroot() using path_lookup() instead of a path_walk() relative to "/" (which is the case for 2.4).

<[email protected]> (03/10/23 1.1361)
ia64: Sync with Linus' i386 patch: Revert bogus IRQ_INPROGRESS clear.

<[email protected]> (03/10/23 1.1360)
[PATCH] ia64: prevent "dd if=/dev/mem" crash

The drivers/char/mem.c change was accepted, so here's the ia64-specific part.

<[email protected]> (03/10/22 1.1359)
[PATCH] ia64: fix gate-data.S build for binutils 2.14

gas will match anything with a prefix
'.data.' as a data special section. Thus to stop unnecessary warning about changing attributes, we use the .data section standard attributes aw when creating gate-data.o.

#6 lore raw
In reply to David Mosberger

Hi Linus,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below.

This one fixes the mprotect() bug found by Russell King last week. It's a critical bug fix because a knowledgable programmer could abuse it to crash a machine.

Thanks!

	--david
 include/asm-ia64/pgtable.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

through these ChangeSets:

<[email protected]> (03/11/10 1.1357)
Fix pte_modify() bug which allowed mprotect() to change too many bits. Found by Russell King.

#7 lore raw
In reply to David Mosberger

Hi Linus,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This should fix the PROT_NONE botch, along with a bug that caused /proc/irq/prof_cpu_mask to output bad info, which could break user-level tools.

Thanks!

	--david
 arch/ia64/kernel/irq.c     |    2 +-
 include/asm-ia64/pgtable.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

through these ChangeSets:

<[email protected]> (03/11/10 1.1359)
ia64: Fix _PAGE_CHG_MASK so PROT_NONE works again. Caught by Linus.

<[email protected]> (03/11/10 1.1358)
[PATCH] ia64: fix bug in prof_cpu_mask_read_proc()

Display of cpumask for /proc/irq/prof_cpu_mask has a botch in the print loop - should consume 2 bytes per loop.

#8 lore raw
In reply to David Mosberger

Hi Linus,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below.

Thanks!

	--david
 arch/ia64/kernel/signal.c     |    4 +++-
 include/asm-ia64/sn/nodepda.h |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

through these ChangeSets:

<[email protected]> (03/11/11 1.1361)
ia64: From Linus: Always disable system call restart when invoking a
signal handler. Otherwise, a restarted system call that gets interrupted before the restart has taken effect by _another_ signal will potentially restart the wrong system call.

<[email protected]> (03/11/11 1.1360)
[PATCH] ia64: fix is_headless_node() for SN

Without this patch, SN machines which have nodes that contain memory only (no CPUs will hang.

#9 lore raw
In reply to David Mosberger

Hi Linus,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below.

Thanks!

	--david
 arch/ia64/ia32/ia32_signal.c |    3 +++
 arch/ia64/kernel/patch.c     |    2 +-
 arch/ia64/kernel/signal.c    |    6 +++---
 arch/ia64/kernel/traps.c     |    6 ++----
 4 files changed, 9 insertions(+), 8 deletions(-)

through these ChangeSets:

<[email protected]> (03/11/21 1.1366)
ia64: Drop printk from ia64_ni_syscall(). This is a temporary fix
for 2.6.0. The proper fix is to replace ia64_ni_syscall with sys_ni_syscall, but that would make the patch quite large, so we defer that till 2.6.1.

<[email protected]> (03/11/21 1.1365)
ia64: From Linus/Paulus: reset restart_block function in
restore_sigcontext(). Also update ia32 subsystem accordingly.

<[email protected]> (03/11/21 1.1364)
ia64: Fix off-by-1 error in imm60 patching. The bug hasn't been observed
in practice, but it's clearly wrong and just waiting there to get triggered...

#10 lore raw
In reply to David Mosberger

Hi Linus,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below. Both patches fix serious problems. The first could cause the kernel to crash when dumping core from an ia64 binary that's using the new system call stubs and the second fixes a bug that prevented gdb from working properly inside the kernel's gate DSO.

Thanks much to Rohit Seth for tracking down the coredumping problem! (Which I would have sworn was due to race condition; boy was I wrong!)

Thanks!

	--david
 arch/ia64/kernel/unwind.c  |    2 +-
 include/asm-ia64/pgtable.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

through these ChangeSets:

<[email protected]> (03/11/25 1.1486)
ia64: Make core-dumps work even when executing in the gate DSO.
Tracked down by Rohit Seth.

<[email protected]> (03/11/25 1.1485)
ia64: Correct FIXADDR_USER_END so that single-stepping in the gate DSO works again.

#11 lore raw
In reply to David Mosberger

Hi Andrew,

please do a

	bk pull http://lia64.bkbits.net/to-linus-2.5

This will update the files shown below.

Thanks!

	--david
 MAINTAINERS                     |    5 
 arch/ia64/Kconfig               |   16 
 arch/ia64/Makefile              |   11 
 arch/ia64/configs/sn2_defconfig |  693 ++++++++++++++++++++++++++++++++++++++++
 arch/ia64/kernel/Makefile       |    3 
 arch/ia64/kernel/acpi.c         |   62 ---
 arch/ia64/kernel/asm-offsets.c  |    4 
 arch/ia64/kernel/efi.c          |   12 
 arch/ia64/kernel/gate.S         |   10 
 arch/ia64/kernel/head.S         |    2 
 arch/ia64/kernel/ia64_ksyms.c   |    2 
 arch/ia64/kernel/iosapic.c      |    3 
 arch/ia64/kernel/irq.c          |   37 +-
 arch/ia64/kernel/ivt.S          |   54 +--
 arch/ia64/kernel/mca.c          |  211 +++++++-----
 arch/ia64/kernel/mca_asm.S      |  356 +++++++++++++-------
 arch/ia64/kernel/perfmon.c      |    2 
 arch/ia64/kernel/salinfo.c      |  525 +++++++++++++++++++++++++++++-
 arch/ia64/kernel/smpboot.c      |    2 
 arch/ia64/kernel/vmlinux.lds.S  |    2 
 arch/ia64/lib/Makefile          |    1 
 arch/ia64/lib/dec_and_lock.c    |   42 ++
 arch/ia64/mm/discontig.c        |  146 ++++----
 arch/ia64/mm/init.c             |   21 +
 arch/ia64/pci/pci.c             |    3 
 include/asm-ia64/acpi.h         |    3 
 include/asm-ia64/intrinsics.h   |    2 
 include/asm-ia64/mca.h          |   13 
 include/asm-ia64/numa.h         |    2 
 include/asm-ia64/numnodes.h     |    4 
 include/asm-ia64/pal.h          |  160 +++++++--
 include/asm-ia64/pgtable.h      |    4 
 include/asm-ia64/sal.h          |   12 
 include/asm-ia64/spinlock.h     |    2 
 include/asm-ia64/system.h       |    7 
 include/asm-ia64/uaccess.h      |  349 ++++++--------------
 36 files changed, 2082 insertions(+), 701 deletions(-)

through these ChangeSets:

<[email protected]> (03/12/20 1.1524)
[PATCH] ia64: Convert cmc deadlock avoidance patch from 2.4 to 2.6

<[email protected]> (03/12/19 1.1523)
[PATCH] ia64: enable recovery from TLB errors

Here's the updated version of the MCA TLB recovery patch.

<[email protected]> (03/12/19 1.1522)
[PATCH] ia64: fix deadlock in ia64_mca_cmc_int_caller()

smp_call_function() must not be called from interrupt context (can deadlock on tasklist_lock). Use keventd to call smp_call_function().

<[email protected]> (03/12/19 1.1521)
[PATCH] ia64: sync pal/sal/salinfo/mca with 2.4 code

Forward port the recent changes to pal.h, sal.h, mca.h, salinfo.c and mca.c from 2.4.23-rc2 to 2.6.0-test9.

This converts 2.6 to use salinfo instead of printing CMC/CPE/MCA/INIT records in the kernel. It makes the two kernel versions as close together as possible.

<[email protected]> (03/12/19 1.1520)
[PATCH] ia64: sn2 defconfig file

As promised, here's a patch to add an sn2 defconfig file to get people started with 2.6 kernels. I even turned on CONFIG_IA64_SGI_SIM support to make Jack happy :)

<[email protected]> (03/12/19 1.1519)
[PATCH] ia64: initialize bootmem maps in reverse order

The arch-independent bootmem code now requires that arches initialize their bootmem maps in reverse order (in particular, from high to low addesses), otherwise alloc_bootmem_pages_low() won't work. This change makes the ia64 code do just that, so that machines without an IOMMU can allocate their bounce buffers in low memory at early boot. It also adds a sanity check to the early init code to make sure that each node has a local data area, because if they don't, many things will break later on and may be hard to track down.

<[email protected]> (03/12/19 1.1518)
[PATCH] ia64: Prevent SAL calls from being preempted

(SAL_CALL_REENTRANT): Disable preemption around the SAL call to make sure we don't get rescheduled on a different CPU.

<[email protected]> (03/12/19 1.1517)
[PATCH] ia64: Force generic and hp kernels to use 16MB granules

This forces the granule size to 16MB for HP zx1 and generic kernels. HP sx1000 machines require this.

<[email protected]> (03/12/19 1.1516)
[PATCH] ia64: Remove unused ACPI functions.

Remove unused functions:

       acpi_get_prt()
       acpi_get_interrupt_model()
       acpi_get_addr_space()

<[email protected]> (03/12/19 1.1515)
[PATCH] ia64: Remove extraneous printks (we get the same information from ACPI).

(iosapic_init): Remove extraneous printk. (pci_acpi_scan_root): Remove extraneous printk.

<[email protected]> (03/12/19 1.1514)
[PATCH] ia64: Fix PCI root bridge resources to handle prior allocations.

(alloc_resources): Use insert_resource(), not request_resource(), to allocate PCI root bridge windows. This fixes the problem where root bridge window allocation fails because an early driver (like VGA) has already allocated things.

<[email protected]> (03/12/19 1.1513)
[PATCH] ia64: make NODES_SHIFT a little biggger

Make NODES_SHIFT larger to accomodate 256 node machines.

<[email protected]> (03/12/19 1.1512)
[PATCH] ia64: update sn2 MAINTAINERS file entry

<[email protected]> (03/12/19 1.1511)
[PATCH] ia64: make cpu_to_node_map unsigned

This small fix is needed for machines with more than 128 nodes.

<[email protected]> (03/12/19 1.1510)
[PATCH] ia64: prevent buffer-overrun in acpi_numa_memory_affinity_init()

The code in acpi_numa_memory_affinity_init that sorts the node_memblk can overrun the array & clobber the memory that follows the end of the array. The error will be seen only on systems that fill the node_memblk array and only if SAL doesnt sort the entries in the SRAT.

<[email protected]> (03/12/19 1.1509)
[PATCH] ia64: enable out-of-tree compilation for IA64

<[email protected]> (03/12/16 1.1507)
ia64: Bring export of spin-lock contention-routines in sync with
this change: Jim Wilson says that gcc v3.3 also supports marking ar.pfs as clobbered, so use ia64_spinlock_contention() for any GCC with v3.3 or newer.

<[email protected]> (03/12/13 1.1506)
ia64: Fix compiler warning in intrinsics.h.

<[email protected]> (03/12/13 1.1505)
ia64: Fix ivt overflow that occurred when turning on
CONFIG_DISABLE_VHPT.

<[email protected]> (03/12/13 1.1504)
ia64: Fix bug discovered by Bill Nottingham & Jakub Jelinek where
put_user() arguments with function-calls would cause the macro to return unexpected values. Fixed by avoiding macro argument evaluation while r8/r9 are in use for exception-handling purposes. Also, consolidated access-macros so that GCC and Intel compiler use 90% the same code.

<[email protected]> (03/12/11 1.1503)
ia64: Based on patch by Jerome Marchand: Add ia64-optimized
atomic_dec_and_lock(). Actually, this could be the generic version for any platform that has cmpxchg().

<[email protected]> (03/12/10 1.1502)
ia64: Switch places for the gate pages and the guard page. This improves
backwards-compatibility with older (broken) versions of GCC which recognize a signal-handler only if it is in the address range from 0xa000000000000100. to 0xa000000000020000.

<[email protected]> (03/12/10 1.1501)
ia64: Jim Wilson says that gcc v3.3 also supports marking ar.pfs as
clobbered, so use ia64_spinlock_contention() for any GCC with v3.3 or newer.

<[email protected]> (03/12/08 1.1500)
[PATCH] ia64: make perfmon CONFIG_PREEMPT-safe again

Here's a fix for non-preemption safety in perfmon.c.

I haven't tried it while running a preemption stress test, but this allows q-syscollect to work.

<[email protected]> (03/12/04 1.1499)
[PATCH] ia64: fix typo in vmlinux.lds.S

The security init section was incorrectly using PAGE_OFFSET instead of LOAD_OFFSET.

<[email protected]> (03/12/01 1.1498)
[PATCH] ia64: fix smp_affinity user-space accesses

Here is a new improved patch for verifying user access to string passed in to kernel on write to /proc/irq/<pid>/smp_affinity.

The access_ok() but missing __get_user() on each byte earlier patch has been replaced with a copy_from_user().

I have built it and verified that it handles write requests as before, on an ia64 system (well - you can no longer pass more than 14 spaces after the 'R' - tough).

<[email protected]> (03/11/26 1.1497)
ia64: Fix a bug in sigtramp() which corrupted ar.rnat when unwinding
across a signal trampoline (in user space). Reported by Laurent Morichetti.