Monday, January 6, 2014

linux.kernel - 26 new messages in 6 topics - digest

linux.kernel
http://groups.google.com/group/linux.kernel?hl=en

linux.kernel@googlegroups.com

Today's topics:

* usb: musb: core: Call dma_controller_destroy() in error path only once. - 21
messages, 1 author
http://groups.google.com/group/linux.kernel/t/047a39ba3760060e?hl=en
* lib/vsprintf: add %pT[C012] format specifier - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/40f2db64b3df6ee9?hl=en
* Power consumption on a 2013 MBP - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/a0dcfb6438b8908b?hl=en
* x86: delete non-required instances of include <linux/init.h> - 1 messages, 1
author
http://groups.google.com/group/linux.kernel/t/6bede5b6eb9ac919?hl=en
* lib: raid: New RAID library supporting up to six parities - 1 messages, 1
author
http://groups.google.com/group/linux.kernel/t/7bdd7d35cb079217?hl=en
* usb: xhci: Link TRB must not occur within a USB payload burst - 1 messages,
1 author
http://groups.google.com/group/linux.kernel/t/02bb633f7aaf9195?hl=en

==============================================================================
TOPIC: usb: musb: core: Call dma_controller_destroy() in error path only once.
http://groups.google.com/group/linux.kernel/t/047a39ba3760060e?hl=en
==============================================================================

== 1 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

commit 8d1aad7485e653c2c5fd985b326096f680f7d918 upstream.

In commit f3ce4d5 ("usb: musb: core: call dma_controller_destroy() in the err path")
I erroneously assumed that the dma controller is not removed in the
error patch. This was wrong because it happens later via musb_free().
That means the original commit can be reverted because it is wrong or we
do this, so it is more obvious.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/usb/musb/musb_core.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1810,8 +1810,6 @@ static void musb_free(struct musb *musb)
free_irq(musb->nIrq, musb);
}
cancel_work_sync(&musb->irq_work);
- if (musb->dma_controller)
- dma_controller_destroy(musb->dma_controller);

