08 Mar, 2012

1 commit


05 Mar, 2012

1 commit

  • For some weird (freudian?) reason, commit 435792d "ARM: OMAP: make
    iommu subsys_initcall to fix builtin omap3isp" unintentionally changed
    the mailbox's initcall instead of the iommu's.

    Fix that.

    Reported-by: Fernando Guzman Lugo
    Signed-off-by: Ohad Ben-Cohen
    Cc: Laurent Pinchart
    Cc: Joerg Roedel
    Cc: Tony Lindgren
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     

27 Feb, 2012

1 commit

  • omap3isp depends on omap's iommu and will fail to probe if
    initialized before it (which always happen if they are builtin).

    Make omap's iommu subsys_initcall as an interim solution until
    the probe deferral mechanism is merged.

    Reported-by: James
    Debugged-by: Laurent Pinchart
    Signed-off-by: Ohad Ben-Cohen
    Cc: stable
    Cc: Tony Lindgren
    Cc: Hiroshi Doyu
    Cc: Joerg Roedel
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     

24 Feb, 2012

2 commits

  • Fix this:

    root@omap4430-panda:~# cat /debug/iommu/ducati/mem
    [ 62.725708] Unable to handle kernel NULL pointer dereference at virtual addre
    ss 0000001c
    [ 62.725708] pgd = e6240000
    [ 62.737091] [0000001c] *pgd=a7168831, *pte=00000000, *ppte=00000000
    [ 62.743682] Internal error: Oops: 17 [#1] SMP
    [ 62.743682] Modules linked in: omap_iommu_debug omap_iovmm virtio_rpmsg_bus o
    map_remoteproc remoteproc virtio_ring virtio mailbox_mach mailbox
    [ 62.743682] CPU: 0 Not tainted (3.3.0-rc1-00265-g382f84e-dirty #682)
    [ 62.743682] PC is at debug_read_mem+0x5c/0xac [omap_iommu_debug]
    [ 62.743682] LR is at 0x1004
    [ 62.777832] pc : [] lr : [] psr: 60000013
    [ 62.777832] sp : e72c7f40 ip : c0763c00 fp : 00000001
    [ 62.777832] r10: 00000000 r9 : 00000000 r8 : e72c7f80
    [ 62.777832] r7 : e6ffdc08 r6 : bed1ac78 r5 : 00001000 r4 : e7276000
    [ 62.777832] r3 : e60f3460 r2 : 00000000 r1 : e60f38c0 r0 : 00000000
    [ 62.777832] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
    [ 62.816375] Control: 10c53c7d Table: a624004a DAC: 00000015
    [ 62.816375] Process cat (pid: 1176, stack limit = 0xe72c62f8)
    [ 62.828369] Stack: (0xe72c7f40 to 0xe72c8000)
    ...
    [ 62.884185] [] (debug_read_mem+0x5c/0xac [omap_iommu_debug]) from [] (vfs_read+0xac/0x130)
    [ 62.884185] [] (vfs_read+0xac/0x130) from [] (sys_read+0x40/0x70)
    [ 62.884185] [] (sys_read+0x40/0x70) from [] (ret_fast_syscall+0x0/0x3c)

    Fix also its 'echo bla > /debug/iommu/ducati/mem' Oops sibling, too.

    Signed-off-by: Ohad Ben-Cohen
    Cc: Tony Lindgren
    Cc: Hiroshi Doyu
    Cc: Laurent Pinchart
    Cc: Russell King
    Cc: Joerg Roedel
    Cc: stable@vger.kernel.org
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     
  • Adapt omap-iommu-debug to the latest omap-iommu API changes, which
    were introduced by commit fabdbca "iommu/omap: eliminate the public
    omap_find_iommu_device() method".

    In a nutshell, iommu users are not expected to provide the omap_iommu
    handle anymore - instead, iommus are attached using their user's device
    handle.

    omap-iommu-debug is a hybrid beast though: it invokes both public and
    private omap iommu API, so fix it as necessary (otherwise a crash
    is imminent).

    Note: omap-iommu-debug is a bit disturbing, as it fiddles with internal
    omap iommu data and requires exposing API which is otherwise not needed.
    It should better be more tightly coupled with omap-iommu, to prevent
    further bit rot and avoid exposing redundant API. Naturally that's out
    of scope for the -rc cycle, so for now just fix the obvious.

    Reported-by: Russell King
    Signed-off-by: Ohad Ben-Cohen
    Cc: Tony Lindgren
    Cc: Hiroshi Doyu
    Cc: Laurent Pinchart
    Cc: Joerg Roedel
    Signed-off-by: Joerg Roedel

    Ohad Ben-Cohen
     

30 Jan, 2012

1 commit

  • Error handling in msm_iommu_unmap() is broken. On some error
    conditions retval is set to a non-zero value which causes
    the function to return 'len' at the end. This hides the
    error from the user. Zero should be returned in those error
    cases.

    Cc: David Brown
    Cc: Stepan Moskovchenko
    Cc: stable@vger.kernel.org # >= 3.1
    Signed-off-by: Joerg Roedel
    Acked-by: David Brown

    Joerg Roedel
     

23 Jan, 2012

1 commit

  • On some systems the IVRS table does not contain all PCI
    devices present in the system. In case a device not present
    in the IVRS table is translated by the IOMMU no DMA is
    possible from that device by default.
    This patch fixes this by removing the DTE entry for every
    PCI device present in the system and not covered by IVRS.

    Cc: stable@vger.kernel.org # >= 3.0
    Signed-off-by: Joerg Roedel

    Joerg Roedel
     

20 Jan, 2012

10 commits


19 Jan, 2012

17 commits

  • Permit key_serial() to be called with a const key pointer.

    Signed-off-by: David Howells
    Signed-off-by: James Morris

    David Howells
     
  • Replace the rcu_assign_pointer() calls with rcu_assign_keypointer().

    Signed-off-by: Mimi Zohar
    Signed-off-by: David Howells
    Signed-off-by: James Morris

    Mimi Zohar
     
  • Fix ima_policy.c sparse "warning: dereference of noderef expression"
    message, by accessing cred->uid using current_cred().

    Changelog v1:
    - Change __cred to just cred (based on David Howell's comment)

    Signed-off-by: Mimi Zohar
    Signed-off-by: James Morris

    Mimi Zohar
     
  • Randy Dunlap reports that we get

    arch/x86/um/shared/sysdep/ptrace.h:7:20: error: redefinition of 'regs_return_value'
    arch/x86/um/shared/sysdep/ptrace.h:7:20: note: previous definition of 'regs_return_value' was here

    when compiling UML for x86-64.

    Stephen Rothwell root-caused it and says:

    "Caused by commit d7e7528bcd45 ("Audit: push audit success and retcode
    into arch ptrace.h") (another patch that was never in linux-next :-().

    This file now needs protection against double inclusion."

    so let's do as the man says.

    Reported-by: Randy Dunlap
    Analyzed-by: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Add a missing ENOMEM check.

    Signed-off-by: David Howells
    Acked-by: Mimi Zohar
    Signed-off-by: James Morris

    David Howells
     
  • * 'for-next-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
    ib_srpt: Initial SRP Target merge for v3.3-rc1

    Linus Torvalds
     
  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (26 commits)
    target: Set additional sense length field in sense data
    target: Remove legacy device status check from transport_execute_tasks
    target: Remove __transport_execute_tasks() for each processing context
    target: Remove extra se_device->execute_task_lock access in fast path
    target: Drop se_device TCQ queue_depth usage from I/O path
    target: Fix possible NULL pointer with __transport_execute_tasks
    target: Remove TFO->check_release_cmd() fabric API caller
    tcm_fc: Convert ft_send_work to use target_submit_cmd
    target: Add target_submit_cmd() for process context fabric submission
    target: Make target_put_sess_cmd use target_release_cmd_kref
    target: Set response format in INQUIRY response
    target: tcm_mod_builder: small fixups
    Documentation/target: Fix tcm_mod_builder.py build breakage
    target: remove overagressive ____cacheline_aligned annoations
    tcm_loop: bump max_sectors
    target/configs: remove trailing newline from udev_path and alias
    iscsi-target: fix chap identifier simple_strtoul usage
    target: remove useless casts
    target: simplify target_check_cdb_and_preempt
    target: Move core_scsi3_check_cdb_abort_and_preempt
    ...

    Linus Torvalds
     
  • This includes initial support for the recently published ACPI 5.0 spec.
    In particular, support for the "hardware-reduced" bit that eliminates
    the dependency on legacy hardware.

    APEI has patches resulting from testing on real hardware.

    Plus other random fixes.

    * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (52 commits)
    acpi/apei/einj: Add extensions to EINJ from rev 5.0 of acpi spec
    intel_idle: Split up and provide per CPU initialization func
    ACPI processor: Remove unneeded variable passed by acpi_processor_hotadd_init V2
    ACPI processor: Remove unneeded cpuidle_unregister_driver call
    intel idle: Make idle driver more robust
    intel_idle: Fix a cast to pointer from integer of different size warning in intel_idle
    ACPI: kernel-parameters.txt : Add intel_idle.max_cstate
    intel_idle: remove redundant local_irq_disable() call
    ACPI processor: Fix error path, also remove sysdev link
    ACPI: processor: fix acpi_get_cpuid for UP processor
    intel_idle: fix API misuse
    ACPI APEI: Convert atomicio routines
    ACPI: Export interfaces for ioremapping/iounmapping ACPI registers
    ACPI: Fix possible alignment issues with GAS 'address' references
    ACPI, ia64: Use SRAT table rev to use 8bit or 16/32bit PXM fields (ia64)
    ACPI, x86: Use SRAT table rev to use 8bit or 32bit PXM fields (x86/x86-64)
    ACPI: Store SRAT table revision
    ACPI, APEI, Resolve false conflict between ACPI NVS and APEI
    ACPI, Record ACPI NVS regions
    ACPI, APEI, EINJ, Refine the fix of resource conflict
    ...

    Linus Torvalds
     
  • This patch fixes an (ACPI S3) suspend regression introduced in commit
    68d6e6713fcb ("tpm: Introduce function to poll for result of self test")
    and occurring with an Infineon TPM and tpm_tis and tpm_infineon drivers
    active.

    The suspend problem occurred if the TPM was disabled and/or deactivated
    and therefore the TPM_PCRRead checking the result of the (asynchronous)
    self test returned an error code which then caused the tpm_tis driver to
    become inactive and this then seemed to have negatively influenced the
    suspend support by the tpm_infineon driver... Besides that the tpm_tis
    drive may stay active even if the TPM is disabled and/or deactivated.

    Signed-off-by: Stefan Berger
    Tested-by: Rafael J. Wysocki
    Acked-by: Rajiv Andrade
    Signed-off-by: Linus Torvalds

    Stefan Berger
     
  • The type of 'make_request_fn' changed in 5a7bbad27a4 ("block: remove
    support for bio remapping from ->make_request"), but the merge of the
    nvme driver didn't take that into account, and as a result the driver
    would compile with a warning:

    drivers/block/nvme.c: In function 'nvme_alloc_ns':
    drivers/block/nvme.c:1336:2: warning: passing argument 2 of 'blk_queue_make_request' from incompatible pointer type [enabled by default]
    include/linux/blkdev.h:830:13: note: expected 'void (*)(struct request_queue *, struct bio *)' but argument is of type 'int (*)(struct request_queue *, struct bio *)'

    It's benign, but the warning is annoying.

    Reported-by: Stephen Rothwell
    Cc: Matthew Wilcox
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Fix these warnings:

    drivers/xen/biomerge.c:14:1: warning: data definition has no type or storage class [enabled by default]
    drivers/xen/biomerge.c:14:1: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL' [-Wimplicit-int]
    drivers/xen/biomerge.c:14:1: warning: parameter names (without types) in function declaration [enabled by default]

    And this build error:

    ERROR: "xen_biovec_phys_mergeable" [drivers/block/nvme.ko] undefined!

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • * 'for-linus/i2c-33' of git://git.fluff.org/bjdooks/linux:
    i2c-eg20t: Change-company-name-OKI-SEMICONDUCTOR to LAPIS Semiconductor
    i2c-eg20t: Support new device LAPIS Semiconductor ML7831 IOH
    i2c-eg20t: modified the setting of transfer rate.
    i2c-eg20t: use i2c_add_numbered_adapter to get a fixed bus number
    i2c: OMAP: Add DT support for i2c controller
    I2C: OMAP: NACK without STP
    I2C: OMAP: correct SYSC register offset for OMAP4

    Linus Torvalds
     
  • * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (57 commits)
    [media] as3645a: Fix compilation by including slab.h
    [media] s5p-fimc: Remove linux/version.h include from fimc-mdevice.c
    [media] s5p-mfc: Remove linux/version.h include from s5p_mfc.c
    [media] ds3000: using logical && instead of bitwise &
    [media] v4l2-ctrls: make control names consistent
    [media] DVB: dib0700, add support for Nova-TD LEDs
    [media] DVB: dib0700, add corrected Nova-TD frontend_attach
    [media] DVB: dib0700, separate stk7070pd initialization
    [media] DVB: dib0700, move Nova-TD Stick to a separate set
    [media] : add MODULE_FIRMWARE to dib0700
    [media] DVB-CORE: remove superfluous DTV_CMDs
    [media] s5p-jpeg: adapt to recent videobuf2 changes
    [media] s5p-g2d: fixed a bug in controls setting function
    [media] s5p-mfc: Fix volatile controls setup
    [media] drivers/media/video/s5p-mfc/s5p_mfc.c: adjust double test
    [media] drivers/media/video/s5p-fimc/fimc-capture.c: adjust double test
    [media] s5p-fimc: Fix incorrect control ID assignment
    [media] dvb_frontend: Don't call get_frontend() if idle
    [media] DocBook/dvbproperty.xml: Remove DTV_MODULATION from ISDB-T
    [media] DocBook/dvbproperty.xml: Fix ISDB-T delivery system parameters
    ...

    Linus Torvalds
     
  • * 'fix/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ASoC: Wait for WM8993 FLL to stabilise
    ASoC: core - Free platform DAPM context at platform removal.
    ASoC: dapm - Fix check for codec context in dapm_power_widgets().
    ASoC: sgtl5000: update author email address
    ASoC: Fix DMA channel leak in imx-pcm-dma-mx2 driver.

    Linus Torvalds
     
  • Using the correct gpio offset for setting the initial value
    of gpio when setting output direction.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Grant Likely

    Laxman Dewangan
     
  • SCSI updates on 20120118

    * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (49 commits)
    [SCSI] libfc: remove redundant timer init for fcp
    [SCSI] fcoe: Move fcoe_debug_logging from fcoe.h to fcoe.c
    [SCSI] libfc: Declare local functions static
    [SCSI] fcoe: fix regression on offload em matching function for initiator/target
    [SCSI] qla4xxx: Update driver version to 5.02.00-k12
    [SCSI] qla4xxx: Cleanup modinfo display
    [SCSI] qla4xxx: Update license
    [SCSI] qla4xxx: Clear the RISC interrupt bit during FW init
    [SCSI] qla4xxx: Added error logging for firmware abort
    [SCSI] qla4xxx: Disable generating pause frames in case of FW hung
    [SCSI] qla4xxx: Temperature monitoring for ISP82XX core.
    [SCSI] megaraid: fix sparse warnings
    [SCSI] sg: convert to kstrtoul_from_user()
    [SCSI] don't change sdev starvation list order without request dispatched
    [SCSI] isci: fix, prevent port from getting stuck in the 'configuring' state
    [SCSI] isci: fix start OOB
    [SCSI] isci: fix io failures while wide port links are coming up
    [SCSI] isci: allow more time for wide port targets
    [SCSI] isci: enable wide port targets
    [SCSI] isci: Fix IO fails when pull cable from phy in x4 wideport in MPC mode.
    ...

    Linus Torvalds
     
  • * git://git.infradead.org/users/willy/linux-nvme: (105 commits)
    NVMe: Set number of queues correctly
    NVMe: Version 0.8
    NVMe: Set queue flags correctly
    NVMe: Simplify nvme_unmap_user_pages
    NVMe: Mark the end of the sg list
    NVMe: Fix DMA mapping for admin commands
    NVMe: Rename IO_TIMEOUT to NVME_IO_TIMEOUT
    NVMe: Merge the nvme_bio and nvme_prp data structures
    NVMe: Change nvme_completion_fn to take a dev
    NVMe: Change get_nvmeq to take a dev instead of a namespace
    NVMe: Simplify completion handling
    NVMe: Update Identify Controller data structure
    NVMe: Implement doorbell stride capability
    NVMe: Version 0.7
    NVMe: Don't probe namespace 0
    Fix calculation of number of pages in a PRP List
    NVMe: Create nvme_identify and nvme_get_features functions
    NVMe: Fix memory leak in nvme_dev_add()
    NVMe: Fix calls to dma_unmap_sg
    NVMe: Correct sg list setup in nvme_map_user_pages
    ...

    Linus Torvalds
     

18 Jan, 2012

6 commits