Re: [PATCH 03/29] modpost: add read_text_file() and get_line() helpers

2020-05-20 Thread Masahiro Yamada
On Tue, May 19, 2020 at 7:21 PM Peter Zijlstra wrote: > > On Sun, May 17, 2020 at 06:48:33PM +0900, Masahiro Yamada wrote: > > > +char *read_text_file(const char *filename) > > +{ > > + struct stat st; > > + int fd; > > + char *buf; > > + > > + fd = open(filename, O_RDONLY); > > +

[PATCH net-next v2 0/4] DP83869 Enhancements

2020-05-20 Thread Dan Murphy
Hello These are improvements to the DP83869 Ethernet PHY driver. OP-mode and port mirroring may be strapped on the device but the software only retrives these settings from the device tree. Reading the straps and initializing the associated stored variables so when setting the PHY up and down

[PATCH net-next v2 4/4] net: dp83869: Add RGMII internal delay configuration

2020-05-20 Thread Dan Murphy
Add RGMII internal delay configuration for Rx and Tx. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83869.c | 84 +++ 1 file changed, 84 insertions(+) diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c index cfb22a21a2e6..f08008050177

[PATCH net-next v2 2/4] net: phy: dp83869: Set opmode from straps

2020-05-20 Thread Dan Murphy
If the op-mode for the device is not set in the device tree then set the strapped op-mode and store it for later configuration. Signed-off-by: Dan Murphy --- v2 - Fixed val declaration from u16 to int drivers/net/phy/dp83869.c | 21 - 1 file changed, 20 insertions(+), 1

[PATCH net-next v2 3/4] dt-bindings: net: Add RGMII internal delay for DP83869

2020-05-20 Thread Dan Murphy
Add the internal delay values into the header and update the binding with the internal delay properties. Signed-off-by: Dan Murphy --- .../devicetree/bindings/net/ti,dp83869.yaml| 16 include/dt-bindings/net/ti-dp83869.h | 18 ++ 2 files changed,

[PATCH v8 1/3] power_supply: Add additional health properties to the header

2020-05-20 Thread Dan Murphy
Add HEALTH_WARM, HEALTH_COOL and HEALTH_HOT to the health enum. HEALTH_WARM, HEALTH_COOL, and HEALTH_HOT properties are taken from the JEITA spec. Signed-off-by: Dan Murphy Tested-by: Guru Das Srinagesh --- Documentation/ABI/testing/sysfs-class-power | 2 +-

Re: [PATCH] arm64/cpufeature: Move BUG_ON() inside get_arm64_ftr_reg()

2020-05-20 Thread Will Deacon
Hi Anshuman, On Wed, May 20, 2020 at 06:52:54AM +0530, Anshuman Khandual wrote: > There is no way to proceed when requested register could not be searched in > arm64_ftr_reg[]. Requesting for a non present register would be an error as > well. Hence lets just BUG_ON() when the search fails in

[PATCH v8 2/3] Add the bindings for the bq25150 and bq25155 500mA charging ICs from Texas Instruments.

2020-05-20 Thread Dan Murphy
From: Ricardo Rivera-Matos The BQ2515X family of devices are highly integrated battery management ICs that integrate the most common functions for wearable devices namely a charger, an output voltage rail, ADC for battery and system monitoring, and a push-button controller. Datasheets:

[PATCH v8 3/3] power: supply: bq25150 introduce the bq25150

2020-05-20 Thread Dan Murphy
From: Ricardo Rivera-Matos Introduce the bq2515x family of chargers. The BQ2515X family of devices are highly integrated battery management ICs that integrate the most common functions for wearable devices namely a charger, an output voltage rail, ADC for battery and system monitoring, and a

[PATCH v8 0/3] Add JEITA properties and introduce the bq2515x charger

2020-05-20 Thread Dan Murphy
Hello, This patchset adds additional health properties to the power_supply header. These additional properties are taken from the JEITA specification. This patchset also introduces the bq2515x family of charging ICs. Dan Murphy (1): power_supply: Add additional health properties to the header

Re: [PATCH v2 18/20] mips: csrc-r4k: Decrease r4k-clocksource rating if CPU_FREQ enabled

2020-05-20 Thread Serge Semin
On Wed, May 20, 2020 at 03:12:02PM +0300, Serge Semin wrote: > On Tue, May 19, 2020 at 05:50:53PM +0200, Thomas Bogendoerfer wrote: > > On Mon, May 18, 2020 at 11:57:52PM +0300, Serge Semin wrote: > > > On Mon, May 18, 2020 at 06:32:06PM +0200, Thomas Bogendoerfer wrote: > > > > On Mon, May 18,

Re: [PATCH v1 02/25] mm/swap: Don't abuse the seqcount latching API

2020-05-20 Thread Konstantin Khlebnikov
On 20/05/2020 00.45, Ahmed S. Darwish wrote: Commit eef1a429f234 ("mm/swap.c: piggyback lru_add_drain_all() calls") implemented an optimization mechanism to exit the to-be-started LRU drain operation (name it A) if another drain operation *started and finished* while (A) was blocked on the LRU

Re: [PATCH v30 02/20] x86/cpufeatures: x86/msr: Intel SGX Launch Control hardware bits

2020-05-20 Thread Borislav Petkov
> Subject: Re: [PATCH v30 02/20] x86/cpufeatures: x86/msr: Intel SGX Launch > Control hardware bits ^ Add Needs a verb. On Fri, May 15, 2020 at 03:43:52AM +0300, Jarkko Sakkinen

Re: [PATCH v3 03/19] mm: memcg: convert vmstat slab counters to bytes

2020-05-20 Thread Vlastimil Babka
On 4/22/20 10:46 PM, Roman Gushchin wrote: > In order to prepare for per-object slab memory accounting, convert > NR_SLAB_RECLAIMABLE and NR_SLAB_UNRECLAIMABLE vmstat items to bytes. > > To make it obvious, rename them to NR_SLAB_RECLAIMABLE_B and > NR_SLAB_UNRECLAIMABLE_B (similar to

Dear Friend

2020-05-20 Thread Mr Saeed Ahmed
Dear Friend, I want you to be honest and truthful with me that you will help me with all your effort and time for just seven to fourteen workings of your time Please kindly reply to my most confidential email if you are really interested in helping me please: saeedasutanahm...@gmail.com

Re: [PATCH 2/8] radix-tree: Use local_lock for protection

2020-05-20 Thread Thomas Gleixner
Peter Zijlstra writes: > On Tue, May 19, 2020 at 10:19:06PM +0200, Sebastian Andrzej Siewior wrote: >> @@ -64,6 +64,7 @@ struct radix_tree_preload { >> struct radix_tree_node *nodes; >> }; >> static DEFINE_PER_CPU(struct radix_tree_preload, radix_tree_preloads) = { >> 0, }; >> +static

Re: [PATCH 01/10] rcu: Directly lock rdp->nocb_lock on nocb code entrypoints

2020-05-20 Thread Joel Fernandes
On Wed, May 13, 2020 at 06:47:05PM +0200, Frederic Weisbecker wrote: > Pure NOCB code entrypoints (nocb_cb kthread, nocb_gp kthread, nocb > timers) can unconditionally lock rdp->nocb_lock as they always execute > in the context of an offloaded rdp. > > This also prepare for toggling CPUs to/from

Re: [PATCH 03/29] modpost: add read_text_file() and get_line() helpers

2020-05-20 Thread Peter Zijlstra
On Wed, May 20, 2020 at 09:17:45PM +0900, Masahiro Yamada wrote: > The specification [1] says this: > > "The value returned may be less than nbyte if the number of bytes > left in the file is less than nbyte, if the read() request was > interrupted by a signal, or if the file is a pipe or FIFO

Re: [PATCH v6 2/5] iommu/arm-smmu: Add support for TTBR1

2020-05-20 Thread Will Deacon
On Tue, May 19, 2020 at 07:53:26PM -0600, Jordan Crouse wrote: > On Mon, May 18, 2020 at 03:59:59PM +0100, Will Deacon wrote: > > On Thu, Apr 09, 2020 at 05:33:47PM -0600, Jordan Crouse wrote: > > > Add support to enable TTBR1 if the domain requests it via the > > > DOMAIN_ATTR_SPLIT_TABLES

Re: [PATCH 09/12] devfreq: add mediatek cci devfreq

2020-05-20 Thread Mark Brown
On Wed, May 20, 2020 at 11:43:04AM +0800, Andrew-sh.Cheng wrote: > + cci_df->proc_reg = devm_regulator_get_optional(cci_dev, "proc"); > + ret = PTR_ERR_OR_ZERO(cci_df->proc_reg); > + if (ret) { > + if (ret != -EPROBE_DEFER) > + dev_err(cci_dev, "failed

Re: [PATCH v8 1/6] MIPS: JZ4780: Introduce SMP support.

2020-05-20 Thread Jiaxun Yang
于 2020年5月20日 GMT+08:00 下午7:33:22, Paul Cercueil 写到: >> >> Yes, the current way is indeed a little problem, it will cause >> num_possible_cpus() == NR_CPUS, I will try to find a better way. > >You can do: > >for_each_of_cpu_node(cpu_node) { > cpu = of_cpu_node_to_id(cpu_node); >

[PATCH v5 0/4] kasan: memorize and print call_rcu stack

2020-05-20 Thread Walter Wu
This patchset improves KASAN reports by making them to have call_rcu() call stack information. It is useful for programmers to solve use-after-free or double-free memory issue. The KASAN report was as follows(cleaned up slightly): BUG: KASAN: use-after-free in kasan_rcu_reclaim+0x58/0x60 Freed

[PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family

2020-05-20 Thread Robin Gong
There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO transfer to be send twice in DMA mode. Please get more information from: https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. The workaround is adding new sdma ram script which works in XCH mode as PIO inside sdma instead of SMC mode,

[PATCH v8 07/13] spi: imx: fix ERR009165

2020-05-20 Thread Robin Gong
Change to XCH mode even in dma mode, please refer to the below errata: https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf Signed-off-by: Robin Gong Acked-by: Mark Brown --- drivers/spi/spi-imx.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/spi/spi-imx.c

[PATCH v8 02/13] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores"

2020-05-20 Thread Robin Gong
There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app and

[PATCH v8 03/13] Revert "dmaengine: imx-sdma: refine to load context only once"

2020-05-20 Thread Robin Gong
This reverts commit ad0d92d7ba6aecbe2705907c38ff8d8be4da1e9c, because in spi-imx case, burst length may be changed dynamically. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index

[PATCH v8 01/13] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core"

2020-05-20 Thread Robin Gong
There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app and

[PATCH v8 04/13] dmaengine: imx-sdma: remove duplicated sdma_load_context

2020-05-20 Thread Robin Gong
Since sdma_transfer_init() will do sdma_load_context before any sdma transfer, no need once more in sdma_config_channel(). Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/dma/imx-sdma.c

[PATCH v8 06/13] dmaengine: imx-sdma: add mcu_2_ecspi script

2020-05-20 Thread Robin Gong
Add mcu_2_ecspi script to fix ecspi errata ERR009165. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 4440ddb..db4132f 100644 --- a/drivers/dma/imx-sdma.c +++

[PATCH v8 05/13] spi: imx: fallback to PIO if dma setup failure

2020-05-20 Thread Robin Gong
Fallback to PIO in case dma setup failed. For example, sdma firmware not updated but ERR009165 workaroud added in kernel. Signed-off-by: Robin Gong --- drivers/spi/spi-imx.c | 31 +++ 1 file changed, 27 insertions(+), 4 deletions(-) diff --git

[PATCH v8 10/13] dmaengine: imx-sdma: remove ERR009165 on i.mx6ul

2020-05-20 Thread Robin Gong
ECSPI issue fixed from i.mx6ul at hardware level, no need ERR009165 anymore on those chips such as i.mx8mq. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git

[PATCH v5 1/4] rcu/kasan: record and print call_rcu() call stack

2020-05-20 Thread Walter Wu
This feature will record the last two call_rcu() call stacks and prints up to 2 call_rcu() call stacks in KASAN report. When call_rcu() is called, we store the call_rcu() call stack into slub alloc meta-data, so that the KASAN report can print rcu stack.

[PATCH v8 09/13] spi: imx: add new i.mx6ul compatible name in binding doc

2020-05-20 Thread Robin Gong
ERR009165 fixed from i.mx6ul, add its compatible name in binding doc. Signed-off-by: Robin Gong Acked-by: Mark Brown Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v8 08/13] spi: imx: remove ERR009165 workaround on i.mx6ul

2020-05-20 Thread Robin Gong
ERR009165 fixed on i.mx6ul/6ull/6sll. All other i.mx6/7 and i.mx8m/8mm still need this errata. Please refer to nxp official errata document from https://www.nxp.com/ . For removing workaround on those chips. Add new i.mx6ul type. Signed-off-by: Robin Gong Acked-by: Mark Brown ---

[PATCH v8 13/13] dmaengine: imx-sdma: add uart rom script

2020-05-20 Thread Robin Gong
For the compatibility of NXP internal legacy kernel before 4.19 which is based on uart ram script and upstreaming kernel based on uart rom script, add both uart ram/rom script in latest sdma firmware. By default uart rom script used. Besides, add two multi-fifo scripts for SAI/PDM on i.mx8m/8mm

Re: [patch V6 07/37] x86/entry: Provide helpers for execute on irqstack

2020-05-20 Thread Thomas Gleixner
Andy Lutomirski writes: > On Mon, May 18, 2020 at 4:53 PM Thomas Gleixner wrote: >> >> Andy Lutomirski writes: >> > Actually, I revoke my ack. Can you make one of two changes: >> > >> > Option A: Add an assertion to run_on_irqstack to verify that irq_count >> > was -1 at the beginning? I

[PATCH v8 12/13] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm

2020-05-20 Thread Robin Gong
Because the number of ecspi1 rx event on i.mx8mm is 0, the condition check ignore such special case without dma channel enabled, which caused ecspi1 rx works failed. Actually, no need to check event_id0/event_id1 and replace checking 'event_id1' with 'DMA_DEV_TO_DEV', so that configure event_id1

Re: [PATCH v7 0/6] gpio: Add GPIO Aggregator

2020-05-20 Thread Geert Uytterhoeven
Hi Andy, On Wed, May 20, 2020 at 2:14 PM Andy Shevchenko wrote: > On Mon, May 11, 2020 at 04:52:51PM +0200, Geert Uytterhoeven wrote: > > GPIO controllers are exported to userspace using /dev/gpiochip* > > character devices. Access control to these devices is provided by > > standard UNIX file

[PATCH v8 11/13] dma: imx-sdma: add i.mx6ul compatible name

2020-05-20 Thread Robin Gong
Add i.mx6ul compatible name in binding doc. Signed-off-by: Robin Gong Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt

[PATCH v5 2/4] kasan: record and print the free track

2020-05-20 Thread Walter Wu
Move free track from kasan_alloc_meta to kasan_free_meta in order to make struct kasan_alloc_meta and kasan_free_meta size are both 16 bytes. It is a good size because it is the minimal redzone size and a good number of alignment. For free track, we make some modifications as shown below: 1)

[PATCH v2 1/1] dt-bindings: spi: Add schema for Cadence QSPI Controller driver

2020-05-20 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add dt-bindings documentation for Cadence-QSPI controller to support spi based flash memories. Signed-off-by: Ramuthevar Vadivel Murugan --- .../devicetree/bindings/mtd/cadence-quadspi.txt| 67 --- .../devicetree/bindings/spi/cdns,qspi-nor.yaml

[PATCH v5 3/4] kasan: add tests for call_rcu stack recording

2020-05-20 Thread Walter Wu
Test call_rcu() call stack recording and verify whether it correctly is printed in KASAN report. Signed-off-by: Walter Wu Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Alexander Potapenko Cc: Matthias Brugger --- lib/test_kasan.c | 30 ++ 1 file changed, 30

Re: [PATCH v3 1/9] perf evlist: introduce control file descriptors

2020-05-20 Thread Jiri Olsa
On Wed, May 13, 2020 at 10:59:00AM +0300, Alexey Budankov wrote: > > Define and initialize control file descriptors. > > Signed-off-by: Alexey Budankov > --- > tools/perf/util/evlist.c | 3 +++ > tools/perf/util/evlist.h | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git

Re: [PATCH v3 2/9] perf evlist: implement control command handling functions

2020-05-20 Thread Jiri Olsa
On Wed, May 13, 2020 at 11:00:02AM +0300, Alexey Budankov wrote: SNIP > + > +static int evlist__ctlfd_recv(struct evlist *evlist, enum evlist_ctl_cmd > *cmd, > + char *cmd_data, size_t data_size) > +{ > + int err; > + char c; > + size_t bytes_read = 0; > +

Re: [PATCH] ASoC: fsl: imx-pcm-dma: Don't request dma channel in probe

2020-05-20 Thread Mark Brown
On Wed, May 20, 2020 at 07:22:19PM +0800, Shengjiu Wang wrote: > I see some driver also request dma channel in open() or hw_params(). > how can they avoid the defer probe issue? > for example: > sound/arm/pxa2xx-pcm-lib.c > sound/soc/sprd/sprd-pcm-dma.c Other drivers having problems means those

Re: [PATCH v3 8/9] perf record: implement control commands handling

2020-05-20 Thread Jiri Olsa
On Wed, May 13, 2020 at 11:04:25AM +0300, Alexey Budankov wrote: > > Implement handling of 'enable' and 'disable' control commands > coming from control file descriptor. > > Signed-off-by: Alexey Budankov > --- > tools/perf/builtin-record.c | 18 +- > 1 file changed, 17

Re: [PATCH v3 6/9] perf stat: introduce --ctl-fd[-ack] options

2020-05-20 Thread Jiri Olsa
On Wed, May 13, 2020 at 11:03:03AM +0300, Alexey Budankov wrote: > > Introduce --ctl-fd[-ack] options to pass open file descriptors numbers > from command line. Extend perf-stat.txt file with --ctl-fd[-ack] options > description. Document possible usage model introduced by --ctl-fd[-ack] >

Re: [PATCH v3 9/9] perf record: introduce --ctl-fd[-ack] options

2020-05-20 Thread Jiri Olsa
On Wed, May 13, 2020 at 11:05:08AM +0300, Alexey Budankov wrote: > > Introduce --ctl-fd[-ack] options to pass open file descriptors numbers > from command line. Extend perf-record.txt file with --ctl-fd[-ack] > options description. Document possible usage model introduced by > --ctl-fd[-ack]

Re: [PATCH v3 3/9] perf stat: factor out event handling loop into a function

2020-05-20 Thread Jiri Olsa
On Wed, May 13, 2020 at 11:00:47AM +0300, Alexey Budankov wrote: > > Factor out event handling loop into handle_events() function. > > Signed-off-by: Alexey Budankov > --- > tools/perf/builtin-stat.c | 85 +++ > 1 file changed, 50 insertions(+), 35

[PATCH v5 4/4] kasan: update documentation for generic kasan

2020-05-20 Thread Walter Wu
Generic KASAN will support to record the last two call_rcu() call stacks and print them in KASAN report. So that need to update documentation. Signed-off-by: Walter Wu Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Alexander Potapenko Cc: Jonathan Corbet --- Documentation/dev-tools/kasan.rst | 3

Re: [PATCH v7 0/6] gpio: Add GPIO Aggregator

2020-05-20 Thread Andy Shevchenko
On Wed, May 20, 2020 at 3:38 PM Geert Uytterhoeven wrote: > On Wed, May 20, 2020 at 2:14 PM Andy Shevchenko > wrote: > > On Mon, May 11, 2020 at 04:52:51PM +0200, Geert Uytterhoeven wrote: ... > > Sorry for late reply, recently noticed this nice idea. > > The comment I have is, please, can we

Re: [PATCH v7 0/6] gpio: Add GPIO Aggregator

2020-05-20 Thread Andy Shevchenko
On Wed, May 20, 2020 at 3:40 PM Andy Shevchenko wrote: > On Wed, May 20, 2020 at 3:38 PM Geert Uytterhoeven > wrote: > > On Wed, May 20, 2020 at 2:14 PM Andy Shevchenko > > wrote: > > > On Mon, May 11, 2020 at 04:52:51PM +0200, Geert Uytterhoeven wrote: > > ... > > > > Sorry for late reply,

採用に、マーケティングを活かす オンラインセミナー

2020-05-20 Thread ジョブドラフトセミナー運営室
ジョブドラフトセミナー運営室より、採用情報セミナーのご案内です。 〜オンライン開催のためご自宅や職場で視聴可能です〜 少子化に伴い年々激化していく若手の採用市場。 中途でも新卒でも、優秀な人材を採用することが難しくなってきています。 そんな状況に課題を感じている企業様に向けて、マーケティングを起点に考える 「若手人材獲得のための新しい採用戦略」セミナーを開催いたします。 採用にマーケティングという新たな知見を取り入れたい方は是非ともご参加ください。   ▼ 詳細・申込 ▼   ■ https://hr-saiyo.work/200527/  ■ オンライン開催

[PATCH] wlcore: fix runtime pm imbalance in wl1271_tx_work

2020-05-20 Thread Dinghao Liu
There are two error handling paths in this functon. When wlcore_tx_work_locked() returns an error code, we should decrease the runtime PM usage counter the same way as the error handling path beginning from pm_runtime_get_sync(). Signed-off-by: Dinghao Liu ---

Re: [PATCH v2 1/1] dt-bindings: spi: Add schema for Cadence QSPI Controller driver

2020-05-20 Thread Mark Brown
On Wed, May 20, 2020 at 08:36:12PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Add dt-bindings documentation for Cadence-QSPI controller to support > spi based flash memories. > > Signed-off-by: Ramuthevar Vadivel Murugan > > --- >

Re: [PATCH v2] tty: hvc: Fix data abort due to race in hvc_open

2020-05-20 Thread rananta
On 2020-05-20 01:59, Jiri Slaby wrote: On 20. 05. 20, 8:47, Raghavendra Rao Ananta wrote: Potentially, hvc_open() can be called in parallel when two tasks calls open() on /dev/hvcX. In such a scenario, if the hp->ops->notifier_add() callback in the function fails, where it sets the

Re: Bad kfree of dma_parms in v5.7-rc5

2020-05-20 Thread Tomi Valkeinen
On 20/05/2020 12:22, Marek Szyprowski wrote: Hi Tomi, On 20.05.2020 11:18, Tomi Valkeinen wrote: On 20/05/2020 12:13, Marek Szyprowski wrote: On 20.05.2020 11:00, Tomi Valkeinen wrote: Commit 9495b7e92f716ab2bd6814fab5e97ab4a39adfdd ("driver core: platform: Initialize dma_parms for platform

Re: [PATCH v2 3/8] exec: Convert security_bprm_set_creds into security_bprm_repopulate_creds

2020-05-20 Thread Eric W. Biederman
James Morris writes: > On Mon, 18 May 2020, Eric W. Biederman wrote: > >> diff --git a/fs/exec.c b/fs/exec.c >> index 9e70da47f8d9..8e3b93d51d31 100644 >> --- a/fs/exec.c >> +++ b/fs/exec.c >> @@ -1366,7 +1366,7 @@ int begin_new_exec(struct linux_binprm * bprm) >> * the final state of

Re: [PATCH v2 08/12] i2c: designware: Introduce platform drivers glue layer interface

2020-05-20 Thread Jarkko Nikula
Hi On 5/10/20 12:50 PM, Serge Semin wrote: Seeing the DW I2C platform driver is getting overcomplicated with a lot of vendor-specific configs let's introduce a glue-layer interface so new platforms which equipped with Synopsys Designware APB I2C IP-core would be able to handle their

[PATCH] wlcore: fix runtime pm imbalance in wlcore_regdomain_config

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/net/wireless/ti/wlcore/main.c | 4 +++- 1 file changed, 3

Re: [PATCH v5.5 10/10] mmap locking API: rename mmap_sem to mmap_lock

2020-05-20 Thread Jason Gunthorpe
On Tue, May 19, 2020 at 07:39:30PM -0700, Michel Lespinasse wrote: > > > I think this assertion should be deleted from this driver. It's there > > > in case get_user_pages_fast() takes the mmap sem. It would make sense to > > > have this assertion in get_user_pages_fast() in case we take the

Re: [PATCH v1 01/25] net: core: device_rename: Use rwsem instead of a seqcount

2020-05-20 Thread Eric Dumazet
On 5/19/20 11:42 PM, Ahmed S. Darwish wrote: > Hello Eric, > > On Tue, May 19, 2020 at 07:01:38PM -0700, Eric Dumazet wrote: >> >> On 5/19/20 2:45 PM, Ahmed S. Darwish wrote: >>> Sequence counters write paths are critical sections that must never be >>> preempted, and blocking, even for

kernel BUG at fs/inode.c:531!

2020-05-20 Thread nirinA raseliarison
hello , i repeatedly hit this bug since gcc-10.1.0: May 20 05:06:25 supernova kernel: [16312.604136] [ cut here ] May 20 05:06:25 supernova kernel: [16312.604139] kernel BUG at fs/inode.c:531! May 20 05:06:25 supernova kernel: [16312.604145] invalid opcode: [#1] SMP

Re: Endless soft-lockups for compiling workload since next-20200519

2020-05-20 Thread Peter Zijlstra
On Tue, May 19, 2020 at 11:58:17PM -0400, Qian Cai wrote: > Just a head up. Repeatedly compiling kernels for a while would trigger > endless soft-lockups since next-20200519 on both x86_64 and powerpc. > .config are in, Could be 90b5363acd47 ("sched: Clean up scheduler_ipi()"), although I've not

[PATCH] cw1200: Remove local sdio VENDOR and DEVICE id definitions

2020-05-20 Thread Pali Rohár
They are already present in linux/mmc/sdio_ids.h. Signed-off-by: Pali Rohár --- drivers/net/wireless/st/cw1200/cw1200_sdio.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/wireless/st/cw1200/cw1200_sdio.c b/drivers/net/wireless/st/cw1200/cw1200_sdio.c

Re: Bad kfree of dma_parms in v5.7-rc5

2020-05-20 Thread Marek Szyprowski
Hi Tomi, On 20.05.2020 14:43, Tomi Valkeinen wrote: > On 20/05/2020 12:22, Marek Szyprowski wrote: >> On 20.05.2020 11:18, Tomi Valkeinen wrote: >>> On 20/05/2020 12:13, Marek Szyprowski wrote: On 20.05.2020 11:00, Tomi Valkeinen wrote: > Commit 9495b7e92f716ab2bd6814fab5e97ab4a39adfdd

Re: [PATCH] drm/amdgpu: off by on in amdgpu_device_attr_create_groups() error handling

2020-05-20 Thread Dan Carpenter
On Wed, May 20, 2020 at 02:05:19PM +0200, Christian König wrote: > Am 20.05.20 um 14:00 schrieb Dan Carpenter: > > This loop in the error handling code should start a "i - 1" and end at > > "i == 0". Currently it starts a "i" and ends at "i == 1". The result > > is that it removes one attribute

[PATCH bpf] security: Fix hook iteration for secid_to_secctx

2020-05-20 Thread KP Singh
From: KP Singh secid_to_secctx is not stackable, and since the BPF LSM registers this hook by default, the call_int_hook logic is not suitable which "bails-on-fail" and casues issues when other LSMs register this hook and eventually breaks Audit. In order to fix this, directly iterate over the

Re: [PATCH v1 2/6] arm/smmu: Add auxiliary domain support for arm-smmuv2

2020-05-20 Thread Will Deacon
On Mon, May 18, 2020 at 08:50:27AM -0700, Rob Clark wrote: > On Mon, May 18, 2020 at 8:18 AM Will Deacon wrote: > > On Wed, Mar 18, 2020 at 04:43:07PM -0700, Rob Clark wrote: > > > We do in fact need live domain switching, that is really the whole > > > point. The GPU CP (command

Re: [PATCH v7 0/6] gpio: Add GPIO Aggregator

2020-05-20 Thread Geert Uytterhoeven
Hi Andy, On Wed, May 20, 2020 at 2:41 PM Andy Shevchenko wrote: > On Wed, May 20, 2020 at 3:40 PM Andy Shevchenko > wrote: > > On Wed, May 20, 2020 at 3:38 PM Geert Uytterhoeven > > wrote: > > > On Wed, May 20, 2020 at 2:14 PM Andy Shevchenko > > > wrote: > > > > On Mon, May 11, 2020 at

[PATCH] wlcore: fix runtime pm imbalance in wl1271_op_suspend

2020-05-20 Thread Dinghao Liu
When wlcore_hw_interrupt_notify() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/net/wireless/ti/wlcore/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH v4] ACPI/IORT: Fix PMCG node single ID mapping handling.

2020-05-20 Thread Lorenzo Pieralisi
On Fri, May 15, 2020 at 12:24:46PM -0700, Tuan Phan wrote: > An IORT PMCG node can have no ID mapping if its overflow interrupt is > wire based therefore the code that parses the PMCG node can not assume > the node will always have a single mapping present at index 0. > > Fix

Re: [PATCH] iomm/arm-smmu: Add stall implementation hook

2020-05-20 Thread Will Deacon
On Wed, May 20, 2020 at 03:02:45PM +0530, Sai Prakash Ranjan wrote: > On 2020-05-19 20:41, Rob Clark wrote: > > On Tue, May 19, 2020 at 2:26 AM Sai Prakash Ranjan > > wrote: > > > On 2020-05-18 21:15, Will Deacon wrote: > > > > So this sounds like an erratum to me, and I'm happy to set HUPCF if

Re: [PATCH] perf ordered_events: Optimise event object reuse

2020-05-20 Thread Matt Fleming
On Mon, 18 May, at 02:04:08PM, Jiri Olsa wrote: > On Fri, May 15, 2020 at 10:01:51PM +0100, Matt Fleming wrote: > > ordered_event objects can be placed on the free object cache list in any > > order which means future allocations may not return objects at > > sequential locations in memory.

Re: [PATCH v1 02/25] mm/swap: Don't abuse the seqcount latching API

2020-05-20 Thread Peter Zijlstra
On Wed, May 20, 2020 at 03:22:15PM +0300, Konstantin Khlebnikov wrote: > On 20/05/2020 00.45, Ahmed S. Darwish wrote: > > Commit eef1a429f234 ("mm/swap.c: piggyback lru_add_drain_all() calls") > > implemented an optimization mechanism to exit the to-be-started LRU > > drain operation (name it A)

Re: [PATCH v2 0/8] exec: Control flow simplifications

2020-05-20 Thread Eric W. Biederman
Kees Cook writes: > On Mon, May 18, 2020 at 07:29:00PM -0500, Eric W. Biederman wrote: >> arch/alpha/kernel/binfmt_loader.c | 11 + >> fs/binfmt_elf.c| 4 +- >> fs/binfmt_elf_fdpic.c | 4 +- >> fs/binfmt_em86.c | 13 + >>

Re: [PATCH v4 1/3] media: rkvdec: Fix .buf_prepare

2020-05-20 Thread Hans Verkuil
On 18/05/2020 19:40, Ezequiel Garcia wrote: > The driver should only set the payload on .buf_prepare > if the buffer is CAPTURE type, or if an OUTPUT buffer > has a zeroed payload. > > Fix it. > > Fixes: cd33c830448ba ("media: rkvdec: Add the rkvdec driver") > Signed-off-by: Ezequiel Garcia >

Re: [PATCH v4 0/4] cleaning up the sysctls table (hung_task watchdog)

2020-05-20 Thread Luis Chamberlain
On Wed, May 20, 2020 at 12:02:26PM +0800, Xiaoming Ni wrote: > On 2020/5/20 11:31, Andrew Morton wrote: > > On Tue, 19 May 2020 11:31:07 +0800 Xiaoming Ni > > wrote: > > > > > Kernel/sysctl.c > > > > eek! > > > > > > > > fs/proc/proc_sysctl.c| 2 +- > > >

[PATCH] wlcore: fix runtime pm imbalance in __wl1271_op_remove_interface

2020-05-20 Thread Dinghao Liu
When wl12xx_cmd_role_disable() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/net/wireless/ti/wlcore/main.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH v2] drm/amdgpu: off by on in amdgpu_device_attr_create_groups() error handling

2020-05-20 Thread Dan Carpenter
This loop in the error handling code should start a "i - 1" and end at "i == 0". Currently it starts a "i" and ends at "i == 1". The result is that it removes one attribute that wasn't created yet, and leaks the zeroeth attribute. Fixes: 4e01847c38f7 ("drm/amdgpu: optimize amdgpu device

Re: [PATCH 3/9] fs/ext4: Disallow encryption if inode is DAX

2020-05-20 Thread Jan Kara
On Tue 19-05-20 19:02:33, Ira Weiny wrote: > On Mon, May 18, 2020 at 09:24:47AM -0700, Eric Biggers wrote: > > On Sun, May 17, 2020 at 10:03:15PM -0700, Ira Weiny wrote: > > First off... OMG... > > I'm seeing some possible user pitfalls which are complicating things IMO. It > probably does not

Re: [PATCH v4 1/3] media: rkvdec: Fix .buf_prepare

2020-05-20 Thread Ezequiel Garcia
On Wed, 2020-05-20 at 15:07 +0200, Hans Verkuil wrote: > On 18/05/2020 19:40, Ezequiel Garcia wrote: > > The driver should only set the payload on .buf_prepare > > if the buffer is CAPTURE type, or if an OUTPUT buffer > > has a zeroed payload. > > > > Fix it. > > > > Fixes: cd33c830448ba

Re: Bad kfree of dma_parms in v5.7-rc5

2020-05-20 Thread Ulf Hansson
+ Greg On Wed, 20 May 2020 at 14:54, Marek Szyprowski wrote: > > Hi Tomi, > > On 20.05.2020 14:43, Tomi Valkeinen wrote: > > On 20/05/2020 12:22, Marek Szyprowski wrote: > >> On 20.05.2020 11:18, Tomi Valkeinen wrote: > >>> On 20/05/2020 12:13, Marek Szyprowski wrote: > On 20.05.2020 11:00,

Re: [PATCH 0/7] Share events between metrics

2020-05-20 Thread Jiri Olsa
On Wed, May 20, 2020 at 12:28:07AM -0700, Ian Rogers wrote: > Metric groups contain metrics. Metrics create groups of events to > ideally be scheduled together. Often metrics refer to the same events, > for example, a cache hit and cache miss rate. Using separate event > groups means these metrics

Re: [PATCH 3/7] perf metricgroup: Delay events string creation

2020-05-20 Thread Jiri Olsa
On Wed, May 20, 2020 at 12:28:10AM -0700, Ian Rogers wrote: > Currently event groups are placed into groups_list at the same time as > the events string containing the events is built. Separate these two > operations and build the groups_list first, then the event string from > the groups_list.

Re: [PATCH 1/7] perf metricgroup: Change evlist_used to a bitmap

2020-05-20 Thread Jiri Olsa
On Wed, May 20, 2020 at 12:28:08AM -0700, Ian Rogers wrote: > Use a bitmap rather than an array of bools. > > Signed-off-by: Ian Rogers Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/util/metricgroup.c | 18 -- > 1 file changed, 8 insertions(+), 10 deletions(-) > >

Re: [PATCH] PCI: dwc: Warn only for non-prefetchable memory resource size >4GB

2020-05-20 Thread Thierry Reding
On Wed, May 20, 2020 at 12:06:40PM +0100, Lorenzo Pieralisi wrote: > On Tue, May 19, 2020 at 10:08:54PM +, Gustavo Pimentel wrote: > > [...] > > > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c > > > > > > > b/drivers/pci/controller/dwc/pcie-designware-host.c > > >

[PATCH] media: videobuf2-dma-contig: fix bad kfree in vb2_dma_contig_clear_max_seg_size

2020-05-20 Thread Tomi Valkeinen
Commit 9495b7e92f716ab2bd6814fab5e97ab4a39adfdd ("driver core: platform: Initialize dma_parms for platform devices") in v5.7-rc5 causes vb2_dma_contig_clear_max_seg_size() to kfree memory that was not allocated by vb2_dma_contig_set_max_seg_size(). The assumption in

[PATCH] smp: generic ipi_raise tracepoint

2020-05-20 Thread Wojciech Kudla
Preliminary discussion: https://lkml.org/lkml/2020/5/13/1327 This patch avoids introducing arch-specific trace points by leveraging existing definition for ipi_raise. Issues to address in potential future work: - make ipi reason available on generic smp code level (possible?) - addition of

[PATCH] hwrng: exynos - fix runtime pm imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/char/hw_random/exynos-trng.c | 3 +-- 1 file changed, 1

Re: arch/sparc/mm/srmmu.c:300:9: error: variable 'pud' set but not used

2020-05-20 Thread Mike Rapoport
On Wed, May 20, 2020 at 08:57:33AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 642b151f45dd54809ea00ecd3976a56c1ec9b53d > commit: 7235db268a2777bc380b99b7db49ff7b19c8fb76 sparc32: use pgtable-nopud > instead of

Re: [PATCH v2 1/4] counter: Internalize sysfs interface code

2020-05-20 Thread kbuild test robot
Hi William, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.7-rc6 next-20200519] [cannot apply to stm32/stm32-next linux/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the

Re: [PATCH v4 2/3] media: uapi: Add VP9 stateless decoder controls

2020-05-20 Thread Hans Verkuil
On 18/05/2020 19:40, Ezequiel Garcia wrote: > From: Boris Brezillon > > Add the VP9 stateless decoder controls plus the documentation that goes > with it. > > Signed-off-by: Boris Brezillon > Signed-off-by: Ezequiel Garcia > --- > .../userspace-api/media/v4l/biblio.rst| 10 + >

Re: [PATCH v13 2/5] usb: renesas-xhci: Add the renesas xhci driver

2020-05-20 Thread Heikki Krogerus
On Tue, May 19, 2020 at 10:19:03PM +0200, Christian Lamparter wrote: > Hello, > > On Tue, May 19, 2020 at 1:45 PM Heikki Krogerus > wrote: > > On Wed, May 06, 2020 at 11:30:22AM +0530, Vinod Koul wrote: > > > From: Christian Lamparter > > > > > > This add a new driver for renesas xhci which is

Re: Bad kfree of dma_parms in v5.7-rc5

2020-05-20 Thread Marek Szyprowski
Hi Ulf, On 20.05.2020 15:12, Ulf Hansson wrote: > + Greg > > On Wed, 20 May 2020 at 14:54, Marek Szyprowski > wrote: >> On 20.05.2020 14:43, Tomi Valkeinen wrote: >>> On 20/05/2020 12:22, Marek Szyprowski wrote: On 20.05.2020 11:18, Tomi Valkeinen wrote: > On 20/05/2020 12:13, Marek

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-20 Thread Peter Zijlstra
On Wed, May 20, 2020 at 02:06:08PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-05-20 12:24:07 [+0200], Peter Zijlstra wrote: > > Would it perhaps make sense to stick the local_lock in struct srcu_data ? > > In that case we would need something for pointer stability before the > lock is

Re: [next] i2c: mediatek: Use div_u64 for 64-bit division to fix 32-bit kernels

2020-05-20 Thread Wolfram Sang
On Wed, May 20, 2020 at 06:31:53PM +0800, qii.w...@mediatek.com wrote: > From: Qii Wang > > Use div_u64 for 64-bit division, and change sample_ns type to > unsigned int. Otherwise, the module will reference __udivdi3 > under 32-bit kernels, which is not allowed in kernel space. > >

Re: [PATCH] media: videobuf2-dma-contig: fix bad kfree in vb2_dma_contig_clear_max_seg_size

2020-05-20 Thread Marek Szyprowski
Hi Tomi, On 20.05.2020 15:15, Tomi Valkeinen wrote: > Commit 9495b7e92f716ab2bd6814fab5e97ab4a39adfdd ("driver core: platform: > Initialize dma_parms for platform devices") in v5.7-rc5 causes > vb2_dma_contig_clear_max_seg_size() to kfree memory that was not > allocated by

[PATCH] hwrng: ks-sa - fix runtime pm imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/char/hw_random/ks-sa-rng.c | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH] perf stat: Fail on extra comma while parsing events

2020-05-20 Thread Arnaldo Carvalho de Melo
Em Wed, May 20, 2020 at 12:51:24AM -0700, Ian Rogers escreveu: > On Wed, May 20, 2020 at 12:41 AM Jiri Olsa wrote: > > > > Ian reported that we allow to parse following: > > > > $ perf stat -e ,cycles true > > > > which is wrong and we should fail, like we do with this fix: > > > > $ perf

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