01 Dec, 2011

2 commits


28 Nov, 2011

4 commits

  • 14 bytes of ECC is provided for every 512 byte even though 13 byte is the
    actual requirement. This is to synchronize the ECC layout with U-boot.
    Extra byte is cleared to 0.

    Signed-off-by: Philip, Avinash
    Signed-off-by: Hebbar, Gururaja

    Philip, Avinash
     
  • 1. BCH8 ECC support is enabled.
    2. Support for BCH8 error correction using ELM module is added.
    3. ECC positions updated for BCH8 in synchronized with U-boot.
    4. Corrected GPMC settings for BCH8 ECC scheme.

    Signed-off-by: Philip, Avinash
    Signed-off-by: Hebbar, Gururaja

    Philip, Avinash
     
  • GPL module license is added to remove warnings on inserting as module.

    Signed-off-by: Philip, Avinash
    Signed-off-by: Hebbar, Gururaja

    Philip, Avinash
     
  • bch error correction (t=4 and t=8) for 512 bytes support added.
    Tested in omap-3630 es-1.1 silicon.

    Need to select the bch-ecc from board file. E.g.
    arch/arm/mach-omap2/board-flash.c: board_nand_init()
    board_nand_data.ecc_opt = OMAP_ECC_BCH4_CODE_HW

    This patch has dependency on -
    http://www.mail-archive.com/linux-omap@vger.kernel.org/msg42658.html

    Signed-off-by: Parth Mauria Saxena
    Signed-off-by: Sukumar Ghorai
    Signed-off-by: Sriramakrishnan A G
    Signed-off-by: Abhilash K V
    Signed-off-by: Philip, Avinash
    Signed-off-by: Hebbar, Gururaja

    Sukumar Ghorai
     

28 Oct, 2011

3 commits

  • JFFS2 clean marker offset used by Linux in case of 8-bit NAND device is
    0x1 omap2 NAND driver. But 1st 2 bytes is used to indicate bad blocks by
    manufacturers. So offset for JFFS2 clean markers is fixed to 0x2 in
    omap2 NAND driver irrespective of 8/16 bit device.
    Introduced new macro : JFFS2_CLEAN_MARKER_OFFSET to indicate 0x2 offset
    for JFFS2 clean marker.

    Signed-off-by: Philip, Avinash

    Philip, Avinash
     
  • For OOb_64, offset is fixed to 40 for kernel/fs, by changing
    kernel code to calculate hw_ecc layout considering these:
    1) 12 bytes in case of 512 byte access and 24 bytes in case of 256 byte
    access in OOB_64 can be supported.
    2) Ecc bytes lie to the end of OOB area.
    Introducing a new macro : MAX_HWECC_BYTES_OOB_64 which is the maximum
    number of eccbytes supported for OOB_64n Hamming ECC mode.

    Signed-off-by: Hrishikesh Bhandiwad
    Signed-off-by: Philip, Avinash

    Hrishikesh Bhandiwad
     
  • NAND ECC layout is updated in case of Hardware ECC scheme selection from
    platform data.
    ECC scheme to be used is indicated via the platform data in the board file.

    Signed-off-by: Philip, Avinash

    Philip, Avinash
     

27 Oct, 2011

1 commit


20 Aug, 2011

1 commit

  • Michal Marek spotted the same issue in UBIFS and this patch fixes UBI,
    see "UBIFS: not build debug messages with CONFIG_UBIFS_FS_DEBUG disabled"

    When UBI debugging is disabled, we have debugging messages defined as:

    if (0)
    pr_debug()

    But pr_debug macro defines data structures with debugging data and makes
    the linux binary larger, even though we have "if (0)".

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     

