Re: [PATCHv2 2/5] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-02-07 Thread Kai Huang
On Wed, 2018-02-07 at 11:02 -0800, Dave Hansen wrote: > On 02/07/2018 04:59 AM, Kirill A. Shutemov wrote: > > IA32_TME_ACTIVATE MSR (0x982) can be used to check if BIOS has > > enabled > > TME and MKTME. It includes which encryption policy/algorithm is > > selected > > for TME or available for MKTM

Re: [PATCH v5 1/4] cpu_pm: add syscore_suspend error handling

2018-02-07 Thread Marc Zyngier
On Wed, 07 Feb 2018 22:01:56 +, Brian Norris wrote: Hi Brian, > Hi Marc, > > On Wed, Feb 07, 2018 at 08:57:27AM +, Marc Zyngier wrote: > > On 07/02/18 01:41, Derek Basehore wrote: > > > If cpu_cluster_pm_enter() fails, cpu_pm_exit() should be called. This > > > will put the CPU in the co

[PATCH] platform/x86: dell-laptop: Removed duplicates in DMI whitelist

2018-02-07 Thread Alexander Abrosimov
Fixed a mistake in which several entries were duplicated in the DMI list from the below commit fe486138 platform/x86: dell-laptop: Add 2-in-1 devices to the DMI whitelist Signed-off-by: Alexander Abrosimov --- drivers/platform/x86/dell-laptop.c | 18 -- 1 file changed, 18 deletio

arch/x86/tools/insn_decoder_test: warning: 81000f06: 0f ff 89 da b8 09 00 ud0 0x9b8da(%ecx),%ecx

