Re: [PATCH 1/2] ARM: dts: aspeed: Remove undocumented wdt properties

2017-10-04 Thread Andrew Jeffery
On Wed, 2017-10-04 at 19:46 +1030, Joel Stanley wrote: > The watchdog bindings do not describe an interrupt property nor clock > phandle, and the upstream driver never had code to use them. Drop them > from the device tree. >  > Also rename the node from wdt the more commonly used watchdog. >  > Si

Re: 答复: 答复: [PATCH] mfd: rtsx: Add support for RTS5260

2017-10-04 Thread Lee Jones
On Fri, 29 Sep 2017, 冯锐 wrote: > > On Fri, 22 Sep 2017, 冯锐 wrote: > > > > > > On Fri, Sep 22, 2017 at 05:36:24PM +0800, rui_f...@realsil.com.cn wrote: > > > > > From: rui_feng > > > > > > > > > > Add support for new chip rts5260. > > > > > In order to support rts5260,the definitions of some inter

Re: [PATCH 2/2] ARM: dts: aspeed: Enable watchdog two

2017-10-04 Thread Andrew Jeffery
On Wed, 2017-10-04 at 19:46 +1030, Joel Stanley wrote: > The second watchdog is left running by u-boot in the common > configurations of the firmware shipped on ASPEED boards. Ensure a driver > is loaded so the system can succcessfully boot. >  > Signed-off-by: Joel Stanley Reviewed-by: Andrew Je

[PATCH] KEYS: Fix the wrong index when checking the existence of second id

2017-10-04 Thread Lee, Chun-Yi
Fix the wrong index number when checking the existence of second id in function of finding asymmetric key. The id_1 is the second id that the index in array must be 1 but not 0. Fix: 9eb029893(KEYS: Generalise x509_request_asymmetric_key()) Cc: David Howells Cc: Herbert Xu Cc: "David S. Miller"

multi producer / multi consumer lock-free queue with ptr_ring

2017-10-04 Thread Jason A. Donenfeld
Hey Michael, Thanks for your work on ptr_ring.h. I'm interested in using it, but in a multi-producer, multi-consumer context. I realize it's been designed for a single-producer, single-consumer context, and thus uses a spinlock. I'm wondering if you'd be happy to receive patches that implement thi

Re: [PATCH v3 11/22] firmware: arm_scmi: add support for polling based SCMI transfers

2017-10-04 Thread Sudeep Holla
On 04/10/17 12:13, Arnd Bergmann wrote: > On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: >> It would be useful to have options to perform some SCMI transfers >> atomically by polling for the completion flag instead of interrupt >> driven. The SCMI specification has option to disable the in

Re: [PATCH] iommu/vt-d: Fix scatterlist offset handling

2017-10-04 Thread Robin Murphy
On 03/10/17 23:16, David Woodhouse wrote: > On Tue, 2017-10-03 at 19:05 +0100, Robin Murphy wrote: >> >> Now, there are indeed plenty of drivers and subsystems which do work on >> lists of explicitly single pages - anything doing some variant of >> "addr = kmap_atomic(sg_page(sg)) + sg->offset;" is

Re: [PATCH v3 04/22] firmware: arm_scmi: add basic driver infrastructure for SCMI

