1. 13 12月, 2005 20 次提交
  2. 12 12月, 2005 7 次提交
  3. 09 12月, 2005 6 次提交
    • K
      [IPv6] IPsec: fix pmtu calculation of esp · 73d4f84f
      Kazunori MIYAZAWA 提交于
      It is a simple bug which uses the wrong member.
      
      This bug does not seriously affect ordinary use of IPsec.
      But it is important to pass IPv6 ready logo phase-2
      conformance test of IPsec SGW.
      Signed-off-by: NKazunori MIYAZAWA <miyazawa@linux-ipv6.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      73d4f84f
    • D
      [PATCH] powerpc: Fix SLB flushing path in hugepage · 23ed6cb9
      David Gibson 提交于
      On ppc64, when opening a new hugepage region, we need to make sure any
      old normal-page SLBs for the area are flushed on all CPUs.  There was
      a bug in this logic - after putting the new hugepage area masks into
      the thread structure, we copied it into the paca (read by the SLB miss
      handler) only on one CPU, not on all.  This could cause incorrect SLB
      entries to be loaded when a multithreaded program was running
      simultaneously on several CPUs.  This patch corrects the error,
      copying the context information into the PACA on all CPUs using the mm
      in question before flushing any existing SLB entries.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      23ed6cb9
    • D
      [PATCH] powerpc: Add missing icache flushes for hugepages · cbf52afd
      David Gibson 提交于
      On most powerpc CPUs, the dcache and icache are not coherent so
      between writing and executing a page, the caches must be flushed.
      Userspace programs assume pages given to them by the kernel are icache
      clean, so we must do this flush between the kernel clearing a page and
      it being mapped into userspace for execute.  We were not doing this
      for hugepages, this patch corrects the situation.
      
      We use the same lazy mechanism as we use for normal pages, delaying
      the flush until userspace actually attempts to execute from the page
      in question.
      
      Tested on G5.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      cbf52afd
    • O
      [PATCH] powerpc: Set cache info defaults · dabcafd3
      Olof Johansson 提交于
      Cache info is setup by walking the device tree in initialize_cache_info().
      However, icache_flush_range might be called before that, in
      slb_initialize()->patch_slb_encoding, which modifies the load immediate
      instructions used with SLB fault code.
      
      Not only that, but depending on memory layout, we might take SLB faults
      during unflatten_device_tree. So that fault will load an SLB entry that
      might not contain the right LLP flags for the segment.
      
      Either we can walk the flattened device tree to setup cache info, or
      we can pick the known defaults that are known to work. Doing it in the
      flattened device tree is hairier since we need to know the machine type
      to know what property to look for, etc, etc.
      
      For now, it's just easier to go with the defaults. Worst thing that
      happens from it is that we might waste a few cycles doing too small
      dcbst/icbi increments.
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      dabcafd3
    • M
      [PATCH] Fix windfarm model-id table · 326743ea
      Michal Ostrowski 提交于
      model_id fields of wf_smu_sys_all_params should match the model ID
      they are supposed to represent (as commented). Fixes windfarm on some
      iMac 8,1 models.
      
      Signed-off-by: Michal Ostrowski <mostrows at watson ibm com>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      326743ea
    • S
      [NET]: Fix NULL pointer deref in checksum debugging. · 246a4212
      Stephen Hemminger 提交于
      The problem I was seeing turned out to be that skb->dev is NULL when
      the checksum is being completed in user context. This happens because
      the reference to the device is dropped (to allow it to be released
      when packets are in the queue).
      
      Because skb->dev was NULL, the netdev_rx_csum_fault was panicing on
      deref of dev->name. How about this?
      Signed-off-by: NStephen Hemminger <shemminger@osdl.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      246a4212
  4. 08 12月, 2005 3 次提交
  5. 07 12月, 2005 4 次提交