[PATCH v7 02/10] module: allow symbol exports to be disabled

2018-01-02 Thread Ard Biesheuvel
To allow existing C code to be incorporated into the decompressor or the UEFI stub, introduce a CPP macro that turns all EXPORT_SYMBOL_xxx declarations into nops, and #define it in places where such exports are undesirable. Note that this gets rid of a rather dodgy redefine of linux/export.h's head

[PATCH v7 07/10] kernel/jump_label: abstract jump_entry member accessors

2018-01-02 Thread Ard Biesheuvel
In preparation of allowing architectures to use relative references in jump_label entries [which can dramatically reduce the memory footprint], introduce abstractions for references to the 'code' and 'key' members of struct jump_entry. Signed-off-by: Ard Biesheuvel --- arch/arm/include/asm/jump_

[PATCH v7 06/10] kernel: tracepoints: add support for relative references

2018-01-02 Thread Ard Biesheuvel
To avoid the need for relocating absolute references to tracepoint structures at boot time when running relocatable kernels (which may take a disproportionate amount of space), add the option to emit these tables as relative references instead. Cc: Ingo Molnar Acked-by: Steven Rostedt (VMware) S

[PATCH v7 04/10] init: allow initcall tables to be emitted using relative references

2018-01-02 Thread Ard Biesheuvel
Allow the initcall tables to be emitted using relative references that are only half the size on 64-bit architectures and don't require fixups at runtime on relocatable kernels. Cc: Petr Mladek Cc: Sergey Senozhatsky Cc: Steven Rostedt Cc: James Morris Cc: "Serge E. Hallyn" Signed-off-by: Ard

[PATCH v7 09/10] x86: jump_label: switch to jump_entry accessors

2018-01-02 Thread Ard Biesheuvel
In preparation of switching x86 to use place-relative references for the code, target and key members of struct jump_entry, replace direct references to the struct member with invocations of the new accessors. This will allow us to make the switch by modifying the accessors only. Signed-off-by: Ar

[PATCH v7 10/10] x86/kernel: jump_table: use relative references

2018-01-02 Thread Ard Biesheuvel
Similar to the arm64 case, 64-bit x86 can benefit from using 32-bit relative references rather than 64-bit absolute ones when emitting struct jump_entry instances. Not only does this reduce the memory footprint of the entries themselves by 50%, it also removes the need for carrying relocation metad

[PATCH v7 08/10] arm64/kernel: jump_label: use relative references

2018-01-02 Thread Ard Biesheuvel
On a randomly chosen distro kernel build for arm64, vmlinux.o shows the following sections, containing jump label entries, and the associated RELA relocation records, respectively: ... [38088] __jump_table PROGBITS 00e19f30 0002ea10 00

Re: [PATCH 4.9 00/75] 4.9.74-stable review

2018-01-02 Thread Greg KH
On Tue, Jan 02, 2018 at 02:11:25PM -0500, Neal Cardwell wrote: > On Tue, Jan 2, 2018 at 1:32 PM, David Miller wrote: > > From: Neal Cardwell > > Date: Tue, 2 Jan 2018 11:57:59 -0500 > > > >> On Mon, Jan 1, 2018 at 9:31 AM, Greg Kroah-Hartman > >> wrote: > >>> This is the start of the stable revi

Re: [RESEND PATCH v2 08/15] ASoC: qcom: q6asm: add support to audio stream apis

2018-01-02 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support to open, write and media format commands > in the q6asm module. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/qdsp6/q6asm.c | 530 >

[PATCH v7 05/10] PCI: Add support for relative addressing in quirk tables

2018-01-02 Thread Ard Biesheuvel
Allow the PCI quirk tables to be emitted in a way that avoids absolute references to the hook functions. This reduces the size of the entries, and, more importantly, makes them invariant under runtime relocation (e.g., for KASLR) Acked-by: Bjorn Helgaas Signed-off-by: Ard Biesheuvel --- drivers

Re: [PATCH v2 4/6] clk: ingenic: Add JZ47xx TCU clocks driver

