All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Backlund <tmb@mageia.org>
To: Jiri Slaby <jslaby@suse.cz>, stable@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Kevin Hao <haokexin@gmail.com>,
	Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 3.12 81/94] libata: support the ata host which implements a queue depth less than 32
Date: Wed, 30 Jul 2014 17:37:06 +0300	[thread overview]
Message-ID: <53D90312.2030802@mageia.org> (raw)
In-Reply-To: <7e8fe9628fa3b778bf8b00c5faead306e80c0a47.1406722270.git.jslaby@suse.cz>

Jiri Slaby skrev den 30.7.2014 15:15:
> From: Kevin Hao <haokexin@gmail.com>
>
> 3.12-stable review patch.  If anyone has any objections, please let me know.
>
> ===============
>
> commit 1871ee134b73fb4cadab75752a7152ed2813c751 upstream.
>
> The sata on fsl mpc8315e is broken after the commit 8a4aeec8d2d6
> ("libata/ahci: accommodate tag ordered controllers"). The reason is
> that the ata controller on this SoC only implement a queue depth of
> 16. When issuing the commands in tag order, all the commands in tag
> 16 ~ 31 are mapped to tag 0 unconditionally and then causes the sata
> malfunction. It makes no senses to use a 32 queue in software while
> the hardware has less queue depth. So consider the queue depth
> implemented by the hardware when requesting a command tag.
>
> Fixes: 8a4aeec8d2d6 ("libata/ahci: accommodate tag ordered controllers")
> Signed-off-by: Kevin Hao <haokexin@gmail.com>
> Acked-by: Dan Williams <dan.j.williams@intel.com>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>

As you have added this to 3.12 branch, you also need to add this to 
avoid SAS breakage:

