13 Sep, 2012

5 commits


31 Aug, 2012

2 commits

  • When performing a cable pull test w/ active stress I/O using fio over
    a dual port Intel 82599 FCoE CNA, w/ 256LUNs on one port and about 32LUNs
    on the other, it is observed that the system becomes not usable due to
    scsi-ml being busy printing the error messages for all the failing commands.
    I don't believe this problem is specific to FCoE and these commands are
    anyway failing due to link being down (DID_NO_CONNECT), just rate-limit
    the messages here to solve this issue.

    v2->v1: use __ratelimit() as Tomas Henzl mentioned as the proper way for
    rate-limit per function. However, in this case, the failed i/o gets to
    blk_end_request_err() and then blk_update_request(), which also has to
    be rate-limited, as added in the v2 of this patch.

    v3-v2: resolved conflict to apply on current 3.6-rc3 upstream tip.

    Signed-off-by: Yi Zou
    Cc: www.Open-FCoE.org
    Cc: Tomas Henzl
    Cc:
    Signed-off-by: Jens Axboe

    Yi Zou
     
  • Pull drm fixes from Dave Airlie:
    "A bunch of scattered fixes ati/intel/nouveau, couple of core ones,
    nothing too shocking or different."

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm: Add EDID_QUIRK_FORCE_REDUCED_BLANKING for ASUS VW222S
    gma500: Consider CRTC initially active.
    drm/radeon: fix dig encoder selection on DCE61
    drm/radeon: fix double free in radeon_gpu_reset
    drm/radeon: force dma32 to fix regression rs4xx,rs6xx,rs740
    drm/radeon: rework panel mode setup
    drm/radeon/atom: powergating fixes for DCE6
    drm/radeon/atom: rework DIG modesetting on DCE3+
    drm/radeon: don't disable plls that are in use by other crtcs
    drm/radeon: add proper checking of RESOLVE_BOX command for r600-r700
    drm/radeon: initialize tracked CS state
    drm/radeon: fix reading CB_COLORn_MASK from the CS
    drm/nvc0/copy: check PUNITS to determine which copy engines are disabled
    i915: Quirk no_lvds on Gigabyte GA-D525TUD ITX motherboard
    drm/i915: Use the correct size of the GTT for placing the per-process entries
    drm: Check for invalid cursor flags
    drm: Initialize object type when using DRM_MODE() macro
    drm/i915: fix color order for BGR formats on IVB
    drm/i915: fix wrong order of parameters in port checking functions

    Linus Torvalds
     

30 Aug, 2012

