[BUG] x86: failed to boot a kernel on a Ryzen machine

2017-04-23 Thread Satoru Takeuchi
Recently I bought a new Ryzen machine. When I tried to test v4.11-rc8 on it, it failed to boot with the following panic log. ``` ... [0.227720] raid6: sse2x1 gen() 7985 MB/s [0.295709] raid6: sse2x1 xor() 8181 MB/s [0.363706] raid6: sse2x2 gen() 17531 MB/s [0.431699] raid6

Re: [lkp-robot] [mtd] 42e9401bd1: WARNING:at_kernel/locking/lockdep.c:#__bfs

2017-04-23 Thread Uwe Kleine-König
Hello, On Tue, Apr 11, 2017 at 09:47:29AM +0800, kernel test robot wrote: > > FYI, we noticed the following commit: > > commit: 42e9401bd1467d22c4dc4d2c637347b874e6a80b ("mtd: Add partition device > node to mtd partition devices") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.gi

Re: [PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-23 Thread Michel Dänzer
On 22/04/17 07:05 PM, Ville Syrjälä wrote: > On Fri, Apr 21, 2017 at 06:14:31PM +0200, Gerd Hoffmann wrote: >> Hi, >> My personal opinion is that formats in drm_fourcc.h should be independent of the CPU byte order and the function drm_mode_legacy_fb_format() and drivers depending

Re: [PATCH v2 2/2] drm: dw-hdmi: gate audio clock from the I2S enablement callbacks

2017-04-23 Thread Romain Perier
Hello, > Took the liberty of going ahead with the fixes. Queued both patches to > drm-misc-next. > > Thanks, > Archit You were right. Sorry for the delay, I am back from vacations :) Regards, Romain

Re: [PATCH v2 3/3] Documentation/kernel-parameters.txt: Update 'memmap=' option description

2017-04-23 Thread Baoquan He
On 04/24/17 at 11:53am, Dou Liyang wrote: > > > At 04/24/2017 10:40 AM, Baoquan He wrote: > > In commit: > > > > 9710f581bb4c ("x86, mm: Let "memmap=" take more entries one time") > > > > ... 'memmap=' was changed to adopt multiple, comma delimited values in a > > single entry, so update the

Fix English in description of GCC_PLUGIN_STRUCTLEAK

2017-04-23 Thread Jean Delvare
Signed-off-by: Jean Delvare Fixes: c61f13eaa1ee ("gcc-plugins: Add structleak for more stack initialization") Cc: Kees Cook --- arch/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-4.11-rc8.orig/arch/Kconfig2017-04-03 02:23:54.0 +0200 +++ linux-4.11-rc8/a

Re: [PATCH] hwmon: tmp103: use SIMPLE_DEV_PM_OPS helper macro

2017-04-23 Thread Rahul Bedarkar
Hello Guenter, Heiko, On Mon, Apr 24, 2017 at 9:28 AM, Heiko Schocher wrote: > Hello Guenter, Rahul, > > Hmm.. I like this patch too, but have also no idea, what is preffered. > > Looking into drivers/hwmon > > pollux:linux hs [master] $ grep -lr __maybe_unused drivers/hwmon/ > drivers/hwmon/tmp1

linux-next: manual merge of the akpm-current tree with the nvdimm tree

2017-04-23 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/dax.c between commit: 52d52d6f1178 ("filesystem-dax: convert to dax_direct_access()") from the nvdimm tree and commit: a865ea3e58c4 ("dax: add tracepoints to dax_writeback_mapping_range()") 70b18baeff15

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-23 Thread Huang, Ying
Minchan Kim writes: > On Fri, Apr 21, 2017 at 08:29:30PM +0800, Huang, Ying wrote: >> "Huang, Ying" writes: >> >> > Minchan Kim writes: >> > >> >> On Wed, Apr 19, 2017 at 04:14:43PM +0800, Huang, Ying wrote: >> >>> Minchan Kim writes: >> >>> >> >>> > Hi Huang, >> >>> > >> >>> > On Fri, Apr 0

Re: [PATCH v3 07/29] x86: bpf_jit, use ENTRY+ENDPROC

2017-04-23 Thread Jiri Slaby
On 04/21/2017, 09:32 PM, Alexei Starovoitov wrote: > On Fri, Apr 21, 2017 at 04:12:43PM +0200, Jiri Slaby wrote: >> Do not use a custom macro FUNC for starts of the global functions, use >> ENTRY instead. >> >> And while at it, annotate also ends of the functions by ENDPROC. >> >> Signed-off-by: Ji

Re: [PATCH v2 2/2] drm: dw-hdmi: gate audio clock from the I2S enablement callbacks

2017-04-23 Thread Romain Perier
Hello, Le 19/04/2017 à 06:51, Archit Taneja a écrit : > > > On 04/14/2017 02:01 PM, Romain Perier wrote: >> Currently, the audio sampler clock is enabled from dw_hdmi_setup() at >> step E. and is kept enabled for later use. This clock should be enabled >> and disabled along with the actual audio

Re: [lkp-robot] [debugfs] f3e7155d08: BUG:unable_to_handle_kernel

2017-04-23 Thread Ye Xiaolong
On 04/23, Nicolai Stange wrote: >Hi Xiaolong, > >I'm encountering some difficulties running the reproducer, see below. >Any help is very welcome! > Thanks for watching the report and trying the reproducer. > >On Tue, Apr 18 2017, kernel test robot wrote: > >> [ 45.772683] BUG: unable to handle

Re: [PATCH] scsi: mvumi: remove code handling zero scsi_sg_count(scmd) case

2017-04-23 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig Note that there is plenty opportunity for cleanup even in the moved code section, but let's get this issue sorted out only for now.

Re: [PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-23 Thread Michel Dänzer
On 23/04/17 04:24 AM, Ilia Mirkin wrote: > > fbdev also creates fb's that expect cpu endianness, as disabling the > byteswap logic caused a green fbcon terminal to show up. (So at least > something somewhere in the fbcon -> nouveau's fbdev emulation pipeline > is expecting cpu endianness. This hap

linux-next: manual merge of the akpm-current tree with the kselftest tree

2017-04-23 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: tools/testing/selftests/vm/run_vmtests between commit: ff80d9152fd7 ("selftests/vm/run_vmtests: Fix wrong comment") from the kselftest tree and commit: 7b7c7dac4437 ("userfaultfd: selftest: combine all cases

Re: [PATCH v4 05/11] VAS: Define helpers for access MMIO regions

2017-04-23 Thread Benjamin Herrenschmidt
On Thu, 2017-03-30 at 22:13 -0700, Sukadev Bhattiprolu wrote: > +static void *map_mmio_region(char *name, uint64_t start, int len) > +{ > +   void *map; > + > +   if (!request_mem_region(start, len, name)) { > +   pr_devel("%s(): request_mem_region(0x%llx, %d) failed\n", > +

Re: [PATCH v4 04/11] VAS: Define vas_init() and vas_exit()

2017-04-23 Thread Benjamin Herrenschmidt
On Thu, 2017-03-30 at 22:13 -0700, Sukadev Bhattiprolu wrote: > > + p = of_get_property(dn, "vas-id", NULL); > + if (!p) { > + pr_err("VAS: NULL vas-id? %p\n", p); > + return -ENODEV; > + } > + > + vinst->vas_id = of_read_number(p, 1); of_property_read_u32(

[PATCH 4/6] drm: fourcc byteorder: adapt bochs-drm to drm_mode_legacy_fb_format update

2017-04-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs_mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c index 857755ac2d..781d35bdff 100644 --- a/drivers/gpu/drm/bochs/bochs_mm.c +++ b/drivers/gpu/dr

[PATCH 6/6] drm: fourcc byteorder: virtio restrict to XRGB8888

2017-04-23 Thread Gerd Hoffmann
While wading through the code I've noticed we have a little issue in virtio: We attach a format to the bo when it is created (DRM_IOCTL_MODE_CREATE_DUMB), not when we map it as framebuffer (DRM_IOCTL_MODE_ADDFB). Easy way out: support a single format only. Signed-off-by: Gerd Hoffmann --- dri

[PATCH 5/6] drm: fourcc byteorder: adapt virtio to drm_mode_legacy_fb_format update

2017-04-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_gem.c | 2 +- drivers/gpu/drm/virtio/virtgpu_plane.c | 31 --- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_gem.c b/drivers/gpu/drm/virtio/virtgpu_gem.c

[PATCH 2/6] drm: fourcc byteorder: add DRM_FORMAT_CPU_*

2017-04-23 Thread Gerd Hoffmann
Add fourcc variants in cpu byte order. With these at hand we don't need #ifdefs in drivers want support framebuffers in cpu endianess. Signed-off-by: Gerd Hoffmann --- include/drm/drm_fourcc.h | 12 1 file changed, 12 insertions(+) diff --git a/include/drm/drm_fourcc.h b/include/d

[PATCH 3/6] drm: fourcc byteorder: add bigendian support to drm_mode_legacy_fb_format

2017-04-23 Thread Gerd Hoffmann
Return correct fourcc codes on bigendian. Drivers must be adapted to this change. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/drm_fourcc.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index adb3ff5

[PATCH 1/6] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-04-23 Thread Gerd Hoffmann
It's unused. Suggested-by: Daniel Vetter Signed-off-by: Gerd Hoffmann --- include/uapi/drm/drm_fourcc.h | 2 -- drivers/gpu/drm/drm_fourcc.c | 3 +-- drivers/gpu/drm/drm_framebuffer.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/uapi/drm/drm_fourcc.h b

Re: Doubt on first access for PCIe device

2017-04-23 Thread abhijit
Hi Lorenzo, Yes that's true.. My question is: what if EP function default completer ID means BDF has values = 0(meaning B = 0, D = 0, f = 0) and Root complex requester ID also has same BDF, that is 0. Is that valid case as per PCIe standard, as in this case, requester ID and completion ID h

Re: [PATCH v3 09/11] x86/xen: use capabilities instead of fake cpuid values for xsave

2017-04-23 Thread Juergen Gross
On 21/04/17 16:51, Boris Ostrovsky wrote: > On 04/21/2017 10:45 AM, Andrew Cooper wrote: >> On 21/04/17 15:38, Juergen Gross wrote: >>> On 21/04/17 16:24, Boris Ostrovsky wrote: > +static bool __init xen_check_xsave(void) > { > - unsigned int ax, bx, cx, dx; > - unsigned int xsave_

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-23 Thread Paul E. McKenney
On Mon, Apr 24, 2017 at 07:24:44AM +0200, Mike Galbraith wrote: > On Sun, 2017-04-23 at 20:32 -0700, Paul E. McKenney wrote: > > On Mon, Apr 24, 2017 at 04:48:09AM +0200, Mike Galbraith wrote: > > > Greetings, > > > > > > Running Steven's hotplug stress script in tip w. CLASSIC_SRCU takes 55s > >

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-23 Thread Stephan Müller
Am Montag, 24. April 2017, 08:16:50 CEST schrieb Stephan Müller: Hi Gilad, > > > > int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key, > > > > unsigned int keylen) > > > > However, this does not check that k1 == k3. In this case DES3 > > becomes 2DES (2-keys TDE

Re: [PATCH v4 04/11] VAS: Define vas_init() and vas_exit()

2017-04-23 Thread Benjamin Herrenschmidt
On Thu, 2017-03-30 at 22:13 -0700, Sukadev Bhattiprolu wrote: > +config VAS > +   tristate "IBM Virtual Accelerator Switchboard (VAS)" CONFIG_IBM_VAS or PPC_VAS ... too high risk of collision otherwise Ben.

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

2017-04-23 Thread Caesar Wang
Update the cpu opp table for rk3399 op1. Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi inde

qemu-kvm hangs with DAX

2017-04-23 Thread Yigal Korman
This is a re-post, I didn't send it to all relevant mailing lists before... Original below. Hi everyone, I have an interesting issue with DAX and KVM - I'm trying to boot a VM with its memory mapped to a DAX-mounted file (kernel 4.9). The use case is a bit wacky but I'm trying to recreate somet

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-23 Thread Stephan Müller
Am Montag, 24. April 2017, 08:06:09 CEST schrieb Gilad Ben-Yossef: Hi Gilad, > > Well, it turns out there is and we do :-) > > This is from crypto/des_generic.c: > > /* > * RFC2451: > * > * For DES-EDE3, there is no known need to reject weak or > * complementation keys. Any weakness is

linux-next: build failure after merge of the nvdimm tree

2017-04-23 Thread Stephen Rothwell
Hi Dan, After merging the nvdimm tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/nvdimm/x86.c: In function 'pmem_from_user': drivers/nvdimm/x86.c:115:11: error: implicit declaration of function '__copy_from_user_nocache' [-Werror=implicit-function-declaration] in

Re: [PATCH v2 6/9] staging: ccree: add FIPS support

2017-04-23 Thread Gilad Ben-Yossef
On Sun, Apr 23, 2017 at 12:48 PM, Gilad Ben-Yossef wrote: > Hi, > > Thank you for the review. > > On Thu, Apr 20, 2017 at 4:39 PM, Stephan Müller wrote: > >>> +/* The function verifies that tdes keys are not weak.*/ >>> +static int ssi_fips_verify_3des_keys(const u8 *key, unsigned int keylen) >>>

Re: [PATCH v1 1/1] srcu-cbmc: Use /usr/bin/awk instead of /bin/awk

2017-04-23 Thread Lance Roy
Acked-by: Lance Roy On Sat, 22 Apr 2017 10:17:11 -0700 priyalee.kushw...@intel.com wrote: > From: Priyalee Kushwaha > > Most OS distribution have awk in /usr/bin not in /bin > Without this patch, kernel-devsrc fails to build as > runtime dependency for srcu-cbmc script /bin/awk is > not found.

Re: [PATCH v2 0/9] drm/sun4i: Support multiple display pipelines

2017-04-23 Thread Maxime Ripard
On Fri, Apr 21, 2017 at 04:38:48PM +0800, Chen-Yu Tsai wrote: > Hi, > > This is v2 of the series previously named "drm/sun4i: Support two > display pipelines". As the name change suggests, the driver now > supports any number of pipelines, though the hardware only has > 2 or 3. > > Changes since

linux-next: manual merge of the nvdimm tree with the block tree

2017-04-23 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: fs/dax.c between commit: ee472d835c26 ("block: add a flags argument to (__)blkdev_issue_zeroout") from the block tree and commit: 52d52d6f1178 ("filesystem-dax: convert to dax_direct_access()") from the nvdimm tree.

linux-next: manual merge of the nvdimm tree with the block tree

2017-04-23 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: drivers/block/brd.c between commit: f09a06a193d9 ("brd: remove discard support") from the block tree and commit: 1647b9b959c7 ("brd: add dax_operations support") from the nvdimm tree. Dan, thanks for the example me

[PATCH 1/2] of: add support of dtc compiler flags for device tree overlays

2017-04-23 Thread frowand . list
From: Frank Rowand The dtc compiler version that adds initial support was available in 4.11-rc1. Add the ability to set the dtc compiler flags needed by overlays. Signed-off-by: Frank Rowand --- scripts/Makefile.lib | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.lib b/

[PATCH 0/2] of: Add unit tests for applying overlays

2017-04-23 Thread frowand . list
From: Frank Rowand Existing overlay unit tests examine individual pieces of the overlay code. The new tests target the entire process of applying an overlay. Frank Rowand (2): of: add support of dtc compiler flags for device tree overlays of: Add unit tests for applying overlays. drivers/

[PATCH 2/2] of: Add unit tests for applying overlays.

2017-04-23 Thread frowand . list
From: Frank Rowand Existing overlay unit tests examine individual pieces of the overlay code. The new tests target the entire process of applying an overlay. Signed-off-by: Frank Rowand --- There are checkpatch warnings. I have reviewed them and feel they can be ignored. drivers/of/fdt.c

Re: [PATCH] libnvdimm, region: sysfs trigger for nvdimm_flush()

2017-04-23 Thread Masayoshi Mizuma
On Fri, 21 Apr 2017 16:48:57 -0700 Dan Williams wrote: > The nvdimm_flush() mechanism helps to reduce the impact of an ADR > (asynchronous-dimm-refresh) failure. The ADR mechanism handles flushing > platform WPQ (write-pending-queue) buffers when power is removed. The > nvdimm_flush() mechanism per

[PATCH] driver-core: remove lock for platform devices during probe

2017-04-23 Thread Wei Li
During driver probe procedure, lock on the parent of platform devices could be removed to make probe in parallel. Signed-off-by: Wei Li --- drivers/base/dd.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index a1fbf55..e238fbc 100

Re: [PATCH 1/2] team: fix memory leak

2017-04-23 Thread Jiri Pirko
Sun, Apr 23, 2017 at 09:29:24AM CEST, bianpan2...@163.com wrote: >In function team_nl_send_port_list_get(), pointer skb keeps the return >value of nlmsg_new(). When the call to genlmsg_put() fails, the memory >is not freed. This will result in a memory leak bug. This patch fixes >it. > Looks good

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

2017-04-23 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > kernel/tracepoint.c: In function 'tracepoint_remove_func': > kernel/tracepoint.c:253:4: error: implicit declaration of function > 'static_key_slow_dec_

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-23 Thread Mike Galbraith
On Sun, 2017-04-23 at 20:32 -0700, Paul E. McKenney wrote: > On Mon, Apr 24, 2017 at 04:48:09AM +0200, Mike Galbraith wrote: > > Greetings, > > > > Running Steven's hotplug stress script in tip w. CLASSIC_SRCU takes 55s > > in my i4790 box, whereas TREE_SRCU takes over 16m. (Master with the > > s

[PATCH 1/3] of: overlay_adjust_phandles() - do not modify const field

2017-04-23 Thread frowand . list
From: Frank Rowand When adjusting overlay phandles to apply to the live device tree, can not modify the property value because it is type const. This is to resolve the issue found by Stephen Boyd [1] when he changed the type of struct property.value from void * to const void *. As a result of t

[PATCH 2/3] of: make __of_attach_node() static

2017-04-23 Thread frowand . list
From: Frank Rowand __of_attach_node() is not used outside of drivers/of/dynamic.c. Make it static and remove it from drivers/of/of_private.h. Signed-off-by: Frank Rowand --- drivers/of/dynamic.c| 2 +- drivers/of/of_private.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --

[PATCH 3/3] of: detect invalid phandle in overlay

2017-04-23 Thread frowand . list
From: Frank Rowand Overlays are not allowed to modify phandle values of previously existing nodes because there is no information available to allow fixup up of properties that use the previously existing phandle. Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 4 1 file changed, 4

[PATCH 0/3] of: fix overlay modification of const variable

2017-04-23 Thread frowand . list
From: Frank Rowand When adjusting overlay phandles to apply to the live device tree, can not modify the property value because it is type const. This is to resolve the issue found by Stephen Boyd [1] when he changed the type of struct property.value from void * to const void *. As a result

[PATCH v4 2/2] tiocsti-restrict : make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-23 Thread Matt Brown
This introduces the tiocsti_restrict sysctl, whose default is controlled via CONFIG_SECURITY_TIOCSTI_RESTRICT. When activated, this control restricts all TIOCSTI ioctl calls from non CAP_SYS_ADMIN users. This patch depends on patch 1/2 This patch was inspired from GRKERNSEC_HARDEN_TTY. This patc

[PATCH v4 1/2] tiocsti-restrict : Add owner user namespace to tty_struct

2017-04-23 Thread Matt Brown
This patch adds struct user_namespace *owner_user_ns to the tty_struct. Then it is set to current_user_ns() in the alloc_tty_struct function. This is done to facilitate capability checks against the original user namespace that allocated the tty. E.g. ns_capable(tty->owner_user_ns,CAP_SYS_ADMIN)

[PATCH v4 0/2] tiocsti-restrict : make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-23 Thread Matt Brown
This patchset introduces the tiocsti_restrict sysctl, whose default is controlled via CONFIG_SECURITY_TIOCSTI_RESTRICT. When activated, this control restricts all TIOCSTI ioctl calls from non CAP_SYS_ADMIN users. This patch was inspired from GRKERNSEC_HARDEN_TTY. This patch would have prevented h

Re: [PATCH v6 05/15] lockdep: Implement crossrelease feature

2017-04-23 Thread Byungchul Park
On Wed, Apr 19, 2017 at 04:25:03PM +0200, Peter Zijlstra wrote: > On Tue, Mar 14, 2017 at 05:18:52PM +0900, Byungchul Park wrote: > > +struct hist_lock { > > + /* > > +* Each work of workqueue might run in a different context, > > +* thanks to concurrency support of workqueue. So we have

Re: Question on the five-level page table support patches

2017-04-23 Thread Andy Lutomirski
On Sun, Apr 23, 2017 at 3:53 AM, John Paul Adrian Glaubitz wrote: > Hi Kirill! > > I recently read the LWN article on your and your colleagues work to > add five-level page table support for x86 to the Linux kernel [1] > and I got your email address from the last patch of the series. > > Since thi

Re: [PATCH] xen/scsifront: use offset_in_page() macro

2017-04-23 Thread Juergen Gross
On 22/04/17 03:21, Geliang Tang wrote: > Use offset_in_page() macro instead of open-coding. > > Signed-off-by: Geliang Tang Reviewed-by: Juergen Gross Thanks, Juergen

[PATCH v2 07/29] drm/cirrus: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: - Sort the touched part alphabetically drivers/gpu/drm/cirrus/Makefile | 1 - drivers/gpu/drm/cirrus/cirrus_ttm.c | 3 ++- 2 files changed, 2

[PATCH v2 08/29] drm/hisilicon: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/hisilicon/hibmc/Makefile| 1 - drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c | 2 +- 2 files changed, 1 insertion(+), 2 dele

[PATCH v2 04/29] drm/ast: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: - Sort the touched part alphabetically drivers/gpu/drm/ast/Makefile | 2 -- drivers/gpu/drm/ast/ast_ttm.c | 3 ++- 2 files changed, 2 insertions

[PATCH v2 13/29] drm/radeon: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada Reviewed-by: Michel Dänzer --- Changes in v2: None drivers/gpu/drm/radeon/Makefile | 2 +- drivers/gpu/drm/radeon/btc_dpm.c | 2 +- drivers/gpu/drm/radeon

[PATCH v2 02/29] drm/ttm: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
For the C file, include instead of relative path from include/drm. For headers in include/drm/ttm, simplify the with "*.h". This allows us to remove the -Iinclude/drm compiler flag from drivers/gpu/drm/ttm/Makefile (and from other drivers' Makefiles). Signed-off-by: Masahiro Yamada --- Chang

[PATCH v2 12/29] drm/qxl: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: - Sort the touched parts drivers/gpu/drm/qxl/Makefile | 2 -- drivers/gpu/drm/qxl/qxl_debugfs.c | 2 +- drivers/gpu/drm/qxl/qxl_display.c

[PATCH v2 11/29] drm/nouveau: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/nouveau/Kbuild| 1 - drivers/gpu/drm/nouveau/nouveau_drm.c | 4 ++-- drivers/gpu/drm/nouveau/nouveau_drv.h | 2 +- dri

[PATCH v2 01/29] drm: make drm_panel.h self-contained

2017-04-23 Thread Masahiro Yamada
-ENOSYS and -EINVAL are referenced in some static inline functions. of_drm_find_pane() takes a pointer to struct device_node. Make this header self-contained to not depend on specific include order. Signed-off-by: Masahiro Yamada --- Changes in v2: None include/drm/drm_panel.h | 2 ++ 1 file

[PATCH v2 00/29] gpu/drm: remove -Iinclude/drm compiler flags from Makefile

2017-04-23 Thread Masahiro Yamada
Many Makefiles needed to add -Iinclude/drm as an include path, but the right thing to do is to include headers in the form #include This series fixes the source files, then rip off -Iinclude/drm flags. Masahiro Yamada (29): drm: make drm_panel.h self-contained drm/ttm: fix include notatio

[PATCH v2 26/29] drm/tdfx: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/tdfx/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/tdfx/Makefile b/drivers/gpu/drm/tdfx/Makefile index 0379f

[PATCH v2 21/29] drm/mga: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/mga/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mga/Makefile b/drivers/gpu/drm/mga/Makefile index 6068478.

[PATCH v2 03/29] drm/amd: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada Reviewed-by: Michel Dänzer --- Changes in v2: None drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 10 +- driver

[PATCH v2 15/29] drm/vc4: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. While we are here, use <...> instead of "..." for include/linux/*.h headers too. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/vc4/Makefile| 2 -- drivers/gpu/drm/vc4

[PATCH v2 17/29] drm/vmwgfx: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/vmwgfx/Makefile | 3 --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 3 ++- drivers/gpu/drm/vmwgfx/vmwgfx_context.c | 3

[PATCH v2 25/29] drm/sis: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/sis/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/sis/Makefile b/drivers/gpu/drm/sis/Makefile index 441c061.

[PATCH v2 22/29] drm/omap: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/omapdrm/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/Makefile b/drivers/gpu/drm/omapdrm/Makefile in

[PATCH v2 28/29] drm/vgem: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/vgem/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/vgem/Makefile b/drivers/gpu/drm/vgem/Makefile index bfcde

[PATCH v2 24/29] drm/savage: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/savage/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/savage/Makefile b/drivers/gpu/drm/savage/Makefile index

[PATCH v2 19/29] drm/i810: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/i810/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i810/Makefile b/drivers/gpu/drm/i810/Makefile index 43844

[PATCH v2 29/29] drm/via: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/via/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/via/Makefile b/drivers/gpu/drm/via/Makefile index d59e258.

[PATCH v2 18/29] drm/gma500: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/gma500/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/Makefile b/drivers/gpu/drm/gma500/Makefile index

[PATCH v2 20/29] drm/i2c: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/i2c/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/Makefile b/drivers/gpu/drm/i2c/Makefile index 43aa33

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-23 Thread Minchan Kim
On Fri, Apr 21, 2017 at 08:29:30PM +0800, Huang, Ying wrote: > "Huang, Ying" writes: > > > Minchan Kim writes: > > > >> On Wed, Apr 19, 2017 at 04:14:43PM +0800, Huang, Ying wrote: > >>> Minchan Kim writes: > >>> > >>> > Hi Huang, > >>> > > >>> > On Fri, Apr 07, 2017 at 02:49:01PM +0800, Huang

[PATCH v2 27/29] drm/udl: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/udl/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/udl/Makefile b/drivers/gpu/drm/udl/Makefile index 195bc

[PATCH v2 23/29] drm/r128: remove unneeded -Iinclude/drm compiler flag

2017-04-23 Thread Masahiro Yamada
With the include directives under include/drm/ fixed, this flag is no longer needed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/r128/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/r128/Makefile b/drivers/gpu/drm/r128/Makefile index 1cc72

[PATCH v2 14/29] drm/tilcdc: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/tilcdc/Makefile | 1 - drivers/gpu/drm/tilcdc/tilcdc_drv.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff

[PATCH v2 16/29] drm/virtio: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/virtio/Makefile | 2 -- drivers/gpu/drm/virtio/virtgpu_debugfs.c | 2 +- drivers/gpu/drm/virtio/virtgpu_drv.c |

[PATCH v2 10/29] drm/msm: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. While we are here, sort the touched parts with public headers first. mdp4_kms.h must declare struct device_node to be self-contained. Signed-off-by: Masahiro Yamada --- Changes in v2: - Sort inclu

[PATCH v2 09/29] drm/mgag200: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: - Sort the touched part alphabetically drivers/gpu/drm/mgag200/Makefile | 1 - drivers/gpu/drm/mgag200/mgag200_ttm.c | 3 ++- 2 files change

[PATCH v2 06/29] drm/bridge: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. While we are here, sort the touched parts alphabetically. Signed-off-by: Masahiro Yamada Reviewed-by: Andrzej Hajda --- Changes in v2: - Sort the includes alphabetically (Andrzej Hajda) drivers

[PATCH v2 05/29] drm/bochs: fix include notation and remove -Iinclude/drm flag

2017-04-23 Thread Masahiro Yamada
Include instead of relative path from include/drm, then remove the -Iinclude/drm compiler flag. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/gpu/drm/bochs/Makefile | 1 - drivers/gpu/drm/bochs/bochs.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/

Re: [PATCH v1 2/8] ASoC: Intel: Skylake: Use recently introduced uuid_le_cmp_p{p}()

2017-04-23 Thread Vinod Koul
On Fri, Apr 21, 2017 at 05:46:39PM +0300, Andy Shevchenko wrote: > Recently introduced helpers take pointers to uuid_{be|le} instead of > reference. Are they in linus's tree, if not it introduces dependency, so we might want to defer after merge window > > Using them makes code less ugly. How s

Re: [PATCH] module: Unify the return value type of try_module_get

2017-04-23 Thread Jessica Yu
+++ gfree.w...@foxmail.com [19/04/17 09:47 +0800]: From: Gao Feng The prototypes of try_module_get are different with different macro. When enable module and module unload, it returns bool, but others not. Now unify their return value type as bool. Signed-off-by: Gao Feng Applied, thanks fo

[PATCH] led: ledtrig-transient: replace timer_list with hrtimer

2017-04-23 Thread David Lin
This patch replaces the kernel timer used by led transient trigger as an one-shot timer with an hrtimer. As Android is moving away from the obsoleted timed_output to ledtrig-transient for the vibrator HAL, ledtrig-transient needs to be able to handle the "duration" property to millisecond precision

Re: [PATCH v6 05/15] lockdep: Implement crossrelease feature

2017-04-23 Thread Byungchul Park
On Wed, Apr 19, 2017 at 05:08:35PM +0200, Peter Zijlstra wrote: > On Tue, Mar 14, 2017 at 05:18:52PM +0900, Byungchul Park wrote: > > +/* > > + * Only access local task's data, so irq disable is only required. > > + */ > > +static int same_context_xhlock(struct hist_lock *xhlock) > > +{ > > + str

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-23 Thread Rusty Russell
Djalal Harouni writes: > When value is (1), task must have CAP_SYS_MODULE to be able to trigger a > module auto-load operation, or CAP_NET_ADMIN for modules with a > 'netdev-%s' alias. Sorry, the magic 'netdev-' prefix is a crawling horror. To do this properly, you need to hand the capability (i

[PATCH 2/2] perf tools: Add NULL end elements to 'unit_to_pmu' map

2017-04-23 Thread Tony Jones
Add NULL end elements to 'unit_to_pmu' map to prevent compiler warning on some toolchains. Signed-off-by: Tony Jones --- tools/perf/pmu-events/jevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index b6

[PATCH 1/2] perf tools: Guard _GNU_SOURCE in pmu-events/jevents.c

2017-04-23 Thread Tony Jones
Guard _GNU_SOURCE (as done in pt-decoder/intel-pt-decoder.c) to prevent possible redefinition error. Signed-off-by: Tony Jones --- tools/perf/pmu-events/jevents.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index baa073

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

2017-04-23 Thread Vinod Koul
On Sat, Apr 22, 2017 at 10:41:37AM +0200, Mason wrote: > On 22/04/2017 01:43, Russell King - ARM Linux wrote: > > > Or I drop the offending patch (done) and we get the DMA subsystem fixed > > first. Given how long it's been this way, I doubt there's any hurry to > > get this change in for the nex

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-04-23 Thread Bob Liu
On 2017/4/11 11:17, js1...@gmail.com wrote: > From: Joonsoo Kim > > Changed from v6 > o Rebase on next-20170405 > o Add a fix for lowmem mapping on ARM (last patch) > o Re-organize the cover letter > > Changes from v5 > o Rebase on next-20161013 > o Cosmetic change on patch 1 > o Optimize span o

Re: [PATCH] dmaengine: ioat: use setup_timer

2017-04-23 Thread Vinod Koul
On Sun, Apr 09, 2017 at 09:41:30AM +0800, Geliang Tang wrote: > Use setup_timer() instead of init_timer() to simplify the code. Applied, thanks -- ~Vinod

Re: [PATCH] hwmon: tmp103: use SIMPLE_DEV_PM_OPS helper macro

2017-04-23 Thread Heiko Schocher
Hello Guenter, Rahul, Am 23.04.2017 um 17:43 schrieb Guenter Roeck: Hi Rahul, On 04/23/2017 07:10 AM, Rahul Bedarkar wrote: Replace ifdefs with SIMPLE_DEV_PM_OPS helper macro. Signed-off-by: Rahul Bedarkar Thanks a lot for your patch. While I in general prefer code that avoids #ifdef, I h

Re: [PATCH 1/1] mt7601u: check return value of alloc_skb

2017-04-23 Thread Jakub Kicinski
On Sun, 23 Apr 2017 15:00:23 +0800, Pan Bian wrote: > Function alloc_skb() will return a NULL pointer if there is no enough > memory. However, in function mt7601u_mcu_msg_alloc(), its return value > is not validated before it is used. This patch fixes it. > > Signed-off-by: Pan Bian Acked-by: Ja

Re: [PATCH 1/1] usb: hub: check return value

2017-04-23 Thread Viresh Kumar
On Sun, Apr 23, 2017 at 4:52 PM, Pan Bian wrote: > From: Pan Bian > > Function usb_autopm_get_interface() will return a negative errno on > failure, and function usb_autopm_put_interface() should not be called if > it fails. However, in function usb_remove_device(), the return value of > function

Re: [PATCH v2 3/3] Documentation/kernel-parameters.txt: Update 'memmap=' option description

2017-04-23 Thread Dou Liyang
At 04/24/2017 10:40 AM, Baoquan He wrote: In commit: 9710f581bb4c ("x86, mm: Let "memmap=" take more entries one time") ... 'memmap=' was changed to adopt multiple, comma delimited values in a single entry, so update the related description. In the special case of only specifying size valu

  1   2   3   4   >