2018-02-07 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 413879a10b0b0eb563a23c4df896773b2d9413f9 commit: 10c91577d5e631773a6394e14cf60125389b71ae x86/tools: Standardize output format of insn_decode_test date: 8 weeks ago config: i386-randconfig-x0-02071922 (att

Re: [PATCH BUGFIX V3] block, bfq: add requeue-request hook

2018-02-07 Thread Jens Axboe
On 2/7/18 2:19 PM, Paolo Valente wrote: > Commit 'a6a252e64914 ("blk-mq-sched: decide how to handle flush rq via > RQF_FLUSH_SEQ")' makes all non-flush re-prepared requests for a device > be re-inserted into the active I/O scheduler for that device. As a > consequence, I/O schedulers may get the sa

Re: [PATCH v8 0/7] TDA1997x HDMI video reciver

2018-02-07 Thread Hans Verkuil
On 02/07/2018 11:05 PM, Tim Harvey wrote: > On Wed, Feb 7, 2018 at 1:09 AM, Hans Verkuil wrote: >> On 02/07/18 09:22, Hans Verkuil wrote: >>> On 02/07/2018 12:29 AM, Tim Harvey wrote: Media Controller ioctls: fail: v4l2-test-media.cpp(141): ent.function == MEDIA_ENT_

Re: [PATCH 4/6] Protectable Memory

2018-02-07 Thread kbuild test robot
Hi Igor, Thank you for the patch! Yet something to improve: [auto build test ERROR on kees/for-next/pstore] [also build test ERROR on v4.15] [cannot apply to linus/master mmotm/master next-20180207] [if your patch is applied to the wrong git tree, please drop us a note to help improve the

Re: [PATCH 5/7] ARM: dts: da850: add power-domains properties to device nodes

2018-02-07 Thread David Lechner
On 02/07/2018 07:45 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski Make all devices managed by PSCs use the genpd driver. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arc

[PATCH 1/2] xen: xenbus_dev_frontend: Fix XS_TRANSACTION_END handling

2018-02-07 Thread Simon Gaiser
Commit fd8aa9095a95 ("xen: optimize xenbus driver for multiple concurrent xenstore accesses") made a subtle change to the semantic of xenbus_dev_request_and_reply() and xenbus_transaction_end(). Before on an error response to XS_TRANSACTION_END xenbus_dev_request_and_reply() would not decrement th

[PATCH 2/2] xen: xenbus: WARN_ON XS_TRANSACTION_{START,END} misuse

2018-02-07 Thread Simon Gaiser
As the previous commit shows it's quite easy to confuse the transaction reference counting by ending a transaction twice. So at least try to detect and report it. Signed-off-by: Simon Gaiser --- drivers/xen/xenbus/xenbus_xs.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/x

Re: [PATCH RFC] ashmem: Fix lockdep RECLAIM_FS false positive

2018-02-07 Thread Joel Fernandes
Hi Peter, On Wed, Feb 7, 2018 at 8:58 AM, Peter Zijlstra wrote: [...] > >> Lockdep reports this issue when GFP_FS is infact set, and we enter >> this path and acquire the lock. So lockdep seems to be doing the right >> thing however by design it is reporting a false-positive. > > So I'm not seein

Re: [PATCH v2] x86/retpoline: Add clang support

2018-02-07 Thread David Woodhouse
On Wed, 2018-02-07 at 13:52 -0800, Guenter Roeck wrote: > clang has its own set of compiler options for retpoline support. > > Link: > https://github.com/llvm-mirror/clang/commit/0d816739a82da29748caf88570affb9715e18b69 > Link: > https://github.com/llvm-mirror/llvm/commit/fd5a8723ce9f2a6b250e8

Re: [RFC, PATCH v1] platform/x86: intel-vbtn: Convert to pure ACPI driver

2018-02-07 Thread Rafael J. Wysocki
On Wednesday, February 7, 2018 10:55:22 AM CET Pali Rohár wrote: > On Wednesday 07 February 2018 10:47:57 Rafael J. Wysocki wrote: > > BTW, please CC patches with ACPI material to linux-acpi. They are less > > likely > > to be overlooked by me then and the others on that list may have opinions on

Re: [PATCH v3 14/21] fpga: dfl: add fpga manager platform driver for FME

2018-02-07 Thread Alan Tull
On Tue, Feb 6, 2018 at 10:52 PM, Wu Hao wrote: > On Tue, Feb 06, 2018 at 12:53:44PM -0600, Alan Tull wrote: >> On Tue, Feb 6, 2018 at 12:47 AM, Wu Hao wrote: >> > On Mon, Feb 05, 2018 at 10:25:54PM -0600, Alan Tull wrote: >> >> On Mon, Feb 5, 2018 at 7:47 PM, Wu Hao wrote: >> >> > On Mon, Feb 05

[PATCH v9 4/8] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-07 Thread Tim Harvey
Signed-off-by: Tim Harvey --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.git S: Maintained F: dri

[PATCH v9 1/8] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-07 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Cc: Randy Dunlap Signed-off-by: Hans Verkuil --- v9: - fix kernel-doc format (Randy) - re

[PATCH v9 0/8] TDA1997x HDMI video reciver

2018-02-07 Thread Tim Harvey
This is a v4l2 subdev driver supporting the TDA1997x HDMI video receiver. I've tested this on a Gateworks GW54xx/GW551x with an IMX6Q/IMX6DL which uses the TDA19971 with 16bits connected to the IMX6 CSI and single-lane I2S audio providing 2-channel audio. For this configuration I've tested both 1

[PATCH v9 8/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-07 Thread Tim Harvey
Signed-off-by: Tim Harvey --- v5: - add missing audmux config arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi index 30d4662..749548a 100

[PATCH v9 7/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-07 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no changes v3: no changes v2: - add HDMI au

Re: [PATCH 0/7] ARM: davinci: add genpd support

2018-02-07 Thread David Lechner
On 02/07/2018 07:45 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski Hi Sekhar et al, please take a look at the following patches. They add a simple genpd driver and use it in DT mode on da850 boards. I was trying to use genpd in legacy mode too, but couldn't find neither any interfac

[PATCH v9 5/8] media: dt-bindings: Add bindings for TDA1997X

2018-02-07 Thread Tim Harvey
Acked-by: Rob Herring Acked-by: Sakari Ailus Signed-off-by: Tim Harvey --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h to bindings patch - clarify port node details v3: - fix typo v2: - add vendor pre

[PATCH v9 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-07 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil Signed-off-by: Tim Harvey --- v9: - remove redundant pad bounds check already in v4l2-subdev.c - assign entity function (Hans) - properly assign/check/free ctrl_handler (Hans) - fixed typo 'Rull Range' -> 'Full Range' - update cs

[PATCH v9 3/8] media: add digital video decoder entity function

2018-02-07 Thread Tim Harvey
Add a new media entity function definition for digital TV decoders: MEDIA_ENT_F_DTV_DECODER Signed-off-by: Tim Harvey --- Documentation/media/uapi/mediactl/media-types.rst | 11 +++ include/uapi/linux/media.h| 5 + 2 files changed, 16 insertions(+) diff --gi

[PATCH v9 2/8] media: v4l-ioctl: fix clearing pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-07 Thread Tim Harvey
Signed-off-by: Tim Harvey --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 7961499..5f3670d 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/driver

Re: Documentation: networking: ixgb: Remove reference to IXGB_NAPI

2018-02-07 Thread Brown, Aaron F
> -Original Message- > Date: Mon, 29 Jan 2018 12:17:54 + > From: Corentin Labbe > List-Id: Intel Wired Ethernet Linux Kernel Driver Development > > > NAPI is enabled by default and IXGB_NAPI was removed since > commit 6d37ab282e24 ("ixgb: make NAPI the only option and the default")

Re: [RFC, PATCH v1] platform/x86: intel-vbtn: Convert to pure ACPI driver

2018-02-07 Thread Rafael J. Wysocki
On Wednesday, February 7, 2018 2:18:52 PM CET Andy Shevchenko wrote: > On Wed, 2018-02-07 at 13:08 +, mario.limoncie...@dell.com wrote: > > > -Original Message- > > > From: Pali Rohár [mailto:pali.ro...@gmail.com] > > > Sent: Wednesday, February 7, 2018 3:55 AM > > > To: Rafael J. Wysoc

Re: [PATCH 02/14] kconfig: do not write choice values when their dependency becomes n

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 06, 2018 at 09:34:42AM +0900, Masahiro Yamada wrote: > "# CONFIG_... is not set" for choice values are wrongly written into > the .config file if they are once visible, then become invisible later. > > Test case > - > > ---(Kconfig)-

Re: [PATCH] binder: replace "%p" with "%pK"

2018-02-07 Thread Greg KH
On Wed, Feb 07, 2018 at 01:57:37PM -0800, Todd Kjos wrote: > The format specifier "%p" can leak kernel addresses. Use > "%pK" instead. There were 4 remaining cases in binder.c. Luckily this isn't an issue in mainline as we don't print %p values out anymore as of 4.15. That being said, this is a g

Re: [PATCH] net: ethernet: ti: cpsw: fix net watchdog timeout

2018-02-07 Thread Ivan Khoronzhuk
On Wed, Feb 07, 2018 at 12:19:11PM -0600, Grygorii Strashko wrote: On 02/07/2018 07:31 AM, Ivan Khoronzhuk wrote: On Wed, Feb 07, 2018 at 05:03:19AM +0200, Ivan Khoronzhuk wrote: On Tue, Feb 06, 2018 at 07:17:06PM -0600, Grygorii Strashko wrote: It was discovered that simple program which inde

Re: [RESEND RFC PATCH V3] sched: Improve scalability of select_idle_sibling using SMT balance

2018-02-07 Thread Subhra Mazumdar
On 02/07/2018 12:42 AM, Peter Zijlstra wrote: On Tue, Feb 06, 2018 at 04:30:03PM -0800, Subhra Mazumdar wrote: I meant the SMT balance patch. That does comparison with only one other random core and takes the decision in O(1). Any potential scan of all cores or cpus is O(n) and doesn't scale

Re: [PATCH 3.18 00/36] 3.18.94-stable review

2018-02-07 Thread Greg Kroah-Hartman
On Wed, Feb 07, 2018 at 03:19:07PM +, Harsh Shandilya wrote: > On Tue 6 Feb, 2018, 12:09 AM Greg Kroah-Hartman, > wrote: > > > This is the start of the stable review cycle for the 3.18.94 release. > > There are 36 patches in this series, all will be posted as a response > > to this one. If a

Re: [PATCH 00/14] Add Kconfig unit tests

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 10:38 AM, Greg Kroah-Hartman wrote: > On Tue, Feb 06, 2018 at 09:34:40AM +0900, Masahiro Yamada wrote: >> I am applying various patches to Kconfig these days. >> >> However, I fear regressions. I have been thinking of unit-tests. >> >> There are various cryptic parts in Kco

Re: [PATCH v5 4/4] irqchip/gic-v3-its: add ability to resend MAPC on resume

2018-02-07 Thread Brian Norris
Hi Marc, I'm really not an expert on this, so take my observations with a large grain of salt: On Wed, Feb 07, 2018 at 08:46:42AM +, Marc Zyngier wrote: > On 07/02/18 01:41, Derek Basehore wrote: > > This adds functionality to resend the MAPC command to an ITS node on > > resume. If the ITS i

Re: [PATCH v2] x86/retpoline: Add clang support

2018-02-07 Thread Guenter Roeck
On Wed, Feb 07, 2018 at 10:28:38PM +, David Woodhouse wrote: > > > On Wed, 2018-02-07 at 13:52 -0800, Guenter Roeck wrote: > > clang has its own set of compiler options for retpoline support. > > > > Link: > > https://github.com/llvm-mirror/clang/commit/0d816739a82da29748caf88570affb9715e18

Re: [PATCH 2/2] drm: adv7511: Add support for i2c_new_secondary_device

2018-02-07 Thread Kieran Bingham
Hi Laurent, On 07/02/18 21:59, Laurent Pinchart wrote: > Hi Kieran, > > On Wednesday, 7 February 2018 17:14:09 EET Kieran Bingham wrote: >> On 29/01/18 10:26, Laurent Pinchart wrote: >>> On Monday, 22 January 2018 14:50:00 EET Kieran Bingham wrote: The ADV7511 has four 256-byte maps that can

Re: [PATCH] net: ethernet: ti: cpsw: fix net watchdog timeout

2018-02-07 Thread Ivan Khoronzhuk
Rechecked once again, seems it covers every case, at this moment, so Reviewed-by: Ivan Khoronzhuk -- Regards, Ivan Khoronzhuk

Re: [PATCH v2] x86/retpoline: Add clang support

2018-02-07 Thread Guenter Roeck
On Wed, Feb 07, 2018 at 10:28:38PM +, David Woodhouse wrote: > > > On Wed, 2018-02-07 at 13:52 -0800, Guenter Roeck wrote: > > clang has its own set of compiler options for retpoline support. > > > > Link: > > https://github.com/llvm-mirror/clang/commit/0d816739a82da29748caf88570affb9715e18

Re: [PATCH 04/14] kconfig: print additional new line for choice for redirection

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > If stdout is redirected to a file, prompts look differently due to > missing new lines. > > Currently, conf_askvalue() takes care of this by putting additional > new line, but conf_choice() does not. Do likewise so that prompts > after 'cho

Re: [PATCH 2/2] drm: adv7511: Add support for i2c_new_secondary_device

2018-02-07 Thread Kieran Bingham
Hi Archit, On 07/02/18 12:33, Kieran Bingham wrote: > Hi Archit, > > Thank you for your review, > >>>   unsigned int val; >>>   int ret; >>>   @@ -1153,24 +1151,35 @@ static int adv7511_probe(struct i2c_client *i2c, >>> const struct i2c_device_id *id) >>>   if (ret) >>>  

Re: [PATCH 05/14] kconfig: remove 'config*' pattern from .gitignnore

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > I could not figure out why this pattern should be ignored. > Checking commit 1e65174a3378 ("Add some basic .gitignore files") > did not help. > > Let's remove this pattern, then see if it is really needed. > > Signed-off-by: Masahiro Yamada

Re: [PATCH 6/6] s390: introduce execute-trampolines for branches

2018-02-07 Thread Masahiro Yamada
2018-02-08 2:55 GMT+09:00 Linus Torvalds : > On Wed, Feb 7, 2018 at 4:17 AM, Martin Schwidefsky > wrote: >>> That isn't, though. Linus asked us to drop the $(warning) part. >>> >>> ... and then spent a week building with a non-retpoline compiler and >>> not noticing, so he might have changed his m

[PATCH] x86/xen: Calculate __max_logical_packages on PV domains

2018-02-07 Thread Prarit Bhargava
The kernel panics on PV domains because native_smp_cpus_done() is only called for HVM domains. Calculate __max_logical_packages for PV domains. Fixes: b4c0a7326f5d ("x86/smpboot: Fix __max_logical_packages estimate") Signed-off-by: Prarit Bhargava Tested-and-reported-by: Simon Gaiser Cc: Thomas

arch/x86/tools/insn_decoder_test: warning: 81002146: 0f ff 83 05 20 00 ac ud0 -0x53ffdffb(%ebx),%eax

2018-02-07 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ffefb181728f7b97df49ceba18cacfb6c5ee19f2 commit: 10c91577d5e631773a6394e14cf60125389b71ae x86/tools: Standardize output format of insn_decode_test date: 8 weeks ago config: i386-randconfig-x0-02071052 (att

Re: [PATCH 08/14] kconfig: test: add basic 'choice' tests

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > The calculation of 'choice' is a bit complicated part in Kconfig. > > The behavior of 'y' choice is intuitive. If choice values are tristate, > the choice can be 'm' where each value can be enabled independently. > Also, if a choice is mark

Re: [PATCH 09/14] kconfig: test: test automatic submenu creation

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > If a symbols has dependency on the preceding symbol, the menu entry > should become the submenu of the preceding one, and displayed with > deeper indentation. > > This is done by restructuring the menu tree in menu_finalize(). > It is a bit

[PATCH] mmc: core: optimize mmc_calc_max_discard

2018-02-07 Thread Sergio Valverde
If the max_discard value is zero, the conditional branch that checks the trim capabilities will never update this value with max_trim. Change the condition statement to also check the max_discard value in order to avoid an unnecessary call to mmc_do_calc_max_discard. Signed-off-by: Sergio Valverd

Re: [PATCH v5 4/4] irqchip/gic-v3-its: add ability to resend MAPC on resume

2018-02-07 Thread dbasehore .
On Wed, Feb 7, 2018 at 3:22 PM, Brian Norris wrote: > Hi Marc, > > I'm really not an expert on this, so take my observations with a large > grain of salt: > > On Wed, Feb 07, 2018 at 08:46:42AM +, Marc Zyngier wrote: >> On 07/02/18 01:41, Derek Basehore wrote: >> > This adds functionality to r

Re: [PATCH 6/6] s390: introduce execute-trampolines for branches

2018-02-07 Thread Linus Torvalds
On Wed, Feb 7, 2018 at 3:44 PM, Masahiro Yamada wrote: > > I agreed this before, and still motivated. > (because I also motivated to remove kbuild cache. I actually wish I still had my old "run shell script" thing. I had some very preliminary patches that actually worked for simple things, and yo

Re: [PATCH 10/14] kconfig: test: check if new symbols in choice are asked

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > If new choice values are added with new dependency, and they become > visible during user configuration, oldconfig should recognize them > as (NEW), and ask the user for choice. > > This issue was fixed by commit 5d09598d488f ("kconfig: fix

Re: [PATCH 11/14] kconfig: test: check .config sanity for choice values with unmet dep

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > I fixed a problem where "# CONFIG_..." for choice values are wrongly > written into the .config file when they are once visible, then become > invisible later. > > Add a test for this subtle case. > > Signed-off-by: Masahiro Yamada > --- >

Re: [PATCH 12/14] kconfig: test: check visibility of tristate choice values in y choice

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > If tristate choice values depend on symbols set to 'm', they should be > hidden when the choice containing them is changed from 'm' to 'y' > (i.e. exclusive choice). > > This issue was fixed by commit fa64e5f6a35e ("kconfig/symbol.c: handle

Re: [PATCH 13/14] kconfig: test: check if recursive dependencies are detected

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > Recursive dependency should be detected and warned. Test this. > > Signed-off-by: Masahiro Yamada > --- > > scripts/kconfig/tests/warn_recursive_dep/Kconfig | 62 > ++ > .../kconfig/tests/warn_recursive_dep/__init__

Re: [PATCH 14/14] kconfig: test: check if recursive inclusion is detected

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > If recursive inclusion is detected, it should fail with error messages. > Test this. > > Signed-off-by: Masahiro Yamada > --- > > scripts/kconfig/tests/err_recursive_inc/Kconfig | 1 + > scripts/kconfig/tests/err_recursive_inc/Kco

Re: [PATCH 06/10] perf tools: Use machine__set_kernel_mmap instead of map_groups__fixup_end

2018-02-07 Thread Namhyung Kim
Hi Jiri, On Wed, Feb 07, 2018 at 03:48:34PM +0100, Jiri Olsa wrote: > The machine__set_kernel_mmap does the same job as map_groups__fixup_end > when used on kernel maps within machine__create_kernel_maps call. I'm not sure. Modules have end address after machine__create_module() but vmlinux_maps

Re: [PATCH 07/14] kconfig: test: add framework for Kconfig unit-tests

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > I admit various parts in Kconfig are cryptic and need refactoring, > but at the same time, I fear regressions. > > There are several subtle corner cases where it is difficult to notice > breakage. It is time to add unit-tests. > > Here is a

Re: [PATCH RFC] ashmem: Fix lockdep RECLAIM_FS false positive

2018-02-07 Thread NeilBrown
On Wed, Feb 07 2018, Joel Fernandes wrote: > Hi Peter, > > On Wed, Feb 7, 2018 at 8:58 AM, Peter Zijlstra wrote: > [...] >> >>> Lockdep reports this issue when GFP_FS is infact set, and we enter >>> this path and acquire the lock. So lockdep seems to be doing the right >>> thing however by design

Re: [patches] [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms

2018-02-07 Thread Palmer Dabbelt
On Thu, 18 Jan 2018 07:45:39 PST (-0800), noner...@gmail.com wrote: This patch set includes the building blocks of dynamic ftrace features for RISC-V machines. Changes in v3: - Replace the nops at the tracer call sites into a "call ftrace_stub" instruction for better understanding (1/6 and 2

Re: [PATCH v2 4/5] dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device

2018-02-07 Thread Rob Herring
On Mon, Feb 5, 2018 at 3:11 AM, Ryder Lee wrote: > On Mon, 2018-02-05 at 00:08 -0600, Rob Herring wrote: >> On Wed, Jan 31, 2018 at 03:42:44PM +0800, Ryder Lee wrote: >> > As the MediaTek audio hardware block that expose functionalities that are >> > handled by separate subsystems in the kernel, a

Re: [patches] [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms

2018-02-07 Thread Alan Kao
On Wed, Feb 07, 2018 at 04:37:10PM -0800, Palmer Dabbelt wrote: > On Thu, 18 Jan 2018 07:45:39 PST (-0800), noner...@gmail.com wrote: > > This patch set includes the building blocks of dynamic ftrace features > > for RISC-V machines. > > > > Changes in v3: > > - Replace the nops at the tracer cal

Re: [PATCH 2/2] staging: android: ion: Combine cache and uncache pools

2018-02-07 Thread Yisheng Xie
Hi Sumit, On 2018/2/7 22:34, Sumit Semwal wrote: > Hello Yisheng, > > On 7 February 2018 at 09:29, Yisheng Xie wrote: >> Now we call dma_map in the dma_buf API callbacks and handle explicit >> caching by the dma_buf sync API, which make cache and uncache pools >> in the same handling flow, which

Re: A problem about 'perf sched latency'

2018-02-07 Thread Namhyung Kim
Hello, On Tue, Feb 06, 2018 at 09:50:02PM +0800, Du, Changbin wrote: > Hello all, > I am using perf sched tool to analyzer sched data on my machine. But it seems > that > 'perf sched latency' report incorrect 'Switches'. What I did is as below. > > First, record... > $ sudo perf sched record ti

Re: [PATCH 6/6] s390: introduce execute-trampolines for branches

2018-02-07 Thread Kees Cook
On Thu, Feb 8, 2018 at 10:44 AM, Masahiro Yamada wrote: > 2018-02-08 2:55 GMT+09:00 Linus Torvalds : >> What I would really want - and this is entirely unrelated to this >> particular case - is to have those damn compiler option tests as part >> of the config phase in general. We now have about a

Re: [PATCH] tile/pci_gx: Make setup_pcie_rc_delay __init

2018-02-07 Thread Palmer Dabbelt
On Tue, 16 Jan 2018 19:45:05 PST (-0800), douly.f...@cn.fujitsu.com wrote: The early_param() is only called during kernel initialization, So Linux marks the functions of it with __init macro to save memory. But it forgot to mark setup_pcie_rc_delay(). So, Make it __init as well. Cc: Bjorn Helga

Re: [PATCH] x86/xen: Calculate __max_logical_packages on PV domains

2018-02-07 Thread Boris Ostrovsky
On 02/07/2018 06:49 PM, Prarit Bhargava wrote: The kernel panics on PV domains because native_smp_cpus_done() is only called for HVM domains. Calculate __max_logical_packages for PV domains. Fixes: b4c0a7326f5d ("x86/smpboot: Fix __max_logical_packages estimate") Signed-off-by: Prarit Bhargav

Re: [PATCH v12 0/9] LPC: legacy ISA I/O support

2018-02-07 Thread dann frazier
On Tue, Jan 23, 2018 at 9:36 AM, John Garry wrote: > This patchset supports the IPMI-bt device attached to the Low-Pin-Count > interface implemented on Hisilicon Hip06/Hip07 SoC. > --- > | LPC host| > | | >

Re: [PATCH v3 12/16] mmc: tmio: support IP-builtin card detection logic

2018-02-07 Thread Masahiro Yamada
2018-02-08 4:34 GMT+09:00 Wolfram Sang : > On Thu, Jan 18, 2018 at 01:28:12AM +0900, Masahiro Yamada wrote: >> A card detect GPIO is set up only for platforms with "cd-gpios" >> DT property or TMIO_MMC_USE_GPIO_CD flag. However, the driver >> core always uses mmc_gpio_get_cd, which just fails with

Re: [PATCH] rtlwifi: rtl8192cu: Remove variable self-assignment in rf.c

2018-02-07 Thread Pkshih
On Wed, 2018-02-07 at 12:51 -0800, Matthias Kaehlcke wrote: > El Wed, Feb 07, 2018 at 02:35:59PM -0600 Larry Finger ha dit: > > > On 02/07/2018 02:26 PM, Matthias Kaehlcke wrote: > > > In _rtl92c_get_txpower_writeval_by_regulatory() the variable writeVal > > > is assigned to itself in an if ... el

Re: [PATCH v3 14/16] mmc: tmio: move TMIO_MASK_{READOP,WRITEOP} handling to correct place

2018-02-07 Thread Masahiro Yamada
2018-02-08 6:47 GMT+09:00 Wolfram Sang : > On Thu, Jan 18, 2018 at 01:28:14AM +0900, Masahiro Yamada wrote: >> As far as I tested the IP on UniPhier SoCs, TMIO_STAT_{RXRDY,TXRQ} >> are asserted for DMA mode as well as for PIO. I need to disable the >> those IRQs in dma_ops->start hook, otherwise t

Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y

2018-02-07 Thread Dou Liyang
Hi Baoquan, At 02/07/2018 08:45 PM, Baoquan He wrote: On 02/07/18 at 08:34pm, Dou Liyang wrote: At 02/07/2018 08:27 PM, Baoquan He wrote: On 02/07/18 at 08:17pm, Dou Liyang wrote: Hi Baoquan, At 02/07/2018 08:08 PM, Baoquan He wrote: On 02/07/18 at 08:00pm, Dou Liyang wrote: Hi Kirill,Mi

[PATCH 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Matthias Kaehlcke
DML uses the compiler option -mpreferred-stack-boundary=4 to configure a stack alignment of 16 bytes. Clang uses the option -mstack-alignment instead, which expects as parameter the alignment in bytes, and not a power of two like -mpreferred-stack-boundary. Probe for both compiler options and use

[PATCH 1/2] amdgpu/dc/dml: Consolidate redundant CFLAGS

2018-02-07 Thread Matthias Kaehlcke
Use subdir-ccflags instead of specifying the same flags for every source file. Signed-off-by: Matthias Kaehlcke --- drivers/gpu/drm/amd/display/dc/dml/Makefile | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu

Re: [RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-07 Thread Alexey Kardashevskiy
On 08/02/18 01:12, Alex Williamson wrote: > On Wed, 7 Feb 2018 15:48:26 +1100 > Alexey Kardashevskiy wrote: > >> On 07/02/18 15:25, Alex Williamson wrote: >>> On Wed, 7 Feb 2018 15:09:22 +1100 >>> Alexey Kardashevskiy wrote: On 07/02/18 11:08, Alex Williamson wrote: > diff --git a/i

Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y

2018-02-07 Thread Baoquan He
On 02/08/18 at 09:14am, Dou Liyang wrote: > Hi Baoquan, > > At 02/07/2018 08:45 PM, Baoquan He wrote: > > On 02/07/18 at 08:34pm, Dou Liyang wrote: > > > > > > > > > At 02/07/2018 08:27 PM, Baoquan He wrote: > > > > On 02/07/18 at 08:17pm, Dou Liyang wrote: > > > > > Hi Baoquan, > > > > > > > >

Re: [PATCH -mm -v2] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-07 Thread Huang, Ying
Andrew Morton writes: > On Wed, 7 Feb 2018 15:00:35 +0800 "Huang, Ying" wrote: > >> From: Huang Ying >> >> It was reported by Sergey Senozhatsky that if THP (Transparent Huge >> Page) and frontswap (via zswap) are both enabled, when memory goes low >> so that swap is triggered, segfault and m

Re: [PATCH 1/2] amdgpu/dc/dml: Consolidate redundant CFLAGS

2018-02-07 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 5:21 PM, Matthias Kaehlcke wrote: > Use subdir-ccflags instead of specifying the same flags for every source > file. > > Signed-off-by: Matthias Kaehlcke Reviewed-by: Guenter Roeck > --- > drivers/gpu/drm/amd/display/dc/dml/Makefile | 10 +- > 1 file changed, 1

Re: [PATCH 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 5:21 PM, Matthias Kaehlcke wrote: > DML uses the compiler option -mpreferred-stack-boundary=4 to configure > a stack alignment of 16 bytes. Clang uses the option -mstack-alignment > instead, which expects as parameter the alignment in bytes, and not a > power of two like -mp

Re: [PATCH -mm -v2] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-07 Thread Sergey Senozhatsky
On (02/07/18 13:05), Andrew Morton wrote: [..] > hm. This is assuming that "cluster==true" means "this is thp swap". > That's presently true, but is it appropriate that get_swap_pages() is > peeking at "cluster" to work out why it is being called? > > Or would it be cleaner to do this in get_swa

Re: [PATCH 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Matthias Kaehlcke
El Wed, Feb 07, 2018 at 05:34:44PM -0800 Guenter Roeck ha dit: > On Wed, Feb 7, 2018 at 5:21 PM, Matthias Kaehlcke wrote: > > DML uses the compiler option -mpreferred-stack-boundary=4 to configure > > a stack alignment of 16 bytes. Clang uses the option -mstack-alignment > > instead, which expect

Re: [PATCH v27 3/4] mm/page_poison: expose page_poisoning_enabled to kernel modules

2018-02-07 Thread Wei Wang
On 02/08/2018 02:34 AM, Michael S. Tsirkin wrote: On Wed, Feb 07, 2018 at 02:54:30PM +0800, Wei Wang wrote: In some usages, e.g. virtio-balloon, a kernel module needs to know if page poisoning is in use. This patch exposes the page_poisoning_enabled function to kernel modules. Signed-off-by: We

Re: [PATCH 2/6] nvme-pci: fix the freeze and quiesce for shutdown and reset case

2018-02-07 Thread jianchao.wang
Hi Keith Really thanks for your your precious time and kindly directive. That's really appreciated. :) On 02/08/2018 12:13 AM, Keith Busch wrote: > On Wed, Feb 07, 2018 at 10:13:51AM +0800, jianchao.wang wrote: >> What's the difference ? Can you please point out. >> I have shared my understandin

[PATCH] ftrace: fix the file mode of graph tracer and stack tracer

2018-02-07 Thread Zhengyuan Liu
It's something looks weird that those files could be written by root but shows with no write permission by ll command. Chen LinX has sent a similar patch to fix graph function file mode in 2000, I didn't get the reason why that patch wasn't applied so I resend it. Signed-off-by: Zhengyuan Liu -

[PATCH] net: Whitelist the skbuff_head_cache "cb" field

2018-02-07 Thread Kees Cook
Most callers of put_cmsg() use a "sizeof(foo)" for the length argument. Within put_cmsg(), a copy_to_user() call is made with a dynamic size, as a result of the cmsg header calculations. This means that hardened usercopy will examine the copy, even though it was technically a fixed size and should

Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y

2018-02-07 Thread Dou Liyang
Hi Baoquan, At 02/08/2018 09:23 AM, Baoquan He wrote: On 02/08/18 at 09:14am, Dou Liyang wrote: Hi Baoquan, At 02/07/2018 08:45 PM, Baoquan He wrote: On 02/07/18 at 08:34pm, Dou Liyang wrote: At 02/07/2018 08:27 PM, Baoquan He wrote: On 02/07/18 at 08:17pm, Dou Liyang wrote: Hi Baoquan,

Re: [PATCH 01/14] kconfig: send error messages to stderr

2018-02-07 Thread Masahiro Yamada
2018-02-08 5:24 GMT+09:00 Ulf Magnusson : > On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada > wrote: >> These messages should be directed to stderr. >> >> Signed-off-by: Masahiro Yamada >> --- >> >> scripts/kconfig/conf.c | 18 +++--- >> scripts/kconfig/zconf.l | 27 +++-

[PATCH v2 1/2] amdgpu/dc/dml: Consolidate redundant CFLAGS

2018-02-07 Thread Matthias Kaehlcke
Use subdir-ccflags instead of specifying the same flags for every source file. Signed-off-by: Matthias Kaehlcke Reviewed-by: Guenter Roeck --- Changes in v2: - added 'Reviewed-by: Guenter Roeck ' tag drivers/gpu/drm/amd/display/dc/dml/Makefile | 10 +- 1 file changed, 1 insertion(+), 9

[PATCH v2 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Matthias Kaehlcke
DML uses the compiler option -mpreferred-stack-boundary=4 to configure a stack alignment of 16 bytes. Clang uses the option -mstack-alignment instead, which expects as parameter the alignment in bytes, and not a power of two like -mpreferred-stack-boundary. Probe for both compiler options and use

Re: [PATCH v9 35/37] tracing: Increase trace_recursive_lock() limit for synthetic events

2018-02-07 Thread Steven Rostedt
On Mon, 15 Jan 2018 20:52:09 -0600 Tom Zanussi wrote: > static __always_inline int > trace_recursive_lock(struct ring_buffer_per_cpu *cpu_buffer) > { > - if (cpu_buffer->current_context >= 4) > + if (cpu_buffer->current_context >= 6) I can't apply this patch because the new context co

Re: [PATCH 01/14] kconfig: send error messages to stderr

2018-02-07 Thread Ulf Magnusson
On Thu, Feb 8, 2018 at 2:49 AM, Masahiro Yamada wrote: > 2018-02-08 5:24 GMT+09:00 Ulf Magnusson : >> On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada >> wrote: >>> These messages should be directed to stderr. >>> >>> Signed-off-by: Masahiro Yamada >>> --- >>> >>> scripts/kconfig/conf.c | 18 ++

Re: [PATCH v2 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 5:51 PM, Matthias Kaehlcke wrote: > DML uses the compiler option -mpreferred-stack-boundary=4 to configure > a stack alignment of 16 bytes. Clang uses the option -mstack-alignment > instead, which expects as parameter the alignment in bytes, and not a > power of two like -mp

[RFC] Warn the user when they could overflow mapcount

2018-02-07 Thread Matthew Wilcox
Kirill and I were talking about trying to overflow page->_mapcount the other day and realised that the default settings of pid_max and max_map_count prevent it [1]. But there isn't even documentation to warn a sysadmin that they've just opened themselves up to the possibility that they've opened

Re: [PATCH 0/8] Clean up kernel-doc and fix literal-block handling

2018-02-07 Thread Tobin C. Harding
On Wed, Feb 07, 2018 at 10:26:16AM -0700, Jonathan Corbet wrote: > So once upon a time I set out to fix the problem reported by Tobin wherein > a literal block within a kerneldoc comment would be corrupted in > processing. On the way, though, I got annoyed at the way I have to learn > how kernel-d

Re: [PATCH RFC] ashmem: Fix lockdep RECLAIM_FS false positive

2018-02-07 Thread Joel Fernandes
On Wed, Feb 7, 2018 at 4:35 PM, NeilBrown wrote: >> On Wed, Feb 7, 2018 at 8:58 AM, Peter Zijlstra wrote: >> [...] >>> Lockdep reports this issue when GFP_FS is infact set, and we enter this path and acquire the lock. So lockdep seems to be doing the right thing however by design i

Compliment of the day to you. Dear Friend.

2018-02-07 Thread Mrs.Chantal Sonian Kadi
Compliment of the day to you. Dear Friend. for security reason contact me Through this email (mrschantal.sonian.k...@gmail.com) Dear Friend. I am Mrs.Chantal Sonian Kadi. am sending this brief letter to solicit your partnership to transfer $10.5 million US Dollars. I shall send you more informa

Re: [PATCH 7/8] docs: kernel-doc: Finish moving STATE_* code out of process_file()

2018-02-07 Thread Tobin C. Harding
On Wed, Feb 07, 2018 at 10:26:23AM -0700, Jonathan Corbet wrote: > Move STATE_INLINE and STATE_DOCBLOCK code out of process_file(), which now > actually fits on a single screen. Delete an unused variable and add a > couple of comments while I'm at it. > > Signed-off-by: Jonathan Corbet > --- >

Re: [PATCH 8/8] docs: kernel-doc: Don't mangle literal code blocks in comments

2018-02-07 Thread Tobin C. Harding
On Wed, Feb 07, 2018 at 10:26:24AM -0700, Jonathan Corbet wrote: [snip] >if (desperate) >run_in_circles(); this is gold :)

[PATCH v6 2/3] DT/arm,gic-v3-its: add reset-on-suspend property

2018-02-07 Thread Derek Basehore
This adds documentation for the new reset-on-suspend property. This property enables saving and restoring the ITS for when it loses state in system suspend. Signed-off-by: Derek Basehore --- Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt | 3 +++ 1 file changed, 3 insertio

[PATCH v6 0/3] GICv3 Save and Restore

2018-02-07 Thread Derek Basehore
A lot of changes in v2. The distributor and redistributor saving and restoring is left to the PSCI/firmware implementation after discussions with ARM. This reduces the line changes by a lot and removes now unneeded patches. Patches are verified on an RK3399 platform with pending patches in the ARM

[PATCH v6 3/3] irqchip/gic-v3-its: add ability to resend MAPC on resume

2018-02-07 Thread Derek Basehore
This adds functionality to resend the MAPC command to an ITS node on resume. If the ITS is powered down during suspend and the collections are not backed by memory, the ITS will lose that state. This just sets up the known state for the collections after the ITS is restored. This is enabled via th

[PATCH v6 1/3] irqchip/gic-v3-its: add ability to save/restore ITS state

2018-02-07 Thread Derek Basehore
Some platforms power off GIC logic in suspend, so we need to save/restore state. The distributor and redistributor registers need to be handled in platform code due to access permissions on those registers, but the ITS registers can be restored in the kernel. Signed-off-by: Derek Basehore --- dr

Re: [PATCH] ACPI/IORT: Remove linker section for IORT entries again

2018-02-07 Thread Jia He
On 2/7/2018 7:41 PM, Lorenzo Pieralisi Wrote: On Tue, Feb 06, 2018 at 08:11:34PM -0800, Jia He wrote: In commit 316ca8804ea8 ("ACPI/IORT: Remove linker section for IORT entries probing"), iort entries was removed in vmlinux.lds.h. But in commit 2fcc112af37f ("clocksource/drivers: Rename clksrc

  1   2   3   4   5   6   7   8   9   >