Re: [RFC PATCH] mm, proc: report PR_SET_THP_DISABLE in proc

2018-10-03 Thread Michal Hocko
On Wed 03-10-18 15:51:05, David Rientjes wrote: > On Wed, 3 Oct 2018, Michal Hocko wrote: > > > > > So how about this? (not tested yet but it should be pretty > > > > straightforward) > > > > > > Umm, prctl(PR_GET_THP_DISABLE)? > > > > /me confused. I thought you want to query for the flag on a

Re: [RFC PATCH] mm, proc: report PR_SET_THP_DISABLE in proc

2018-10-03 Thread Michal Hocko
On Wed 03-10-18 15:51:05, David Rientjes wrote: > On Wed, 3 Oct 2018, Michal Hocko wrote: > > > > > So how about this? (not tested yet but it should be pretty > > > > straightforward) > > > > > > Umm, prctl(PR_GET_THP_DISABLE)? > > > > /me confused. I thought you want to query for the flag on a

[PATCH] staging: emxx_udc: Remove unused device_desc declaration

2018-10-03 Thread Nathan Chancellor
Clang warns: drivers/staging/emxx_udc/emxx_udc.c:1373:37: warning: variable 'device_desc' is not needed and will not be emitted [-Wunneeded-internal-declaration] static struct usb_device_descriptor device_desc = { ^ 1 warning generated. This definition hasn't

[PATCH] staging: emxx_udc: Remove unused device_desc declaration

2018-10-03 Thread Nathan Chancellor
Clang warns: drivers/staging/emxx_udc/emxx_udc.c:1373:37: warning: variable 'device_desc' is not needed and will not be emitted [-Wunneeded-internal-declaration] static struct usb_device_descriptor device_desc = { ^ 1 warning generated. This definition hasn't

[PATCH RFC 1/2] clk: ti: add a usecount for autoidle

2018-10-03 Thread Andreas Kemnade
We have the scenario that first autoidle is disabled for all clocks, then it is disabled for selected ones and then enabled for all. So we should have some counting here, also according to the comment in _setup_iclk_autoidle() Signed-off-by: Andreas Kemnade --- drivers/clk/ti/autoidle.c | 20

[PATCH RFC 2/2] arm: mach-omap2: setup iclk autoidle according to flags

2018-10-03 Thread Andreas Kemnade
Deny autoidle for hwmods with the OCPIF_SWSUP_IDLE flag, that makes hwmods working properly which cannot handle autoidle properly in lower power states. Affected is e. g. the omap_hdq. It also disables CM_AUTOIDLE_DSS. Need to check if that is wanted or not. Note: Autoidle is not enabled

[PATCH RFC 1/2] clk: ti: add a usecount for autoidle

2018-10-03 Thread Andreas Kemnade
We have the scenario that first autoidle is disabled for all clocks, then it is disabled for selected ones and then enabled for all. So we should have some counting here, also according to the comment in _setup_iclk_autoidle() Signed-off-by: Andreas Kemnade --- drivers/clk/ti/autoidle.c | 20

[PATCH RFC 2/2] arm: mach-omap2: setup iclk autoidle according to flags

2018-10-03 Thread Andreas Kemnade
Deny autoidle for hwmods with the OCPIF_SWSUP_IDLE flag, that makes hwmods working properly which cannot handle autoidle properly in lower power states. Affected is e. g. the omap_hdq. It also disables CM_AUTOIDLE_DSS. Need to check if that is wanted or not. Note: Autoidle is not enabled

[PATCH RFC 0/2] mach-omap2: handle autoidle denial

2018-10-03 Thread Andreas Kemnade
On the gta04 with a dm3730 omap_hdq does not work properly when the device enters lower power states. Idling uart1 and 2 is enough to show up that problem, if there are no other things enabled. Further research reveals that hdq iclk must not be turned off during transfers, also according to the

[PATCH RFC 0/2] mach-omap2: handle autoidle denial

2018-10-03 Thread Andreas Kemnade
On the gta04 with a dm3730 omap_hdq does not work properly when the device enters lower power states. Idling uart1 and 2 is enough to show up that problem, if there are no other things enabled. Further research reveals that hdq iclk must not be turned off during transfers, also according to the

Re: [PATCH] ALSA: hda/realtek - Cannot adjust speaker's volume on Dell XPS 27 7760

2018-10-03 Thread Takashi Iwai
On Thu, 04 Oct 2018 05:39:42 +0200, Kai-Heng Feng wrote: > > The issue is the same as commit dd9aa335c880 ("ALSA: hda/realtek - Can't > adjust speaker's volume on a Dell AIO"), the output requires to connect > to a node with Amp-out capability. > > Applying the same fixup ALC298_FIXUP_SPK_VOLUME

Re: [PATCH] ALSA: hda/realtek - Cannot adjust speaker's volume on Dell XPS 27 7760

2018-10-03 Thread Takashi Iwai
On Thu, 04 Oct 2018 05:39:42 +0200, Kai-Heng Feng wrote: > > The issue is the same as commit dd9aa335c880 ("ALSA: hda/realtek - Can't > adjust speaker's volume on a Dell AIO"), the output requires to connect > to a node with Amp-out capability. > > Applying the same fixup ALC298_FIXUP_SPK_VOLUME

linux-next: build failure after merge of the slave-dma tree

2018-10-03 Thread Stephen Rothwell
ove' into next") which reintroduced a whole lot of stuff into drivers/dma/fsl-edma.c that had been modev out in commit 9d831528a656 ("dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)") I used the slave-dma tree from next-20181003 fo

linux-next: build failure after merge of the slave-dma tree

2018-10-03 Thread Stephen Rothwell
ove' into next") which reintroduced a whole lot of stuff into drivers/dma/fsl-edma.c that had been modev out in commit 9d831528a656 ("dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)") I used the slave-dma tree from next-20181003 fo

Re: [PATCH] arm_pmu: Delete incorrect cache event mapping for some armv8_pmuv3 events.

2018-10-03 Thread Ganapatrao Kulkarni
Hi Will, can you please pull this patch? On Mon, Oct 1, 2018 at 10:09 PM Ganapatrao Kulkarni wrote: > > Hi Will, > > On Mon, Oct 1, 2018 at 7:58 PM Will Deacon wrote: > > > > Hi Ganapat, > > > > On Mon, Oct 01, 2018 at 10:07:43AM +, Kulkarni, Ganapatrao wrote: > > > Perf events

Re: [PATCH] arm_pmu: Delete incorrect cache event mapping for some armv8_pmuv3 events.

2018-10-03 Thread Ganapatrao Kulkarni
Hi Will, can you please pull this patch? On Mon, Oct 1, 2018 at 10:09 PM Ganapatrao Kulkarni wrote: > > Hi Will, > > On Mon, Oct 1, 2018 at 7:58 PM Will Deacon wrote: > > > > Hi Ganapat, > > > > On Mon, Oct 01, 2018 at 10:07:43AM +, Kulkarni, Ganapatrao wrote: > > > Perf events

Re: [BUG] sound: pci: trident: a possible data race

2018-10-03 Thread Takashi Iwai
On Thu, 04 Oct 2018 05:08:45 +0200, Jia-Ju Bai wrote: > > Thanks for the reply :) > > > On 2018/10/3 23:54, Takashi Iwai wrote: > > On Wed, 03 Oct 2018 14:50:25 +0200, > > Jia-Ju Bai wrote: > >> CPU0: > >> snd_trident_hw_free > >> snd_trident_free_voice > >> line 3870:

Re: [BUG] sound: pci: trident: a possible data race

2018-10-03 Thread Takashi Iwai
On Thu, 04 Oct 2018 05:08:45 +0200, Jia-Ju Bai wrote: > > Thanks for the reply :) > > > On 2018/10/3 23:54, Takashi Iwai wrote: > > On Wed, 03 Oct 2018 14:50:25 +0200, > > Jia-Ju Bai wrote: > >> CPU0: > >> snd_trident_hw_free > >> snd_trident_free_voice > >> line 3870:

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

