1. 19 4月, 2008 5 次提交
  2. 18 4月, 2008 14 次提交
    • B
      ppc/pmac: remove no longer needed IDE quirk · 359c2e2d
      Bartlomiej Zolnierkiewicz 提交于
      IDE PMAC host driver and all IDE PCI host drivers use pci_enable_device()
      nowadays so the following quirk in pmac_pcibios_after_init() can be removed.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      359c2e2d
    • B
      ppc: don't include <linux/ide.h> · 7e41e7b3
      Bartlomiej Zolnierkiewicz 提交于
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      7e41e7b3
    • B
      ppc: remove ppc_ide_md · 1d850bd0
      Bartlomiej Zolnierkiewicz 提交于
      * Add special cases for pplus and prep to ide_default_{irq,io_base}()
        (+ FIXMEs about the need to use IDE platform host driver instead).
      
      * Remove no longer needed ppc_ide_md and struct ide_machdep_calls.
      
      * Then remove <linux/ide.h> include from:
        - arch/powerpc/kernel/setup_32.c
        - arch/ppc/kernel/ppc_ksyms.c
        - arch/ppc/kernel/setup.c
        - arch/ppc/platforms/pplus.c
        - arch/ppc/platforms/prep_setup.c
      
      There should be no functional changes caused by this patch.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      1d850bd0
    • B
      ppc/pplus: remove ppc_ide_md.ide_init_hwif hook · 5d682e44
      Bartlomiej Zolnierkiewicz 提交于
      * Call ide_init_default_irq() for pplus in init_ide_data().
      
      * Remove no longer needed pplus_ide_init_hwif_ports().
      
      There should be no functional changes caused by this patch.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      5d682e44
    • B
      ppc/sandpoint: remove ppc_ide_md hooks · 7ef8df81
      Bartlomiej Zolnierkiewicz 提交于
      * Add IDE_HFLAG_FORCE_LEGACY_IRQS host flag for Motorola-Sandpoint platform
        to sl82c105 host driver.
      
      * Disable ide_generic host driver in arch/ppc/configs/sandpoint_defconfig
        and enable sl82c105 one.
      
      * Remove ppc_ide_md hooks from arch/ppc/platforms/sandpoint.c - no need for
        them (sl82c105 host driver takes care of all this setup).
      
      * Then remove no longer needed <linux/ide.h> include.
      
      * Also update arch/ppc/platforms/sandpoint.h.
      
      Unfortunately (unlike lopec's case) sl82c105 host driver was not enabled
      in defconfing so there is a funcionality change.
      
      [ Not a big deal since sl82c105 is superior over ide_generic. ]
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      7ef8df81
    • B
      ppc/lopec: remove ppc_ide_md hooks · 5510b125
      Bartlomiej Zolnierkiewicz 提交于
      * Add IDE_HFLAG_FORCE_LEGACY_IRQS host flag for Motorola-LoPEC platform
        to sl82c105 host driver.
      
      * Remove ppc_ide_md hooks from arch/ppc/platforms/lopec.c - no need for
        them (sl82c105 host driver takes care of all this setup).
      
      * Then remove no longer needed <linux/ide.h> include.
      
      Looking at arch/ppc/configs/lopec_defconfig:
      
      ...
      CONFIG_IDE_GENERIC=y
      CONFIG_BLK_DEV_IDEPCI=y
      # CONFIG_IDEPCI_SHARE_IRQ is not set
      # CONFIG_BLK_DEV_OFFBOARD is not set
      CONFIG_BLK_DEV_GENERIC=y
      # CONFIG_BLK_DEV_OPTI621 is not set
      CONFIG_BLK_DEV_SL82C105=y
      ...
      
      there should be no functional changes unless somebody preferred to disable
      sl82c105 host driver and use only ide_generic one (but why would anybody
      want to do such thing :-).
      
      PS It seems that lopec_defconfig hasn't been updated for ages but if somebody
      is going to do it please look into disabling IDE_GENERIC and BLK_DEV_GENERIC
      config options.  Thanks.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      5510b125
    • B
      ppc/mpc8xx: remove ppc_ide_md hooks · 2661b13a
      Bartlomiej Zolnierkiewicz 提交于
      * Initialize IDE ports in mpc8xx_ide_probe().
      
      * Remove m8xx_ide_init() and ppc_ide_md hooks - no need for them
        (IDE mpc8xx host driver takes care of all this setup).
      
      * Remove needless 'if (irq)' and 'if (data_port >= MAX_HWIFS)' checks
        from m8xx_ide_init_hwif_ports().
      
      * Remove 'ctrl_port' and 'irq' arguments from m8xx_ide_init_hwif_ports().
      
      * Rename m8xx_ide_init_hwif_ports() to m8xx_ide_init_ports().
      
      * Add __init tag to m8xx_ide_init_ports().
      
      This patch fixes hwif->irq always being overriden to 0 (== auto-probe, is
      this even working on PPC?) because of ide_init_default_irq() call in ide.c.
      
      There should be no other functional changes.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NVitaly Bordug <vitb@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      2661b13a
    • B
      ppc/pmac: remove ppc_ide_md hooks · 5c58666f
      Bartlomiej Zolnierkiewicz 提交于
      * Add pmac_ide_init_ports() helper and use it instead of
        pmac_ide_init_hwif_ports().
      
      * Remove ppc_ide_md hooks - no need for them
        (IDE pmac host driver takes care of all this setup).
      
      * Then remove no longer needed <linux/ide.h> include
        from arch/powerpc/platforms/powermac/pmac.h.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      5c58666f
    • B
      ppc/ppc4xx: remove ppc_ide_md hooks · e4f7f3a0
      Bartlomiej Zolnierkiewicz 提交于
      There are no "default" IDE ports on PPC4xx so ppc4xx_ide_init_hwif_ports() is
      unnecessary, remove it.  Also remove no longer needed <linux/ide.h> include.
      
      There should be no functional changes caused by this patch.
      
      Cc: Josh Boyer <jwboyer@linux.vnet.ibm.com>
      Cc: Matt Porter <mporter@kernel.crashing.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      e4f7f3a0
    • B
      ppc/hdpu: remove dead IDE code · 3671e9a9
      Bartlomiej Zolnierkiewicz 提交于
      Also remove now not needed <linux/ide.h> include.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      3671e9a9
    • J
      kgdb: fix several kgdb regressions · 737a460f
      Jason Wessel 提交于
      kgdb core fixes:
      - Check to see that mm->mmap_cache is not null before calling
        flush_cache_range(), else on arch=ARM it will cause a fatal
        fault.
      
      - Breakpoints should only be restored if they are in the BP_ACTIVE
        state.
      
      - Fix a typo in comments to "kgdb_register_io_module"
      
      x86 kgdb fixes:
      - Fix the x86 arch handler such that on a kill or detach that the
        appropriate cleanup on the single stepping flags gets run.
      
      - Add in the DIE_NMIWATCHDOG call for x86_64
      
      - Touch the nmi watchdog before returning the system to normal
        operation after performing any kind of kgdb operation, else
        the possibility exists to trigger the watchdog.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      737a460f
    • J
      kgdb: add x86 HW breakpoints · 64e9ee30
      Jason Wessel 提交于
      Add HW breakpoints into the arch specific portion of x86 kgdb.  In the
      current x86 kernel.org kernels HW breakpoints are changed out in lazy
      fashion because there is no infrastructure around changing them when
      changing to a kernel task or entering the kernel mode via a system
      call.  This lazy approach means that if a user process uses HW
      breakpoints the kgdb will loose out.  This is an acceptable trade off
      because the developer debugging the kernel is assumed to know what is
      going on system wide and would be aware of this trade off.
      
      There is a minor bug fix to the kgdb core so as to correctly call the
      hw breakpoint functions with a valid value from the enum.
      
      There is also a minor change to the x86_64 startup code when using
      early HW breakpoints.  When the debugger is connected, the cpu startup
      code must not zero out the HW breakpoint registers or you cannot hit
      the breakpoints you are interested in, in the first place.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      64e9ee30
    • J
      kgdb: fix NMI hangs · d3597524
      Jason Wessel 提交于
      This patch fixes the hang regression with kgdb when the NMI interrupt
      comes in while the master core is returning from an exception.
      
      Adjust the NMI logic such that KGDB will not stop NMI exceptions from
      occurring by in general returning NOTIFY_DONE.  It is not possible to
      distinguish the debug NMI sync vs the normal NMI apic interrupt so
      kgdb needs to catch the unknown NMI if it the debugger was previously
      active on one of the cpus.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      d3597524
    • I
      x86: kgdb support · 82da3ff8
      Ingo Molnar 提交于
      simplified and streamlined kgdb support on x86, both 32-bit and 64-bit,
      based on patch from:
      
        Subject: kgdb: core-lite
        From: Jason Wessel <jason.wessel@windriver.com>
      
      [ and countless other authors - see the patch for details. ]
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Signed-off-by: NJan Kiszka <jan.kiszka@web.de>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      82da3ff8
  3. 17 4月, 2008 21 次提交