1. 02 Dec, 2012 3 commits
    • Stephan Gatzka's avatar
      firewire: net: Fix handling of fragmented multicast/broadcast packets. · 9d237342
      Stephan Gatzka authored
      This patch fixes both the transmit and receive portion of sending
      fragmented mutlicast and broadcast packets.
      
      The transmit section was broken because the offset for INTFRAG and
      LASTFRAG packets were just miscalculated by IEEE1394_GASP_HDR_SIZE (which
      was reserved with skb_push() in fwnet_send_packet).
      
      The receive section was broken because in fwnet_incoming_packet is a call
      to fwnet_peer_find_by_node_id(). Called with generation == -1 it will
      not find a peer and the partial datagrams are associated to a peer.
      
      [Stefan R:  The fix to use context->card->generation is not perfect.
      It relies on the IR tasklet which processes packets from the prior bus
      generation to run before the self-ID-complete worklet which sets the
      current card generation.  Alas, there is no simple way of a race-free
      implementation.  Let's do it this way for now.]
      Signed-off-by: default avatarStephan Gatzka <stephan.gatzka@gmail.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
      9d237342
    • Stefan Richter's avatar
      firewire: sbp2: allow WRITE SAME and REPORT SUPPORTED OPERATION CODES · b0ea5f19
      Stefan Richter authored
      The commits
          3c6bdaea "[SCSI] Add a report opcode helper"
          5db44863 "[SCSI] sd: Implement support for WRITE SAME"
      introduced in-kernel uses of the mentioned commands but cautiously
      blacklisted them for any IEEE 1394 (SBP-2/3) targets and some other
      transports.
      
      I looked through a range of SBP devices and found that the blacklist
      flags can be removed:
      
      The kernel never attempts these commands if the device's INQUIRY
      data claim a SCSI revision of less than 0x05.  This is the case with
      all SBP devices that I checked, except for three more recent devices
      which claimed a revision of 0x05 i.e. conformance with SPC-3 (two
      devices based on the OXUF936QSE chip but having different firmwares,
      one based on OXUF934DSB.)
      
      I tried "sg_opcodes" from sg3_utils on several older and newer devices
      and did not encounter any apparent firmware bugs with it.  All devices
      returned Illegal Request/ Invalid command operation code and carried on.
      I furthermore tried "sg_write_same -U" on the OXUF934DSB device with the
      same result.  Alas I did not have a TRIM enabled SSD available for these
      tests.  All of the bridges were correctly identified by the kernel as
      "fully provisioned", CD-ROM devices aside.
      
      The kernel won't issue WRITE SAME to fully provisioned devices, nor
      would it attempt REPORT SUPPORTED OPERATION CODES or WRITE SAME with
      UNMAP bit on devices which do not claim conformance to SPC-3 or later.
      
      Hence let's remove the no_report_opcodes and no_write_same blacklist
      flags so that these commands can be used on newer targets with
      respective capabilities.  I guess the Linux sbp-target could be such a
      target.
      Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
      b0ea5f19
    • Stefan Richter's avatar
      tools/firewire: nosy-dump: check for allocation failure · 6fa79bca
      Stefan Richter authored
      Behavior of null pointer dereference is undefined in the C language.
      Portably implement the desired behavior.
      Reported-by: default avatarYang Yeping <yangyeping_666@hotmail.com>
      Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
      6fa79bca
  2. 26 Nov, 2012 3 commits
  3. 25 Nov, 2012 1 commit
  4. 24 Nov, 2012 4 commits
    • Linus Torvalds's avatar
      Merge tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 194d9831
      Linus Torvalds authored
      Pull sound build error fix from Takashi Iwai:
       "Only a single commit for fixing the build error without CONFIG_PM in
        hda driver."
      
      * tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda - Fix build without CONFIG_PM
      194d9831
    • Takashi Iwai's avatar
      ALSA: hda - Fix build without CONFIG_PM · d846b174
      Takashi Iwai authored
      I forgot this again...  codec->in_pm is in #ifdef CONFIG_PM
      Reported-by: default avatarMarkus Trippelsdorf <markus@trippelsdorf.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      d846b174
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2654ad44
      Linus Torvalds authored
      Pull x86 arch fixes from Peter Anvin:
       "Here is a collection of fixes for 3.7-rc7.  This is a superset of
        tglx' earlier pull request."
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86-64: Fix ordering of CFI directives and recent ASM_CLAC additions
        x86, microcode, AMD: Add support for family 16h processors
        x86-32: Export kernel_stack_pointer() for modules
        x86-32: Fix invalid stack address while in softirq
        x86, efi: Fix processor-specific memcpy() build error
        x86: remove dummy long from EFI stub
        x86, mm: Correct vmflag test for checking VM_HUGETLB
        x86, amd: Disable way access filter on Piledriver CPUs
        x86/mce: Do not change worker's running cpu in cmci_rediscover().
        x86/ce4100: Fix PCI configuration register access for devices without interrupts
        x86/ce4100: Fix reboot by forcing the reboot method to be KBD
        x86/ce4100: Fix pm_poweroff
        MAINTAINERS: Update email address for Robert Richter
        x86, microcode_amd: Change email addresses, MAINTAINERS entry
        MAINTAINERS: Change Boris' email address
        EDAC: Change Boris' email address
        x86, AMD: Change Boris' email address
      2654ad44
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20121123' of git://git.infradead.org/mtd-2.6 · 35f95d22
      Linus Torvalds authored
      Pull MTD fixes from David Woodhouse:
       "The most important part of this is that it fixes a regression in
        Samsung NAND chip detection, introduced by some rework which went into
        3.7.  The initial fix wasn't quite complete, so it's in two parts.  In
        fact the first part is committed twice (Artem committed his own copy
        of the same patch) and I've merged Artem's tree into mine which
        already had that fix.
      
        I'd have recommitted that to make it somewhat cleaner, but figured by
        this point in the release cycle it was better to merge *exactly* the
        commits which have been in linux-next.
      
        If I'd recommitted, I'd also omit the sparse warning fix.  But it's
        there, and it's harmless — just marking one function as 'static' in
        onenand code.
      
        This also includes a couple more fixes for stable: an AB-BA deadlock
        in JFFS2, and an invalid range check in slram."
      
      * tag 'for-linus-20121123' of git://git.infradead.org/mtd-2.6:
        mtd: nand: fix Samsung SLC detection regression
        mtd: nand: fix Samsung SLC NAND identification regression
        jffs2: Fix lock acquisition order bug in jffs2_write_begin
        mtd: onenand: Make flexonenand_set_boundary static
        mtd: slram: invalid checking of absolute end address
        mtd: ofpart: Fix incorrect NULL check in parse_ofoldpart_partitions()
        mtd: nand: fix Samsung SLC NAND identification regression
      35f95d22
  5. 23 Nov, 2012 29 commits