2018-10-03 Thread Stephen Rothwell
^ drivers/tty/serial/samsung.c:1968:8: note: in expansion of macro 'rx_enabled' if (rx_enabled(port)) ^~ Caused by commit c550f01c810f ("serial:serial_core: Allow use of CTS for PPS line discipline") Looks like a suprise from some "interesting"

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

2018-10-03 Thread Stephen Rothwell
^ drivers/tty/serial/samsung.c:1968:8: note: in expansion of macro 'rx_enabled' if (rx_enabled(port)) ^~ Caused by commit c550f01c810f ("serial:serial_core: Allow use of CTS for PPS line discipline") Looks like a suprise from some "interesting"

[RESEND PATCHv2] misc: cxl: Fix possible null pointer dereference

2018-10-03 Thread zhong jiang
It is not safe to dereference an object before a null test. It is not needed and just remove them. Ftrace can be used instead. Signed-off-by: zhong jiang --- drivers/misc/cxl/guest.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/cxl/guest.c b/drivers/misc/cxl/guest.c index

[RESEND PATCHv2] misc: cxl: Fix possible null pointer dereference

2018-10-03 Thread zhong jiang
It is not safe to dereference an object before a null test. It is not needed and just remove them. Ftrace can be used instead. Signed-off-by: zhong jiang --- drivers/misc/cxl/guest.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/cxl/guest.c b/drivers/misc/cxl/guest.c index

[RFC] x86/cpu_entry_area: move part of it back to fixmap

2018-10-03 Thread Nadav Amit
This RFC proposes to return part of the entry-area back to the fixmap to improve system-call performance. Currently, since the entry-area is mapped far (more than 2GB) away from the kernel text, an indirect branch is needed to jump from the trampoline into the kernel. Due to Spectre v2, vulnerable

[RFC] x86/cpu_entry_area: move part of it back to fixmap

2018-10-03 Thread Nadav Amit
This RFC proposes to return part of the entry-area back to the fixmap to improve system-call performance. Currently, since the entry-area is mapped far (more than 2GB) away from the kernel text, an indirect branch is needed to jump from the trampoline into the kernel. Due to Spectre v2, vulnerable

