Re: [PATCH v2] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-03-14 Thread Andrei Borzenkov
On Mon, Mar 14, 2016 at 2:45 PM, Pali Rohár wrote: > On Monday 14 March 2016 12:34:31 Gabriele Mazzotta wrote: >> 2016-03-12 0:49 GMT+01:00 Gabriele Mazzotta : >> > Some BIOSes unconditionally send an ACPI notification to RBTN when the >> > system is resuming from suspend. This makes dell-rbtn sen

[PATCH v2 1/5] perf config: Introduce perf_config_set class

2016-03-14 Thread Taeung Song
This infrastructure code was designed for upcoming features of perf-config. That collect config key-value pairs from user and system config files (i.e. user wide ~/.perfconfig and system wide $(sysconfdir)/perfconfig) to manage perf's configs. Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeun

[RFC][PATCH v2 0/5] perf config: Introduce perf_config_set class

2016-03-14 Thread Taeung Song
Hi, all :-) We can use the config files (i.e user wide ~/.perfconfig and system wide $(sysconfdir)/perfconfig) to configure perf tools. perf-config help user manage the config files, not manually look into or edit them. Introduce new infrastructure code for config management features of perf-conf

[PATCH v2 2/5] perf config: Let show_config() work with perf_config_set

2016-03-14 Thread Taeung Song
Current show_config() has a problem when user or system config files have same config variables i.e. # cat ~/.perfconfig [top] children = false when $(sysconfdir) is /usr/local/etc # cat /usr/local/etc/perfconfig [top] children = true Before:

[PATCH v2 4/5] perf config: Initialize perf_config_set with all default configs

2016-03-14 Thread Taeung Song
To avoid duplicated config variables and use perf_config_set classifying between standard perf config variables and unknown or new config variables other than them, initialize perf_config_set with all default configs. And this will be needed when showing all configs with default value or checking

[PATCH v2 5/5] perf config: Add 'list-all' option to show all perf's configs

2016-03-14 Thread Taeung Song
That show all possible config variables with default values. The syntax examples are like below. perf config [] [options] display all perf config with default values. # perf config -a | --list-all But configs from user or system config file have a high priority e.g. Default of r

[PATCH v2 3/5] perf config: Prepare all default configs

2016-03-14 Thread Taeung Song
To precisely manage configs, prepare all default perf's configs that contain default section name, variable name, value and correct type, not string type. In the near future, this will be used when checking type of config variable or showing all configs with default values, etc. Cc: Namhyung Kim

Re: [PATCH 1/2] ARM: multi_v7_defconfig: enable CONFIG_PWM_ROCKCHIP=y

2016-03-14 Thread Thierry Reding
On Sat, Mar 12, 2016 at 08:50:29PM +0800, Andy Yan wrote: > All the current rk3066 based boards use pwm modulate vdd_logic > voltage, the board may hang when the system boot and run to a higher > frequency without pwm enabled, so enable it as builtin. I don't understand the rationale here. Surely

Re: [PATCH v3 4/9] irqchip/gic-v2: Parse and export virtual GIC information

2016-03-14 Thread Julien Grall
Hi Christoffer, On 09/03/16 05:14, Christoffer Dall wrote: On Tue, Mar 08, 2016 at 11:29:28AM +, Julien Grall wrote: For now, the firmware tables are parsed 2 times: once in the GIC drivers, the other timer when initializing the vGIC. It means code duplication and make more tedious to add t

[GIT PULL] scheduler updates for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest sched-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-core-for-linus # HEAD: f9c904b7613b8b4c85b10cd6b33ad41b2843fa9d sched/cputime: Fix steal_account_process_tick() to always return jiffies The main changes in

Re: [PATCH 2/2] ARM: multi_v7_defconfig: enable CONFIG_REGULATOR_PWM=y

2016-03-14 Thread Thierry Reding
On Sat, Mar 12, 2016 at 08:51:40PM +0800, Andy Yan wrote: > Some platform like Rockchip rk3066 use pwm as a regulator to modulate > cpu voltage, so pwm regulator should be enabled at system boot time if > the system want to run with high frequency. > > Signed-off-by: Andy Yan > --- > > arch/arm

Re: [ANNOUNCE] util-linux v2.28-rc1

2016-03-14 Thread Karel Zak
On Sun, Mar 13, 2016 at 09:32:24PM +0100, Samuel Thibault wrote: > sigset_t is not a structure on Hurd. Applications are not supposed to > assume what it is, and the first thing that sulogin.c does on it is > sigemptyset already anyway OK, fixed. Karel -- Karel Zak http://karelzak.blog

Re: [PATCH] media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32

2016-03-14 Thread tiffany lin
On Mon, 2016-03-14 at 08:28 -0300, Mauro Carvalho Chehab wrote: > Em Mon, 14 Mar 2016 18:41:46 +0800 > Tiffany Lin escreveu: > > > Change-Id: Idac449fae5059a3ce255340e6da491f8bd83af7a > > We don't need change-id at the Kernel, but we do need a proper patch > description. > Hi Mauro, Sorry, I a

Re: [PART1 RFC v2 03/10] svm: Introduce new AVIC VMCB registers

