[PATCH 0/4] Add managed token devres interfaces and change media drivers to use it

2014-04-29 Thread Shuah Khan
Media drivers that control a single media TV stick are a diversified group. Analog and digital TV function drivers have to coordinate access to their shared functions. In some cases, snd-usb-audio is used to support audio function on media devices. A shared managed resource framework at

[PATCH 1/4] drivers/base: add managed token devres interfaces

2014-04-29 Thread Shuah Khan
Media devices often have hardware resources that are shared across several functions. These devices appear as a group of independent devices. Each device implements a function which could be shared by one or more functions supported by the same device. For example, tuner is shared by analog and

[PATCH 4/4] media: em28xx dvb changes to initialze tuner token

2014-04-29 Thread Shuah Khan
Changes to em28xx-dvb to initialze dvb fe tuner token when dvb fe is registered. This will provide dvb fe the em28xx tuner token devres for sharing tuner across analog and digital functions. Signed-off-by: Shuah Khan shuah...@samsung.com --- drivers/media/usb/em28xx/em28xx-dvb.c |4 1

[PATCH 2/4] media: dvb-fe changes to use tuner token

2014-04-29 Thread Shuah Khan
Add a new field tuner_tkn to struct dvb_frontend. Drivers can create tuner token using devm_token_create() and initialize the tuner_tkn when frontend is registered with the dvb-core. This change enables drivers to provide a token devres for tuner access control. Change dvb_frontend to lock tuner

[PATCH 3/4] media/em28xx: changes to create token for tuner access

2014-04-29 Thread Shuah Khan
Changes add a new tuner_tkn field to struct em28xx and create a token devres to allow sharing tuner function across analog and digital functions. Tuner token is created during probe in em28xx_usb_probe() and destroyed during disconnect in em28xx_release_resources(). Signed-off-by: Shuah Khan

Re: [PATCH v2] PM / devfreq: Use freq_table for available_frequencies

2014-04-29 Thread Saravana Kannan
On 04/27/2014 06:41 PM, MyungJoo Ham wrote: Some devices use freq_table instead of OPP. For those devices, the available_frequencies file shows up empty. Fix that by using freq_table to generate the available_frequencies data when it's available. OPP find frequency APIs also skips frequencies

Re: fanotify API: FMODE_NONOTIFY, FMODE_EXEC, FMODE_NOCMTIME

2014-04-29 Thread Jan Kara
Hello, On Tue 29-04-14 15:29:12, Michael Kerrisk (man-pages) wrote: Can you offer any insight on Heinrich's question, below? On Sun, Apr 13, 2014 at 4:05 PM, Heinrich Schuchardt xypron.g...@gmx.de wrote: On 06.04.2014 14:18, Michael Kerrisk (man-pages) wrote: == I notice

bug: acpi ata_bay dock reminds undocked

2014-04-29 Thread Pali Rohár
Hello, I have problem with sysfs entry docked /sys/bus/platform/devices/dock.0/docked for my media bay DVD drive on notebook Dell Latitude E6440. After booting linux kernel docked is set to 1 (which is correct, DVD hw is inserted into sata dock). When I undock it via sysfs entry

Re: [PATCH 41/47] staging/lustre/llite: remove dead code

2014-04-29 Thread Dan Carpenter
On Tue, Apr 29, 2014 at 07:16:54PM +, Hammond, John wrote: -Original Message- From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Tuesday, April 29, 2014 6:03 AM To: Oleg Drokin Cc: Greg Kroah-Hartman; linux-kernel@vger.kernel.org; de...@driverdev.osuosl.org;

[RESEND PATCH v4] ptrace: Fix fork event messages across pid namespaces

2014-04-29 Thread Matthew Dempsky
v4 resend: - Ran git pull --rebase; no code changes needed. v4: - Refactor out ptrace_event_pid() to dedup FIXME code - Handle task_active_pid_ns() returning NULL - Use rcu_dereference() for accessing current-parent v3: - Respond to Oleg feedback about p

[PATCH] serial: add missing SERIAL_CORE dependencies

2014-04-29 Thread Arnd Bergmann
Two new drivers have been added since 3.14, the MEN 16z135 uart, and the ARM semihosting console. Both are missing an explicit 'select SERIAL_CORE', which can leads build errors when no other driver selects the core, as found during ARM randconfig testing. In case of the ARM semihosting console,

[PATCH] cpufreq: Break out early when frequency equals target_freq

2014-04-29 Thread Stratos Karafotis
Many drivers keep frequencies in frequency table in ascending or descending order. When governor tries to change to policy-min or policy-max respectively then the cpufreq_frequency_table_target could return on first iteration. This will save some iteration cycles. So, break out early when a

RE: [PATCH 6/6 v2] staging: comedi: addi_apci_1564: remove use of devpriv-s_EeParameters

2014-04-29 Thread Hartley Sweeten
On, Tuesday, April 29, 2014 1:38 AM, Chase Southwood wrote: This driver no longer reads the eeprom to find the board specific data, all the necessary data is in the boardinfo. Use the boardinfo directly instead of passing through devpriv-s_EeParameters. Signed-off-by: Chase Southwood