Re: [PATCHv2] misc: cxl: delete possible null pointer dereference

2018-10-03 Thread zhong jiang
On 2018/10/4 12:38, Greg KH wrote: > On Thu, Oct 04, 2018 at 10:56:48AM +0800, zhong jiang wrote: >> It is safe to dereference an object below a NULL test. For the sake >> of debugging. Just delete the call of possible null pointer dereference. >> >> Signed-off-by: zhong jiang >> --- >>

Re: [PATCHv2] misc: cxl: delete possible null pointer dereference

2018-10-03 Thread zhong jiang
On 2018/10/4 12:38, Greg KH wrote: > On Thu, Oct 04, 2018 at 10:56:48AM +0800, zhong jiang wrote: >> It is safe to dereference an object below a NULL test. For the sake >> of debugging. Just delete the call of possible null pointer dereference. >> >> Signed-off-by: zhong jiang >> --- >>

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-03 Thread James Bottomley
On Wed, 2018-10-03 at 21:31 -0300, Leonardo Bras wrote: > On Fri, Sep 28, 2018 at 4:15 AM James Bottomley > wrote: > > > > On Thu, 2018-09-27 at 23:08 -0300, Leonardo Brás wrote: > > > Avoids building driver if 'make drivers/parisc/' is called and > > > CONFIG_PARISC is disabled. > > > > Is

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-03 Thread James Bottomley
On Wed, 2018-10-03 at 21:31 -0300, Leonardo Bras wrote: > On Fri, Sep 28, 2018 at 4:15 AM James Bottomley > wrote: > > > > On Thu, 2018-09-27 at 23:08 -0300, Leonardo Brás wrote: > > > Avoids building driver if 'make drivers/parisc/' is called and > > > CONFIG_PARISC is disabled. > > > > Is

Re: [PATCHv2] misc: cxl: delete possible null pointer dereference

2018-10-03 Thread Greg KH
On Thu, Oct 04, 2018 at 10:56:48AM +0800, zhong jiang wrote: > It is safe to dereference an object below a NULL test. For the sake > of debugging. Just delete the call of possible null pointer dereference. > > Signed-off-by: zhong jiang > --- > drivers/misc/cxl/guest.c | 2 +- > 1 file changed,

Re: [PATCHv2] misc: cxl: delete possible null pointer dereference

2018-10-03 Thread Greg KH
On Thu, Oct 04, 2018 at 10:56:48AM +0800, zhong jiang wrote: > It is safe to dereference an object below a NULL test. For the sake > of debugging. Just delete the call of possible null pointer dereference. > > Signed-off-by: zhong jiang > --- > drivers/misc/cxl/guest.c | 2 +- > 1 file changed,

[PATCH v2] kbuild: remove unneeded link_multi_deps

2018-10-03 Thread Masahiro Yamada
Since commit c8589d1e9e01 ("kbuild: handle multi-objs dependency appropriately"), $^ really represents all the prerequisite of the composite object being built. Hence, $(filter %.o,$^) contains all the objects to link together, which is much simpler than link_multi_deps calculation. Please note

[PATCH v2] kbuild: remove unneeded link_multi_deps

2018-10-03 Thread Masahiro Yamada
Since commit c8589d1e9e01 ("kbuild: handle multi-objs dependency appropriately"), $^ really represents all the prerequisite of the composite object being built. Hence, $(filter %.o,$^) contains all the objects to link together, which is much simpler than link_multi_deps calculation. Please note

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2018-10-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got conflicts in: arch/arm/include/asm/kvm_mmu.h arch/arm64/include/asm/kvm_arm.h arch/arm64/include/asm/kvm_mmu.h between commit: ab510027dc4d ("arm64: KVM: Enable Common Not Private translations") from the arm64 tree and commit:

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2018-10-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got conflicts in: arch/arm/include/asm/kvm_mmu.h arch/arm64/include/asm/kvm_arm.h arch/arm64/include/asm/kvm_mmu.h between commit: ab510027dc4d ("arm64: KVM: Enable Common Not Private translations") from the arm64 tree and commit:

[PATCH 3/4] cpufreq: dt: Try freeing static OPPs only if we have added them

2018-10-03 Thread Viresh Kumar
We can not call dev_pm_opp_of_cpumask_remove_table() freely anymore since the latest OPP core updates as that uses reference counting to free resources. There are cases where no static OPPs are added (using DT) for a platform and trying to remove the OPP table may end up decrementing refcount

[PATCH 3/4] cpufreq: dt: Try freeing static OPPs only if we have added them

2018-10-03 Thread Viresh Kumar
We can not call dev_pm_opp_of_cpumask_remove_table() freely anymore since the latest OPP core updates as that uses reference counting to free resources. There are cases where no static OPPs are added (using DT) for a platform and trying to remove the OPP table may end up decrementing refcount

[PATCH 0/4] OPP: Fix more bugs and improve error handling

2018-10-03 Thread Viresh Kumar
Hello, Few more bugs have surfaced recently, few of which have been there forever but came to light only after the recent changes in OPP core. Dave already sent fix for one of them sometime back and as he isn't around for a week, I picked up the patch, modified it and posting V2 of it here.