16 commits

  • Connecting an ASUS VW222S [1] over VGA a garbled screen is shown with
    vertical stripes in the top half.

    In commit bc42aabc [2]

    commit bc42aabc6a01b92b0f961d65671564e0e1cd7592
    Author: Adam Jackson
    Date: Wed May 23 16:26:54 2012 -0400

    drm/edid/quirks: ViewSonic VA2026w

    Adam Jackson added the quirk `EDID_QUIRK_FORCE_REDUCED_BLANKING` which
    is also needed for this ASUS monitor.

    All log files and output from `xrandr` is included in the referenced
    Bugzilla report #17629.

    Please note that this monitor only has a VGA (D-Sub) connector [1].

    [1] http://www.asus.com/Display/LCD_Monitors/VW222S/
    [2] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=bc42aabc6a01b92b0f961d65671564e0e1cd7592

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=17629
    Signed-off-by: Paul Menzel
    Cc:
    Cc: Adam Jackson
    Cc: Ian Pilcher
    Cc:
    Signed-off-by: Dave Airlie

    Paul Menzel
     
  • Alex writes:

    Highlights:
    - fix a gart regression on older IGP chips
    - more MSAA fixes
    - fix a double free in gpu reset code
    - modesetting fixes
    - trinity dig encoder fix.

    * 'drm-fixes-3.6' of git://people.freedesktop.org/~agd5f/linux:
    drm/radeon: fix dig encoder selection on DCE61
    drm/radeon: fix double free in radeon_gpu_reset
    drm/radeon: force dma32 to fix regression rs4xx,rs6xx,rs740
    drm/radeon: rework panel mode setup
    drm/radeon/atom: powergating fixes for DCE6
    drm/radeon/atom: rework DIG modesetting on DCE3+
    drm/radeon: don't disable plls that are in use by other crtcs
    drm/radeon: add proper checking of RESOLVE_BOX command for r600-r700
    drm/radeon: initialize tracked CS state
    drm/radeon: fix reading CB_COLORn_MASK from the CS

    Dave Airlie
     
  • [this one ideally should make 3.6 - it fixes the very annoying mode setting bug]

    This causes the pipe to be forced off prior to initial mode set, which
    roughly mirrors the behavior of the i915 driver. It fixes initial mode
    setting on my Intel DN2800MT (Cedarview) board. Without it, mode
    setting triggers an out-of-range error from the monitor for most modes,
    but only on initial configuration (i.e. they can be configured
    successfully from userspace after that).

    Signed-off-by: Forest Bond
    Signed-off-by: Alan Cox
    Cc: stable
    Signed-off-by: Dave Airlie

    Forest Bond
     
  • Was using the DCE41 code which was wrong. Fixes
    blank displays on a number of Trinity systems.

    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Alex Deucher
     
  • Pull btrfs fixes from Chris Mason:
    "I've split out the big send/receive update from my last pull request
    and now have just the fixes in my for-linus branch. The send/recv
    branch will wander over to linux-next shortly though.

    The largest patches in this pull are Josef's patches to fix DIO
    locking problems and his patch to fix a crash during balance. They
    are both well tested.

    The rest are smaller fixes that we've had queued. The last rc came
    out while I was hacking new and exciting ways to recover from a
    misplaced rm -rf on my dev box, so these missed rc3."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (25 commits)
    Btrfs: fix that repair code is spuriously executed for transid failures
    Btrfs: fix ordered extent leak when failing to start a transaction
    Btrfs: fix a dio write regression
    Btrfs: fix deadlock with freeze and sync V2
    Btrfs: revert checksum error statistic which can cause a BUG()
    Btrfs: remove superblock writing after fatal error
    Btrfs: allow delayed refs to be merged
    Btrfs: fix enospc problems when deleting a subvol
    Btrfs: fix wrong mtime and ctime when creating snapshots
    Btrfs: fix race in run_clustered_refs
    Btrfs: don't run __tree_mod_log_free_eb on leaves
    Btrfs: increase the size of the free space cache
    Btrfs: barrier before waitqueue_active
    Btrfs: fix deadlock in wait_for_more_refs
    btrfs: fix second lock in btrfs_delete_delayed_items()
    Btrfs: don't allocate a seperate csums array for direct reads
    Btrfs: do not strdup non existent strings
    Btrfs: do not use missing devices when showing devname
    Btrfs: fix that error value is changed by mistake
    Btrfs: lock extents as we map them in DIO
    ...

    Linus Torvalds
     
  • Pull watchdog fixes from Wim Van Sebroeck:
    "This will fix a warning for watchdog-test.c and it will remove a
    duplicate include of delay.h"

    * git://www.linux-watchdog.org/linux-watchdog:
    watchdog: da9052: Remove duplicate inclusion of delay.h
    watchdog: fix watchdog-test.c build warning

    Linus Torvalds
     
  • cache_grow() can reenable irqs so the cpu (and node) can change, so ensure
    that we take list_lock on the correct nodelist.

    This fixes an issue with commit 072bb0aa5e06 ("mm: sl[au]b: add
    knowledge of PFMEMALLOC reserve pages") where list_lock for the wrong
    node was taken after growing the cache.

    Reported-and-tested-by: Haggai Eran
    Signed-off-by: David Rientjes
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • radeon_ring_restore is freeing the memory for the saved
    ring data. We need to remember that, otherwise we try to
    restore the ring data again on the next try. Additional
    to that it shouldn't try the reset infinitely if we have
    saved ring data.

    Signed-off-by: Christian König
    Reviewed-by: Alex Deucher

    Christian König
     
  • It seems some of those IGP dislike non dma32 page despite what
    documentation says. Fix regression since we allowed non dma32
    pages. It seems it only affect some revision of those IGP chips
    as we don't know which one just force dma32 for all of them.

    https://bugzilla.redhat.com/show_bug.cgi?id=785375

    Signed-off-by: Jerome Glisse
    Cc:
    Signed-off-by: Alex Deucher

    Jerome Glisse
     
  • Adjust the panel mode setup to match the behavior
    of the vbios. Rather than checking for specific
    bridge chip ids, just check the eDP configuration register.
    This saves extra aux transactions and works across
    DP bridge chips without requiring additional per chip
    id checking.

    Signed-off-by: Alex Deucher

    Alex Deucher
     
  • Power gating is per crtc pair, but the powergating registers
    should be called individually. The hw handles power up/down
    properly. The pair is powered up if either crtc in the pair
    is powered up and the pair is not powered down until both
    crtcs in the pair are powered down. This simplifies
    programming and should save additional power as the previous
    code never actually power gated the crtc pair.

    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Alex Deucher
     
  • The ordering is important and the current drm code
    wasn't cutting it for modern DIG encoders. We need
    to have information about crtc before setting up
    the encoders so I've shifted the ordering a bit.
    Probably we'll need a full rework akin to danvet's
    recent intel patchs. This patch fixes numerous
    issues with DP bridge chips and makes link training
    much more reliable.

    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Alex Deucher
     
  • Some plls are shared for DP.

    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org
    Reviewed-by: Michel Dänzer

    Alex Deucher
     
  • Checking of the second colorbuffer was skipped on r700, because
    CB_TARGET_MASK was 0xf. With r600, CB_TARGET_MASK is changed to 0xff,
    so we must set the number of samples of the second colorbuffer to 1 in order
    to pass the CS checker.
    The DRM version is bumped, because RESOLVE_BOX is always rejected without this
    fix on r600.

    Signed-off-by: Marek Olšák
    Reviewed-by: Jerome Glisse
    Signed-off-by: Alex Deucher

    Marek Olšák
     
  • This should help catch uninitialized registers and reject commands
    because of that.

    Signed-off-by: Marek Olšák
    Signed-off-by: Alex Deucher

    Marek Olšák
     
  • Signed-off-by: Marek Olšák
    Signed-off-by: Alex Deucher

    Marek Olšák
     

29 Aug, 2012

17 commits

  • delay.h header file was included twice.

    Signed-off-by: Sachin Kamat
    Signed-off-by: Wim Van Sebroeck

    Sachin Kamat
     
  • Fix compiler warning by making the function static:

    Documentation/watchdog/src/watchdog-test.c:34:6: warning: no previous prototype for 'term'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Wim Van Sebroeck

    Randy Dunlap
     
  • Daniel writes:

    "Just a few smaller things:
    - Fix up a pipe vs. plane confusion from a refactoring, fixes a regression
    from 3.1 (Anhua Xu).
    - Fix ivb sprite pixel formats (Vijay).
    - Fixup ppgtt pde placement for machines where the Bios artifically limits
    the availbale gtt space in the name of ... product differentiation
    (Chris). This fixes an oops.
    - Yet another no_lvds quirk entry."

    * 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel:
    i915: Quirk no_lvds on Gigabyte GA-D525TUD ITX motherboard
    drm/i915: Use the correct size of the GTT for placing the per-process entries
    drm/i915: fix color order for BGR formats on IVB
    drm/i915: fix wrong order of parameters in port checking functions

    Dave Airlie
     
  • …nux-2.6 into drm-fixes

    Ben says its just a single fix to avoid the wrong pcopy units being used.

    * 'drm-nouveau-fixes' of git://anongit.freedesktop.org/git/nouveau/linux-2.6:
    drm/nvc0/copy: check PUNITS to determine which copy engines are disabled

    Dave Airlie
     
  • On some Fermi chipsets (NVCE particularly) PCOPY1 doesn't exist. And if
    what I've seen on Kepler is true of Fermi too, chipsets of the same type
    can have different PCOPY units available.

    This should fix a v3.5 regression reported by a number of people effecting
    suspend/resume on NVC8/NVCE chipsets.

    Cc: stable@vger.kernel.org [3.5]
    Signed-off-by: Ben Skeggs

    Ben Skeggs
     
  • If verify_parent_transid() fails for all mirrors, the current code
    calls repair_io_failure() anyway which means:
    - that the disk block is rewritten without repairing anything and
    - that a kernel log message is printed which misleadingly claims
    that a read error was corrected.

    This is an example:
    parent transid verify failed on 615015833600 wanted 110423 found 110424
    parent transid verify failed on 615015833600 wanted 110423 found 110424
    btrfs read error corrected: ino 1 off 615015833600 (dev /dev/...)

    It is wrong to ignore the results from verify_parent_transid() and to
    call repair_eb_io_failure() when the verification of the transids failed.
    This commit fixes the issue.

    Signed-off-by: Stefan Behrens
    Signed-off-by: Chris Mason

    Stefan Behrens
     
  • We cannot just return error before freeing ordered extent and releasing reserved
    space when we fail to start a transacion.

    Signed-off-by: Liu Bo
    Signed-off-by: Chris Mason

    Liu Bo
     
  • This bug is introduced by commit 3b8bde746f6f9bd36a9f05f5f3b6e334318176a9
    (Btrfs: lock extents as we map them in DIO).

    In dio write, we should unlock the section which we didn't do IO on in case that
    we fall back to buffered write. But we need to not only unlock the section
    but also cleanup reserved space for the section.

    This bug was found while running xfstests 133, with this 133 no longer complains.

    Signed-off-by: Liu Bo
    Signed-off-by: Chris Mason

    Liu Bo
     
  • We can deadlock with freeze right now because we unconditionally start a
    transaction in our ->sync_fs() call. To fix this just check and see if we
    have a running transaction to commit. This saves us from the deadlock
    because at this point we'll have the umount sem for the sb so we're safe
    from freezes coming in after we've done our check. With this patch the
    freeze xfstests no longer deadlocks. Thanks,

    Signed-off-by: Josef Bacik
    Signed-off-by: Chris Mason

    Josef Bacik
     
  • Commit 442a4f6308e694e0fa6025708bd5e4e424bbf51c added btrfs device
    statistic counters for detected IO and checksum errors to Linux 3.5.
    The statistic part that counts checksum errors in
    end_bio_extent_readpage() can cause a BUG() in a subfunction:
    "kernel BUG at fs/btrfs/volumes.c:3762!"
    That part is reverted with the current patch.
    However, the counting of checksum errors in the scrub context remains
    active, and the counting of detected IO errors (read, write or flush
    errors) in all contexts remains active.

    Cc: stable # 3.5
    Signed-off-by: Stefan Behrens
    Signed-off-by: Chris Mason

    Stefan Behrens
     
  • With commit acce952b0, btrfs was changed to flag the filesystem with
    BTRFS_SUPER_FLAG_ERROR and switch to read-only mode after a fatal
    error happened like a write I/O errors of all mirrors.
    In such situations, on unmount, the superblock is written in
    btrfs_error_commit_super(). This is done with the intention to be able
    to evaluate the error flag on the next mount. A warning is printed
    in this case during the next mount and the log tree is ignored.

    The issue is that it is possible that the superblock points to a root
    that was not written (due to write I/O errors).
    The result is that the filesystem cannot be mounted. btrfsck also does
    not start and all the other btrfs-progs tools fail to start as well.
    However, mount -o recovery is working well and does the right things
    to recover the filesystem (i.e., don't use the log root, clear the
    free space cache and use the next mountable root that is stored in the
    root backup array).

    This patch removes the writing of the superblock when
    BTRFS_SUPER_FLAG_ERROR is set, and removes the handling of the error
    flag in the mount function.

    These lines can be used to reproduce the issue (using /dev/sdm):
    SCRATCH_DEV=/dev/sdm
    SCRATCH_MNT=/mnt
    echo 0 25165824 linear $SCRATCH_DEV 0 | dmsetup create foo
    ls -alLF /dev/mapper/foo
    mkfs.btrfs /dev/mapper/foo
    mount /dev/mapper/foo $SCRATCH_MNT
    echo bar > $SCRATCH_MNT/foo
    sync
    echo 0 25165824 error | dmsetup reload foo
    dmsetup resume foo
    ls -alF $SCRATCH_MNT
    touch $SCRATCH_MNT/1
    ls -alF $SCRATCH_MNT
    sleep 35
    echo 0 25165824 linear $SCRATCH_DEV 0 | dmsetup reload foo
    dmsetup resume foo
    sleep 1
    umount $SCRATCH_MNT
    btrfsck /dev/mapper/foo
    dmsetup remove foo

    Signed-off-by: Stefan Behrens
    Signed-off-by: Jan Schmidt

    Stefan Behrens
     
  • Daniel Blueman reported a bug with fio+balance on a ramdisk setup.
    Basically what happens is the balance relocates a tree block which will drop
    the implicit refs for all of its children and adds a full backref. Once the
    block is relocated we have to add the implicit refs back, so when we cow the
    block again we add the implicit refs for its children back. The problem
    comes when the original drop ref doesn't get run before we add the implicit
    refs back. The delayed ref stuff will specifically prefer ADD operations
    over DROP to keep us from freeing up an extent that will have references to
    it, so we try to add the implicit ref before it is actually removed and we
    panic. This worked fine before because the add would have just canceled the
    drop out and we would have been fine. But the backref walking work needs to
    be able to freeze the delayed ref stuff in time so we have this ever
    increasing sequence number that gets attached to all new delayed ref updates
    which makes us not merge refs and we run into this issue.

    So to fix this we need to merge delayed refs. So everytime we run a
    clustered ref we need to try and merge all of its delayed refs. The backref
    walking stuff locks the delayed ref head before processing, so if we have it
    locked we are safe to merge any refs inside of the sequence number. If
    there is no sequence number we can merge all refs. Doing this not only
    fixes our bug but keeps the delayed ref code from adding and removing
    useless refs and batching together multiple refs into one search instead of
    one search per delayed ref, which will really help our commit times. I ran
    this with Daniels test and 276 and I haven't seen any problems. Thanks,

    Reported-by: Daniel J Blueman
    Signed-off-by: Josef Bacik

    Josef Bacik
     
  • Subvol delete is a special kind of awful where we use the global reserve to
    cover the ENOSPC requirements. The problem is once we're done removing
    everything we do a btrfs_update_inode(), which by default will try to do the
    delayed update stuff which will use it's own reserve. There will be no
    space in this reserve and we'll return ENOSPC. So instead use
    btrfs_update_inode_fallback() which will just fallback to updating the inode
    item in the case of enospc. This is fine because the global reserve covers
    the space requirements for this. With this patch I can now delete a subvol
    on a problem image Dave Sterba sent me. Thanks,

    Reported-by: David Sterba
    Signed-off-by: Josef Bacik
    Signed-off-by: Chris Mason

    Josef Bacik
     
  • When we created a new snapshot, the mtime and ctime of its parent directory
    were not updated. Fix it.

    Signed-off-by: Miao Xie
    Signed-off-by: Chris Mason

    Miao Xie
     
  • With commit

    commit d1270cd91f308c9d22b2804720c36ccd32dbc35e
    Author: Arne Jansen
    Date: Tue Sep 13 15:16:43 2011 +0200

    Btrfs: put back delayed refs that are too new

    I added a window where the delayed_ref's head->ref_mod code can diverge
    from the sum of the remaining refs, because we release the head->mutex
    in the middle. This leads to btrfs_lookup_extent_info returning wrong
    numbers. This patch fixes this by adjusting the head's ref_mod with each
    delayed ref we run.

    Signed-off-by: Arne Jansen
    Signed-off-by: Chris Mason

    Arne Jansen
     
  • When we split a leaf, we may end up inserting a new root on top of that
    leaf. The reflog code was incorrectly assuming the old root was always
    a node. This makes sure we skip over leaves.

    Signed-off-by: Chris Mason

    Chris Mason
     
  • Arne was complaining about the space cache having mismatching generation
    numbers when debugging a deadlock. This is because we can run out of space
    in our preallocated range for our space cache if you have a pretty
    fragmented amount of space in your pinned space. So just increase the
    amount of space we preallocate for space cache so we can be sure to have
    enough space. This will only really affect data ranges since their the only
    chunks that end up larger than 256MB. Thanks,

    Signed-off-by: Josef Bacik
    Signed-off-by: Chris Mason

    Josef Bacik