2017-10-04 Thread Arnd Bergmann
On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: > +static int scmi_mbox_free_channel(struct scmi_info *info) > +{ > + if (!IS_ERR_OR_NULL(info->tx_chan)) { > + mbox_free_channel(info->tx_chan); > + info->tx_chan = NULL; > + } > + > + return 0; >

[PATCH] user namespaces: bump idmap limits

2017-10-04 Thread Christian Brauner
We have quite some use cases where users already run into the current limit for {g,u}id mappings. Consider a user requesting us to map everything but 999, and 1001 for a given range of 10 with a sub{g,u}id layout of: some-user:10:10 some-user:999:1 some-user:1000:1 some-user:10

Re: [PATCH v3 4/5] efi: call get_event_log before ExitBootServices

2017-10-04 Thread Jarkko Sakkinen
On Wed, Oct 04, 2017 at 01:51:13PM +0300, Jarkko Sakkinen wrote: > On Fri, Sep 29, 2017 at 08:16:17PM +0300, Jarkko Sakkinen wrote: > > On Tue, Sep 26, 2017 at 02:49:31PM +0200, Thiebaud Weksteen wrote: > > > On Tue, Sep 26, 2017 at 1:45 PM, Jarkko Sakkinen > > > wrote: > > > > On Wed, Sep 20, 201

Re: [PATCH] Staging: rtl8188eu: core: Use list_for_each_entry_safe

2017-10-04 Thread Dan Carpenter
On Wed, Oct 04, 2017 at 01:58:32AM +0530, Srishti Sharma wrote: > Use list_for_each_entry_safe when the list elements may get deleted > during traversal. This patch is fine as a cleanup but none of these are actually buggy. regards, dan carpenter

Re: [PATCH 3/3] tpm: add the crypto algorithm identifier to active_bank_info

2017-10-04 Thread Jarkko Sakkinen
On Mon, Sep 25, 2017 at 01:19:50PM +0200, Roberto Sassu wrote: > In preparation for the patch introducing a function to pass supported TPM > algorithms and digest sizes to TPM users, the crypto algorithm identifier > is added to the active_bank_info structure. > > All members of active_bank_info a

Re: [PATCH v3 15/22] firmware: arm_scmi: abstract mailbox interface

2017-10-04 Thread Arnd Bergmann
On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: > Some of the mailbox controller expects controller specific data in order > to implement simple doorbell mechanism as expected by SCMI specification. > > This patch creates a shim layer to abstract the mailbox interface so > that it can support

Re: [PATCH 2/6] lightnvm: pblk: protect line bitmap while submitting meta io

2017-10-04 Thread Javier González
> On 21 Sep 2017, at 13.26, Rakesh Pandit wrote: > > It seems pblk_dealloc_page would race against pblk_alloc_pages for > line bitmap for sector allocation. The chances are very low but might > as well protect the bitmap properly. It's not even in fast path. > > Signed-off-by: Rakesh Pandit >

Re: [PATCH v2 1/2] bus: arm-ccn: Fix use of smp_processor_id() in preemptible context

2017-10-04 Thread Pawel Moll
On Tue, 2017-10-03 at 18:14 +0100, Marc Zyngier wrote: > Booting a DEBUG_PREEMPT enabled kernel on a CCN-based system > results in the following splat: > > [...] > arm-ccn e800.ccn: No access to interrupts, using timer. > BUG: using smp_processor_id() in preemptible [] code: > swapper/0

Applied "ASoC: cygnus: Remove set_fmt from SPDIF dai ops" to the asoc tree

2017-10-04 Thread Mark Brown
The patch ASoC: cygnus: Remove set_fmt from SPDIF dai ops has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Re: [Regulator] Request for clarification - GPIO controlled regulator, USB VBUS,

2017-10-04 Thread Mark Brown
On Wed, Oct 04, 2017 at 12:45:39PM +0200, Łukasz Majewski wrote: > > On Tue, Oct 03, 2017 at 06:58:00PM +0200, Łukasz Majewski wrote: > > Perhaps this is something > > that could be implemented generically for USB as it's a hotpluggable bus > In this case we use VBUS as a power supply voltage. T

Applied "ASoC: cygnus: Add EXPORT_SYMBOL for helper function" to the asoc tree

2017-10-04 Thread Mark Brown
The patch ASoC: cygnus: Add EXPORT_SYMBOL for helper function has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sen

Applied "ASoC: cygnus: Remove support for 8 bit audio and for mono" to the asoc tree

2017-10-04 Thread Mark Brown
The patch ASoC: cygnus: Remove support for 8 bit audio and for mono has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Applied "ASoC: codecs: msm8916-wcd-analog: configure micbias in mbhc setup" to the asoc tree

2017-10-04 Thread Mark Brown
The patch ASoC: codecs: msm8916-wcd-analog: configure micbias in mbhc setup has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: rockchip: Allocate enough memory so we don't overflow routes" to the asoc tree

2017-10-04 Thread Mark Brown
The patch ASoC: rockchip: Allocate enough memory so we don't overflow routes has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "regmap: add iopoll-like polling macro for regmap_field" to the regmap tree

2017-10-04 Thread Mark Brown
The patch regmap: add iopoll-like polling macro for regmap_field has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Applied "regulator: axp20x: Fix poly-phase bit offset for AXP803 DCDC5/6" to the regulator tree

2017-10-04 Thread Mark Brown
The patch regulator: axp20x: Fix poly-phase bit offset for AXP803 DCDC5/6 has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the n

Re: [PATCHv2 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing

2017-10-04 Thread Pintu Kumar
On Wed, Oct 4, 2017 at 5:42 AM, Laura Abbott wrote: > On 10/03/2017 09:48 AM, Pintu Agarwal wrote: >> This is a test utility to verify ION buffer sharing in user space >> between 2 independent processes. >> It uses unix domain socket as IPC to transfer an FD to another process >> and install it. >

Applied "regulator: axp20x: Add support for AXP813 regulators" to the regulator tree

2017-10-04 Thread Mark Brown
The patch regulator: axp20x: Add support for AXP813 regulators has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hour

Re: [PATCH v3 21/22] cpufreq: add support for CPU DVFS based on SCMI message protocol

2017-10-04 Thread Arnd Bergmann
> +static int scmi_cpufreq_probe(struct platform_device *pdev) > +{ > + int ret; > + > + handle = devm_scmi_handle_get(&pdev->dev); > + > + if (IS_ERR_OR_NULL(handle) || !handle->perf_ops) > + return -EPROBE_DEFER; As mentioned before, never create an interface that

Re: [PATCH] tpm: fix duplicate inline declaration specifier

2017-10-04 Thread Jarkko Sakkinen
On Fri, Sep 29, 2017 at 08:17:04PM +0300, Jarkko Sakkinen wrote: > On Tue, Sep 26, 2017 at 01:58:57PM +, Ruben Roy wrote: > > This commit fixes the duplicate inline declaration specifier in > > tpm2_rc_value which caused a warning > > > > Signed-off-by: Ruben Roy > > --- > > drivers/char/tpm

Re: [PATCH] arm64: Enable MRS emulation early

2017-10-04 Thread Dave Martin
On Wed, Oct 04, 2017 at 12:10:40PM +0100, Catalin Marinas wrote: > On Wed, Oct 04, 2017 at 11:14:26AM +0100, Mark Rutland wrote: > > On Wed, Oct 04, 2017 at 10:48:05AM +0100, Suzuki K Poulose wrote: > > > Make sure the MRS emulation is enabled early enough, such that the > > > early userspace appli

Re: [PATCH v3 15/22] firmware: arm_scmi: abstract mailbox interface

2017-10-04 Thread Sudeep Holla
On 04/10/17 12:24, Arnd Bergmann wrote: > On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: >> Some of the mailbox controller expects controller specific data in order >> to implement simple doorbell mechanism as expected by SCMI specification. >> >> This patch creates a shim layer to abstrac

Re: [PATCH] arm64: Enable MRS emulation early

2017-10-04 Thread Mark Rutland
On Wed, Oct 04, 2017 at 12:10:40PM +0100, Catalin Marinas wrote: > On Wed, Oct 04, 2017 at 11:14:26AM +0100, Mark Rutland wrote: > > On Wed, Oct 04, 2017 at 10:48:05AM +0100, Suzuki K Poulose wrote: > > > Make sure the MRS emulation is enabled early enough, such that the > > > early userspace appli

[PATCH] MAINTAINERS: Add git repository to Renesas clock driver section

2017-10-04 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 61d77c8037a1faf9..d23f4fba728d091a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11476,6 +11476,7 @@ F: include/linux/rpmsg/ RENESAS CLOCK DRIVERS M: G

[PATCH] MAINTAINERS: Add git repository to Renesas pinctrl driver section

2017-10-04 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6e018e720152c98c..61d77c8037a1faf9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10675,6 +10675,7 @@ PIN CONTROLLER - RENESAS M: Laurent Pinchart M: Ge

Re: [PATCH] arm64: Enable MRS emulation early

2017-10-04 Thread Catalin Marinas
On Wed, Oct 04, 2017 at 12:32:07PM +0100, Dave P Martin wrote: > On Wed, Oct 04, 2017 at 12:10:40PM +0100, Catalin Marinas wrote: > > On Wed, Oct 04, 2017 at 11:14:26AM +0100, Mark Rutland wrote: > > > On Wed, Oct 04, 2017 at 10:48:05AM +0100, Suzuki K Poulose wrote: > > > > Make sure the MRS emula

Re: [PATCH v3 16/22] firmware: arm_scmi: add arm_mhu specific mailbox interface

2017-10-04 Thread Arnd Bergmann
On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: > This patch adds ARM MHU specific mailbox interface for SCMI. > > Cc: Arnd Bergmann > Signed-off-by: Sudeep Holla This clearly needs an explanation why we need another driver. > +union mhu_data { > + void *ptr; > + u32 val; > +}

[PATCH v2 0/2] dmaengine: pl330: fix descriptor allocation fail

2017-10-04 Thread Alexander Kochetkov
Here is the patch fixing descriptor allocation issue. Could someone with pl330 hardware test it and confirm that it doesn't brake current pl330 driver? I will be very grateful to you! Changes in v2: - removed wrappers add_desc(), pluck_desc() - fix code intendation Alexander Kochetkov (2): dm

[PATCH v2 2/2] !!! FOR TESTING ONLY !!! dmaengine: pl330: add verbose message and set NR_DEFAULT_DESC to 1

2017-10-04 Thread Alexander Kochetkov
Commit add verbose output to pl330 showing what changes introduced by commit 1/2 from series work as expected. You should see similar output running modified kernel: The patch tested on rk3188 radxdarock. Could someone else test it on other hardware with pl330 DMA? root@host:~# dmesg | grep pl330

[PATCH v2 1/2] dmaengine: pl330: fix descriptor allocation fail

2017-10-04 Thread Alexander Kochetkov
If two concurrent threads call pl330_get_desc() when DMAC descriptor pool is empty it is possible that allocation for one of threads will fail with message: kernel: dma-pl330 20078000.dma-controller: pl330_get_desc:2469 ALERT! Here how that can happen. Thread A calls pl330_get_desc() to get descr

Re: [PATCH v3 16/22] firmware: arm_scmi: add arm_mhu specific mailbox interface

2017-10-04 Thread Sudeep Holla
On 04/10/17 12:36, Arnd Bergmann wrote: > On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: >> This patch adds ARM MHU specific mailbox interface for SCMI. >> >> Cc: Arnd Bergmann >> Signed-off-by: Sudeep Holla > > This clearly needs an explanation why we need another driver. > Yes, I und

Re: [Tee-dev] [PATCH v1 12/14] tee: optee: enable dynamic SHM support

2017-10-04 Thread Jens Wiklander
On Tue, Oct 03, 2017 at 11:06:38AM -0500, Stuart Yoder wrote: > > > On 9/28/17 1:04 PM, Volodymyr Babchuk wrote: > >From: Volodymyr Babchuk > > > >Previous patches added various features that are needed for dynamic SHM. > >Dynamic SHM allows Normal World to share any buffers with OP-TEE. > >Whil

Re: [PATCHv3 6/7] symbol lookup: use new kernel and module dereference functions

2017-10-04 Thread Petr Mladek
On Sat 2017-09-30 11:53:18, Sergey Senozhatsky wrote: > Call appropriate function descriptor dereference ARCH callbacks: > - dereference_kernel_function_descriptor() if the pointer is a > kernel symbol; > > - dereference_module_function_descriptor() if the pointer is a > module symbol. > > Th

Re: [RFC] mmap(MAP_CONTIG)

2017-10-04 Thread Michal Nazarewicz
On Tue, Oct 03 2017, Mike Kravetz wrote: > At Plumbers this year, Guy Shattah and Christoph Lameter gave a presentation > titled 'User space contiguous memory allocation for DMA' [1]. The slides > point out the performance benefits of devices that can take advantage of > larger physically contiguo

[PATCH v3 10/17] scripts: kernel-doc: change default to ReST format

2017-10-04 Thread Mauro Carvalho Chehab
Right now, if kernel-doc is called without arguments, it defaults to man pages. IMO, it makes more sense to default to ReST, as this is the output that it is most used nowadays, and it easier to check if everything got parsed fine on an enriched text mode format. Signed-off-by: Mauro Carvalho Cheh

[PATCH v3 16/17] scripts: kernel-doc: improve nested logic to handle multiple identifiers

2017-10-04 Thread Mauro Carvalho Chehab
It is possible to use nested structs like: struct { struct { void *arg1; } st1, st2, *st3, st4; }; Handling it requires to split each parameter. Change the logic to allow such definitions. In order to test the new nested logic, the following file was used to test

[PATCH v3 01/17] docs: kernel-doc.rst: better describe kernel-doc arguments

2017-10-04 Thread Mauro Carvalho Chehab
Add a new section to describe kernel-doc arguments, adding examples about how identation should happen, as failing to do that causes Sphinx to do the wrong thing. Signed-off-by: Mauro Carvalho Chehab --- Documentation/doc-guide/kernel-doc.rst | 44 +++--- 1 file chang

[PATCH v3 13/17] scripts: kernel-doc: get rid of $nested parameter

2017-10-04 Thread Mauro Carvalho Chehab
The check_sections() function has a $nested parameter, meant to identify when a nested struct is present. As we now have a logic that handles it, get rid of such parameter. Suggested-by: Markus Heiser Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc | 19 --- 1 file c

[PATCH v3 05/17] docs: kernel-doc.rst: improve typedef documentation

2017-10-04 Thread Mauro Carvalho Chehab
Add documentation about typedefs for function prototypes and move it to happen earlier. Signed-off-by: Mauro Carvalho Chehab --- Documentation/doc-guide/kernel-doc.rst | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/Documentation/doc-guide/k

[PATCH v3 07/17] docs: get rid of kernel-doc-nano-HOWTO.txt

2017-10-04 Thread Mauro Carvalho Chehab
Everything there is already described at Documentation/doc-guide/kernel-doc.rst. So, there's no reason why to keep it anymore. Signed-off-by: Mauro Carvalho Chehab --- Documentation/00-INDEX | 2 - Documentation/kernel-doc-nano-HOWTO.txt | 322

[PATCH v3 17/17] w1_netlink.h: add support for nested structs

2017-10-04 Thread Mauro Carvalho Chehab
Now that kernel-doc can hanle nested structs/unions, describe such fields at w1_netlink_message_types. Acked-by: Evgeniy Polyakov Signed-off-by: Mauro Carvalho Chehab --- drivers/w1/w1_netlink.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/w1/w1_netlink.h b/d

[PATCH v3 09/17] scripts: kernel-doc: improve argument handling

2017-10-04 Thread Mauro Carvalho Chehab
Right now, if one uses "--rst" instead of "-rst", it just ignore the argument and produces a man page. Change the logic to accept both "-cmd" and "--cmd". Also, if "cmd" doesn't exist, print the usage information and exit. Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc | 34

[PATCH v3 02/17] docs: kernel-doc.rst: improve private members description

2017-10-04 Thread Mauro Carvalho Chehab
The private members section can now be moved to be together with the arguments section. Move it there and add an example about the usage of public: Signed-off-by: Mauro Carvalho Chehab --- Documentation/doc-guide/kernel-doc.rst | 56 ++ 1 file changed, 30 insertio

[PATCH v3 04/17] docs: kernel-doc.rst: improve structs chapter

2017-10-04 Thread Mauro Carvalho Chehab
There is a mess on this chapter: it suggests that even enums and unions should be documented with "struct". That's not the way it should be ;-) Fix it and move it to happen earlier. Signed-off-by: Mauro Carvalho Chehab --- Documentation/doc-guide/kernel-doc.rst | 48 +---

[PATCH v3 11/17] scripts: kernel-doc: replace tabs by spaces

2017-10-04 Thread Mauro Carvalho Chehab
Sphinx has a hard time dealing with tabs, causing it to misinterpret paragraph continuation. As we're now mainly focused on supporting ReST output, replace tabs by spaces, in order to avoid troubles when the output is parsed by Sphinx. Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc

[PATCH v3 08/17] scripts: kernel-doc: get rid of unused output formats

2017-10-04 Thread Mauro Carvalho Chehab
Since there isn't any docbook code anymore upstream, we can get rid of several output formats: - docbook/xml, html, html5 and list formats were used by the old build system; - As ReST is text, there's not much sense on outputting on a different text format. After this patch, only man and rst

[PATCH v3 00/17] kernel-doc: add supported to document nested structs/

2017-10-04 Thread Mauro Carvalho Chehab
Right now, it is not possible to document nested struct and nested unions. kernel-doc simply ignore them. Add support to document them. Patches 1 to 6 improve kernel-doc documentation to reflect what kernel-doc currently supports and import some stuff from the old kernel-doc-nano-HOWTO.txt. Pat

[PATCH v3 15/17] scripts: kernel-doc: handle nested struct function arguments

2017-10-04 Thread Mauro Carvalho Chehab
Function arguments are different than usual ones. So, an special logic is needed in order to handle such arguments on nested structs. Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc | 38 ++ 1 file changed, 26 insertions(+), 12 deletions(-) diff -

[PATCH v3 12/17] scripts: kernel-doc: parse next structs/unions

2017-10-04 Thread Mauro Carvalho Chehab
There are several places within the Kernel tree with nested structs/unions, like this one: struct ingenic_cgu_clk_info { const char *name; enum { CGU_CLK_NONE = 0, CGU_CLK_EXT = BIT(0), CGU_CLK_PLL = BIT(1), CGU_CLK_GATE = BIT(2), CGU_CLK_MUX = BIT(3),

Re: [Regulator] Request for clarification - GPIO controlled regulator, USB VBUS,

2017-10-04 Thread Łukasz Majewski
Hi Mark, On Wed, Oct 04, 2017 at 12:45:39PM +0200, Łukasz Majewski wrote: On Tue, Oct 03, 2017 at 06:58:00PM +0200, Łukasz Majewski wrote: Perhaps this is something that could be implemented generically for USB as it's a hotpluggable bus In this case we use VBUS as a power supply voltag

[PATCH v3 06/17] docs: kernel-doc.rst: add documentation about man pages

2017-10-04 Thread Mauro Carvalho Chehab
kernel-doc-nano-HOWTO.txt has a chapter about man pages production. While we don't have a working "make manpages" target, add it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/doc-guide/kernel-doc.rst | 34 ++ 1 file changed, 34 insertions(+) diff --git

Re: [PATCH v2 4/4] KVM: LAPIC: Don't silently accept bad vectors

2017-10-04 Thread Radim Krčmář
2017-10-04 15:56+0800, Wanpeng Li: > 2017-10-04 1:53 GMT+08:00 Radim Krčmář : > > 2017-09-28 18:04-0700, Wanpeng Li: > >> From: Wanpeng Li > >> > >> Vectors 0-15 are reserved, and a physical LAPIC - upon sending or > >> receiving one - would generate an APIC error instead of doing the > >> request

[PATCH v3 14/17] scripts: kernel-doc: print the declaration name on warnings

2017-10-04 Thread Mauro Carvalho Chehab
The logic at create_parameterlist()'s ancillary push_parameter() function has already a way to output the declaration name, with would help to discover what declaration is missing. However, currently, the logic is utterly broken, as it uses the var $type with a wrong meaning. With the current code

Re: usb/sound/bcd2000: warning in bcd2000_init_device

2017-10-04 Thread Johan Hovold
On Wed, Oct 04, 2017 at 12:41:55PM +0200, Takashi Iwai wrote: > On Wed, 04 Oct 2017 12:23:11 +0200, > Johan Hovold wrote: > > > > On Wed, Oct 04, 2017 at 12:04:06PM +0200, Takashi Iwai wrote: > > > On Wed, 04 Oct 2017 11:24:42 +0200, Johan Hovold wrote: > > > > On Wed, Oct 04, 2017 at 08:10:59AM +

[PATCH v3 03/17] docs: kernel-doc.rst: improve function documentation section

2017-10-04 Thread Mauro Carvalho Chehab
Move its contents to happen earlier and improve the description of return values, adding a subsection to it. Most of the contents there came from kernel-doc-nano-HOWTO.txt. Signed-off-by: Mauro Carvalho Chehab --- Documentation/doc-guide/kernel-doc.rst | 100 - 1

Re: [PATCHv3 7/7] checkpatch: add pF/pf deprecation warning

2017-10-04 Thread Petr Mladek
On Sat 2017-09-30 11:53:19, Sergey Senozhatsky wrote: > We deprecated '%pF/%pf' printk specifiers, since '%pS/%ps' is now smart > enough to handle function pointer dereference on platforms where such > dereference is required. > > checkpatch warning example: > > WARNING: Deprecated vsprintf point

Re: [PATCH 13/18] tpm: use ARRAY_SIZE

2017-10-04 Thread Jarkko Sakkinen
On Sun, Oct 01, 2017 at 03:30:51PM -0400, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. > > Found with Coccinelle with the following semantic patch: > @r depends on (org || report)@ > type T; > T[] E; > position p; > @@ > ( > (sizeof(E)@p /sizeof(*E)) >

[PATCH] irqchip/renesas-intc-irqpin: Use of_device_get_match_data() helper

2017-10-04 Thread Geert Uytterhoeven
Use the of_device_get_match_data() helper instead of open coding. Signed-off-by: Geert Uytterhoeven --- drivers/irqchip/irq-renesas-intc-irqpin.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-

Re: Re: [PATCH] MAINTAINERS: update TPM driver infrastructure changes

2017-10-04 Thread Jarkko Sakkinen
On Wed, Oct 04, 2017 at 09:33:10AM +0200, Peter Huewe wrote: > Will do. > Peter Thank you! /Jarkko

Re: [PATCH] Staging: rtl8723bs: Externs should be avoided in .C file

2017-10-04 Thread Joe Perches
On Wed, 2017-10-04 at 13:53 +0200, srinivasan wrote: > Hi Joe, > > Thanks for your responses. I have already compiled and the below is the > logs for the same > > Please let me know if am I missing/doing wrong Your commit message is incomplete. checkpatch is a guide, but it's not what you shoul

Re: [PATCH v5 00/10] arm, arm64, cpufreq: frequency- and cpu-invariant accounting support for task scheduler

2017-10-04 Thread Rafael J. Wysocki
On Wed, Oct 4, 2017 at 10:41 AM, Greg Kroah-Hartman wrote: > On Tue, Sep 26, 2017 at 05:41:05PM +0100, Dietmar Eggemann wrote: >> For a more accurate (i.e. frequency- and cpu-invariant) accounting >> the task scheduler needs a frequency-scaling and on a heterogeneous >> system a cpu-scaling correc

Re: [PATCH v9 06/12] mm: zero struct pages during initialization

2017-10-04 Thread Pasha Tatashin
On 10/04/2017 04:45 AM, Michal Hocko wrote: On Tue 03-10-17 11:22:35, Pasha Tatashin wrote: On 10/03/2017 09:08 AM, Michal Hocko wrote: On Wed 20-09-17 16:17:08, Pavel Tatashin wrote: Add struct page zeroing as a part of initialization of other fields in __init_single_page(). This single th

[RESEND PATCH v2 1/3] genirq: generic chip: add irq_gc_mask_disable_and_ack_set()

2017-10-04 Thread Marc Gonzalez
From: Doug Berger The irq_gc_mask_disable_reg_and_ack() function name implies that it provides the combined functions of irq_gc_mask_disable_reg() and irq_gc_ack(). However, the implementation does not actually do that since it writes the mask instead of the disable register. It also does not ma

[RESEND PATCH v2 0/3] Replace irq_gc_mask_disable_reg_and_ack

2017-10-04 Thread Marc Gonzalez
Hello Thomas, As we discussed at Kernel Recipes, I am re-sending the part of Doug Berger's patch series that deals with a serious issue in drivers/irqchip/irq-tango.c The original name of the relevant patch series is: [PATCH v2 0/6] Add support for BCM7271 style interrupt controller Doug, I hope

[RESEND PATCH v2 2/3] irqchip/tango: Use irq_gc_mask_disable_and_ack_set

2017-10-04 Thread Marc Gonzalez
From: Florian Fainelli The only usage of the irq_gc_mask_disable_reg_and_ack() function is by the Tango irqchip driver. This usage is replaced by the irq_gc_mask_disable_and_ack_set() function since it provides the intended functionality. Fixes: 4bba66899ac6 ("irqchip/tango: Add support for Sigm

[RESEND PATCH v2 3/3] genirq: generic chip: remove irq_gc_mask_disable_reg_and_ack()

2017-10-04 Thread Marc Gonzalez
From: Doug Berger Any usage of the irq_gc_mask_disable_reg_and_ack() function has been replaced with the desired functionality. The incorrect and ambiguously named function is removed here to prevent accidental misuse. Signed-off-by: Doug Berger --- include/linux/irq.h | 1 - kernel/ir

Re: [PATCH v2 1/2] bus: arm-ccn: Fix use of smp_processor_id() in preemptible context

2017-10-04 Thread Marc Zyngier
On 04/10/17 12:26, Pawel Moll wrote: > On Tue, 2017-10-03 at 18:14 +0100, Marc Zyngier wrote: >> Booting a DEBUG_PREEMPT enabled kernel on a CCN-based system >> results in the following splat: >> >> [...] >> arm-ccn e800.ccn: No access to interrupts, using timer. >> BUG: using smp_processor_id(

Re: [PATCH v2 1/2] bus: arm-ccn: Fix use of smp_processor_id() in preemptible context

2017-10-04 Thread Pawel Moll
On Wed, 2017-10-04 at 13:32 +0100, Marc Zyngier wrote: >  > > Acked-by: Pawel Moll > >  > > I assume you'll get this merged yourself? Or do you want me to > relay > > the CCN one (I've got a couple of other small changes to the driver > in > > the queue). > > I'd rather you take care of it if you

Re: [RFC v3 2/7] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices

2017-10-04 Thread Andy Shevchenko
On Wed, Oct 4, 2017 at 4:00 AM, sathyanarayanan kuppuswamy wrote: > On 10/01/2017 07:44 AM, Andy Shevchenko wrote: >> On Tue, Sep 5, 2017 at 8:37 AM, >>> + punit_cell.id = -1; > > I will remove this line in next version. >>> >>> + return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID

Re: [PATCH v3 02/22] dt-bindings: arm: add support for ARM System Control and Management Interface(SCMI) protocol

2017-10-04 Thread Arnd Bergmann
On Wed, Oct 4, 2017 at 1:07 PM, Sudeep Holla wrote: > Hi Arnd, > > Thanks for taking a look at this. > > On 04/10/17 11:50, Arnd Bergmann wrote: >> On Thu, Sep 28, 2017 at 3:11 PM, Sudeep Holla wrote: >>> + >>> +The SCMI is intended to allow agents such as OSPM to manage various >>> functions >>

Re: [RFC v3 3/7] platform/x86: intel_pmc_ipc: Use regmap calls for GCR updates

2017-10-04 Thread Andy Shevchenko
On Wed, Oct 4, 2017 at 4:16 AM, sathyanarayanan kuppuswamy wrote: > On 10/01/2017 07:48 AM, Andy Shevchenko wrote: >> On Tue, Sep 5, 2017 at 8:37 AM, >> wrote: >> Since it sounds as candidate for stable, > > Yes. >> >> can we have split it to just >> as less as possible intrusive fix + moving to

Re: [PATCH v2 4/5] powerpc: pseries: only store the device node basename in full_name

2017-10-04 Thread Michael Ellerman
Rob Herring writes: > On Tue, Oct 3, 2017 at 4:26 AM, Michael Ellerman wrote: ... >> >> The obvious fix is just to allocate it separately as before, eg ~=: > > Yes, I'll go back to doing 2 allocs like v1, but using kstrdup as was > also pointed out. Yeah that would be better still I guess. chee

[GIT PULL] phy: for 4.14 -rc

2017-10-04 Thread Kishon Vijay Abraham I
Hi Greg, Please find below the phy pull request for 4.14 -rc cycle below. It fixes a couple of instabilities in rockchip typec phy and other fixes are mostly to deal with handling error return values. Consider merging this in this -rc cycle and let me know if I have to make any changes. Thanks

Re: [PATCH] reset: socfpga: fix for 64-bit compilation

2017-10-04 Thread Dinh Nguyen
On 10/04/2017 04:27 AM, Philipp Zabel wrote: > Hi Dinh, > > On Mon, 2017-10-02 at 16:36 -0500, Dinh Nguyen wrote: >> Gentle ping? > > Thank you, I've applied this patch to the reset/fixes branch. > thanks Philipp! Dinh

Re: [PATCH v9 08/12] mm: zero reserved and unavailable struct pages

2017-10-04 Thread Pasha Tatashin
Could you be more specific where is such a memory reserved? I know of one example: trim_low_memory_range() unconditionally reserves from pfn 0, but e820__memblock_setup() might provide the exiting memory from pfn 1 (i.e. KVM). Then just initialize struct pages for that mapping rigth there whe

Re: [kernel-hardening] [RFC V2 0/6] add more kernel pointer filter options

2017-10-04 Thread Greg KH
On Wed, Oct 04, 2017 at 09:50:51PM +1100, Tobin C. Harding wrote: > On Wed, Oct 04, 2017 at 10:58:50AM +0200, Greg KH wrote: > > On Sun, Oct 01, 2017 at 11:06:44AM +1100, Tobin C. Harding wrote: > > > Version 2 of Greg's patch series with changes made as suggested by > > > comments to V1. > > > >

Re: [PATCH v2 3/4] KVM: LAPIC: Apply change to TDCR right away to the timer

2017-10-04 Thread Radim Krčmář
2017-10-04 09:59+0800, Wanpeng Li: > 2017-10-04 1:28 GMT+08:00 Radim Krčmář : > > 2017-09-28 18:04-0700, Wanpeng Li: > >> From: Wanpeng Li > >> > >> The description in the Intel SDM of how the divide configuration > >> register is used: "The APIC timer frequency will be the processor's bus > >> cl

Re: [PATCH] dt-bindings: i2c: Add armada-38x i2c binding

2017-10-04 Thread Rob Herring
On Wed, Oct 4, 2017 at 3:33 AM, Gregory CLEMENT wrote: > Hi Rob, > > On mar., oct. 03 2017, Rob Herring wrote: > >> On Wed, Sep 27, 2017 at 09:33:00AM +0200, Gregory CLEMENT wrote: >>> Hi Chris, >>> >>> On mer., sept. 27 2017, Chris Packham >>> wrote: >>> >>> > Hi Gregory, >>> > >>> > On 27/0

Re: [PATCH] arm64: Enable MRS emulation early

2017-10-04 Thread Dave Martin
On Wed, Oct 04, 2017 at 12:36:29PM +0100, Catalin Marinas wrote: > On Wed, Oct 04, 2017 at 12:32:07PM +0100, Dave P Martin wrote: [...] > > I don't think the hwcaps shouldn't change after entry to userspace, > > so it really doesn't matter whether HWCAP_CPUID is set before or > > after registrati

Hello

2017-10-04 Thread Ms.Lev
I am getting in touch with you regarding an extremely important and urgent matter. If you would oblige me the opportunity, I shall provide you with details upon your response.

Re: [PATCH] dt-bindings: i2c: Add armada-38x i2c binding

2017-10-04 Thread Gregory CLEMENT
Hi Rob, On mer., oct. 04 2017, Rob Herring wrote: > On Wed, Oct 4, 2017 at 3:33 AM, Gregory CLEMENT > wrote: >> Hi Rob, >> >> On mar., oct. 03 2017, Rob Herring wrote: >> >>> On Wed, Sep 27, 2017 at 09:33:00AM +0200, Gregory CLEMENT wrote: Hi Chris, On mer., sept. 27 2017, C

Re: [PATCH v9 08/12] mm: zero reserved and unavailable struct pages

2017-10-04 Thread Michal Hocko
On Wed 04-10-17 08:40:11, Pasha Tatashin wrote: > > > > Could you be more specific where is such a memory reserved? > > > > > > > > > > I know of one example: trim_low_memory_range() unconditionally reserves > > > from > > > pfn 0, but e820__memblock_setup() might provide the exiting memory from

Re: [PATCH] arm64: Enable MRS emulation early

2017-10-04 Thread Suzuki K Poulose
On 04/10/17 12:32, Mark Rutland wrote: On Wed, Oct 04, 2017 at 12:10:40PM +0100, Catalin Marinas wrote: On Wed, Oct 04, 2017 at 11:14:26AM +0100, Mark Rutland wrote: On Wed, Oct 04, 2017 at 10:48:05AM +0100, Suzuki K Poulose wrote: Make sure the MRS emulation is enabled early enough, such that

Re: usb/sound/bcd2000: warning in bcd2000_init_device

2017-10-04 Thread Takashi Iwai
On Wed, 04 Oct 2017 14:03:25 +0200, Johan Hovold wrote: > > On Wed, Oct 04, 2017 at 12:41:55PM +0200, Takashi Iwai wrote: > > On Wed, 04 Oct 2017 12:23:11 +0200, > > Johan Hovold wrote: > > > > > > On Wed, Oct 04, 2017 at 12:04:06PM +0200, Takashi Iwai wrote: > > > > On Wed, 04 Oct 2017 11:24:42

Re: [PATCH 3/3] early_printk: Add simple serialization to early_vprintk()

2017-10-04 Thread Steven Rostedt
On Wed, 4 Oct 2017 11:08:30 +0200 Peter Zijlstra wrote: > On Tue, Oct 03, 2017 at 06:24:22PM -0400, Steven Rostedt wrote: > > On Thu, 28 Sep 2017 14:18:26 +0200 > > Peter Zijlstra wrote: > > > static int early_vprintk(const char *fmt, va_list args) > > > { > > > + int n, cpu, old; > > > ch

Re: [RFC] perf callchain: Compare dsos (as well) for CCKEY_FUNCTION

2017-10-04 Thread Jiri Olsa
On Wed, Oct 04, 2017 at 11:43:08AM +0530, Ravi Bangoria wrote: > Two functions from different binaries can have same start > address. Thus, comparing only start address in match_chain() > leads to inconsistent callchains. Fix this by adding a check > for dsos as well. > > Ex, https://www.spinics.n

Re: [PATCH 3/3] early_printk: Add simple serialization to early_vprintk()

2017-10-04 Thread Peter Zijlstra
On Wed, Oct 04, 2017 at 09:04:01AM -0400, Steven Rostedt wrote: > > > If old != -1 and old != cpu, is it possible that the CPU could have > > > fetched an old value, and never try to fetch it again? > > > > What? If old != -1 and old != cpu, we'll hit the cpu_relax() and do the > > READ_ONCE()

Re: [kernel-hardening] [RFC V2 1/6] lib: vsprintf: additional kernel pointer filtering options

2017-10-04 Thread Steven Rostedt
On Wed, 4 Oct 2017 10:55:42 +0200 Greg KH wrote: > On Sun, Oct 01, 2017 at 11:06:45AM +1100, Tobin C. Harding wrote: > > Add the kptr_restrict setting of 3 which results in both > > %p and %pK values being replaced by zeros. > > > > Add an additional %pP value inspired by the Grsecurity > > opti

[PATCH 2/4] KEYS: Provide KEYCTL_GET/SET_ACL

2017-10-04 Thread David Howells
Provide keyctl() operations to get and set a key's ACL. The get operation, wrapped by libkeyutils, looks like: int ret = keyctl_get_acl(key_serial_t key, struct key_ace *acl, size_t max_acl_size); where the buffer to take the ACL is pointed to by acl and

Re: [PATCH] fsl/fman: remove of_node

2017-10-04 Thread Andrew Lunn
> Does DSA work for systems that do not use a device tree to boot, i.e. ACPI? ACPI is not supported. So far, nobody has built a board using ACPI and Ethernet switches supported by DSA. Andrew

[PATCH 3/4] KEYS: Add the ability to grant permissions to an administrator

2017-10-04 Thread David Howells
Add support for specifying a privilege available to an administrator, such as invalidation of a network data caching key or the clearing of a cache keyring. This is done by setting the fields of a key ACE to: { .mask = KEY_ACE_SUBJECT_ID | perms, .subject_i

[PATCH 4/4] KEYS: Add support for directly-specified uids and gids in key ACLs

2017-10-04 Thread David Howells
--- include/uapi/linux/keyctl.h |4 security/keys/permission.c | 32 2 files changed, 36 insertions(+) diff --git a/include/uapi/linux/keyctl.h b/include/uapi/linux/keyctl.h index 134052cba4f4..6b554074402d 100644 --- a/include/uapi/linux/keyctl.h ++

[PATCH] Staging: rtl8188eu: core: Use list_entry instead of container_of

2017-10-04 Thread Srishti Sharma
For variables of the struct list_head* use list_entry to access current list element instead of using container_of. Done using the following semantic patch by coccinelle. @r@ struct list_head* l; @@ -container_of +list_entry (l,...) Signed-off-by: Srishti Sharma --- drivers/staging/rtl8188e

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