[PATCH 1/4] OPP: Improve error handling in dev_pm_opp_of_cpumask_add_table()

2018-10-03 Thread Viresh Kumar
The error handling wasn't appropriate in dev_pm_opp_of_cpumask_add_table(). For example it returns 0 on success and also for the case where cpumask is empty or cpu_device wasn't found for any of the CPUs. It should really return error on such cases, so that the callers can be aware of the

[PATCH 2/4] OPP: Return error on error from dev_pm_opp_get_opp_count()

2018-10-03 Thread Viresh Kumar
Return error number instead of 0 on failures. Fixes: a1e8c13600bf ("PM / OPP: "opp-hz" is optional for power domains") Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/opp/core.c b/drivers/opp/core.c index

[PATCH V2 4/4] PM / OPP: _of_add_opp_table_v2(): increment count only if OPP is added

2018-10-03 Thread Viresh Kumar
From: Dave Gerlach Currently the _of_add_opp_table_v2 call loops through the OPP nodes in the operating-points-v2 table in the device tree and calls _opp_add_static_v2 for each to add them to the table. It counts each iteration through this loop as an added OPP, however there are cases where

[PATCH 0/4] OPP: Fix more bugs and improve error handling

2018-10-03 Thread Viresh Kumar
Hello, Few more bugs have surfaced recently, few of which have been there forever but came to light only after the recent changes in OPP core. Dave already sent fix for one of them sometime back and as he isn't around for a week, I picked up the patch, modified it and posting V2 of it here.

[PATCH 1/4] OPP: Improve error handling in dev_pm_opp_of_cpumask_add_table()

2018-10-03 Thread Viresh Kumar
The error handling wasn't appropriate in dev_pm_opp_of_cpumask_add_table(). For example it returns 0 on success and also for the case where cpumask is empty or cpu_device wasn't found for any of the CPUs. It should really return error on such cases, so that the callers can be aware of the

[PATCH 2/4] OPP: Return error on error from dev_pm_opp_get_opp_count()

2018-10-03 Thread Viresh Kumar
Return error number instead of 0 on failures. Fixes: a1e8c13600bf ("PM / OPP: "opp-hz" is optional for power domains") Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/opp/core.c b/drivers/opp/core.c index

[PATCH V2 4/4] PM / OPP: _of_add_opp_table_v2(): increment count only if OPP is added

