The patch titled intel-iommu-iommu-floppy-workaround-fix has been added to the -mm tree. Its filename is intel-iommu-iommu-floppy-workaround-fix.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: intel-iommu-iommu-floppy-workaround-fix From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Cc: "Keshavamurthy, Anil S" <anil.s.keshavamurthy@xxxxxxxxx> Cc: "Siddha, Suresh B" <suresh.b.siddha@xxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxx> Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@xxxxxxxxx> Cc: Arjan van de Ven <arjan@xxxxxxxxxxxxx> Cc: Ashok Raj <ashok.raj@xxxxxxxxx> Cc: Christoph Lameter <clameter@xxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Cc: Muli Ben-Yehuda <muli@xxxxxxxxxx> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86_64/Kconfig | 2 +- drivers/pci/intel-iommu.c | 19 ++++++++++++------- drivers/pci/intel-iommu.h | 7 ------- 3 files changed, 13 insertions(+), 15 deletions(-) diff -puN arch/x86_64/Kconfig~intel-iommu-iommu-floppy-workaround-fix arch/x86_64/Kconfig --- a/arch/x86_64/Kconfig~intel-iommu-iommu-floppy-workaround-fix +++ a/arch/x86_64/Kconfig @@ -770,7 +770,7 @@ config DMAR_GFX_WA all the OS visible memory. Hence the driver can continue to use physical addresses for DMA. -config DMAR_FLPY_WA +config DMAR_FLOPPY_WA bool "Support for Floppy disk workaround" depends on DMAR default y diff -puN drivers/pci/intel-iommu.c~intel-iommu-iommu-floppy-workaround-fix drivers/pci/intel-iommu.c --- a/drivers/pci/intel-iommu.c~intel-iommu-iommu-floppy-workaround-fix +++ a/drivers/pci/intel-iommu.c @@ -1631,25 +1631,30 @@ error: } #endif -#ifdef CONFIG_DMAR_FLPY_WA +#ifdef CONFIG_DMAR_FLOPPY_WA static inline void iommu_prepare_isa(void) { - struct pci_dev *pdev = NULL; + struct pci_dev *pdev; int ret; - pdev = pci_get_class (PCI_CLASS_BRIDGE_ISA << 8, NULL); + pdev = pci_get_class(PCI_CLASS_BRIDGE_ISA << 8, NULL); if (!pdev) return; - printk (KERN_INFO "IOMMU: Prepare 0-16M unity mapping for LPC\n"); + printk(KERN_INFO "IOMMU: Prepare 0-16M unity mapping for LPC\n"); ret = iommu_prepare_identity_map(pdev, 0, 16*1024*1024); if (ret) - printk ("IOMMU: Failed to create 0-64M identity map, \ - Floppy might not work\n"); + printk("IOMMU: Failed to create 0-64M identity map, " + "floppy might not work\n"); } -#endif +#else +static inline void iommu_prepare_isa(void) +{ + return; +} +#endif /* !CONFIG_DMAR_FLPY_WA */ int __init init_dmars(void) { diff -puN drivers/pci/intel-iommu.h~intel-iommu-iommu-floppy-workaround-fix drivers/pci/intel-iommu.h --- a/drivers/pci/intel-iommu.h~intel-iommu-iommu-floppy-workaround-fix +++ a/drivers/pci/intel-iommu.h @@ -322,11 +322,4 @@ static inline void iommu_prepare_gfx_map } #endif /* !CONFIG_DMAR_GFX_WA */ -#ifndef CONFIG_DMAR_FLPY_WA -static inline void iommu_prepare_isa(void) -{ - return; -} -#endif /* !CONFIG_DMAR_FLPY_WA */ - #endif _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are smsc-ircc2-skip-preconfiguration-for-pnp-devices.patch ioatdma-fix-section-mismatches.patch x86_64-set-the-irq_chip-name-for-lapic.patch git-acpi.patch git-acpi-fixup.patch git-acpi-tickh-needs-hrtimerh.patch git-acpi-add-exports.patch git-alsa.patch working-3d-dri-intel-agpko-resume-for-i815-chip.patch git-avr32.patch git-cpufreq-fix.patch bugfix-cpufreq-in-combination-with-performance-governor-fix.patch 8xx-mpc885ads-pcmcia-support.patch revert-gregkh-driver-block-device.patch driver-core-check-return-code-of-sysfs_create_link.patch revert-saa7134-fix-thread-shutdown-handling.patch git-dvb.patch git-gfs2-nmw.patch git-infiniband.patch git-input.patch serio_raw_read-warning-fix.patch git-kbuild.patch git-kbuild-fixup.patch git-kvm.patch git-leds.patch led_colour_show-warning-fix.patch ide_scan_pcibus-cehck-__pci_register_driver-return-value.patch git-md-accel.patch git-mips-fixup.patch use-mutex-instead-of-semaphore-in-the-mtd-st-m25pxx-driver.patch git-ubi.patch git-netdev-all.patch sundance-phy-address-form-0-only-for-device-id-0x0200-fix.patch wrong-timeout-value-in-sk_wait_data-v2-fix.patch git-battery.patch git-ioat-vs-git-md-accel.patch git-nfs-server-cluster-locking-api-fixup.patch pa-risc-use-page-allocator-instead-of-slab-allocator-fix.patch git-selinux.patch git-selinux-fixup.patch revert-gregkh-pci-pci_bridge-device.patch pci-x-pci-express-read-control-interfaces-fix.patch git-scsi-misc.patch scsi-dont-build-scsi_dma_mapunmap-for-has_dma-fix.patch git-unionfs.patch fix-gregkh-usb-usb-ehci-cpufreq-fix.patch git-watchdog.patch x86_64-mm-xen-attempt-to-patch-inline-versions-of-common-operations.patch revert-x86_64-mm-verify-cpu-rename.patch fix-x86_64-numa-fake-apicid_to_node-mapping-for-fake-numa-2.patch fix-x86_64-mm-sched-clock-share.patch fix-x86_64-mm-add-common-orderly_poweroff.patch i386-add-support-for-picopower-irq-router.patch x86_64-extract-helper-function-from-e820_register_active_regions.patch mmconfig-x86_64-i386-insert-unclaimed-mmconfig-resources.patch x86_64-fix-smp_call_function_single-return-value.patch i386-flush_tlb_kernel_range-add-reference-to-the-arguments.patch mmconfig-validate-against-acpi-motherboard-resources-fix.patch mmconfig-validate-against-acpi-motherboard-resources-fix-2.patch mmconfig-validate-against-acpi-motherboard-resources-fix-3.patch mmconfig-validate-against-acpi-motherboard-resources-fix-2-3.patch x86_64-irq-check-remote-irr-bit-before-migrating-level-triggered-irq-v3.patch x86-64-calgary-introduce-chipset-specific-ops-fix.patch x86-64-calgary-add-chip_ops-and-a-quirk-function-for-calioc2-fix.patch x86-64-calgary-reserve-tces-with-the-same-address-as-mem-regions-fix.patch i386-do-not-restore-reserved-memory-after-hibernation-fix.patch paravirt-helper-to-disable-all-io-space-fix.patch i386-show-unhandled-signals-fix.patch git-newsetup-fixup.patch git-xfs.patch git-cryptodev.patch git-cryptodev-fixup.patch x86_64-irq-use-mask-unmask-and-proper-locking-in-fixup_irqs-v2-fix.patch vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch change-zonelist-order-v6-zonelist-fix.patch mm-merge-populate-and-nopage-into-fault-fixes-nonlinear.patch mm-merge-nopfn-into-fault.patch invalidate_mapping_pages-add-cond_resched.patch slub-support-slub_debug-on-by-default-tidy.patch fs-introduce-write_begin-write_end-and-perform_write-aops-fix.patch nick-broke-stuff.patch nick-broke-more-stuff.patch nick-broke-even-more-stuff.patch nick-really-did-it-this-time.patch add-__gfp_movable-for-callers-to-flag-allocations-from-high-memory-that-may-be-migrated.patch bias-the-location-of-pages-freed-for-min_free_kbytes-in-the-same-max_order_nr_pages-blocks.patch create-the-zone_movable-zone-fix.patch create-the-zone_movable-zone-fix-2.patch allow-huge-page-allocations-to-use-gfp_high_movable-fix.patch allow-huge-page-allocations-to-use-gfp_high_movable-fix-2.patch allow-huge-page-allocations-to-use-gfp_high_movable-fix-3.patch maps2-move-the-page-walker-code-to-lib.patch maps2-move-the-page-walker-code-to-lib-fix.patch maps2-add-proc-pid-pagemap-interface.patch slub-change-error-reporting-format-to-follow-lockdep-loosely-fix.patch fs-introduce-some-page-buffer-invariants-obnoxiousness.patch freezer-make-kernel-threads-nonfreezable-by-default-fix.patch freezer-make-kernel-threads-nonfreezable-by-default-fix-fix.patch freezer-run-show_state-when-freezing-times-out.patch pm-introduce-hibernation-and-suspend-notifiers-fix.patch pm-introduce-hibernation-and-suspend-notifiers-tidy.patch pm-introduce-hibernation-and-suspend-notifiers-fix-fix.patch pm-disable-usermode-helper-before-hibernation-and-suspend-fix.patch add-generic-exit-time-stack-depth-checking-to-config_debug_stack_usage-fix.patch cache-pipe-buf-page-address-for-non-highmem-arch.patch fix-rmmod-read-write-races-in-proc-entries-fix.patch use-write_trylock_irqsave-in-ptrace_attach-fix.patch use-no_pci_devices-in-pci-searchc.patch introduce-boot-based-time-fix.patch use-boot-based-time-for-process-start-time-and-boot-time-fix.patch add-argv_split-fix.patch add-common-orderly_poweroff-fix.patch cpu-hotplug-fix-ksoftirqd-termination-on-cpu-hotplug-with-naughty-realtime-process-fix.patch fuse-warning-fix.patch vxfs-warning-fixes.patch percpu_counters-use-cpu-notifiers.patch percpu_counters-use-for_each_online_cpu.patch mpu401-warning-fixes.patch procfs-directory-entry-cleanup-fix.patch vdso-print-fatal-signals.patch reduce-cpusetc-write_lock_irq-to-read_lock-fix.patch o_cloexec-for-scm_rights-fix.patch o_cloexec-for-scm_rights-fix-2.patch atmel_serial-fix-break-handling.patch lib-add-idr_for_each-fix.patch ext3-ext4-orphan-list-check-on-destroy_inode-fix.patch taskstats-add-context-switch-counters-fix.patch improve-behaviour-of-spurious-irq-detect-fix.patch revert-vanishing-ioctl-handler-debugging.patch binfmt_elf-warning-fix.patch dirty_writeback_centisecs_handler-cleanup.patch blink-only-blink-when-parameter-is-set-fix.patch add-documentation-sysctl-ctl_unnumberedtxt.patch sysctlc-add-text-telling-people-to-use-ctl_unnumbered.patch writeback-fix-time-ordering-of-the-per-superblock-dirty-inode-lists.patch writeback-fix-time-ordering-of-the-per-superblock-dirty-inode-lists-2.patch writeback-fix-time-ordering-of-the-per-superblock-dirty-inode-lists-3.patch writeback-fix-time-ordering-of-the-per-superblock-dirty-inode-lists-4.patch writeback-fix-comment-use-helper-function.patch writeback-fix-time-ordering-of-the-per-superblock-dirty-inode-lists-5.patch writeback-fix-time-ordering-of-the-per-superblock-dirty-inode-lists-6.patch writeback-fix-time-ordering-of-the-per-superblock-dirty-inode-lists-7.patch crc7-support-fix.patch isdn-capi-warning-fixes.patch i2o_cfg_passthru-cleanup-fix.patch knfsd-exportfs-add-exportfsh-header-fix.patch knfsd-exportfs-remove-iget-abuse-fix.patch nfsd-warning-fix.patch knfsd-nfsd4-vary-maximum-delegation-limit-based-on-ram-size-fix-fix.patch driver-for-the-atmel-on-chip-rtc-on-at32ap700x-devices-fix.patch rtc-add-rtc-m41t80-driver-take-2-fix.patch rtc-add-support-for-the-st-m48t59-rtc-fix.patch revoke-wire-up-i386-system-calls.patch lguest-the-host-code.patch lguest-the-net-driver.patch fbcon-allow-fbcon-to-use-the-primary-display-driver-fix-2.patch fbdev-fbcon-console-unregistration-from-unregister_framebuffer-fix.patch intel-iommu-pci-generic-helper-function-fix.patch intel-iommu-iova-allocation-and-management-routines-fix.patch intel-iommu-intel-iommu-driver-fix.patch intel-iommu-iommu-floppy-workaround-fix.patch cfs-scheduler-vs-detach-schedh-from-mmh.patch cfs-scheduler-warning-fixes.patch cfs-warning-fixes.patch kernel-doc-fix-leading-dot-in-man-mode-output-fix.patch coredump-masking-reimplementation-of-dumpable-using-two-flags-fix.patch drivers-edac-new-i82443bxgz-mc-driver-broken.patch containersv10-basic-container-framework-fix.patch containersv10-basic-container-framework-fix-2.patch containersv10-example-cpu-accounting-subsystem-fix.patch containersv10-add-tasks-file-interface-fix.patch containersv10-add-fork-exit-hooks-fix.patch containersv10-add-container_clone-interface-fix.patch containersv10-add-procfs-interface-fix.patch containersv10-share-css_group-arrays-between-tasks-with-same-container-memberships-fix.patch containersv10-simple-debug-info-subsystem-fix.patch containersv10-simple-debug-info-subsystem-fix-2.patch add-containerstats-v3-fix.patch lockstat-core-infrastructure-fix.patch lockstat-core-infrastructure-fix-fix.patch lockstat-core-infrastructure-fix-fix-fix.patch lockdep-various-fixes-checkpatch.patch lockstat-measure-lock-bouncing-checkpatch.patch reiser4.patch reiser4-fix.patch nick-broke-reiser4-too.patch check_dirty_inode_list.patch alloc_pages-debug.patch w1-build-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html