26 Jul, 2011

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
    fs: Merge split strings
    treewide: fix potentially dangerous trailing ';' in #defined values/expressions
    uwb: Fix misspelling of neighbourhood in comment
    net, netfilter: Remove redundant goto in ebt_ulog_packet
    trivial: don't touch files that are removed in the staging tree
    lib/vsprintf: replace link to Draft by final RFC number
    doc: Kconfig: `to be' -> `be'
    doc: Kconfig: Typo: square -> squared
    doc: Konfig: Documentation/power/{pm => apm-acpi}.txt
    drivers/net: static should be at beginning of declaration
    drivers/media: static should be at beginning of declaration
    drivers/i2c: static should be at beginning of declaration
    XTENSA: static should be at beginning of declaration
    SH: static should be at beginning of declaration
    MIPS: static should be at beginning of declaration
    ARM: static should be at beginning of declaration
    rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check
    Update my e-mail address
    PCIe ASPM: forcedly -> forcibly
    gma500: push through device driver tree
    ...

    Fix up trivial conflicts:
    - arch/arm/mach-ep93xx/dma-m2p.c (deleted)
    - drivers/gpio/gpio-ep93xx.c (renamed and context nearby)
    - drivers/net/r8169.c (just context changes)

    Linus Torvalds
     

24 Jul, 2011

1 commit

  • For a number of file systems that don't have a mount point (e.g. sockfs
    and pipefs), they are not marked as long term. Therefore in
    mntput_no_expire, all locks in vfs_mount lock are taken instead of just
    local cpu's lock to aggregate reference counts when we release
    reference to file objects. In fact, only local lock need to have been
    taken to update ref counts as these file systems are in no danger of
    going away until we are ready to unregister them.

    The attached patch marks file systems using kern_mount without
    mount point as long term. The contentions of vfs_mount lock
    is now eliminated. Before un-registering such file system,
    kern_unmount should be called to remove the long term flag and
    make the mount point ready to be freed.

    Signed-off-by: Tim Chen
    Signed-off-by: Al Viro

    Tim Chen
     

23 Jul, 2011

3 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (107 commits)
    vfs: use ERR_CAST for err-ptr tossing in lookup_instantiate_filp
    isofs: Remove global fs lock
    jffs2: fix IN_DELETE_SELF on overwriting rename() killing a directory
    fix IN_DELETE_SELF on overwriting rename() on ramfs et.al.
    mm/truncate.c: fix build for CONFIG_BLOCK not enabled
    fs:update the NOTE of the file_operations structure
    Remove dead code in dget_parent()
    AFS: Fix silly characters in a comment
    switch d_add_ci() to d_splice_alias() in "found negative" case as well
    simplify gfs2_lookup()
    jfs_lookup(): don't bother with . or ..
    get rid of useless dget_parent() in btrfs rename() and link()
    get rid of useless dget_parent() in fs/btrfs/ioctl.c
    fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers
    drivers: fix up various ->llseek() implementations
    fs: handle SEEK_HOLE/SEEK_DATA properly in all fs's that define their own llseek
    Ext4: handle SEEK_HOLE/SEEK_DATA generically
    Btrfs: implement our own ->llseek
    fs: add SEEK_HOLE and SEEK_DATA flags
    reiserfs: make reiserfs default to barrier=flush
    ...

    Fix up trivial conflicts in fs/xfs/linux-2.6/xfs_super.c due to the new
    shrinker callout for the inode cache, that clashed with the xfs code to
    start the periodic workers later.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1287 commits)
    icmp: Fix regression in nexthop resolution during replies.
    net: Fix ppc64 BPF JIT dependencies.
    acenic: include NET_SKB_PAD headroom to incoming skbs
    ixgbe: convert to ndo_fix_features
    ixgbe: only enable WoL for magic packet by default
    ixgbe: remove ifdef check for non-existent define
    ixgbe: Pass staterr instead of re-reading status and error bits from descriptor
    ixgbe: Move interrupt related values out of ring and into q_vector
    ixgbe: add structure for containing RX/TX rings to q_vector
    ixgbe: inline the ixgbe_maybe_stop_tx function
    ixgbe: Update ATR to use recorded TX queues instead of CPU for routing
    igb: Fix for DH89xxCC near end loopback test
    e1000: always call e1000_check_for_link() on e1000_ce4100 MACs.
    netxen: add fw version compatibility check
    be2net: request native mode each time the card is reset
    ipv4: Constrain UFO fragment sizes to multiples of 8 bytes
    virtio_net: Fix panic in virtnet_remove
    ipv6: make fragment identifications less predictable
    ipv6: unshare inetpeers
    can: make function can_get_bittiming static
    ...

    Linus Torvalds
     
  • * 'linux-next' of git://git.infradead.org/ubi-2.6:
    UBI: clarify the volume notification types' doc
    UBI: remove dead code
    UBI: dump stack when switching to R/O mode
    UBI: fix oops in error path
    UBI: switch debugging tests knobs to debugfs
    UBI: make it possible to use struct ubi_device in debug.h
    UBI: prepare debugging stuff to further debugfs conversion
    UBI: use debugfs for the extra checks knobs
    UBI: change the interface of a debugging check function

    Linus Torvalds
     