2018-10-03 Thread Viresh Kumar
From: Dave Gerlach Currently the _of_add_opp_table_v2 call loops through the OPP nodes in the operating-points-v2 table in the device tree and calls _opp_add_static_v2 for each to add them to the table. It counts each iteration through this loop as an added OPP, however there are cases where

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2018-10-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/include/asm/cpufeature.h between commit: 520ad98871a0 ("arm64/cpufeatures: Factorize emulate_mrs()") from the arm64 tree and commit: ce00e3cb4fb4 ("arm64: Add a helper for PARange to physical shift

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2018-10-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/include/asm/cpufeature.h between commit: 520ad98871a0 ("arm64/cpufeatures: Factorize emulate_mrs()") from the arm64 tree and commit: ce00e3cb4fb4 ("arm64: Add a helper for PARange to physical shift

Re: [PATCH 1/5] PM / hibernate: Create snapshot keys handler

2018-10-03 Thread Mimi Zohar
On Tue, 2018-10-02 at 21:36 +0200, Jann Horn wrote: > +Andy for opinions on things in write handlers > +Mimi Zohar as EVM maintainer > > On Tue, Oct 2, 2018 at 9:55 AM joeyli wrote: > > On Thu, Sep 13, 2018 at 04:31:18PM +0200, Jann Horn wrote: > > > On Thu, Sep 13, 2018 at 4:08 PM Lee, Chun-Yi

Re: [PATCH 1/5] PM / hibernate: Create snapshot keys handler

2018-10-03 Thread Mimi Zohar
On Tue, 2018-10-02 at 21:36 +0200, Jann Horn wrote: > +Andy for opinions on things in write handlers > +Mimi Zohar as EVM maintainer > > On Tue, Oct 2, 2018 at 9:55 AM joeyli wrote: > > On Thu, Sep 13, 2018 at 04:31:18PM +0200, Jann Horn wrote: > > > On Thu, Sep 13, 2018 at 4:08 PM Lee, Chun-Yi

Re: [alsa-devel] [PATCH linux-next v2 9/9] ASoC: rsnd: add busif property to dai stream

2018-10-03 Thread Kuninori Morimoto
Hi Jiada Thank you for your feedback > >> in GEN3 SSI may use different BUSIF for data transfer, > >> this patch adds busif property to each dai stream, > >> to indicate the BUSIF used by playback/capture stream. > >> > >> Also adds rsnd_ssi_select_busif() to automatically select > >> BUSIF

Re: [alsa-devel] [PATCH linux-next v2 9/9] ASoC: rsnd: add busif property to dai stream

2018-10-03 Thread Kuninori Morimoto
Hi Jiada Thank you for your feedback > >> in GEN3 SSI may use different BUSIF for data transfer, > >> this patch adds busif property to each dai stream, > >> to indicate the BUSIF used by playback/capture stream. > >> > >> Also adds rsnd_ssi_select_busif() to automatically select > >> BUSIF

Re: linux-next: occassional build errors

2018-10-03 Thread Stephen Rothwell
Hi Masahiro, On Thu, 4 Oct 2018 12:09:54 +0900 Masahiro Yamada wrote: > > OK, confirmed. > > > This is a regression of > > commit bb5de5d28f730eeec0aa1ced51a6f11327cd1201 > Author: Masahiro Yamada > Date: Thu Sep 13 17:20:41 2018 +0900 > > kbuild: remove unneeded link_multi_deps > >

Re: linux-next: occassional build errors

2018-10-03 Thread Stephen Rothwell
Hi Masahiro, On Thu, 4 Oct 2018 12:09:54 +0900 Masahiro Yamada wrote: > > OK, confirmed. > > > This is a regression of > > commit bb5de5d28f730eeec0aa1ced51a6f11327cd1201 > Author: Masahiro Yamada > Date: Thu Sep 13 17:20:41 2018 +0900 > > kbuild: remove unneeded link_multi_deps > >

[PATCH] ALSA: hda/realtek - Cannot adjust speaker's volume on Dell XPS 27 7760

2018-10-03 Thread Kai-Heng Feng
The issue is the same as commit dd9aa335c880 ("ALSA: hda/realtek - Can't adjust speaker's volume on a Dell AIO"), the output requires to connect to a node with Amp-out capability. Applying the same fixup ALC298_FIXUP_SPK_VOLUME can fix the issue. BugLink: https://bugs.launchpad.net/bugs/1775068

[PATCH] ALSA: hda/realtek - Cannot adjust speaker's volume on Dell XPS 27 7760

2018-10-03 Thread Kai-Heng Feng
The issue is the same as commit dd9aa335c880 ("ALSA: hda/realtek - Can't adjust speaker's volume on a Dell AIO"), the output requires to connect to a node with Amp-out capability. Applying the same fixup ALC298_FIXUP_SPK_VOLUME can fix the issue. BugLink: https://bugs.launchpad.net/bugs/1775068

RE: [PATCHv1] RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu

2018-10-03 Thread Parav Pandit
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Jason Gunthorpe > Sent: Wednesday, October 3, 2018 9:48 PM > To: Parav Pandit > Cc: linux-r...@vger.kernel.org; linux-kernel@vger.kernel.org; > l...@kernel.org; Daniel Jurgens ; >

RE: [PATCHv1] RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu

2018-10-03 Thread Parav Pandit
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Jason Gunthorpe > Sent: Wednesday, October 3, 2018 9:48 PM > To: Parav Pandit > Cc: linux-r...@vger.kernel.org; linux-kernel@vger.kernel.org; > l...@kernel.org; Daniel Jurgens ; >

Re: Symbols not found for some files

2018-10-03 Thread Paul Menzel
Dear Arnaldo, Am 03.10.2018 um 22:57 schrieb Arnaldo Carvalho de Melo: Em Wed, Oct 03, 2018 at 10:42:39PM +0200, Paul Menzel escreveu: For profiling the boot on my Debian Sid/unstable system (32-bit user space), the following service unit is used. You forgot to mention what is the version

Re: Symbols not found for some files

2018-10-03 Thread Paul Menzel
Dear Arnaldo, Am 03.10.2018 um 22:57 schrieb Arnaldo Carvalho de Melo: Em Wed, Oct 03, 2018 at 10:42:39PM +0200, Paul Menzel escreveu: For profiling the boot on my Debian Sid/unstable system (32-bit user space), the following service unit is used. You forgot to mention what is the version

Re: [PATCH linux-next v2 1/9] arm64: r8a7795: add dma request number for busif0 ~ busif7

2018-10-03 Thread Jiada Wang
Hi Morimoto-san On 2018/10/04 9:55, Kuninori Morimoto wrote: Hi Jiada Thank you for your patch From: Jiada Wang This patch adds dma request number for busif0 ~ busif7 to be used by GEN3 series. GEN2 continues to use rxu/txu for busif data transfer. Signed-off-by: Jiada Wang ---

Re: [PATCH linux-next v2 1/9] arm64: r8a7795: add dma request number for busif0 ~ busif7

2018-10-03 Thread Jiada Wang
Hi Morimoto-san On 2018/10/04 9:55, Kuninori Morimoto wrote: Hi Jiada Thank you for your patch From: Jiada Wang This patch adds dma request number for busif0 ~ busif7 to be used by GEN3 series. GEN2 continues to use rxu/txu for busif data transfer. Signed-off-by: Jiada Wang ---

Re: [PATCH V2] hid: hid-core: Fix a sleep-in-atomic-context bug in __hid_request()

2018-10-03 Thread Jia-Ju Bai
On 2018/9/30 3:20, Jiri Kosina wrote: On Sat, 29 Sep 2018, Jia-Ju Bai wrote: picolcd_send_and_wait (acquire a spinlock) hid_hw_request __hid_request hid_alloc_report_buf(GFP_KERNEL) picolcd_reset (acquire a spinlock) hid_hw_request __hid_request

Re: [PATCH V2] hid: hid-core: Fix a sleep-in-atomic-context bug in __hid_request()

2018-10-03 Thread Jia-Ju Bai
On 2018/9/30 3:20, Jiri Kosina wrote: On Sat, 29 Sep 2018, Jia-Ju Bai wrote: picolcd_send_and_wait (acquire a spinlock) hid_hw_request __hid_request hid_alloc_report_buf(GFP_KERNEL) picolcd_reset (acquire a spinlock) hid_hw_request __hid_request

Re: x86/mm: Found insecure W+X mapping at address (ptrval)/0xc00a0000

2018-10-03 Thread Paul Menzel
Dear Borislav, Am 03.10.2018 um 23:22 schrieb Borislav Petkov: On Fri, Sep 28, 2018 at 04:55:19PM +0200, Thomas Gleixner wrote: Sorry for the delay and thanks for the data. A quick diff did not reveal anything obvious. I'll have a closer look and we probably need more (other) information to

Re: linux-next: occassional build errors

2018-10-03 Thread Masahiro Yamada
Hi Stephen, On Thu, Oct 4, 2018 at 10:57 AM Stephen Rothwell wrote: > > Hi Masahiro, > > On Thu, 4 Oct 2018 10:39:37 +1000 Stephen Rothwell > wrote: > > > > On Wed, 3 Oct 2018 16:55:34 +1000 Stephen Rothwell > > wrote: > > > > > > > > The latest example is this: > > > > > > > > > >

Re: x86/mm: Found insecure W+X mapping at address (ptrval)/0xc00a0000

2018-10-03 Thread Paul Menzel
Dear Borislav, Am 03.10.2018 um 23:22 schrieb Borislav Petkov: On Fri, Sep 28, 2018 at 04:55:19PM +0200, Thomas Gleixner wrote: Sorry for the delay and thanks for the data. A quick diff did not reveal anything obvious. I'll have a closer look and we probably need more (other) information to

Re: linux-next: occassional build errors

2018-10-03 Thread Masahiro Yamada
Hi Stephen, On Thu, Oct 4, 2018 at 10:57 AM Stephen Rothwell wrote: > > Hi Masahiro, > > On Thu, 4 Oct 2018 10:39:37 +1000 Stephen Rothwell > wrote: > > > > On Wed, 3 Oct 2018 16:55:34 +1000 Stephen Rothwell > > wrote: > > > > > > > > The latest example is this: > > > > > > > > > >

[PATCHv2] misc: cxl: delete possible null pointer dereference

2018-10-03 Thread zhong jiang
It is safe to dereference an object below a NULL test. For the sake of debugging. Just delete the call of possible null pointer dereference. Signed-off-by: zhong jiang --- drivers/misc/cxl/guest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/cxl/guest.c

[PATCHv2] misc: cxl: delete possible null pointer dereference

2018-10-03 Thread zhong jiang
It is safe to dereference an object below a NULL test. For the sake of debugging. Just delete the call of possible null pointer dereference. Signed-off-by: zhong jiang --- drivers/misc/cxl/guest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/cxl/guest.c

Re: [BUG] sound: pci: trident: a possible data race

2018-10-03 Thread Jia-Ju Bai
Thanks for the reply :) On 2018/10/3 23:54, Takashi Iwai wrote: On Wed, 03 Oct 2018 14:50:25 +0200, Jia-Ju Bai wrote: CPU0: snd_trident_hw_free snd_trident_free_voice line 3870: spin_lock_irqsave() line 3881: voice->substream = NULL; [WRITE] CPU1:

Re: [BUG] sound: pci: trident: a possible data race

2018-10-03 Thread Jia-Ju Bai
Thanks for the reply :) On 2018/10/3 23:54, Takashi Iwai wrote: On Wed, 03 Oct 2018 14:50:25 +0200, Jia-Ju Bai wrote: CPU0: snd_trident_hw_free snd_trident_free_voice line 3870: spin_lock_irqsave() line 3881: voice->substream = NULL; [WRITE] CPU1:

Re: [PATCH linux-next v2 8/9] ASoC: rsnd: ssi: Request dedicated dma channels for busif0 to 7

2018-10-03 Thread Jiada Wang
Hi Morimoto-san On 2018/10/04 10:12, Kuninori Morimoto wrote: Hi Jiada Thank you for your patch Currently ssi driver only request dma channel for SSI_0, which is used to transfer data to/from busif0. But in GEN3 busif1 to busif7 also maybe used, dedicated dma channels are requested for

Re: [PATCH linux-next v2 8/9] ASoC: rsnd: ssi: Request dedicated dma channels for busif0 to 7

2018-10-03 Thread Jiada Wang
Hi Morimoto-san On 2018/10/04 10:12, Kuninori Morimoto wrote: Hi Jiada Thank you for your patch Currently ssi driver only request dma channel for SSI_0, which is used to transfer data to/from busif0. But in GEN3 busif1 to busif7 also maybe used, dedicated dma channels are requested for

Re: [PATCHv1] RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu

2018-10-03 Thread Jason Gunthorpe
On Thu, Oct 04, 2018 at 02:28:54AM +, Parav Pandit wrote: > Hi Doug, Jason, > > > From: Parav Pandit > > Sent: Friday, September 21, 2018 10:00 AM > > To: linux-r...@vger.kernel.org; linux-kernel@vger.kernel.org; > > l...@kernel.org; j...@ziepe.ca; syzkaller-b...@googlegroups.com; Daniel > >