2016-03-14 Thread Paolo Bonzini
On 14/03/2016 08:41, Suravee Suthikulpanit wrote: > Any particular reason why you do not recommend the use of bit field? 1) The current coding style is generally not using bitfields 2) Having to review patches that change working code unrelated to AVIC 3) Most of the fields are not even used w

Re: [PART1 RFC v2 06/10] svm: Add interrupt injection via AVIC

2016-03-14 Thread Paolo Bonzini
On 14/03/2016 10:41, Suravee Suthikulpanit wrote: >> >> +kvm_lapic_set_vector(vec, avic_get_bk_page_entry(svm, >> APIC_IRR)); (I think that smp_mb here would make sense, even though we're fine now thanks to re-checking vcpu->mode in kvm_vcpu_kick. >>> >>> Right, t

Re: [PATCH v2 8/8] arm64: kvm: Check support for AArch32 for 32bit guests

2016-03-14 Thread Suzuki K. Poulose
On 02/03/16 09:08, Marc Zyngier wrote: On 25/02/16 09:52, Suzuki K Poulose wrote: Add a check to make sure the system supports AArch32 state before initialising a 32bit guest. Cc: Christoffer Dall Cc: Marc Zyngier Cc: kvm...@lists.cs.columbia.edu Signed-off-by: Suzuki K Poulose ... @@ -3

Re: [PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-14 Thread Paolo Bonzini
On 14/03/2016 07:09, Suravee Suthikulpanit wrote: > By the way, how can we enable APICv only in certain VM? Does Qemu/KVM > have any specific flags that we can pass to enable/disable this? You can use "-cpu kvm64,+hv-synic". Paolo

Re: Suspicious error for CMA stress test

2016-03-14 Thread Vlastimil Babka
On 03/14/2016 08:18 AM, Joonsoo Kim wrote: On Mon, Mar 14, 2016 at 08:06:16AM +0100, Vlastimil Babka wrote: On 03/14/2016 07:49 AM, Joonsoo Kim wrote: On Fri, Mar 11, 2016 at 06:07:40PM +0100, Vlastimil Babka wrote: On 03/11/2016 04:00 PM, Joonsoo Kim wrote: How about something like this? Jus

[GIT PULL] NOHZ updates for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest timers-nohz-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-nohz-for-linus # HEAD: 1f25184656a00a59e3a953189070d42a749f6aee Merge branch 'timers/core-v9' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/lin

Re: Oops in 3.10.99 -- NULL pointer dereference in radeon_fence_ref

2016-03-14 Thread Jiri Slaby
On 03/09/2016, 02:56 PM, Luis Henriques wrote: > On Mon, Mar 07, 2016 at 02:58:51PM -0800, Greg Kroah-Hartman wrote: >> On Mon, Mar 07, 2016 at 10:06:47PM +0100, Christian König wrote: >>> Am 07.03.2016 um 21:46 schrieb Greg Kroah-Hartman: On Sun, Mar 06, 2016 at 07:50:14PM -0700, Erik Anderse

[PATCH] tracing: fix a potential mutex deadlock in register_tracer

2016-03-14 Thread Chunyu Hu
commit d39cdd2036a63eef17a14efbd969405ca5612886 ("tracing: Make tracer_flags use the right set_flag callback") introduces a potential mutex deadlock issue, as it forgets to free the mutex when allocaing the tracer_flags gets fail. This patch fix the issue. The issue was found by Dan Carpenter thro

Re: [PATCH v2 1/2] iommu/io-pgtable: Add MTK 4GB mode in Short-descriptor

2016-03-14 Thread Robin Murphy
On 13/03/16 22:01, Yong Wu wrote: In MT8173, Normally the first 1GB PA is for the HW SRAM and Regs, so the PA will be 33bits if the dram size is 4GB. We have a "DRAM 4GB mode" toggle bit for this. If it's enabled, from CPU's point of view, the dram PA will be from 0x1_~0x1_. In s

Re: [PATCH v2 2/5] perf: Free aux pages in unmap path

2016-03-14 Thread Peter Zijlstra
On Fri, Mar 04, 2016 at 03:42:46PM +0200, Alexander Shishkin wrote: > @@ -4649,10 +4679,22 @@ static void perf_mmap_close(struct vm_area_struct > *vma) >*/ > if (rb_has_aux(rb) && vma->vm_pgoff == rb->aux_pgoff && > atomic_dec_and_mutex_lock(&rb->aux_mmap_count, &event->mma

Re: [PATCH v3 05/14] i2c-octeon: Make adapter timeout tunable

2016-03-14 Thread Jan Glauber
On Sat, Mar 12, 2016 at 04:46:12PM +0100, Wolfram Sang wrote: > On Mon, Mar 07, 2016 at 04:10:48PM +0100, Jan Glauber wrote: > > From: Peter Swain > > > > Make the i2c adapter timeout a module parameter to allow upper-level > > target device drivers to retry with their own logic before their own

Re: [PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Rafael J. Wysocki
On Mon, Mar 14, 2016 at 11:23 AM, Mika Westerberg wrote: > On Mon, Mar 14, 2016 at 07:47:39PM +1000, Dave Airlie wrote: >> > >> >> - if (pcie_port_runtime_suspend_allowed(dev)) >> >> + if (pcie_port_runtime_suspend_allowed(dev)) { >> >> + pm_runtime_allow(&dev->dev); >> > >> >

[PATCH 0/1] recvmmsg use-after-free fix

2016-03-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Hi David, Please consider applying, - Arnaldo Arnaldo Carvalho de Melo (1): net: Fix use after free in the recvmmsg exit path net/socket.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) -- 2.5.0

[PATCH 1/1] net: Fix use after free in the recvmmsg exit path

2016-03-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The syzkaller fuzzer hit the following use-after-free: Call Trace: [] __asan_report_load8_noabort+0x3e/0x40 mm/kasan/report.c:295 [] __sys_recvmmsg+0x6fa/0x7f0 net/socket.c:2261 [< inline >] SYSC_recvmmsg net/socket.c:2281 [] SyS_recvmmsg+0x1

Re: [PATCH v18 21/22] ext4: Add richacl support

2016-03-14 Thread Andreas Gruenbacher
On Fri, Mar 11, 2016 at 3:27 PM, Christoph Hellwig wrote: >> +static inline int >> +ext4_acl_chmod(struct inode *inode, umode_t mode) >> +{ >> + if (IS_RICHACL(inode)) >> + return richacl_chmod(inode, inode->i_mode); >> + return posix_acl_chmod(inode, inode->i_mode); >> +} > >

Re: [PATCH v4 3/3] mmc: sdhci-pci: Do not set DMA mask in enable_dma()

2016-03-14 Thread Adrian Hunter
On 14/03/16 05:15, Alexandre Courbot wrote: > On Tue, Mar 8, 2016 at 10:18 PM, Adrian Hunter > wrote: >> On 07/03/16 04:07, Alexandre Courbot wrote: >>> DMA mask will already be set by sdhci_set_dma_mask(), which >>> is equivalent to the removed code since pci_set_dma_mask() >>> expands to its DM

[GIT PULL] x86/asm changes for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest x86-asm-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-asm-for-linus # HEAD: d05004944206cbbf1c453e179768163731c7c6f1 x86/cpufeature: Enable new AVX-512 features This is another big update. Main changes are: - lots o

[PATCH V2] regulator: pwm: Prints error number along with detail

2016-03-14 Thread Laxman Dewangan
Prints the error number along with error message when any error occurs. This help on getting the reason of failure quickly from log without any code instrument. Signed-off-by: Laxman Dewangan Cc: Lee Jones --- This was part of the series: regulator: pwm: Add supports for multiple instance and vo

Re: [lkp] [ALSA] ca53fbf3a6: WARNING: CPU: 0 PID: 151 at sound/hda/hdac_i915.c:129 pin2port+0x2a/0x40 [snd_hda_core]()

2016-03-14 Thread Takashi Iwai
On Mon, 14 Mar 2016 13:02:39 +0100, Yang, Libin wrote: > > Hi Takashi, > > > -Original Message- > > From: Takashi Iwai [mailto:ti...@suse.de] > > Sent: Monday, March 14, 2016 3:23 PM > > To: kernel test robot > > Cc: l...@01.org; LKML; Wu, Fengguang; Yang, Libin; Lin, Mengdong > > Subject

[GIT PULL] pin control bulk changes for v4.6

2016-03-14 Thread Linus Walleij
Hi Linus, here is the bulk of stuff I queued up for the v4.6 development cycle. At one point things were smashing and clashing in linux-next because of fixes upstream and new patches so I merged in v4.5-rc5 and things calmed down again. Notable is the new MCU drivers, the buzzytalk about IoT is c

Re: [PATCH 0/7] KVM/X86/PPC: Clear up kvm mmu memory barriers and update related comments

2016-03-14 Thread Paolo Bonzini
On 13/03/2016 04:10, Lan Tianyu wrote: > This series is to clear up kvm mmu memory barriers. > 1) Remove redundant barrier (PATCH 1) > 2) Replace origin barrier functions with preferrable ones (PATCH 2, 3, 5) > 3) Fix unpaired barriers (PATCH 4) > 4) Update or add barrier related comments (PATCH

[GIT PULL] x86/boot changes for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest x86-boot-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-boot-for-linus # HEAD: 25b4caf7c50e8c501310e8c515d8518b1850c948 x86/boot: Remove unused 'is_big_kernel' variable Early command line options parsing enhancements f

[GIT PULL] x86/build fix for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest x86-build-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-build-for-linus # HEAD: 8b30a8b3c636a155bab9176ad209964c9c22252d x86/defconfigs/32: Set CONFIG_FRAME_WARN to the Kconfig default A single adjustment of a defconf

Re: [Xen-devel] [patch 1/4] hotplug: Prevent alloc/free of irq descriptors during cpu up/down

2016-03-14 Thread Boris Ostrovsky
On 03/12/2016 04:19 AM, Thomas Gleixner wrote: Boris, On Tue, 14 Jul 2015, Boris Ostrovsky wrote: On 07/14/2015 04:15 PM, Thomas Gleixner wrote: The issue here is that all architectures need that protection and just Xen does irq allocations in cpu_up. So moving that protection into architectu

Re: [PATCH 2/3] rtmutex: Add rt_mutex_init_waiter helper

2016-03-14 Thread Peter Zijlstra
On Tue, Mar 08, 2016 at 10:20:22AM -0800, Davidlohr Bueso wrote: > +++ b/kernel/futex.c > @@ -2778,10 +2778,7 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, > unsigned int flags, >* The waiter is allocated on our stack, manipulated by the requeue >* code while we sleep on

[GIT PULL] x86/fpu changes for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest x86-fpu-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-fpu-for-linus # HEAD: 14ddde78c787248ada9da2f2d04900548ffcf342 Merge branch 'linus' into x86/fpu, to pick up fixes The biggest change in terms of impact is the cha

Re: [PATCH 1/1] KVM: don't allow irq_fpu_usable when the VCPU's XCR0 is loaded

2016-03-14 Thread Paolo Bonzini
On 11/03/2016 22:33, David Matlack wrote: > > Is this better than just always keeping the host's XCR0 loaded outside > > if the KVM interrupts-disabled region? > > Probably not. AFAICT KVM does not rely on it being loaded outside that > region. xsetbv isn't insanely expensive, is it? Maybe to mi

[GIT PULL] x86/microcode changes for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest x86-microcode-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-microcode-for-linus # HEAD: 4ace2e7a48ab426eaa9745ace4c50c6a7adb3992 x86/microcode/intel: Drop orig_sum from ext signature checksum The biggest change in th

[PATCH v2] i2c: tegra: enable multi master mode

2016-03-14 Thread Shardar Shariff Md
Enable multi-master mode in I2C_CNFG reg based on hw features. Using single/multi-master mode bit introduced for Tegra210, whereas multi-master mode is enabled by default in HW for T124 and earlier Tegra SOC. Enabling this bit doesn't explicitly start treating the bus has having multiple masters, b

Re: [PATCH 3/3] rtmutex: Reduce top-waiter blocking on a lock

2016-03-14 Thread Peter Zijlstra
On Tue, Mar 08, 2016 at 10:20:23AM -0800, Davidlohr Bueso wrote: > lock->owner = (void *) RT_MUTEX_HAS_WAITERS; > static inline struct task_struct *rt_mutex_owner(struct rt_mutex *lock) > { > return (struct task_struct *) > - ((unsigned long)lock->owner & ~RT_MUTEX_OWNER_

[GIT PULL] x86/mm changes for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest x86-mm-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mm-for-linus # HEAD: 8b8addf891de8a00e4d39fc32f93f7c5eb8feceb x86/mm/32: Enable full randomization on i386 and X86_32 The main changes in this cycle were: - Enabl

[GIT PULL] x86/platform changes for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest x86-platform-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-platform-for-linus # HEAD: c637fa5294cefeda8be73cce20ba6693d22262dc x86/platform/intel/quark: Drop IMR lock bit support Intel Quark and Geode SoC platform up

[GIT PULL] x86/timers update for v4.6

2016-03-14 Thread Ingo Molnar
Linus, Please pull the latest x86-timers-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-timers-for-linus # HEAD: c25323c07345a843a56a294047b130dfd9250fad x86/tsc: Use topology functions A single simplification of the x86 TSC code. Thanks,

Re: [PATCH V5 02/10] perf/amd/iommu: Consolidate and move perf_event_amd_iommu header

2016-03-14 Thread Suravee Suthikulpanit
Hi, On 3/14/16 16:58, Peter Zijlstra wrote: On Mon, Mar 14, 2016 at 12:26:00PM +0700, Suravee Suthikulpanit wrote: Hi, On 03/12/2016 08:22 PM, Peter Zijlstra wrote: On Tue, Feb 23, 2016 at 08:12:36AM -0600, Suravee Suthikulpanit wrote: From: Suravee Suthikulpanit First, this patch move arc

Re: [lkp] [drm/i915] 0bbca274a3: 3.6% piglit.time.elapsed_time

2016-03-14 Thread Ville Syrjälä
On Mon, Mar 14, 2016 at 10:14:37AM +0800, kernel test robot wrote: > FYI, we noticed that piglit.time.elapsed_time 3.6% regression on > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit 0bbca274a31c2366414d8d3f95e03d1c4674d93f ("drm/i915: Actually retry > with b

[GIT PULL] First round of KVM changes for 4.6

2016-03-14 Thread Paolo Bonzini
Linus, The following changes since commit fc77dbd34c5c99bce46d40a2491937c3bcbd10af: Linux 4.5-rc6 (2016-02-28 08:41:20 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to f958ee745f70b60d0e41927cab2c0731

Re: [PATCH 4/3] rtmutex: Avoid barrier in rt_mutex_handle_deadlock

2016-03-14 Thread Peter Zijlstra
On Tue, Mar 08, 2016 at 02:05:39PM -0800, Davidlohr Bueso wrote: > The very nature of rt_mutex_handle_deadlock() implies that this > patch is merely a formality, as in practice the saved barrier > is of little use. That said, we can relax setting the task state > and be done with it; blocking uncon

Re: [PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-14 Thread Tomeu Vizoso
On 2 December 2014 at 10:15, Mark Yao wrote: > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > new file mode 100644 > index 000..e7ca25b > --- /dev/null > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > @@ -0,0 +1,1455 @@ ... > +s

Re: [PATCH 2/2] fuse: Add reference counting for fuse_io_priv

2016-03-14 Thread Miklos Szeredi
On Fri, Mar 11, 2016 at 10:35:34AM -0600, Seth Forshee wrote: > The req member of fuse_io_priv serves two purposes. First is to > track the number of oustanding async requests to the server and > to signal that the io request is completed. The second is to be a > reference count on the structure to

Re: [PATCH] kdb: Replace strncasecmp with strcasecmp

2016-03-14 Thread Daniel Thompson
On 14/03/16 02:27, Joe Perches wrote: Remove the unnecessary last sizeof("foo") argument to strncasecmp using strcasecmp without that sizeof as it iss equivalent, simpler and smaller. Signed-off-by: Joe Perches Reviewed-by: Daniel Thompson --- kernel/debug/kdb/kdb_bp.c | 6 +++--- 1 fi

Re: [PATCH V14 5/9] dma: qcom_hidma: implement lower level hardware interface

2016-03-14 Thread Sinan Kaya
On 3/13/2016 12:00 PM, Vinod Koul wrote: > On Fri, Mar 11, 2016 at 04:59:23PM -0500, Sinan Kaya wrote: >> Vinod, >> >> On 3/11/2016 2:29 PM, Sinan Kaya wrote: >>> I have done the renaming. This is all left for me to post a follow up. >> >> I just posted v15 (forgot to put v15 on 4/4). > > Don't do

Re: [PATCH 1/2] fuse: do not use iocb after it may have been freed

2016-03-14 Thread Miklos Szeredi
On Fri, Mar 11, 2016 at 10:35:33AM -0600, Seth Forshee wrote: > From: Robert Doebbelin > > Reading wrong data may cause the IO thread to starve waiting for completion. > The issue was introduced with commit 04b2fa9 and thus affects kernel >= 4.1. > It > was discovered by KASan: Thanks, queued.

Re: [PATCH V14 5/9] dma: qcom_hidma: implement lower level hardware interface

2016-03-14 Thread Sinan Kaya
Hi Vinod, On 3/13/2016 11:59 AM, Vinod Koul wrote: > I would write this as: > > memcpy(lldev->tre_ring + lldev->tre_write_offset, > &tre->tre_local[0], TRE_SIZE); > > To make it look more readable Got it. > > >> >> > + lldev->tx_status_list[tre->idx].err_co

Re: [patch] drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()

2016-03-14 Thread Oded Gabbay
On Fri, Mar 11, 2016 at 9:51 AM, Dan Carpenter wrote: > At the end of the function we expect "status" to be zero, but it's > either -EINVAL or unitialized. > > Fixes: 788bf83db301 ('drm/amdkfd: Add wave control operation to debugger') > Signed-off-by: Dan Carpenter > > diff --git a/drivers/gpu/dr

[GIT PULL] hwmon updates for v4.6

2016-03-14 Thread Guenter Roeck
Hi Linus, Please pull hwmon updates for Linux v4.6 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.6 Thanks, Guenter -- The following changes since commit fc77dbd34c5c99bce46d40a2491937c3bcbd10af: Linux 4.5-rc6 (2016-02-28 0

Re: [PATCH v3 3/5] x86/paravirt: Add paravirt_{read,write}_msr

2016-03-14 Thread Paolo Bonzini
On 11/03/2016 20:06, Andy Lutomirski wrote: > This adds paravirt hooks for unsafe MSR access. On native, they > call native_{read,write}_msr. On Xen, they use > xen_{read,write}_msr_safe. > > Nothing uses them yet for ease of bisection. The next patch will > use them in rdmsrl, wrmsrl, etc. >

Re: [PATCH v2 2/5] perf: Free aux pages in unmap path

2016-03-14 Thread Alexander Shishkin
Peter Zijlstra writes: > On Fri, Mar 04, 2016 at 03:42:46PM +0200, Alexander Shishkin wrote: >> @@ -4649,10 +4679,22 @@ static void perf_mmap_close(struct vm_area_struct >> *vma) >> */ >> if (rb_has_aux(rb) && vma->vm_pgoff == rb->aux_pgoff && >> atomic_dec_and_mutex_lock(&rb

Re: Dear Friend, (BUSINESS PROPOSAL)

2016-03-14 Thread Adnan El-Sheriff
Hello, My Names are Adnan El-Sheriff, A businessman from Jordan, real estate developer and contractor with projects. It is my pleasure to contact you for a business joint venture partnership which I intend to establish in any country where business climate is good and lucrative. Though I have no

unshare(CLONE_VM) Re: [PATCH] unshare: Use rcu_assign_pointer when setting sighand

2016-03-14 Thread Julian Smith
On Sat, 18 Mar 2006 20:24:51 +0300 Oleg Nesterov wrote: [...] > However, I stronly beleive unshare(CLONE_VM) is buggy. > > sys_unshare: > > > if (new_mm) { > ... > new_mm = mm; > } > > ... > > bad_unshare_cl

[PATCH 2/3] net: mediatek: remove incorrect dma_mask assignment

2016-03-14 Thread Arnd Bergmann
Device drivers should not mess with the DMA mask directly, but instead call dma_set_mask() etc if needed. In case of the mtk_eth_soc driver, the mask already gets set correctly when the device is created, and setting it again is against the documented API. This removes the incorrect setting. Sig

[PATCH 3/3] net: mediatek: check device_reset return code

2016-03-14 Thread Arnd Bergmann
The device_reset() function may fail, so we have to check its return value, e.g. to make deferred probing work correctly. gcc warns about it because of the warn_unused_result attribute: drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_probe': drivers/net/ethernet/mediatek/mtk_eth_soc.

[PATCH 1/3] net: mediatek: use dma_addr_t correctly

2016-03-14 Thread Arnd Bergmann
dma_alloc_coherent() expects a dma_addr_t pointer as its argument, not an 'unsigned int', and gcc correctly warns about broken code in the mtk_init_fq_dma function: drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_init_fq_dma': drivers/net/ethernet/mediatek/mtk_eth_soc.c:463:13: error

Re: [RFC PATCH V2] checkpatch: Check output format style of __func__ uses

2016-03-14 Thread Joe Perches
On Mon, 2016-03-14 at 09:29 +0100, Julia Lawall wrote: > On Mon, 14 Mar 2016, Joe Perches wrote: > > On Mon, 2016-03-14 at 06:19 +0100, Julia Lawall wrote: > > > On Sun, 13 Mar 2016, Joe Perches wrote: > > > > Loggng messages that emit function names have many different forms. > > > > Perhaps it'd

Re: Suspicious error for CMA stress test

2016-03-14 Thread Joonsoo Kim
2016-03-14 21:30 GMT+09:00 Vlastimil Babka : > On 03/14/2016 08:18 AM, Joonsoo Kim wrote: >> >> On Mon, Mar 14, 2016 at 08:06:16AM +0100, Vlastimil Babka wrote: >>> >>> On 03/14/2016 07:49 AM, Joonsoo Kim wrote: On Fri, Mar 11, 2016 at 06:07:40PM +0100, Vlastimil Babka wrote: > >

[GIT PULL] EDAC queue for 4.6

2016-03-14 Thread Borislav Petkov
Hi Linus, please pull the EDAC pile for 4.6. Thanks. --- The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d: Linux 4.5-rc1 (2016-01-24 13:06:47 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git tags/edac_for_4.6

[PATCH] arc: use ezchip network driver

2016-03-14 Thread Lada Trimasova
Since ezchip network driver was adapted to little endian architecture this patch provides the corresponding arch/arc/{boot/dts,configs}/ updates so we can switch over to this device-model/driver for OSCI platform. Signed-off-by: Lada Trimasova Cc: Alexey Brodkin Cc: Vineet Gupta : --- arch/arc/

[PATCH] USB: input: powermate: fix oops with malicious USB descriptors

2016-03-14 Thread Josh Boyer
The powermate driver expects at least one valid USB endpoint in its probe function. If given malicious descriptors that specify 0 for the number of endpoints, it will crash. Validate the number of endpoints on the interface before using them. The full report for this issue can be found here: htt

Re: [lkp] [i2c] 95026658c4: WARNING: CPU: 0 PID: 1 at drivers/i2c/i2c-core.c:1930 i2c_register_driver+0x2c/0x79()

2016-03-14 Thread Sudip Mukherjee
On Mon, Mar 14, 2016 at 02:14:19AM +0100, Wolfram Sang wrote: > On Mon, Mar 14, 2016 at 08:47:59AM +0800, kernel test robot wrote: > > FYI, we noticed the below changes on > > > > https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux i2c/for-next > > commit 95026658c46ea2d94498d0dac1282e28cd47

[RFC][PATCH v4 2/2] printk: Skip messages on oops

2016-03-14 Thread Sergey Senozhatsky
From: Jan Kara When there are too many messages in the kernel printk buffer it can take very long to print them to console (especially when using slow serial console). This is undesirable during oops so when we encounter oops and there are more than 100 messages to print, print just the newest 10

[RFC][PATCH v4 1/2] printk: Make printk() completely async

2016-03-14 Thread Sergey Senozhatsky
From: Jan Kara Currently, printk() sometimes waits for message to be printed to console and sometimes it does not (when console_sem is held by some other process). In case printk() grabs console_sem and starts printing to console, it prints messages from kernel printk buffer until the buffer is e

[RFC][PATCH v4 0/2] printk: Make printk() completely async

2016-03-14 Thread Sergey Senozhatsky
Hello, RFC The patch set is based on slightly updated Jan Kara's patches. This patch set makes printk() completely asynchronous: new messages are getting upended to the kernel printk buffer, but instead of 'direct' printing the actual print job is performed by a dedicated kthread. This has the

RE: [PATCH][v3] ACPI: Do not report _OSI("Darwin") when acpi_osi=!Darwin provided

2016-03-14 Thread Chen, Yu C
Hi Lv, > -Original Message- > From: Zheng, Lv > Sent: Monday, February 22, 2016 4:56 PM > To: Chen, Yu C; linux-a...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; r...@rjwysocki.net; l...@kernel.org; > matthew.garr...@nebula.com; andy.shevche...@gmail.com > Subject: RE: [PATCH][v3] AC

Re: [PATCH v4 0/7] mtd: nand: Fix support for NAND DMA prefetch

2016-03-14 Thread Franklin S Cooper Jr.
On 03/11/2016 08:02 AM, Roger Quadros wrote: > Franklin, > > On 11/03/16 01:56, Franklin S Cooper Jr wrote: >> NAND DMA prefetch has been broken for awhile and seems to have only >> worked for SDMA based devices >> >> This patchset fixes DMA prefetch to work on both EDMA and SDMA devices >> >> Te

[PATCH 4/5] ath9k: fix misleading indentation

2016-03-14 Thread Arnd Bergmann
A cleanup patch in linux-3.18 moved around some code in the ath9k driver and left some code to be indented in a misleading way, made worse by the addition of some new code for p2p mode, as discovered by a new gcc-6 warning: drivers/net/wireless/ath/ath9k/init.c: In function 'ath9k_set_hw_capab': d

[PATCH 1/5] mlx4: add missing braces in verify_qp_parameters

2016-03-14 Thread Arnd Bergmann
The implementation of QP paravirtualization back in linux-3.7 included some code that looks very dubious, and gcc-6 has grown smart enough to warn about it: drivers/net/ethernet/mellanox/mlx4/resource_tracker.c: In function 'verify_qp_parameters': drivers/net/ethernet/mellanox/mlx4/resource_track

Re: [PATCH] i2c: immediately mark ourselves as registered

2016-03-14 Thread Sudip Mukherjee
On Mon, Mar 14, 2016 at 10:53:26AM +0100, Wolfram Sang wrote: > Mark the i2c bus as registered right after the the bus_register call, > not at the end of init. Otherwise, we can't register our own dummy > driver. > > Reported-by: Thierry Reding > Signed-off-by: Wolfram Sang > Fixes: 95026658c46e

[PATCH v4 02/06] devicetree: bindings: R-Car Gen2 CMT0 and CMT1 bindings

2016-03-14 Thread Magnus Damm
From: Magnus Damm Add documentation for new separate CMT0 and CMT1 DT compatible strings for R-Car Gen2. These compat strings allow us to enable CMT1-specific features in the driver. The old compat strings will be deprecated in the not so distant future. Signed-off-by: Magnus Damm Acked-by: Gee

[PATCH v4 06/06] devicetree: bindings: Remove deprecated properties

2016-03-14 Thread Magnus Damm
From: Magnus Damm The deprecated DT properties are part of the GIT history, no need to keep them around any longer. Signed-off-by: Magnus Damm Acked-by: Rob Herring Acked-by: Geert Uytterhoeven --- Changes since V3: - None Changes since V2: - Added Acked-by from Rob - Fixed properties

[PATCH v4 05/06] devicetree: bindings: Remove unused 32-bit CMT bindings

2016-03-14 Thread Magnus Damm
From: Magnus Damm Remove the 32-bit CMT compat strings to reduce maintenance burden. It should be fine to break DT compatibility because the 32-bit 32-bit CMT DT binding was never part of any upstream DTS file. Signed-off-by: Magnus Damm Acked-by: Rob Herring Acked-by: Geert Uytterhoeven ---

[PATCH v4 03/06] devicetree: bindings: r8a73a4 and R-Car Gen2 CMT bindings

2016-03-14 Thread Magnus Damm
From: Magnus Damm Update SoC-specific bindings for r8a73a4 and R-Car Gen2 CMT0 and CMT1. Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart Acked-by: Rob Herring --- Changes since V3: - Fix trailing whitespace damage Changes since V2: - Added Acked-by fr

[PATCH 3/5] ath9k: fix buffer overrun for ar9287

2016-03-14 Thread Arnd Bergmann
Code that was added back in 2.6.38 has an obvious overflow when accessing a static array, and at the time it was added only a code comment was put in front of it as a reminder to have it reviewed properly. This has not happened, but gcc-6 now points to the specific overflow: drivers/net/wireless/

[PATCH v4 00/06] clocksource: sh_cmt: DT binding rework V4

2016-03-14 Thread Magnus Damm
Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart (For patch 1-3) Acked-by: Rob Herring --- Written on top of next-20160314 Documentation/devicetree/bindings/timer/renesas,cmt.txt | 83 ++- 1 file changed, 37 insertions(+), 46 deletions(-)

Re: [PATCH V5 02/10] perf/amd/iommu: Consolidate and move perf_event_amd_iommu header

2016-03-14 Thread Borislav Petkov
On Mon, Mar 14, 2016 at 08:37:02PM +0700, Suravee Suthikulpanit wrote: > Basically, we are trying to match the current Perf hierarchy for AMD IOMMU > (arch/x86/events/amd/iommu.c). I can put it into > arch/x86/include/asm/perf_amd_iommu.h. What would you prefer? Yeah, I was going to say the same t

[PATCH 2/5] farsync: fix off-by-one bug in fst_add_one

2016-03-14 Thread Arnd Bergmann
gcc-6 finds an out of bounds access in the fst_add_one function when calculating the end of the mmio area: drivers/net/wan/farsync.c: In function 'fst_add_one': drivers/net/wan/farsync.c:418:53: error: index 2 denotes an offset greater than size of 'u8[2][8192] {aka unsigned char[2][8192]}' [-Wer

[PATCH v4 01/06] devicetree: bindings: Remove sh7372 CMT binding

2016-03-14 Thread Magnus Damm
From: Magnus Damm Remove the sh7372 CMT compat string to reduce maintenance burden. It should be fine to break DT compatibility because: 1) The sh7372 SoC support has been removed from upstream 2) The sh7372 CMT DT binding was never part of upstream DTS 3) The CMT driver never matches on the sh7

[PATCH] Firmware: broadcom sprom: clarifiy SSB dependency

2016-03-14 Thread Arnd Bergmann
The broadcom firmware drvier calls into the ssb SPROM code if that is enabled, but it fails if the SSB code is in a loadable module because the bcm47xx firmware is always built-in: drivers/firmware/built-in.o: In function `bcm47xx_sprom_register_fallbacks': bcm47xx_sprom.c:(.text+0x11c4): undefine

[PATCH v4 04/06] devicetree: bindings: Deprecate property, update example

2016-03-14 Thread Magnus Damm
From: Magnus Damm Deprecate "renesas,channels-mask" and update the r8a7790 CMT example. Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart Acked-by: Rob Herring --- Changes since V3: - Update example to use new compat string format for fallback entries N

[PATCH] drm/exynos: fix error handling in exynos_drm_subdrv_open

2016-03-14 Thread Arnd Bergmann
gcc-6 warns about a pointless loop in exynos_drm_subdrv_open: drivers/gpu/drm/exynos/exynos_drm_core.c: In function 'exynos_drm_subdrv_open': drivers/gpu/drm/exynos/exynos_drm_core.c:104:199: error: self-comparison always evaluates to false [-Werror=tautological-compare] list_for_each_entry_rev

Re: [PATCH] i2c: i2c-core: do not use bus internal data

2016-03-14 Thread Sudip Mukherjee
On Mon, Mar 14, 2016 at 10:28:10AM +0100, Wolfram Sang wrote: > > > This doesn't work. I see a number of these WARN_ON()s trigger and I > > think the reason is that i2c_init() always fails now. The cause seems to > > be that i2c_init() calls i2c_add_driver(&dummy_driver), which will now > > always

[PATCH 5/5] net: caif: fix misleading indentation

2016-03-14 Thread Arnd Bergmann
gcc points out code that is not indented the way it is interpreted: net/caif/cfpkt_skbuff.c: In function 'cfpkt_setlen': net/caif/cfpkt_skbuff.c:289:4: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] return cfpkt_getlen(pkt); ^~ net/caif/cfpkt

[PATCH] nouveau: fix nv40_perfctr_next() cleanup regression

2016-03-14 Thread Arnd Bergmann
gcc-6 warns about code in the nouveau driver that is obviously silly: drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c: In function 'nv40_perfctr_next': drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c:62:19: warning: self-comparison always evaluats to false [-Wtautological-compare] if (pm->sequence

Re: [PATCH] x86/efi: Always map boot service regions into new EFI page tables

2016-03-14 Thread Matt Fleming
On Mon, 14 Mar, at 01:05:02PM, Ingo Molnar wrote: > > There's a number of such occurences that look suspicious: > > triton:~/tip> git grep 'cpa->pfn.*<<.*PAGE_SHIFT' arch/x86/ > arch/x86/mm/pageattr.c: set_pmd(pmd, __pmd(cpa->pfn << PAGE_SHIFT | > _PAGE_PSE | > arch/x86/mm/pageattr.c:

gcc-6.0 warnings for scsi

2016-03-14 Thread Arnd Bergmann
gcc-6 found a couple of bugs in scsi drivers that are not yet fixed in linux-next. In all three cases, the code is indented in a rather misleading way, but actually correct. I think it would be good to have this fixed in 4.6, but no backports are needed even though the problems have all been aroun

[PATCH 2/3] lpfc: fix misleading indentation

2016-03-14 Thread Arnd Bergmann
gcc-6 complains about the indentation of the lpfc_destroy_vport_work_array() call in lpfc_online(), which clearly doesn't look right: drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_online': drivers/scsi/lpfc/lpfc_init.c:2880:3: warning: statement is indented as if it were guarded by... [-Wmisle

Re: [PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Alex Deucher
On Sun, Mar 13, 2016 at 10:19 PM, Dave Airlie wrote: > On 11 March 2016 at 23:45, Rafael J. Wysocki wrote: >> On Friday, March 11, 2016 12:58:15 PM Mika Westerberg wrote: >>> On Thu, Mar 10, 2016 at 09:57:09PM +0100, Rafael J. Wysocki wrote: >>> > > It doesn't seem to do any runtime PM, >>> > > I

[PATCH 3/3] megaraid_sas: add missing curly braces in ioctl handler

2016-03-14 Thread Arnd Bergmann
gcc-6 found a dubious indentation in the megasas_mgmt_fw_ioctl function: drivers/scsi/megaraid/megaraid_sas_base.c: In function 'megasas_mgmt_fw_ioctl': drivers/scsi/megaraid/megaraid_sas_base.c:6658:4: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation] kbuf

Re: [PATCH 1/2] vga_switcheroo: add power support for windows 10 machines.

2016-03-14 Thread Mika Westerberg
On Mon, Mar 14, 2016 at 01:50:41PM +0100, Rafael J. Wysocki wrote: > On Mon, Mar 14, 2016 at 11:23 AM, Mika Westerberg > wrote: > > On Mon, Mar 14, 2016 at 07:47:39PM +1000, Dave Airlie wrote: > >> > > >> >> - if (pcie_port_runtime_suspend_allowed(dev)) > >> >> + if (pcie_port_runtime_susp

<    1   2   3   4   5   6   7   8   9   >