[PATCH v2 10/11] x86/mm: Be more consistent wrt PAGE_SHIFT vs PAGE_SIZE in tlb flush code

2017-05-22 Thread Andy Lutomirski
Nadav pointed out that some code used PAGE_SIZE and other code used PAGE_SHIFT. Use PAGE_SHIFT instead of multiplying or dividing by PAGE_SIZE. Requested-by: Nadav Amit Cc: Rik van Riel Cc: Dave Hansen Cc: Nadav Amit

Re: [PATCH] CodingStyle: delete "kmalloc(sizeof(*var))" as preferred allocation form

2017-05-22 Thread Joe Perches
On Mon, 2017-05-22 at 15:22 -0700, Andrew Morton wrote: > On Mon, 22 May 2017 14:43:18 -0700 Joe Perches wrote: > > On Tue, 2017-05-23 at 00:38 +0300, Alexey Dobriyan wrote: > > > * ratio of allocation styles is ~6400:12000 which is about 1:2 > > > so the amount of churn to

[PATCH] usb: typec: Add a sysfs node to manage port type

2017-05-22 Thread Badhri Jagan Sridharan
User space applications in some cases have the need to enforce a specific port type(DFP/UFP/DRP). This change allows userspace to attempt setting the desired port type. Low level drivers can however reject the request if the specific port type is not supported. Signed-off-by: Badhri Jagan

Re: [PATCH] nvme: pci: Fix NULL dereference when resetting NVMe SSD

2017-05-22 Thread Rakesh Pandit
On Mon, May 22, 2017 at 06:04:20PM +0200, Christoph Hellwig wrote: > On Mon, May 22, 2017 at 06:02:17PM +0200, Christoph Hellwig wrote: > > On Mon, May 22, 2017 at 06:38:29PM +0300, Rakesh Pandit wrote: > > > Just got to use the using the test box again and you are right that > > >

Re: [HMM 08/15] mm/ZONE_DEVICE: special case put_page() for device private pages

2017-05-22 Thread Hugh Dickins
On Mon, 22 May 2017, Jerome Glisse wrote: > On Mon, May 22, 2017 at 12:29:53PM -0700, Dan Williams wrote: > > On Mon, May 22, 2017 at 9:51 AM, Jerome Glisse wrote: > > > A ZONE_DEVICE page that reach a refcount of 1 is free ie no longer > > > have any user. For device private

Re: [PATCH 3/3] mfd: twl: move header file out of I2C realm

2017-05-22 Thread Jonathan Cameron
On Mon, 22 May 2017 00:02:10 +0200 Wolfram Sang wrote: > include/linux/i2c is not for client devices. Move the header file to a > more appropriate location. > > Signed-off-by: Wolfram Sang > --- > arch/arm/mach-omap2/common.h| 2 +- >

Re: [PULL REQUEST] i2c for 4.12

2017-05-22 Thread Linus Torvalds
On Mon, May 22, 2017 at 1:28 PM, Linus Torvalds wrote: > > Have not tested that commit, but did verify that yes it was the i2c > pull, and am about to reboot into a kernel that just zeroes those > variables beforehand (which seems to be the same thing that commit >

Re: [PATCH 0/1] x86/cqm: Cqm3 Design Documentation

2017-05-22 Thread Shivappa Vikas
On Mon, 22 May 2017, Thomas Gleixner wrote: On Mon, 17 Apr 2017, Shivappa Vikas wrote: Hello Thomas, Wanted to know if you had any feedback on the new interface for cqm design which is based on monitoring the resctrl groups. It tries to address all the requirements discussed in :

[PATCH] arch: blackfin: kernel: bfin_gpio: Use strlcpy to Copy a C-string into a sized buffer

2017-05-22 Thread Karim Eshapa
Use strlcpy with sized buffer instead of strncpy to avoid non NUL-terminated source strings problems. Signed-off-by: Karim Eshapa --- arch/blackfin/kernel/bfin_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/blackfin/kernel/bfin_gpio.c

Re: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-22 Thread Eric Anholt
Laurent Pinchart writes: > Hi Eric, > > On Tuesday 16 May 2017 11:46:36 Eric Anholt wrote: > > [snip] > >> In terms of physical connections: >> >>[15-pin "DSI" connector on 2835] >> >> | I2C | DSI >>/ \SPI | >> [TS]

Re: [PATCH 1/1] futex: remove duplicated code

2017-05-22 Thread Thomas Gleixner
On Mon, 15 May 2017, Will Deacon wrote: > Hi Jiri, > > On Mon, May 15, 2017 at 03:07:42PM +0200, Jiri Slaby wrote: > > There is code duplicated over all architecture's headers for > > futex_atomic_op_inuser. Namely op decoding, access_ok check for uaddr, > > and comparison of the result. > > > >

Re: linux-next: manual merge of the selinux tree with Linus' tree

2017-05-22 Thread Daniel Jurgens
On 5/22/2017 4:08 PM, Paul Moore wrote: > On Sun, May 21, 2017 at 10:38 PM, Stephen Rothwell > wrote: >> Hi Paul, >> >> Today's linux-next merge of the selinux tree got a conflict in: >> >> include/rdma/ib_verbs.h >> >> between commit: >> >> 2fc775726491 ("IB/opa-vnic:

Re: linux-next: build failure after merge of the selinux tree

2017-05-22 Thread Paul Moore
On Sun, May 21, 2017 at 10:48 PM, Stephen Rothwell wrote: > Hi Paul, > > After merging the selinux tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > drivers/infiniband/core/uverbs_cmd.c: In function 'create_qp': >

[PATCH] mmc: block: fix semicolon.cocci warnings

2017-05-22 Thread kbuild test robot
drivers/mmc/core/block.c:1929:3-4: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Linus Walleij Signed-off-by: Fengguang Wu --- block.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 2/2] hw_random: timeriomem_rng: Allow setting RNG quality from platform data