commit 1a112d10f03e83fb3a2fdc4c9165865dec8a3ca6
Author: Tejun Heo <tj@kernel.org>
Date:   Wed Jul 23 09:05:27 2014 -0400

     libata: introduce ata_host->n_tags to avoid oops on SAS controllers

     1871ee134b73 ("libata: support the ata host which implements a queue
     depth less than 32") directly used ata_port->scsi_host->can_queue from
     ata_qc_new() to determine the number of tags supported by the host;
     unfortunately, SAS controllers doing SATA don't initialize ->scsi_host
     leading to the following oops.

--

Thomas


  reply	other threads:[~2014-07-30 14:56 UTC|newest]

Thread overview: 101+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30 12:15 [PATCH 3.12 00/94] 3.12.26-stable review Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 01/94] Don't trigger congestion wait on dirty-but-not-writeout pages Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 02/94] can: c_can: Remove EOB exit Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 03/94] serial: sirf: fix spinlock deadlock issue Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 04/94] serial: sirf: Fix compilation failure Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 05/94] ACPI / resources: only reject zero length resources based at address zero Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 06/94] slip: Fix deadlock in write_wakeup Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 07/94] shmem: fix faulting into a hole while it's punched Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 08/94] shmem: fix faulting into a hole, not taking i_mutex Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 09/94] shmem: fix splicing from a hole while it's punched Jiri Slaby
2014-07-30 12:13 ` [PATCH 3.12 10/94] mm: kmemleak: avoid false negatives on vmalloc'ed objects Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 11/94] usb: Check if port status is equal to RxDetect Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 12/94] usb: chipidea: udc: Disable auto ZLP generation on ep0 Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 13/94] media: gspca_pac7302: Add new usb-id for Genius i-Look 317 Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 14/94] ALSA: hda - Fix broken PM due to incomplete i915 initialization Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 15/94] Drivers: hv: util: Fix a bug in the KVP code Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 16/94] Bluetooth: Ignore H5 non-link packets in non-active state Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 17/94] fuse: timeout comparison fix Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 18/94] fuse: handle large user and group ID Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 19/94] fuse: ignore entry-timeout on LOOKUP_REVAL Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 20/94] tracing: Fix graph tracer with stack tracer on other archs Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 21/94] tracing: Add ftrace_trace_stack into __trace_puts/__trace_bputs Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 22/94] tracing: Add TRACE_ITER_PRINTK flag check in __trace_puts/__trace_bputs Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 23/94] hwmon: (da9055) Don't use dash in the name attribute Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 24/94] hwmon: (da9052) " Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 25/94] hwmon: (adt7470) Fix writes to temperature limit registers Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 26/94] igb: Workaround for i210 Errata 25: Slow System Clock Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 27/94] igb: do a reset on SR-IOV re-init if device is down Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 28/94] quota: missing lock in dqcache_shrink_scan() Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 29/94] iwlwifi: dvm: don't enable CTS to self Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 30/94] e1000e: Fix SHRA register access for 82579 Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 31/94] ip_tunnel: fix ip_tunnel_lookup Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 32/94] slcan: Port write_wakeup deadlock fix from slip Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 33/94] net: sctp: propagate sysctl errors from proc_do* properly Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 34/94] tcp: fix tcp_match_skb_to_sack() for unaligned SACK at end of an skb Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 35/94] net: sctp: check proc_dointvec result in proc_sctp_do_auth Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 36/94] 8021q: fix a potential memory leak Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 37/94] net: fix UDP tunnel GSO of frag_list GRO packets Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 38/94] ipv4: fix dst race in sk_dst_get() Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 39/94] ipv4: irq safe sk_dst_[re]set() and ipv4_sk_update_pmtu() fix Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 40/94] bnx2x: fix possible panic under memory stress Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 41/94] tcp: Fix divide by zero when pushing during tcp-repair Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 42/94] ipv4: icmp: Fix pMTU handling for rare case Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 43/94] net: qmi_wwan: Add ID for Telewell TW-LTE 4G v2 Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 44/94] net: qmi_wwan: add two Sierra Wireless/Netgear devices Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 45/94] net: Fix NETDEV_CHANGE notifier usage causing spurious arp flush Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 46/94] igmp: fix the problem when mc leave group Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 47/94] tcp: fix false undo corner cases Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 48/94] appletalk: Fix socket referencing in skb Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 49/94] net: mvneta: fix operation in 10 Mbit/s mode Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 50/94] netlink: Fix handling of error from netlink_dump() Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 51/94] be2net: set EQ DB clear-intr bit in be_open() Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 52/94] tipc: clear 'next'-pointer of message fragments before reassembly Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 53/94] net: sctp: fix information leaks in ulpevent layer Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 54/94] net: pppoe: use correct channel MTU when using Multilink PPP Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 55/94] sunvnet: clean up objects created in vnet_new() on vnet_exit() Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 56/94] dns_resolver: assure that dns_query() result is null-terminated Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 57/94] ipv4: fix buffer overflow in ip_options_compile() Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 58/94] perf/x86/intel: ignore CondChgd bit to avoid false NMI handling Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 59/94] mwifiex: fix Tx timeout issue Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 60/94] ring-buffer: Fix polling on trace_pipe Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 61/94] irqchip: gic: Add support for cortex a7 compatible string Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 62/94] irqchip: gic: Fix core ID calculation when topology is read from DT Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 63/94] drm/radeon: set default bl level to something reasonable Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 64/94] drm/qxl: return IRQ_NONE if it was not our irq Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 65/94] drm/radeon: avoid leaking edid data Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 66/94] alarmtimer: Fix bug where relative alarm timers were treated as absolute Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 67/94] mtd: devices: elm: fix elm_context_save() and elm_context_restore() functions Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 68/94] dm thin metadata: do not allow the data block size to change Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 69/94] dm cache " Jiri Slaby
2014-07-30 12:14 ` [PATCH 3.12 70/94] PM / sleep: Fix request_firmware() error at resume Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 71/94] locking/mutex: Disable optimistic spinning on some architectures Jiri Slaby
2014-07-30 12:15   ` Jiri Slaby
2014-07-30 12:15   ` Jiri Slaby
2014-07-30 12:15   ` Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 72/94] sched: Fix possible divide by zero in avg_atom() calculation Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 73/94] aio: protect reqs_available updates from changes in interrupt handlers Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 74/94] ARM: dts: imx: Add alias for ethernet controller Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 75/94] ARC: Implement ptrace(PTRACE_GET_THREAD_AREA) Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 76/94] media: media: v4l2-core: v4l2-dv-timings.c: Cleaning up code wrong value used in aspect ratio Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 77/94] media: hdpvr: fix two audio bugs Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 78/94] media: tda10071: force modulation to QPSK on DVB-S Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 79/94] block: provide compat ioctl for BLKZEROOUT Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 80/94] block: don't assume last put of shared tags is for the host Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 81/94] libata: support the ata host which implements a queue depth less than 32 Jiri Slaby
2014-07-30 14:37   ` Thomas Backlund [this message]
2014-07-30 12:15 ` [PATCH 3.12 82/94] ahci: add support for the Promise FastTrak TX8660 SATA HBA (ahci mode) Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 83/94] blkcg: don't call into policy draining if root_blkg is already gone Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 84/94] tracing: Fix wraparound problems in "uptime" trace clock Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 85/94] slab_common: fix the check for duplicate slab names Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 86/94] Input: fix defuzzing logic Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 87/94] coredump: fix the setting of PF_DUMPCORE Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 88/94] parisc: Remove SA_RESTORER define Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 89/94] hwmon: (smsc47m192) Fix temperature limit and vrm write operations Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 90/94] fs: umount on symlink leaks mnt count Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 91/94] x86_32, entry: Store badsys error code in %eax Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 92/94] drm/radeon: fix irq ring buffer overflow handling Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 93/94] Fix gcc-4.9.0 miscompilation of load_balance() in scheduler Jiri Slaby
2014-07-30 12:15 ` [PATCH 3.12 94/94] x86/efi: Include a .bss section within the PE/COFF headers Jiri Slaby
2014-07-30 19:22 ` [PATCH 3.12 00/94] 3.12.26-stable review Guenter Roeck
2014-07-30 22:42   ` Satoru Takeuchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53D90312.2030802@mageia.org \
    --to=tmb@mageia.org \
    --cc=haokexin@gmail.com \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.