1. 29 8月, 2005 6 次提交
    • D
      [PATCH] Remove unneeded #defines in head.S · 1d086e6b
      David Gibson 提交于
      arch/ppc64/kernel/head.S #defines SECONDARY_PROCESSORS then has some
      #ifdefs based on it.  Whatever purpose this had is long lost, this
      patch removes it.
      
      Likewise, head.S defines H_SET_ASR, which is now defined, along with
      other hypervisor call numbers in hvcall.h.  This patch deletes it, as
      well, from head.S.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      1d086e6b
    • D
      [PATCH] Fix apparent code overlap in ppc64 head.S · 60ba4494
      David Gibson 提交于
      An #if/#else construct near the top of ppc64's head.S appears to
      create overlapping sections of code for iSeries and pSeries (i.e. one
      thing on iSeries and something different in the same place on
      pSeries).  In fact, checking the various absolute offsets, it doesn't.
      This patch unravels the #ifdefs to make it more obvious what's going
      on.  This accomplishes another microstep towards a single kernel image
      which can boot both iSeries and pSeries.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      60ba4494
    • D
      [PATCH] Remove general use functions from head.S · 0ab20002
      David Gibson 提交于
      As well as the interrupt vectors and initialization code, head.S
      contains several asm functions which are used during runtime.  This
      patch moves these to misc.S, a more sensible location for random asm
      support code.  A couple The functions moved are:
      	disable_kernel_fp
      	giveup_fpu
      	disable_kernel_altivec
      	giveup_altivec
      	__setup_cpu_power3	(empty function)
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      0ab20002
    • D
      [PATCH] Change address of ppc64 initial segment table · c59c464a
      David Gibson 提交于
      On ppc64 machines with segment tables, CPU0's segment table is at a
      fixed address, currently 0x9000.  This patch moves it to the free
      space at 0x6000, just below the fwnmi data area.  This saves 8k of
      space in vmlinux and the runtime kernel image.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      c59c464a
    • D
      [PATCH] Move iSeries and common vectors into unused space in head.S · ec465515
      David Gibson 提交于
      In the ppc64 kernel head.S there is currently quite a lot of unused
      space between the naca (at fixed address 0x4000) and the fwnmi data
      area (at fixed address 0x7000).  This patch moves various exception
      vectors and support code into this region to use the wasted space.
      
      The functions load_up_fpu and load_up_altivec are moved down as well,
      since they are essentially continuations of the fp_unavailable_common
      and altivec_unavailable_common vectors, respectively.
      
      Likewise, the fwnmi vectors themselves are moved down into this area,
      because while the location of the fwnmi data area is fixed by the RPA,
      the vectors themselves can be anywhere sufficiently low.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      ec465515
    • D
      [PATCH] Remove NACA fixed address constraint · 2e2446ea
      David Gibson 提交于
      Comments in head.S suggest that the iSeries naca has a fixed address,
      because tools expect to find it there.  The only tool which appears to
      access the naca is addRamDisk, but both the in-kernel version and the
      version used in RHEL and SuSE in fact locate the NACA the same way as
      the hypervisor does, by following the pointer in the hvReleaseData
      structure.
      
      Since the requirement for a fixed address seems to be obsolete, this
      patch removes the naca from head.S and replaces it with a normal C
      initializer.
      
      For good measure, it removes an old version of addRamDisk.c which was
      sitting, unused, in the ppc32 tree.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      2e2446ea
  2. 17 8月, 2005 1 次提交
  3. 05 8月, 2005 1 次提交
  4. 28 7月, 2005 2 次提交
    • D
      [PATCH] ppc64: remove another fixed address constraint · 488f8499
      David Gibson 提交于
      Presently the LparMap, one of the structures the kernel shares with the
      legacy iSeries hypervisor has a fixed offset address in head.S.  This patch
      changes this so the LparMap is a normally initialized structure, without
      fixed address.  This allows us to use macros to compute some of the values
      in the structure, which wasn't previously possible because the assembler
      always uses signed-% which gets the wrong answers for the computations in
      question.
      
      Unfortunately, a gcc bug means that doing this requires another structure
      (hvReleaseData) to be initialized in asm instead of C, but on the whole the
      result is cleaner than before.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      488f8499
    • D
      [PATCH] ppc64: dynamically allocate segment tables · 533f0817
      David Gibson 提交于
      PPC64 machines before Power4 need a segment table page allocated for each
      CPU.  Currently these are allocated statically in a big array in head.S for
      all CPUs.  The segment tables need to be in the first segment (so
      do_stab_bolted doesn't take a recursive fault on the stab itself), but
      other than that there are no constraints which require the stabs for the
      secondary CPUs to be statically allocated.
      
      This patch allocates segment tables dynamically during boot, using
      lmb_alloc() to ensure they are within the first 256M segment.  This reduces
      the kernel image size by 192k...
      
      Tested on RS64 iSeries, POWER3 pSeries, and POWER5.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      533f0817
  5. 08 7月, 2005 1 次提交
  6. 26 6月, 2005 1 次提交
    • R
      [PATCH] ppc64: kexec support for ppc64 · fce0d574
      R Sharada 提交于
      This patch implements the kexec support for ppc64 platforms.
      
      A couple of notes:
      
      1)  We copy the pages in virtual mode, using the full base kernel
          and a statically allocated stack.   At kexec_prepare time we
          scan the pages and if any overlap our (0, _end[]) range we
          return -ETXTBSY.
      
          On PowerPC 64 systems running in LPAR (logical partitioning)
          mode, only a small region of memory, referred to as the RMO,
          can be accessed in real mode.  Since Linux runs with only one
          zone of memory in the memory allocator, and it can be orders of
          magnitude more memory than the RMO, looping until we allocate
          pages in the source region is not feasible.  Copying in virtual
          means we don't have to write a hash table generation and call
          hypervisor to insert translations, instead we rely on the pinned
          kernel linear mapping.  The kernel already has move to linked
          location built in, so there is no requirement to load it at 0.
      
          If we want to load something other than a kernel, then a stub
          can be written to copy a linear chunk in real mode.
      
      2)  The start entry point gets passed parameters from the kernel.
          Slaves are started at a fixed address after copying code from
          the entry point.
      
          All CPUs get passed their firmware assigned physical id in r3
          (most calling conventions use this register for the first
          argument).
      
          This is used to distinguish each CPU from all other CPUs.
          Since firmware is not around, there is no other way to obtain
          this information other than to pass it somewhere.
      
          A single CPU, referred to here as the master and the one executing
          the kexec call, branches to start with the address of start in r4.
          While this can be calculated, we have to load it through a gpr to
          branch to this point so defining the register this is contained
          in is free.  A stack of unspecified size is available at r1
          (also common calling convention).
      
          All remaining running CPUs are sent to start at absolute address
          0x60 after copying the first 0x100 bytes from start to address 0.
          This convention was chosen because it matches what the kernel
          has been doing itself.  (only gpr3 is defined).
      
          Note: This is not quite the convention of the kexec bootblock v2
          in the kernel.  A stub has been written to convert between them,
          and we may adjust the kernel in the future to allow this directly
          without any stub.
      
      3)  Destination pages can be placed anywhere, even where they
          would not be accessible in real mode.  This will allow us to
          place ram disks above the RMO if we choose.
      Signed-off-by: NMilton Miller <miltonm@bga.com>
      Signed-off-by: NR Sharada <sharada@in.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      fce0d574
  7. 22 6月, 2005 1 次提交
    • D
      [PATCH] ppc64: Abolish ioremap_mm · 20cee16c
      David Gibson 提交于
      Currently ppc64 has two mm_structs for the kernel, init_mm and also
      ioremap_mm.  The latter really isn't necessary: this patch abolishes it,
      instead restricting vmallocs to the lower 1TB of the init_mm's range and
      placing io mappings in the upper 1TB.  This simplifies the code in a number
      of places and eliminates an unecessary set of pagetables.  It also tweaks
      the unmap/free path a little, allowing us to remove the unmap_im_area() set
      of page table walkers, replacing them with unmap_vm_area().
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      20cee16c
  8. 03 6月, 2005 1 次提交
  9. 17 4月, 2005 2 次提交
    • B
      [PATCH] ppc64: Detect altivec via firmware on unknown CPUs · 187335a4
      Benjamin Herrenschmidt 提交于
      This patch adds detection of the Altivec capability of the CPU via the
      firmware in addition to the cpu table.  This allows newer CPUs that aren't
      in the table to still have working altivec support in the kernel.
      
      It also fixes a problem where if a CPU isn't recognized as having altivec
      features, and takes an altivec unavailable exception due to userland
      issuing altivec instructions, the kernel would happily enable it and
      context switch the registers ...  but not all of them (it would basically
      forget vrsave).  With this patch, the kernel will refuse to enable altivec
      when the feature isn't detected for the CPU (SIGILL).
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      187335a4
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4