[ 44/46] intel_idle: Dont register CPU notifier if we are not running.

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Konrad Rzeszutek Wilk commit 6f8c2e7933679f54b6478945dc72e59ef9a3d5e0 upstream. The 'intel_idle_probe' probes the CPU and sets the CPU notifier. But if later on during the module initialization

Re: [PATCHv2] tools lib traceevent: Handle dynamic array's element size properly

2013-01-24 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 24, 2013 at 04:13:13PM -0500, Steven Rostedt escreveu: > On Thu, 2013-01-24 at 21:46 +0100, Jiri Olsa wrote: > > > > +static unsigned int type_size(char *name) > > Sorry to nitpick, but please make that const char *name. Agreed, no need to resubmit, I'll fix that up. > The rest loo

[ 43/46] i2c: mxs: Fix type of error code

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Fabio Estevam commit 0f40cbc4f85e13b1a42ae2f41231645a14965872 upstream. cmd_err is used to handle error code, so it should not be unsigned. This fixes the following warning when building with

[ 42/46] ACPI: Check MSR valid bit before using P-state frequencies

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Stefan Bader commit 9855d8ce41a7801548a05d844db2f46c3e810166 upstream. To fix incorrect P-state frequencies which can happen on some AMD systems f594065faf4f9067c2283a34619fc0714e79a98d "ACP

[ 39/46] cpufreq: Add module aliases for acpi-cpufreq

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Matthew Garrett commit efa17194581bdfca0986dabc178908bd7c21ba00 upstream. The acpi core will call request_module("acpi-cpufreq") on subsystem init, but this will fail if the module isn't availa

[ 41/46] ACPI / processor: Get power info before updating the C-states

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Schlichter commit f427e5f1cf75bba84cccdac1d8a90552d9ae1065 upstream. acpi_processor_get_power_info() has to be called before acpi_processor_setup_cpuidle_states() to have the latest info

[ 31/46] SCSI: sd: Reshuffle init_sd to avoid crash

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: "Joel D. Diaz" commit afd5e34b2bb34881d3a789e62486814a49b47faa upstream. scsi_register_driver will register a prep_fn() function, which in turn migh need to use the sd_cdp_pool for DIF. Which h

[ 37/46] module: fix missing module_mutex unlock

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit ee61abb3223e28a1a14a8429c0319755d20d3e40 upstream. Commit 1fb9341ac348 ("module: put modules in list much earlier") moved some of the module initialization code around, an

[ 36/46] module: put modules in list much earlier.

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Rusty Russell commit 1fb9341ac34825aa40354e74d9a2c69df7d2c304 upstream. Prarit's excellent bug report: > In recent Fedora releases (F17 & F18) some users have reported seeing > messages similar

[ 34/46] drm/i915: Implement WaDisableHiZPlanesWhenMSAAEnabled

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Vetter commit 4283908ef7f11a72c3b80dd4cf026f1a86429f82 upstream. Quoting from Bspec, 3D_CHICKEN1, bit 10 This bit needs to be set always to "1", Project: DevSNB " Reviewed-by: Rodrigo

[ 33/46] drivers/firmware/dmi_scan.c: fetch dmi version from SMBIOS if it exists

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Zhenzhong Duan commit 9f9c9cbb60576a1518d0bf93fb8e499cffccf377 upstream. The right dmi version is in SMBIOS if it's zero in DMI region This issue was originally found from an oracle bug. One c

[ 26/46] media: gspca_kinect: add Kinect for Windows USB id

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Jacob Schloss commit 98fd485795db064d0885150e2c0c7f296d8fe06e upstream. Add the USB ID for the Kinect for Windows RGB camera so it can be used with the gspca_kinect driver. Signed-off-by: Jaco

[ 35/46] module: add new state MODULE_STATE_UNFORMED.

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Rusty Russell commit 0d21b0e3477395e7ff2acc269f15df6e6a8d356d upstream. You should never look at such a module, so it's excised from all paths which traverse the modules list. We add the state

Re: [PATCH v2 2/2] usb: dwc3-exynos: Fix compatible strings for the device

2013-01-24 Thread Greg KH
On Thu, Jan 24, 2013 at 07:15:30PM +0530, Vivek Gautam wrote: > Using specific chip in compatible strings. Newer SOCs can claim > device by using older string in the compatible list. > > Signed-off-by: Vivek Gautam > Acked-by: Grant Likely > Reviewed-by: Doug Anderson > --- > drivers/usb/dwc3/