2017-05-22 Thread Rick Altherr
When a hw_random device's quality is non-zero, it will automatically be used to fill the kernel's entropy pool. Since timeriomem_rng is used by many different devices, the quality needs to be provided by platform data or device tree. Signed-off-by: Rick Altherr --- Changes

Re: [PATCH] ocfs2: fix a static checker warning

2017-05-22 Thread Andrew Morton
On Mon, 22 May 2017 12:54:37 +0800 Gang He wrote: > This patch will fix a static checker warning, this warning was > caused by commit d56a8f32e4c662509ce50a37e78fa66c777977d3. after > apply this patch, the error return value will not be NULL(zero). When identifying another

Re: [PATCH v2 1/5] HID: intel_ish-hid: fix potential uninitialized data usage

2017-05-22 Thread Arnd Bergmann
On Mon, May 22, 2017 at 9:17 PM, Srinivas Pandruvada wrote: > Hi Arnd, > On Thu, 2017-05-18 at 22:21 +0200, Arnd Bergmann wrote: >> gcc points out an uninialized pointer dereference that could happen >> if we ever get to recv_ishtp_cl_msg_dma() or

Re: [PATCH 1/3] mm/slub: Only define kmalloc_large_node_hook() for NUMA systems

2017-05-22 Thread Andrew Morton
On Mon, 22 May 2017 13:56:21 -0700 Matthias Kaehlcke wrote: > El Mon, May 22, 2017 at 01:39:26PM -0700 David Rientjes ha dit: > > > On Fri, 19 May 2017, Matthias Kaehlcke wrote: > > > > > The function is only used when CONFIG_NUMA=y. Placing it in an #ifdef > > > block fixes

RE: [PATCH 1/2] perf/x86/intel: enable CPU ref_cycles for GP counter

2017-05-22 Thread Liang, Kan
> > On Mon, May 22, 2017 at 12:23 PM, Peter Zijlstra > wrote: > > On Mon, May 22, 2017 at 04:55:47PM +, Liang, Kan wrote: > >> > >> > >> > On Fri, May 19, 2017 at 10:06:21AM -0700, kan.li...@intel.com wrote: > >> > > diff --git a/arch/x86/events/core.c

Re: [PATCH v4 next 2/3] modules:capabilities: automatic module loading restriction