Re: [PATCHv1] RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu

2018-10-03 Thread Jason Gunthorpe
On Thu, Oct 04, 2018 at 02:28:54AM +, Parav Pandit wrote: > Hi Doug, Jason, > > > From: Parav Pandit > > Sent: Friday, September 21, 2018 10:00 AM > > To: linux-r...@vger.kernel.org; linux-kernel@vger.kernel.org; > > l...@kernel.org; j...@ziepe.ca; syzkaller-b...@googlegroups.com; Daniel > >

Re: [PATCH] misc: cxl: Move a deference below a NULL test

2018-10-03 Thread zhong jiang
On 2018/10/3 6:55, Greg KH wrote: > On Wed, Sep 26, 2018 at 07:41:12PM +0800, zhong jiang wrote: >> It is safe to move a deference below a NULL test. >> >> Signed-off-by: zhong jiang >> Acked-by: Andrew Donnellan >> --- >> drivers/misc/cxl/guest.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2

Re: [PATCH] misc: cxl: Move a deference below a NULL test

2018-10-03 Thread zhong jiang
On 2018/10/3 6:55, Greg KH wrote: > On Wed, Sep 26, 2018 at 07:41:12PM +0800, zhong jiang wrote: >> It is safe to move a deference below a NULL test. >> >> Signed-off-by: zhong jiang >> Acked-by: Andrew Donnellan >> --- >> drivers/misc/cxl/guest.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2

Re: [alsa-devel] [PATCH linux-next v2 9/9] ASoC: rsnd: add busif property to dai stream

2018-10-03 Thread Jiada Wang
Hi Morimoto-san On 2018/10/04 10:41, Kuninori Morimoto wrote: Hi Jiada Thank you for your patch in GEN3 SSI may use different BUSIF for data transfer, this patch adds busif property to each dai stream, to indicate the BUSIF used by playback/capture stream. Also adds rsnd_ssi_select_busif()

Re: [alsa-devel] [PATCH linux-next v2 9/9] ASoC: rsnd: add busif property to dai stream

2018-10-03 Thread Jiada Wang
Hi Morimoto-san On 2018/10/04 10:41, Kuninori Morimoto wrote: Hi Jiada Thank you for your patch in GEN3 SSI may use different BUSIF for data transfer, this patch adds busif property to each dai stream, to indicate the BUSIF used by playback/capture stream. Also adds rsnd_ssi_select_busif()

[PATCH v2] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-03 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another. drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from enumeration type 'enum dma_transfer_direction' to different enumeration type 'enum dma_data_direction' [-Wenum-conversion] nents =

[PATCH v2] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-03 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another. drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from enumeration type 'enum dma_transfer_direction' to different enumeration type 'enum dma_data_direction' [-Wenum-conversion] nents =

[PATCH] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-03 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another. drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from enumeration type 'enum dma_transfer_direction' to different enumeration type 'enum dma_data_direction' [-Wenum-conversion] nents =

[PATCH] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-03 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another. drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from enumeration type 'enum dma_transfer_direction' to different enumeration type 'enum dma_data_direction' [-Wenum-conversion] nents =

[PATCH] ata: ep93xx: Use proper enums for directions

2018-10-03 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another. drivers/ata/pata_ep93xx.c:662:36: warning: implicit conversion from enumeration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion]

[PATCH] ata: ep93xx: Use proper enums for directions

2018-10-03 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another. drivers/ata/pata_ep93xx.c:662:36: warning: implicit conversion from enumeration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion]

[PATCH v2 3/3] mm: Maintain randomization of page free lists

2018-10-03 Thread Dan Williams
When freeing a page with an order >= shuffle_page_order randomly select the front or back of the list for insertion. While the mm tries to defragment physical pages into huge pages this can tend to make the page allocator more predictable over time. Inject the front-back randomness to preserve

[PATCH v2 3/3] mm: Maintain randomization of page free lists

2018-10-03 Thread Dan Williams
When freeing a page with an order >= shuffle_page_order randomly select the front or back of the list for insertion. While the mm tries to defragment physical pages into huge pages this can tend to make the page allocator more predictable over time. Inject the front-back randomness to preserve

RE: [PATCHv1] RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu

2018-10-03 Thread Parav Pandit
Hi Doug, Jason, > -Original Message- > From: Parav Pandit > Sent: Friday, September 21, 2018 10:00 AM > To: linux-r...@vger.kernel.org; linux-kernel@vger.kernel.org; > l...@kernel.org; j...@ziepe.ca; syzkaller-b...@googlegroups.com; Daniel > Jurgens ; dledf...@redhat.com > Cc: Parav

RE: [PATCHv1] RDMA/core: Check error status of rdma_find_ndev_for_src_ip_rcu

