From: <gregkh@suse.de>
To: James.Bottomley@HansenPartnership.com, akpm@linux-foundation.org,
alan@lxorguk.ukuu.org.uk, davem@davemloft.net,
Eric.Moore@lsi.com, gregkh@suse.de, JBottomley@Parallels.com,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
nagalakshmi.nandigama@lsi.com, Nagalakshmi.Nandigama@lsi.com,
stable@vger.kernel.org, torvalds@linux-foundation.org
Cc: <stable@vger.kernel.org>, <stable-commits@vger.kernel.org>
Subject: Patch "mpt2sas: fix non-x86 crash on shutdown" has been added to the 3.1-stable tree
Date: Thu, 05 Jan 2012 11:25:09 -0800 [thread overview]
Message-ID: <1325791509610@kroah.org> (raw)
In-Reply-To: <1325690713.2758.13.camel@dabdike.int.hansenpartnership.com>
This is a note to let you know that I've just added the patch titled
mpt2sas: fix non-x86 crash on shutdown
to the 3.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mpt2sas-fix-non-x86-crash-on-shutdown.patch
and it can be found in the queue-3.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From James.Bottomley@HansenPartnership.com Thu Jan 5 10:58:15 2012
From: James Bottomley <James.Bottomley@HansenPartnership.com>
Date: Wed, 04 Jan 2012 09:25:13 -0600
Subject: mpt2sas: fix non-x86 crash on shutdown
To: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>, "stable@vger.kernel.org" <stable@vger.kernel.org>
Cc: Greg KH <gregkh@suse.de>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "torvalds@linux-foundation.org" <torvalds@linux-foundation.org>, "akpm@linux-foundation.org" <akpm@linux-foundation.org>, "alan@lxorguk.ukuu.org.uk" <alan@lxorguk.ukuu.org.uk>, "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>, "David S. Miller" <davem@davemloft.net>, "Moore, Eric" <Eric.Moore@lsi.com>
Message-ID: <1325690713.2758.13.camel@dabdike.int.hansenpartnership.com>
From: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Upstrem commit: 911ae9434f83e7355d343f6c2be3ef5b00ea7aed
There's a bug in the MSIX backup and restore routines that cause a crash on
non-x86 (direct access to PCI space not via read/write). These routines are
unnecessary and were removed by the above commit, so also remove them from
stable to fix the crash.
Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/scsi/mpt2sas/mpt2sas_base.c | 59 +-----------------------------------
drivers/scsi/mpt2sas/mpt2sas_base.h | 4 --
2 files changed, 2 insertions(+), 61 deletions(-)
--- a/drivers/scsi/mpt2sas/mpt2sas_base.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.c
@@ -1082,41 +1082,6 @@ _base_config_dma_addressing(struct MPT2S
}
/**
- * _base_save_msix_table - backup msix vector table
- * @ioc: per adapter object
- *
- * This address an errata where diag reset clears out the table
- */
-static void
-_base_save_msix_table(struct MPT2SAS_ADAPTER *ioc)
-{
- int i;
-
- if (!ioc->msix_enable || ioc->msix_table_backup == NULL)
- return;
-
- for (i = 0; i < ioc->msix_vector_count; i++)
- ioc->msix_table_backup[i] = ioc->msix_table[i];
-}
-
-/**
- * _base_restore_msix_table - this restores the msix vector table
- * @ioc: per adapter object
- *
- */
-static void
-_base_restore_msix_table(struct MPT2SAS_ADAPTER *ioc)
-{
- int i;
-
- if (!ioc->msix_enable || ioc->msix_table_backup == NULL)
- return;
-
- for (i = 0; i < ioc->msix_vector_count; i++)
- ioc->msix_table[i] = ioc->msix_table_backup[i];
-}
-
-/**
* _base_check_enable_msix - checks MSIX capabable.
* @ioc: per adapter object
*
@@ -1128,7 +1093,7 @@ _base_check_enable_msix(struct MPT2SAS_A
{
int base;
u16 message_control;
- u32 msix_table_offset;
+
base = pci_find_capability(ioc->pdev, PCI_CAP_ID_MSIX);
if (!base) {
@@ -1141,14 +1106,8 @@ _base_check_enable_msix(struct MPT2SAS_A
pci_read_config_word(ioc->pdev, base + 2, &message_control);
ioc->msix_vector_count = (message_control & 0x3FF) + 1;
- /* get msix table */
- pci_read_config_dword(ioc->pdev, base + 4, &msix_table_offset);
- msix_table_offset &= 0xFFFFFFF8;
- ioc->msix_table = (u32 *)((void *)ioc->chip + msix_table_offset);
-
dinitprintk(ioc, printk(MPT2SAS_INFO_FMT "msix is supported, "
- "vector_count(%d), table_offset(0x%08x), table(%p)\n", ioc->name,
- ioc->msix_vector_count, msix_table_offset, ioc->msix_table));
+ "vector_count(%d)\n", ioc->name, ioc->msix_vector_count));
return 0;
}
@@ -1162,8 +1121,6 @@ _base_disable_msix(struct MPT2SAS_ADAPTE
{
if (ioc->msix_enable) {
pci_disable_msix(ioc->pdev);
- kfree(ioc->msix_table_backup);
- ioc->msix_table_backup = NULL;
ioc->msix_enable = 0;
}
}
@@ -1189,14 +1146,6 @@ _base_enable_msix(struct MPT2SAS_ADAPTER
if (_base_check_enable_msix(ioc) != 0)
goto try_ioapic;
- ioc->msix_table_backup = kcalloc(ioc->msix_vector_count,
- sizeof(u32), GFP_KERNEL);
- if (!ioc->msix_table_backup) {
- dfailprintk(ioc, printk(MPT2SAS_INFO_FMT "allocation for "
- "msix_table_backup failed!!!\n", ioc->name));
- goto try_ioapic;
- }
-
memset(&entries, 0, sizeof(struct msix_entry));
r = pci_enable_msix(ioc->pdev, &entries, 1);
if (r) {
@@ -3513,9 +3462,6 @@ _base_diag_reset(struct MPT2SAS_ADAPTER
u32 hcb_size;
printk(MPT2SAS_INFO_FMT "sending diag reset !!\n", ioc->name);
-
- _base_save_msix_table(ioc);
-
drsprintk(ioc, printk(MPT2SAS_INFO_FMT "clear interrupts\n",
ioc->name));
@@ -3611,7 +3557,6 @@ _base_diag_reset(struct MPT2SAS_ADAPTER
goto out;
}
- _base_restore_msix_table(ioc);
printk(MPT2SAS_INFO_FMT "diag reset: SUCCESS\n", ioc->name);
return 0;
--- a/drivers/scsi/mpt2sas/mpt2sas_base.h
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.h
@@ -636,8 +636,6 @@ enum mutex_type {
* @wait_for_port_enable_to_complete:
* @msix_enable: flag indicating msix is enabled
* @msix_vector_count: number msix vectors
- * @msix_table: virt address to the msix table
- * @msix_table_backup: backup msix table
* @scsi_io_cb_idx: shost generated commands
* @tm_cb_idx: task management commands
* @scsih_cb_idx: scsih internal commands
@@ -779,8 +777,6 @@ struct MPT2SAS_ADAPTER {
u8 msix_enable;
u16 msix_vector_count;
- u32 *msix_table;
- u32 *msix_table_backup;
u32 ioc_reset_count;
/* internal commands, callback index */
Patches currently in stable-queue which might be from James.Bottomley@HansenPartnership.com are
queue-3.1/mpt2sas-fix-non-x86-crash-on-shutdown.patch
next prev parent reply other threads:[~2012-01-05 19:25 UTC|newest]
Thread overview: 97+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-03 22:33 [00/75] 3.1.8-stable review Greg KH
2012-01-03 22:32 ` [01/75] ARM: OMAP: rx51: fix USB Greg KH
2012-01-03 22:32 ` [02/75] ipip, sit: copy parms.name after register_netdevice Greg KH
2012-01-03 22:32 ` [03/75] rtc: Expire alarms after the time is set Greg KH
2012-01-03 22:46 ` John Stultz
2012-01-03 22:53 ` Greg KH
2012-01-03 22:32 ` [04/75] rtc: m41t80: Workaround broken alarm functionality Greg KH
2012-01-03 22:32 ` [05/75] ALSA: HDA: Set position fix to LPIB for an Atom/Poulsbo based device Greg KH
2012-01-03 22:32 ` [06/75] drm/i915: set the right SDVO transcoder for CPT Greg KH
2012-01-03 22:32 ` [07/75] drm/i915: prevent division by zero when asking for chipset power Greg KH
2012-01-03 22:32 ` [08/75] cfq-iosched: free cic_index if blkio_alloc_blkg_stats fails Greg KH
2012-01-03 22:32 ` [09/75] cfq-iosched: fix cfq_cic_link() race confition Greg KH
2012-01-03 22:32 ` [10/75] SCSI: zfcp: return early from slave_destroy if slave_alloc returned early Greg KH
2012-01-03 22:32 ` [11/75] SCSI: mpt2sas: _scsih_smart_predicted_fault uses GFP_KERNEL in interrupt context Greg KH
2012-01-03 22:32 ` [12/75] SCSI: fcoe: Fix preempt count leak in fcoe_filter_frames() Greg KH
2012-01-03 22:32 ` [13/75] mac80211: fix another race in aggregation start Greg KH
2012-01-03 22:32 ` [14/75] ASoC: Fix WM8996 24.576MHz clock operation Greg KH
2012-01-03 22:32 ` [15/75] block: initialize request_queues numa node during Greg KH
2012-01-03 22:32 ` [16/75] ssb: fix init regression with SoCs Greg KH
2012-01-03 22:32 ` [17/75] rtl8192{ce,cu,de,se}: avoid problems because of possible ERFOFF -> ERFSLEEP transition Greg KH
2012-01-03 22:32 ` [18/75] MXC PWM: should active during DOZE/WAIT/DBG mode Greg KH
2012-01-03 22:32 ` [19/75] Input: synaptics - fix touchpad not working after S2R on Vostro V13 Greg KH
2012-01-03 22:32 ` [20/75] percpu: fix per_cpu_ptr_to_phys() handling of non-page-aligned addresses Greg KH
2012-01-03 22:32 ` [21/75] IB/mlx4: Fix shutdown crash accessing a non-existent bitmap Greg KH
2012-01-03 22:32 ` [22/75] binary_sysctl(): fix memory leak Greg KH
2012-01-03 22:32 ` [23/75] oom: fix integer overflow of points in oom_badness Greg KH
2012-01-03 22:32 ` [24/75] oprofile: Fix uninitialized memory access when writing to writing to oprofilefs Greg KH
2012-01-03 22:32 ` [25/75] SUNRPC: Ensure we always bump the backlog queue in xprt_free_slot Greg KH
2012-01-03 22:32 ` [26/75] NFS: Fix a regression in nfs_file_llseek() Greg KH
2012-01-03 22:33 ` [27/75] NFSv4.1: Ensure that we handle _all_ SEQUENCE status bits Greg KH
2012-01-03 22:33 ` [28/75] SELinux: Fix RCU deref check warning in sel_netport_insert() Greg KH
2012-01-03 22:33 ` [29/75] media: omap_vout: Fix compile error in 3.1 Greg KH
2012-01-03 22:33 ` [30/75] nilfs2: unbreak compat ioctl Greg KH
2012-01-03 22:33 ` [31/75] mmc: vub300: fix type of firmware_rom_wait_states module parameter Greg KH
2012-01-03 22:33 ` [32/75] cgroups: fix a css_set not found bug in cgroup_attach_proc Greg KH
2012-01-03 22:33 ` [33/75] mfd: Fix twl-core oops while calling twl_i2c_* for unbound driver Greg KH
2012-01-03 22:33 ` [34/75] vfs: __read_cache_page should use gfp argument rather than GFP_KERNEL Greg KH
2012-01-03 22:33 ` [35/75] media: s5p-fimc: Use correct fourcc for RGB565 colour format Greg KH
2012-01-03 22:33 ` [36/75] ath9k: fix max phy rate at rate control init Greg KH
2012-01-03 22:33 ` [37/75] iwlwifi: do not set the sequence control bit is not needed Greg KH
2012-01-03 22:33 ` [38/75] iwlwifi: allow to switch to HT40 if not associated Greg KH
2012-01-03 22:33 ` [39/75] memcg: keep root group unchanged if creation fails Greg KH
2012-01-03 22:33 ` [40/75] VFS: Fix race between CPU hotplug and lglocks Greg KH
2012-01-03 22:33 ` [41/75] ARM:imx:fix pwm period value Greg KH
2012-01-03 22:33 ` [42/75] ARM: 7214/1: mmc: mmci: Fixup handling of MCI_STARTBITERR Greg KH
2012-01-03 22:33 ` [43/75] ARM: 7220/1: mmc: mmci: Fixup error handling for dma Greg KH
2012-01-03 22:33 ` [44/75] oprofile, arm/sh: Fix oprofile_arch_exit() linkage issue Greg KH
2012-01-03 22:33 ` [45/75] futex: Fix uninterruptible loop due to gate_area Greg KH
2012-01-03 22:33 ` [46/75] watchdog: hpwdt: Changes to handle NX secure bit in 32bit path Greg KH
2012-01-03 22:33 ` [47/75] drm/radeon/kms: bail on BTC parts if MC ucode is missing Greg KH
2012-01-03 22:33 ` [48/75] mm: hugetlb: fix non-atomic enqueue of huge page Greg KH
2012-01-03 22:33 ` [49/75] mm/mempolicy.c: refix mbind_range() vma issue Greg KH
2012-01-03 22:33 ` [50/75] mpt2sas crashes on shutdown Greg KH
2012-01-04 8:53 ` Nandigama, Nagalakshmi
2012-01-04 15:18 ` Greg KH
2012-01-04 15:19 ` James Bottomley
2012-01-04 15:25 ` [PATCH] mpt2sas: fix non-x86 crash " James Bottomley
2012-01-04 19:21 ` Greg KH
2012-01-04 19:39 ` David Miller
2012-01-05 19:10 ` Patch "mpt2sas: fix non-x86 crash on shutdown" has been added to the 3.0-stable tree gregkh
2012-01-05 19:25 ` gregkh [this message]
2012-01-03 22:33 ` [51/75] sparc64: Fix MSIQ HV call ordering in pci_sun4v_msiq_build_irq() Greg KH
2012-01-03 22:33 ` [52/75] sparc32: Be less strict in matching %lo part of relocation Greg KH
2012-01-03 22:33 ` [53/75] sparc64: Patch sun4v code sequences properly on module load Greg KH
2012-01-03 22:33 ` [54/75] sparc: Kill custom io_remap_pfn_range() Greg KH
2012-01-03 22:33 ` [55/75] sparc32: Remove non-kernel code from memcpy implementation Greg KH
2012-01-03 22:33 ` [56/75] sparc32: Remove uses of %g7 in " Greg KH
2012-01-03 22:33 ` [57/75] sparc32: Correct the return value of memcpy Greg KH
2012-01-03 22:33 ` [58/75] sparc64: Fix masking and shifting in VIS fpcmp emulation Greg KH
2012-01-03 22:33 ` [59/75] sparc: Fix handling of orig_i0 wrt. debugging when restarting syscalls Greg KH
2012-01-03 22:33 ` [60/75] net: bpf_jit: fix an off-one bug in x86_64 cond jump target Greg KH
2012-01-03 22:33 ` [61/75] ppp: fix pptp double release_sock in pptp_bind() Greg KH
2012-01-03 22:33 ` [62/75] llc: llc_cmsg_rcv was getting called after sk_eat_skb Greg KH
2012-01-03 22:33 ` [63/75] mqprio: Avoid panic if no options are provided Greg KH
2012-01-03 22:33 ` [64/75] net: have ipconfig not wait if no dev is available Greg KH
2012-01-03 22:33 ` [65/75] sch_gred: should not use GFP_KERNEL while holding a spinlock Greg KH
2012-01-03 22:33 ` [66/75] sctp: fix incorrect overflow check on autoclose Greg KH
2012-01-03 22:33 ` [67/75] sctp: Do not account for sizeof(struct sk_buff) in estimated rwnd Greg KH
2012-01-03 22:33 ` [68/75] net: Add a flow_cache_flush_deferred function Greg KH
2012-01-03 22:33 ` [69/75] ipv4: flush route cache after change accept_local Greg KH
2012-01-03 22:33 ` [70/75] ipv6: Check dest prefix length on original route not copied one in rt6_alloc_cow() Greg KH
2012-01-03 22:33 ` [71/75] net: introduce DST_NOPEER dst flag Greg KH
2012-01-03 22:33 ` [72/75] ipv4: reintroduce route cache garbage collector Greg KH
2012-01-03 22:33 ` [73/75] ipv4: using prefetch requires including prefetch.h Greg KH
2012-01-03 22:33 ` [74/75] iwlwifi: update SCD BC table for all SCD queues Greg KH
2012-01-03 22:33 ` [75/75] mfd: Turn on the twl4030-madc MADC clock Greg KH
2012-01-05 19:26 ` [00/75] 3.1.8-stable review Greg KH
2012-01-05 22:36 ` Greg KH
2012-01-05 22:30 ` [49/80] mpt2sas: fix non-x86 crash on shutdown Greg KH
2012-01-05 22:30 ` [75/80] drm/radeon/kms/atom: fix possible segfault in pm setup Greg KH
2012-01-05 22:30 ` [76/80] hung_task: fix false positive during vfork Greg KH
2012-01-05 22:30 ` [77/80] Revert "rtc: Disable the alarm in the hardware" Greg KH
2012-01-05 22:30 ` [78/80] ptrace: partially fix the do_wait(WEXITED) vs EXIT_DEAD->EXIT_ZOMBIE race Greg KH
2012-01-05 22:30 ` [79/80] ptrace: ensure JOBCTL_STOP_SIGMASK is not zero after detach Greg KH
2012-01-05 22:30 ` [80/80] ath9k: Fix kernel panic in AR2427 in AP mode Greg KH
2012-01-05 19:29 ` [00/75] 3.1.8-stable review Linus Torvalds
2012-01-05 19:36 ` Greg KH
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=1325791509610@kroah.org \
--to=gregkh@suse.de \
--cc=Eric.Moore@lsi.com \
--cc=JBottomley@Parallels.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=nagalakshmi.nandigama@lsi.com \
--cc=stable-commits@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).