Re: [PATCH] DSA support for Micrel KSZ8895

2017-09-06 Thread Maxim Uvarov
2017-08-31 0:32 GMT+03:00 : >> On Mon 2017-08-28 16:09:27, Andrew Lunn wrote: >> > > I may be confused here, but AFAICT: >> > > >> > > 1) Yes, it has standard layout when accessed over MDIO. >> > >> > >> > Section 4.8 of the datasheet says: >> > >> > All the registers defined in this section c

[PATCH v4 07/11] libsas: make the event threshold configurable

2017-09-06 Thread Jason Yan
Add a sysfs attr that LLDD can configure it for every host. We made a example in hisi_sas. Other LLDDs using libsas can implement it if they want. Suggested-by: Hannes Reinecke Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas Henzl

[PATCH v4 02/11] libsas: remove the numbering for each event enum

2017-09-06 Thread Jason Yan
Numbering for each event enum makes no sense. Remove the numbering so that we don't have to calculate the number by hand every time. Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas Henzl --- include/scsi/libsas.h | 34 +++

[PATCH v4 09/11] libsas: libsas: use flush_workqueue to process disco events synchronously

2017-09-06 Thread Jason Yan
Use flush_workqueue to insure the disco and revalidate events processed synchronously. Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas Henzl CC: Dan Williams --- drivers/scsi/libsas/sas_port.c | 4 1 file changed, 4 insert

[PATCH v4 01/11] libsas: kill useless ha_event and do some cleanup

2017-09-06 Thread Jason Yan
The ha_event now has only one event HAE_RESET, and this event does nothing. Kill it and do some cleanup. This is a preparation for enhance libsas hotplug feature in the next patches. Signed-off-by: Jason Yan Signed-off-by: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig

Re: Abysmal scheduler performance in Linus' tree?

2017-09-06 Thread Chris Wilson
Quoting Andy Lutomirski (2017-09-06 06:13:39) > I'm running e7d0c41ecc2e372a81741a30894f556afec24315 from Linus' tree > today, and I'm seeing abysmal scheduler performance. Running make -j4 > ends up with all the tasks on CPU 3 most of the time (on my > 4-logical-thread laptop). taskset -c 0 what

Re: [PATCH 2/2] mm/slub: don't use reserved memory for optimistic try

2017-09-06 Thread Michal Hocko
On Wed 06-09-17 10:10:22, Vlastimil Babka wrote: > On 09/06/2017 06:37 AM, js1...@gmail.com wrote: > > From: Joonsoo Kim > > > > High-order atomic allocation is difficult to succeed since we cannot > > reclaim anything in this context. So, we reserves the pageblock for > > this kind of request. >

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-06 Thread Łukasz Majewski
Hi Nicolin, On Tue, Sep 05, 2017 at 11:13:40PM +0200, Łukasz Majewski wrote: They key point here is the asoc_simple_card_parse_clk() function from simple-card-utils.c Please look how the clock is assigned; It first checks for cpu clock, then for "system-clock-frequency" DTS node and _finally_

Re: [PATCH] arm64: Convert pr_warning to standard pr_warn

2017-09-06 Thread Mark Rutland
On Tue, Sep 05, 2017 at 11:38:23AM -0700, Joe Perches wrote: > On Tue, 2017-09-05 at 10:10 +0100, Mark Rutland wrote: > > On Tue, Sep 05, 2017 at 10:28:38AM +0800, chengjian c00427203 wrote: > > > Convert pr_warning to standard pr_warn in arch/arm64/kernel/smp.c > > > > > > Signed-off-by: Cheng Ji

Re: Abysmal scheduler performance in Linus' tree?

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 10:15:33AM +0100, Chris Wilson wrote: > Quoting Andy Lutomirski (2017-09-06 06:13:39) > > I'm running e7d0c41ecc2e372a81741a30894f556afec24315 from Linus' tree > > today, and I'm seeing abysmal scheduler performance. Running make -j4 > > ends up with all the tasks on CPU 3

Re: SME/32-bit regression

2017-09-06 Thread Borislav Petkov
On Tue, Sep 05, 2017 at 11:45:07PM -0400, Boris Ostrovsky wrote: > It appears there is a regression for 32-bit kernels due to SME changes. > > I bisected my particular problem It being? Doesn't boot, splats? > (Xen PV guest) to > 21729f81ce8ae76a6995681d40e16f7ce8075db4 but I also saw pmd_clear_

Re: mpic IRQ_TYPE_BOTH handling

2017-09-06 Thread Laurentiu Tudor
On 08/31/2017 01:52 AM, Michael Ellerman wrote: > Hi Gregory, > > Gregory Fong writes: >> Hi all, >> >> In arch/powerpc/sysdev/mpic.c , it looks like IRQ_TYPE_EDGE_BOTH is >> handled the same way as IRQ_TYPE_EDGE_FALLING: >> >> static unsigned int mpic_type_to_vecpri(struct mpic *mpic, unsigned

[PATCH v2] genirq/msi: Fix populating multiple interrupts

2017-09-06 Thread John Keeping
On allocating the interrupts routed via to a wire-to-MSI bridge, we iterate over the MSI descriptors to build the hierarchy, but fail to use the descriptor interrupt number, and instead use the base number, generating the wrong IRQ domain mappings. The fix is to use the MSI descriptor interrupt nu

Re: [PATCH v11 4/6] target-arm: kvm64: detect guest RAS EXTENSION feature

2017-09-06 Thread gengdongjiu
Hi Peter, Thanks very much for your review, I will check your comments in detail and reply. On 2017/9/6 1:26, Peter Maydell wrote: > On 18 August 2017 at 15:23, Dongjiu Geng wrote: >> check if kvm supports guest RAS EXTENSION. if so, set >> corresponding feature bit for vcpu. >> >> Signed-off

Re: [PATCH] arm64: KVM: VHE: save and restore some PSTATE bits

2017-09-06 Thread gengdongjiu
Hi Marc, On 2017/9/6 16:17, Marc Zyngier wrote: > On 05/09/17 19:58, gengdongjiu wrote: >> when exit from guest, some host PSTATE bits may be lost, such as >> PSTATE.PAN or PSTATE.UAO. It is because host and hypervisor all run >> in the EL2, host PSTATE value cannot be saved and restored via >> SP

Re: [PATCH v2 09/18] firmware: arm_scmi: probe and initialise all the supported protocols

2017-09-06 Thread Julien Thierry
On 04/08/17 15:31, Sudeep Holla wrote: Now that we have basic support for all the protocols in the specification, let's probe them individually and initialise them. Cc: Arnd Bergmann Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/common.h | 5 +++ drivers/firmware/arm_scmi/dri

Re: [PATCH] arm64: KVM: VHE: save and restore some PSTATE bits

2017-09-06 Thread Vladimir Murzin
On 06/09/17 10:32, gengdongjiu wrote: > Hi Marc, > > On 2017/9/6 16:17, Marc Zyngier wrote: >> On 05/09/17 19:58, gengdongjiu wrote: >>> when exit from guest, some host PSTATE bits may be lost, such as >>> PSTATE.PAN or PSTATE.UAO. It is because host and hypervisor all run >>> in the EL2, host PST

Re: SME/32-bit regression

2017-09-06 Thread Borislav Petkov
Btw, Tom, pls remind me again, why didn't we make sme_me_mask u64? Because this is the most logical type for a memory encryption mask which covers 64 bits... In any case, the below builds fine here. --- diff --git a/arch/x86/include/asm/mem_encrypt.h b/arch/x86/include/asm/mem_encrypt.h index 8

Re: [PATCH] MIPS: mt7620: Rename uartlite to serial

2017-09-06 Thread Geert Uytterhoeven
On Fri, Sep 1, 2017 at 4:53 PM, Harvey Hunt wrote: > Previously, mt7620.c defined the clocks for uarts with the names > uartlite, uart1 and uart2. Rename them to serial{0,1,2} and update > the devicetree node names. > > Signed-off-by: Harvey Hunt > Cc: devicet...@vger.kernel.org > Cc: linux-m...@

Re: [PATCH 6/9] ext4: safely transition S_DAX on journaling changes

2017-09-06 Thread Jan Kara
On Tue 05-09-17 16:35:38, Ross Zwisler wrote: > The IOCTL path which switches the journaling mode for an inode is currently > unsafe because it doesn't properly do a writeback and invalidation on the > inode. In XFS, for example, safe transitions of S_DAX are handled by > xfs_ioctl_setattr_dax_inv

[tip:irq/urgent] genirq/msi: Fix populating multiple interrupts

2017-09-06 Thread tip-bot for John Keeping
Commit-ID: 596a7a1d0989c621c3ae49be73a1d1f9de22eb5a Gitweb: http://git.kernel.org/tip/596a7a1d0989c621c3ae49be73a1d1f9de22eb5a Author: John Keeping AuthorDate: Wed, 6 Sep 2017 10:35:40 +0100 Committer: Thomas Gleixner CommitDate: Wed, 6 Sep 2017 11:41:20 +0200 genirq/msi: Fix populatin

[PATCH] selinux: Use kmem_cache for hashtab_node

2017-09-06 Thread Kyeongdon Kim
During random test as own device to check slub account, we found some slack memory from hashtab_node(kmalloc-64). By using kzalloc(), middle of test result like below: allocated size 240768 request size 45144 slack size 195624 allocation count 3762 So, we want to use kmem_cache_zalloc() and that c

Re: [PATCH] arm64: KVM: VHE: save and restore some PSTATE bits

2017-09-06 Thread gengdongjiu
For UAO, if not save/restore PSTATE.UAO, we can use below fixing. diff --git a/arch/arm64/kvm/hyp/sysreg-sr.c b/arch/arm64/kvm/hyp/sysreg-sr.c index 9341376..c3dd761 100644 --- a/arch/arm64/kvm/hyp/sysreg-sr.c +++ b/arch/arm64/kvm/hyp/sysreg-sr.c @@ -21,6 +21,8 @@ #include #include +#include

[PATCH] input: surface3_spi: make const array header static, reduces object code size

2017-09-06 Thread Colin King
From: Colin Ian King Don't populate the const array header on the stack, instead make it static. Makes the object code smaller by over 180 bytes: Before: textdata bss dec hex filename 60031536 075391d73 surface3_spi.o After: textdata bss d

[PATCH v3] clk: at91: utmi: set the mainck rate

2017-09-06 Thread Ludovic Desroches
By default, it is assumed that the UTMI clock is generated from a 12 MHz reference clock (MAINCK). If it's not the case, the FREQ field of the SFR_UTMICKTRIM has to be updated to generate the UTMI clock in the proper way. The UTMI clock has a fixed rate of 480 MHz. In fact, there is no multiplier

cpu_needs_another_gp: unable to handle kernel paging request

2017-09-06 Thread Alex Lyakas
Hello, Kernel 3.18.19 hit the following panic[1]. Can you please advise on how to debug this further, or if there is any known issue that you recognize. Thanks, Alex. [1] Sep 5 01:05:02.092499 vsa-000f-vc-0 kernel: [1294776.890064] BUG: unable to handle kernel paging request at fff

Re: [RFC PATCH 0/6] Add platform device SVM support for ARM SMMUv3

2017-09-06 Thread Jean-Philippe Brucker
On 06/09/17 02:02, Bob Liu wrote: > On 2017/9/5 20:56, Jean-Philippe Brucker wrote: >> On 31/08/17 09:20, Yisheng Xie wrote: >>> Jean-Philippe has post a patchset for Adding PCIe SVM support to ARM SMMUv3: >>> https://www.spinics.net/lists/arm-kernel/msg565155.html >>> >>> But for some platform dev

Re: [RFC PATCH 0/6] Add platform device SVM support for ARM SMMUv3

2017-09-06 Thread Jean-Philippe Brucker
On 06/09/17 02:16, Yisheng Xie wrote: > Hi Jean-Philippe, > > On 2017/9/5 20:56, Jean-Philippe Brucker wrote: >> On 31/08/17 09:20, Yisheng Xie wrote: >>> Jean-Philippe has post a patchset for Adding PCIe SVM support to ARM SMMUv3: >>> https://www.spinics.net/lists/arm-kernel/msg565155.html >>> >>

[PATCH] scsi: ufs: fix wrong command type of UTRD for UFSHCI v2.1

2017-09-06 Thread kehuanlin
Since the command type of UTRD in UFS 2.1 specification is the same with UFS 2.0. And it assumes the future UFS specification will follow the same definition. Signed-off-by: kehuanlin --- drivers/scsi/ufs/ufshcd.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a

[GIT PULL] printk for 4.14

2017-09-06 Thread Petr Mladek
Linus, please pull the latest printk changes from git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk.git for-linus - Do not allow to use freed init data and code even when boot consoles are forced to stay. Also check for the init memory more precisely. - Some code

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Takashi Iwai
On Wed, 06 Sep 2017 11:05:04 +0200, Lee Jones wrote: > > On Wed, 06 Sep 2017, Takashi Iwai wrote: > > > On Wed, 06 Sep 2017 09:54:44 +0200, > > Lee Jones wrote: > > > > > > On Tue, 05 Sep 2017, Takashi Iwai wrote: > > > > > > > On Tue, 05 Sep 2017 10:53:41 +0200, > > > > Lee Jones wrote: > > >

Re: [PATCH v2 1/3] arm64/ras: support sea error recovery

2017-09-06 Thread Borislav Petkov
On Tue, Sep 05, 2017 at 07:06:04PM +0800, Xie XiuQi wrote: > With ARM v8.2 RAS Extension, SEA are usually triggered when memory errors > are consumed. In some cases, if the error address is in a clean page or a > read-only page, there is a chance to recover. Such as error occurs in a > instruction

Re: [PATCH] crypto: caam - properly set IV after {en,de}crypt

2017-09-06 Thread Gilad Ben-Yossef
On Tue, Sep 5, 2017 at 6:33 PM, Horia Geantă wrote: > On 8/14/2017 10:59 AM, Gilad Ben-Yossef wrote: >> Hi, >> >> On Thu, Jun 29, 2017 at 1:19 PM, Horia Geantă wrote: >>> On 6/28/2017 4:42 PM, Horia Geantă wrote: On 6/28/2017 4:27 PM, David Gstir wrote: > Certain cipher modes like CTS ex

Re: [PATCH v8 01/13] x86/apic: Construct a selector for the interrupt delivery mode

2017-09-06 Thread Baoquan He
Hi Dou, On 08/28/17 at 11:20am, Dou Liyang wrote: > +static int __init apic_intr_mode_select(void) > +{ > + /* Check kernel option */ > + if (disable_apic) { > + pr_info("APIC disabled via kernel command line\n"); > + return APIC_PIC; > + } > + I am not very fa

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Rafael J. Wysocki
On Wednesday, September 6, 2017 9:58:52 AM CEST Lee Jones wrote: > On Tue, 05 Sep 2017, Rafael J. Wysocki wrote: > > > On Tue, Sep 5, 2017 at 11:38 AM, Takashi Iwai wrote: > > > On Tue, 05 Sep 2017 10:53:41 +0200, > > > Lee Jones wrote: > > >> > > >> On Tue, 05 Sep 2017, Takashi Iwai wrote: > > >

Re: [Xen-devel] [PATCH] xen-blkfront: emit KOBJ_OFFLINE uevent when detaching device

2017-09-06 Thread Juergen Gross
On 05/09/17 09:28, Vincent Legout wrote: > Hello, > > Sorry for such a long delay. I'm still interested in having this patch > merged. > > I've tried to make the patch more generic and move it to xenbus as > discussed during the Xen summit, but I'm not sure how or if it's > possible. Would doing

[PATCH] block: export symbol for bio_copy_kern

2017-09-06 Thread Javier González
Export symbol for bio_copy_kern so that we can use it in modules. Reported-by: Andiry Xu Signed-off-by: Javier González --- block/bio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/bio.c b/block/bio.c index 6745759028da..cface315ace5 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1

[PATCH 0/3] ALSA: BeBoB: Fine-tuning for six function implementations

2017-09-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 6 Sep 2017 12:16:54 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use common error handling code in snd_bebob_stream_start_duplex() Adjust six checks for null pointers Improve a size determinatio

[PATCH] lightnvm: Add error code for bad write pointer

2017-09-06 Thread Javier González
Add new error code introduced on the OCSSD spec 2.0 for write pointer mismatch on the device side. This indicates to the host that a write on a block (chunk) is not respecting the required sequentiality. Signed-off-by: Javier González --- include/linux/lightnvm.h | 3 ++- 1 file changed, 2 inser

[PATCH 1/3] ALSA: bebob: Use common error handling code in snd_bebob_stream_start_duplex()

2017-09-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 6 Sep 2017 11:40:53 +0200 Add jump targets so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/firewire/bebob/bebob_stream.c | 21

[PATCH 2/3] ALSA: bebob: Adjust six checks for null pointers

2017-09-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 6 Sep 2017 11:48:44 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code plac

[PATCH 3/3] ALSA: bebob: Improve a size determination in parse_stream_formation()

2017-09-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 6 Sep 2017 11:55:45 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mark

Re: [PATCH v3] clk: at91: utmi: set the mainck rate

2017-09-06 Thread Ingo van Lil
On 09/06/2017 11:51 AM, Ludovic Desroches wrote: By default, it is assumed that the UTMI clock is generated from a 12 MHz reference clock (MAINCK). If it's not the case, the FREQ field of the SFR_UTMICKTRIM has to be updated to generate the UTMI clock in the proper way. The UTMI clock has a fix

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Rafael J. Wysocki
On Wednesday, September 6, 2017 12:06:50 PM CEST Takashi Iwai wrote: > On Wed, 06 Sep 2017 11:05:04 +0200, > Lee Jones wrote: > > > > On Wed, 06 Sep 2017, Takashi Iwai wrote: > > > > > On Wed, 06 Sep 2017 09:54:44 +0200, > > > Lee Jones wrote: > > > > > > > > On Tue, 05 Sep 2017, Takashi Iwai wr

[PATCH] arm: omap: dra7xx: Set OPT_CLKS_IN_RESET flag for gpio1

2017-09-06 Thread Keerthy
gpio1 soft reset fails in the kexec path as the optional clock is not enabled hence enable the HWMOD_CONTROL_OPT_CLKS_IN_RESET flag for gpio1 hwmod. Signed-off-by: Keerthy --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/omap_h

[PATCH] iommu/amd: Use raw_cpu_ptr() instead of get_cpu_ptr() for ->flush_queue

2017-09-06 Thread Sebastian Andrzej Siewior
get_cpu_ptr() disables preemption and returns the ->flush_queue object of the current CPU. raw_cpu_ptr() does the same except that it not disable preemption which means the scheduler can move it to another CPU after it obtained the per-CPU object. In this case this is not bad because the data struc

Re: [PATCH] arm64: KVM: VHE: save and restore some PSTATE bits

2017-09-06 Thread gengdongjiu
Vladimir, On 2017/9/6 17:41, Vladimir Murzin wrote: > Can you please elaborate on cases where PAN is not enabled? I mean the informal private usage, For example, he disabled the PAN dynamically to let kernel space to access the user space. After he dynamic disabled the PAN, then switched to gues

[PATCH] clk: ti: dra7xx: Reset the mcasp3_ahclkx_mux clock value

2017-09-06 Thread Keerthy
Reset the mcasp3_ahclkx_mux to abe_24m_fclk. This is needed in case of kexec where the reset values might be wiped off. Signed-off-by: Keerthy --- drivers/clk/ti/clk-7xx.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7x

[PATCH] pci: dwc: dra7xx: Add shutdown handler to cleanly turn off clocks

2017-09-06 Thread Keerthy
Add shutdown handler to cleanly turn off clocks. Signed-off-by: Keerthy --- drivers/pci/dwc/pci-dra7xx.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index d4e98f3..66d1cfe 100644 --- a/drivers/pci/dwc/pci-dra7xx.

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Lee Jones
On Wed, 06 Sep 2017, Takashi Iwai wrote: > On Wed, 06 Sep 2017 11:05:04 +0200, > Lee Jones wrote: > > > > On Wed, 06 Sep 2017, Takashi Iwai wrote: > > > > > On Wed, 06 Sep 2017 09:54:44 +0200, > > > Lee Jones wrote: > > > > > > > > On Tue, 05 Sep 2017, Takashi Iwai wrote: > > > > > > > > > On

Re: Abysmal scheduler performance in Linus' tree?

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 11:18:46AM +0100, Chris Wilson wrote: > > +static void get_llc_stats(struct llc_stats *stats, int cpu) > > +{ > > + struct sched_domain_shared *sds = > > rcu_dereference(per_cpu(sd_llc_shared, cpu)); > > + > > + if (!sds) { > > + memset(&stats, 0,

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Lee Jones
On Wed, 06 Sep 2017, Rafael J. Wysocki wrote: > On Wednesday, September 6, 2017 9:58:52 AM CEST Lee Jones wrote: > > On Tue, 05 Sep 2017, Rafael J. Wysocki wrote: > > > > > On Tue, Sep 5, 2017 at 11:38 AM, Takashi Iwai wrote: > > > > On Tue, 05 Sep 2017 10:53:41 +0200, > > > > Lee Jones wrote: >

Re: [PATCH v2 5/5] tools/testing/scatterlist: Test new __sg_alloc_table_from_pages

2017-09-06 Thread Chris Wilson
Quoting Tvrtko Ursulin (2017-09-05 11:24:03) > From: Tvrtko Ursulin > > Exercise the new __sg_alloc_table_from_pages API (and through > it also the old sg_alloc_table_from_pages), checking that the > created table has the expected number of segments depending on > the sequence of input pages and

[GIT PULL] Please pull powerpc/linux.git powerpc-4.14-1 tag

2017-09-06 Thread Michael Ellerman
Hi Linus, Please pull powerpc updates for 4.14. Slightly late pull request due to me travelling and only having spotty 3G 'net access. Hopefully everything is in order. No merge conflicts or anything that I'm aware of. The "since commit" below is a bit confused because I merged my fixes branch, t

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Lee Jones
On Wed, 06 Sep 2017, Rafael J. Wysocki wrote: > On Wednesday, September 6, 2017 12:06:50 PM CEST Takashi Iwai wrote: > > On Wed, 06 Sep 2017 11:05:04 +0200, > > Lee Jones wrote: > > > > > > On Wed, 06 Sep 2017, Takashi Iwai wrote: > > > > > > > On Wed, 06 Sep 2017 09:54:44 +0200, > > > > Lee Jon

Re: Abysmal scheduler performance in Linus' tree?

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 12:44:20PM +0200, Peter Zijlstra wrote: > > > + /* if this cache has capacity, come here */ > > > + if (this_stats.has_capacity && this_stats.nr_running < > > > prev_stats.nr_running+1) > > > + return true; > > > > This is still not working as int

[PATCH 01/18] lightnvm: pblk: improve naming for internal req.

2017-09-06 Thread Javier González
Each request type sent to the LightNVM subsystem requires different metadata. Until now, we have tailored this metadata based on write, read and erase commands. However, pblk uses different metadata for internal writes that do not hit the write buffer. Instead of abusing the metadata for reads, cre

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Lee Jones
> > In any case, I wouldn't mind it if you took the [3/3] from this series, > > because > > if there are any conflicts with it, they will be trivial to resolve. And I > > don't need an immutable branch with it or anything like that. > > No problem. Although you don't appear to have reviewed it?

[PATCH 09/18] lightnvm: pblk: simplify data validity check on GC

2017-09-06 Thread Javier González
When a line is selected for recycling by the garbage collector (GC), the line state changes and the invalid bitmap is frozen, preventing invalidations from happening. Throughout the GC, the L2P map is checked to verify that not data being recycled has been updated. The last check is done before the

[PATCH 11/18] lightnvm: pblk: refactor read path on GC

2017-09-06 Thread Javier González
Simplify the part of the garbage collector where data is read from the line being recycled and moved into an internal queue before being copied to the memory buffer. This allows to get rid of a dedicated function, which introduces an unnecessary dependency on the code. Signed-off-by: Javier Gonzál

[PATCH 10/18] lightnvm: pblk: use bio_copy_kern when possible

2017-09-06 Thread Javier González
In pblk, buffers forming bios can be allocated on physically contiguous or virtually contiguous memory. For physically contiguous memory, we already use the bio_map_kern helper funciton, however, for virtually contiguous memory, we from the bio manually. This makes the code more complex, specially

Re: [PATCH] pci: dwc: dra7xx: Add shutdown handler to cleanly turn off clocks

2017-09-06 Thread Kishon Vijay Abraham I
Keerthy, On Wednesday 06 September 2017 04:09 PM, Keerthy wrote: > Add shutdown handler to cleanly turn off clocks. one minor comment below.. with that fixed you can add my Acked-by: Kishon Vijay Abraham I > > Signed-off-by: Keerthy > --- > drivers/pci/dwc/pci-dra7xx.c | 14 ++ >

[PATCH 00/18] lightnvm: pblk patches for 4.14

2017-09-06 Thread Javier González
Hi Jens, Here is the pblk patchset for this window. The most notable patches are on the read path: - ("lightnvm: pblk: check lba sanity on read path") uses the lba stored on the out-of-bound area to verify that the read ppa corresponds to the lba pointed to by the read bio. - ("lightn

[PATCH 12/18] lightnvm: pblk: free padded entries in write buffer

2017-09-06 Thread Javier González
When a REQ_FLUSH reaches pblk, the bio cannot be directly completed. Instead, data on the write buffer is flushed and the bio is completed on the completion pah. This might require some sectors to be padded in order to guarantee a successful write. This patch fixes a memory leak on the padded page

[PATCH 14/18] lightnvm: pblk: simplify path on REQ_PREFLUSH

2017-09-06 Thread Javier González
On REQ_PREFLUSH, directly tag the I/O context flags to signal a flush in the write to cache path, instead of finding the correct entry context and imposing a memory barrier. This simplifies the code and might potentially prevent race conditions when adding functionality to the write path. Signed-o

[PATCH 08/18] lightnvm: pblk: check lba sanity on read path

2017-09-06 Thread Javier González
As part of pblk's recovery scheme, we store the lba mapped to each physical sector on the device's out-of-bound (OOB) area. On the read path, we can use this information to validate that the data being delivered to the upper layers corresponds to the lba being requested. The cost of this check is a

[PATCH 13/18] lightnvm: pblk: fix write I/O sync stat

2017-09-06 Thread Javier González
Fix stat counter to collect the right number of I/Os being synced on the completion path. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/lightnvm/pblk-write.c b/drivers/l

[PATCH 07/18] lightnvm: pblk: use constant for GC parameter

2017-09-06 Thread Javier González
Use a constant instead of using meaningless tuning parameters on the garbage collector algorithms. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-gc.c | 4 ++-- drivers/lightnvm/pblk.h| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --g

[PATCH 15/18] lightnvm: pblk: avoid deadlock on low LUN config

2017-09-06 Thread Javier González
On low LUN configurations, make sure not to send bios that are bigger than the buffer size. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 2 +- drivers/lightnvm/pblk-rl.c | 6 ++ drivers/lightnvm/pblk.h | 2 ++ 3 files changed, 9 ins

[PATCH 17/18] lightnvm: pblk: guarantee line integrity on reads

2017-09-06 Thread Javier González
When a line is recycled during garbage collection, reads can still be issued to the line. If the line is freed in the middle of this process, data corruption might occur. This patch guarantees that lines are not freed in the middle of reads that target them (lines). Specifically, we use the existi

[PATCH 16/18] lightnvm: pblk: enable 1 LUN configuration

2017-09-06 Thread Javier González
Metadata I/Os are scheduled to minimize their impact on user data I/Os. When there are enough LUNs instantiated (i.e., enought bandwidth), it is easy to interleave metadata and data one after the other so that metadata I/Os are the ones being blocked and not viceversa. We do this by calculating th

[PATCH 18/18] lightnvm: pblk: remove unnecessary check

2017-09-06 Thread Javier González
A partial read I/O in pblk is an I/O where some sectors reside in the write buffer in main memory and some are persisted on the device. Such an I/O must at least contain 2 lbas, therefore checking for the case where a single lba is mapped is not necessary. Signed-off-by: Javier González Signed-of

Re: [PATCH] pci: dwc: dra7xx: Add shutdown handler to cleanly turn off clocks

2017-09-06 Thread Kishon Vijay Abraham I
On Wednesday 06 September 2017 04:23 PM, Kishon Vijay Abraham I wrote: > Keerthy, > > On Wednesday 06 September 2017 04:09 PM, Keerthy wrote: >> Add shutdown handler to cleanly turn off clocks. > > one minor comment below.. with that fixed you can add my > > Acked-by: Kishon Vijay Abraham I >

[PATCH 06/18] lightnvm: pblk: use right flag for GC allocation

2017-09-06 Thread Javier González
The data buffer for the GC path allocates virtual memory through vmalloc. When this change was introduced, a flag signaling kmalloc'ed memory was wrongly introduced. Use the right flag when creating a bio from this buffer. Fixes: de54e703a422 ("lightnvm: pblk: use vmalloc for GC data buffer") Sign

RE: [PATCH v2] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-09-06 Thread Gabriele Paoloni
Hi Bjorn > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 02 September 2017 18:33 > To: Gabriele Paoloni > Cc: Linuxarm; liudongdong (C); linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH v2] PCIe AER: report uncorrectable errors

[PATCH 02/18] lightnvm: pblk: refactor read lba sanity check

2017-09-06 Thread Javier González
Refactor lba sanity check on read path to avoid code duplication. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-read.c | 29 ++--- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/drivers/lightnvm/pblk-read.c b/dri

[PATCH 05/18] lightnvm: pblk: initialize debug stat counter

2017-09-06 Thread Javier González
Initialize the stat counter for garbage collected reads. Fixes: a4bd217b43268 ("lightnvm: physical block device (pblk) target") Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/lightnvm/pbl

[PATCH 04/18] lightnvm: pblk: check for failed mempool alloc.

2017-09-06 Thread Javier González
Check for failed mempool allocations and act accordingly. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index e3997abdf740..11a684

[PATCH 03/18] lightnvm: pblk: normalize ppa namings

2017-09-06 Thread Javier González
Normalize the way we name ppa variables to improve code readability. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-core.c | 48 +++- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/drivers/lightnvm

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Takashi Iwai
On Wed, 06 Sep 2017 12:40:40 +0200, Lee Jones wrote: > > On Wed, 06 Sep 2017, Takashi Iwai wrote: > > > On Wed, 06 Sep 2017 11:05:04 +0200, > > Lee Jones wrote: > > > > > > On Wed, 06 Sep 2017, Takashi Iwai wrote: > > > > > > > On Wed, 06 Sep 2017 09:54:44 +0200, > > > > Lee Jones wrote: > > >

Re: [PATCH v7] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-06 Thread Auger Eric
Hi Anup, On 06/09/2017 10:16, Anup Patel wrote: > This patch adds Broadcom FlexRM low-level reset for > VFIO platform. > > It will do the following: > 1. Disable/Deactivate each FlexRM ring > 2. Flush each FlexRM ring > > The cleanup sequence for FlexRM rings is adapted from > Broadcom FlexRM ma

Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC

2017-09-06 Thread Rafael J. Wysocki
On Wednesday, September 6, 2017 12:58:55 PM CEST Takashi Iwai wrote: > On Wed, 06 Sep 2017 12:40:40 +0200, > Lee Jones wrote: > > > > On Wed, 06 Sep 2017, Takashi Iwai wrote: > > > > > On Wed, 06 Sep 2017 11:05:04 +0200, > > > Lee Jones wrote: > > > > > > > > On Wed, 06 Sep 2017, Takashi Iwai wr

Re: [PATCH v7] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-06 Thread Anup Patel
On Wed, Sep 6, 2017 at 4:39 PM, Auger Eric wrote: > Hi Anup, > > On 06/09/2017 10:16, Anup Patel wrote: >> This patch adds Broadcom FlexRM low-level reset for >> VFIO platform. >> >> It will do the following: >> 1. Disable/Deactivate each FlexRM ring >> 2. Flush each FlexRM ring >> >> The cleanup

Re: [PATCH] MIPS: ath79: support devicetree selection

2017-09-06 Thread Ralf Baechle
On Fri, Aug 18, 2017 at 05:32:42PM +0200, Rocco Folino wrote: > Allow to choose devicetrees from Kconfig. > > Signed-off-by: Rocco Folino > --- > arch/mips/ath79/Kconfig | 44 > + > arch/mips/boot/dts/qca/Makefile | 10 +- > 2 files chang

Re: [PATCH] Workqueue lockup: Circular dependency in threads

2017-09-06 Thread Prateek Sood
On 09/05/2017 06:52 PM, Tejun Heo wrote: > Hello, > > On Thu, Aug 31, 2017 at 06:43:56PM +0530, Prateek Sood wrote: >>> 6) cpuset_mutex is acquired by task init:1 and is waiting for cpuhotplug >>> lock. > > Yeah, this is the problematic one. > >>> We can reorder the sequence of locks as in the

[PATCH v8] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-06 Thread Anup Patel
This patch adds Broadcom FlexRM low-level reset for VFIO platform. It will do the following: 1. Disable/Deactivate each FlexRM ring 2. Flush each FlexRM ring The cleanup sequence for FlexRM rings is adapted from Broadcom FlexRM mailbox driver. Signed-off-by: Anup Patel Reviewed-by: Oza Oza Rev

[PATCH v8] FlexRM support in VFIO platform

2017-09-06 Thread Anup Patel
This patchset primarily adds Broadcom FlexRM reset module for VFIO platform driver. The patches are based on Linux-4.13-rc3 and can also be found at flexrm-vfio-v8 branch of https://github.com/Broadcom/arm64-linux.git Changes since v7: - Use "ret |= rc" instead of "ret = rc" in vfio_platform_

Re: [PATCH v6 0/7] Add RAS virtualization support for SEA/SEI notification type in KVM

2017-09-06 Thread Peter Maydell
On 28 August 2017 at 11:38, Dongjiu Geng wrote: > In the firmware-first RAS solution, corrupt data is detected in a > memory location when guest OS application software executing at EL0 > or guest OS kernel El1 software are reading from the memory. The > memory node records errors in an error reco

Re: [Question]: try to fix contention between expire_timers and try_to_del_timer_sync

2017-09-06 Thread qiaozhou
On 2017年08月29日 07:12, Vikram Mulukutla wrote: Well here's something interesting. I tried a different platform and found that the workaround doesn't help much at all, similar to Qiao's observation on his b.L chipset. Something to do with the WFE implementation or event-stream? Hi Vikram,

[PATCH] spi: Use ida to manage SPI bus number

2017-09-06 Thread Baolin Wang
This patch adds one static ida variable to manage SPI bus number, moreover we can get dynamic bus number from ida instead of one "dynamic" IDs, which can be removed. Signed-off-by: Baolin Wang --- drivers/spi/spi.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) d

Re: [PATCH v6 0/7] Add RAS virtualization support for SEA/SEI notification type in KVM

2017-09-06 Thread gengdongjiu
Hi Peter, On 2017/9/6 19:19, Peter Maydell wrote: > On 28 August 2017 at 11:38, Dongjiu Geng wrote: >> In the firmware-first RAS solution, corrupt data is detected in a >> memory location when guest OS application software executing at EL0 >> or guest OS kernel El1 software are reading from the m

Re: [PATCH] tpm_tis: make array cmd_getticks static const to shink object code size

2017-09-06 Thread Jarkko Sakkinen
On Fri, Aug 25, 2017 at 05:45:05PM +0100, Colin King wrote: > From: Colin Ian King > > Don't populate array cmd_getticks on the stack, instead make it static > const. Makes the object code smaller by over 160 bytes: > > Before: >text data bss dec hex filename > 18813

[PATCH] ALSA: FireWire-MOTU: Use common error handling code in snd_motu_stream_start_duplex()

2017-09-06 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 6 Sep 2017 13:30:14 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/firewire/motu/motu-stream.c | 16

Re: [PATCH] clk: ti: dra7xx: Reset the mcasp3_ahclkx_mux clock value

2017-09-06 Thread Tero Kristo
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 06/09/17 13:36, Keerthy wrote: Reset the mcasp3_ahclkx_mux to abe_24m_fclk. This is needed in case of kexec where the reset values might be wiped off. Signed-off-

Re: [PATCH 1/4] arm: topology: remove cpu_efficiency

2017-09-06 Thread Dietmar Eggemann
Hi Vincent, On 04/09/17 08:49, Vincent Guittot wrote: > Hi Dietmar, > > Removing cpu effificiency table looks good to me. Nevertheless, i have > some comments below for this patch. Thanks for the review! > On 30 August 2017 at 16:41, Dietmar Eggemann wrote: >> Remove the 'cpu_efficiency/clock-

Re: [PATCH 2/4] arm: dts: exynos: add exynos5420 cpu capacity-dmips-mhz information

2017-09-06 Thread Dietmar Eggemann
On 03/09/17 20:56, Krzysztof Kozlowski wrote: > On Thu, Aug 31, 2017 at 11:36:07AM +0100, Dietmar Eggemann wrote: >> On 30/08/17 21:26, Krzysztof Kozlowski wrote: >>> On Wed, Aug 30, 2017 at 03:41:18PM +0100, Dietmar Eggemann wrote: [...] The patch has been tested on Samsung Chromebook 2 13"

[PATCH v3 1/3] dt-bindings: sdhci-omap: Add bindings for the sdhci-omap controller

2017-09-06 Thread Kishon Vijay Abraham I
Add binding for the TI's sdhci-omap controller. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/mmc/sdhci-omap.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-omap.txt diff --git a/Documentat

[PATCH v3 3/3] MAINTAINERS: Add TI OMAP SDHCI Maintainer

2017-09-06 Thread Kishon Vijay Abraham I
Add Maintainer for the TI OMAP SDHCI driver. Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1c3feffb1c1c..e52af3b87404 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11776,6

[PATCH v3 2/3] mmc: sdhci-omap: Add OMAP SDHCI driver

2017-09-06 Thread Kishon Vijay Abraham I
Create a new sdhci-omap driver to configure the eMMC/SD/SDIO controller in TI's OMAP SoCs making use of the SDHCI core library. For OMAP specific configurations, populate sdhci_ops with OMAP specific callbacks and use SDHCI quirks. Enable only high speed mode for both SD and eMMC here and add other

[PATCH v3 0/3] mmc: Add OMAP SDHCI driver

2017-09-06 Thread Kishon Vijay Abraham I
This is the first step in deprecating omap_hsmmc driver completely and moving to sdhci-omap driver which uses the sdhci library. This patch that adds a new SDHCI quirk "MMC_RSP_136" has already been merged and hence removed it in this revision. Apart from the quirk, sdhci-omap has it's own callba

<    1   2   3   4   5   6   7   8   9   >