21 Jul, 2011

1 commit

  • Btrfs needs to be able to control how filemap_write_and_wait_range() is called
    in fsync to make it less of a painful operation, so push down taking i_mutex and
    the calling of filemap_write_and_wait() down into the ->fsync() handlers. Some
    file systems can drop taking the i_mutex altogether it seems, like ext3 and
    ocfs2. For correctness sake I just pushed everything down in all cases to make
    sure that we keep the current behavior the same for everybody, and then each
    individual fs maintainer can make up their mind about what to do from there.
    Thanks,

    Acked-by: Jan Kara
    Signed-off-by: Josef Bacik
    Signed-off-by: Al Viro

    Josef Bacik
     

11 Jul, 2011

1 commit


06 Jul, 2011

1 commit


22 Jun, 2011

2 commits

  • when nand_get_flash_type() is called, it will read 8 bytes of ID instead of 5,
    but the driver only read 5 bytes, so kernel will dump error messages like:

    fsl-lbc ffe124000.localbus: read_byte beyond end of buffer
    fsl-lbc ffe124000.localbus: read_byte beyond end of buffer
    fsl-lbc ffe124000.localbus: read_byte beyond end of buffer

    Signed-off-by: Shaohui Xie
    Acked-by: Scott Wood
    Signed-off-by: Kumar Gala

    Shaohui Xie
     
  • Remove linux/mm.h inclusion from netdevice.h -- it's unused (I've checked manually).

    To prevent mm.h inclusion via other channels also extract "enum dma_data_direction"
    definition into separate header. This tiny piece is what gluing netdevice.h with mm.h
    via "netdevice.h => dmaengine.h => dma-mapping.h => scatterlist.h => mm.h".
    Removal of mm.h from scatterlist.h was tried and was found not feasible
    on most archs, so the link was cutoff earlier.

    Hope people are OK with tiny include file.

    Note, that mm_types.h is still dragged in, but it is a separate story.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     

16 Jun, 2011

1 commit

  • I no longer work at Bluewater Systems. Update my email address accordingly. I
    have deleted my email address from C files rather than change it. This
    was suggested by several people, since the commit from my new email
    address will cause scripts/get_maintainer.pl to function properly. I
    have not added the .mailmap entry as suggested by Joe because I think
    it is no longer necessary if I touch all the files which had my name
    in them.

    Signed-off-by: Ryan Mallon
    Cc: Andre Renaud
    Cc: H Hartley Sweeten
    Cc: Russell King
    Cc: Nicolas Ferre
    Cc: Andrew Victor
    Cc: David Woodhouse
    Cc: Anton Vorontsov
    Cc: Paul Mundt
    Cc: Liam Girdwood
    Cc: Mark Brown
    Cc: Alan Cox
    Cc: Joe Perches
    Cc: Jesper Juhl
    Cc: Andrew Morton
    Cc: trivial@kernel.org
    Cc: linux-kernel@vger.kernel.org
    Reviewed-by: Jesper Juhl
    Signed-off-by: Jiri Kosina

    Ryan Mallon
     

10 Jun, 2011

1 commit


07 Jun, 2011

