[PATCH bpf-next v2] bpf: support raw tracepoints in modules

2018-12-12 Thread Matt Mullins
Distributions build drivers as modules, including network and filesystem drivers which export numerous tracepoints. This enables bpf(BPF_RAW_TRACEPOINT_OPEN) to attach to those tracepoints. Signed-off-by: Matt Mullins --- v1->v2: * avoid taking the mutex in bpf_event_notify when op is neither

Re: [PATCH] serial: 8250: Fix clearing FIFOs in RS485 mode again

2018-12-12 Thread Paul Burton
Hi Marek / Greg / all, On Mon, Sep 03, 2018 at 12:44:52AM +, Marek Vasut wrote: > The 8250 FIFOs indeed need to be cleared after stopping transmission in > RS485 mode without SER_RS485_RX_DURING_TX flag set. But there are two > problems with the approach taken by the previous patch from Fixes

Re: [alsa-devel] [PATCH 0/2] Graph fixes for using multiple endpoints per port

2018-12-12 Thread Tony Lindgren
* Kuninori Morimoto [181213 00:24]: > (snip) > > foo = < 0>; > > bar = < 1>; > > Ahh, it looks nice idea ! > but hmm..., it seems dtc doesn't allow us to use #address-cells = <2> > for "remote-endpoint". OK. Yeah let's scrap that then, it does not suit for endpoints it seems. Thanks for

Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes"

2018-12-12 Thread Daniel Wang
In case this was buried in previous messages, the commit I'd like to get backported to 4.14 is dbdda842fe96f: printk: Add console owner and waiter logic to load balance console writes. But another followup patch that fixes a bug in that patch is also required. That is c14376de3a1b: printk: Wake

Re: [PATCH 1/8] perf: Allow to block process in syscall tracepoints

2018-12-12 Thread Dmitry V. Levin
Hi Peter, On Mon, Dec 10, 2018 at 11:18:18AM +0100, Peter Zijlstra wrote: > On Sat, Dec 08, 2018 at 12:38:05PM -0500, Steven Rostedt wrote: > > On Sat, 8 Dec 2018 11:44:23 +0100, Peter Zijlstra wrote: > > > > > Why do we care about lost events? Because strace records *all* events, > > > > as

Re: [PATCH] rtlwifi: Fix non-working BSS STA mode

2018-12-12 Thread Pkshih
On Wed, 2018-12-12 at 13:13 +0800, Kai-Heng Feng wrote: > Once BSS STA mode gets started, it can be scanned by other clients but > cannot entablish a connection.          ^^^ typo: establish > > Turns out the set_bcn_reg() and its *_set_beacon_related_registers() > callbacks never get called so

Re: rcu_preempt caused oom

2018-12-12 Thread Paul E. McKenney
On Wed, Dec 12, 2018 at 11:13:22PM +, He, Bo wrote: > I don't see the rcutree.sysrq_rcu parameter in v4.19 kernel, I also checked > the latest kernel and the latest tag v4.20-rc6, not see the sysrq_rcu. > Please correct me if I have something wrong. That would be because I sent you the wrong

Re: [PATCH net-next] bnxt: remove printing of hwrm message

2018-12-12 Thread David Miller
From: Jonathan Toppins Date: Wed, 12 Dec 2018 11:58:51 -0500 > bnxt_en :19:00.0 (unregistered net_device) (uninitialized): hwrm > req_type 0x190 seq id 0x6 error 0x > > The message above is commonly seen when a newer driver is used on > hardware with older firmware. The issue is this

