1. 04 12月, 2009 1 次提交
  2. 23 9月, 2009 1 次提交
    • K
      walk system ram range · 908eedc6
      KAMEZAWA Hiroyuki 提交于
      Originally, walk_memory_resource() was introduced to traverse all memory
      of "System RAM" for detecting memory hotplug/unplug range.  For doing so,
      flags of IORESOUCE_MEM|IORESOURCE_BUSY was used and this was enough for
      memory hotplug.
      
      But for using other purpose, /proc/kcore, this may includes some firmware
      area marked as IORESOURCE_BUSY | IORESOUCE_MEM.  This patch makes the
      check strict to find out busy "System RAM".
      
      Note: PPC64 keeps their own walk_memory_resouce(), which walk through
      ppc64's lmb informaton.  Because old kclist_add() is called per lmb, this
      patch makes no difference in behavior, finally.
      
      And this patch removes CONFIG_MEMORY_HOTPLUG check from this function.
      Because pfn_valid() just show "there is memmap or not* and cannot be used
      for "there is physical memory or not", this function is useful in generic
      to scan physical memory range.
      Signed-off-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: WANG Cong <xiyou.wangcong@gmail.com>
      Cc: Américo Wang <xiyou.wangcong@gmail.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      908eedc6
  3. 22 1月, 2009 1 次提交
  4. 13 1月, 2009 1 次提交
  5. 26 12月, 2008 2 次提交
    • N
      ehea: use get_zeroed_page for alignment-sensitive allocation · d76e56b4
      Nathan Lynch 提交于
      With slub debug enabled, I see the following errors and crash with
      2.6.28-rc9:
      
      IBM eHEA ethernet device driver (Release EHEA_0095)
      ehea: Error in ehea_h_register_rpage_mr: not on pageboundary
      ehea: Error in ehea_reg_mr_section: register_rpage_mr failed
      ehea: Error in ehea_reg_kernel_mr: registering mr failed
      ehea: Error in ehea_setup_ports: creating MR failed
      ehea 23c00100.lhea: setup_ports failed
      Unable to handle kernel paging request for data at address 0x6b6b6b6b6b6bbdcb
      Faulting instruction address: 0xd000000000064a24
      cpu 0x0: Vector: 300 (Data Access) at [c0000000740e7190]
          pc: d000000000064a24: .ehea_update_firmware_handles+0x84/0x47c [ehea]
          lr: d00000000006df34: .ehea_probe_adapter+0x35c/0x39c [ehea]
          sp: c0000000740e7410
         msr: 8000000000009032
         dar: 6b6b6b6b6b6bbdcb
       dsisr: 40000000
        current = 0xc000000074233780
        paca    = 0xc0000000008a3300
          pid   = 2046, comm = modprobe
      enter ? for help
      [c0000000740e74f0] d00000000006df34 .ehea_probe_adapter+0x35c/0x39c [ehea]
      [c0000000740e75a0] c00000000041d5a4 .of_platform_device_probe+0x78/0xb0
      [c0000000740e7630] c0000000002d8b38 .driver_probe_device+0x13c/0x200
      [c0000000740e76c0] c0000000002d8c90 .__driver_attach+0x94/0xd8
      [c0000000740e7750] c0000000002d7d64 .bus_for_each_dev+0x80/0xd8
      [c0000000740e7800] c0000000002d889c .driver_attach+0x28/0x40
      [c0000000740e7880] c0000000002d8340 .bus_add_driver+0xd4/0x284
      [c0000000740e7920] c0000000002d90a0 .driver_register+0xc4/0x198
      [c0000000740e79d0] c00000000041d45c .of_register_driver+0x4c/0x60
      [c0000000740e7a50] c000000000020ef8 .ibmebus_register_driver+0x30/0x4c
      [c0000000740e7ae0] d00000000006e108 .ehea_module_init+0x194/0x208c [ehea]
      [c0000000740e7b90] c000000000009028 .do_one_initcall+0x90/0x1ac
      [c0000000740e7d90] c00000000008619c .sys_init_module+0xc4/0x200
      [c0000000740e7e30] c0000000000084ac syscall_exit+0x0/0x40
      
      (When slub debug is disabled it works fine.)
      
      PAGE_SIZE allocations via slab are not guaranteed to be page-aligned;
      use get_zeroed_page for the 'pt' buffer (I don't really know what this
      is, only that it is passed to firmware and that the first error
      message complains about its alignment).  This allows the system to
      boot.
      Signed-off-by: NNathan Lynch <ntl@pobox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d76e56b4
    • J
      drivers/net/ehea: Remove redundant test · 662f44af
      Julia Lawall 提交于
      In each case, vpage is checked not to be NULL just after it is initialized
      at the beginning of each loop iteration.
      
      A simplified version of the semantic patch that makes this change is as
      follows: (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r exists@
      local idexpression x;
      expression E;
      position p1,p2;
      @@
      
      if (x@p1 == NULL || ...) { ... when forall
         return ...; }
      ... when != \(x=E\|x--\|x++\|--x\|++x\|x-=E\|x+=E\|x|=E\|x&=E\|&x\)
      (
      x@p2 == NULL
      |
      x@p2 != NULL
      )
      
      // another path to the test that is not through p1?
      @s exists@
      local idexpression r.x;
      position r.p1,r.p2;
      @@
      
      ... when != x@p1
      (
      x@p2 == NULL
      |
      x@p2 != NULL
      )
      
      @fix depends on !s@
      position r.p1,r.p2;
      expression x,E;
      statement S1,S2;
      @@
      
      (
      - if ((x@p2 != NULL) || ...)
        S1
      |
      - if ((x@p2 == NULL) && ...) S1
      |
      - BUG_ON(x@p2 == NULL);
      )
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      662f44af
  6. 06 11月, 2008 1 次提交
  7. 28 10月, 2008 1 次提交
  8. 22 10月, 2008 1 次提交
  9. 25 9月, 2008 1 次提交
  10. 13 5月, 2008 1 次提交
  11. 03 2月, 2008 1 次提交
  12. 11 10月, 2007 2 次提交
  13. 25 8月, 2007 1 次提交
  14. 17 7月, 2007 1 次提交
    • T
      eHEA: Introducing support vor DLPAR memory add · 44c82152
      Thomas Klein 提交于
      This patch adds support for DLPAR memory add to the eHEA driver. To detect
      whether memory was added the driver uses its own memory mapping table and
      checks for kernel addresses whether they're located in already known memory
      sections. If not the function ehea_rereg_mrs() is triggered which performs
      a rebuild of the mapping table and a re-registration of the global memory
      region.
      Signed-off-by: NThomas Klein <tklein@de.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      44c82152
  15. 09 7月, 2007 1 次提交
  16. 28 4月, 2007 1 次提交
  17. 10 2月, 2007 1 次提交
  18. 04 12月, 2006 1 次提交
  19. 06 11月, 2006 2 次提交
  20. 14 9月, 2006 1 次提交
    • J
      [PATCH] ehea: IBM eHEA Ethernet Device Driver · 7a291083
      Jan-Bernd Themann 提交于
      Hi Jeff,
      
      I fixed the __iomem issue and tested the driver with sparse. Looks good so far.
      Thanks for your effort.
      
      Jan-Bernd Themann
      Signed-off-by: NJan-Bernd Themann <themann@de.ibm.com>
      
       drivers/net/Kconfig             |    9
       drivers/net/Makefile            |    1
       drivers/net/ehea/Makefile       |    6
       drivers/net/ehea/ehea.h         |  447 ++++++
       drivers/net/ehea/ehea_ethtool.c |  294 ++++
       drivers/net/ehea/ehea_hcall.h   |   51
       drivers/net/ehea/ehea_hw.h      |  287 ++++
       drivers/net/ehea/ehea_main.c    | 2654 ++++++++++++++++++++++++++++++++++++++++
       drivers/net/ehea/ehea_phyp.c    |  705 ++++++++++
       drivers/net/ehea/ehea_phyp.h    |  455 ++++++
       drivers/net/ehea/ehea_qmr.c     |  582 ++++++++
       drivers/net/ehea/ehea_qmr.h     |  358 +++++
       12 files changed, 5849 insertions(+)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      7a291083