1 commit

  • Thanks to new gcc 4.6 for issuing the following warning:

    drivers/mtd/ubi/vtbl.c: In function ‘create_vtbl’:
    drivers/mtd/ubi/vtbl.c:311:33: warning: variable ‘old_seb’ set but not used [-Wunused-but-set-variable]

    This patch removes some dead code and fixes the warning.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     

01 Jun, 2011

6 commits

  • If we have debugging enabled and switching to R/O mode because of an error -
    dump the stack to improve UBI error reporting and make the further diagnostics
    easier to do.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • This patch fixes an oops in the error path of 'ubi_attach_mtd_dev()'. If
    anything after 'uif_init()' fails, we get an oops in 'cancel_pending()'. The
    reason is that 'uif_close()' drops the last reference count for 'ubi->dev' and
    whole 'struct ubi_device' is freed. And then
    'ubi_wl_close()'->'cancel_pending()' tries to access the 'ubi' pointer and
    problems begin.

    Note, in 'ubi_detach_mtd_dev()' function we get a device reference to
    work-around this issue. Do the same in the error path of
    'ubi_attach_mtd_dev()'.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • Kill the UBI 'debug_tsts' module parameter and switch to debugfs. Create
    per-test mode files there. E.g., to enable bit-flips emulation you may just do:

    echo 1 > /sys/kernel/debug/ubi/ubi0/tst_emulate_bitflips

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • Current layout does not allow us to add inline functions to debug.h which use
    the 'struct ubi_device' object, because it is undefined there. Move
    '#include "debug.h"' in "ubi.h" down so to make 'struct ubi_device" be defined.
    Additionally, this makes it possible to remove a bunch of forward declarations
    in "debug.h". This is a preparation to the next patch.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • We'll need the 'struct ubi_device *ubi' pointer in every debugging function (to
    access the ->dbg field), so add this pointer to all the functions implementing
    UBI debugging test modes like 'ubi_dbg_is_bitflip()' etc.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     
  • This patch introduces debugfs support to UBI. All the UBI stuff is kept in the
    "ubi" debugfs directory, which contains per-UBI device "ubi/ubiX"
    sub-directories, containing debugging files. This file also creates
    "ubi/ubiX/chk_gen" and "ubi/ubiX/chk_io" knobs for switching general and I/O
    extra checks on and off. And it removes the 'debug_chks' UBI module parameters.

    Signed-off-by: Artem Bityutskiy

    Artem Bityutskiy
     

31 May, 2011

1 commit


28 May, 2011

1 commit

  • * git://git.infradead.org/mtd-2.6: (97 commits)
    mtd: kill CONFIG_MTD_PARTITIONS
    mtd: remove add_mtd_partitions, add_mtd_device and friends
    mtd: convert remaining users to mtd_device_register()
    mtd: samsung onenand: convert to mtd_device_register()
    mtd: omap2 onenand: convert to mtd_device_register()
    mtd: txx9ndfmc: convert to mtd_device_register()
    mtd: tmio_nand: convert to mtd_device_register()
    mtd: socrates_nand: convert to mtd_device_register()
    mtd: sharpsl: convert to mtd_device_register()
    mtd: s3c2410 nand: convert to mtd_device_register()
    mtd: ppchameleonevb: convert to mtd_device_register()
    mtd: orion_nand: convert to mtd_device_register()
    mtd: omap2: convert to mtd_device_register()
    mtd: nomadik_nand: convert to mtd_device_register()
    mtd: ndfc: convert to mtd_device_register()
    mtd: mxc_nand: convert to mtd_device_register()
    mtd: mpc5121_nfc: convert to mtd_device_register()
    mtd: jz4740_nand: convert to mtd_device_register()
    mtd: h1910: convert to mtd_device_register()
    mtd: fsmc_nand: convert to mtd_device_register()
    ...

    Fixed up trivial conflicts in
    - drivers/mtd/maps/integrator-flash.c: removed in ARM tree
    - drivers/mtd/maps/physmap.c: addition of afs partition probe type
    clashing with removal of CONFIG_MTD_PARTITIONS

    Linus Torvalds
     

27 May, 2011

1 commit


25 May, 2011

7 commits