2018-10-03 Thread Parav Pandit
Hi Doug, Jason, > -Original Message- > From: Parav Pandit > Sent: Friday, September 21, 2018 10:00 AM > To: linux-r...@vger.kernel.org; linux-kernel@vger.kernel.org; > l...@kernel.org; j...@ziepe.ca; syzkaller-b...@googlegroups.com; Daniel > Jurgens ; dledf...@redhat.com > Cc: Parav

[PATCH v2 1/3] mm: Shuffle initial free memory

2018-10-03 Thread Dan Williams
Some data exfiltration and return-oriented-programming attacks rely on the ability to infer the location of sensitive data objects. The kernel page allocator, especially early in system boot, has predictable first-in-first out behavior for physical pages. Pages are freed in physical address order

[PATCH v2 2/3] mm: Move buddy list manipulations into helpers

2018-10-03 Thread Dan Williams
In preparation for runtime randomization of the zone lists, take all (well, most of) the list_*() functions in the buddy allocator and put them in helper functions. Provide a common control point for injecting additional behavior when freeing pages. Cc: Michal Hocko Cc: Dave Hansen

[PATCH v2 1/3] mm: Shuffle initial free memory

2018-10-03 Thread Dan Williams
Some data exfiltration and return-oriented-programming attacks rely on the ability to infer the location of sensitive data objects. The kernel page allocator, especially early in system boot, has predictable first-in-first out behavior for physical pages. Pages are freed in physical address order

[PATCH v2 2/3] mm: Move buddy list manipulations into helpers

2018-10-03 Thread Dan Williams
In preparation for runtime randomization of the zone lists, take all (well, most of) the list_*() functions in the buddy allocator and put them in helper functions. Provide a common control point for injecting additional behavior when freeing pages. Cc: Michal Hocko Cc: Dave Hansen

[PATCH v2 0/3] Randomize free memory

2018-10-03 Thread Dan Williams
Changes since v1: * Add support for shuffling hot-added memory (Andrew) * Update cover letter and commit message to clarify the performance impact and relevance to future platforms [1]: https://lkml.org/lkml/2018/9/15/366 --- Some data exfiltration and return-oriented-programming attacks rely

[PATCH v2 0/3] Randomize free memory

2018-10-03 Thread Dan Williams
Changes since v1: * Add support for shuffling hot-added memory (Andrew) * Update cover letter and commit message to clarify the performance impact and relevance to future platforms [1]: https://lkml.org/lkml/2018/9/15/366 --- Some data exfiltration and return-oriented-programming attacks rely

[PATCH 2/3 v2] VFS: allow MAY_ flags to be easily extended.

2018-10-03 Thread NeilBrown
NFSD uses permission flags similar to the MAY_* flags, with some overlap, and depends on the overlap matching. This is currently a little fragile and hard to extend. So add __MAY_UNUSED to identify the first unused flag, and have NFSD use that flag and later flags for its non-standard

[PATCH 2/3 v2] VFS: allow MAY_ flags to be easily extended.

2018-10-03 Thread NeilBrown
NFSD uses permission flags similar to the MAY_* flags, with some overlap, and depends on the overlap matching. This is currently a little fragile and hard to extend. So add __MAY_UNUSED to identify the first unused flag, and have NFSD use that flag and later flags for its non-standard

Re: [PATCH v3 0/7] Remove errors building drivers/DRIVERNAME

2018-10-03 Thread Finn Thain
On Wed, 3 Oct 2018, Leonardo Bras wrote: > Both ccache and distcc seem very interesting, I will take my time to > study them better as they can solve some situations I face. Thanks for > sharing! > You might also want to check out 'gcc -O0', 'gcc -fopt-info' and 'gcc --help=optimizers' etc

Re: [PATCH v3 0/7] Remove errors building drivers/DRIVERNAME

2018-10-03 Thread Finn Thain
On Wed, 3 Oct 2018, Leonardo Bras wrote: > Both ccache and distcc seem very interesting, I will take my time to > study them better as they can solve some situations I face. Thanks for > sharing! > You might also want to check out 'gcc -O0', 'gcc -fopt-info' and 'gcc --help=optimizers' etc

Re: linux-next: occassional build errors

2018-10-03 Thread Stephen Rothwell
Hi Masahiro, On Thu, 4 Oct 2018 10:39:37 +1000 Stephen Rothwell wrote: > > On Wed, 3 Oct 2018 16:55:34 +1000 Stephen Rothwell > wrote: > > > > > > The latest example is this: > > > > > > > > include/linux/kconfig.h: file not recognized: file format not recognized > > > > make[2]: ***

Re: linux-next: occassional build errors

2018-10-03 Thread Stephen Rothwell
Hi Masahiro, On Thu, 4 Oct 2018 10:39:37 +1000 Stephen Rothwell wrote: > > On Wed, 3 Oct 2018 16:55:34 +1000 Stephen Rothwell > wrote: > > > > > > The latest example is this: > > > > > > > > include/linux/kconfig.h: file not recognized: file format not recognized > > > > make[2]: ***

  1   2   3   4   5   6   7   8   9   10   >