[ 07/46] ftrace: Be first to run code modification on modules

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt commit c1bf08ac26e92122faab9f6c32ea8aba94612dae upstream. If some other kernel subsystem has a module notifier, and adds a kprobe to a ftrace mcount point (now that kprobes work

[ 25/46] Revert "drivers/misc/ti-st: remove gpio handling"

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Luciano Coelho commit a7e2ca17039edb5f782be519eaf9d8ea500ba7cc upstream. This reverts commit eccf2979b2c034b516e01b8a104c3739f7ef07d1. The reason is that it broke TI WiLink shared transport on

[ 17/46] ALSA: hda - Add Conexant CX20755/20756/20757 codec IDs

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 42c364ace52ae6b4699105b39f2559c256b6cd4c upstream. These are just compatible with other CX2075x codecs. Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman ---

[ 23/46] PCI: shpchp: Handle push button event asynchronously

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit d347e75847c1fb299c97736638f45e6ea39702d4 upstream. Use non-ordered workqueue for attention button events. Attention button events on each slot can be handled asynchronousl

Re: [PATCHv2] tools lib traceevent: Handle dynamic array's element size properly

2013-01-24 Thread Steven Rostedt
On Thu, 2013-01-24 at 18:28 -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jan 24, 2013 at 04:13:13PM -0500, Steven Rostedt escreveu: > > On Thu, 2013-01-24 at 21:46 +0100, Jiri Olsa wrote: > > > > > > +static unsigned int type_size(char *name) > > > > Sorry to nitpick, but please make that co

[ 21/46] PCI: Allow pcie_aspm=force even when FADT indicates it is unsupported

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit 9e16721498b0c3d3ebfa0b503c63d35c0a4c0642 upstream. Right now using pcie_aspm=force will not enable ASPM if the FADT indicates ASPM is unsupported. However, the semantics

[ 20/46] PCI/AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put()

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Betty Dall commit a82b6af37d20bfe6e99a4d890f1cf1d89059929f upstream. The function aer_recover_queue() calls pci_get_domain_bus_and_slot(), which requires that the caller decrement the reference

[ 19/46] arm64: elf: fix core dumping to match what glibc expects

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit 9cf2b72b25f3f6a5a1a46a4f36037e66de52465c upstream. The kernel's internal definition of ELF_NGREG uses struct pt_regs, which means that we disagree with userspace on the size

[ 14/46] ptrace: ensure arch_ptrace/ptrace_request can never race with SIGKILL

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Oleg Nesterov commit 9899d11f654474d2d54ea52ceaa2a1f4db3abd68 upstream. putreg() assumes that the tracee is not running and pt_regs_access() can safely play with its stack. However a killed tr

[ 13/46] ptrace: introduce signal_wake_up_state() and ptrace_signal_wake_up()

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Oleg Nesterov commit 910ffdb18a6408e14febbb6e4b6840fd2c928c82 upstream. Cleanup and preparation for the next change. signal_wake_up(resume => true) is overused. None of ptrace/jctl callers act

[ 12/46] perf x86: revert 20b279 - require exclude_guest to use PEBS - kernel side

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern commit a706d965dcfdff73bf2bad1c300f8119900714c7 upstream. This patch is brought to you by the letter 'H'. Commit 20b279 breaks compatiblity with older perf binaries when run with p

[ 11/46] vfio-pci: Fix buffer overfill

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Alex Williamson commit ec1287e511320a2c9a02640b7ac02d5d79f56f08 upstream. A read from a range hidden from the user (ex. MSI-X vector table) attempts to fill the user buffer up to the end of the

[ 06/46] libata: replace sata_settings with devslp_timing

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Shane Huang commit 803739d25c2343da6d2f95eebdcbc08bf67097d4 upstream. NCQ capability was used to check availability of SATA Settings page from Identify Device Data Log, which contains DevSlp ti

[ 05/46] libata: ahci: Add support for Enmotus Bobcat device.

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Hugh Daschbach commit 7f9c9f8e24590e7dcd26ca408458c43df5b83e61 upstream. Silicon does not support standard AHCI BAR assignment. Add vendor/device exception to force BAR 2. Signed-off-by: Hugh

Re: next-20130117 - kernel BUG with aio

2013-01-24 Thread Kent Overstreet
On Thu, Jan 24, 2013 at 01:27:59PM -0800, Andrew Morton wrote: > On Thu, 24 Jan 2013 13:18:50 -0800 > Kent Overstreet wrote: > > > So, Andrew - that "smoosh struct kiocb" patch should just be dropped, > > even if I fixed that issue clearly the idea is a lot less safe than I > > thought. I've got

[PATCH 1/3] aio: Fix a null pointer deref in batch_complete_aio

2013-01-24 Thread Kent Overstreet
The batch completion code was trying to be a bit too clever, and skip checking ctx where it couldn't be NULL - but that broke if a kiocb had been cancelled. Move the check to kioctx_ring_unlock(). Reported-by: Valdis Kletnieks Signed-off-by: Kent Overstreet --- fs/aio.c | 6 -- 1 file chang

[PATCH 2/3] aio-kill-ki_retry-fix-fix

2013-01-24 Thread Kent Overstreet
The "aio: kill ki-retry" patch was assuming that we didn't touch struct kiocb after passing it off to something that would call aio_complete() - which was wrong. So, revert the refcounting changes. Signed-off-by: Kent Overstreet --- fs/aio.c | 6 -- 1 file changed, 4 insertions(+), 2 deletio

[PATCH 3/3] aio-use-cancellation-list-lazily-fix

2013-01-24 Thread Kent Overstreet
The cancellation changes were fubar - we can't cancel a kiocb if it doesn't actually have a cancellation callback. The use of xchg() in aio_complete() was right - there we're marking the kiocb as completed - but we need to use cmpxchg() in kiocb_cancel() - a lock isn't sufficient since we're synch

Re: [PATCH v2 6/6] cgroup: remove bogus comments in cgroup_diput()

2013-01-24 Thread Tejun Heo
Hello, Li. On Thu, Jan 24, 2013 at 02:32:02PM +0800, Li Zefan wrote: > Since commit 48ddbe194623ae089cc0576e60363f2d2e85662a > ("cgroup: make css->refcnt clearing on cgroup removal optional"), > each css holds a ref on cgroup's dentry, so cgroup_diput() won't be > called until all css' refs go dow

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-24 Thread Yinghai Lu
On Thu, Jan 24, 2013 at 11:22 AM, Shuah Khan wrote: >> >> I still have the AMD system I tested earlier versions of this work. I >> started compiles with these patches on 3.7 and will let you know the >> status. > > Tested 3.8-rc4 with the patches on AMD system with IOMMU on. Looks > good. I can't

Re: [GIT PULL] Btrfs fixes

2013-01-24 Thread Chris Mason
On Tue, Jan 22, 2013 at 05:48:33PM -0700, Chris Mason wrote: > Hi Linus, > > My for-linus branch has our batch of btrfs fixes: > > git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus > > We've been hammering away at a crc corruption as well, which I was > really hoping

Re: [PATCH] USB: XHCI: fix memory leak of URB-private data

2013-01-24 Thread Martin Mokrejs
Hi Sarah and Alan, I just saw 3.7.5 patches announced by Greg but I don't see this path in there. And, don't know but maybe this applies to older stable kernels as well? Where will this patch posted originally to linux-usb land? Ah, is that because the email was actually NOT sent to "stable@"? ;

Re: [PATCH] USB: XHCI: fix memory leak of URB-private data

2013-01-24 Thread Greg KH
On Thu, Jan 24, 2013 at 10:53:25PM +0100, Martin Mokrejs wrote: > Hi Sarah and Alan, > I just saw 3.7.5 patches announced by Greg but I don't see this path in > there. > And, don't know but maybe this applies to older stable kernels as well? > Where will this patch posted originally to linux-usb

Re: [PATCH v2 1/4] device_cgroup: prepare exception list handling functions for two lists

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 02:49:58PM -0500, a...@redhat.com wrote: > In the following patches, device_cgroup structure will have two sets of > behavior and exceptions list (actual one, another with the local settings) > so rework the functions to use exception list, not a device_cgroup. > > Cc: Teju

Re: [PATCH] USB: misc: usb3503: add dt support

2013-01-24 Thread Greg Kroah-Hartman
On Thu, Jan 24, 2013 at 02:47:10AM +0900, Dongjin Kim wrote: > Added device tree support for usb3503 driver and add new document with device > tree binding information. > > Signed-off-by: Dongjin Kim > --- > Documentation/devicetree/bindings/usb/usb3503.txt | 20 + > drivers/usb/m

[PATCH 0/2] kvm: IOMMU read-only mapping support

2013-01-24 Thread Alex Williamson
A couple patches to make KVM IOMMU support honor read-only mappings. This causes an un-map, re-map when the read-only flag changes and makes use of it when setting IOMMU attributes. Thanks, Alex --- Alex Williamson (2): kvm: Force IOMMU remapping on memory slot read-only flag changes

[PATCH 1/2] kvm: Force IOMMU remapping on memory slot read-only flag changes

2013-01-24 Thread Alex Williamson
Memory slot flags can be altered without changing other parameters of the slot. The read-only attribute is the only one the IOMMU cares about, so generate an un-map, re-map when this occurs. This also avoid unnecessarily re-mapping the slot when no IOMMU visible changes are made. Signed-off-by:

[PATCH 2/2] kvm: Obey read-only mappings in iommu

2013-01-24 Thread Alex Williamson
We've been ignoring read-only mappings and programming everything into the iommu as read-write. Fix this to only include the write access flag when read-only is not set. Signed-off-by: Alex Williamson --- virt/kvm/iommu.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

Re: [PATCH v2] usb: host: tegra: make use of PHY pointer of HCD

2013-01-24 Thread Greg KH
On Thu, Jan 24, 2013 at 08:57:01AM -0800, Stephen Warren wrote: > On 01/24/2013 06:05 AM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Jan 24, 2013 at 03:57:03PM +0530, Venu Byravarasu wrote: > >> As pointer to PHY structure can be stored in struct usb_hcd > >> making use of it, to call Tegra PHY

Re: [PATCH v2 2/4] device_cgroup: keep track of local group settings

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 02:49:59PM -0500, a...@redhat.com wrote: > In preparation for better hierarchy support, it's needed to retain the local > settings in order to try to reapply them after a propagated change if they're > still valid. > > Cc: Tejun Heo > Cc: Serge Hallyn > Signed-off-by: Ari

Re: [PATCH 1/1]linux-usb:Define a new macro for USB storage match rules

2013-01-24 Thread Greg KH
On Wed, Jan 23, 2013 at 02:04:52PM +0800, fangxiaozhi 00110321 wrote: > From: fangxiaozhi > > 1. Define a new macro for USB storage match rules: > matching with Vendor ID and interface descriptors. > > Signed-off-by: fangxiaozhi > ---

Re: [PATCH RESEND V5 0/6] perf, amd: Enable AMD family 15h northbridge counters

2013-01-24 Thread Jacob Shin
On Thu, Jan 24, 2013 at 02:31:59PM +0100, Stephane Eranian wrote: > On Thu, Jan 10, 2013 at 8:50 PM, Jacob Shin wrote: > > The following patchset enables 4 additional performance counters in > > AMD family 15h processors that count northbridge events -- such as > > number of DRAM accesses. > > > I

Re: [PATCH] USB: XHCI: fix memory leak of URB-private data

2013-01-24 Thread Sarah Sharp
On Thu, Jan 24, 2013 at 01:57:07PM -0800, Greg KH wrote: > On Thu, Jan 24, 2013 at 10:53:25PM +0100, Martin Mokrejs wrote: > > Hi Sarah and Alan, > > I just saw 3.7.5 patches announced by Greg but I don't see this path in > > there. > > And, don't know but maybe this applies to older stable kern

Re: [PATCH v2 3/4] device_cgroup: make may_access() stronger

2013-01-24 Thread Tejun Heo
Hello, On Thu, Jan 24, 2013 at 02:50:00PM -0500, a...@redhat.com wrote: > In order to revalidate local exceptions for the hierarchy change propagation, > make may_access() stronger. It would be nice to explain what "stronger" actually means. > --- github.orig/security/device_cgroup.c 2013-0

Re: next-20130117 - kernel BUG with aio

2013-01-24 Thread Kent Overstreet
On Thu, Jan 24, 2013 at 01:27:59PM -0800, Andrew Morton wrote: > Please also take a look at Jan's recent > http://www.spinics.net/lists/linux-fsdevel/msg61738.html and have a > think about how this plays with your patchset. I can't think of any possible interactions - none of my aio stuff messes w

Re: [PATCH] USB: XHCI: fix memory leak of URB-private data

2013-01-24 Thread Martin Mokrejs
Greg KH wrote: > On Thu, Jan 24, 2013 at 10:53:25PM +0100, Martin Mokrejs wrote: >> Hi Sarah and Alan, >> I just saw 3.7.5 patches announced by Greg but I don't see this path in >> there. >> And, don't know but maybe this applies to older stable kernels as well? >> Where will this patch posted o

Re: [PATCH] mod/file2alias: make modalias generation safe for cross compiling

2013-01-24 Thread Michal Marek
Dne 20.1.2013 17:58, Andreas Schwab napsal(a): > Use the target compiler to compute the offsets for the fields of the > device_id structures, so that it won't be broken by different alignments > between the host and target ABIs. > > This also fixes missing endian corrections for some modaliases. >

Re: next-20130117 - kernel BUG with aio

2013-01-24 Thread Zach Brown
> No, I didn't see that bug until after I'd fixed the other three, but as > far as I can tell everything's fixed with the patches I'm about to mail > out - my test VM has been running for the past two days without errors, > it's kill -9'ing a process that's got iocbs in flight to a loopback > devic

Re: [tip:x86/debug] x86/EFI: Properly init-annotate BGRT code

2013-01-24 Thread Josh Triplett
On Thu, Jan 24, 2013 at 12:34:21PM -0800, tip-bot for Jan Beulich wrote: > Commit-ID: 13f0e4d2b9e2209f13d5a4122478eb79e6136870 > Gitweb: http://git.kernel.org/tip/13f0e4d2b9e2209f13d5a4122478eb79e6136870 > Author: Jan Beulich > AuthorDate: Fri, 23 Nov 2012 16:30:07 + > Committer: Ing

Re: [PATCH v2 4/4] device_cgroup: propagate local changes down the hierarchy

2013-01-24 Thread Tejun Heo
Hello, Aristeu. On Thu, Jan 24, 2013 at 02:50:01PM -0500, a...@redhat.com wrote: > This patch makes all changes propagate down in hierarchy respecting when > possible local configurations. > > Behavior changes will clean up exceptions in all the children except when the > parent changes the behav

Re: crash in ocfs2_fast_symlink_readpage in kernel 3.5.0

2013-01-24 Thread Andrew Morton
On Sat, 19 Jan 2013 20:15:33 -0800 Bret Towe wrote: > > > > it looks like you have a patch for this problem in a queue somewhere > > (email found on ocfs2-dev: > > https://oss.oracle.com/pipermail/ocfs2-devel/2012-August/008677.html ) > > but its not in 3.6, any reason for the delay? > > I've bee

Re: [PATCH v2 2/2] usb: dwc3-exynos: Fix compatible strings for the device

2013-01-24 Thread Felipe Balbi
Hi, On Thu, Jan 24, 2013 at 01:32:13PM -0800, Greg KH wrote: > On Thu, Jan 24, 2013 at 07:15:30PM +0530, Vivek Gautam wrote: > > Using specific chip in compatible strings. Newer SOCs can claim > > device by using older string in the compatible list. > > > > Signed-off-by: Vivek Gautam > > Acked-

Re: [PATCH 01/13] sg_io: pass request_queue to blk_verify_command

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 04:00:37PM +0100, Paolo Bonzini wrote: > Adjust the blk_verify_command function to let it look at per-queue > data. This will be done in the next patch. > > Cc: FUJITA Tomonori > Cc: Doug Gilbert > Cc: "James E.J. Bottomley" > Cc: linux-s...@kernel.org > Cc: Jens Axboe

Re: [RFC] Hack to use mkdir/rmdir in debugfs

2013-01-24 Thread Valdis . Kletnieks
On Tue, 22 Jan 2013 23:44:09 -0500, Steven Rostedt said: > Again, I want to stress that this doesn't touch the debugfs code. Here's > the real change that I've been testing. It includes the code for the > "new" and "free" files but those are not created because of an early > 'return' I added. Noti

Re: [PATCH 02/13] sg_io: reorganize list of allowed commands

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 04:00:38PM +0100, Paolo Bonzini wrote: > +#define sgio_bitmap_set(cmd, mask, rw) \ > + if ((mask) != 0) __set_bit((cmd), filter->rw##_ok) > + > +#define D (1u << TYPE_DISK) /* Direct Access Block Device (SBC-3) > */ > +#define T (1u << TYPE_TAPE) /*

Re: [PATCH 33/35] x86, 64bit, mm: hibernate use generic mapping_init

2013-01-24 Thread Rafael J. Wysocki
On Thursday, January 24, 2013 12:20:14 PM Yinghai Lu wrote: > We should set mappings only for usable memory ranges under max_pfn > Otherwise causes same problem that is fixed by > > x86, mm: Only direct map addresses that are marked as E820_RAM > > Make it only map range in pfn_mapped array

Re: next-20130117 - kernel BUG with aio

2013-01-24 Thread Jeff Moyer
Zach Brown writes: >> No, I didn't see that bug until after I'd fixed the other three, but as >> far as I can tell everything's fixed with the patches I'm about to mail >> out - my test VM has been running for the past two days without errors, >> it's kill -9'ing a process that's got iocbs in fli

[PATCH next-20130124] Sound: pci: Fix unused variable warning in patch_sigmatel.c

2013-01-24 Thread Stratos Karafotis
Fix the following build warnings sound/pci/hda/patch_sigmatel.c: In function ‘stac92hd71bxx_fixup_hp’: sound/pci/hda/patch_sigmatel.c:2434:24: warning: unused variable ‘spec’ [-Wunused-variable] Signed-off-by: Stratos Karafotis --- sound/pci/hda/patch_sigmatel.c | 14 +- 1 file cha

Re: [PATCH 02/13] sg_io: reorganize list of allowed commands

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 02:42:03PM -0800, Tejun Heo wrote: > One other thing is I would much prefer if the table was made static > const first. As we only allow compile-time defined tables, there's no > point in dynamically initializing these and the above can be static > initializers. On the sim

[patch] drivers, vmci: Fix build error

2013-01-24 Thread David Rientjes
We can't rely on vmalloc.h being included by other included files because under some configs it is possible for the build to fail: drivers/misc/vmw_vmci/vmci_queue_pair.c: In function 'qp_free_queue': drivers/misc/vmw_vmci/vmci_queue_pair.c:270: error: implicit declaration of function 'vunmap' dr

[PATCH] ACPI / scan: Make it clear that acpi_bus_trim() cannot fail

2013-01-24 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since acpi_bus_trim() cannot fail, change its definition to a void function, so that its callers don't check the return value in vain and update the callers. Signed-off-by: Rafael J. Wysocki --- On top of current linux-pm.git/linux-next. Thanks, Rafael --- drivers/ac

Re: [PATCH] PM / Runtime: Add new helper function: pm_runtime_active()

2013-01-24 Thread Rafael J. Wysocki
On Wednesday, January 23, 2013 04:54:01 PM shuox@intel.com wrote: > From: ShuoX Liu > > This boolean function simply returns whether or not the runtime > status of the device is 'active'. The typical scenario is driver > calls pm_runtime_get firstly, then check pm_runtime_active in > atomic e

Re: [PATCH 06/13] sg_io: whitelist a few more commands for multimedia devices

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 04:00:42PM +0100, Paolo Bonzini wrote: > Strangely, a couple of MMC commands were never included. Add them too. What are the justifications for adding these commands to the filter? Are there users requesting these? Thanks. -- tejun -- To unsubscribe from this list: send

Re: [PATCHv2] tools lib traceevent: Handle dynamic array's element size properly

2013-01-24 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 24, 2013 at 04:33:05PM -0500, Steven Rostedt escreveu: > On Thu, 2013-01-24 at 18:28 -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Jan 24, 2013 at 04:13:13PM -0500, Steven Rostedt escreveu: > > > On Thu, 2013-01-24 at 21:46 +0100, Jiri Olsa wrote: > > > > > > > > +static unsigned

Re: [PATCH 02/13] sg_io: reorganize list of allowed commands

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 02:49:21PM -0800, Tejun Heo wrote: > On Thu, Jan 24, 2013 at 02:42:03PM -0800, Tejun Heo wrote: > > One other thing is I would much prefer if the table was made static > > const first. As we only allow compile-time defined tables, there's no > > point in dynamically initial

Re: next-20130117 - kernel BUG with aio

2013-01-24 Thread Kent Overstreet
On Thu, Jan 24, 2013 at 02:25:37PM -0800, Zach Brown wrote: > > No, I didn't see that bug until after I'd fixed the other three, but as > > far as I can tell everything's fixed with the patches I'm about to mail > > out - my test VM has been running for the past two days without errors, > > it's ki

[patch -mm] memory-hotplug: export the function try_offline_node() fix

2013-01-24 Thread David Rientjes
"memory-hotplug: export the function try_offline_node()" declares try_offline_node() for CONFIG_MEMORY_HOTPLUG, but this function is only defined for CONFIG_MEMORY_HOTREMOVE: ERROR: "try_offline_node" [drivers/acpi/processor.ko] undefined! Fix the build by definining it appropriately. Signed-o

Re: [PATCH v2] lib: vsprintf: Add %pa format specifier for phys_addr_t types

2013-01-24 Thread Andrew Morton
On Tue, 22 Jan 2013 16:14:53 -0800 Stepan Moskovchenko wrote: > Add the %pa format specifier for printing a phys_addr_t > type and its derivative types (such as resource_size_t), > since the physical address size on some platforms can vary > based on build options, regardless of the native intege

Re: [PATCH] pci-sysfs: replace mutex_lock with mutex_trylock to avoid potential deadlock situation

2013-01-24 Thread Bjorn Helgaas
On Thu, Dec 27, 2012 at 12:42 AM, Lin Feng wrote: > There is a potential deadlock situation when we manipulate the pci-sysfs user > interfaces from different bus hierarchy simultaneously, described as > following: > > path1: sysfs remove device: | path2: sysfs rescan device: > sysfs_s

My new tool/service - identify unknown kernel source trees

2013-01-24 Thread Tomasz Mloduchowski
Hello everyone, Every now and then I see a tree of kernel sources, contributed in good faith and compliance with the GPL, by some hardware vendor, or even worse, a hardware distributor, without any explanation of the changes made, or even which official tree is it based on. Usually, some hunting

Re: linux-next: New trees - ipsec and ipsec-next

2013-01-24 Thread Stephen Rothwell
Hi Steffen, On Thu, 24 Jan 2013 07:13:15 +0100 Steffen Klassert wrote: > > could you please add the ipsec and ipsec-next tree to linux-next? > > The ipsec tree is intended to cover fixes for the ipsec networking > subsystem and the ipsec-next tree to cover changes for ipsec with > linux-next as

Re: [PATCH 04/35] x86: Clean up e820 add kernel range

2013-01-24 Thread Jacob Shin
On Thu, Jan 24, 2013 at 12:19:45PM -0800, Yinghai Lu wrote: > Separate it out to another function instead. > > Also add support for case when memmap=xxM$yyM is used without exactmap. > Need to remove reserved range at first before we add E820_RAM > range, otherwise added E820_RAM range will be ign

Re: linux-next: build failure after merge of the final tree (akpm tree related)

2013-01-24 Thread Stephen Rothwell
Hi, On Thu, 24 Jan 2013 18:30:40 +0800 Shaohua Li wrote: > > On Thu, Jan 24, 2013 at 04:54:48PM +1100, Stephen Rothwell wrote: > > > > After merging the final tree, today's linux-next build (sparc32 defconfig) > > failed like this: > > > > arch/sparc/mm/init_32.c: In function 'show_mem': > > ar

Re: [RFC/PATCH] scripts/tracing: Add trace_analyze.py tool

2013-01-24 Thread Minchan Kim
On Thu, Jan 24, 2013 at 02:16:35PM -0300, Ezequiel Garcia wrote: > On Thu, Jan 24, 2013 at 2:50 AM, Minchan Kim wrote: > > On Wed, Jan 23, 2013 at 06:37:56PM -0300, Ezequiel Garcia wrote: > > > >> > >> > 2. Does it support alloc_pages family? > >> >kmem event trace already supports it. If it s

Re: linux-next: Tree for Jan 24 (extcon-max77693)

2013-01-24 Thread Randy Dunlap
On 01/23/13 22:13, Stephen Rothwell wrote: > Hi all, > > Changes since 20130123: > on i386, when CONFIG_INPUT is not enabled: drivers/built-in.o: In function `max77693_muic_remove': extcon-max77693.c:(.text+0x664853): undefined reference to `input_unregister_device' drivers/built-in.o: In f

Re: [Consult] Plan: personal contributes plan for 2013

2013-01-24 Thread Valdis . Kletnieks
On Wed, 23 Jan 2013 19:32:41 +0800, Chen Gang said: > Plan Details: > > 10 patches per month: (at least) Even Dave Miller only averages 12-15 patches a month, and he does it for a living, and they're all in the one part of the kernel he maintains. It's going to be a really hard time for a newcom

Re: [PATCH] Negative (setpoint-dirty) in bdi_position_ratio()

2013-01-24 Thread paul . szabo
Dear Fengguang, > Or more simple, you may show us the OOM dmesg which will contain the > number of dirty pages. ... Do you mean kern.log lines like: [ 744.754199] bash invoked oom-killer: gfp_mask=0xd0, order=1, oom_adj=0, oom_score_adj=0 [ 744.754202] bash cpuset=/ mems_allowed=0 [ 744.7542

Re: [dm-devel] Announcement: STEC EnhanceIO SSD caching software for Linux kernel

2013-01-24 Thread Kent Overstreet
On Thu, Jan 17, 2013 at 03:39:40AM -0800, Kent Overstreet wrote: > Suppose I could fill out the bcache version... > > On Thu, Jan 17, 2013 at 05:52:00PM +0800, Amit Kale wrote: > > 11. Error conditions - Handling power failures, intermittent and permanent > > device failures. > > Power failures

Re: [PATCH] btrfs: fix potential null pointer dereference bug

2013-01-24 Thread Cong Ding
On Thu, Jan 24, 2013 at 10:34:20AM -0500, Josef Bacik wrote: > On Sat, Jan 19, 2013 at 08:27:45AM -0700, Cong Ding wrote: > > The bug happens when rb_node == NULL. It causes variable node to be NULL and > > then the NULL pointer is dereferenced this line: > > BUG_ON((struct btrfs_root *)node->d

Re: [RFC] Hack to use mkdir/rmdir in debugfs

2013-01-24 Thread Steven Rostedt
On Thu, 2013-01-24 at 17:39 -0500, valdis.kletni...@vt.edu wrote: > > +static int instance_rmdir(struct inode *inode, struct dentry *dentry) > > +{ > > + struct dentry *parent; > > + int ret; > > + > > + /* Paranoid: Make sure the parent is the "instances" directory */ > > + parent = hlist

Re: [dm-devel] Announcement: STEC EnhanceIO SSD caching software for Linux kernel

2013-01-24 Thread Kent Overstreet
On Fri, Jan 18, 2013 at 05:08:37PM +0800, Amit Kale wrote: > > From: Jason Warr [mailto:ja...@warr.net] > > On 01/17/2013 11:53 AM, Amit Kale wrote: > > >>> 9. Performance - Throughput is generally most important. Latency is > > >> > also one more performance comparison point. Performance under >

Re: [PATCH] serial: pch_uart: fix sysrq handling for pch_uart

2013-01-24 Thread Randy Dunlap
On 01/23/13 20:31, Liang Li wrote: > When PCH_UART_CONSOLE and SERIAL_CORE_CONSOLE is not set neither, the > uart_port will have no 'sysrq' member hence their will need a '#ifdef' > in pch_uart.c to handle the case, otherwise we'll see compile error > like this: > > CC [M] drivers/tty/serial/pc

Re: [PATCH 2/4] MODSIGN: Specify the hash algorithm on sign-file command line

2013-01-24 Thread David Howells
Michal Marek wrote: > >> +our ($opt_v, $opt_a); > > > > Should this be 'our' or 'my'? > > These are global variables set by getopts(), so they need to be declared > 'our'. But I can change it to use the two-argument version of getopts, > that does not use global variables. No, that's fine. Pe

Re: [PATCHv2 1/9] staging: zsmalloc: add gfp flags to zs_create_pool

2013-01-24 Thread Nitin Gupta
On Mon, Jan 7, 2013 at 12:24 PM, Seth Jennings wrote: > zs_create_pool() currently takes a gfp flags argument > that is used when growing the memory pool. However > it is not used in allocating the metadata for the pool > itself. That is currently hardcoded to GFP_KERNEL. > > zswap calls zs_crea

Re: [PATCHv2 2/9] staging: zsmalloc: remove unsed pool name

2013-01-24 Thread Nitin Gupta
On Mon, Jan 7, 2013 at 12:24 PM, Seth Jennings wrote: > zs_create_pool() currently takes a name argument which is > never used in any useful way. > > This patch removes it. > > Signed-off-by: Seth Jennnings > --- > drivers/staging/zcache/zcache-main.c |2 +- > drivers/staging/zram/zram_d

Re: [PATCH v2 3/4] MODSIGN: Add -s option to sign-file

2013-01-24 Thread David Howells
Michal Marek wrote: > This option allows to append an externally computed singature to the > module. This is needed in setups, where the private key is not directly > available, but a service exists that returns signatures for given files. > > Signed-off-by: Michal Marek > --- > v2: Use two-arg

Re: [PATCHv2 3/9] staging: zsmalloc: add page alloc/free callbacks

2013-01-24 Thread Nitin Gupta
On Mon, Jan 7, 2013 at 12:24 PM, Seth Jennings wrote: > This patch allows users of zsmalloc to register the > allocation and free routines used by zsmalloc to obtain > more pages for the memory pool. This allows the user > more control over zsmalloc pool policy and behavior. > > If the user does

Re: [PATCH] ACPI / scan: Make it clear that acpi_bus_trim() cannot fail

2013-01-24 Thread Yinghai Lu
On Thu, Jan 24, 2013 at 2:56 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since acpi_bus_trim() cannot fail, change its definition to a void > function, so that its callers don't check the return value in vain > and update the callers. > > Signed-off-by: Rafael J. Wysocki > --- Ac

Re: [PATCH 4/4] async: replace list of active domains with global list of pending items

2013-01-24 Thread James Hogan
Hi, On Fri, Jan 18, 2013 at 04:41:00PM -0800, Tejun Heo wrote: > @@ -125,9 +134,8 @@ static void async_run_entry_fn(struct work_struct *work) > > /* 2) remove self from the pending queues */ > spin_lock_irqsave(&async_lock, flags); > - list_del(&entry->list); > - if (domain->

Re: [PATCH 2/2] mutex: use spin_[un]lock instead of arch_spin_[un]lock

2013-01-24 Thread Andrew Morton
On Thu, 24 Jan 2013 17:22:45 +0800 Yuanhan Liu wrote: > Use spin_[un]lock instead of arch_spin_[un]lock in mutex-debug.h so > that we can collect the lock statistics of spin_lock_mutex from > /proc/lock_stat. > > ... > > --- a/kernel/mutex-debug.h > +++ b/kernel/mutex-debug.h > @@ -43,13 +43,13

Re: [PATCH] MODSIGN: flag modules that use cryptoapi and only panic if those are unsigned

2013-01-24 Thread David Howells
Kyle McMartin wrote: > After thinking about it a while, this seems like the best way to solve > the problem, although it does still kind of offend my delicate > sensibilities... > > Doing this check in the crypto layer seems kind of like a layering > violation to me (and, to be honest, I think i

Re: [PATCH] Negative (setpoint-dirty) in bdi_position_ratio()

2013-01-24 Thread paul . szabo
Dear Jan, > I think he found the culprit of the problem being min_free_kbytes was not > properly reflected in the dirty throttling. ... Paul please correct me > if I'm wrong. Sorry but have to correct you. I noticed and patched/corrected two problems, one with (setpoint-dirty) in bdi_position_ra

Re: [PATCHv2 4/9] staging: zsmalloc: make CLASS_DELTA relative to PAGE_SIZE

2013-01-24 Thread Nitin Gupta
On Mon, Jan 7, 2013 at 12:24 PM, Seth Jennings wrote: > Right now ZS_SIZE_CLASS_DELTA is hardcoded to be 16. This > creates 254 classes for systems with 4k pages. However, on > PPC64 with 64k pages, it creates 4095 classes which is far > too many. > > This patch makes ZS_SIZE_CLASS_DELTA relative

[GIT PULL] KVM fixes for 3.8-rc4

2013-01-24 Thread Marcelo Tosatti
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git master To receive the following KVM bug fixes Alexander Graf (1): KVM: PPC: Emulate dcbf arch/powerpc/kvm/emulate.c |2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH v2 06/12] KVM: MMU: introduce a static table to map guest access to spte access

2013-01-24 Thread Marcelo Tosatti
On Wed, Jan 23, 2013 at 06:07:20PM +0800, Xiao Guangrong wrote: > It makes set_spte more clean and reduces branch prediction > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/mmu.c | 37 ++--- > 1 files changed, 26 insertions(+), 11 deletions(-) Don't see

[RFC] efivars write(2) races

2013-01-24 Thread Al Viro
1) process A does write() on efivars file, reaches ->get_variable(), gets newdatasize set, drops efivars->lock and loses CPU before an attempt to grab ->i_mutex. process B comes and does the same thing, replacing the variable contents. Then it grabs ->i_mutex, updates size, drops ->i_mute

<    3   4   5   6   7   8   9   10   >