Re: [PATCH v4 1/7] arm64: Use pr_* instead of printk

2014-04-29 Thread Mitchel Humpherys
On Mon, Apr 28 2014 at 09:59:14 PM, Jungseok Lee jays@samsung.com wrote: This patch fixed the following checkpatch complaint as using pr_* instead of printk. WARNING: printk() should include KERN_ facility level Cc: Catalin Marinas catalin.mari...@arm.com Signed-off-by: Jungseok Lee

Re: bug: acpi ata_bay dock reminds undocked

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 10:16:41 PM Pali Rohár wrote: Hello, Hi, I have problem with sysfs entry docked /sys/bus/platform/devices/dock.0/docked for my media bay DVD drive on notebook Dell Latitude E6440. After booting linux kernel docked is set to 1 (which is correct, DVD hw is

Re: [PATCH v2 3/7] tty/serial: convert 8250 to generic earlycon

2014-04-29 Thread Rob Herring
On Tue, Apr 29, 2014 at 1:22 PM, Yinghai Lu ying...@kernel.org wrote: On Tue, Apr 29, 2014 at 8:16 AM, Rob Herring robherri...@gmail.com wrote: On Mon, Apr 28, 2014 at 9:56 PM, Yinghai Lu ying...@kernel.org wrote: On Mon, Apr 28, 2014 at 4:24 PM, Rob Herring robherri...@gmail.com wrote: On

Re: [PATCH 1/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Benjamin LaHaise
On Tue, Apr 29, 2014 at 08:40:04PM +0200, Oleg Nesterov wrote: 1. We can read -ioctx_table only once and we do not read rcu_read_lock() or even rcu_dereference(). This mm has no users, nobody else can play with -ioctx_table. Otherwise the code is buggy anyway, if we need

Re: [PATCH 1/3] of: Add vendor prefix for Linear Technology Corporation

2014-04-29 Thread Rob Herring
On Tue, Apr 29, 2014 at 11:37 AM, Philipp Zabel p.za...@pengutronix.de wrote: Add Linear Technology Corporation to the list of device tree vendor prefixes. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1

Re: [perf] more perf_fuzzer memory corruption

2014-04-29 Thread Vince Weaver
On Tue, 29 Apr 2014, Peter Zijlstra wrote: Fair point, nope not in that case. If you can trigger this without ever using .inherit=1 this would exclude a lot of funny code. I don't think inherit is being set, but I'm not actually sure. I will have to add that to the trace_printk() and

Re: fanotify API: FMODE_NONOTIFY, FMODE_EXEC, FMODE_NOCMTIME

2014-04-29 Thread Eric Paris
On Tue, 2014-04-29 at 22:10 +0200, Jan Kara wrote: Hello, On Tue 29-04-14 15:29:12, Michael Kerrisk (man-pages) wrote: Can you offer any insight on Heinrich's question, below? On Sun, Apr 13, 2014 at 4:05 PM, Heinrich Schuchardt xypron.g...@gmx.de wrote: On 06.04.2014 14:18,

Re: bug: acpi ata_bay dock reminds undocked

2014-04-29 Thread Pali Rohár
On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote: Which kernel version(s) have you tried? 3.15-rc3 -- Pali Rohár pali.ro...@gmail.com signature.asc Description: This is a digitally signed message part.

Re: lockdep warning after recent cleanup in console code

2014-04-29 Thread Jan Kara
On Tue 29-04-14 11:38:04, Andy Shevchenko wrote: On Mon, 2014-04-28 at 21:24 +0200, Jan Kara wrote: On Mon 28-04-14 14:14:39, Steven Rostedt wrote: On Mon, 28 Apr 2014 19:51:39 +0200 Jan Kara j...@suse.cz wrote: On Mon 28-04-14 13:43:31, Steven Rostedt wrote: Things have

Re: Warning from kernel/printk/printk.c in linux-next

2014-04-29 Thread Jan Kara
Hello, On Tue 29-04-14 13:33:17, Fabio Estevam wrote: I am running linux-next 20140429 on a mx6 board (ARM 32-bit) and after commit 5dc90cb49691755faa (printk: enable interrupts before calling console_trylock_for_printk()) I get the following warning: Thanks for report. Attached patch

Re: [PATCH RFC 0/2] percpu_ida: Take into account CPU topology when stealing tags

2014-04-29 Thread Jens Axboe
On 04/29/2014 05:35 AM, Ming Lei wrote: On Sat, Apr 26, 2014 at 10:03 AM, Jens Axboe ax...@kernel.dk wrote: On 2014-04-25 18:01, Ming Lei wrote: Hi Jens, On Sat, Apr 26, 2014 at 5:23 AM, Jens Axboe ax...@kernel.dk wrote: On 04/25/2014 03:10 AM, Ming Lei wrote: Sorry, I did run it the

Re: dcache shrink list corruption?

2014-04-29 Thread Dave Chinner
On Tue, Apr 29, 2014 at 08:10:15PM +0100, Al Viro wrote: On Tue, Apr 29, 2014 at 07:16:10PM +0100, Al Viro wrote: On Tue, Apr 29, 2014 at 08:03:24PM +0200, Miklos Szeredi wrote: Introducing a new per-sb lock should be OK. Another idea, which could have subtler effects, is simply

Re: bug: acpi ata_bay dock reminds undocked

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 11:00:01 PM Pali Rohár wrote: On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote: Which kernel version(s) have you tried? 3.15-rc3 Does it work with 3.14(.x) by chance? -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.

Re: [Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 01:31:28 PM Wolfram Sang wrote: --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The rest has been queued up for 3.16. I also aim for 3.16, yet it may take 1 or 2 weeks more until I'll be able to review the I2C part

[PATCH 4/4] MADV_VOLATILE: Add page purging logic SIGBUS trap

2014-04-29 Thread John Stultz
This patch adds the hooks in the vmscan logic to purge volatile pages and mark their pte as purged. With this, volatile pages will be purged under pressure, and their ptes swap entry's marked. If the purged pages are accessed before being marked non-volatile, we catch this and send a SIGBUS. This

Re: [PATCH 1/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Benjamin LaHaise
On Tue, Apr 29, 2014 at 04:42:17PM -0400, Benjamin LaHaise wrote: Signed-off-by: Oleg Nesterov o...@redhat.com Your patch does not apply because it is whitespace damaged. Please resend and verify that it applies with 'git am'. Whoops, it's not whitespace damange, but rather that it

[PATCH 2/4] MADV_VOLATILE: Add MADV_VOLATILE/NONVOLATILE hooks and handle marking vmas

2014-04-29 Thread John Stultz
This patch introduces MADV_VOLATILE/NONVOLATILE flags to madvise(), which allows for specifying ranges of memory as volatile, and able to be discarded by the system. This initial patch simply adds flag handling to madvise, and the vma handling, splitting and merging the vmas as needed, and

[PATCH 1/4] swap: Cleanup how special swap file numbers are defined

2014-04-29 Thread John Stultz
The SWP_HWPOISON and SWP_MIGRATION numbers are defined in a fairly awkward way. Since they are stolen from the top few values of the 1MAX_SWAPFILES_SHIFT bits, the values themselves are calculated by taking the MAX_SWAPFILES value (which is defined by subtraciting out all the available special

[PATCH 0/4] Volatile Ranges (v14 - madvise reborn edition!)

2014-04-29 Thread John Stultz
Another few weeks and another volatile ranges patchset... After getting the sense that the a major objection to the earlier patches was the introduction of a new syscall (and its somewhat strange dual length/purged-bit return values), I spent some time trying to rework the vma manipulations so we

[PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-04-29 Thread John Stultz
Users of volatile ranges will need to know if memory was discarded. This patch adds the purged state tracking required to inform userland when it marks memory as non-volatile that some memory in that range was purged and needs to be regenerated. This simplified implementation which uses some of

Re: [PATCH] ACPI / EC: Process rather than discard events in acpi_ec_clear

2014-04-29 Thread Rafael J. Wysocki
On Wednesday, April 30, 2014 12:21:20 AM Kieran Clancy wrote: Address a regression caused by commit ad332c8a4533: (ACPI / EC: Clear stale EC events on Samsung systems) After the earlier patch, there was found to be a race condition on some earlier Samsung systems (N150/N210/N220). The

Re: [PATCH] hrtimer: invalid timout set after hang_detected

2014-04-29 Thread Thomas Gleixner
On Tue, 29 Apr 2014, Stuart Hayes wrote: Make hrtimer_force_reprogram() not reprogram the clock event device if hang_detected has been set in hrtimer_interrupt(). Otherwise, if an active hrtimer is changed by calling hrtimer_start() (for example) while hang_detected is set, the clock

Re: [PATCH v2 3/4] thermal: Added Bang-bang thermal governor

2014-04-29 Thread Peter Feuerer
Hi Javi, Peter Feuerer writes: Javi Merino writes: [...] diff --git a/drivers/thermal/gov_bang_bang.c b/drivers/thermal/gov_bang_bang.c new file mode 100644 index 000..328dde0 --- /dev/null +++ b/drivers/thermal/gov_bang_bang.c @@ -0,0 +1,124 @@ +/* + * gov_bang_bang.c - A

Re: [PATCH] cpufreq: intel_pstate: Change the calculation of next pstate

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 07:34:46 PM Stratos Karafotis wrote: On 29/04/2014 07:58 πμ, Viresh Kumar wrote: Cc'd Dirk, On 28 April 2014 03:42, Stratos Karafotis strat...@semaphore.gr wrote: Currently the driver calculates the next pstate proportional to core_busy factor and reverse

Re: [PATCH v2 2/5] x86/PCI: Support additional MMIO range capabilities

2014-04-29 Thread Myron Stowe
On Tue, Apr 29, 2014 at 1:14 PM, Borislav Petkov b...@alien8.de wrote: On Tue, Apr 29, 2014 at 10:16:57AM -0500, Suravee Suthikulanit wrote: In the new code, the IO ECS was needed to retrieve the AMD_NB_F1_MMIO_BASE_LIMIT_HI_REG (offset 0x180) during the early initialization as part of (2)

Re: [PATCH 2/3] sched: idle: Add sched balance option

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 11:50:02 AM Morten Rasmussen wrote: On Sun, Apr 27, 2014 at 02:23:24PM +0100, Rafael J. Wysocki wrote: [cut] The same applies to the maximum sustainable power draw limit more or less. While it generally changes between on battery and on AC power, it may also

Re: Warning from kernel/printk/printk.c in linux-next

2014-04-29 Thread Fabio Estevam
On Tue, Apr 29, 2014 at 6:11 PM, Jan Kara j...@suse.cz wrote: Hello, On Tue 29-04-14 13:33:17, Fabio Estevam wrote: I am running linux-next 20140429 on a mx6 board (ARM 32-bit) and after commit 5dc90cb49691755faa (printk: enable interrupts before calling console_trylock_for_printk()) I get

Re: dcache shrink list corruption?

2014-04-29 Thread Al Viro
On Wed, Apr 30, 2014 at 07:18:51AM +1000, Dave Chinner wrote: Seems like it would work, but it seems fragile to me - I'm wondering how we can ensure that the private shrink list manipulations can be kept private. We have a similar situation with the inode cache (private shrink list) but

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Marian Marinov
On 04/29/2014 09:52 PM, Serge Hallyn wrote: Quoting Theodore Ts'o (ty...@mit.edu): On Tue, Apr 29, 2014 at 04:49:14PM +0300, Marian Marinov wrote: I'm proposing a fix to this, by replacing the capable(CAP_LINUX_IMMUTABLE) check with ns_capable(current_cred()-user_ns, CAP_LINUX_IMMUTABLE).

Re: [PATCH v2 3/7] tty/serial: convert 8250 to generic earlycon

2014-04-29 Thread Yinghai Lu
On Tue, Apr 29, 2014 at 1:41 PM, Rob Herring robherri...@gmail.com wrote: On Tue, Apr 29, 2014 at 1:22 PM, Yinghai Lu ying...@kernel.org wrote: You want to obsolete console=uart,io,0x3f8,115200n8 ? Let's check with Andrew. He suggested to use uart and uart8250 at that time. No, that is not

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Serge Hallyn
Quoting Marian Marinov (m...@1h.com): On 04/29/2014 09:52 PM, Serge Hallyn wrote: Quoting Theodore Ts'o (ty...@mit.edu): On Tue, Apr 29, 2014 at 04:49:14PM +0300, Marian Marinov wrote: I'm proposing a fix to this, by replacing the capable(CAP_LINUX_IMMUTABLE) check with

Re: [PATCH 2/3] sched: idle: Add sched balance option

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 11:00:23 AM Morten Rasmussen wrote: On Tue, Apr 29, 2014 at 12:11:47AM +0100, Rafael J. Wysocki wrote: On Monday, April 28, 2014 01:07:31 PM Daniel Lezcano wrote: [...] I'm really wondering if the cgroup couldn't be a good solution: Amit pointed the

Re: [PATCH v2] tracing: Allow changing default ring buffer size for ftrace instances.

2014-04-29 Thread Bharath Ravi
We'd actually considered doing just that, in an initial version of the patch. At the time, we'd decided in favour of allowing the user more explicit control over the buffer size, rather than auto expanding it. (The discussion on that is here: https://lkml.org/lkml/2013/7/1/617) We could go back

Re: [PATCH v5 0/8] Introduce new cpufreq helper macros

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 07:05:17 PM Stratos Karafotis wrote: On 29/04/2014 07:17 πμ, Viresh Kumar wrote: On 26 April 2014 01:45, Stratos Karafotis strat...@semaphore.gr wrote: This patch set introduces two freq_table helper macros which can be used for iteration over

Re: [RESEND PATCH v4] ptrace: Fix fork event messages across pid namespaces

2014-04-29 Thread Andrew Morton
On Tue, 29 Apr 2014 13:20:58 -0700 Matthew Dempsky mdemp...@chromium.org wrote: When tracing a process in another pid namespace, it's important for fork event messages to contain the child's pid as seen from the tracer's pid namespace, not the parent's. Otherwise, the tracer won't be able

Re: [PATCH] cpufreq: intel_pstate: Disable interrupts during MSRs reading

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 08:46:05 PM Stratos Karafotis wrote: According to Intel 64 and IA-32 Architectures SDM, Volume 3, Chapter 14.2, Software needs to exercise care to avoid delays between the two RDMSRs (for example interrupts). So, disable interrupts during reading MSRs IA32_APERF

Re: [PATCH v2] tracing: Allow changing default ring buffer size for ftrace instances.

2014-04-29 Thread Steven Rostedt
On Tue, 29 Apr 2014 15:09:15 -0700 Bharath Ravi rbhar...@google.com wrote: We'd actually considered doing just that, in an initial version of the patch. At the time, we'd decided in favour of allowing the user more explicit control over the buffer size, rather than auto expanding it. (The

Re: [PATCH] Kernel 3.15-rc2 : Peak DVB-T USB tuner device ids for rtl28xxu driver

2014-04-29 Thread Brian Healy
Thanks Mauro, I'll know for next time. It's my first patch submission so wasn't aware of the formatting rules. Brian On 29 April 2014 15:16, Mauro Carvalho Chehab m.che...@samsung.com wrote: Em Mon, 28 Apr 2014 22:40:00 +0100 Brian Healy healybr...@gmail.com escreveu: From: Brian Healy

Re: [PATCHv2 1/9] ASoC: omap: rx51: Use static const char * const arrays

2014-04-29 Thread Mark Brown
On Mon, Apr 28, 2014 at 04:07:19PM +0200, Sebastian Reichel wrote: Mark the array and the string const by using static const char * const foo[] instead of static const char* foo[]. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH 02/10] mfd: vexpress: Convert custom func API to regmap

2014-04-29 Thread Mark Brown
On Mon, Apr 28, 2014 at 06:57:49PM +0100, Pawel Moll wrote: Components of the Versatile Express platform (configuration microcontrollers on motherboard and daughterboards in particular) talk to each other over a custom configuration bus. They provide miscellaneous functions (from clock

Re: [PATCHv2 2/9] ASoC: omap: rx51: Add module alias

2014-04-29 Thread Mark Brown
On Mon, Apr 28, 2014 at 04:07:20PM +0200, Sebastian Reichel wrote: Add module alias to support driver autoloading. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH] cpufreq: powernow-k8: Fix checkpatch warnings

2014-04-29 Thread Rafael J. Wysocki
On Wednesday, April 23, 2014 04:53:36 PM Stratos Karafotis wrote: On 23/04/2014 01:37 μμ, Rafael J. Wysocki wrote: On Wednesday, April 23, 2014 12:13:54 AM Stratos Karafotis wrote: Fix the following checkpatch warnings: In addition to comments from Viresh, I have a general one. Some

Re: [PATCHv2 3/9] ASoC: omap: rx51: Use devm_snd_soc_register_card

2014-04-29 Thread Mark Brown
On Mon, Apr 28, 2014 at 04:07:21PM +0200, Sebastian Reichel wrote: This patch converts the rx51 ASoC module to use devm_snd_soc_register_card. Applied, thanks. signature.asc Description: Digital signature

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Marian Marinov
On 04/30/2014 01:02 AM, Serge Hallyn wrote: Quoting Marian Marinov (m...@1h.com): On 04/29/2014 09:52 PM, Serge Hallyn wrote: Quoting Theodore Ts'o (ty...@mit.edu): On Tue, Apr 29, 2014 at 04:49:14PM +0300, Marian Marinov wrote: I'm proposing a fix to this, by replacing the

Re: [PATCH v1] serial: uart: add hw flow control support configuration

2014-04-29 Thread Mark Rutland
Hi, On Tue, Apr 29, 2014 at 06:22:02PM +0100, Murali Karicheri wrote: 8250 uart driver currently supports only software assisted hw flow control. The software assisted hw flow control maintains a hw_stopped flag in the tty structure to stop and start transmission and use modem status

Re: [PATCH V2] ASoC: SAMSUNG: Add sound card driver for Snow board

2014-04-29 Thread Mark Brown
On Fri, Apr 25, 2014 at 09:46:11AM +0530, Tushar Behera wrote: On 04/24/2014 07:09 PM, Mark Brown wrote: defined. Why is that? Also, why is the secondary I2S playback stream not supported (this may be a reason to restrict to only the one I2S interface)? AFAICS, I2S driver doesn't

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Serge Hallyn
Quoting Marian Marinov (m...@1h.com): On 04/30/2014 01:02 AM, Serge Hallyn wrote: Quoting Marian Marinov (m...@1h.com): On 04/29/2014 09:52 PM, Serge Hallyn wrote: Quoting Theodore Ts'o (ty...@mit.edu): On Tue, Apr 29, 2014 at 04:49:14PM +0300, Marian Marinov wrote: I'm proposing a fix to

Re: [PATCH 1/1] Revert affs: use -kill_sb() to simplify -put_super() and failure exits of -mount()

2014-04-29 Thread Andrew Morton
On Tue, 29 Apr 2014 21:35:12 +0200 Fabian Frederick f...@skynet.be wrote: This reverts commit 842a859db26b70 due to permanent crash issues. Sample scenario: dd if=/dev/zero of=f1 bs=1M count=1 losetup -f f1 mount -t affs -o unknownoption /dev/loop0 mnt1 - crash Thanks for the bug

Re: [PATCH v2] i2c: add driver for Rockchip RK3xxx SoC I2C adapter

2014-04-29 Thread Heiko Stübner
Am Dienstag, 29. April 2014, 01:34:15 schrieb Max Schwarz: Driver for the native I2C adapter found in Rockchip RK3xxx SoCs. Configuration is only possible through devicetree. The driver is interrupt driven and supports the I2C_M_IGNORE_NAK mangling bit. Tested on the Radxa Rock board,

[PATCH v2 1/4] powercap/rapl: further relax energy counter checks

2014-04-29 Thread David E. Box
From: Jacob Pan jacob.jun@linux.intel.com Energy counters may roll slowly for some RAPL domains, checking all of them can be time consuming and takes unpredictable amount of time. Therefore, we relax the sanity check by only checking availability of the MSRs and non-zero value of the energy

[PATCH v2 0/4] RAPL driver updates

2014-04-29 Thread David E. Box
From: David E. Box david.e@linux.intel.com v2: iosf: Remove Kconfig exposure. Make mailbox driver a module. David E. Box (1): x86/iosf: Make IOSF driver modular and usable by more drivers Jacob Pan (3): powercap/rapl: further relax energy counter checks powercap/rapl: add new cpu ids

[PATCH v2 4/4] powercap/rapl: change floor frequency for vallewview

2014-04-29 Thread David E. Box
From: Jacob Pan jacob.jun@linux.intel.com RAPL power limit reduce power by limiting CPU P-state and other techniques. On Valleyview, RAPL power limit cannot go to LFM (low frequency mode) if we don't set the floor frequency via IOSF mailbox. This patch enables setting of floor frquency such

[PATCH v2 2/4] powercap/rapl: add new cpu ids

2014-04-29 Thread David E. Box
From: Jacob Pan jacob.jun@linux.intel.com Adding support for Broadwell model 0x3d and HSW model (0x3c) Signed-off-by: Jacob Pan jacob.jun@linux.intel.com --- drivers/powercap/intel_rapl.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 3/4] x86/iosf: Make IOSF driver modular and usable by more drivers

2014-04-29 Thread David E. Box
From: David E. Box david.e@linux.intel.com Currently drivers that work on big core can't use the mailbox driver without selecting it which forces an unneeded dependency. Provides dummy fucntions to allow these modules to conditionally use the mailbox on soc's without limiting their ability to

Re: [PATCH v2] tracing: Allow changing default ring buffer size for ftrace instances.

2014-04-29 Thread Steven Rostedt
On Fri, 14 Feb 2014 15:29:57 -0800 Bharath Ravi rbhar...@google.com wrote: @@ -5930,7 +5932,7 @@ static int allocate_trace_buffers(struct trace_array *tr, int size) static int new_instance_create(const char *name) { struct trace_array *tr; - int ret; + int

Dear Winner

2014-04-29 Thread TMH HRD Training
You have won One Million Dollars ($1,000,000) You are therefore requested to contact immediately our Claims Department below quoting winning number : CODE NUMBER-04378490. NAME: MR. Jurgen Sterk EMAIL: jurgenst...@yahoo.se Provide the following information needed to process your winning

Re: [PATCH] mm,writeback: fix divide by zero in pos_ratio_polynom

2014-04-29 Thread Andrew Morton
On Tue, 29 Apr 2014 15:19:10 -0400 Rik van Riel r...@redhat.com wrote: It is possible for limit - setpoint + 1 to equal zero, leading to a divide by zero error. Blindly adding 1 to limit - setpoint is not working, so we need to actually test the divisor before calling div64. ... ---

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Andy Lutomirski
On 04/29/2014 03:29 PM, Serge Hallyn wrote: Quoting Marian Marinov (mm-108mbtlg...@public.gmane.org): On 04/30/2014 01:02 AM, Serge Hallyn wrote: Quoting Marian Marinov (mm-108mbtlg...@public.gmane.org): On 04/29/2014 09:52 PM, Serge Hallyn wrote: Quoting Theodore Ts'o

Re: [PATCH v2 0/4] RAPL driver updates

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 03:33:05 PM David E. Box wrote: From: David E. Box david.e@linux.intel.com v2: iosf: Remove Kconfig exposure. Make mailbox driver a module. David E. Box (1): x86/iosf: Make IOSF driver modular and usable by more drivers Jacob Pan (3): powercap/rapl:

Re: [PATCH] mm,writeback: fix divide by zero in pos_ratio_polynom

2014-04-29 Thread Rik van Riel
On 04/29/2014 06:39 PM, Andrew Morton wrote: On Tue, 29 Apr 2014 15:19:10 -0400 Rik van Riel r...@redhat.com wrote: It is possible for limit - setpoint + 1 to equal zero, leading to a divide by zero error. Blindly adding 1 to limit - setpoint is not working, so we need to actually test the

Re: [PATCH] mm,writeback: fix divide by zero in pos_ratio_polynom

2014-04-29 Thread Andrew Morton
On Tue, 29 Apr 2014 18:48:11 -0400 Rik van Riel r...@redhat.com wrote: On 04/29/2014 06:39 PM, Andrew Morton wrote: On Tue, 29 Apr 2014 15:19:10 -0400 Rik van Riel r...@redhat.com wrote: It is possible for limit - setpoint + 1 to equal zero, leading to a divide by zero error. Blindly

[PATCH] hrtimer: invalid timeout set after hang_detected

2014-04-29 Thread Stuart Hayes
Make hrtimer_force_reprogram() not reprogram the clock event device if hang_detected has been set in hrtimer_interrupt(). Otherwise, if an active hrtimer is changed by calling hrtimer_start() (for example) while hang_detected is set, the clock event device can be programmed with the wrong

Re: [PATCH 2/2] cpuidle / menu: Return error code if there are no suitable states

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 01:28:03 AM Rafael J. Wysocki wrote: On Monday, April 28, 2014 01:14:32 PM Daniel Lezcano wrote: On 04/27/2014 02:55 PM, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com If there is a PM QoS latency limit and all of the sufficiently

Re: dcache shrink list corruption?

2014-04-29 Thread Linus Torvalds
On Tue, Apr 29, 2014 at 2:48 PM, Al Viro v...@zeniv.linux.org.uk wrote: Ummm... You mean, have d_lookup() et.al. fail on something that is on a shrink list? So I tried to see if that would work just consider it dead by the time it hits the shrink list, and if somebody does a lookup on the

Re: [PATCH 1/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Mateusz Guzik
On Tue, Apr 29, 2014 at 05:22:22PM -0400, Benjamin LaHaise wrote: On Tue, Apr 29, 2014 at 04:42:17PM -0400, Benjamin LaHaise wrote: Signed-off-by: Oleg Nesterov o...@redhat.com Your patch does not apply because it is whitespace damaged. Please resend and verify that it applies with

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Theodore Ts'o
On Tue, Apr 29, 2014 at 03:45:24PM -0700, Andy Lutomirski wrote: Wait, what? Inodes aren't owned by user namespaces; they're owned by users. And any user can arrange to have a user namespace in which they pass an inode_capable check on any inode that they own. Presumably there's a

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Andy Lutomirski
On Tue, Apr 29, 2014 at 4:06 PM, Theodore Ts'o ty...@mit.edu wrote: On Tue, Apr 29, 2014 at 03:45:24PM -0700, Andy Lutomirski wrote: Wait, what? Inodes aren't owned by user namespaces; they're owned by users. And any user can arrange to have a user namespace in which they pass an

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Marian Marinov
On 04/30/2014 01:45 AM, Andy Lutomirski wrote: On 04/29/2014 03:29 PM, Serge Hallyn wrote: Quoting Marian Marinov (mm-108mbtlg...@public.gmane.org): On 04/30/2014 01:02 AM, Serge Hallyn wrote: Quoting Marian Marinov (mm-108mbtlg...@public.gmane.org): On 04/29/2014 09:52 PM, Serge Hallyn

Re: dcache shrink list corruption?

2014-04-29 Thread Al Viro
On Tue, Apr 29, 2014 at 04:04:11PM -0700, Linus Torvalds wrote: But at a minimum, we have d_op-d_prune() that would now be possibly be called for the old dentry *after* a new dentry has been allocated. Not to mention the inode not having been dropped. So it looks like a disaster where the

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Andy Lutomirski
On Tue, Apr 29, 2014 at 4:20 PM, Marian Marinov m...@1h.com wrote: On 04/30/2014 01:45 AM, Andy Lutomirski wrote: On 04/29/2014 03:29 PM, Serge Hallyn wrote: Quoting Marian Marinov (mm-108mbtlg...@public.gmane.org): On 04/30/2014 01:02 AM, Serge Hallyn wrote: Quoting Marian Marinov

[PATCHv3] arm64: topology: add MPIDR-based detection

2014-04-29 Thread Zi Shen Lim
Create cpu topology based on MPIDR. When hardware sets MPIDR to sane values, this method will always work. Therefore it should also work well as the fallback method. [1] When we have multiple processing elements in the system, we create the cpu topology by mapping each affinity level (from lowest

Re: [PATCH 0/1] aio: change exit_aio() to load mm-ioctx_table once and avoid rcu_read_lock()

2014-04-29 Thread Kent Overstreet
On Tue, Apr 29, 2014 at 08:39:30PM +0200, Oleg Nesterov wrote: 1. We can read -ioctx_table only once and we do not read rcu_read_lock() or even rcu_dereference(). This mm has no users, nobody else can play with -ioctx_table. Otherwise the code is buggy anyway, if we need

Re: [PATCHSET 00/17] perf report: Add -F option for specifying output fields (v4)

2014-04-29 Thread Namhyung Kim
Hi Don, On Tue, 29 Apr 2014 13:27:35 -0400, Don Zickus wrote: On Tue, Apr 29, 2014 at 10:13:35AM +0900, Namhyung Kim wrote: /* * Addresses with no major/minor numbers are assumed to be * anonymous in userspace. Sort those on pid then address. * *

Re: [PATCH v2 0/4] RAPL driver updates

2014-04-29 Thread Jacob Pan
On Wed, 30 Apr 2014 01:02:36 +0200 Rafael J. Wysocki r...@rjwysocki.net wrote: On Tuesday, April 29, 2014 03:33:05 PM David E. Box wrote: From: David E. Box david.e@linux.intel.com v2: iosf: Remove Kconfig exposure. Make mailbox driver a module. David E. Box (1): x86/iosf:

Re: [PATCH 4/7] x86: Add support for rd/wr fs/gs base

2014-04-29 Thread Andi Kleen
Case 3 is annoying. If nothing tries to change the user gs base, then everything is okay because the user gs base and the kernel gs bases are equal. But if something does try to change the user gs base, then it will accidentally change the kernel gs base instead. It doesn't really matter,

Re: [PATCH v3] PCI: rework new_id interface for known vendor/device values

2014-04-29 Thread Bjorn Helgaas
On Tue, Apr 01, 2014 at 09:32:59PM -0400, Bandan Das wrote: While using the new_id interface, the user can unintentionally feed incorrect values if the driver static table has a matching entry. This is possible since only the device and vendor fields are mandatory and the rest are optional.

Re: [PATCH] perf machine: Search for modules in %s/lib/modules/%s

2014-04-29 Thread Namhyung Kim
Hi Jiri, On Tue, 29 Apr 2014 10:06:17 +0200, Jiri Olsa wrote: On Sun, Apr 27, 2014 at 12:05:56PM +0200, Jiri Olsa wrote: On Sat, Apr 26, 2014 at 01:17:55PM -0400, Richard Yao wrote: Modules installed outside of the kernel's build system should go into %s/lib/modules/%s/extra, but at

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Andy Lutomirski
On Tue, Apr 29, 2014 at 4:47 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Apr 29, 2014 at 04:22:55PM -0700, Andy Lutomirski wrote: On Tue, Apr 29, 2014 at 4:20 PM, Marian Marinov m...@1h.com wrote: On 04/30/2014 01:45 AM, Andy Lutomirski wrote: On 04/29/2014 03:29 PM, Serge

[PATCH v2 0/2] x86/gart: message tidy-up

2014-04-29 Thread Bjorn Helgaas
v2 of the patch I posted at [1]. I split this into two: 1) Add pr_fmt() and convert to pr_info(), etc. 2) Use more PCI-like device IDs, print ranges in %pR style, make more consistent. Still no functional change except to messages. I'd be glad to move arch/x86/kernel/aperture_64.c to

[PATCH v2 2/2] x86/gart: Tidy messages and add bridge device info

2014-04-29 Thread Bjorn Helgaas
Print the AGP bridge info the same way as the rest of the kernel, e.g., :00:04.0 instead of 00:04:00. Also print the AGP aperture address range the same way we print resources, and label it explicitly as a bus address range. No functional change except the message changes. Signed-off-by:

[PATCH v2 1/2] x86/gart: Replace printk() with pr_info()

2014-04-29 Thread Bjorn Helgaas
Replace printk() with pr_info(), pr_err(), etc. Define pr_fmt() to prefix output with AGP: . No functional change except the addition of AGP: prefix in dmesg output. Signed-off-by: Bjorn Helgaas bhelg...@google.com --- arch/x86/kernel/aperture_64.c | 54

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Stéphane Graber
On Tue, Apr 29, 2014 at 04:22:55PM -0700, Andy Lutomirski wrote: On Tue, Apr 29, 2014 at 4:20 PM, Marian Marinov m...@1h.com wrote: On 04/30/2014 01:45 AM, Andy Lutomirski wrote: On 04/29/2014 03:29 PM, Serge Hallyn wrote: Quoting Marian Marinov (mm-108mbtlg...@public.gmane.org): On

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Stéphane Graber
On Tue, Apr 29, 2014 at 04:51:54PM -0700, Andy Lutomirski wrote: On Tue, Apr 29, 2014 at 4:47 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Apr 29, 2014 at 04:22:55PM -0700, Andy Lutomirski wrote: On Tue, Apr 29, 2014 at 4:20 PM, Marian Marinov m...@1h.com wrote: On 04/30/2014

[git pull] drm fixes

2014-04-29 Thread Dave Airlie
Hi Linus, smattering of fixes, i915, exynos, tegra, msm, vmwgfx, bit of framebuffer reference counting fallout fixes, i915 GM45 regression fix, DVI regression fix, vmware info leak between processes fix. Inki, I've cherry-picked and signed off some of the stuff from the exynos fixes pull

Re: [RFC PATCH v2 1/9] crypto: qce: Add core driver implementation

2014-04-29 Thread Herbert Xu
On Tue, Apr 29, 2014 at 05:38:14PM +0300, Stanimir Varbanov wrote: This is new for me because I saw similar code in cryptd.c where in cryptd_queue_worker() (workqueue context) the backlog-complete() is called outside of local_bh_disable(). That's what I thought :) If you dig deeper you'll

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Marian Marinov
On 04/30/2014 03:01 AM, Stéphane Graber wrote: On Tue, Apr 29, 2014 at 04:51:54PM -0700, Andy Lutomirski wrote: On Tue, Apr 29, 2014 at 4:47 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Apr 29, 2014 at 04:22:55PM -0700, Andy Lutomirski wrote: On Tue, Apr 29, 2014 at 4:20 PM, Marian

Re: ioctl CAP_LINUX_IMMUTABLE is checked in the wrong namespace

2014-04-29 Thread Andy Lutomirski
On Tue, Apr 29, 2014 at 5:01 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Apr 29, 2014 at 04:51:54PM -0700, Andy Lutomirski wrote: On Tue, Apr 29, 2014 at 4:47 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Apr 29, 2014 at 04:22:55PM -0700, Andy Lutomirski wrote: On Tue,

<    1   2   3   4   5   6   7   8   9   10   >