2018-01-02 Thread Paul Cercueil
Hi, [...] + +static void __init ingenic_tcu_init(struct device_node *np, + enum ingenic_version id) +{ + struct ingenic_tcu *tcu; + size_t i, nb_clks; + int ret = -ENOMEM; + + if (id >= ID_JZ4770) + nb_clks = (JZ4770_CLK_LAST - JZ4740_CLK_

[PATCH 2/2] kfree_rcu() should use the new kfree_bulk() interface for freeing rcu structures

2018-01-02 Thread rao . shoaib
From: Rao Shoaib Signed-off-by: Rao Shoaib --- include/linux/mm.h | 5 ++ include/linux/rcutiny.h | 8 ++- kernel/sysctl.c | 40 mm/slab.h | 23 +++ mm/slab_common.c| 161 +++- 5 files changed,

[PATCH 1/2] Move kfree_call_rcu() to slab_common.c

2018-01-02 Thread rao . shoaib
From: Rao Shoaib Signed-off-by: Rao Shoaib --- include/linux/rcupdate.h | 43 +++ include/linux/rcutree.h | 2 -- include/linux/slab.h | 44 kernel/rcu/tree.c| 24 ++-- mm/slab

Re: [PATCH] Move kfree_call_rcu() to slab_common.c

2018-01-02 Thread Paul E. McKenney
On Thu, Dec 21, 2017 at 07:17:35PM -0800, Rao Shoaib wrote: > > > On 12/21/2017 05:39 PM, Paul E. McKenney wrote: > >>I left it out on purpose because the call in tiny is a little different > >> > >>rcutiny.h: > >> > >>static inline void kfree_call_rcu(struct rcu_head *head, > >>                

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-01-02 Thread Darrick J. Wong
On Thu, Dec 28, 2017 at 04:27:11PM +0100, Thomas Gleixner wrote: > Add a file to the Documentation directory to describe how file licenses > should be described in all kernel files, using the SPDX identifier, as well > as where all licenses should be in the kernel source tree for people to > refer

Re: Prototype patch for Linux-kernel memory model

2018-01-02 Thread Paul E. McKenney
On Sat, Dec 23, 2017 at 11:44:18AM +0530, afzal mohammed wrote: > Hi, > > On Fri, Dec 22, 2017 at 09:41:32AM +0530, afzal mohammed wrote: > > On Thu, Dec 21, 2017 at 08:15:02AM -0800, Paul E. McKenney wrote: > > > > Have you installed and run the herd tool? Doing so would allow you > > > to expe

Re: Bluetooth: Prevent stack info leak from the EFS element.

2018-01-02 Thread Guenter Roeck
On Fri, Dec 08, 2017 at 03:14:47PM +0100, gre...@linuxfoundation.org wrote: > From: Ben Seri > > In the function l2cap_parse_conf_rsp and in the function > l2cap_parse_conf_req the following variable is declared without > initialization: > > struct l2cap_conf_efs efs; > > In addition, when pars

Re: Linux 4.15-rc6

2018-01-02 Thread Andres Freund
On 2017-12-31 14:57:51 -0800, Linus Torvalds wrote: > With all the x86 pti work coming in late in the rc like this, I'm by > now almost guaranteed to do an rc8 this release, not because there are > any known problems, but simply because of the timing of the patches. > > Go forth and test, I though

[patch] fs/nfs: Add a resched point to nfs_commit_release_pages()

2018-01-02 Thread Mike Galbraith
On Mon, 2017-12-18 at 17:24 +, Trond Myklebust wrote: > On Mon, 2017-12-18 at 18:00 +0100, Mike Galbraith wrote: > > On Mon, 2017-12-18 at 11:35 -0500, J. Bruce Fields wrote: > > > > > > Like I say, I don't really understand the issues here, so it's more > > > a > > > question than an objectio

Re: [net-next] netfilter: add segment routing header 'srh' match

2018-01-02 Thread Ahmed Abdelsalam
On Fri, 29 Dec 2017 12:07:52 +0100 Ahmed Abdelsalam wrote: > It allows matching packets based on Segment Routing Header > (SRH) information. > The implementation considers revision 7 of the SRH draft. > https://tools.ietf.org/html/draft-ietf-6man-segment-routing-header-07 > > Currently supported

[PATCH] usercopy: Remove pointer from overflow report

2018-01-02 Thread Kees Cook
Using %p was already mostly useless in the usercopy overflow reports, so this removes it entirely to avoid confusion now that %p-hashing is enabled. Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Signed-off-by: Kees Cook --- I have follow-ups to this that include the offset in

Re: [PATCH] Bluetooth: hci_serdev: Init hci_uart proto_lock to avoid oops

2018-01-02 Thread John Stultz
On Mon, Dec 11, 2017 at 1:49 PM, John Stultz wrote: > On Thu, Nov 16, 2017 at 10:07 PM, Marcel Holtmann wrote: >> Hi Lukas, >> >>> John Stultz reports a boot time crash with the HiKey board (which uses >>> hci_serdev) occurring in hci_uart_tx_wakeup(). That function is >>> contained in hci_ldisc

Re: [PATCH] xfs: destroy mutex qi_tree_lock before free xfs_quotainfo_t object

2018-01-02 Thread Darrick J. Wong
On Sun, Dec 24, 2017 at 08:34:47PM +0800, Xiongwei Song wrote: > The mutex qi_tree_lock of xfs_quotainfo_t object was initialized when > calling xfs_qm_init_quotainfo, but it was not destroyed before free > xfs_quotainfo_t object when calling xfs_qm_destroy_quotainfo, this was > incorrect, so destr

Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long

2018-01-02 Thread Bryan O'Donoghue
On 02/01/18 19:01, Stephen Boyd wrote: On 12/31, Bryan O'Donoghue wrote: On 30/12/17 16:36, Mikko Perttunen wrote: FWIW, we had this problem some years ago with the Tegra CPU clock - then it was determined that a simpler solution was to have the determine_rate callback support unsigned long rat

Re: [PATCH] Bluetooth: hci_serdev: Init hci_uart proto_lock to avoid oops

2018-01-02 Thread Marcel Holtmann
Hi John, John Stultz reports a boot time crash with the HiKey board (which uses hci_serdev) occurring in hci_uart_tx_wakeup(). That function is contained in hci_ldisc.c, but also called from the newer hci_serdev.c. It acquires the proto_lock in struct hci_uart and it turns out

[PATCH] misc: rtsx: release IRQ during shutdown

2018-01-02 Thread Sinan Kaya
'Commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during shutdown")' revealed a resource leak in rtsx_pci driver during shutdown. Issue shows up as a warning during the shutdown step as follows: remove_proc_entry: removing non-empty directory 'irq/17', leaking at least 'rtsx_pci' WARNING

4.15-rc6 PTI regression: L1 TLB mismatch MCE on Athlon64

2018-01-02 Thread Meelis Roos
This is on a socket 939 Athlon64 3500+, with PTI enabled. [ 316.384669] mce: [Hardware Error]: Machine check events logged [ 316.384698] [Hardware Error]: Corrected error, no action required. [ 316.384719] [Hardware Error]: CPU:0 (f:2f:2) MC1_STATUS[-|CE|-|-|AddrV]: 0x94010011 [ 316.3

[PATCH] ethernet: cpsw-phy-sel: Delete an error message for a failed memory allocation in cpsw_phy_sel_probe()

2018-01-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 Jan 2018 21:41:25 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/ethernet/ti/cpsw-phy-sel.c | 4 +--- 1 file changed, 1 inse

Re: [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2018-01-02 Thread kbuild test robot
Hi Jia, Thank you for the patch! Yet something to improve: [auto build test ERROR on v4.15-rc5] [also build test ERROR on next-20180102] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: thinkpad x60: sound problems in 4.15-rc1 was Re: thinkpad x60: sound problems in 4.14.0-next-20171114

2018-01-02 Thread Pavel Machek
Hi! > > > > > > pavel@amd:~$ > > > > > > > > > > > > Again, mplayer has problems, mpg123 works. This time mplayer started > > > > > > playing video (w/o sound) after long delay. > > > > > > > > > > > > Uh. huh. And now problems appeared in mpg123, too, and then went > > > > > > away > > > > > >

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2018-01-02 Thread Pavel Machek
> diff --git a/drivers/char/tpm/tpm_tis_core.c b/drivers/char/tpm/tpm_tis_core.c > index e7bd2e750f69..0858c08b3b89 100644 > --- a/drivers/char/tpm/tpm_tis_core.c > +++ b/drivers/char/tpm/tpm_tis_core.c > @@ -688,7 +688,7 @@ static void tpm_tis_clkrun_enable(struct tpm_chip *chip, > bool value)

[nouveau] grumble/gripe ... fifo: read fault ... channel 12 killed! (eternal freeze-frame)

2018-01-02 Thread Mike Galbraith
Twice now with v4.15-rc6, my display has gone belly up. Note: swiotlb: suppress warning when __GFP_NOWARN is set v2 is applied, but I don't _think_ it was the first time it happened. [ 3729.558261] nouveau :01:00.0: gr: TRAP ch 2 [00ff842000 Xorg[3413]] [ 3729.558269] nouveau :01:00.0: gr

Re: [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2018-01-02 Thread Borislav Petkov
On Wed, Jan 03, 2018 at 04:49:42AM +0800, kbuild test robot wrote: > Hi Jia, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on v4.15-rc5] > [also build test ERROR on next-20180102] > [cannot apply to tip/x86/core] > [if your patch is

Re: [PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v2

2018-01-02 Thread Konrad Rzeszutek Wilk
On Tue, Jan 02, 2018 at 01:13:58PM +0100, Christian König wrote: > TTM tries to allocate coherent memory in chunks of 2MB first to improve > TLB efficiency and falls back to allocating 4K pages if that fails. > > Suppress the warning when the 2MB allocations fails since there is a > valid fall bac

RE: [PATCH v5 2/5] iommu/vt-d: Add debugfs support to show context internals

2018-01-02 Thread Kammela, Gayatri
> -Original Message- > From: Andy Shevchenko [mailto:andriy.shevche...@linux.intel.com] > Sent: Thursday, December 28, 2017 12:52 AM > To: Mehta, Sohil ; Joerg Roedel ; > Alex Williamson > Cc: David Woodhouse ; Raj, Ashok > ; io...@lists.linux-foundation.org; linux- > ker...@vger.kernel.

[PATCH] Documentation: security/credentials.rst: explain need to sort group_list

2018-01-02 Thread NeilBrown
This patch updates the documentation with the observations that led to commit bdcf0a423ea1 ("kernel: make groups_sort calling a responsibility group_info allocators") and the new behaviour required. Specifically that groups_sort() should be called on a new group_list before set_groups() or set_cur

Re: [PATCH] Documentation: security/credentials.rst: explain need to sort group_list

2018-01-02 Thread Matthew Wilcox
On Wed, Jan 03, 2018 at 08:01:15AM +1100, NeilBrown wrote: > > +When replacing the group list, the new list must be sorted before it > +is added to the credential, as a binary search is used to test for > +membership. In practice, this means ``groups_sort()`` should be For a .rst file, shouldn'

Re: [PATCH] RDMA/qedr: Use zeroing memory allocator than allocator/memset

2018-01-02 Thread Jason Gunthorpe
On Sun, Dec 31, 2017 at 06:01:03PM +0530, Himanshu Jha wrote: > Use dma_zalloc_coherent for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggeste

Re: [PATCH] RDMA/bnxt_re: Use zeroing memory allocator than allocator/memset

2018-01-02 Thread Jason Gunthorpe
On Sun, Dec 31, 2017 at 06:02:38PM +0530, Himanshu Jha wrote: > Use dma_zalloc_coherent for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggeste

Re: [PATCH] IB/mthca: Use zeroing memory allocator than allocator/memset

2018-01-02 Thread Jason Gunthorpe
On Sun, Dec 31, 2017 at 06:04:10PM +0530, Himanshu Jha wrote: > Use dma_zalloc_coherent for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggeste

Re: [PATCH] IB/ocrdma: Use zeroing memory allocator than allocator/memset

2018-01-02 Thread Jason Gunthorpe
On Sat, Dec 30, 2017 at 09:09:56PM +0530, Himanshu Jha wrote: > Use dma_zalloc_coherent for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggeste

Re: [PATCH] RDMA/vmw_pvrdma: Use zeroing memory allocator than allocator/memset

2018-01-02 Thread Jason Gunthorpe
On Sun, Dec 31, 2017 at 05:59:00PM +0530, Himanshu Jha wrote: > Use dma_zalloc_coherent for allocating zeroed > memory and remove unnecessary memset function. > > Done using Coccinelle. > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > 0-day tested with no failures. > > Suggeste

Re: Linux 4.15-rc6

2018-01-02 Thread Linus Torvalds
On Tue, Jan 2, 2018 at 12:28 PM, Andres Freund wrote: > > I thought it'd be interesting to run a short benchmark to be able to > estimate the impact of the PTI work on postgres workloads (which I work > on). On my skylake laptop, a memory resident, OLTP workload with 16 > connections results in:

Re: [PATCH 2/3] x86/tsc: Fix erroneous TSC rate on Skylake Xeon

2018-01-02 Thread Len Brown
On Tue, Jan 2, 2018 at 10:36 AM, Prarit Bhargava wrote: > > > On 12/22/2017 12:27 AM, Len Brown wrote: >> From: Len Brown >> >> Linux-4.9 added INTEL_FAM6_SKYLAKE_X to native_calibrate_tsc(): > > Sorry, Len I didn't realize you had sent this multiple times. > > I lifted this code directly from t

Re: [PATCH] net: ipv4: emulate READ_ONCE() on ->hdrincl bit-field in raw_sendmsg()

2018-01-02 Thread Stefano Brivio
Hi, On Tue, 2 Jan 2018 17:30:20 +0100 Nicolai Stange wrote: > [...] > > diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c > index 5b9bd5c33d9d..e84290c28c0c 100644 > --- a/net/ipv4/raw.c > +++ b/net/ipv4/raw.c > @@ -513,16 +513,18 @@ static int raw_sendmsg(struct sock *sk, struct msghdr > *msg, siz

Re: [PATCH 7/9] scsi: bnx2fc: Use zeroing allocator rather than allocator/memset

2018-01-02 Thread Chad Dupuis
On Sat, 30 Dec 2017, 10:28am, Himanshu Jha wrote: > Use dma_zalloc_coherent instead of dma_alloc_coherent followed by > memset 0. > > Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > > Suggested-by: Luis R. Rodriguez > Signed-off-by: Himanshu Jha > --- > drivers/scsi/bnx2fc/

[net-next v2] ipv6: sr: export some functions of seg6local

2018-01-02 Thread Ahmed Abdelsalam
Some functions of seg6local are very useful to process SRv6 encapsulated packets This patch exports some functions of seg6local that are useful and can be re-used at different parts of the kernel. The set of exported functions are: (1) seg6_get_srh() (2) seg6_advance_nextseg() (3) seg6_lookup_nex

Re: 4.15-rc6 PTI regression: L1 TLB mismatch MCE on Athlon64

2018-01-02 Thread Borislav Petkov
On Tue, Jan 02, 2018 at 10:49:16PM +0200, Meelis Roos wrote: > This is on a socket 939 Athlon64 3500+, with PTI enabled. LOL. > [ 316.384669] mce: [Hardware Error]: Machine check events logged > [ 316.384698] [Hardware Error]: Corrected error, no action required. > [ 316.384719] [Hardware Erro

[PATCH] netcp_ethss: Delete error messages for a failed memory allocation in three functions

2018-01-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 Jan 2018 22:08:50 +0100 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/ethernet/ti/netcp_ethss.c | 27 ++-

Re: [PATCH v4 5/7] clk: Introduce davinci clocks

2018-01-02 Thread David Lechner
Forgot to cc linux-clk, so doing that now... On 12/31/2017 05:39 PM, David Lechner wrote: This introduces new drivers for arch/arm/mach-davinci. The code is based on the clock drivers from there and adapted to use the common clock framework. Signed-off-by: David Lechner --- drivers/clk/Make

Re: [PATCH] clk: Fix debugfs_create_*() usage

2018-01-02 Thread Geert Uytterhoeven
Hi Stephen, On Tue, Jan 2, 2018 at 8:23 PM, Stephen Boyd wrote: > On 01/02, Geert Uytterhoeven wrote: >> When exposing data access through debugfs, the correct >> debugfs_create_*() functions must be used, depending on data type. >> >> Remove all casts from data pointers passed to debugfs_create_

Re: PROBLEM: i915 causes complete desktop freezes in 4.15-rc5

2018-01-02 Thread Alexandru Chirvasitu
Attached. Crashed quite a bit faster than before this time. It always seems to have something to do with opening and alt-tabbing between windows. This time what produced the crash was an attempt to open a new terminal. The hanging happened right after issuing the keyboard shortcut, before the foc

Re: [PATCH] Support HVR-1200 analog video as a clone of HVR-1500. Tested, composite and s-video inputs.

2018-01-02 Thread Nigel Kettlewell
To be honest we should probably just drop this, I no longer have the card in my machine so cannot re-test it if ever needed. On 4 December 2017 at 12:01, Hans Verkuil wrote: > Hi Nigel, > > Can you repost this as a proper patch? It doesn't apply (issues with tabs and > whitespace: please use tabs

Re: [RFC PATCH] input: Add disable sysfs entry for every input device

2018-01-02 Thread Pali Rohár
On Tuesday 03 January 2017 12:21:21 Bastien Nocera wrote: > On Mon, 2017-01-02 at 18:09 +0100, Pali Rohár wrote: > > On Monday 02 January 2017 16:27:05 Bastien Nocera wrote: > > > On Sun, 2016-12-25 at 11:04 +0100, Pali Rohár wrote: > > > > This patch allows user to disable events from any input de

Re: [PATCH] m32r: fix readl/writel prototypes

2018-01-02 Thread Luc Van Oostenryck
On Tue, Jan 02, 2018 at 11:56:41AM +0100, Arnd Bergmann wrote: > All other architectures use 'unsigned int' as the data in readl/write, > but m32r uses 'unsigned long', leading to lots of harmless build warnings > like: > > drivers/mmc/host/dw_mmc.c: In function 'dw_mci_regs_show': > drivers/mmc/h

Re: [RFC PATCH] input: Add disable sysfs entry for every input device

2018-01-02 Thread Pali Rohár
On Wednesday 04 January 2017 15:37:35 Bastien Nocera wrote: > I don't doubt that the use cases should be catered for, I essentially > did that same work without kernel changes for GNOME. What I doubt is > the fuzzy semantics, the fact that the device is kept opened but no > data is sent (that's not

Re: cgroups(7): documenting cgroup.stat

2018-01-02 Thread Roman Gushchin
Hello, Michael! Thank you for working on this! Please, find my comments below. On Tue, Jan 02, 2018 at 07:22:33PM +0100, Michael Kerrisk (man-pages) wrote: > Hello Roman, > > I wish to add documentation to cgroups(7) for the cgroup.stat file > that you added in Linux 4.14. I wrote some text bas

Re: [ANNOUNCE] autofs 5.1.2 release

2018-01-02 Thread NeilBrown
On Thu, Dec 21 2017, Ian Kent wrote: > On 21/12/17 19:06, Ian Kent wrote: >> On 21/12/17 09:09, NeilBrown wrote: >>> On Wed, Dec 20 2017, Ian Kent wrote: >>> On 20/12/17 13:52, Ian Kent wrote: > On 20/12/17 11:29, NeilBrown wrote: >> >> Hi Ian, >> I've been looking at: >>

Re: [RESEND PATCH v2 09/15] ASoC: qcom: qdsp6: Add support to Q6CORE

2018-01-02 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support to core apr service, which is used to query > status of other static and dynamic services on the dsp. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/Kconf

Re: [PATCH v17 0/4] Replace PCI pool by DMA pool API

2018-01-02 Thread Bjorn Helgaas
On Tue, Jan 02, 2018 at 06:53:52PM +0100, Romain Perier wrote: > The current PCI pool API are simple macro functions direct expanded to > the appropriate dma pool functions. The prototypes are almost the same > and semantically, they are very similar. I propose to use the DMA pool > API directly an

[PATCH] ARM: dts: n900: Add aliases for lcd and tvout displays

2018-01-02 Thread Ivaylo Dimitrov
When both lcd and tv are enabled, the order in which they will be probed is unknown, so it might happen (and it happens in reality) that tv is configured as display0 and lcd as display1, which results in nothing displayed on lcd, as display1 is disabled by default. Fix that by providing correct al

Re: [PATCH v3 09/34] clk: bcm2835: change clk_get_rate() helper return type

2018-01-02 Thread Eric Anholt
Bryan O'Donoghue writes: > bcm2835_pll_rate_from_divisor returns a long but the function calling it > returns an unsigned long. There's no reason to have a type disparity here > so tidy up the return type of bcm2835_pll_rate_from_divisor() from signed > to unsigned long. I'm still surprised that

Re: [PATCH] net: systemport: Delete an error message for a failed memory allocation in two functions

2018-01-02 Thread Florian Fainelli
On 01/01/2018 08:54 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 1 Jan 2018 17:50:02 +0100 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Acked-

Re: [PATCH 3.18 00/32] 3.18.91-stable review

2018-01-02 Thread Shuah Khan
On 01/01/2018 07:22 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.91 release. > There are 32 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [PATCH 1/2] Move kfree_call_rcu() to slab_common.c

2018-01-02 Thread Matthew Wilcox
On Tue, Jan 02, 2018 at 12:11:37PM -0800, rao.sho...@oracle.com wrote: > -#define kfree_rcu(ptr, rcu_head) \ > - __kfree_rcu(&((ptr)->rcu_head), offsetof(typeof(*(ptr)), rcu_head)) > +#define kfree_rcu(ptr, rcu_head_name)\ > + do { \ > +

Re: [PATCH 4.9 00/75] 4.9.74-stable review

2018-01-02 Thread Shuah Khan
On 01/01/2018 07:31 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.74 release. > There are 75 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH 4.4 00/63] 4.4.109-stable review

2018-01-02 Thread Shuah Khan
On 01/01/2018 07:24 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.109 release. > There are 63 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [PATCH] xfs: destroy mutex qi_tree_lock before free xfs_quotainfo_t object

2018-01-02 Thread Xiongwei Song
2018-01-03 4:38 GMT+08:00 Darrick J. Wong : > On Sun, Dec 24, 2017 at 08:34:47PM +0800, Xiongwei Song wrote: >> The mutex qi_tree_lock of xfs_quotainfo_t object was initialized when >> calling xfs_qm_init_quotainfo, but it was not destroyed before free >> xfs_quotainfo_t object when calling xfs_qm_

Re: [PATCH 4.9 00/75] 4.9.74-stable review

2018-01-02 Thread Neal Cardwell
On Tue, Jan 2, 2018 at 3:08 PM, Greg KH wrote: > On Tue, Jan 02, 2018 at 02:11:25PM -0500, Neal Cardwell wrote: ... >> Thanks, Greg and David. Looks like these 2 patches will cherry-pick >> cleanly if cherry-picked in the following sequence, on top of >> 4.9.74-rc1, which already has 6c9e73ef9aa7

Re: [PATCH 4.14 000/146] 4.14.11-stable review

2018-01-02 Thread Shuah Khan
On 01/01/2018 07:36 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.11 release. > There are 146 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all

2018-01-02 Thread Michael Ellerman
Michael Ellerman writes: > Vincent Legoll writes: > >> Hello, >> >> thanks for the help, and sorry for the poor patch, >> >> On Thu, Dec 21, 2017 at 11:53 AM, Michael Ellerman >> wrote: >>> This breaks all existing .configs *and* defconfigs that use VIRTIO. >>> >>> Please don't do that. >>> >>

Re: [PATCH v5 03/78] xarray: Add the xa_lock to the radix_tree_root

2018-01-02 Thread Matthew Wilcox
On Tue, Jan 02, 2018 at 10:01:55AM -0800, Darrick J. Wong wrote: > On Tue, Dec 26, 2017 at 07:58:15PM -0800, Matthew Wilcox wrote: > > spin_lock_irqsave(&mapping->pages, flags); > > __delete_from_page_cache(page, NULL); > > spin_unlock_irqrestore(&mapping->pages, flags); > >

Re: [PATCH 3/4] extcon: axp288: Redo charger type dection a couple of seconds after probe()

2018-01-02 Thread Hans de Goede
Hi, On 02-01-18 01:54, Chanwoo Choi wrote: Hi Hans, s/dection/detection on patch title. Thank you for all the reviews. I've fixed the typo in my personal tree. On 2017년 12월 22일 21:36, Hans de Goede wrote: The axp288 extcon code depends on other drivers to do things like mux the data lines

Re: [PATCH 1/2] Move kfree_call_rcu() to slab_common.c

2018-01-02 Thread Rao Shoaib
On 01/02/2018 02:23 PM, Matthew Wilcox wrote: On Tue, Jan 02, 2018 at 12:11:37PM -0800, rao.sho...@oracle.com wrote: -#define kfree_rcu(ptr, rcu_head) \ - __kfree_rcu(&((ptr)->rcu_head), offsetof(typeof(*(ptr)), rcu_head)) +#define kfree_rcu(ptr, rcu

Re: [PATCH v2] PCI: imx6: Add PHY reference clock source support

2018-01-02 Thread Fabio Estevam
Hi Ilya, + Rob and dt list On Sun, Dec 31, 2017 at 6:31 AM, Ilya Ledvich wrote: > i.MX7D variant of the IP can use either Crystal Oscillator input > or internal clock input as a Reference Clock input for PCIe PHY. > Add support for an optional property 'pcie-phy-refclk-internal'. > If present th

Re: [PATCH v2 4/6] clk: ingenic: Add JZ47xx TCU clocks driver

2018-01-02 Thread Stephen Boyd
On 01/02, Paul Cercueil wrote: > >> + goto err_free_tcu; > >> + } > >> + > >> + tcu->clocks.clk_num = nb_clks; > >> + tcu->clocks.clks = kcalloc(nb_clks, sizeof(struct clk *), > >>GFP_KERNEL); > >> + if (!tcu->clocks.clks) { > >> + pr_err("%s: cannot allocate memory\n", __func

Re: [RESEND PATCH v2 10/15] ASoC: qcom: qdsp6: Add support to q6routing driver

2018-01-02 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support to q6 routing driver which configures route > between ASM and AFE module using ADM apis. > > This driver uses dapm widgets to setup the matrix between AFE ports and > ASM

Re: [PATCH] clk: Fix debugfs_create_*() usage

2018-01-02 Thread Stephen Boyd
On 01/02, Geert Uytterhoeven wrote: > On Tue, Jan 2, 2018 at 8:23 PM, Stephen Boyd wrote: > > On 01/02, Geert Uytterhoeven wrote: > >> --- a/drivers/clk/clk.c > >> +++ b/drivers/clk/clk.c > >> @@ -58,7 +58,7 @@ struct clk_core { > >> unsigned long new_rate; > >> struct clk_c

Re: 4.15-rc6 PTI regression: L1 TLB mismatch MCE on Athlon64

2018-01-02 Thread Thomas Gleixner
On Tue, 2 Jan 2018, Borislav Petkov wrote: > On Tue, Jan 02, 2018 at 10:49:16PM +0200, Meelis Roos wrote: > > This is on a socket 939 Athlon64 3500+, with PTI enabled. > > LOL. > > > [ 316.384669] mce: [Hardware Error]: Machine check events logged > > [ 316.384698] [Hardware Error]: Corrected e

[GIT PULL] cpupower update for 4.16-rc1

2018-01-02 Thread Shuah Khan
Hi Rafael, Please pull the cpupower update for 4.16-rc1. This update consists of a patch to remove FSF address. Diff is attached. thanks, -- Shuah -- The following changes since commit ae64f9bd1d3621b5e6

Re: stable/linux-3.16.y build: 178 builds: 1 failed, 177 passed, 2 errors, 57 warnings (v3.16.52)

2018-01-02 Thread Arnd Bergmann
On Tue, Jan 2, 2018 at 12:48 PM, kernelci.org bot wrote: Hi Ben, almost a clean build with kernelci! > Errors summary: > 1 drivers/scsi/mpt2sas/mpt2sas_base.c:3550:1: internal compiler error: in > extract_constrain_insn, at recog.c:2190 > 1 drivers/scsi/mpt2sas/mpt2sas_base.c:3550:1: error: in

Re: [PATCH] PM / runtime: Rework pm_runtime_force_suspend/resume()

2018-01-02 Thread Rafael J. Wysocki
On Tue, Jan 2, 2018 at 8:07 PM, Rafael J. Wysocki wrote: > On Tuesday, January 2, 2018 2:04:04 PM CET Lukas Wunner wrote: >> On Tue, Jan 02, 2018 at 12:02:18PM +0100, Rafael J. Wysocki wrote: >> > On Tue, Jan 2, 2018 at 11:51 AM, Lukas Wunner wrote: >> > > On Tue, Jan 02, 2018 at 01:56:28AM +0100

[PATCH] exec: Weaken dumpability for secureexec

2018-01-02 Thread Kees Cook
This is a logical revert of: commit e37fdb785a5f ("exec: Use secureexec for setting dumpability") This weakens dumpability back to checking only for uid/gid changes in current (which is useless), but userspace depends on dumpability not being tied to secureexec. https://bugzilla.redhat.com/s

Re: v3.18.86 build: 0 failures 1 warnings (v3.18.86)

2018-01-02 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 1:18 AM, Build bot for Mark Brown wrote: > --- > x86_64-defconfig : PASS, 0 errors, 2 warnings, 0 section mismatches > > Warnings: > ../include/linux/ftrace.h:632:36: warning: calling > '__

Re: [PATCH] sched/isolation: Make CPU_ISOLATION depend on SMP or COMPILE_TEST

2018-01-02 Thread Nicolas Pitre
On Tue, 2 Jan 2018, Geert Uytterhoeven wrote: > On uniprocessor systems, critical and non-critical tasks cannot be > isolated, as there is only a single CPU core. Hence enabling CPU > isolation by default on such systems does not make much sense. > > Instead of changing the default for !SMP, fix

Re: [RESEND PATCH v2 11/15] ASoC: qcom: qdsp6: Add support to q6afe dai driver

2018-01-02 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support to q6afe backend dais driver. > Isn't the list of backend DAIs platform-dependent? [..] > +static const struct snd_soc_dapm_widget hdmi_dapm_widgets[] = { > + SND_SO

Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long

2018-01-02 Thread Stephen Boyd
On 01/02, Bryan O'Donoghue wrote: > On 02/01/18 19:01, Stephen Boyd wrote: > >On 12/31, Bryan O'Donoghue wrote: > >>On 30/12/17 16:36, Mikko Perttunen wrote: > >>>FWIW, we had this problem some years ago with the Tegra CPU clock > >>>- then it was determined that a simpler solution was to have the

Re: [PATCH v1 00/15] ASoC: fsl_ssi: Clean up - program flow level

2018-01-02 Thread Caleb Crome
On Tue, Dec 19, 2017 at 9:00 AM, Nicolin Chen wrote: > > ==Background== > The fsl_ssi driver was designed for PPC originally and then it has > been updated to support different modes for i.MX Series, including > SDMA, I2S Master mode, AC97 and older i.MXs with FIQ, by different > contributors for

Re: [PATCH] USB: usbip: remove useless call in usbip_recv

2018-01-02 Thread Shuah Khan
On 01/02/2018 07:02 AM, Gustavo A. R. Silva wrote: > Calling msg_data_left(&msg) is only useful for its return value, > which in this particular case is ignored. > > Fix this by removing such call. > > Addresses-Coverity-ID: 1427080 > Fixes: 90120d15f4c3 ("usbip: prevent leaking socket pointer ad

[no subject]

2018-01-02 Thread Mr Sheng Li Hung
-- I am Mr.Sheng Li Hung, from china I got your information while search for a reliable person, I have a very profitable business proposition for you and i can assure you that you will not regret been part of this mutual beneficial transaction after completion. Kindly get back to me for more de

Re: [GIT PULL] cpupower update for 4.16-rc1

2018-01-02 Thread Rafael J. Wysocki
On Wed, Jan 3, 2018 at 12:13 AM, Shuah Khan wrote: > Hi Rafael, Hi, > Please pull the cpupower update for 4.16-rc1. Pulled, thanks!

Re: [PATCH v2] platform/x86: silead_dmi: Add entry for the Teclast X98 Plus II

2018-01-02 Thread Darren Hart
On Tue, Jan 02, 2018 at 07:39:27PM +0100, Paul Cercueil wrote: > Add touchscreen platform data for the Teclast X98 Plus II tablet. > > Signed-off-by: Paul Cercueil > Acked-by: Hans de Goede > --- > drivers/platform/x86/silead_dmi.c | 24 > 1 file changed, 24 insertions(

Re: [PATCH v7 02/10] module: allow symbol exports to be disabled

2018-01-02 Thread Nicolas Pitre
On Tue, 2 Jan 2018, Ard Biesheuvel wrote: > To allow existing C code to be incorporated into the decompressor or > the UEFI stub, introduce a CPP macro that turns all EXPORT_SYMBOL_xxx > declarations into nops, and #define it in places where such exports > are undesirable. Note that this gets rid

Re: [PATCH v7 02/10] module: allow symbol exports to be disabled

2018-01-02 Thread Ard Biesheuvel
On 2 January 2018 at 23:47, Nicolas Pitre wrote: > On Tue, 2 Jan 2018, Ard Biesheuvel wrote: > >> To allow existing C code to be incorporated into the decompressor or >> the UEFI stub, introduce a CPP macro that turns all EXPORT_SYMBOL_xxx >> declarations into nops, and #define it in places where

Re: [PATCH v3 0/3] Support Perf Extension on AMD KVM guests

2018-01-02 Thread Natarajan, Janakarajan
On 12/8/2017 4:39 PM, Janakarajan Natarajan wrote: This patchset adds support for Perf Extension on AMD KVM guests. When perf runs on a guest with family = 15h || 17h, the MSRs that are accessed, when the Perf Extension flag is made available, differ from the existing K7 MSRs. The accesses are t

Re: [RESEND PATCH v2 12/15] ASoC: qcom: qdsp6: Add support to q6asm dai driver

2018-01-02 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: [..] > + > +enum stream_state { > + IDLE = 0, > + STOPPED, > + RUNNING, These are too generic. > +}; > + > +struct q6asm_dai_rtd { > + struct snd_pcm_substream *substream; > + dma_addr_t phys; > + unsigne

Re: platform/x86/thinkpad_acpi: Adjustments for four function implementations

2018-01-02 Thread Darren Hart
On Sat, Dec 23, 2017 at 08:12:21AM +0100, SF Markus Elfring wrote: > >> Do you find the Linux allocation failure report insufficient in this case? > > > > Leave those pr_ messages alone, please, > > Have you got special software development concerns? > > > > unless they are really causing some

[PATCH V6] mmc:host:sdhci-pci:Addition of Arasan PCI Controller with integrated phy.

2018-01-02 Thread Atul Garg
The Arasan Controller is based on a FPGA platform and has integrated phy with specific registers used during initialization and management of different modes. The phy and the controller are integrated and registers are very specific to Arasan. Arasan being an IP provider, licenses these IPs to var

Re: PROBLEM: i915 causes complete desktop freezes in 4.15-rc5

2018-01-02 Thread Alexandru Chirvasitu
For comparison, here's another one produced by the same kernel, on the same laptop, but a different hard drive. The OS was installed on a USB stick that I'd boot the laptop off of. Recently I started getting lags when copying to / from the stick, so I moved the OS to an external SSD. Everything e

Re: [patch v6 2/3] platform/mellanox: mlxreg-hotplug: allow driver for ARM architecture

2018-01-02 Thread Darren Hart
On Wed, Dec 20, 2017 at 05:11:51PM +0800, kbuild test robot wrote: > Hi Vadim, > Hi Vadim, This has been a long time in development, and has been tricky to get everyone aligned for review. I'm prioritizing this series now and will commit to reviewing in a timely manner. I assume you have seen th

<    2   3   4   5   6   7   8   9   >