2017-05-22 Thread Kees Cook
On Mon, May 22, 2017 at 4:57 AM, Djalal Harouni wrote: > [...] > diff --git a/kernel/module.c b/kernel/module.c > index 4a3665f..ce7a146 100644 > --- a/kernel/module.c > +++ b/kernel/module.c > @@ -282,6 +282,8 @@ module_param(sig_enforce, bool_enable_only, 0644); > > /* Block

Re: [PATCH 1/2] misc: apds990x: move header file out of I2C realm

2017-05-22 Thread Linus Walleij
On Mon, May 22, 2017 at 11:49 PM, Arnd Bergmann wrote: > On Mon, May 22, 2017 at 5:56 PM, Wolfram Sang wrote: >> >>> Should we also remove the drivers or move them into staging? >> >> I'd prefer to keep them. If they are needed again, DT conversion is >> likely

Re: work queue of scsi fc transports should be serialized

2017-05-22 Thread Martin Wilck
On Sat, 2017-05-20 at 08:25 +, Dashi DS1 Cao wrote: > On Fri, 2017-05-19 at 09:36 +, Dashi DS1 Cao wrote: > > It seems there is a race of multiple "fc_starget_delete" of the > > same  > > rport, thus of the same SCSI host. The race leads to the race of  > > scsi_remove_target and it cannot

Re: [PATCH BUGFIX] block, bfq: access and cache blkg data only when safe

2017-05-22 Thread Paolo Valente
> Il giorno 19 mag 2017, alle ore 16:37, Jens Axboe ha > scritto: > > On 05/19/2017 02:39 AM, Paolo Valente wrote: >> @@ -692,8 +725,7 @@ void bfq_pd_offline(struct blkg_policy_data *pd) >> /* >> * The idle tree may still contain bfq_queues belonging

RE: [PATCH] x86/ACPI/cstate: Allow ACPI C1 FFH MWAIT use on AMD systems

2017-05-22 Thread Ghannam, Yazen
> -Original Message- > From: Borislav Petkov [mailto:b...@alien8.de] > Sent: Monday, May 22, 2017 12:22 PM > ... > What about x86_idle? > > That whole select_idle_routine() jumping through hoops. That's still doing > default_idle() on Zen, AFAICT. > > Or am I missing something? > >

[PATCH] xprtrdma: Delete an error message for a failed memory allocation in xprt_rdma_bc_setup()

2017-05-22 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 22 May 2017 22:18:28 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link:

Re: [PATCH] xprtrdma: Delete an error message for a failed memory allocation in xprt_rdma_bc_setup()

2017-05-22 Thread Chuck Lever
> On May 22, 2017, at 4:24 PM, SF Markus Elfring > wrote: > > From: Markus Elfring > Date: Mon, 22 May 2017 22:18:28 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by

Re: [PATCH] MAINTAINERS: EP93XX: Update maintainership

2017-05-22 Thread Ryan Mallon
On 22/05/17 23:30, Alexander Sverdlin wrote: > As agreed with Ryan, change the maintainership. Thanks for taking this over Alexander. Acked-by: Ryan Mallon > Signed-off-by: Alexander Sverdlin > --- > MAINTAINERS | 2 +- > 1 file changed, 1

Re: [uml-devel] [PATCH] um: Add mark_rodata_ro support.

2017-05-22 Thread Thomas Meyer
> Am 22.05.2017 um 21:37 schrieb Richard Weinberger : > > Thomas, > >> Am 22.05.2017 um 21:18 schrieb Thomas Meyer: >> >>> Am 22.05.2017 um 20:34 schrieb Richard Weinberger : >>> >>> Thomas, >>> Am 22.05.2017 um 20:14 schrieb Thomas Meyer: It's

Re: [PATCH 1/3] mm/slub: Only define kmalloc_large_node_hook() for NUMA systems

2017-05-22 Thread David Rientjes
On Fri, 19 May 2017, Matthias Kaehlcke wrote: > The function is only used when CONFIG_NUMA=y. Placing it in an #ifdef > block fixes the following warning when building with clang: > > mm/slub.c:1246:20: error: unused function 'kmalloc_large_node_hook' > [-Werror,-Wunused-function] > Is

Re: [PATCH 2/5] sctp: Delete an error message for a failed memory allocation in sctp_init()

2017-05-22 Thread Vlad Yasevich
On 05/22/2017 12:38 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 22 May 2017 17:28:14 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Link: >

Re: [PATCH 3/5] sctp: Fix a typo in a comment line in sctp_init()

2017-05-22 Thread Vlad Yasevich
On 05/22/2017 12:39 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 22 May 2017 17:43:44 +0200 > > Add a missing character in this description. > > Signed-off-by: Markus Elfring > --- > net/sctp/protocol.c | 2 +- >

Re: [PATCH 4/5] sctp: Improve a size determination in sctp_inetaddr_event()

2017-05-22 Thread Vlad Yasevich
On 05/22/2017 12:40 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 22 May 2017 18:08:24 +0200 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size >

Re: linux-next: manual merge of the selinux tree with Linus' tree

2017-05-22 Thread Paul Moore
On Sun, May 21, 2017 at 10:38 PM, Stephen Rothwell wrote: > Hi Paul, > > Today's linux-next merge of the selinux tree got a conflict in: > > include/rdma/ib_verbs.h > > between commit: > > 2fc775726491 ("IB/opa-vnic: RDMA NETDEV interface") > > from Linus' tree and

Re: [PATCH 7/7] DWARF: add the config option

2017-05-22 Thread H. Peter Anvin
On 05/20/17 13:01, H.J. Lu wrote: > On Sat, May 20, 2017 at 9:20 AM, Josh Poimboeuf wrote: > >>> >>> (H.J., could we get a binutils feature that allows is to do: >>> >>> pushq %whatever >>> .cfi_adjust_sp -8 >>> ... >>> popq %whatever >>> .cfi_adjust_sp 8 >>> > > Np.

[PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Matthias Kaehlcke
The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. Adding the #ifdef fixes the following warning when building with clang: lib/zlib_inflate/inffast.c:31:1: error: unused function 'get_unaligned16' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke

Re: [patch 2/2] MM: allow per-cpu vmstat_threshold and vmstat_worker configuration

2017-05-22 Thread Marcelo Tosatti
On Mon, May 22, 2017 at 11:38:02AM -0500, Christoph Lameter wrote: > On Sat, 20 May 2017, Marcelo Tosatti wrote: > > > > And you can configure the interval of vmstat updates freely Set > > > the vmstat_interval to 60 seconds instead of 2 for a try? Is that rare > > > enough? > > > > Not rare

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Andrew Morton
On Mon, 22 May 2017 14:13:26 -0700 Matthias Kaehlcke wrote: > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > Adding the #ifdef fixes the following warning when building with clang: > > lib/zlib_inflate/inffast.c:31:1: error: unused function

Re: [PATCH 7/7] DWARF: add the config option

2017-05-22 Thread H. Peter Anvin
On 05/22/17 14:07, H. Peter Anvin wrote: > On 05/20/17 13:01, H.J. Lu wrote: >> On Sat, May 20, 2017 at 9:20 AM, Josh Poimboeuf wrote: >> (H.J., could we get a binutils feature that allows is to do: pushq %whatever .cfi_adjust_sp -8 ... popq

Re: [PATCH] drm/pl111: add ARM_AMBA dependency

2017-05-22 Thread Arnd Bergmann
On Mon, May 22, 2017 at 6:23 PM, Eric Anholt wrote: > Arnd Bergmann writes: > >> The driver is written in a way to enable compile-testing without >> CONFIG_ARM_AMBA, >> but it just causes needless warnings: >> >> drivers/gpu/drm/pl111/pl111_drv.c:149:26: error:

Re: linux-next: manual merge of the tip tree with Linus' tree

2017-05-22 Thread Stephen Rothwell
Hi Mark, On Mon, 22 May 2017 09:32:15 +0100 Mark Rutland wrote: > > Just to check, is your copy of tip up-to-date? Yes, it was fetched just before being merged. I use the auto-latest branch of the tip tree which may not be as up to date as the master branch. > That

Re: [PATCH] CodingStyle: delete "kmalloc(sizeof(*var))" as preferred allocation form

2017-05-22 Thread Joe Perches
On Tue, 2017-05-23 at 00:38 +0300, Alexey Dobriyan wrote: > There are valid reasons for > > malloc(sizeof(struct S)) > > form: > > * struct S acts as an anchor for ctags quickly reminding which type is > in focus > > * argument re changing name prevents bugs is semi bogus: > such

Re: [PATCH] ipc: Fail build if IPC structures change layout

2017-05-22 Thread Andrew Morton
On Fri, 19 May 2017 16:44:00 -0700 Kees Cook wrote: > Since struct layout can be seen at build-time, turn runtime report > into a build failure so it can be fixed more quickly. I've just dropped the patch which this fixes, due to runtime issues. Manfred, please include

Re: [PATCH 0/2] Fixes for Switchtec Driver

2017-05-22 Thread Bjorn Helgaas
On Mon, May 15, 2017 at 10:44:51AM -0600, Logan Gunthorpe wrote: > Hi Bjorn, > > Can you please apply the following two patches? The first is > a cleanup to use a new helper function I added (it had to wait > until both patchsets were in). The second is a minor bug fix to > the driver we found

Re: [PULL REQUEST] i2c for 4.12

2017-05-22 Thread Tobias Klausmann
If you find the time, please push it out to master for testing purpose! (my touchpad is broken as well: 9d6408433019bfae15e2d0d5f4498c4ff70b86c0 - i2c: designware: don't infer timings described by ACPI from clock rate) Thanks, Tobias Klausmann On 5/22/17 11:04 PM, Wolfram Sang wrote:

[PATCH v2 1/2] mm: avoid spurious 'bad pmd' warning messages

2017-05-22 Thread Ross Zwisler
When the pmd_devmap() checks were added by: commit 5c7fb56e5e3f ("mm, dax: dax-pmd vs thp-pmd vs hugetlbfs-pmd") to add better support for DAX huge pages, they were all added to the end of if() statements after existing pmd_trans_huge() checks. So, things like: - if

Re: linux-next: error while fetching the c6x tree

2017-05-22 Thread Stephen Rothwell
Hi Mark, On Mon, 22 May 2017 10:14:50 -0400 Mark Salter wrote: > > It's back up, now. Thanks. -- Cheers, Stephen Rothwell

Re: [PATCH -next] drm/pl111: Fix return value check in pl111_amba_probe()

2017-05-22 Thread Eric Anholt
Wei Yongjun writes: > From: Wei Yongjun > > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). > > Fixes: bed41005e617

Re: [PATCH 7/7] DWARF: add the config option

2017-05-22 Thread Josh Poimboeuf
On Mon, May 22, 2017 at 02:37:50PM -0700, H. Peter Anvin wrote: > On 05/22/17 14:07, H. Peter Anvin wrote: > > On 05/20/17 13:01, H.J. Lu wrote: > >> On Sat, May 20, 2017 at 9:20 AM, Josh Poimboeuf > >> wrote: > >> > > (H.J., could we get a binutils feature that

[VFS] b3bd180696: BUG:stack_guard_page_was_hit_at#(stack_is#..#)

2017-05-22 Thread kernel test robot
FYI, we noticed the following commit: commit: b3bd18069659cd4f4cdb0ea1638f4ce54ef0b499 ("VFS: Implement a superblock configuration context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters: runtime: 300s

RE: [PATCH 00/24] Thunderbolt security levels and NVM firmware upgrade

2017-05-22 Thread Bernat, Yehezkel
> -Original Message- > From: mario.limoncie...@dell.com [mailto:mario.limoncie...@dell.com] > Sent: Monday, May 22, 2017 23:08 > To: mika.westerb...@linux.intel.com > Cc: gre...@linuxfoundation.org; andreas.noe...@gmail.com; Jamet, > Michael ; Bernat, Yehezkel >

Re: [PULL REQUEST] i2c for 4.12

2017-05-22 Thread Linus Torvalds
On Fri, May 19, 2017 at 1:40 PM, Wolfram Sang wrote: > > here is a regression fix for I2C that would be great to have in rc2 > already. Based on your tree from today. Please pull. Gaah. I hadn't tested this on my laptop, and instead of beign a regression fix, this looks like

[PATCH] clk: sunxi-ng: select SUNXI_CCU_MULT for sun8i-a83t

2017-05-22 Thread Arnd Bergmann
We get a link error when CCU_MULT is not set with the newly added driver: drivers/clk/sunxi-ng/ccu-sun8i-a83t.o:(.data.__compound_literal.1+0x4): undefined reference to `ccu_mult_ops' drivers/clk/sunxi-ng/ccu-sun8i-a83t.o:(.data.__compound_literal.3+0x4): undefined reference to `ccu_mult_ops'

[PATCH] gpu: drm: gma500: remove two more dead variable

2017-05-22 Thread Arnd Bergmann
The dead code removal left two unused variables: drivers/gpu/drm/gma500/mdfld_tpo_vid.c: In function 'tpo_vid_get_config_mode': drivers/gpu/drm/gma500/mdfld_tpo_vid.c:34:31: error: unused variable 'ti' [-Werror=unused-variable] This removes them as well. Fixes: 94d7fb4982d2 ("gpu: drm: gma500:

Documenting sigaltstack SS_AUTODISRM

2017-05-22 Thread Michael Kerrisk (man-pages)
Stas, I have attempted to document the SS_AUTODISARM feature that you added in Linux 4.7. Could you please take a look at the SS_AUTODISARM pieces in the sigaltstack() man page below? There is also one FIXME that I would like help with. It seems to me that the API has become rather odd now. It

Re: [PATCH 02/24] thunderbolt: Do not try to read UID if DROM offset is read as 0

2017-05-22 Thread Mika Westerberg
On Mon, May 22, 2017 at 08:41:22PM +0200, Andreas Noever wrote: > Yes there is a check for the root switch, but also one that checks the > return code of tb_drom_read_uid_only :) > > err = tb_drom_read_uid_only(sw, ); > if (err) { > tb_sw_warn(sw, "uid read failed\n"); > return err; > } >

Re: [4.11 regression] su / sudo doesn't work when enlightenment is running as the window manager

2017-05-22 Thread Takashi Iwai
On Mon, 22 May 2017 22:24:17 +0200, Eric W. Biederman wrote: > > Takashi Iwai writes: > > > Hi Eric, > > > > we've got a bug report showing the weird behavior supposedly triggered > > by your commit 20523132ec5d ("exec: Test the ptracer's saved cred to > > see if the tracee can

Re: [PATCH 1/3] mm/slub: Only define kmalloc_large_node_hook() for NUMA systems

2017-05-22 Thread Matthias Kaehlcke
El Mon, May 22, 2017 at 01:39:26PM -0700 David Rientjes ha dit: > On Fri, 19 May 2017, Matthias Kaehlcke wrote: > > > The function is only used when CONFIG_NUMA=y. Placing it in an #ifdef > > block fixes the following warning when building with clang: > > > > mm/slub.c:1246:20: error: unused

Re: [PULL REQUEST] i2c for 4.12

2017-05-22 Thread Wolfram Sang
> Confirmed. Initializing those fields to zero fixes it. Thanks! signature.asc Description: PGP signature

Re: Build regressions/improvements in v4.12-rc2

2017-05-22 Thread Arnd Bergmann
On Mon, May 22, 2017 at 8:46 PM, John David Anglin wrote: > On 2017-05-22, at 5:49 AM, Geert Uytterhoeven wrote: > >>> [Deleted 1166 lines about "warning: -ffunction-sections disabled; it makes >>> profiling impossible [enabled by default]" on parisc-allmodconfig] > >

Re: [HMM 08/15] mm/ZONE_DEVICE: special case put_page() for device private pages

2017-05-22 Thread Jerome Glisse
On Mon, May 22, 2017 at 01:19:29PM -0700, Dan Williams wrote: > On Mon, May 22, 2017 at 1:14 PM, Jerome Glisse wrote: > > On Mon, May 22, 2017 at 12:29:53PM -0700, Dan Williams wrote: > >> On Mon, May 22, 2017 at 9:51 AM, Jérôme Glisse wrote: > >> > A

Re: [PATCH 7/7] DWARF: add the config option

2017-05-22 Thread H. Peter Anvin
On 05/22/17 04:12, Ingo Molnar wrote: \>> >> This construct might be useful for other arches, which is why I called >> it "FP" instead of "BP". But then I ruined that with the last 3 :-) > > Please call it BP - 'FP' can easily be read as floating-point, making it all > super-confusing. We

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Matthias Kaehlcke
Hi Andrew, El Mon, May 22, 2017 at 02:39:25PM -0700 Andrew Morton ha dit: > On Mon, 22 May 2017 14:13:26 -0700 Matthias Kaehlcke > wrote: > > > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > > Adding the #ifdef fixes the following warning when

Re: [PATCH v4 next 1/3] modules:capabilities: allow __request_module() to take a capability argument

2017-05-22 Thread Kees Cook
On Mon, May 22, 2017 at 4:57 AM, Djalal Harouni wrote: > This is a preparation patch for the module auto-load restriction feature. > > In order to restrict module auto-load operations we need to check if the > caller has CAP_SYS_MODULE capability. This allows to align security >

Re: [PATCH v3 1/5] sysctl: fix lax sysctl_check_table() sanity check

2017-05-22 Thread Andrew Morton
On Thu, 18 May 2017 20:35:50 -0700 "Luis R. Rodriguez" wrote: > Commit 7c60c48f58a7 ("sysctl: Improve the sysctl sanity checks") > improved sanity checks considerbly, however the enhancements on > sysctl_check_table() meant adding a functional change so that > only the last

[PATCH] crypto: rng: Remove unused function __crypto_rng_cast()

2017-05-22 Thread Matthias Kaehlcke
This fixes the following warning when building with clang: crypto/rng.c:35:34: error: unused function '__crypto_rng_cast' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke --- crypto/rng.c | 5 - 1 file changed, 5 deletions(-) diff --git a/crypto/rng.c

Re: [PATCH v2 1/7] kernel/locking: Fix compile error with qrwlock.c

2017-05-22 Thread David Miller
From: Babu Moger Date: Mon, 22 May 2017 16:57:39 -0500 > I will update the patch set with the above information. Does that > work? Yes it does, I didn't realize there were multiple problems. Thanks.

Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions

2017-05-22 Thread Kees Cook
On Mon, May 22, 2017 at 12:55 PM, Djalal Harouni wrote: > On Mon, May 22, 2017 at 6:43 PM, Solar Designer wrote: >> On Mon, May 22, 2017 at 03:49:15PM +0200, Djalal Harouni wrote: >>> On Mon, May 22, 2017 at 2:08 PM, Solar Designer

[PATCH 1/2] staging: vt6655: replace NULL comparison with '!' operator

2017-05-22 Thread Marko Stankovic
Fix comparison to NULL issues reported by checkpatch.pl Signed-off-by: Marko Stankovic --- drivers/staging/vt6655/device_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c

[PATCH 2/2] staging: vt6655: remove unnecessary blank lines

2017-05-22 Thread Marko Stankovic
Fix unnecessary blank lines issues reported by checkpatch.pl Signed-off-by: Marko Stankovic --- drivers/staging/vt6655/device_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index

Re: [PATCH v3] add the option of fortified string.h functions

2017-05-22 Thread Kees Cook
On Mon, May 22, 2017 at 4:10 PM, Daniel Micay wrote: > This adds support for compiling with a rough equivalent to the glibc > _FORTIFY_SOURCE=1 feature, providing compile-time and runtime buffer > overflow checks for string.h functions when the compiler determines the >

Re: [PATCH v2 10/11] x86/mm: Be more consistent wrt PAGE_SHIFT vs PAGE_SIZE in tlb flush code

2017-05-22 Thread Nadav Amit
> > /* Balance as user space task's flush, a bit conservative */ > if (end == TLB_FLUSH_ALL || > - (end - start) > tlb_single_page_flush_ceiling * PAGE_SIZE) { > + (end - start) > tlb_single_page_flush_ceiling >> PAGE_SHIFT) { Shouldn’t it be << ? Nadav

Re: [PATCH v3 4/5] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-05-22 Thread Kim Phillips
On Mon, 22 May 2017 17:22:12 +0100 Mark Rutland wrote: > On Mon, May 22, 2017 at 10:45:21AM -0500, Kim Phillips wrote: > > On Mon, 22 May 2017 13:44:46 +0100 > > Mark Rutland wrote: > > > On Mon, May 22, 2017 at 07:32:49AM -0500, Kim Phillips wrote: >

Re: Documenting sigaltstack SS_AUTODISRM

2017-05-22 Thread Stas Sergeev
22.05.2017 23:38, Michael Kerrisk (man-pages) пишет: Stas, I have attempted to document the SS_AUTODISARM feature that you added in Linux 4.7. Could you please take a look at the SS_AUTODISARM pieces in the sigaltstack() man page below? There is also one FIXME that I would like help with. It

Re: [PATCH 1/3] mfd: dm355evm_msp: move header file out of I2C realm

2017-05-22 Thread Dmitry Torokhov
On Mon, May 22, 2017 at 12:02:08AM +0200, Wolfram Sang wrote: > include/linux/i2c is not for client devices. Move the header file to a > more appropriate location. > > Signed-off-by: Wolfram Sang > --- > drivers/input/misc/dm355evm_keys.c| 2 +- Acked-by: Dmitry

Re: dm ioctl: Restore __GFP_HIGH in copy_params()

2017-05-22 Thread Mike Snitzer
On Mon, May 22 2017 at 4:35pm -0400, David Rientjes wrote: > On Mon, 22 May 2017, Mike Snitzer wrote: > > > > > The lvm2 was designed this way - it is broken, but there is not much > > > > that > > > > can be done about it - fixing this would mean major rewrite. The only

Re: [PATCH net-next 2/2] samples/bpf: add samples for HW_CACHE / RAW events

2017-05-22 Thread Alexei Starovoitov
On 5/22/17 4:26 PM, David Miller wrote: From: Alexei Starovoitov Date: Mon, 22 May 2017 15:48:40 -0700 @@ -31,7 +31,7 @@ static unsigned long long (*bpf_get_current_uid_gid)(void) = (void *) BPF_FUNC_get_current_uid_gid; static int (*bpf_get_current_comm)(void *buf, int

Re: [PATCH] ib/core: not to set page dirty bit if it's already set.

2017-05-22 Thread Qing Huang
On 5/19/2017 6:05 AM, Christoph Hellwig wrote: On Thu, May 18, 2017 at 04:33:53PM -0700, Qing Huang wrote: This change will optimize kernel memory deregistration operations. __ib_umem_release() used to call set_page_dirty_lock() against every writable page in its memory region. Its purpose is

Re: [PATCH v2 4/5] HID: intel_ish-hid: fix format string for size_t

2017-05-22 Thread Srinivas Pandruvada
On Thu, 2017-05-18 at 22:21 +0200, Arnd Bergmann wrote: > When building for 32-bit architectures, we get a harmless warning: > > intel-ish-hid/ishtp-hid-client.c: In function 'process_recv': > intel-ish-hid/ishtp-hid-client.c:139:7: error: format '%lu' expects > argument of type 'long unsigned

Re: [PATCH] gpu: drm: gma500: remove two more dead variable

2017-05-22 Thread Patrik Jakobsson
On Mon, May 22, 2017 at 10:30 PM, Arnd Bergmann wrote: > The dead code removal left two unused variables: > > drivers/gpu/drm/gma500/mdfld_tpo_vid.c: In function 'tpo_vid_get_config_mode': > drivers/gpu/drm/gma500/mdfld_tpo_vid.c:34:31: error: unused variable 'ti' >

Re: [PATCH] irqchip: aspeed: Add AST2500 compatible string

2017-05-22 Thread Rob Herring
On Tue, May 16, 2017 at 03:57:47PM +0800, Andrew Jeffery wrote: > In addition to introducing the new compatible string the bindings > description is reworked to be more generic. > > Signed-off-by: Andrew Jeffery > --- > .../bindings/interrupt-controller/aspeed,ast2400-vic.txt

Re: [PATCH] crypto: stm32 - Add CRC32 support for STM32F4XX

2017-05-22 Thread Rob Herring
On Wed, May 17, 2017 at 12:18:50AM +0300, Cosar Dindar wrote: > This patch series add hardware CRC32 ("Ethernet") calculation support > for STMicroelectronics STM32F4XX series devices. > > As an hardware limitation polynomial and key setting are not supported > as they are fixed as 0x4C11DB7

Re: [PATCH v3 19/21] drm/sun4i: Add compatible for the A10s pipeline

2017-05-22 Thread Rob Herring
On Wed, May 17, 2017 at 09:40:48AM +0200, Maxime Ripard wrote: > The A10s has a slightly different display pipeline than the A13, with an > HDMI controller. > > Add a compatible for it. > > Signed-off-by: Maxime Ripard > --- >

[PATCH 3/7] RISC-V: Device Tree Documentation

2017-05-22 Thread Palmer Dabbelt
--- .../interrupt-controller/riscv,cpu-intc.txt| 46 ++ .../bindings/interrupt-controller/riscv,plic0.txt | 44 + 2 files changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/riscv,cpu-intc.txt

[PATCH v3 5/5] mtd: mchp23k256: Add support for mchp23lcv1024

2017-05-22 Thread Chris Packham
The mchp23lcv1024 is software compatible with the mchp23k256, the only difference (from a software point of view) is the size. There is no way to detect the size so we must be told via a Device Tree. Signed-off-by: Chris Packham --- Changes in v2: - fix

[PATCH 6/7] RISC-V: arch/riscv/kernel

2017-05-22 Thread Palmer Dabbelt
--- arch/riscv/kernel/Makefile | 19 ++ arch/riscv/kernel/asm-offsets.c| 113 ++ arch/riscv/kernel/cacheinfo.c | 82 arch/riscv/kernel/cpu.c| 81 arch/riscv/kernel/entry.S | 414 +

[PATCH 7/7] RISC-V: arch/riscv/mm

2017-05-22 Thread Palmer Dabbelt
--- arch/riscv/mm/Makefile | 1 + arch/riscv/mm/extable.c | 38 +++ arch/riscv/mm/fault.c | 279 arch/riscv/mm/init.c| 72 + arch/riscv/mm/ioremap.c | 96 + 5 files changed, 486 insertions(+) create mode

Re: [PATCH 07/12] arm64: dts: hi3660: Add uarts nodes

2017-05-22 Thread Rob Herring
On Wed, May 17, 2017 at 04:37:40PM +0800, Guodong Xu wrote: > From: Chen Feng > > Add nodes uart0 to uart4 and uart6 for hi3660 SoC. > Enable uart3 and uart6, disable uart5, in hikey960 board dts. > > On HiKey960: > - UART6 is used as default console, and is wired out

[PATCH v3 4/5] mtd: mchp23k256: add partitioning support

2017-05-22 Thread Chris Packham
Setting the of_node for the mtd device allows the generic mtd code to setup the partitions. Additionally we must specify a non-zero erasesize for the partitions to be writeable. Signed-off-by: Chris Packham Reviewed-by: Andrew Lunn Tested-by:

Re: [PATCH v3 5/5] mtd: mchp23k256: Add support for mchp23lcv1024

2017-05-22 Thread Andrew Lunn
On Tue, May 23, 2017 at 12:43:17PM +1200, Chris Packham wrote: > The mchp23lcv1024 is software compatible with the mchp23k256, the > only difference (from a software point of view) is the size. This is not really true. The size of the address is also different, and the point of the v2 change. >

Re: [RFC PATCH v3 00/12] Unify interrupt mode and setup it as soon as possible

2017-05-22 Thread Dou Liyang
Dear Thomas, At 05/23/2017 04:23 AM, Thomas Gleixner wrote: Dou, On Wed, 10 May 2017, Dou Liyang wrote: According to Ingo's and Eric's advice[1,2], Try my best to optimize the init of interrupt delivery mode for x86. sorry for replying late. The patchset is not forgotten, it's on my todo

Re: [PATCH 2/7] RISC-V: arch/riscv Makefile and Kconfigs

2017-05-22 Thread Randy Dunlap
On 05/22/17 18:27, Olof Johansson wrote: > Hi, > > > On Mon, May 22, 2017 at 5:41 PM, Palmer Dabbelt wrote: >> --- >> arch/riscv/.gitignore| 35 >> arch/riscv/Kconfig | 300 >> +++ >>

Re: [PATCH 1/3] mm/slub: Only define kmalloc_large_node_hook() for NUMA systems

2017-05-22 Thread David Rientjes
On Mon, 22 May 2017, Andrew Morton wrote: > > > Is clang not inlining kmalloc_large_node_hook() for some reason? I don't > > > think this should ever warn on gcc. > > > > clang warns about unused static inline functions outside of header > > files, in difference to gcc. > > I wish it

Re: [PATCH 1/3] mfd: lp87565: Add lp87565 PMIC support

2017-05-22 Thread Keerthy
On Monday 22 May 2017 11:18 PM, Lee Jones wrote: > On Fri, 19 May 2017, Keerthy wrote: > >> The LP87565 chip is a power management IC for Portable Navigation Systems >> and Tablet Computing devices. It contains the following components: >> >> - Configurable Bucks(Single and

Re: [PATCH] arm64: dts: rockchip: update cpu opp table for rk3399 op1

2017-05-22 Thread Eddie Cai
Hi Heiko 2017-05-22 23:02 GMT+08:00 Heiko Stuebner : > Hi Eddie, Caesar, > > Am Montag, 24. April 2017, 18:29:26 CEST schrieb Eddie Cai: >> Hi Heiko >> >> 2017-04-24 17:15 GMT+08:00 Heiko Stübner : >> > Am Montag, 24. April 2017, 16:49:08 CEST schrieb Caesar

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Hugh Dickins
On Tue, 23 May 2017, Xishi Qiu wrote: > On 2017/5/23 3:26, Hugh Dickins wrote: > > I mean, there are various places in mm/memory.c which decide what they > > intend to do based on orig_pte, then take pte lock, then check that > > pte_same(pte, orig_pte) before taking it any further. If a

[PATCH] ext4: fix quota charging for shared xattr blocks

2017-05-22 Thread Tahsin Erdogan
ext4_xattr_block_set() calls dquot_alloc_block() to charge for an xattr block when new references are made. However if dquot_initialize() hasn't been called on an inode, request for charging is effectively ignored because ext4_inode_info->i_dquot is not initialized yet. Add dquot_initialize()

Multiple longjmp definitions with STATIC_LINKING=y

2017-05-22 Thread Florian Fainelli
Hi Richard, I have been playing with UML again and trying to get it to statically link on a CentOS 6.9 host that has: glibc-2.12-static gcc-4.4 installed results in the following: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `siglongjmp':

Re: [PATCH 0/6] refine and rename slub sysfs

2017-05-22 Thread Wei Yang
On Thu, May 18, 2017 at 11:06:37AM +0200, Michal Hocko wrote: >On Wed 17-05-17 22:11:40, Wei Yang wrote: >> This patch serial could be divided into two parts. >> >> First three patches refine and adds slab sysfs. >> Second three patches rename slab sysfs. >> >> 1. Refine slab sysfs >> >> There

Re: [PATCH v3 0/3] Fix mdp device tree

2017-05-22 Thread Minghsiu Tsai
On Mon, 2017-05-22 at 16:16 +0200, Hans Verkuil wrote: > On 05/22/2017 04:14 PM, Matthias Brugger wrote: > > > > > > On 22/05/17 11:09, Hans Verkuil wrote: > >> On 05/12/2017 05:22 AM, Minghsiu Tsai wrote: > >> > >> Who should take care of the dtsi changes? I'm not sure who maintains the > >>

Re: RISC-V Linux Port v1

2017-05-22 Thread Palmer Dabbelt
On Mon, 22 May 2017 18:25:41 PDT (-0700), rdun...@infradead.org wrote: > On 05/22/17 18:16, Olof Johansson wrote: >> Hi Palmer, >> >> On Mon, May 22, 2017 at 5:41 PM, Palmer Dabbelt wrote: >> >>> In addition to the threaded messages, our port can be found on Git Hib >>> >>>

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