musb_host_free(musb);
}
@@ -2036,6 +2034,9 @@ static int musb_remove(struct platform_d
musb_exit_debugfs(musb);
musb_shutdown(pdev);

+ if (musb->dma_controller)
+ dma_controller_destroy(musb->dma_controller);
+
musb_free(musb);
device_init_wakeup(dev, 0);
return 0;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 2 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Peter Hurley <peter@hurleysoftware.com>

commit 1075a6e2dc7e2a96efc417b98dd98f57fdae985d upstream.

With block processing of echoed output, observed output order is still
required. Push completed echoes and echo commands prior to output.

Introduce echo_mark echo buffer index, which tracks completed echo
commands; ie., those submitted via commit_echoes but which may not
have been committed. Ensure that completed echoes are output prior
to subsequent terminal writes in process_echoes().

Fixes newline/prompt output order in cooked mode shell.

Reported-by: Karl Dahlke <eklhad@comcast.net>
Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Tested-by: Karl Dahlke <eklhad@comcast.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/tty/n_tty.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -93,6 +93,7 @@ struct n_tty_data {
size_t canon_head;
size_t echo_head;
size_t echo_commit;
+ size_t echo_mark;
DECLARE_BITMAP(char_map, 256);

/* private to n_tty_receive_overrun (single-threaded) */
@@ -336,6 +337,7 @@ static void reset_buffer_flags(struct n_
{
ldata->read_head = ldata->canon_head = ldata->read_tail = 0;
ldata->echo_head = ldata->echo_tail = ldata->echo_commit = 0;
+ ldata->echo_mark = 0;
ldata->line_start = 0;

ldata->erasing = 0;
@@ -787,6 +789,7 @@ static void commit_echoes(struct tty_str
size_t head;

head = ldata->echo_head;
+ ldata->echo_mark = head;
old = ldata->echo_commit - ldata->echo_tail;

/* Process committed echoes if the accumulated # of bytes
@@ -811,10 +814,11 @@ static void process_echoes(struct tty_st
size_t echoed;

if ((!L_ECHO(tty) && !L_ECHONL(tty)) ||
- ldata->echo_commit == ldata->echo_tail)
+ ldata->echo_mark == ldata->echo_tail)
return;

mutex_lock(&ldata->output_lock);
+ ldata->echo_commit = ldata->echo_mark;
echoed = __process_echoes(tty);
mutex_unlock(&ldata->output_lock);

@@ -822,6 +826,7 @@ static void process_echoes(struct tty_st
tty->ops->flush_chars(tty);
}

+/* NB: echo_mark and echo_head should be equivalent here */
static void flush_echoes(struct tty_struct *tty)
{
struct n_tty_data *ldata = tty->disc_data;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 3 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Hui Wang <hui.wang@canonical.com>

commit c29cb5eb8157a0049c882672a7f941261f23ea34 upstream.

On the Dell machines with codec whose Subsystem Id is 0x10280610,
0x10280629 or 0x1028063e, no external microphone can be detected when
plugging a 3-ring headset. If we add "model=dell-headset-multi" for
the snd-hda-intel.ko, the problem will disappear.

The codecs on these machines belong to alc_269 family.

BugLink: https://bugs.launchpad.net/bugs/1260303
Cc: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
sound/pci/hda/patch_realtek.c | 3 +++
1 file changed, 3 insertions(+)

--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4004,10 +4004,13 @@ static const struct snd_pci_quirk alc269
SND_PCI_QUIRK(0x1028, 0x0606, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x0608, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x0609, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
+ SND_PCI_QUIRK(0x1028, 0x0610, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x0613, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x0614, "Dell Inspiron 3135", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x0616, "Dell Vostro 5470", ALC290_FIXUP_MONO_SPEAKERS),
+ SND_PCI_QUIRK(0x1028, 0x0629, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x0638, "Dell Inspiron 5439", ALC290_FIXUP_MONO_SPEAKERS),
+ SND_PCI_QUIRK(0x1028, 0x063e, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x15cc, "Dell X5 Precision", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1028, 0x15cd, "Dell X5 Precision", ALC269_FIXUP_DELL2_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 4 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: David Henningsson <david.henningsson@canonical.com>

commit 693e0cb052c607e2d41edf9e9f1fa99ff8c266c1 upstream.

While enabling these machines, we found we would sometimes lose an
interrupt if we change hardware volume during playback, and that
disabling msi fixed this issue. (Losing the interrupt caused underruns
and crackling audio, as the one second timeout is usually bigger than
the period size.)

The machines were all machines from HP, running AMD Hudson controller,
and Realtek ALC282 codec.

BugLink: https://bugs.launchpad.net/bugs/1260225
Signed-off-by
: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
sound/pci/hda/hda_intel.c | 4 ++++
1 file changed, 4 insertions(+)

--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -3430,6 +3430,10 @@ static void check_probe_mask(struct azx
* white/black-list for enable_msi
*/
static struct snd_pci_quirk msi_black_list[] = {
+ SND_PCI_QUIRK(0x103c, 0x2191, "HP", 0), /* AMD Hudson */
+ SND_PCI_QUIRK(0x103c, 0x2192, "HP", 0), /* AMD Hudson */
+ SND_PCI_QUIRK(0x103c, 0x21f7, "HP", 0), /* AMD Hudson */
+ SND_PCI_QUIRK(0x103c, 0x21fa, "HP", 0), /* AMD Hudson */
SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */
SND_PCI_QUIRK(0x1043, 0x81f6, "ASUS", 0), /* nvidia */
SND_PCI_QUIRK(0x1043, 0x822d, "ASUS", 0), /* Athlon64 X2 + nvidia MCP55 */


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 5 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Jonathan Cameron <jic23@kernel.org>

commit 3425c0f7ac61f2fcfb7f2728e9b7ba7e27aec429 upstream.

A single channel in this driver was using the IIO_ST macro.
This does not provide a parameter for setting the endianness of
the channel. Thus this channel will have been reported as whatever
is the native endianness of the cpu rather than big endian. This
means it would be incorrect on little endian platforms.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/iio/imu/adis16400_core.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

--- a/drivers/iio/imu/adis16400_core.c
+++ b/drivers/iio/imu/adis16400_core.c
@@ -651,7 +651,12 @@ static const struct iio_chan_spec adis16
.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE),
.address = ADIS16448_BARO_OUT,
.scan_index = ADIS16400_SCAN_BARO,
- .scan_type = IIO_ST('s', 16, 16, 0),
+ .scan_type = {
+ .sign = 's',
+ .realbits = 16,
+ .storagebits = 16,
+ .endianness = IIO_BE,
+ },
},
ADIS16400_TEMP_CHAN(ADIS16448_TEMP_OUT, 12),
IIO_CHAN_SOFT_TIMESTAMP(11)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 6 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Dmitry Kunilov <dmitry.kunilov@gmail.com>

commit 52d0dc7597c89b2ab779f3dcb9b9bf0800dd9218 upstream.

ZTE AC2726 EVDO modem drops ppp connection every minute when driven by
zte_ev but works fine when driven by option. Move the support for AC2726
back to option driver.

Signed-off-by: Dmitry Kunilov <dmitry.kunilov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/usb/serial/option.c | 2 ++
drivers/usb/serial/zte_ev.c | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)

--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -251,6 +251,7 @@ static void option_instat_callback(struc
#define ZTE_PRODUCT_MF628 0x0015
#define ZTE_PRODUCT_MF626 0x0031
#define ZTE_PRODUCT_MC2718 0xffe8
+#define ZTE_PRODUCT_AC2726 0xfff1

#define BENQ_VENDOR_ID 0x04a5
#define BENQ_PRODUCT_H10 0x4068
@@ -1453,6 +1454,7 @@ static const struct usb_device_id option
{ USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff, 0x02, 0x01) },
{ USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff, 0x02, 0x05) },
{ USB_VENDOR_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0xff, 0x86, 0x10) },
+ { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_AC2726, 0xff, 0xff, 0xff) },

{ USB_DEVICE(BENQ_VENDOR_ID, BENQ_PRODUCT_H10) },
{ USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWM_652) },
--- a/drivers/usb/serial/zte_ev.c
+++ b/drivers/usb/serial/zte_ev.c
@@ -281,8 +281,7 @@ static const struct usb_device_id id_tab
{ USB_DEVICE(0x19d2, 0xfffd) },
{ USB_DEVICE(0x19d2, 0xfffc) },
{ USB_DEVICE(0x19d2, 0xfffb) },
- /* AC2726, AC8710_V3 */
- { USB_DEVICE_AND_INTERFACE_INFO(0x19d2, 0xfff1, 0xff, 0xff, 0xff) },
+ /* AC8710_V3 */
{ USB_DEVICE(0x19d2, 0xfff6) },
{ USB_DEVICE(0x19d2, 0xfff7) },
{ USB_DEVICE(0x19d2, 0xfff8) },


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 7 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: "Yan, Zheng" <zheng.z.yan@intel.com>

commit eb1b8af33c2e42a9a57fc0a7588f4a7b255d2e79 upstream.

Aborted requests usually get cleared when the reply is received.
If MDS crashes, no reply will be received. So we need to cleanup
aborted requests when re-sending requests.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
fs/ceph/mds_client.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -1875,8 +1875,11 @@ static int __do_request(struct ceph_mds_
int mds = -1;
int err = -EAGAIN;

- if (req->r_err || req->r_got_result)
+ if (req->r_err || req->r_got_result) {
+ if (req->r_aborted)
+ __unregister_request(mdsc, req);
goto out;
+ }

if (req->r_timeout &&
time_after_eq(jiffies, req->r_started + req->r_timeout)) {


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 8 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: JongHo Kim <furmuwon@gmail.com>

commit ed697e1aaf7237b1a62af39f64463b05c262808d upstream.

When the process is sleeping at the SNDRV_PCM_STATE_PAUSED
state from the wait_for_avail function, the sleep process will be woken by
timeout(10 seconds). Even if the sleep process wake up by timeout, by this
patch, the process will continue with sleep and wait for the other state.

Signed-off-by: JongHo Kim <furmuwon@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
sound/core/pcm_lib.c | 2 ++
1 file changed, 2 insertions(+)

--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -1937,6 +1937,8 @@ static int wait_for_avail(struct snd_pcm
case SNDRV_PCM_STATE_DISCONNECTED:
err = -EBADFD;
goto _endloop;
+ case SNDRV_PCM_STATE_PAUSED:
+ continue;
}
if (!tout) {
snd_printd("%s write error (DMA or IRQ trouble?)\n",


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 9 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Benjamin LaHaise <bcrl@kvack.org>

commit 1881686f842065d2f92ec9c6424830ffc17d23b0 upstream.

e34ecee2ae791df674dfb466ce40692ca6218e43 reworked the percpu reference
counting to correct a bug trinity found. Unfortunately, the change lead
to kioctxes being leaked because there was no final reference count to
put. Add that reference count back in to fix things.

Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
fs/aio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- a/fs/aio.c
+++ b/fs/aio.c
@@ -652,7 +652,8 @@ static struct kioctx *ioctx_alloc(unsign
aio_nr += ctx->max_reqs;
spin_unlock(&aio_nr_lock);

- percpu_ref_get(&ctx->users); /* io_setup() will drop this ref */
+ percpu_ref_get(&ctx->users); /* io_setup() will drop this ref */
+ percpu_ref_get(&ctx->reqs); /* free_ioctx_users() will drop this */

err = ioctx_add_table(ctx, mm);
if (err)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 10 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Milosz Tanski <milosz@adfin.com>

commit ffc79664d15841025d90afdd902c4112ffe168d6 upstream.

In some cases I'm on my ceph client cluster I'm seeing hunk kernel tasks in
the invalidate page code path. This is due to the fact that we don't check if
the page is marked as cache before calling fscache_wait_on_page_write().

This is the log from the hang

INFO: task XXXXXX:12034 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
...
Call Trace:
[<ffffffff81568d09>] schedule+0x29/0x70
[<ffffffffa01d4cbd>] __fscache_wait_on_page_write+0x6d/0xb0 [fscache]
[<ffffffff81083520>] ? add_wait_queue+0x60/0x60
[<ffffffffa029a3e9>] ceph_invalidate_fscache_page+0x29/0x50 [ceph]
[<ffffffffa027df00>] ceph_invalidatepage+0x70/0x190 [ceph]
[<ffffffff8112656f>] ? delete_from_page_cache+0x5f/0x70
[<ffffffff81133cab>] truncate_inode_page+0x8b/0x90
[<ffffffff81133ded>] truncate_inode_pages_range.part.12+0x13d/0x620
[<ffffffff8113431d>] truncate_inode_pages_range+0x4d/0x60
[<ffffffff811343b5>] truncate_inode_pages+0x15/0x20
[<ffffffff8119bbf6>] evict+0x1a6/0x1b0
[<ffffffff8119c3f3>] iput+0x103/0x190
...

Signed-off-by: Milosz Tanski <milosz@adfin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
fs/ceph/cache.c | 3 +++
1 file changed, 3 insertions(+)

--- a/fs/ceph/cache.c
+++ b/fs/ceph/cache.c
@@ -324,6 +324,9 @@ void ceph_invalidate_fscache_page(struct
{
struct ceph_inode_info *ci = ceph_inode(inode);

+ if (!PageFsCache(page))
+ return;
+
fscache_wait_on_page_write(ci->fscache, page);
fscache_uncache_page(ci->fscache, page);
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 11 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: pingfan liu <qemulist@gmail.com>

commit 91648ec09c1ef69c4d840ab6dab391bfb452d554 upstream.

Since kvmppc_hv_find_lock_hpte() is called from both virtmode and
realmode, so it can trigger the deadlock.

Suppose the following scene:

Two physical cpuM, cpuN, two VM instances A, B, each VM has a group of
vcpus.

If on cpuM, vcpu_A_1 holds bitlock X (HPTE_V_HVLOCK), then is switched
out, and on cpuN, vcpu_A_2 try to lock X in realmode, then cpuN will be
caught in realmode for a long time.

What makes things even worse if the following happens,
On cpuM, bitlockX is hold, on cpuN, Y is hold.
vcpu_B_2 try to lock Y on cpuM in realmode
vcpu_A_2 try to lock X on cpuN in realmode

Oops! deadlock happens

Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
Reviewed-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
arch/powerpc/kvm/book3s_64_mmu_hv.c | 6 +++++-
arch/powerpc/kvm/book3s_hv_rm_mmu.c | 4 ++++
2 files changed, 9 insertions(+), 1 deletion(-)

--- a/arch/powerpc/kvm/book3s_64_mmu_hv.c
+++ b/arch/powerpc/kvm/book3s_64_mmu_hv.c
@@ -473,11 +473,14 @@ static int kvmppc_mmu_book3s_64_hv_xlate
slb_v = vcpu->kvm->arch.vrma_slb_v;
}

+ preempt_disable();
/* Find the HPTE in the hash table */
index = kvmppc_hv_find_lock_hpte(kvm, eaddr, slb_v,
HPTE_V_VALID | HPTE_V_ABSENT);
- if (index < 0)
+ if (index < 0) {
+ preempt_enable();
return -ENOENT;
+ }
hptep = (unsigned long *)(kvm->arch.hpt_virt + (index << 4));
v = hptep[0] & ~HPTE_V_HVLOCK;
gr = kvm->arch.revmap[index].guest_rpte;
@@ -485,6 +488,7 @@ static int kvmppc_mmu_book3s_64_hv_xlate
/* Unlock the HPTE */
asm volatile("lwsync" : : : "memory");
hptep[0] = v;
+ preempt_enable();

gpte->eaddr = eaddr;
gpte->vpage = ((v & HPTE_V_AVPN) << 4) | ((eaddr >> 12) & 0xfff);
--- a/arch/powerpc/kvm/book3s_hv_rm_mmu.c
+++ b/arch/powerpc/kvm/book3s_hv_rm_mmu.c
@@ -749,6 +749,10 @@ static int slb_base_page_shift[4] = {
20, /* 1M, unsupported */
};

+/* When called from virtmode, this func should be protected by
+ * preempt_disable(), otherwise, the holding of HPTE_V_HVLOCK
+ * can trigger deadlock issue.
+ */
long kvmppc_hv_find_lock_hpte(struct kvm *kvm, gva_t eaddr, unsigned long slb_v,
unsigned long valid)
{


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 12 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Johan Hovold <jhovold@gmail.com>

commit 6f6485463aada1ec6a0f3db6a03eb8e393d6bb55 upstream.

Fix race in generic write implementation, which could lead to
temporarily degraded throughput.

The current generic write implementation introduced by commit
27c7acf22047 ("USB: serial: reimplement generic fifo-based writes") has
always had this bug, although it's fairly hard to trigger and the
consequences are not likely to be noticed.

Specifically, a write() on one CPU while the completion handler is
running on another could result in only one of the two write urbs being
utilised to empty the remainder of the write fifo (unless there is a
second write() that doesn't race during that time).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/usb/serial/generic.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)

--- a/drivers/usb/serial/generic.c
+++ b/drivers/usb/serial/generic.c
@@ -176,14 +176,7 @@ retry:
return result;
}

- /* Try sending off another urb, unless in irq context (in which case
- * there will be no free urb). */
- if (!in_irq())
- goto retry;
-
- clear_bit_unlock(USB_SERIAL_WRITE_BUSY, &port->flags);
-
- return 0;
+ goto retry; /* try sending off another urb */
}

/**


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 13 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Li Wang <liwang@ubuntukylin.com>

commit ff638b7df5a9264024a6448bdfde2b2bf5d1994a upstream.

ceph_osdc_readpages() returns number of bytes read, currently,
the code only allocate full-zero page into fscache, this patch
fixes this.

Signed-off-by: Li Wang <liwang@ubuntukylin.com>
Reviewed-by: Milosz Tanski <milosz@adfin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
fs/ceph/addr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -216,7 +216,7 @@ static int readpage_nounlock(struct file
}
SetPageUptodate(page);

- if (err == 0)
+ if (err >= 0)
ceph_readpage_to_fscache(inode, page);

out:


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 14 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: "Yan, Zheng" <zheng.z.yan@intel.com>

commit fc55d2c9448b34218ca58733a6f51fbede09575b upstream.

We also need to wake up 'safe' waiters if error occurs or request
aborted. Otherwise sync(2)/fsync(2) may hang forever.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
fs/ceph/mds_client.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -642,6 +642,8 @@ static void __unregister_request(struct
req->r_unsafe_dir = NULL;
}

+ complete_all(&req->r_safe_completion);
+
ceph_mdsc_put_request(req);
}

@@ -2189,7 +2191,6 @@ static void handle_reply(struct ceph_mds
if (head->safe) {
req->r_got_safe = true;
__unregister_request(mdsc, req);
- complete_all(&req->r_safe_completion);

if (req->r_got_unsafe) {
/*


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 15 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Fabio Estevam <fabio.estevam@freescale.com>

commit cc5c9eb67f912cb2c349b04063ff9f444affbc59 upstream.

Commit 40ed51a4b (usb: chipidea: host: add vbus regulator
control) introduced a smatch complaint because regulator_disable() is called
without checking whether ci->platdata->reg_vbus is not NULL.

Fix this by adding the check.

This patch is needed for 3.12 stable

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/usb/chipidea/host.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/usb/chipidea/host.c
+++ b/drivers/usb/chipidea/host.c
@@ -88,7 +88,8 @@ static int host_start(struct ci_hdrc *ci
return ret;

disable_reg:
- regulator_disable(ci->platdata->reg_vbus);
+ if (ci->platdata->reg_vbus)
+ regulator_disable(ci->platdata->reg_vbus);

put_hcd:
usb_put_hcd(hcd);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 16 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Shivaram Upadhyayula <shivaram.u@quadstor.com>

commit 63832aabec12a28a41a221773ab3819d30ba0a67 upstream.

This patch fixes two cases in qla_target.c code where the
schedule_delayed_work() value was being incorrectly calculated
from sess->expires - jiffies.

Signed-off-by: Shivaram U <shivaram.u@quadstor.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/scsi/qla2xxx/qla_target.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -471,7 +471,7 @@ static void qlt_schedule_sess_for_deleti
schedule_delayed_work(&tgt->sess_del_work, 0);
else
schedule_delayed_work(&tgt->sess_del_work,
- jiffies - sess->expires);
+ sess->expires - jiffies);
}

/* ha->hardware_lock supposed to be held on entry */
@@ -550,13 +550,14 @@ static void qlt_del_sess_work_fn(struct
struct scsi_qla_host *vha = tgt->vha;
struct qla_hw_data *ha = vha->hw;
struct qla_tgt_sess *sess;
- unsigned long flags;
+ unsigned long flags, elapsed;

spin_lock_irqsave(&ha->hardware_lock, flags);
while (!list_empty(&tgt->del_sess_list)) {
sess = list_entry(tgt->del_sess_list.next, typeof(*sess),
del_list_entry);
- if (time_after_eq(jiffies, sess->expires)) {
+ elapsed = jiffies;
+ if (time_after_eq(elapsed, sess->expires)) {
qlt_undelete_sess(sess);

ql_dbg(ql_dbg_tgt_mgt, vha, 0xf004,
@@ -566,7 +567,7 @@ static void qlt_del_sess_work_fn(struct
ha->tgt.tgt_ops->put_sess(sess);
} else {
schedule_delayed_work(&tgt->sess_del_work,
- jiffies - sess->expires);
+ sess->expires - elapsed);
break;
}
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 17 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Mika Westerberg <mika.westerberg@linux.intel.com>

commit d24c195f90cb1adb178d26d84c722d4b9e551e05 upstream.

Newer Intel PCHs with LPSS have the same Designware controllers than
Haswell but ACPI IDs are different. Add these IDs to the driver list.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/tty/serial/8250/8250_dw.c | 2 ++
1 file changed, 2 insertions(+)

--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -417,6 +417,8 @@ MODULE_DEVICE_TABLE(of, dw8250_of_match)
static const struct acpi_device_id dw8250_acpi_match[] = {
{ "INT33C4", 0 },
{ "INT33C5", 0 },
+ { "INT3434", 0 },
+ { "INT3435", 0 },
{ "80860F0A", 0 },
{ },
};


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 18 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Peter Chen <peter.chen@freescale.com>

commit 5a1e1456fc633da5291285b1fff75d2a7507375b upstream.

If we connect Male-A-To-Male-A cable between otg-host and host pc,
the ci->vbus_active is set wrongly, and cause the controller run
at peripheral mode when we load gadget module (ci_udc_start will be run),
but the software runs at host mode due to id = 0. The ehci_irq
can't handle suspend (USBi_SLI) interrupt which is enabled for
peripheral mode, it causes no one will handle irq error.

This patch is needed for 3.12 stable

Acked-by: Michael Grzeschik <mgr@pengutronix.de>
Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Tested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/usb/chipidea/core.c | 4 ++++
drivers/usb/chipidea/udc.c | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)

--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -575,6 +575,10 @@ static int ci_hdrc_probe(struct platform
: CI_ROLE_GADGET;
}

+ /* only update vbus status for peripheral */
+ if (ci->role == CI_ROLE_GADGET)
+ ci_handle_vbus_change(ci);
+
ret = ci_role_start(ci, ci->role);
if (ret) {
dev_err(dev, "can't start %s role\n", ci_role(ci)->name);
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -1818,9 +1818,6 @@ static int udc_start(struct ci_hdrc *ci)
pm_runtime_no_callbacks(&ci->gadget.dev);
pm_runtime_enable(&ci->gadget.dev);

- /* Update ci->vbus_active */
- ci_handle_vbus_change(ci);
-
return retval;

remove_trans:


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 19 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Marc Kleine-Budde <mkl@pengutronix.de>

commit 20fb4eb96fb0350d28fc4d7cbfd5506711079592 upstream.

This patch fixes a memory leak in pcan_usb_pro_init(). In patch

f14e224 net: can: peak_usb: Do not do dma on the stack

the struct pcan_usb_pro_fwinfo *fi and struct pcan_usb_pro_blinfo *bi were
converted from stack to dynamic allocation va kmalloc(). However the
corresponding kfree() was not introduced.

This patch adds the missing kfree().

Reported-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/net/can/usb/peak_usb/pcan_usb_pro.c | 3 +++
1 file changed, 3 insertions(+)

--- a/drivers/net/can/usb/peak_usb/pcan_usb_pro.c
+++ b/drivers/net/can/usb/peak_usb/pcan_usb_pro.c
@@ -927,6 +927,9 @@ static int pcan_usb_pro_init(struct peak
/* set LED in default state (end of init phase) */
pcan_usb_pro_set_led(dev, 0, 1);

+ kfree(bi);
+ kfree(fi);
+
return 0;

err_out:


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 20 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


3.12-stable review patch. If anyone has any objections, please let me know.

------------------

From: Geert Uytterhoeven <geert@linux-m68k.org>

commit dc1dc2f8a5dd863bf2e79f338fc3ae29e99c683a upstream.

When booting a multi-platform m68k kernel on a non-Mac with "console=ttyS0"
on the kernel command line, it crashes with:

Unable to handle kernel NULL pointer dereference at virtual address (null)
Oops: 00000000
PC: [<0013ad28>] __pmz_startup+0x32/0x2a0
...
Call Trace: [<002c5d3e>] pmz_console_setup+0x64/0xe4

The normal tty driver doesn't crash, because init_pmz() checks
pmz_ports_count again after calling pmz_probe().

In the serial console initialization path, pmz_console_init() doesn't do
this, causing the driver to crash later.

Add a check for pmz_ports_count to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Finn Thain <fthain@telegraphics.com.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
drivers/tty/serial/pmac_zilog.c | 3 +++
1 file changed, 3 insertions(+)

--- a/drivers/tty/serial/pmac_zilog.c
+++ b/drivers/tty/serial/pmac_zilog.c
@@ -2050,6 +2050,9 @@ static int __init pmz_console_init(void)
/* Probe ports */
pmz_probe();

+ if (pmz_ports_count == 0)
+ return -ENODEV;
+
/* TODO: Autoprobe console based on OF */
/* pmz_console.index = i; */
register_console(&pmz_console);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




== 21 of 21 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Greg Kroah-Hartman


This is the start of the stable review cycle for the 3.12.7 release.
There are 144 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.

Responses should be made by Wed Jan 8 22:37:25 UTC 2014.
Anything received after that time might be too late.

The whole patch series can be found in one patch at:
kernel.org/pub/linux/kernel/v3.0/stable-review/patch-3.12.7-rc1.gz
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Linux 3.12.7-rc1

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPIPHP / radeon / nouveau: Fix VGA switcheroo problem related to hotplug

Zhang Rui <rui.zhang@intel.com>
nouveau_acpi: convert acpi_get_handle() to acpi_has_method()

Benjamin LaHaise <bcrl@kvack.org>
aio/migratepages: make aio migrate pages sane

Linus Torvalds <torvalds@linux-foundation.org>
aio: clean up and fix aio_setup_ring page mapping

Dinh Nguyen <dinguyen@altera.com>
clocksource: dw_apb_timer_of: Fix support for dts binding "snps,dw-apb-timer"

Dinh Nguyen <dinguyen@altera.com>
clocksource: dw_apb_timer_of: Fix read_sched_clock

Paul Moore <pmoore@redhat.com>
selinux: process labeled IPsec TCP SYN-ACK packets properly in selinux_ip_postroute()

Paul Moore <pmoore@redhat.com>
selinux: look for IPsec labels on both inbound and outbound packets

Geert Uytterhoeven <geert@linux-m68k.org>
sh: always link in helper functions extracted from libgcc

Stephen Boyd <sboyd@codeaurora.org>
gpio: msm: Fix irq mask/unmask by writing bits instead of numbers

Roger Quadros <rogerq@ti.com>
gpio: twl4030: Fix regression for twl gpio LED output

Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
sh-pfc: Fix PINMUX_GPIO macro

Theodore Ts'o <tytso@mit.edu>
jbd2: don't BUG but return ENOSPC if a handle runs out of space

Martin Schwidefsky <schwidefsky@de.ibm.com>
s390/3270: fix allocation of tty3270_screen structure

Maxime Ripard <maxime.ripard@free-electrons.com>
ARM: sun7i: dt: Fix interrupt trigger types

Vladimir Davydov <vdavydov@parallels.com>
memcg: fix memcg_size() calculation

Steven Whitehouse <swhiteho@redhat.com>
GFS2: Fix incorrect invalidation for DIO/buffered I/O

Bob Peterson <rpeterso@redhat.com>
GFS2: Fix slab memory leak in gfs2_bufdata

Bob Peterson <rpeterso@redhat.com>
GFS2: Fix use-after-free race when calling gfs2_remove_from_ail

Steven Whitehouse <swhiteho@redhat.com>
GFS2: don't hold s_umount over blkdev_put

Dmitry Torokhov <dmitry.torokhov@gmail.com>
Input: allocate absinfo data when setting ABS capability

Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
mm/memory-failure.c: transfer page count from head page to tail page after split thp

Rik van Riel <riel@redhat.com>
mm: fix use-after-free in sys_remap_file_pages

Vlastimil Babka <vbabka@suse.cz>
mm: munlock: fix deadlock in __munlock_pagevec()

Vlastimil Babka <vbabka@suse.cz>
mm: munlock: fix a bug where THP tail page is encountered

Johannes Weiner <hannes@cmpxchg.org>
mm: page_alloc: revert NUMA aspect of fair allocation policy

Jianguo Wu <wujianguo@huawei.com>
mm/hugetlb: check for pte NULL pointer in __page_check_address()

Jianguo Wu <wujianguo@huawei.com>
mm/memory-failure.c: recheck PageHuge() after hugetlb page migrate successfully

Joonsoo Kim <iamjoonsoo.kim@lge.com>
mm/compaction: respect ignore_skip_hint in update_pageblock_skip

Joonsoo Kim <iamjoonsoo.kim@lge.com>
mm/mempolicy: correct putback method for isolate pages if failed

Mel Gorman <mgorman@suse.de>
mm: numa: guarantee that tlb_flush_pending updates are visible before page table updates

Rik van Riel <riel@redhat.com>
mm: fix TLB flush race between migration, and change_protection_range

Mel Gorman <mgorman@suse.de>
mm: numa: avoid unnecessary work on the failure path

Mel Gorman <mgorman@suse.de>
mm: numa: ensure anon_vma is locked to prevent parallel THP splits

Mel Gorman <mgorman@suse.de>
mm: clear pmd_numa before invalidating

Rob Herring <robh@kernel.org>
Revert "of/address: Handle #address-cells > 2 specially"

Rafael J. Wysocki <rafael.j.wysocki@intel.com>
intel_pstate: Fail initialization if P-state information is missing

Toshi Kani <toshi.kani@hp.com>
ACPI / PCI / hotplug: Avoid warning when _ADR not present

Jan Kara <jack@suse.cz>
ext2: Fix oops in ext2_get_block() called from ext2_quota_write()

Larry Finger <Larry.Finger@lwfinger.net>
rtlwifi: pci: Fix oops on driver unload

Johannes Berg <johannes.berg@intel.com>
radiotap: fix bitmap-end-finding buffer overrun

Shirish Pargaonkar <shirishpargaonkar@gmail.com>
cifs: set FILE_CREATED

Sachin Prabhu <sprabhu@redhat.com>
cifs: We do not drop reference to tlink in CIFSCheckMFSymlink()

Tejun Heo <tj@kernel.org>
libata, freezer: avoid block device removal while system is frozen

Marc Carino <marc.ceeeee@gmail.com>
libata: implement ATA_HORKAGE_NO_NCQ_TRIM and apply it to Micro M500 SSDs

Robin H. Johnson <robbat2@gentoo.org>
libata: disable a disk via libata.force params

Michele Baldessari <michele@acksyn.org>
libata: add ATA_HORKAGE_BROKEN_FPDMA_AA quirk for Seagate Momentus SpinPoint M8

Marek Vasut <marex@denx.de>
ahci: imx: Explicitly clear IMX6Q_GPR13_SATA_MPLL_CLK_EN

Ilia Mirkin <imirkin@alum.mit.edu>
drm/nouveau: only runtime suspend by default in optimus configuration

Shuah Khan <shuah.kh@samsung.com>
power_supply: Fix Oops from NULL pointer dereference from wakeup_source_activate

Josh Boyer <jwboyer@redhat.com>
cpupower: Fix segfault due to incorrect getopt_long arugments

Anton Blanchard <anton@samba.org>
powerpc: Align p_end

Michael Neuling <mikey@neuling.org>
powerpc: Fix bad stack check in exception entry

Jan Kiszka <jan.kiszka@siemens.com>
KVM: x86: Fix APIC map calculation after re-enabling

Jan Kiszka <jan.kiszka@web.de>
KVM: nVMX: Unconditionally uninit the MMU on nested vmexit

Mathy Vanhoef <vanhoefm@gmail.com>
ath9k_htc: properly set MAC address and BSSID mask

Sujith Manoharan <c_manoha@qca.qualcomm.com>
ath9k: Fix interrupt handling for the AR9002 family

Peter Korsgaard <peter@korsgaard.com>
dm9601: work around tx fifo sync issue on dm962x

Peter Korsgaard <peter@korsgaard.com>
dm9601: fix reception of full size ethernet frames on dm9620/dm9621a

Ard Biesheuvel <ard.biesheuvel@linaro.org>
auxvec.h: account for AT_HWCAP2 in AT_VECTOR_SIZE_BASE

Tejun Heo <tj@kernel.org>
cgroup: fix cgroup_create() error handling path

Nithin Sujir <nsujir@broadcom.com>
tg3: Expand 4g_overflow_test workaround to skb fragments of any size.

Li Wang <liwang@ubuntukylin.com>
ceph: Avoid data inconsistency due to d-cache aliasing in readpage()

Marek Olšák <marek.olsak@amd.com>
drm/radeon: set correct pipe config for Hawaii in DCE

Alex Deucher <alexander.deucher@amd.com>
drm/radeon: 0x9649 is SUMO2 not SUMO

Marek Olšák <marek.olsak@amd.com>
drm/radeon: expose render backend mask to the userspace

Marek Olšák <marek.olsak@amd.com>
drm/radeon: fix render backend setup for SI and CIK

Christian König <christian.koenig@amd.com>
drm/radeon: fix UVD 256MB check

Chris Wilson <chris@chris-wilson.co.uk>
drm/i915: Use the correct GMCH_CTRL register for Sandybridge+

Paulo Zanoni <paulo.r.zanoni@intel.com>
drm/i915: change CRTC assertion on LCPLL disable

Chris Wilson <chris@chris-wilson.co.uk>
drm/i915: Fix erroneous dereference of batch_obj inside reset_status

Alex Deucher <alexander.deucher@amd.com>
drm/radeon: fix asic gfx values for scrapper asics

Alex Deucher <alexander.deucher@amd.com>
drm/radeon: check for 0 count in speaker allocation and SAD code

Alex Deucher <alexander.deucher@amd.com>
drm/radeon/dpm: disable ss on Cayman

Daniel Vetter <daniel.vetter@ffwll.ch>
drm/i915: don't update the dri1 breadcrumb with modesetting

Daniel Vetter <daniel.vetter@ffwll.ch>
drm/i915: Fix use-after-free in do_switch

Chris Wilson <chris@chris-wilson.co.uk>
drm/i915: Hold mutex across i915_gem_release

Ville Syrjälä <ville.syrjala@linux.intel.com>
drm/i915: Take modeset locks around intel_modeset_setup_hw_state()

Alex Deucher <alexander.deucher@amd.com>
drm/radeon: add missing display tiling setup for oland

Christian König <christian.koenig@amd.com>
drm/radeon: fix typo in cik_copy_dma

Alex Deucher <alexander.deucher@amd.com>
drm/radeon: Fix sideport problems on certain RS690 boards

Thomas Hellstrom <thellstrom@vmware.com>
drm/ttm: Fix accesses through vmas with only partial coverage

Rafał Miłecki <zajec5@gmail.com>
drm/edid: add quirk for BPC in Samsung NP700G7A-S01PL notebook

Dan Williams <dan.j.williams@intel.com>
net_dma: mark broken

Stefan Richter <stefanr@s5r6.in-berlin.de>
firewire: sbp2: bring back WRITE SAME support

Kirill Tkhai <tkhai@yandex.ru>
sched/rt: Fix rq's cpupri leak while enqueue/dequeue child RT entities

Mel Gorman <mgorman@suse.de>
sched: numa: skip inaccessible VMAs

Lukas Czerner <lczerner@redhat.com>
ext4: fix FITRIM in no journal mode

Theodore Ts'o <tytso@mit.edu>
ext4: add explicit casts when masking cluster sizes

Jan Kara <jack@suse.cz>
ext4: fix deadlock when writing in ENOSPC conditions

Jan Kara <jack@suse.cz>
ext4: Do not reserve clusters when fs doesn't support extents

Al Viro <viro@ZenIV.linux.org.uk>
ext4: fix del_timer() misuse for ->s_err_report

Eryu Guan <guaneryu@gmail.com>
ext4: check for overlapping extents in ext4_valid_extent_entries()

Junho Ryu <jayr@google.com>
ext4: fix use-after-free in ext4_mb_new_blocks

Theodore Ts'o <tytso@mit.edu>
ext4: call ext4_error_inode() if jbd2_journal_dirty_metadata() fails

Paul Drews <paul.drews@intel.com>
ACPI: Add BayTrail SoC GPIO and LPSS ACPI IDs

Len Brown <len.brown@intel.com>
x86 idle: Repair large-server 50-watt idle-power regression

Tony Lindgren <tony@atomide.com>
ARM: OMAP2+: Fix LCD panel backlight regression for LDP legacy booting

Suman Anna <s-anna@ti.com>
ARM: OMAP2+: hwmod_data: fix missing OMAP_INTC_START in irq data

Rajendra Nayak <rnayak@ti.com>
ARM: DRA7: hwmod: Fix boot crash with DEBUG_LL

Ben Dooks <ben.dooks@codethink.co.uk>
ARM: shmobile: r8a7790: fix shdi resource sizes

Will Deacon <will.deacon@arm.com>
arm64: ptrace: avoid using HW_BREAKPOINT_EMPTY for disabled events

Ming Lei <tom.leiming@gmail.com>
scripts/link-vmlinux.sh: only filter kernel symbols for arm

Miao Xie <miaox@cn.fujitsu.com>
ftrace: Initialize the ftrace profiler for each possible cpu

Jie Liu <jeff.liu@oracle.com>
xfs: fix infinite loop by detaching the group/project hints from user dquot

Nicholas Bellinger <nab@linux-iscsi.org>
target/file: Update hw_max_sectors based on current block_size

Nicholas Bellinger <nab@linux-iscsi.org>
iser-target: Move INIT_WORK setup into isert_create_device_ib_res

Nicholas Bellinger <nab@linux-iscsi.org>
iscsi-target: Fix incorrect np->np_thread NULL assignment

Nicholas Bellinger <nab@linux-iscsi.org>
iscsi-target: Fix-up all zero data-length CDBs with R/W_BIT set

Wei Yongjun <yongjun_wei@trendmicro.com.cn>
iser-target: fix error return code in isert_create_device_ib_res()

Shivaram Upadhyayula <shivaram.u@quadstor.com>
qla2xxx: Fix schedule_delayed_work() for target timeout calculations

Benjamin LaHaise <bcrl@kvack.org>
aio: fix kioctx leak introduced by "aio: Fix a trinity splat"

Oleg Nesterov <oleg@redhat.com>
selinux: selinux_setprocattr()->ptrace_parent() needs rcu_read_lock()

Chad Hanson <chanson@trustedcs.com>
selinux: fix broken peer recv check

Sebastian Andrzej Siewior <bigeasy@linutronix.de>
usb: musb: only cancel work if it is initialized

Sebastian Andrzej Siewior <bigeasy@linutronix.de>
usb: musb: core: Call dma_controller_destroy() in error path only once.

Peter Chen <peter.chen@freescale.com>
usb: chipidea: fix nobody cared IRQ when booting with host role

Fabio Estevam <fabio.estevam@freescale.com>
usb: chipidea: host: Only disable the vbus regulator if it is not NULL

Bjørn Mork <bjorn@mork.no>
usb: cdc-wdm: manage_power should always set needs_remote_wakeup

Marc Kleine-Budde <mkl@pengutronix.de>
can: peak_usb: fix mem leak in pcan_usb_pro_init()

Takashi Iwai <tiwai@suse.de>
xhci: Limit the spurious wakeup fix only to HP machines

Dmitry Kunilov <dmitry.kunilov@gmail.com>
usb: serial: zte_ev: move support for ZTE AC2726 from zte_ev back to option

Mika Westerberg <mika.westerberg@linux.intel.com>
serial: 8250_dw: add new ACPI IDs

Jonathan Cameron <jic23@kernel.org>
iio:adc:ad7887 Fix channel reported endianness from cpu to big endian

Jonathan Cameron <jic23@kernel.org>
iio:imu:adis16400 fix pressure channel scan type

Hui Wang <hui.wang@canonical.com>
ALSA: hda - Add Dell headset detection quirk for three laptop models

David Henningsson <david.henningsson@canonical.com>
ALSA: hda - Add enable_msi=0 workaround for four HP machines

JongHo Kim <furmuwon@gmail.com>
ALSA: Add SNDRV_PCM_STATE_PAUSED case in wait_for_avail function

Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
ASoC: wm5110: Correct HPOUT3 DAPM route typo

Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
ASoC: wm_adsp: Add small delay while polling DSP RAM start

Bo Shen <voice.shen@atmel.com>
ASoC: wm8904: fix DSP mode B configuration

Stephen Warren <swarren@nvidia.com>
ASoC: tegra: fix uninitialized variables in set_fmt

Vivek Goyal <vgoyal@redhat.com>
kexec: migrate to reboot cpu

H Hartley Sweeten <hsweeten@visionengravers.com>
staging: comedi: drivers: fix return value of comedi_load_firmware()

Ian Abbott <abbotti@mev.co.uk>
staging: comedi: 8255_pci: fix for newer PCI-DIO48H

Geert Uytterhoeven <geert@linux-m68k.org>
TTY: pmac_zilog, check existence of ports in pmz_console_init()

Peter Hurley <peter@hurleysoftware.com>
n_tty: Fix apparent order of echoed output

Peter Hurley <peter@hurleysoftware.com>
tty: Fix hang at ldsem_down_read()

pingfan liu <qemulist@gmail.com>
powerpc: kvm: fix rare but potential deadlock scene

Li Wang <liwang@ubuntukylin.com>
ceph: allocate non-zero page to fscache in readpage()

Yan, Zheng <zheng.z.yan@intel.com>
ceph: wake up 'safe' waiters when unregistering request

Yan, Zheng <zheng.z.yan@intel.com>
ceph: cleanup aborted requests when re-sending requests.

Milosz Tanski <milosz@adfin.com>
ceph: hung on ceph fscache invalidate in some cases

Johan Hovold <jhovold@gmail.com>
USB: serial: fix race in generic write


-------------

Diffstat:

Documentation/kernel-parameters.txt | 2 +
Makefile | 4 +-
arch/arm/boot/dts/r8a7790.dtsi | 4 +-
arch/arm/boot/dts/sun7i-a20.dtsi | 32 +++---
arch/arm/mach-omap2/board-ldp.c | 7 +-
arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 4 +-
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 6 +-
arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 2 +-
arch/arm64/kernel/ptrace.c | 38 ++++---
arch/powerpc/include/asm/exception-64s.h | 2 +-
arch/powerpc/kernel/head_64.S | 1 +
arch/powerpc/kvm/book3s_64_mmu_hv.c | 6 +-
arch/powerpc/kvm/book3s_hv_rm_mmu.c | 4 +
arch/sh/lib/Makefile | 2 +-
arch/sparc/include/asm/pgtable_64.h | 4 +-
arch/x86/include/asm/pgtable.h | 11 +-
arch/x86/kernel/cpu/intel.c | 3 +-
arch/x86/kvm/lapic.c | 8 +-
arch/x86/kvm/vmx.c | 3 +-
drivers/acpi/acpi_lpss.c | 1 +
drivers/acpi/bus.c | 10 ++
drivers/ata/ahci_imx.c | 3 +-
drivers/ata/libata-core.c | 19 +++-
drivers/ata/libata-scsi.c | 21 ++++
drivers/clocksource/dw_apb_timer_of.c | 7 +-
drivers/cpufreq/intel_pstate.c | 5 +
drivers/dma/Kconfig | 1 +
drivers/firewire/sbp2.c | 1 -
drivers/gpio/gpio-msm-v2.c | 4 +-
drivers/gpio/gpio-twl4030.c | 15 ++-
drivers/gpu/drm/drm_edid.c | 8 ++
drivers/gpu/drm/i915/i915_dma.c | 10 ++
drivers/gpu/drm/i915/i915_gem.c | 34 +++++--
drivers/gpu/drm/i915/i915_gem_context.c | 16 ++-
drivers/gpu/drm/i915/intel_display.c | 9 +-
drivers/gpu/drm/nouveau/nouveau_acpi.c | 19 +++-
drivers/gpu/drm/nouveau/nouveau_drm.c | 6 ++
drivers/gpu/drm/radeon/atombios_crtc.c | 23 ++---
drivers/gpu/drm/radeon/cik.c | 12 ++-
drivers/gpu/drm/radeon/cik_sdma.c | 2 +-
drivers/gpu/drm/radeon/dce6_afmt.c | 4 +-
drivers/gpu/drm/radeon/evergreen_hdmi.c | 4 +-
drivers/gpu/drm/radeon/ni.c | 20 +++-
drivers/gpu/drm/radeon/radeon.h | 4 +-
drivers/gpu/drm/radeon/radeon_atpx_handler.c | 16 ++-
drivers/gpu/drm/radeon/radeon_kms.c | 9 ++
drivers/gpu/drm/radeon/radeon_uvd.c | 2 +-
drivers/gpu/drm/radeon/rs690.c | 10 ++
drivers/gpu/drm/radeon/rv770_dpm.c | 6 ++
drivers/gpu/drm/radeon/si.c | 12 ++-
drivers/gpu/drm/ttm/ttm_bo_vm.c | 6 +-
drivers/idle/intel_idle.c | 3 +
drivers/iio/adc/ad7887.c | 16 ++-
drivers/iio/imu/adis16400_core.c | 7 +-
drivers/infiniband/ulp/isert/ib_isert.c | 22 ++--
drivers/input/input.c | 4 +
drivers/net/can/usb/peak_usb/pcan_usb_pro.c | 3 +
drivers/net/ethernet/broadcom/tg3.c | 2 +-
drivers/net/usb/dm9601.c | 34 +++++--
drivers/net/wireless/ath/ath9k/ar9002_mac.c | 52 ++++++++--
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 25 +++--
drivers/net/wireless/ath/ath9k/main.c | 5 +-
drivers/net/wireless/rtlwifi/pci.c | 4 +-
drivers/of/address.c | 8 --
drivers/pci/hotplug/acpiphp_glue.c | 30 +++++-
drivers/pinctrl/pinctrl-baytrail.c | 1 +
drivers/pinctrl/sh-pfc/sh_pfc.h | 2 +-
drivers/power/power_supply_core.c | 12 +--
drivers/s390/char/tty3270.c | 2 +-
drivers/scsi/qla2xxx/qla_target.c | 9 +-
drivers/staging/comedi/drivers.c | 2 +-
drivers/staging/comedi/drivers/8255_pci.c | 15 ++-
drivers/target/iscsi/iscsi_target.c | 27 +++--
drivers/target/iscsi/iscsi_target_login.c | 6 --
drivers/target/target_core_device.c | 5 +
drivers/target/target_core_file.c | 8 +-
drivers/target/target_core_file.h | 5 +-
drivers/tty/n_tty.c | 7 +-
drivers/tty/serial/8250/8250_dw.c | 2 +
drivers/tty/serial/pmac_zilog.c | 3 +
drivers/tty/tty_ldsem.c | 16 ++-
drivers/usb/chipidea/core.c | 4 +
drivers/usb/chipidea/host.c | 3 +-
drivers/usb/chipidea/udc.c | 3 -
drivers/usb/class/cdc-wdm.c | 8 +-
drivers/usb/host/xhci-pci.c | 7 +-
drivers/usb/musb/musb_core.c | 14 +--
drivers/usb/serial/generic.c | 9 +-
drivers/usb/serial/option.c | 2 +
drivers/usb/serial/zte_ev.c | 3 +-
fs/aio.c | 113 +++++++++++++--------
fs/ceph/addr.c | 10 +-
fs/ceph/cache.c | 3 +
fs/ceph/mds_client.c | 8 +-
fs/cifs/cifsproto.h | 7 +-
fs/cifs/dir.c | 11 +-
fs/cifs/inode.c | 6 +-
fs/cifs/link.c | 26 ++---
fs/ext2/super.c | 1 +
fs/ext4/ext4.h | 10 ++
fs/ext4/ext4_jbd2.c | 9 ++
fs/ext4/extents.c | 45 +++++---
fs/ext4/inode.c | 12 ---
fs/ext4/mballoc.c | 21 ++--
fs/ext4/super.c | 21 ++--
fs/gfs2/aops.c | 30 ++++++
fs/gfs2/log.c | 4 +-
fs/gfs2/meta_io.c | 5 +
fs/gfs2/ops_fstype.c | 12 ++-
fs/jbd2/transaction.c | 6 +-
fs/xfs/xfs_qm.c | 71 +++++++++----
include/acpi/acpi_bus.h | 4 +-
include/asm-generic/pgtable.h | 2 +-
include/drm/drm_pciids.h | 2 +-
include/linux/auxvec.h | 2 +-
include/linux/libata.h | 1 +
include/linux/migrate.h | 3 +-
include/linux/mm_types.h | 49 +++++++++
include/linux/reboot.h | 1 +
include/target/target_core_base.h | 1 +
include/uapi/drm/radeon_drm.h | 2 +
kernel/cgroup.c | 31 ++++--
kernel/fork.c | 1 +
kernel/freezer.c | 6 ++
kernel/kexec.c | 1 +
kernel/reboot.c | 2 +-
kernel/sched/fair.c | 7 ++
kernel/sched/rt.c | 14 +++
kernel/trace/ftrace.c | 2 +-
mm/compaction.c | 4 +
mm/fremap.c | 8 +-
mm/huge_memory.c | 14 +++
mm/memcontrol.c | 2 +-
mm/memory-failure.c | 24 ++++-
mm/mempolicy.c | 2 +-
mm/migrate.c | 17 ++--
mm/mlock.c | 44 +++++---
mm/mprotect.c | 2 +
mm/page_alloc.c | 19 ++--
mm/pgtable-generic.c | 8 +-
mm/rmap.c | 4 +
net/wireless/radiotap.c | 4 +
scripts/link-vmlinux.sh | 4 +-
security/selinux/hooks.c | 53 ++++++++--
security/selinux/include/xfrm.h | 9 +-
security/selinux/xfrm.c | 53 ++++++++--
sound/core/pcm_lib.c | 2 +
sound/pci/hda/hda_intel.c | 4 +
sound/pci/hda/patch_realtek.c | 3 +
sound/soc/codecs/wm5110.c | 2 +-
sound/soc/codecs/wm8904.c | 2 +-
sound/soc/codecs/wm_adsp.c | 10 +-
sound/soc/tegra/tegra20_i2s.c | 6 +-
sound/soc/tegra/tegra20_spdif.c | 10 +-
sound/soc/tegra/tegra30_i2s.c | 6 +-
tools/power/cpupower/utils/cpupower-set.c | 6 +-
156 files changed, 1234 insertions(+), 502 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/





==============================================================================
TOPIC: lib/vsprintf: add %pT[C012] format specifier
http://groups.google.com/group/linux.kernel/t/40f2db64b3df6ee9?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Jan 6 2014 4:20 pm
From: Pavel Machek


Hi!

> > > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c
> > > []
> > > > @@ -1232,7 +1248,7 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
> > > > {
> > > > int default_width = 2 * sizeof(void *) + (spec.flags & SPECIAL ? 2 : 0);
> > > >
> > > > - if (!ptr && *fmt != 'K') {
> > > > + if (!ptr && *fmt != 'K' && *fmt != 'T') {
> > >
> > > I think this new 'T' comparison isn't necessary.
> >
> > This is needed for allowing comm_name() to accept NULL instead of current.
>
> Yeah, that's what I think isn't necessary.
>
> current is current_thread_info()->task.
>
> I think it's pretty lightweight in all arches and
> it'd be simpler/more intelligible to not use NULL.
>
> Andrew? Any opinion? Anyone else?

Andrew was worried about all the "current" duplication, IIRC. It is in
the mail thread somewhere. And one condition in printk is price worth paying.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/





==============================================================================
TOPIC: Power consumption on a 2013 MBP
http://groups.google.com/group/linux.kernel/t/a0dcfb6438b8908b?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Jan 6 2014 4:30 pm
From: Pavel Machek


On Tue 2014-01-07 04:35:04, Ramkumar Ramachandra wrote:
> Pavel Machek wrote:
> > "Should not". Exactly. Your machine should not consume 20W. It does,
> > so try rmmoding USB modules, and probably AHCI...
>
> My system freezes if I remove modules like usbhci, ahci, ehci_hcd.

Umm. Try harder. Like booting init=/bin/bash and not inserting them in
the first place.

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/





==============================================================================
TOPIC: x86: delete non-required instances of include <linux/init.h>
http://groups.google.com/group/linux.kernel/t/6bede5b6eb9ac919?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Jan 6 2014 4:30 pm
From: Paul Gortmaker


None of these files are actually using any __init type directives
and hence don't need to include <linux/init.h>. Most are just a
left over from __devinit and __cpuinit removal, or simply due to
code getting copied from one driver to the next.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---

[build tested allyes/modconfig on x86/build from today's tip tree]

arch/x86/include/asm/mce.h | 1 -
arch/x86/include/asm/mpspec.h | 1 -
arch/x86/include/asm/processor.h | 1 -
arch/x86/include/asm/ptrace.h | 1 -
arch/x86/include/asm/smp.h | 1 -
arch/x86/include/asm/timer.h | 1 -
arch/x86/kernel/apic/apic_flat_64.c | 1 -
arch/x86/kernel/apic/apic_noop.c | 1 -
arch/x86/kernel/apic/ipi.c | 1 -
arch/x86/kernel/apic/summit_32.c | 1 -
arch/x86/kernel/apic/x2apic_cluster.c | 1 -
arch/x86/kernel/apic/x2apic_phys.c | 1 -
arch/x86/kernel/cpu/amd.c | 1 -
arch/x86/kernel/cpu/centaur.c | 1 -
arch/x86/kernel/cpu/cyrix.c | 1 -
arch/x86/kernel/cpu/intel.c | 1 -
arch/x86/kernel/cpu/mcheck/mce_intel.c | 1 -
arch/x86/kernel/cpu/mcheck/p5.c | 1 -
arch/x86/kernel/cpu/mcheck/winchip.c | 1 -
arch/x86/kernel/cpu/transmeta.c | 1 -
arch/x86/kernel/cpu/umc.c | 1 -
arch/x86/kernel/crash.c | 1 -
arch/x86/kernel/doublefault.c | 1 -
arch/x86/kernel/head_32.S | 1 -
arch/x86/kernel/hw_breakpoint.c | 1 -
arch/x86/kernel/kgdb.c | 1 -
arch/x86/kernel/machine_kexec_32.c | 1 -
arch/x86/kernel/pci-nommu.c | 1 -
arch/x86/kernel/process_32.c | 1 -
arch/x86/kernel/tsc_sync.c | 1 -
arch/x86/lib/delay.c | 1 -
arch/x86/mm/kmmio.c | 1 -
arch/x86/mm/pageattr-test.c | 1 -
arch/x86/pci/fixup.c | 1 -
arch/x86/platform/intel-mid/early_printk_intel_mid.c | 1 -
arch/x86/platform/iris/iris.c | 1 -
arch/x86/realmode/rm/reboot.S | 1 -
arch/x86/realmode/rm/trampoline_32.S | 1 -
arch/x86/realmode/rm/trampoline_64.S | 1 -
arch/x86/um/vdso/vdso.S | 1 -
arch/x86/vdso/vdso.S | 1 -
arch/x86/vdso/vdsox32.S | 1 -
42 files changed, 42 deletions(-)

diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
index c696a8687567..6e4ce2df87cf 100644
--- a/arch/x86/include/asm/mce.h
+++ b/arch/x86/include/asm/mce.h
@@ -118,7 +118,6 @@ extern void mce_register_decode_chain(struct notifier_block *nb);
extern void mce_unregister_decode_chain(struct notifier_block *nb);

#include <linux/percpu.h>
-#include <linux/init.h>
#include <linux/atomic.h>

extern int mce_p5_enabled;
diff --git a/arch/x86/include/asm/mpspec.h b/arch/x86/include/asm/mpspec.h
index 3142a94c7b4b..3e6b4920ef5d 100644
--- a/arch/x86/include/asm/mpspec.h
+++ b/arch/x86/include/asm/mpspec.h
@@ -1,7 +1,6 @@
#ifndef _ASM_X86_MPSPEC_H
#define _ASM_X86_MPSPEC_H

-#include <linux/init.h>

#include <asm/mpspec_def.h>
#include <asm/x86_init.h>
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 7b034a4057f9..8ade61721ffb 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -27,7 +27,6 @@ struct mm_struct;
#include <linux/cache.h>
#include <linux/threads.h>
#include <linux/math64.h>
-#include <linux/init.h>
#include <linux/err.h>
#include <linux/irqflags.h>

diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h
index 942a08623a1a..14fd6fd75a19 100644
--- a/arch/x86/include/asm/ptrace.h
+++ b/arch/x86/include/asm/ptrace.h
@@ -60,7 +60,6 @@ struct pt_regs {

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate