Re: [PATCH V4 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-08 Thread Jason Wang
On 2019/8/7 下午10:02, Jason Wang wrote: > > On 2019/8/7 下午8:07, Jason Gunthorpe wrote: >> On Wed, Aug 07, 2019 at 03:06:15AM -0400, Jason Wang wrote: >>> We used to use RCU to synchronize MMU notifier with worker. This leads >>> calling synchronize_rcu() in invalidate_range_start(). But on a busy >

Re: [PATCH 6/6] PSCI: cpuidle: Refactor CPU suspend power_state parameter handling

2019-08-08 Thread Sudeep Holla
On Mon, Jul 22, 2019 at 04:37:45PM +0100, Lorenzo Pieralisi wrote: > Current PSCI code handles idle state entry through the > psci_cpu_suspend_enter() API, that takes an idle state index as a > parameter and convert the index into a previously initialized > power_state parameter before calling the

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-08 Thread Aaron Lu
On Mon, Aug 05, 2019 at 08:55:28AM -0700, Tim Chen wrote: > On 8/2/19 8:37 AM, Julien Desfossez wrote: > > We tested both Aaron's and Tim's patches and here are our results. > > > > Test setup: > > - 2 1-thread sysbench, one running the cpu benchmark, the other one the > > mem benchmark > > - bo

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-08 Thread Joel Fernandes
On Thu, Aug 08, 2019 at 06:52:32PM +0900, Byungchul Park wrote: > On Wed, Aug 07, 2019 at 10:52:15AM -0700, Paul E. McKenney wrote: > > > > On Tue, Aug 06, 2019 at 05:20:40PM -0400, Joel Fernandes (Google) wrote: > > [ . . . ] > > > > > + for (; head; head = next) { > > > > > + next

Re: [PATCH 2/2] ARM: dts: at91: sama5d27_som1_ek: add mmc capabilities for SDMMC0

2019-08-08 Thread Adrian Hunter
On 8/08/19 3:42 PM, Ludovic Desroches wrote: > On Thu, Aug 08, 2019 at 10:35:43AM +0200, Eugen Hristev - M18282 wrote: >> From: Eugen Hristev >> >> Add mmc capabilities for SDMMC0 for this board. >> With this enabled, eMMC connected card is detected as: >> >> mmc0: new DDR MMC card at address 0001

Re: [PATCH] ASoC: soc-core: remove error due to probe deferral

2019-08-08 Thread Stefan Agner
On 2019-08-08 14:44, Mark Brown wrote: > On Thu, Aug 08, 2019 at 02:36:55PM +0200, Stefan Agner wrote: >> From: Stefan Agner >> >> Deferred probes shouldn't cause error messages in the boot log. Avoid >> printing with dev_err() in case EPROBE_DEFER is the return value. > > No, they absolutely sho

Re: [PATCH] ASoC: soc-core: remove error due to probe deferral

2019-08-08 Thread Takashi Iwai
On Thu, 08 Aug 2019 14:44:37 +0200, Mark Brown wrote: > > On Thu, Aug 08, 2019 at 02:36:55PM +0200, Stefan Agner wrote: > > From: Stefan Agner > > > > Deferred probes shouldn't cause error messages in the boot log. Avoid > > printing with dev_err() in case EPROBE_DEFER is the return value. > >

Re: [PATCH V4 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-08 Thread Jason Wang
- Original Message - > > On 2019/8/7 下午10:02, Jason Wang wrote: > > > > On 2019/8/7 下午8:07, Jason Gunthorpe wrote: > >> On Wed, Aug 07, 2019 at 03:06:15AM -0400, Jason Wang wrote: > >>> We used to use RCU to synchronize MMU notifier with worker. This leads > >>> calling synchronize_rcu(

Re: [PATCH 1/2] mmc: sdhci-of-at91: add quirk for broken HS200

2019-08-08 Thread Adrian Hunter
On 8/08/19 11:35 AM, eugen.hris...@microchip.com wrote: > From: Eugen Hristev > > HS200 is not implemented in the driver, but the controller claims it > through caps. > Remove it via quirk. > Without this quirk, the mmc core will try to enable hs200, which will fail, > and the eMMC initialization

Re: [PATCH v2 1/2] drivers/ras: Don't build debugfs.o if no debugfs in config

2019-08-08 Thread Valdis Klētnieks
On Thu, 08 Aug 2019 11:31:01 +0200, Borislav Petkov said: > > There's no reason to build the debugfs.o if the kernel config doesn't > > even include CONFIG_DEBUG_FS > > > > Signed-off-by: Valdis Kletnieks > > > > diff --git a/drivers/ras/Makefile b/drivers/ras/Makefile > > index ef6777e14d3d..07a5

Re: [PATCH] ASoC: soc-core: remove error due to probe deferral

2019-08-08 Thread Mark Brown
On Thu, Aug 08, 2019 at 03:00:06PM +0200, Takashi Iwai wrote: > Mark Brown wrote: > > No, they absolutely should tell the user why they are deferring so the > > user has some information to go on when they're trying to figure out why > > their device isn't instantiating. > But it's no real error

Re: [PATCH 00/15] thermal: qcom: tsens: Add interrupt support

2019-08-08 Thread Amit Kucheria
On Fri, Jul 26, 2019 at 3:48 AM Amit Kucheria wrote: > > Add interrupt support to TSENS. The first 6 patches are general fixes and > cleanups to the driver before interrupt support is introduced. > > This series has been developed against qcs404 and sdm845 and then tested on > msm8916. Testing on

Re: [PATCH V4 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-08 Thread Jason Gunthorpe
On Thu, Aug 08, 2019 at 08:54:54PM +0800, Jason Wang wrote: > I don't have any objection to convert  to spinlock() but just want to > know if any case that the above smp_mb() + counter looks good to you? This email is horribly mangled, but I don't think mixing smb_mb() and smp_load_acquire() woul

Re: SMP lockup at boot on Freescale/NXP T2080 (powerpc 64)

2019-08-08 Thread Christophe Leroy
Le 08/08/2019 à 10:46, Christophe Leroy a écrit : Le 07/08/2019 à 03:24, Chris Packham a écrit : On Wed, 2019-08-07 at 11:13 +1000, Michael Ellerman wrote: Chris Packham writes: On Tue, 2019-08-06 at 21:32 +1000, Michael Ellerman wrote: The difference between a working and non working d

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-08 Thread Enrico Weigelt, metux IT consult
On 06.08.19 19:12, Javier Martinez Canillas wrote: Right, we could add a macro for that. Although it should probably be called I2C_OF_MODULE_DEVICE_TABLE() or something like that since is specific to OF. At that point it should be completely noop when OF is disabled, so we also can get rid of

Re: [PATCH] ASoC: soc-core: remove error due to probe deferral

2019-08-08 Thread Takashi Iwai
On Thu, 08 Aug 2019 15:02:17 +0200, Mark Brown wrote: > > On Thu, Aug 08, 2019 at 03:00:06PM +0200, Takashi Iwai wrote: > > Mark Brown wrote: > > > > No, they absolutely should tell the user why they are deferring so the > > > user has some information to go on when they're trying to figure out w

Re: [PATCH v2 1/2] PCI: PCIe: ASPM: Introduce pcie_aspm_enabled_mask()

2019-08-08 Thread Bjorn Helgaas
On Thu, Aug 08, 2019 at 12:06:52PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Add a function returning the mask of currently enabled ASPM link > states for a given device. > > It will be used by the NVMe driver to decide how to handle the > device during system suspend. > > S

[PATCH v2 2/2] spi: npcm-fiu: add NPCM FIU controller driver

2019-08-08 Thread Tomer Maimon
Add Nuvoton NPCM BMC Flash Interface Unit(FIU) SPI master controller driver using SPI-MEM interface. The FIU supports single, dual or quad communication interface. the FIU controller can operate in following modes: - User Mode Access(UMA): provides flash access by using an indirect address/data

Re: [PATCH v2 3/9] soc: samsung: Add Exynos Adaptive Supply Voltage driver

2019-08-08 Thread Krzysztof Kozlowski
On Thu, 8 Aug 2019 at 14:48, Robin Murphy wrote: > > On 08/08/2019 13:31, Krzysztof Kozlowski wrote: > > On Thu, 8 Aug 2019 at 14:07, Sylwester Nawrocki > > wrote: > +static unsigned int exynos5422_asv_parse_table(struct exynos_asv *asv, > + unsigned

[PATCH v2 0/2] spi: add NPCM FIU controller driver

2019-08-08 Thread Tomer Maimon
This patch set adds Flash Interface Unit(FIU) SPI master support for the Nuvoton NPCM Baseboard Management Controller (BMC). The FIU supports single, dual or quad communication interface. the FIU controller can operate in following modes: - User Mode Access(UMA): provides flash access by using

[PATCH v2 1/2] dt-binding: spi: add NPCM FIU controller

2019-08-08 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Flash Interface Unit(FIU) SPI master controller using SPI-MEM interface. Signed-off-by: Tomer Maimon --- .../bindings/spi/nuvoton,npcm-fiu.txt | 47 +++ 1 file changed, 47 insertions(+) create mode 100644 Docum

Re: [PATCH] ASoC: soc-core: remove error due to probe deferral

2019-08-08 Thread Stefan Agner
On 2019-08-08 15:14, Takashi Iwai wrote: > On Thu, 08 Aug 2019 15:02:17 +0200, > Mark Brown wrote: >> >> On Thu, Aug 08, 2019 at 03:00:06PM +0200, Takashi Iwai wrote: >> > Mark Brown wrote: >> >> > > No, they absolutely should tell the user why they are deferring so the >> > > user has some informa

Re: [PATCH] clk: ingenic/jz4740: Fix "pll half" divider not read/written properly

2019-08-08 Thread Paul Cercueil
Le jeu. 8 août 2019 à 6:08, Stephen Boyd a écrit : Quoting Paul Cercueil (2019-08-07 16:28:10) Le mer. 7 août 2019 à 23:33, Stephen Boyd a écrit : > Quoting Paul Cercueil (2019-07-01 04:36:06) >> The code was setting the bit 21 of the CPCCR register to use a >> divider >> of 2 f

[PATCH 1/2] cpufreq: drivers: Enable frequency invariance in qcom-cpufreq-hw

2019-08-08 Thread Douglas RAILLARD
Add calls to arch_set_freq_scale() in qcom-cpufreq-hw driver to enable frequency invariance. Signed-off-by: Douglas RAILLARD --- drivers/cpufreq/qcom-cpufreq-hw.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qc

Re: [PATCH] clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro

2019-08-08 Thread Paul Cercueil
Le jeu. 8 août 2019 à 6:23, Stephen Boyd a écrit : Quoting Paul Cercueil (2019-07-16 10:08:00) By using CLK_OF_DECLARE_DRIVER instead of the CLK_OF_DECLARE macro, we allow the driver to probe also as a platform driver. While this driver does not have code to probe as a platform driver,

Re: [PATCH] perf db-export: Fix thread__exec_comm()

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 08, 2019 at 09:48:23AM +0300, Adrian Hunter escreveu: > Threads synthesized from /proc have comms with a start time of zero, and > not marked as "exec". Currently, there can be 2 such comms. The first is > created by processing a synthesized fork event and is set to the parent's > comm

Re: [PATCH] dmaengine: pl330: use the same attributes when freeing pl330->mcode_cpu

2019-08-08 Thread Vinod Koul
On 26-07-19, 18:59, Fuqian Huang wrote: > In function dmac_alloc_resources(), pl330->mcode_cpu is allocated using > dma_alloc_attrs() but freed with dma_free_coherent(). > Use the correct dma_free_attrs() function to free pl330->mcode_cpu. Applied, thanks -- ~Vinod

Re: [PATCH] dma: mv_xor: Fix a possible null-pointer dereference in mv_xor_prep_dma_xor()

2019-08-08 Thread Vinod Koul
On 27-07-19, 17:30, Jia-Ju Bai wrote: > In mv_xor_prep_dma_xor(), there is an if statement on line 577 to check > whether sw_desc is NULL: > if (sw_desc) > > When sw_desc is NULL, it is used on line 594: > dev_dbg(..., sw_desc, &sw_desc->async_tx); > > Thus, a possible null-pointer derefe

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-08 Thread Andy Shevchenko
On Thu, Aug 08, 2019 at 03:12:47PM +0200, Enrico Weigelt, metux IT consult wrote: > On 06.08.19 19:12, Javier Martinez Canillas wrote: > > > Right, we could add a macro for that. Although it should probably be called > > I2C_OF_MODULE_DEVICE_TABLE() or something like that since is specific to OF.

Re: [PATCH] dma: stm32-mdma: Fix a possible null-pointer dereference in stm32_mdma_irq_handler()

2019-08-08 Thread Vinod Koul
On 29-07-19, 10:08, Jia-Ju Bai wrote: > In stm32_mdma_irq_handler(), chan is checked on line 1368. > When chan is NULL, it is still used on line 1369: > dev_err(chan2dev(chan), "MDMA channel not initialized\n"); > > Thus, a possible null-pointer dereference may occur. > > To fix this bug, "de

Re: [PATCH v2 2/2] spi: npcm-fiu: add NPCM FIU controller driver

2019-08-08 Thread Mark Brown
On Thu, Aug 08, 2019 at 04:14:48PM +0300, Tomer Maimon wrote: > + ctrl->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD > + | SPI_TX_DUAL | SPI_TX_QUAD; > + ctrl->setup = npcm_fiu_setup; I'm not seeing where we implement dual or quad modes in the driver? There's some > + dev_info(

Re: [PATCH 1/2] perf: Fix failure to set cpumask when only one cpu

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 02, 2019 at 04:29:51PM +0800, zhe...@windriver.com escreveu: > From: He Zhe > > The buffer containing string used to set cpumask is overwritten by end of > string later in cpu_map__snprint_mask due to not enough memory space, when > there is only one cpu. And thus causes the following

Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset

2019-08-08 Thread Andrew Lunn
> Let me prepare patch v2 using device tree. I'm not sure if standard > "mac-address" fits this situation because all we need is an offset > (integer) and BMC MAC is calculated by adding the offset to NIC's > MAC address. Anyways, let me work out v2 patch we can discuss more > then. Hi Tao I don'

Re: [PATCH] dmaengine: fsl-edma: implement .device_synchronize callback

2019-08-08 Thread Vinod Koul
On 31-07-19, 10:36, Andrey Smirnov wrote: > Implement .device_synchronize callback in order to be able to use > dmaengine_terminate_sync() and other primitives relying on said > callback. Applied, thanks -- ~Vinod

Re: [PATCH 2/2] perf: Fix writing to illegal memory in handling cpumap mask

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 02, 2019 at 04:29:52PM +0800, zhe...@windriver.com escreveu: > From: He Zhe > > cpu_map__snprint_mask would write to illegal memory pointed by zalloc(0) > when there is only one cpu. > > This patch fixes the calculation and adds sanity check against the input > parameters. Thanks, a

Re: Please revert c4b230ac34ce for today's linux-next

2019-08-08 Thread Masahiro Yamada
Hi Stephen, On Thu, Aug 8, 2019 at 3:33 PM Stephen Rothwell wrote: > > Hi Masahiro, > > On Thu, 8 Aug 2019 15:20:11 +0900 Masahiro Yamada > wrote: > > > > I queued the following commit in linux-kbuild/fixes, > > but it turned out to produce false-positive warnings for single-targets. > > > > co

Re: [PATCH] perf tools: Fix a typo in Makefile

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 02, 2019 at 10:54:28AM +0530, Mukesh Ojha escreveu: > > On 8/1/2019 8:58 AM, Masanari Iida wrote: > > This patch fix a spelling typo in Makefile. > > > > Signed-off-by: Masanari Iida > > Reviewed-by: Mukesh Ojha Thanks, applied. - Arnaldo > -Mukesh > > > --- > > tools/perf/D

Re: [PATCH] perf tools: Fix include paths in ui

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 31, 2019 at 03:54:41PM -0700, Ian Rogers escreveu: > These paths point to the wrong location but still work because they > get picked up by a -I flag that happens to direct to the correct > file. Fix paths to point to the correct location without -I flags. Thanks, applied. - Arnaldo

Re: [PATCH resend v2] lib: scatterlist: Fix to support no mapped sg

2019-08-08 Thread Jens Axboe
On 7/28/19 6:44 PM, Zhou Wang wrote: > On 2019/7/24 11:54, Zhou Wang wrote: >> In function sg_split, the second sg_calculate_split will return -EINVAL >> when in_mapped_nents is 0. >> >> Indeed there is no need to do second sg_calculate_split and sg_split_mapped >> when in_mapped_nents is 0, as in_

Re: [PATCH v2 2/2] nvme-pci: Allow PCI bus-level PM to be used if ASPM is disabled

2019-08-08 Thread Bjorn Helgaas
On Thu, Aug 08, 2019 at 12:10:06PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > One of the modifications made by commit d916b1be94b6 ("nvme-pci: use > host managed power state for suspend") was adding a pci_save_state() > call to nvme_suspend() in order to prevent the PCI bus-lev

Re: [PATCH v4 4/6] mm: Introduce Reported pages

2019-08-08 Thread Nitesh Narayan Lal
On 8/7/19 6:42 PM, Alexander Duyck wrote: > From: Alexander Duyck > > In order to pave the way for free page reporting in virtualized > environments we will need a way to get pages out of the free lists and > identify those pages after they have been returned. To accomplish this, > this patch ad

Re: [PATCH 1/2] perf/record: Fix module size on s390

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 24, 2019 at 02:27:02PM +0200, Thomas Richter escreveu: > On s390 the modules loaded in memory have the text segment > located after the GOT and Relocation table. This can be seen > with this output: > [root@m35lp76 perf]# fgrep qeth /proc/modules > qeth 151552 1 qeth_l2, Live 0x

Re: [PATCH] soundwire: fix regmap dependencies and align with other serial links

2019-08-08 Thread Srinivas Kandagatla
On 19/07/2019 00:02, Pierre-Louis Bossart wrote: The existing code has a mixed select/depend usage which makes no sense. config SOUNDWIRE_BUS tristate select REGMAP_SOUNDWIRE config REGMAP_SOUNDWIRE tristate depends on SOUNDWIRE_BUS Let's remove one layer o

Re: [PATCH 2/2] perf/top: Fix s390 gap between kernel end and module start

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 24, 2019 at 02:27:03PM +0200, Thomas Richter escreveu: > During execution of command 'perf top' the error message: > >Not enough memory for annotating '__irf_end' symbol!) > > is emitted from this call sequence: > __cmd_top > perf_top__mmap_read > perf_top__mmap_read_i

Re: [PATCH v3 1/3] kasan: support backing vmalloc space with real shadow memory

2019-08-08 Thread Mark Rutland
Hi Daniel, This is looking really good! I spotted a few more things we need to deal with, so I've suggested some (not even compile-tested) code for that below. Mostly that's just error handling, and using helpers to avoid things getting too verbose. On Wed, Jul 31, 2019 at 05:15:48PM +1000, Dani

[PATCH] arch/x86/kernel/cpu/umwait.c - remove unused variable

2019-08-08 Thread Valdis Klētnieks
We get a warning when building with W=1: CC arch/x86/kernel/cpu/umwait.o arch/x86/kernel/cpu/umwait.c: In function 'umwait_init': arch/x86/kernel/cpu/umwait.c:183:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 183 | int ret; | ^~~ And indeed, we don'

Re: [PATCH v2] perf vendor events: Add Icelake V1.00 event file

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 24, 2019 at 09:08:56AM -0400, Liang, Kan escreveu: > > > On 7/24/2019 2:32 AM, Haiyan Song wrote: > > Hi, > > > > This patch contains lines that longer than 998 characters, > > I've sent it by 'git send-email', but when apply it, > > prompt information "error: corrupt patch at line 2

Re: [PATCH] bus: ti-sysc: Remove if-block in sysc_check_children()

2019-08-08 Thread Roger Quadros
Nishka, On 08/08/2019 10:40, Nishka Dasgupta wrote: > In function sysc_check_children, there is an if-statement checking > whether the value returned by function sysc_check_one_child is non-zero. > However, sysc_check_one_child always returns 0, and hence this check is > not needed. Hence remove t

Re: [PATCH] perf pmu-events: Fix the missing "cpu_clk_unhalted.core"

2019-08-08 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 29, 2019 at 03:27:55PM +0800, Jin Yao escreveu: > The events defined in pmu-events JSON are parsed and added into > perf tool. For fixed counters, we handle the encodings between > JSON and perf by using a static array fixed[]. > > But the fixed[] has missed an important event "cpu_clk

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-08 Thread Enrico Weigelt, metux IT consult
On 08.08.19 15:24, Andy Shevchenko wrote: On Thu, Aug 08, 2019 at 03:12:47PM +0200, Enrico Weigelt, metux IT consult wrote: On 06.08.19 19:12, Javier Martinez Canillas wrote: Right, we could add a macro for that. Although it should probably be called I2C_OF_MODULE_DEVICE_TABLE() or something

Re: [PATCH resend v2] lib: scatterlist: Fix to support no mapped sg

2019-08-08 Thread Zhou Wang
On 2019/8/8 21:40, Jens Axboe wrote: > On 7/28/19 6:44 PM, Zhou Wang wrote: >> On 2019/7/24 11:54, Zhou Wang wrote: >>> In function sg_split, the second sg_calculate_split will return -EINVAL >>> when in_mapped_nents is 0. >>> >>> Indeed there is no need to do second sg_calculate_split and sg_split

Re: [PATCH] perf pmu-events: Fix the missing "cpu_clk_unhalted.core"

2019-08-08 Thread Jin, Yao
On 8/8/2019 9:56 PM, Arnaldo Carvalho de Melo wrote: Em Mon, Jul 29, 2019 at 03:27:55PM +0800, Jin Yao escreveu: The events defined in pmu-events JSON are parsed and added into perf tool. For fixed counters, we handle the encodings between JSON and perf by using a static array fixed[]. But t

RE: [PATCH v1 2/2] vfio/mdev: Removed unused and redundant API for mdev UUID

2019-08-08 Thread Parav Pandit
> -Original Message- > From: Cornelia Huck > Sent: Thursday, August 8, 2019 2:00 PM > To: Parav Pandit > Cc: k...@vger.kernel.org; wankh...@nvidia.com; linux- > ker...@vger.kernel.org; alex.william...@redhat.com; c...@nvidia.com > Subject: Re: [PATCH v1 2/2] vfio/mdev: Removed unused a

[PATCHv3] drivers/amba: add reset control to amba bus probe

2019-08-08 Thread Dinh Nguyen
The primecell controller on some SoCs, i.e. SoCFPGA, is held in reset by default. Until recently, the DMA controller was brought out of reset by the bootloader(i.e. U-Boot). But a recent change in U-Boot, the peripherals that are not used are held in reset and are left to Linux to bring them out of

Re: [PATCH v5 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-08-08 Thread Boris Brezillon
Hi Tomer, On Thu, 8 Aug 2019 13:05:14 +0300 Tomer Maimon wrote: > @@ -688,6 +1003,16 @@ static int spi_nor_erase_sector(struct spi_nor *nor, > > u32 addr) > > if (nor->erase) > > return nor->erase(nor, addr); > > > > + if (nor->spimem) { > > + struct s

[PATCH net-next v2 1/9] net: introduce the MACSEC netdev feature

2019-08-08 Thread Antoine Tenart
This patch introduce a new netdev feature, which will be used by drivers to state they can perform MACsec transformations in hardware. Signed-off-by: Antoine Tenart --- include/linux/netdev_features.h | 3 +++ net/core/ethtool.c | 1 + 2 files changed, 4 insertions(+) diff --git a/

[PATCH net-next v2 7/9] net: phy: export __phy_read_page/__phy_write_page

2019-08-08 Thread Antoine Tenart
This patch exports the __phy_read_page and __phy_write_page helpers, to allow reading and setting the current page when a function already holds the MDIO lock. This is something the Microsemi PHY driver does during its initialization because parts of its registers and engines are shared between po

[PATCH net-next v2 0/9] net: macsec: initial support for hardware offloading

2019-08-08 Thread Antoine Tenart
Hello, This series intends to add support for offloading MACsec transformations in hardware enabled devices. The series is divided in two parts: the first 6 patches add the infrastructure support to offload a MACsec configuration to hardware drivers; and the last 3 patches introduce the MACsec off

Re: [PATCH 4/9] drm: meson: vpp: use proper macros instead of magic constants

2019-08-08 Thread Neil Armstrong
On 25/06/2019 01:15, Kevin Hilman wrote: > Julien Masson writes: > >> This patch add new macros which are used to set the following >> registers: >> - VPP_OSD_SCALE_COEF_IDX >> - VPP_DOLBY_CTRL >> - VPP_OFIFO_SIZE >> - VPP_HOLD_LINES >> - VPP_SC_MISC >> - VPP_VADJ_CTRL >> >> Signed-off-by: Julien

[PATCH net-next v2 9/9] net: phy: mscc: macsec support

2019-08-08 Thread Antoine Tenart
This patch adds MACsec support to the Microsemi Ocelot PHY, to configure flows and transformations so that matched packets can be processed by the MACsec engine, either at egress, or at ingress. This addition allows a user to create an hardware accelerated virtual MACsec interface on a port using a

[PATCH net-next v2 5/9] net: phy: add MACsec ops in phy_device

2019-08-08 Thread Antoine Tenart
This patch adds a reference to MACsec ops in the phy_device, to allow PHYs to support offloading MACsec operations. The phydev lock will be held while calling those helpers. Signed-off-by: Antoine Tenart --- include/linux/phy.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/incl

[PATCH net-next v2 3/9] net: macsec: introduce the macsec_context structure

2019-08-08 Thread Antoine Tenart
This patch introduces the macsec_context structure. It will be used in the kernel to exchange information between the common MACsec implementation (macsec.c) and the MACsec hardware offloading implementations. This structure contains pointers to MACsec specific structures which contain the actual M

[PATCH net-next v2 8/9] net: phy: mscc: macsec initialization

2019-08-08 Thread Antoine Tenart
This patch adds support for initializing the MACsec engine found within the Microsemi Ocelot PHY. The engine is initialized in a passthrough mode and does not modify any incoming or outgoing packet. But thanks to this it now can be configured to perform MACsec transformations on packets, which will

[PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure

2019-08-08 Thread Antoine Tenart
This patch introduces the MACsec hardware offloading infrastructure. The main idea here is to re-use the logic and data structures of the software MACsec implementation. This allows not to duplicate definitions and structure storing the same kind of information. It also allows to use a unified gen

[PATCH net-next v2 2/9] net: macsec: move some definitions in a dedicated header

2019-08-08 Thread Antoine Tenart
This patch moves some structure, type and identifier definitions into a MACsec specific header. This patch does not modify how the MACsec code is running and only move things around. This is a preparation for the future MACsec hardware offloading support, which will re-use those definitions outside

[PATCH net-next v2 4/9] net: introduce MACsec ops and add a reference in net_device

2019-08-08 Thread Antoine Tenart
This patch introduces MACsec ops for drivers to support offloading MACsec operations. A reference to those ops is added in net_device. Signed-off-by: Antoine Tenart --- include/linux/netdevice.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/include/linux/ne

Re: [PATCH 8/9] drm: meson: add macro used to enable HDMI PLL

2019-08-08 Thread Neil Armstrong
On 25/06/2019 01:20, Kevin Hilman wrote: > Julien Masson writes: > >> This patch add new macro HHI_HDMI_PLL_CNTL_EN which is used to enable >> HDMI PLL. >> >> Signed-off-by: Julien Masson >> --- >> drivers/gpu/drm/meson/meson_vclk.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >>

Re: [PATCH] habanalabs: Expose devices after initialization is done

2019-08-08 Thread Oded Gabbay
On Thu, Aug 8, 2019 at 3:25 PM Tomer Tayar wrote: > > The char devices are currently exposed to user before the device and > driver initialization are done. > This patch moves the cdev and device adding to the system to the end of > the initialization sequence, while keeping the creation of the >

Re: [PATCH] habanalabs: Handle HW_IP_INFO if device disabled or in reset

2019-08-08 Thread Oded Gabbay
On Thu, Aug 8, 2019 at 3:30 PM Tomer Tayar wrote: > > The HW IP information is relevant even if the device is disabled or in > reset, so always handle the corresponding INFO IOCTL opcode. > > Signed-off-by: Tomer Tayar > --- > drivers/misc/habanalabs/habanalabs_ioctl.c | 19 +-- >

[PATCH v2 1/2] vfio-mdev/mtty: Simplify interrupt generation

2019-08-08 Thread Parav Pandit
While generating interrupt, mdev_state is already available for which interrupt is generated. Instead of doing indirect way from state->device->uuid-> to searching state linearly in linked list on every interrupt generation, directly use the available state. Hence, simplify the code to use mdev_st

[PATCH v2 2/2] vfio/mdev: Removed unused and redundant API for mdev UUID

2019-08-08 Thread Parav Pandit
There is no single production driver who is interested in mdev device uuid. Currently UUID is mainly used to derive a device name. Additionally mdev device name is already available using core kernel API dev_name(). Hence removed unused exported symbol. Reviewed-by: Cornelia Huck Signed-off-by:

[PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-08 Thread Parav Pandit
Currently mtty sample driver uses mdev state and UUID in convoluated way to generate an interrupt. It uses several translations from mdev_state to mdev_device to mdev uuid. After which it does linear search of long uuid comparision to find out mdev_state in mtty_trigger_interrupt(). mdev_state is a

Re: i2c: imx: support slave mode for imx I2C driver

2019-08-08 Thread Sascha Hauer
Hi, On Thu, Aug 08, 2019 at 11:53:43AM +0800, Biwen Li wrote: > The patch supports slave mode for imx I2C driver > > Signed-off-by: Biwen Li > --- > drivers/i2c/busses/i2c-imx.c | 199 --- > 1 file changed, 185 insertions(+), 14 deletions(-) > > diff --git a/dri

[PATCH] of/platform: fix compilation warning of of_link_property()

2019-08-08 Thread Anders Roxell
GCC warns that a negative integer can be returned but the of_link_property() function should return a boolean. ../drivers/of/platform.c: In function ‘of_link_property’: ../drivers/of/platform.c:650:18: warning: ?: using integer constants in boolean context [-Wint-in-bool-context] return done ?

Re: [PATCH v2 1/2] drivers/ras: Don't build debugfs.o if no debugfs in config

2019-08-08 Thread Borislav Petkov
On Thu, Aug 08, 2019 at 09:01:39AM -0400, Valdis Klētnieks wrote: > It's needed if somebody applies the patch 2/2 - It is needed for what? > and I just got a note from the kbuild test robot saying that > happened Yes, I don't see any issues with 2/2 only applied. I could be missing some aspe

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-08 Thread Byungchul Park
On Thu, Aug 8, 2019 at 9:56 PM Joel Fernandes wrote: > > On Thu, Aug 08, 2019 at 06:52:32PM +0900, Byungchul Park wrote: > > On Wed, Aug 07, 2019 at 10:52:15AM -0700, Paul E. McKenney wrote: > > > > > On Tue, Aug 06, 2019 at 05:20:40PM -0400, Joel Fernandes (Google) > > > > > wrote: > > > [ . . .

Re: [PATCH v3] Staging: most: fix coding style issues

2019-08-08 Thread kbuild test robot
Hi Gabriel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [cannot apply to v5.3-rc3 next-20190808] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day

Re: [PATCH v2] arm64: dts: rockchip: Add dts for Leez RK3399 P710 SBC

2019-08-08 Thread Rob Herring
On Wed, Aug 7, 2019 at 12:14 AM Andy Yan wrote: > > Hi Rob: > > Rob Herring 于2019年8月6日周二 下午10:48写道: >> >> On Mon, Aug 5, 2019 at 6:40 AM Andy Yan wrote: >> > >> > P710 is a RK3399 based SBC, designed by Leez [0]. >> > >> > Specification >> > - Rockchip RK3399 >> > - 4/2GB LPDDR4 >> > - TF sd sca

[PATCH net-next] taprio: remove unused variable 'entry_list_policy'

2019-08-08 Thread YueHaibing
net/sched/sch_taprio.c:680:32: warning: entry_list_policy defined but not used [-Wunused-const-variable=] It is not used since commit a3d43c0d56f1 ("taprio: Add support adding an admin schedule") Reported-by: Hulk Robot Signed-off-by: YueHaibing --- net/sched/sch_taprio.c | 4 1 file cha

[PATCH] iio: adc: max1027: Use device-managed APIs

2019-08-08 Thread Chuhong Yuan
Use device-managed APIs to simplify the code. Signed-off-by: Chuhong Yuan --- drivers/iio/adc/max1027.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c index da84adfdb819..f1b90c544b82 10064

Re: Realtek r8822be wireless card fails to work with new rtw88 kernel module

2019-08-08 Thread 고준
Hello, Thanks for sharing the patch, Brian. I am seeing some progress when building 5.3.0-rc1+ with the wireless-drivers-next patch for the rtw88 kernel module. Before the patch, my realtek r8822be was not recognized at all. After the patch, Realtek ethernet as well as wireless card r8822be are r

[RFC PATCH] mm: slub: print kernel addresses when CONFIG_SLUB_DEBUG=y

2019-08-08 Thread miles.chen
From: Miles Chen This RFC patch is sent to discuss the printing address with %p issue. Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), %p gives obfuscated addresses now. When CONFIG_SLUB_DEBUG=y, it is still useful to get real virtual addresses. Possible approaches are

[PATCH -next] ASoC: max98926: remove two unused variables

2019-08-08 Thread YueHaibing
sound/soc/codecs/max98926.c:28:26: warning: max98926_dai_txt defined but not used [-Wunused-const-variable=] sound/soc/codecs/max98926.c:23:27: warning: max98926_boost_current_txt defined but not used [-Wunused-const-variable=] They are never used, so can be removd. Reported-by: Hulk Robot Sig

Re: [PATCH] mm/mmap.c: refine data locality of find_vma_prev

2019-08-08 Thread Wei Yang
On Thu, Aug 08, 2019 at 10:49:29AM +0200, Vlastimil Babka wrote: >On 8/8/19 5:26 AM, Wei Yang wrote: >> >> @@ -2270,12 +2270,9 @@ find_vma_prev(struct mm_struct *mm, unsigned long >> addr, >> if (vma) { >> *pprev = vma->vm_prev; >> } else { >> - struc

Re: [PATCH v2 1/2] drivers/ras: Don't build debugfs.o if no debugfs in config

2019-08-08 Thread Borislav Petkov
On Thu, Aug 08, 2019 at 04:20:55PM +0200, Borislav Petkov wrote: > On Thu, Aug 08, 2019 at 09:01:39AM -0400, Valdis Klētnieks wrote: > > It's needed if somebody applies the patch 2/2 - > > It is needed for what? Nevermind, saw the 0day build bot mail. -- Regards/Gruss, Boris. Good mailing

[PATCH -next] ASoC: max9850: remove unused variable 'max9850_reg'

2019-08-08 Thread YueHaibing
sound/soc/codecs/max9850.c:31:33: warning: max9850_reg defined but not used [-Wunused-const-variable=] It is not used since commit 068416620c0d ("ASoC: max9850: Convert to direct regmap API usage") Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/soc/codecs/max9850.c | 13 -

hi

2019-08-08 Thread Sarment Alves
Dear beloved, Hello how are you doing i will like to know more about you, my name is Sgt Alves Sarment.Due to the confidentiality of this information,I would want you to send me your private email where I can send you a comprehensive information about myself Or you can still contact me through my

[PATCH v2 2/4] soundwire: core: add device tree support for slave devices

2019-08-08 Thread Srinivas Kandagatla
This patch adds support to parsing device tree based SoundWire slave devices. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/bus.c | 2 ++ drivers/soundwire/bus.h | 1 + drivers/soundwire/slave.c | 47 +++ 3 files changed, 50 insertions(+) dif

[PATCH v2 3/4] dt-bindings: ASoC: Add WSA881x bindings

2019-08-08 Thread Srinivas Kandagatla
This patch adds bindings for WSA8810/WSA8815 Class-D Smart Speaker Amplifier. This Amplifier also has a simple thermal sensor for over temperature and speaker protection. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,wsa881x.txt | 27 +++ 1 file changed

[PATCH v2 4/4] ASoC: codecs: add wsa881x amplifier support

2019-08-08 Thread Srinivas Kandagatla
This patch adds support to WSA8810/WSA8815 Class-D Smart Speaker Amplifier. This Amplifier is primarily interfaced with SoundWire. One WSA is used for mono speaker configuration and second one would give stereo setup. This patch is tested on SDM845 based DragonBoard DB845c. Signed-off-by: Sriniva

[PATCH v2 0/4] ASoC: codecs: Add WSA881x Smart Speaker amplifier support

2019-08-08 Thread Srinivas Kandagatla
This patchset adds support to WSA8810/WSA8815 Class-D Smart Speaker Amplifier which is SoundWire interfaced. This also adds support to some missing bits in SoundWire bus layer like Device Tree support and module_sdw_driver macro. This patchset along with DB845c machine driver and WCD934x codec dri

[PATCH v2 1/4] dt-bindings: soundwire: add slave bindings

2019-08-08 Thread Srinivas Kandagatla
This patch adds bindings for Soundwire Slave devices which includes how SoundWire enumeration address is represented in SoundWire slave device tree nodes. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/soundwire/slave.txt | 46 +++ 1 file changed, 46 insertions(

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-08 Thread Vlastimil Babka
On 8/7/19 10:51 PM, Johannes Weiner wrote: > From 9efda85451062dea4ea287a886e515efefeb1545 Mon Sep 17 00:00:00 2001 > From: Johannes Weiner > Date: Mon, 5 Aug 2019 13:15:16 -0400 > Subject: [PATCH] psi: trigger the OOM killer on severe thrashing Thanks a lot, perhaps finally we are going to eat t

Re: [PATCH v2 2/2] nvme-pci: Allow PCI bus-level PM to be used if ASPM is disabled

2019-08-08 Thread Rafael J. Wysocki
On Thu, Aug 8, 2019 at 3:43 PM Bjorn Helgaas wrote: > > On Thu, Aug 08, 2019 at 12:10:06PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > One of the modifications made by commit d916b1be94b6 ("nvme-pci: use > > host managed power state for suspend") was adding a pci_save_stat

Re: [PATCH v2 1/2] PCI: PCIe: ASPM: Introduce pcie_aspm_enabled_mask()

2019-08-08 Thread Rafael J. Wysocki
On Thu, Aug 8, 2019 at 3:15 PM Bjorn Helgaas wrote: > > On Thu, Aug 08, 2019 at 12:06:52PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Add a function returning the mask of currently enabled ASPM link > > states for a given device. > > > > It will be used by the NVMe driver

[PATCH v2 1/2] clk: samsung: Change signature of exynos5_subcmus_init() function

2019-08-08 Thread Sylwester Nawrocki
In order to make it easier in subsequent patch to create different subcmu lists for exynos5420 and exynos5800 SoCs the code is rewritten so we pass an array of pointers to the subcmus initialization function. Fixes: b06a532bf1fa ("clk: samsung: Add Exynos5 sub-CMU clock driver") Tested-by: Jaafar

[PATCH v2 2/2] clk: samsung: exynos5800: Move MAU subsystem clocks to MAU sub-CMU

2019-08-08 Thread Sylwester Nawrocki
This patch fixes broken sound on Exynos5422/5800 platforms after system/suspend resume cycle in cases where the audio root clock is derived from MAU_EPLL_CLK. In order to preserve state of the USER_MUX_MAU_EPLL_CLK clock mux during system suspend/resume cycle for Exynos5800 we group the MAU block

RE: [PATCH] tipc: set addr_trail_end when using explicit node addresses

2019-08-08 Thread Jon Maloy
You should rather set this one unconditionally in tipc_set_node_addr(). The problems is not about the state machine, but that jiffies is close to the wrap-around time, so that it is perceived as being before the time "0". BR ///jon > -Original Message- > From: netdev-ow...@vger.kernel.o

Re: [linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-08 Thread Clément Péron
Hi, On Thu, 8 Aug 2019 at 10:42, Corentin Labbe wrote: > > This patch adds the evaluation variant of the model A of the PineH64. > The model A has the same size of the pine64 and has a PCIE slot. > > The only devicetree difference with current pineH64, is the PHY > regulator. You also need to ad

Re: Device to write to all (serial) consoles

2019-08-08 Thread Enrico Weigelt, metux IT consult
On 02.08.19 15:23, Paul Menzel wrote: Does a device exist, or can a device be configured so you can write to all (serial) consoles from user space? Why not just writing a little program that listens on a pipe or a pty and writes out everything to all the tty's you want ? --mtx -- Enrico Wei

<    3   4   5   6   7   8   9   10   11   >