Re: [PATCH v2 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-12 Thread Logan Gunthorpe
On 2018-12-12 5:25 p.m., Jon Mason wrote: > On Wed, Dec 12, 2018 at 7:01 PM Logan Gunthorpe wrote: >> >> >> >> On 2018-12-12 4:57 p.m., Jon Mason wrote: >>> On Wed, Dec 12, 2018 at 6:42 PM Logan Gunthorpe wrote: On 2018-12-12 4:00 p.m., Jon Mason wrote: > So, you based

RE: KASAN: use-after-free Read in tipc_group_cong

2018-12-12 Thread Jon Maloy
> -Original Message- > From: syzbot > Sent: 12-Dec-18 06:11 > To: da...@davemloft.net; Jon Maloy ; linux- > ker...@vger.kernel.org; net...@vger.kernel.org; syzkaller- > b...@googlegroups.com; tipc-discuss...@lists.sourceforge.net; > ying@windriver.com > Subject: KASAN:

[PATCH] quota: Lock s_umount in exclusive mode for Q_XQUOTA{ON,OFF} quotactls.

2018-12-12 Thread Javier Barrio
Commit 1fa5efe3622db58cb8c7b9a50665e9eb9a6c7e97 (ext4: Use generic helpers for quotaon and quotaoff) made possible to call quotactl(Q_XQUOTAON/OFF) on ext4 filesystems with sysfile quota support. This leads to calling dquot_enable/disable without s_umount held in excl. mode, because

Re: [PATCH v2 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-12 Thread Logan Gunthorpe
On 2018-12-12 4:57 p.m., Jon Mason wrote: > On Wed, Dec 12, 2018 at 6:42 PM Logan Gunthorpe wrote: >> >> >> >> On 2018-12-12 4:00 p.m., Jon Mason wrote: >>> So, you based your patches on a series of patches not in the >>> ntb/ntb-next branch? Please don't do this. I see nothing in these >>>

Re: [PATCH v2 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-12 Thread Jon Mason
On Wed, Dec 12, 2018 at 7:01 PM Logan Gunthorpe wrote: > > > > On 2018-12-12 4:57 p.m., Jon Mason wrote: > > On Wed, Dec 12, 2018 at 6:42 PM Logan Gunthorpe wrote: > >> > >> > >> > >> On 2018-12-12 4:00 p.m., Jon Mason wrote: > >>> So, you based your patches on a series of patches not in the >

Re: [PATCH 6/7] selftest/bpf: remove redundant parenthesis

2018-12-12 Thread Jakub Kicinski
On Wed, 12 Dec 2018 21:15:52 +, Edward Cree wrote: > On 12/12/18 19:04, Jakub Kicinski wrote: > > On Tue, 11 Dec 2018 20:56:06 +0900, Alice Ferrazzi wrote: > >> Signed-off-by: Alice Ferrazzi > >> --- > >> tools/testing/selftests/bpf/test_offload.py | 2 +- > >> 1 file changed, 1

Re: [PATCHv2 net 0/3] net: add support for flex_array_resize in flex_array

2018-12-12 Thread David Miller
From: Neil Horman Date: Wed, 12 Dec 2018 07:00:15 -0500 > I suggest xin respond to messageid > 20180523011821.12165-6-kent.overstr...@gmail.com> and send a NAK, > indicating that his patch seems like it will break the build, as, > looking through it, it never removes flex_array calls from the

Re: [alsa-devel] [PATCH 0/2] Graph fixes for using multiple endpoints per port

2018-12-12 Thread Kuninori Morimoto
Hi Tony > /* Codec has 1 DAI */ > Codec { > port { > #address-cells = <2>; > #size-cells = <1>; > > ep: endpoint { > remote-endpoint = ; > }; >

Re: [PATCH v2] netdevsim: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-12 Thread David Miller
From: Yangtao Li Date: Wed, 12 Dec 2018 11:40:07 -0500 > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li > --- > v2: > -update subject Applied, thank you.

Re: [PATCH 4.19 096/139] ALSA: hda/realtek - fix the pop noise on headphone for lenovo laptops

2018-12-12 Thread Hui Wang
Hello Thomas, I have sent a new patch to fix this LED regression, after applying this patch (ALSA: hda/realtek - fix the pop noise on headphone for lenovo laptops) and the new patch (ALSA: hda/realtek - Fix the mute LED regresion on Lenovo X1  Carbon),  the issue will be fixed. This is the

Re: linux-next: Signed-off-by missing for commits in the bpf-next tree

2018-12-12 Thread Alexei Starovoitov
On Wed, Dec 12, 2018 at 3:45 PM Bart Van Assche wrote: > > Are you aware of Linus' opinion about rebasing? If not, please have a look > at https://lkml.org/lkml/2016/3/26/71 or https://lwn.net/Articles/328436/. very much aware. above is not applicable to this use case.

Re: [PATCH v2 7/7] ima: Support platform keyring for kernel appraisal

2018-12-12 Thread Thiago Jung Bauermann
Nayna Jain writes: > On secure boot enabled systems, the bootloader verifies the kernel > image and possibly the initramfs signatures based on a set of keys. A > soft reboot(kexec) of the system, with the same kernel image and > initramfs, requires access to the original keys to verify the >

Re: [PATCH v2 7/7] ima: Support platform keyring for kernel appraisal

2018-12-12 Thread Mimi Zohar
On Wed, 2018-12-12 at 16:14 -0200, Thiago Jung Bauermann wrote: [snip] > Subject: [PATCH] ima: Only use the platform keyring if it's enabled > > Signed-off-by: Thiago Jung Bauermann Good catch!  Thanks. Mimi > --- > security/integrity/ima/ima_appraise.c | 3 ++- > 1 file changed, 2

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-12 Thread Dan Williams
On Wed, Dec 12, 2018 at 4:01 PM Jerome Glisse wrote: > > On Wed, Dec 12, 2018 at 04:37:03PM -0700, Jason Gunthorpe wrote: > > On Wed, Dec 12, 2018 at 04:53:49PM -0500, Jerome Glisse wrote: > > > > Almost, we need some safety around assuming that DMA is complete the > > > > page, so the

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-12 Thread Jerome Glisse
On Wed, Dec 12, 2018 at 04:37:03PM -0700, Jason Gunthorpe wrote: > On Wed, Dec 12, 2018 at 04:53:49PM -0500, Jerome Glisse wrote: > > > Almost, we need some safety around assuming that DMA is complete the > > > page, so the notification would need to go all to way to userspace > > > with something

Re: [PATCH v2 2/7] integrity: Load certs to the platform keyring

2018-12-12 Thread Thiago Jung Bauermann
Nayna Jain writes: > The patch refactors integrity_load_x509(), making it a wrapper for a new > function named integrity_add_key(). This patch also defines a new > function named integrity_load_cert() for loading the platform keys. > > Signed-off-by: Nayna Jain > Reviewed-by: Mimi Zohar >

Re: [PATCH v2 1/7] integrity: Define a trusted platform keyring

2018-12-12 Thread Thiago Jung Bauermann
Nayna Jain writes: > On secure boot enabled systems, a verified kernel may need to kexec > additional kernels. For example, it may be used as a bootloader needing > to kexec a target kernel or it may need to kexec a crashdump kernel. In > such cases, it may want to verify the signature of the

Re: [PATCH v2 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-12 Thread Jon Mason
On Wed, Dec 12, 2018 at 6:42 PM Logan Gunthorpe wrote: > > > > On 2018-12-12 4:00 p.m., Jon Mason wrote: > > So, you based your patches on a series of patches not in the > > ntb/ntb-next branch? Please don't do this. I see nothing in these > > patches which requires that series, which makes

Re: [PATCH][v6] filemap: drop the mmap_sem for all blocking operations

2018-12-12 Thread Andrew Morton
On Wed, 12 Dec 2018 10:27:57 -0500 Josef Bacik wrote: > v5->v6: > - added more comments as per Andrew's suggestion. > - fixed the fpin leaks in the two error paths that were pointed out. > hm, > --- a/mm/filemap.c~filemap-drop-the-mmap_sem-for-all-blocking-operations-v6 > +++ a/mm/filemap.c >

Re: [PATCH] blkcg: handle dying request_queue when associating a blkg

2018-12-12 Thread Bart Van Assche
On Tue, 2018-12-11 at 23:06 -0500, Dennis Zhou wrote: > Hi Bart, > > On Tue, Dec 11, 2018 at 03:16:13PM -0800, Bart Van Assche wrote: > > On Tue, 2018-12-11 at 18:03 -0500, Dennis Zhou wrote: > > > diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c > > > index 6bd0619a7d6e..c30661ddc873 100644

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-12 Thread Dan Williams
On Wed, Dec 12, 2018 at 3:37 PM Jason Gunthorpe wrote: > > On Wed, Dec 12, 2018 at 04:53:49PM -0500, Jerome Glisse wrote: > > > Almost, we need some safety around assuming that DMA is complete the > > > page, so the notification would need to go all to way to userspace > > > with something like a

Gold Offer

2018-12-12 Thread dicko musa
Dear Sir We are Mr. dicko Gold mining company. We are local miners in Republic of Mali, West Africa. We have gold bars in bulk and we are looking for buyer to buy our products. We have in quantity (150)KG and of quality Gold bars. Buyers can visit our mining site in Kayes, Mali.We are dedicated

[PATCH v4 3/5] soc: bcm: bcm2835-pm: Add support for power domains under a new binding.

2018-12-12 Thread Eric Anholt
This provides a free software alternative to raspberrypi-power.c's firmware calls to manage power domains. It also exposes a reset line, where previously the vc4 driver had to try to force power off the domain in order to trigger a reset. Signed-off-by: Eric Anholt Acked-by: Rob Herring ---

[PATCH v4 0/5] BCM2835 PM driver

2018-12-12 Thread Eric Anholt
v4 adds the system-power-controller node to the binding as requested by Stefan. No driver changes are added to make the power controller behavior optional yet, since it's really unrelated to this series. Eric Anholt (5): dt-bindings: soc: Add a new binding for the BCM2835 PM node. (v4)

[PATCH v4 5/5] ARM: bcm283x: Switch V3D over to using the PM driver instead of firmware.

2018-12-12 Thread Eric Anholt
The GRAFX domain only contains V3D, and this driver should be the only accessor of V3D (firmware usage gets disabled when V3D is in the DT), so we can safely make Linux control the GRAFX and GRAFX_V3D power domains. Signed-off-by: Eric Anholt --- v4: no change

[PATCH v4 4/5] ARM: bcm283x: Extend the WDT DT node out to cover the whole PM block. (v4)

2018-12-12 Thread Eric Anholt
It was covering part of the PM block's range, up to the WDT regs. To support the rest of the PM block's functionality, we need the full register range plus the AXI Async Bridge regs for PM sequencing. This doesn't convert any of the consumers over to the new binding yet, since we will need to be

[PATCH v4 1/5] dt-bindings: soc: Add a new binding for the BCM2835 PM node. (v4)

2018-12-12 Thread Eric Anholt
This binding supersedes the bcm2835-pm-wdt binding which only covered enough to provide a watchdog, but the HW block is actually mostly about power domains. Signed-off-by: Eric Anholt Reviewed-by: Rob Herring (v3) --- v4: Add the system-power-controller node.

[PATCH v4 2/5] bcm2835-pm: Move bcm2835-watchdog's DT probe to an MFD.

2018-12-12 Thread Eric Anholt
The PM block that the wdt driver was binding to actually has multiple features we want to expose (power domains, reset, watchdog). Move the DT attachment to a MFD driver and make WDT probe against MFD. Signed-off-by: Eric Anholt Reviewed-by: Guenter Roeck --- v3: don't reset

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-12 Thread John Hubbard
On 12/12/18 3:37 PM, Jason Gunthorpe wrote: > On Wed, Dec 12, 2018 at 04:53:49PM -0500, Jerome Glisse wrote: >>> Almost, we need some safety around assuming that DMA is complete the >>> page, so the notification would need to go all to way to userspace >>> with something like a file lease

Re: [PATCH 4.19 096/139] ALSA: hda/realtek - fix the pop noise on headphone for lenovo laptops

2018-12-12 Thread Thomas Zeitlhofer
Hello, On Tue, Dec 04, 2018 at 11:49:37AM +0100, Greg Kroah-Hartman wrote: > 4.19-stable review patch. If anyone has any objections, please let me > know. > > -- > > From: Hui Wang > > commit c4cfcf6f4297c9256b53790bacbbbd6901fef468 upstream. > > We have several Lenovo

Re: linux-next: Signed-off-by missing for commits in the bpf-next tree

2018-12-12 Thread Bart Van Assche
On Wed, 2018-12-12 at 15:39 -0800, Alexei Starovoitov wrote: > On Thu, Dec 13, 2018 at 09:48:20AM +1100, Stephen Rothwell wrote: > > Hi Alexei, > > > > On Wed, 12 Dec 2018 12:53:11 -0800 Alexei Starovoitov > > wrote: > > > > > > On Thu, Dec 13, 2018 at 07:32:45AM +1100, Stephen Rothwell wrote:

Re: [PATCH 0/5] security: remove needless usage of module header

2018-12-12 Thread James Morris
On Sun, 9 Dec 2018, Paul Gortmaker wrote: > Paul Gortmaker (5): > security: audit and remove any unnecessary uses of module.h > keys: remove needless modular infrastructure from ecryptfs_format > security: fs: make inode explicitly non-modular > security: integrity: make evm_main

Re: [PATCH 2/5] ARC: perf: introduce Kernel PMU events support

2018-12-12 Thread Vineet Gupta
On 12/5/18 9:06 AM, Eugeniy Paltsev wrote: > Export all available ARC architected hardware events as > kernel PMU events to make non-generic events accessible. > > ARC PMU HW allow us to read the list of all available > events names. So we generate kernel PMU event list > dynamically in

Re: [PATCH v2 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-12 Thread Logan Gunthorpe
On 2018-12-12 4:00 p.m., Jon Mason wrote: > So, you based your patches on a series of patches not in the > ntb/ntb-next branch? Please don't do this. I see nothing in these > patches which requires that series, which makes this even more > unnecessary. Since these are fairly trivial, I'm

Re: [v6, PATCH 0/2] add Ethernet driver support for mt2712

2018-12-12 Thread David Miller
From: David Miller Date: Wed, 12 Dec 2018 15:21:14 -0800 (PST) > From: Biao Huang > Date: Wed, 12 Dec 2018 17:35:30 +0800 > >> Changes in v6: >> modifications according to comments from Rob/Andrew/Sean: >> 1. use delay_ps instead of delay stage. >> 2. add comments in driver to avoid

Re: [RFC PATCH v1 0/5] Add support for O_MAYEXEC

2018-12-12 Thread James Morris
On Wed, 12 Dec 2018, Florian Weimer wrote: > * James Morris: > > > If you're depending on the script interpreter to flag that the user may > > execute code, this seems to be equivalent in security terms to depending > > on the user. e.g. what if the user uses ptrace and clears O_MAYEXEC? > >

Re: [PATCH v2 2/4] modules: Add new special vfree flags

2018-12-12 Thread Nadav Amit
> On Dec 11, 2018, at 4:03 PM, Rick Edgecombe > wrote: > > Add new flags for handling freeing of special permissioned memory in vmalloc, > and remove places where the handling was done in module.c. > > This will enable this flag for all architectures. > > Signed-off-by: Rick Edgecombe > ---

Re: [PATCH] debugobjects: Move printk out of db lock critical sections

2018-12-12 Thread Andrew Morton
On Wed, 12 Dec 2018 17:28:14 -0500 Waiman Long wrote: > The db->lock is a raw spinlock and so the lock hold time is supposed > to be short. This will not be the case when printk() is being involved > in some of the critical sections. In order to avoid the long hold time, > in case some messages

Re: linux-next: Signed-off-by missing for commits in the bpf-next tree

2018-12-12 Thread Alexei Starovoitov
On Thu, Dec 13, 2018 at 09:48:20AM +1100, Stephen Rothwell wrote: > Hi Alexei, > > On Wed, 12 Dec 2018 12:53:11 -0800 Alexei Starovoitov > wrote: > > > > On Thu, Dec 13, 2018 at 07:32:45AM +1100, Stephen Rothwell wrote: > > > Hi all, > > > > > > Commits > > > > > > 3bdc28aa2340

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-12 Thread Jason Gunthorpe
On Wed, Dec 12, 2018 at 04:53:49PM -0500, Jerome Glisse wrote: > > Almost, we need some safety around assuming that DMA is complete the > > page, so the notification would need to go all to way to userspace > > with something like a file lease notification. It would also need to > > be backstopped

Re: [PATCH net V2 0/4] Fix various issue of vhost

2018-12-12 Thread David Miller
From: Jason Wang Date: Wed, 12 Dec 2018 18:08:15 +0800 > This series tries to fix various issues of vhost: > > - Patch 1 adds a missing write barrier between used idx updating and > logging. > - Patch 2-3 brings back the protection of device IOTLB through vq > mutex, this fixes possible use

Re: [PATCH 4/5] netfilter: fix missed NULL check in nf_conntrack_proto_pernet_init()

2018-12-12 Thread Pablo Neira Ayuso
On Wed, Dec 05, 2018 at 08:56:29PM +0800, Yafang Shao wrote: > nf_ct_l4proto_net() may return NULL. > That may happens if some module forget to set both l4proto->get_net_proto > and l4proto->net_id. > We'd check the return value here, in case crash happens. > > Signed-off-by: Yafang Shao > --- >

Re: [v6, PATCH 0/2] add Ethernet driver support for mt2712

2018-12-12 Thread David Miller
From: Biao Huang Date: Wed, 12 Dec 2018 17:35:30 +0800 > Changes in v6: > modifications according to comments from Rob/Andrew/Sean: > 1. use delay_ps instead of delay stage. > 2. add comments in driver to avoid confusion. > 2. rewrite set_delay function. > 3. modify binding document for

Re: [PATCH v6 05/13] KVM: nVMX: implement enlightened VMPTRLD and VMCLEAR

2018-12-12 Thread Jim Mattson
On Tue, Oct 16, 2018 at 9:50 AM Vitaly Kuznetsov wrote: > > Per Hyper-V TLFS 5.0b: > > "The L1 hypervisor may choose to use enlightened VMCSs by writing 1 to > the corresponding field in the VP assist page (see section 7.8.7). > Another field in the VP assist page controls the currently active >

[GIT PULL] seccomp updates for next

2018-12-12 Thread Kees Cook
Hi James, Please pull these seccomp changes for next. Thanks! -Kees The following changes since commit ccda4af0f4b92f7b4c308d3acc262f4a7e3affad: Linux 4.20-rc2 (2018-11-11 17:12:31 -0600) are available in the Git repository at:

Re: [PATCH AUTOSEL 4.19 104/123] pstore/ram: Correctly calculate usable PRZ bytes

2018-12-12 Thread Sasha Levin
On Wed, Dec 05, 2018 at 02:57:08PM -0800, Kees Cook wrote: On Wed, Dec 5, 2018 at 1:41 AM Sasha Levin wrote: From: Kees Cook [ Upstream commit 89d328f637b9904b6d4c9af73c8a608b8dd4d6f8 ] The actual number of bytes stored in a PRZ is smaller than the bytes requested by platform data, since

RE: rcu_preempt caused oom

2018-12-12 Thread He, Bo
I don't see the rcutree.sysrq_rcu parameter in v4.19 kernel, I also checked the latest kernel and the latest tag v4.20-rc6, not see the sysrq_rcu. Please correct me if I have something wrong. -Original Message- From: Paul E. McKenney Sent: Thursday, December 13, 2018 5:03 AM To: He, Bo

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
Hi Geert, On Wed, Dec 12, 2018 at 04:07:11PM +0300, Dmitry V. Levin wrote: > On Wed, Dec 12, 2018 at 01:54:05PM +0100, Geert Uytterhoeven wrote: > > On Wed, Dec 12, 2018 at 1:37 PM Dmitry V. Levin wrote: > > > On Wed, Dec 12, 2018 at 01:27:14PM +0100, Geert Uytterhoeven wrote: > > > > On Wed,

[PATCH v11 1/3] ALSA: hda: fix front speakers on Huawei MBXP.

2018-12-12 Thread Ayman Bagabas
This patch solves bug 200501 'Only 2 of 4 speakers playing sound.' https://bugzilla.kernel.org/show_bug.cgi?id=200501 It enables the front speakers on Huawei Matebook X Pro laptops. These laptops come with Dolby Atmos sound system and these pins configuration enables the front speakers.

[PATCH v11 2/3] x86: add support for Huawei WMI hotkeys.

2018-12-12 Thread Ayman Bagabas
This driver adds support for missing hotkeys on some Huawei laptops. Laptops such as the Matebook X have non functioning hotkeys. Whereas newer laptops such as the Matebook X Pro come with working hotkeys out of the box. Old laptops, such as the Matebook X, report hotkey events through ACPI

[PATCH v11 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-12-12 Thread Ayman Bagabas
Some of Huawei laptops come with a LED in the micmute key. This patch enables the use of micmute LED for these devices: 1. Matebook X (19e5:3200), (19e5:3201) 2. Matebook X Pro (19e5:3204) Reviewed-by: Andy Shevchenko Reviewed-by: Takashi Iwai Signed-off-by: Ayman Bagabas ---

[PATCH v11 0/3] Huawei laptops

2018-12-12 Thread Ayman Bagabas
This patch set is based on the new audio LED triggers in topic/leds-trigger branch from git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git Changes in v11: * Minor code changes Changes in v10: * Use ec_get_handle instead of acpi_get_handle since we are using the ec device *

Re: [PATCH AUTOSEL 4.19 052/123] Btrfs: send, fix infinite loop due to directory rename dependencies

2018-12-12 Thread Sasha Levin
On Thu, Dec 06, 2018 at 06:55:19PM +0100, David Sterba wrote: On Wed, Dec 05, 2018 at 04:34:44AM -0500, Sasha Levin wrote: From: Robbie Ko [ Upstream commit a4390aee72713d9e73f1132bcdeb17d72fbbf974 ] ... Signed-off-by: Robbie Ko Reviewed-by: Filipe Manana [Wrote changelog with example

RE: intel_pstate: Lowest frequency not reached with Intel i7-6700

2018-12-12 Thread Doug Smythies
On 2018.12.12 13:40 Paul Menzel wrote: > Using *powersave* as P-state selection algorithm, on an idle system Define "idle system". If your computer is running a GUI, or is even a server without a GUI but with many services running, then "idle" really isn't. Below is from my test server, with

Re: [PATCH v9 RESEND 0/4] KASLR feature to randomize each loadable module

2018-12-12 Thread Edgecombe, Rick P
On Wed, 2018-11-28 at 01:40 +, Edgecombe, Rick P wrote: > On Tue, 2018-11-27 at 11:21 +0100, Daniel Borkmann wrote: > > On 11/27/2018 01:19 AM, Edgecombe, Rick P wrote: > > > On Mon, 2018-11-26 at 16:36 +0100, Jessica Yu wrote: > > > > +++ Rick Edgecombe [20/11/18 15:23 -0800]: > > > > > >

Re: [PATCH v2 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-12 Thread Jon Mason
On Thu, Dec 6, 2018 at 1:47 AM Wesley Sheng wrote: > > Hi, Everyone, > > This patch series adds support of >=4G memory windows. > > Current Switchtec's BAR setup registers are limited to 32bits, > corresponding to the maximum MW (memory window) size is <4G. > Increase the MW sizes with the

Re: [PATCH 5/5] switchtec: MRPC DMA mode implementation

2018-12-12 Thread Logan Gunthorpe
On 2018-12-12 3:52 p.m., Bjorn Helgaas wrote: > On Mon, Dec 10, 2018 at 05:12:24PM +0800, Wesley Sheng wrote: >> MRPC normal mode requires the host to read the MRPC command status and >> output data from BAR. This results in high latency responses from the >> Memory Read TLP and potential

Re: [PATCH 4.19 014/110] usb: xhci: Prevent bus suspend if a port connect change or polling state is detected

2018-12-12 Thread Thomas Zeitlhofer
Hello, On Thu, Nov 29, 2018 at 03:11:45PM +0100, Greg Kroah-Hartman wrote: > 4.19-stable review patch. If anyone has any objections, please let me > know. > > -- > > From: Mathias Nyman > > commit 2f31a67f01a8beb22cae754c53522cb61a005750 upstream. [...] on a current Thinkpad

Re: [PATCH 3/5] switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl

2018-12-12 Thread Logan Gunthorpe
On 2018-12-12 3:43 p.m., Bjorn Helgaas wrote: > On Mon, Dec 10, 2018 at 05:12:22PM +0800, Wesley Sheng wrote: >> From: Joey Zhang >> >> For nr_idxs is larger than 1 switchtec_ioctl_event_ctl event flags will be >> used by each event indexes. In current implementation the event flags are >>

Re: [PATCH 5/5] switchtec: MRPC DMA mode implementation

2018-12-12 Thread Bjorn Helgaas
On Mon, Dec 10, 2018 at 05:12:24PM +0800, Wesley Sheng wrote: > MRPC normal mode requires the host to read the MRPC command status and > output data from BAR. This results in high latency responses from the > Memory Read TLP and potential Completion Timeout (CTO). > > MRPC DMA mode implementation

Re: [PATCH] Linux: Implement membarrier function

2018-12-12 Thread Paul E. McKenney
On Wed, Dec 12, 2018 at 05:12:18PM -0500, Alan Stern wrote: > On Wed, 12 Dec 2018, Paul E. McKenney wrote: > > > > > I believe that this ordering forbids the cycle: > > > > > > > > Wa=1 > membs -> [m01] -> Rc=0 -> Wc=2 -> rcu_read_unlock() -> > > > > return from

Re: linux-next: Signed-off-by missing for commits in the bpf-next tree

2018-12-12 Thread Stephen Rothwell
Hi Alexei, On Wed, 12 Dec 2018 12:53:11 -0800 Alexei Starovoitov wrote: > > On Thu, Dec 13, 2018 at 07:32:45AM +1100, Stephen Rothwell wrote: > > Hi all, > > > > Commits > > > > 3bdc28aa2340 ("selftests/bpf: add btf annotations for > > cgroup_local_storage maps") > > 1dfd1959fed4 ("bpf:

Re: [PATCH] vfio/mdev: add static modifier to add_mdev_supported_type

2018-12-12 Thread Alex Williamson
On Tue, 13 Nov 2018 09:45:43 +0100 Paolo Cretaro wrote: > Set add_mdev_supported_type as static since it is only used within > mdev_sysfs.c. > This fixes -Wmissing-prototypes gcc warning. > > Signed-off-by: Paolo Cretaro > --- > drivers/vfio/mdev/mdev_sysfs.c | 4 ++-- > 1 file changed, 2

Re: [PATCH 3/5] switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl

2018-12-12 Thread Bjorn Helgaas
On Mon, Dec 10, 2018 at 05:12:22PM +0800, Wesley Sheng wrote: > From: Joey Zhang > > For nr_idxs is larger than 1 switchtec_ioctl_event_ctl event flags will be > used by each event indexes. In current implementation the event flags are > overwritten by first call of the function event_ctl(). >

[PATCH RFC] rcu: add sparse check to rcu_assign_pointer

2018-12-12 Thread Joel Fernandes (Google)
rcu_assign_pointer currently doesn't do any sparse checking on a pointer assigned. So its possible that a pointer that is not __rcu annotated is assigned with rcu_assign_pointer without sparse complainting. rcu_dereference already does such checking so lets also make rcu_assign_pointer to do the

Re: [PATCH v2] MAINTAINERS: add maintainers for ChromeOS EC sub-drivers

2018-12-12 Thread Alexandre Belloni
On 11/12/2018 20:09:52+0100, Enric Balletbo i Serra wrote: > There are multiple ChromeOS EC sub-drivers spread in different > subsystems, as all of them are related to the Chrome stuff add > Benson and myself as a maintainers for all these sub-drivers. > > Signed-off-by: Enric Balletbo i Serra

Re: [PATCH v4 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-12 Thread Paul Burton
Hi Firoz, On Wed, Dec 12, 2018 at 10:04:47AM +0530, Firoz Khan wrote: > > > Will this below change will help? > > > > > > #define _MIPS_SIM_ABI32 1 > > > #define _MIPS_SIM_NABI322 > > > #define _MIPS_SIM_ABI64 3 > > > +#define _MIPS_SIM_ABIN64

[PATCH] debugobjects: Move printk out of db lock critical sections

2018-12-12 Thread Waiman Long
The db->lock is a raw spinlock and so the lock hold time is supposed to be short. This will not be the case when printk() is being involved in some of the critical sections. In order to avoid the long hold time, in case some messages need to be printed, the debug_object_is_on_stack() and

Re: [GIT PULL] ARM: at91: DT for 4.21

2018-12-12 Thread Alexandre Belloni
On 12/12/2018 13:05:53-0800, Olof Johansson wrote: > On Tue, Dec 11, 2018 at 06:11:12PM +0100, Alexandre Belloni wrote: > > Arnd, Olof, > > > > Here is the DT pull request for 4.21. The clock DT binding switch has > > been in -next for a while and doesn't seem to have any issue. > > > > This is

[PATCH v8 23/26] MIPS: GCW0: Move clocksource to TCU channel 2

2018-12-12 Thread Paul Cercueil
The TCU channel 1, which is the default for the clocksource, is used as PWM on the GCW Zero as it drives the backlight. Therefore we must use a different TCU channel for the clocksource. Signed-off-by: Paul Cercueil --- Notes: v8: New patch arch/mips/boot/dts/ingenic/gcw0.dts | 11

[PATCH v8 19/26] MIPS: qi_lb60: Move PWM devices to devicetree

2018-12-12 Thread Paul Cercueil
Probe the few drivers using PWMs from devicetree, now that we have a devicetree node for the PWM driver. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: No change v7: No change v8: No change arch/mips/boot/dts/ingenic/qi_lb60.dts | 14 ++

[PATCH v8 24/26] MIPS: GCW0: Reduce system timer and clocksource to 750 kHz

2018-12-12 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil --- Notes: v8: New patch arch/mips/boot/dts/ingenic/gcw0.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/gcw0.dts

[PATCH v8 21/26] MIPS: CI20: Reduce system timer and clocksource to 3 MHz

2018-12-12 Thread Paul Cercueil
The default clock (48 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: Set also the rate for the clocksource channel's clock v7: No change v8: No change

[PATCH v8 22/26] MIPS: CI20: defconfig: enable OST driver

2018-12-12 Thread Paul Cercueil
The OST driver provides a clocksource and sched_clock that are much more accurate than the default ones. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: No change v7: No change v8: No change arch/mips/configs/ci20_defconfig | 1 + 1 file changed, 1

Re: [PATCH 4.4 00/91] 4.4.167-stable review

2018-12-12 Thread Guenter Roeck
On Tue, Dec 11, 2018 at 04:40:19PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.167 release. > There are 91 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v8 01/26] dt-bindings: ingenic: Add DT bindings for TCU clocks

2018-12-12 Thread Paul Cercueil
This header provides clock numbers for the ingenic,tcu DT binding. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: Use SPDX identifier for the license v3: No change v4: No change v5: s/JZ47*_/TCU_/ and dropped *_CLK_LAST defines

[PATCH v8 17/26] MIPS: Kconfig: Select TCU timer driver when MACH_INGENIC is set

2018-12-12 Thread Paul Cercueil
We cannot boot to userspace (not even initramfs) if the timer driver is not present; so it makes sense to enable it unconditionally when MACH_INGENIC is set. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: No change v7: No change v8: No change

Re: [PATCH 3.18 00/54] 3.18.129-stable review

2018-12-12 Thread Guenter Roeck
On Tue, Dec 11, 2018 at 04:40:48PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.129 release. > There are 54 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v8 03/26] dt-bindings: Add doc for the Ingenic TCU drivers

2018-12-12 Thread Paul Cercueil
Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) drivers from devicetree. Signed-off-by: Paul Cercueil --- Notes: v4: New patch in this series. Corresponds to V2 patches 3-4-5 with added content. v5: - Edited PWM/watchdog DT bindings

[PATCH v8 00/26] Ingenic TCU patchset v8

2018-12-12 Thread Paul Cercueil
Hi, Here's the version 8 and hopefully final version of my patchset, which adds support for the Timer/Counter Unit found in JZ47xx SoCs from Ingenic. The big change is that the timer driver has been simplified. The code to dynamically update the system timer or clocksource to a new channel has

[PATCH v8 11/26] pwm: jz4740: Use regmap and clocks from TCU driver

2018-12-12 Thread Paul Cercueil
The ingenic-timer "TCU" driver provides us with a regmap, that we can use to safely access the TCU registers. It also provides us with clocks, that can be (un)gated, reparented or reclocked from devicetree, instead of having these settings hardcoded in this driver. While this driver is

Re: [PATCH] Linux: Implement membarrier function

2018-12-12 Thread Paul E. McKenney
On Wed, Dec 12, 2018 at 01:52:45PM -0800, Paul E. McKenney wrote: > On Wed, Dec 12, 2018 at 04:32:50PM -0500, Alan Stern wrote: > > On Wed, 12 Dec 2018, Paul E. McKenney wrote: > > > > > OK. How about this one? > > > > > > P0 P1 P2 P3 > > > Wa=2

Re: [PATCH 2/2] ARM: mmp: fix pxa168_device_usb_phy use on aspenite

2018-12-12 Thread Olof Johansson
On Mon, Dec 10, 2018 at 09:43:02PM +0100, Arnd Bergmann wrote: > This one ended up in the wrong header file, causing a build failure > on at least one platform: > > arch/arm/mach-mmp/aspenite.c: In function 'common_init': > arch/arm/mach-mmp/aspenite.c:260:28: error: 'pxa168_device_usb_phy' >

[PATCH v8 14/26] pwm: jz4740: Remove unused devicetree compatible strings

2018-12-12 Thread Paul Cercueil
Right now none of the Ingenic-based boards probe this driver from devicetree. This driver defined three compatible strings for the exact same behaviour. Before these strings are used, we can remove two of them. Signed-off-by: Paul Cercueil Acked-by: Thierry Reding --- Notes: v5: New patch

[PATCH v8 09/26] watchdog: jz4740: Avoid starting watchdog in set_timeout

2018-12-12 Thread Paul Cercueil
Previously the jz4740_wdt_set_timeout() function was starting the timer unconditionally, even if it was stopped when that function was entered. Now, the timer will be restarted only if it was already running before this function is called. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck

[PATCH v8 20/26] MIPS: qi_lb60: Reduce system timer and clocksource to 750 kHz

2018-12-12 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: Remove ingenic,clocksource-channel property v7: No change v8: No change

Re: [GIT PULL 4/4] ARM: samsung: SoC/mach for 4.21

2018-12-12 Thread Olof Johansson
On Sun, Dec 09, 2018 at 12:49:11PM +0100, Krzysztof Kozlowski wrote: > The following changes since commit 651022382c7f8da46cb4872a545ee1da6d097d2a: > > Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) > > are available in the Git repository at: > >

[PATCH v8 12/26] pwm: jz4740: Allow selection of PWM channels 0 and 1

2018-12-12 Thread Paul Cercueil
The TCU channels 0 and 1 were previously reserved for system tasks, and thus unavailable for PWM. The driver will now only allow a PWM channel to be requested if memory resources corresponding to the register area of the channel were supplied to the driver. This allows the TCU channels to be

[PATCH v8 08/26] watchdog: jz4740: Use regmap provided by TCU driver

2018-12-12 Thread Paul Cercueil
Since we broke the ABI by changing the clock, the driver was also updated to use the regmap provided by the TCU driver. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck --- Notes: v6: New patch v7: No change v8: No change drivers/watchdog/jz4740_wdt.c | 30

[PATCH v8 07/26] watchdog: jz4740: Use WDT clock provided by TCU driver

2018-12-12 Thread Paul Cercueil
Instead of requesting the "ext" clock and handling the watchdog clock divider and gating in the watchdog driver, we now request and use the "wdt" clock that is supplied by the ingenic-timer "TCU" driver. The major benefit is that the watchdog's clock rate and parent can now be specified from

[PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST

2018-12-12 Thread Paul Cercueil
From: Maarten ter Huurne OST is the OS Timer, a 64-bit timer/counter with buffered reading. SoCs before the JZ4770 had (if any) a 32-bit OST; the JZ4770 and JZ4780 have a 64-bit OST. This driver will register both a clocksource and a sched_clock to the system. Signed-off-by: Maarten ter

[PATCH v8 16/26] clk: jz4740: Add TCU clock

2018-12-12 Thread Paul Cercueil
Add the missing TCU clock to the list of clocks supplied by the CGU for the JZ4740 SoC. Signed-off-by: Paul Cercueil Acked-by: Stephen Boyd Acked-by: Rob Herring --- Notes: v5: New patch v6: No change v7: No change v8: No change

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