RE: [PATCH v2 3/3] scsi: ufs: Introduce event_notify variant function

2020-12-02 Thread Stanley Chu
Hi Avri, On Thu, 2020-12-03 at 07:32 +, Avri Altman wrote: > > > > Introduce event_notify variant function to allow > > vendor to get notification of important events and connect > > to vendor-specific debugging facilities. > You need to add an implementation of this vop, > otherwise it's

Re: [PATCH v2 1/2] x86: make VMware support optional

2020-12-02 Thread Borislav Petkov
On Wed, Dec 02, 2020 at 10:19:48PM +0100, Enrico Weigelt, metux IT consult wrote: > Make it possible to opt-out from VMware support, for minimized kernels > that never will be run under Vmware (eg. high-density virtualization > or embedded systems). > > Average distro kernel will leave it on,

Re: [RFC 1/2] perf core: Add PERF_COUNT_SW_CGROUP_SWITCHES event

2020-12-02 Thread Peter Zijlstra
On Thu, Dec 03, 2020 at 11:10:30AM +0900, Namhyung Kim wrote: > On Thu, Dec 3, 2020 at 1:19 AM Peter Zijlstra wrote: > > > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > > index 9a38f579bc76..5eb284819ee5 100644 > > --- a/include/linux/perf_event.h > > +++

Re: [v6,3/3] reset-controller: ti: force the write operation when assert or deassert

2020-12-02 Thread Philipp Zabel
On Wed, 2020-09-30 at 10:21 +0800, Crystal Guo wrote: > Force the write operation in case the read already happens > to return the correct value. > > Signed-off-by: Crystal Guo > --- > drivers/reset/reset-ti-syscon.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

[PATCH] spi: spi-geni-qcom: Fix NULL pointer access in geni_spi_isr

2020-12-02 Thread Roja Rani Yarubandi
Here, there is a chance of race condition occurrence which leads to NULL pointer dereference with struct spi_geni_master member 'cur_xfer' between setup_fifo_xfer() and handle_fifo_timeout() functions. Fix this race condition with guarding the 'cur_xfer' where it gets updated, with

[RESEND PATCH 2/2] clk: axi-clkgen: move the OF table at the bottom of the file

2020-12-02 Thread Alexandru Ardelean
The change is mostly cosmetic. No functional changes. Since the driver now uses of_device_get_match_data() to obtain some driver specific info, there is no need to define the OF table before the probe function. Signed-off-by: Alexandru Ardelean --- drivers/clk/clk-axi-clkgen.c | 18

[RESEND PATCH 1/2] clk: axi-clkgen: wrap limits in a struct and keep copy on the state object

2020-12-02 Thread Alexandru Ardelean
Up until the these limits were global/hard-coded, since they are typically limits of the fabric. However, since this is an FPGA generated clock, this may run on setups where one clock is on a fabric, and another one synthesized on another fabric connected via PCIe (or some other inter-connect,

Re: [drm/fb] 1d46491d4a: WARNING:at_drivers/gpu/drm/drm_fb_helper.c:#drm_fb_helper_damage_work[drm_kms_helper]

2020-12-02 Thread Thomas Zimmermann
Hi there should be a line in the kernel log that says something like "Damage blitter failed" with an error code. Is there any chance of recovering it? Best regards Thomas Am 02.12.20 um 03:29 schrieb kernel test robot: Greeting, FYI, we noticed the following commit (built with gcc-9):

linux-next: build warning after merge of the rdma tree

2020-12-02 Thread Stephen Rothwell
Hi all, After merging the rdma tree, today's linux-next build (htmldocs) produced this warning: drivers/infiniband/core/verbs.c:1206: warning: Function parameter or member 'caller' not described in 'ib_create_named_qp' Introduced by commit 66f57b871efc ("RDMA/restrack: Support all QP

Re: [PATCH v2 5/6] drm/imx: Introduce i.MX8qm/qxp DPU DRM

2020-12-02 Thread kernel test robot
Hi Liu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on shawnguo/for-next] [also build test WARNING on robh/for-next soc/for-next clk/clk-next linus/master v5.10-rc6 next-20201201] [cannot apply to xlnx/master] [If your patch is applied to the wrong git tree,

Re: [v6,1/3] dt-binding: reset-controller: mediatek: add YAML schemas

2020-12-02 Thread Philipp Zabel
Hi, On Wed, 2020-09-30 at 10:21 +0800, Crystal Guo wrote: > Add a YAML documentation for Mediatek, which uses ti reset-controller > driver directly. The TI reset controller provides a common reset > management, and is suitable for Mediatek SoCs. > > Signed-off-by: Crystal Guo > --- >

linux-next: build warning after merge of the block tree

2020-12-02 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (htmldocs) produced this warning: fs/block_dev.c:1838: warning: Function parameter or member 'dev' not described in 'lookup_bdev' Introduced by commit 4e7b5671c6a8 ("block: remove i_bdev") -- Cheers, Stephen Rothwell

linux-next: build warning after merge of the block tree

2020-12-02 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (htmldocs) produced this warning: fs/block_dev.c:1067: warning: Excess function parameter 'whole' description in 'bd_abort_claiming' Introduced by commit 37c3fc9abb25 ("block: simplify the block device claiming interface") --

Re: [PATCH] clk: sunxi-ng: Make sure divider tables have sentinel

2020-12-02 Thread Maxime Ripard
Hi, On Wed, Dec 02, 2020 at 09:38:17PM +0100, Jernej Skrabec wrote: > Two clock divider tables are missing sentinel at the end. Effect of that > is that clock framework reads past the last entry. Fix that with adding > sentinel at the end. > > Issue was discovered with KASan. > > Fixes:

RE: [PATCH v2 3/3] scsi: ufs: Introduce event_notify variant function

2020-12-02 Thread Avri Altman
> > Introduce event_notify variant function to allow > vendor to get notification of important events and connect > to vendor-specific debugging facilities. You need to add an implementation of this vop, otherwise it's just dead code. Thanks, Avri

[PATCH] gpio: mpc8xxx: resolve coverity warnings

2020-12-02 Thread Biwen Li
From: Biwen Li Resolve coverity warnings as follows, cond_at_most: Checking gpio >= 28U implies that gpio may be up to 27 on the false branch. overrun-call: Overrunning callees array of size 3 by passing argument gpio (which evaluates to 27) in call to

Re: [PATCH v2 0/2] Let illegal access to user-space memory die

2020-12-02 Thread Pekka Enberg
Hi Eric, On Thu, Dec 3, 2020 at 8:51 AM Eric Lin wrote: > > Accesses to user-space memory without calling uaccess routine > leads to hanging in page fault handler. Like arm64, we let it > die earlier in page fault handler. > > Changes in v2: > -Add a die_kernel_fault() helper > -Split

Re: [PATCH] (fixed after review) Documentation: fix typos found in admin-guide subdirectory

2020-12-02 Thread Randy Dunlap
On 12/2/20 11:22 PM, Andrew Klychkov wrote: > Fixed twelve typos in cppc_sysfs.rst, binderfs.rst, paride.rst, > zram.rst, bug-hunting.rst, introduction.rst, usage.rst, dm-crypt.rst > > Signed-off-by: Andrew Klychkov > --- > Documentation/admin-guide/acpi/cppc_sysfs.rst| 4 ++-- >

RE: [PATCH 2/3] scsi: ufs: Keep device power on only fWriteBoosterBufferFlushDuringHibernate == 1

2020-12-02 Thread Avri Altman
> > From: Bean Huo > > Keep device power mode as active power mode and VCC supply only if > fWriteBoosterBufferFlushDuringHibernate setting 1 is successful. Why would it fail? Since UFSHCD_CAP_WB_EN is toggled off on ufshcd_wb_probe If the device doesn't support wb, The check

[tip:irq/core] BUILD SUCCESS d14ce74f1fb376ccbbc0b05ded477ada51253729

2020-12-02 Thread kernel test robot
allmodconfig x86_64 randconfig-a004-20201202 x86_64 randconfig-a006-20201202 x86_64 randconfig-a001-20201202 x86_64 randconfig-a002-20201202 x86_64 randconfig-a005-20201202 x86_64 randconfig-a003-20201202 i386

Re: [PATCH] netfilter: conntrack: fix -Wformat

2020-12-02 Thread Lukas Bulwahn
On Thu, Dec 3, 2020 at 1:46 AM Tom Rix wrote: > > > On 12/2/20 2:34 PM, Nick Desaulniers wrote: > > On Tue, Nov 10, 2020 at 2:04 PM Joe Perches wrote: > >> On Tue, 2020-11-10 at 14:00 -0800, Nick Desaulniers wrote: > >> > >>> Yeah, we could go through and remove %h and %hh to solve this, too,

arch/mips/kernel/cmpxchg.c:44:12: warning: converting the result of '<<' to a boolean always evaluates to true

2020-12-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 34816d20f173a90389c8a7e641166d8ea9dce70a commit: afe956c577b2d5a3d9834e4424587c1ebcf90c4c kbuild: Enable -Wtautological-compare date: 8 months ago config: mips-randconfig-r021-20201203 (attached as

[PATCH] iio: adc: ti_am335x_adc: remove omitted iio_kfifo_free()

2020-12-02 Thread Alexandru Ardelean
When the conversion was done to use devm_iio_kfifo_allocate(), a call to iio_kfifo_free() was omitted (to be removed). This change removes it. Fixes: 3c5308058899 ("iio: adc: ti_am335x_adc: alloc kfifo & IRQ via devm_ functions") Signed-off-by: Alexandru Ardelean --- Seems I was doing too many

[PATCH v2 2/3] scsi: ufs: Refine error history functions

2020-12-02 Thread Stanley Chu
Nowadays UFS error history does not only have "history of errors" but also have history of some other events which are not defined as errors. This patch fixes the confused naming of related functions, and change the way for updating and printing history as preparation of next patch. This patch

[PATCH v2 0/3] Refine error history and introduce event_notify vop

2020-12-02 Thread Stanley Chu
Hi, This series refines error history functions and introduce a new event_notify vop to allow vendor to get notification of important events. Change since v1: - Change notify_event() to event_notify() to follow vop naming covention. Stanley Chu (3): scsi: ufs: Add error history for abort

[PATCH v2 1/3] scsi: ufs: Add error history for abort event in UFS Device W-LUN

2020-12-02 Thread Stanley Chu
Add error history for abort event in UFS Device W-LUN. Besides, use specified value as parameter of ufshcd_update_reg_hist() to identify the aborted tag or LUNs. Reviewed-by: Can Guo Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH v2 3/3] scsi: ufs: Introduce event_notify variant function

2020-12-02 Thread Stanley Chu
Introduce event_notify variant function to allow vendor to get notification of important events and connect to vendor-specific debugging facilities. Reviewed-by: Can Guo Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 11 +++ 2 files

[PATCH] MIPS: Enable GCOV

2020-12-02 Thread Xingxing Su
Enable gcov profiling of the entire kernel on mips. Required changes include disabling profiling for: * arch/kernel/boot/compressed: not linked to main kernel. Lightly tested on Loongson 3A3000 an 3A4000, seems to work as expected. without "GCOV_PROFILE := n" in compressed Makefile, build

[PATCH] (fixed after review) Documentation: fix typos found in admin-guide subdirectory

2020-12-02 Thread Andrew Klychkov
Fixed twelve typos in cppc_sysfs.rst, binderfs.rst, paride.rst, zram.rst, bug-hunting.rst, introduction.rst, usage.rst, dm-crypt.rst Signed-off-by: Andrew Klychkov --- Documentation/admin-guide/acpi/cppc_sysfs.rst| 4 ++-- Documentation/admin-guide/binderfs.rst | 2 +-

[PATCH] MAINTAINERS: Add entry for Marvell Prestera Ethernet Switch driver

2020-12-02 Thread Mickey Rachamim
Add maintainers info for new Marvell Prestera Ethernet switch driver. Signed-off-by: Mickey Rachamim --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a7bdebf955bb..04a27eb89428 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10540,6

Re: [PATCH v2 3/3] edac: Supporting AST2400 and AST2600 edac driver

2020-12-02 Thread Borislav Petkov
On Thu, Dec 03, 2020 at 01:27:27AM +, Troy Lee wrote: > Hi Broislav and Andrew, > > I removed these exported function and submitted v3 PATCH. I saw that. A couple of comments: First of all, please do not top-post on a public mailing list. Secondly, Joel gave you Reviewed-by: and Acked-by:

[PATCH v2 2/2] platform/x86/drivers/acerhdf: Check the interval value when it is set

2020-12-02 Thread Daniel Lezcano
Currently the code checks the interval value when the temperature is read which is bad for two reasons: - checking and setting the interval in the get_temp callback is inaccurate and awful, that can be done when changing the value. - Changing the thermal zone structure internals is an abuse

Re: [PATCH] venus: core: add support to dump FW region

2020-12-02 Thread Stephen Boyd
Quoting Dikshita Agarwal (2020-11-29 21:36:12) > diff --git a/drivers/media/platform/qcom/venus/core.c > b/drivers/media/platform/qcom/venus/core.c > index 6103aaf..01a0cfe 100644 > --- a/drivers/media/platform/qcom/venus/core.c > +++ b/drivers/media/platform/qcom/venus/core.c > @@ -22,6 +24,48

[PATCH v2 1/2] platform/x86/drivers/acerhdf: Use module_param_cb to set/get polling interval

2020-12-02 Thread Daniel Lezcano
The module parameter can be set by using ops to get and set the values. The change will allow to check the correctness of the interval value everytime it is changed instead of checking in the get_temp function. Signed-off-by: Daniel Lezcano --- drivers/platform/x86/acerhdf.c | 10 -- 1

[PATCH 2/2] regulator: qcom-rpmh: Add support for PM8350/PM8350c

2020-12-02 Thread Vinod Koul
Add support from RPMH regulators found in PM8350 and PM8350c PMICs Signed-off-by: Vinod Koul --- drivers/regulator/qcom-rpmh-regulator.c | 62 + 1 file changed, 62 insertions(+) diff --git a/drivers/regulator/qcom-rpmh-regulator.c

[PATCH 1/2] regulator: dt-bindings: Add PM8350x compatibles

2020-12-02 Thread Vinod Koul
Add PM8350 and PM8350C compatibles for these PMICs found in some Qualcomm platforms. Signed-off-by: Vinod Koul --- .../devicetree/bindings/regulator/qcom,rpmh-regulator.txt | 4 1 file changed, 4 insertions(+) diff --git

Re: [MOCKUP] x86/mm: Lightweight lazy mm refcounting

2020-12-02 Thread kernel test robot
Hi Andy, I love your patch! Yet something to improve: [auto build test ERROR on tip/x86/core] [also build test ERROR on tip/x86/mm soc/for-next linus/master v5.10-rc6 next-20201201] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

[PATCH 2/2] pinctrl: qcom: Add SM8350 pinctrl driver

2020-12-02 Thread Vinod Koul
From: Raghavendra Rao Ananta This adds pincontrol driver for tlmm block found in SM8350 SoC Signed-off-by: Raghavendra Rao Ananta Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul --- drivers/pinctrl/qcom/Kconfig |9 +

RE: [PATCH v6 4/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-12-02 Thread Zulkifli, Muhammad Husaini
Hi Linus, Thanks for your input. I replied inline. >-Original Message- >From: Linus Walleij >Sent: Thursday, December 3, 2020 2:55 AM >To: Zulkifli, Muhammad Husaini >Cc: Ulf Hansson ; Hunter, Adrian >; Michal Simek ; linux- >mmc ; Linux ARM ker...@lists.infradead.org>;

[PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM8350 pinctrl bindings

2020-12-02 Thread Vinod Koul
Add device tree binding Documentation details for Qualcomm SM8350 pinctrl driver. Signed-off-by: Vinod Koul --- .../pinctrl/qcom,sdm8350-pinctrl.yaml | 151 ++ 1 file changed, 151 insertions(+) create mode 100644

Re: [f2fs-dev] [PATCH v3] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-12-02 Thread Chao Yu
On 2020/12/3 14:56, Daeho Jeong wrote: From: Daeho Jeong Added two ioctl to decompress/compress explicitly the compression enabled file in "compress_mode=user" mount option. Using these two ioctls, the users can make a control of compression and decompression of their files. Signed-off-by:

[PATCH v3 2/3] hwmon: ltc2992: Add support for GPIOs.

2020-12-02 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 has 4 open-drain GPIOS. This patch exports to user space the 4 GPIOs using the GPIO driver Linux API. Signed-off-by: Alexandru Tachici --- drivers/hwmon/Kconfig | 1 + drivers/hwmon/ltc2992.c | 160 +++- 2 files changed,

[PATCH v3 3/3] dt-binding: hwmon: Add documentation for ltc2992

2020-12-02 Thread alexandru.tachici
From: Alexandru Tachici Add documentation for ltc2992. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,ltc2992.yaml | 80 +++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,ltc2992.yaml diff --git

[PATCH v3 1/3] hwmon: ltc2992: Add support

2020-12-02 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 is a rail-to-rail system monitor that measures current, voltage, and power of two supplies. Two ADCs simultaneously measure each supply’s current. A third ADC monitors the input voltages and four auxiliary external voltages. Signed-off-by: Alexandru Tachici ---

[PATCH v3 0/3] hwmon: ltc2992: Add support

2020-12-02 Thread alexandru.tachici
From: Alexandru Tachici LTC2992 is a rail-to-rail system monitor that measures current, voltage, and power of two supplies. Two ADCs simultaneously measure each supply’s current. A third ADC monitors the input voltages and four auxiliary external voltages (GPIOs). 1. Use hwmon to create sysfs

Herzlichen Glückwunsch zum Gewinn !!!

2020-12-02 Thread Charles Jackson Jr
-- Ihr E-Mail-Konto wurde für eine Spende von $ 3.500.000,00 USD für wohltätige Zwecke ausgewählt. Antworten Sie auf die folgende E-Mail, um weitere Informationen zu erhalten E-Mail: michaelfis...@gmail.com

Re: [f2fs-dev] [PATCH v2 1/2] f2fs: add compress_mode mount option

2020-12-02 Thread Chao Yu
On 2020/12/1 12:08, Daeho Jeong wrote: From: Daeho Jeong We will add a new "compress_mode" mount option to control file compression mode. This supports "fs" and "user". In "fs" mode (default), f2fs does automatic compression on the compression enabled files. In "user" mode, f2fs disables the

[PATCH 4/5] clk: qcom: clk-alpha-pll: Add support for Lucid 5LPE PLL

2020-12-02 Thread Vinod Koul
From: Vivek Aknurwar Lucid 5LPE is a slightly different Lucid PLL with different offsets and porgramming sequence so add support for these Signed-off-by: Vivek Aknurwar Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul ---

[PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-02 Thread Vinod Koul
From: Vivek Aknurwar This adds Global Clock controller (GCC) driver for SM8350 SoC Signed-off-by: Vivek Aknurwar Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul --- drivers/clk/qcom/Kconfig |9 + drivers/clk/qcom/Makefile |1

[PATCH 0/5] Add clock drivers for SM8350

2020-12-02 Thread Vinod Koul
This add rpmhcc and gcc clock controller drivers for the controllers found in SM8350 SoC Vinod Koul (3): dt-bindings: clock: Add RPMHCC bindings for SM8350 clk: qcom: rpmh: add support for SM8350 rpmh clocks dt-bindings: clock: Add SM8350 GCC clock bindings Vivek Aknurwar (2): clk: qcom:

Re: [PATCH v5 0/4] kasan: add workqueue stack for generic KASAN

2020-12-02 Thread Dmitry Vyukov
On Thu, Dec 3, 2020 at 3:21 AM Walter Wu wrote: > > Syzbot reports many UAF issues for workqueue, see [1]. > In some of these access/allocation happened in process_one_work(), > we see the free stack is useless in KASAN report, it doesn't help > programmers to solve UAF for workqueue issue. > >

[PATCH 2/5] clk: qcom: rpmh: add support for SM8350 rpmh clocks

2020-12-02 Thread Vinod Koul
This adds the RPMH clocks present in SM8350 SoC Signed-off-by: Vinod Koul --- drivers/clk/qcom/clk-rpmh.c | 34 +++ include/dt-bindings/clock/qcom,rpmh.h | 8 +++ 2 files changed, 42 insertions(+) diff --git a/drivers/clk/qcom/clk-rpmh.c

[PATCH 3/5] dt-bindings: clock: Add SM8350 GCC clock bindings

2020-12-02 Thread Vinod Koul
Add device tree bindings for global clock controller on SM8350 SoCs. Signed-off-by: Vinod Koul --- .../bindings/clock/qcom,gcc-sm8350.yaml | 68 + include/dt-bindings/clock/qcom,gcc-sm8350.h | 261 ++ 2 files changed, 329 insertions(+) create mode 100644

[PATCH 1/5] dt-bindings: clock: Add RPMHCC bindings for SM8350

2020-12-02 Thread Vinod Koul
Add bindings and update documentation for clock rpmh driver on SM8350. Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml

Re: [PATCH 3/3] soc: qcom: rpmh: Conditionally check lockdep_assert_irqs_disabled()

2020-12-02 Thread Stephen Boyd
Quoting Maulik Shah (2020-11-26 02:18:18) > lockdep_assert_irqs_disabled() was added to check rpmh_flush() > can only be invoked when irqs are disabled, this is true for > APPS RSC as the last CPU going to deepest low power mode is > writing sleep and wake TCSes. > > However for RSCs that support

Re: [PATCH] mm/vmalloc: randomize vmalloc() allocations

2020-12-02 Thread Mike Rapoport
On Wed, Dec 02, 2020 at 08:49:06PM +0200, Topi Miettinen wrote: > On 1.12.2020 23.45, Topi Miettinen wrote: > > Memory mappings inside kernel allocated with vmalloc() are in > > predictable order and packed tightly toward the low addresses. With > > new kernel boot parameter 'randomize_vmalloc=1',

Re: [PATCH] bcache: fix panic due to cache_set is null

2020-12-02 Thread Coly Li
On 12/3/20 2:25 PM, Yi Li wrote: >> On 12/1/20 12:35 PM, Yi Li wrote: >>> sorry, This patch will cause deadlock, i will check and redo it. >> >> Can you try latest upstream kernel firstly ? Before spending more time >> on the fix. >> > > This issue just happened three times (xenserver7.5 dom0

[PATCH] MIPS: SMP-CPS: Add support for irq migration when CPU offline

2020-12-02 Thread Wei Li
Currently we won't migrate irqs when offline CPUs, which has been implemented on most architectures. That will lead to some devices work incorrectly if the bound cores are offline. While that can be easily supported by enabling GENERIC_IRQ_MIGRATION. But i don't pretty known the reason it was not

Re: [f2fs-dev] [PATCH v3] f2fs: avoid race condition for shinker count

2020-12-02 Thread Chao Yu
On 2020/12/3 14:07, Jaegeuk Kim wrote: On 11/11, Jaegeuk Kim wrote: Light reported sometimes shinker gets nat_cnt < dirty_nat_cnt resulting in wrong do_shinker work. Let's avoid to get stale data by using nat_tree_lock. Reported-by: Light Hsieh Signed-off-by: Jaegeuk Kim --- v3: - fix to

[PATCH v3] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-12-02 Thread Daeho Jeong
From: Daeho Jeong Added two ioctl to decompress/compress explicitly the compression enabled file in "compress_mode=user" mount option. Using these two ioctls, the users can make a control of compression and decompression of their files. Signed-off-by: Daeho Jeong --- v3: changed error

[PATCH v1] ASoC: rsnd: core: Check convert rate in rsnd_hw_params

2020-12-02 Thread mdurnev
From: Mikhail Durnev snd_pcm_hw_params_set_rate_near can return incorrect sample rate in some cases, e.g. when the backend output rate is set to some value higher than 48000 Hz and the input rate is 8000 Hz. So passing the value returned by snd_pcm_hw_params_set_rate_near to snd_pcm_hw_params

[PATCH v3] i2c: ismt: Use dma_set_mask_and_coherent

2020-12-02 Thread Youling Tang
'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. Reported-by: kernel test robot Signed-off-by: Youling Tang --- v3: Fix build errors of incompatible pointer types. drivers/i2c/busses/i2c-ismt.c |

Re: [PATCH 1/1] efi/efi_test: read RuntimeServicesSupported

2020-12-02 Thread Heinrich Schuchardt
On 12/3/20 2:20 AM, ivanhu wrote: On 12/2/20 7:38 PM, Heinrich Schuchardt wrote: On 11/30/20 11:38 AM, ivanhu wrote: On 11/30/20 5:17 PM, Heinrich Schuchardt wrote: On 11/30/20 9:16 AM, ivanhu wrote: Hi Heinrich, Thanks for the patch. It looks good to me, but I noticed that the

[PATCH v2 2/2] riscv/mm: Prevent kernel module to access user memory without uaccess routines

2020-12-02 Thread Eric Lin
We found this issue in an legacy out-of-tree kernel module which didn't properly access user space pointer by get/put_user(). Such an illegal access loops in the page fault handler. To resolve this, let it die here. Signed-off-by: Eric Lin Cc: Alan Kao --- arch/riscv/mm/fault.c | 5 + 1

[PATCH v2 1/2] riscv/mm: Introduce a die_kernel_fault() helper function

2020-12-02 Thread Eric Lin
Like arm64, this patch adds a die_kernel_fault() helper to ensure the same semantics for the different kernel faults. Signed-off-by: Eric Lin Cc: Alan Kao --- arch/riscv/mm/fault.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/riscv/mm/fault.c b/arch/riscv/mm/fault.c

[PATCH v2 0/2] Let illegal access to user-space memory die

2020-12-02 Thread Eric Lin
Accesses to user-space memory without calling uaccess routine leads to hanging in page fault handler. Like arm64, we let it die earlier in page fault handler. Changes in v2: -Add a die_kernel_fault() helper -Split one long line code into two Eric Lin (2): riscv/mm: Introduce a

Re: [PATCH] vdpa/mlx5: Use random MAC for the vdpa net instance

2020-12-02 Thread Eli Cohen
On Wed, Dec 02, 2020 at 05:00:22PM -0500, Michael S. Tsirkin wrote: > On Wed, Dec 02, 2020 at 09:48:25PM +0800, Jason Wang wrote: > > > > On 2020/12/2 下午5:23, Michael S. Tsirkin wrote: > > > On Wed, Dec 02, 2020 at 07:57:14AM +0200, Eli Cohen wrote: > > > > On Wed, Dec 02, 2020 at 12:18:36PM

Re: [PATCH v0] ASoC: rsnd: core: Check convert rate in rsnd_hw_params

2020-12-02 Thread Mikhail Durnev
On 03.12.2020 08:57, Kuninori Morimoto wrote: I think you want to add "fallthrough" between case 1/3/4 and case 0 ? Hi Morimoto-san, Yes, I will add it in the updated version of the patch. Thanks. The checkpatch script did not tell me about that. Best regards, Misha

[PATCH 2/2] sched: Split the function show_schedstat()

2020-12-02 Thread Yunfeng Ye
The schedstat include runqueue-specific stats and domain-specific stats, so split it into two functions, show_rqstat() and show_domainstat(). No functional changes. Signed-off-by: Yunfeng Ye --- kernel/sched/stats.c | 101 +++ 1 file changed, 54

[PATCH 1/2] sched: Move '\n' to the prior seq_printf in show_schedstat()

2020-12-02 Thread Yunfeng Ye
A little clean up that moving the '\n' to the prior seq_printf. and remove the separate seq_printf which for line breaks. No functional changes. Signed-off-by: Yunfeng Ye --- kernel/sched/stats.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/sched/stats.c

Re: [PATCH 2/2] kernfs: remove mutex in kernfs_dop_revalidate

2020-12-02 Thread Fox Chen
On Thu, Dec 3, 2020 at 2:46 AM Tejun Heo wrote: > > Hello, > > On Wed, Dec 02, 2020 at 10:58:37PM +0800, Fox Chen wrote: > > There is a big mutex in kernfs_dop_revalidate which slows down the > > concurrent performance of kernfs. > > > > Since kernfs_dop_revalidate only does some checks, the lock

Request!!

2020-12-02 Thread Angela Campbell
I am sorry for interrupting your day, with due respect trust and humility, I write to you this proposal, which I believe would be of great interest to you. I am looking for a reliable and capable partner that will assist my family and I to transfer funds to his personal or company account for

Consultation on related issues of Linux kernel4.19

2020-12-02 Thread Nan Li
Hi,Jerome I recently migrated the 4.19 kernel and found that the RCA reconfiguration for emMC is available within the mmc_set_relative_addr() function within the mmc_ops.c file, but for SD card or SDIO configuration, the mmc_send_relative_addr() function within the sd_ops.c file is not

Re: [PATCH v11 3/5] dt-bindings: leds: Add LED_FUNCTION_MOONLIGHT definitions

2020-12-02 Thread Gene Chen
Pavel Machek 於 2020年12月2日 週三 下午8:23寫道: > > On Wed 2020-12-02 18:46:49, Gene Chen wrote: > > From: Gene Chen > > > > Add LED_FUNCTION_MOONLIGHT definitions > > > > Signed-off-by: Gene Chen > > Acked-by: Jacek Anaszewski > > Acked-by: Rob Herring > > --- > > include/dt-bindings/leds/common.h |

Re: [PATCH] drivers/perf: Enable PID_IN_CONTEXTIDR with SPE

2020-12-02 Thread Leo Yan
Looping in Mathieu at this time. On Thu, Dec 03, 2020 at 02:39:41PM +0800, Leo Yan wrote: > Hi Will, > > [ + Mathieu ] > > On Tue, Dec 01, 2020 at 11:09:36PM +, Will Deacon wrote: > > On Tue, Dec 01, 2020 at 12:10:40PM +0800, Leo Yan wrote: > > > On Mon, Nov 30, 2020 at 04:46:51PM +,

[RESEND PATCH v13 6/6] memory: dfl-emif: add the DFL EMIF private feature driver

2020-12-02 Thread Xu Yilun
This driver is for the EMIF private feature implemented under FPGA Device Feature List (DFL) framework. It is used to expose memory interface status information as well as memory clearing control. The purpose of memory clearing block is to zero out all private memory when FPGA is to be

[RESEND PATCH v13 5/6] fpga: dfl: add support for N3000 Nios private feature

2020-12-02 Thread Xu Yilun
This patch adds support for the Nios handshake private feature on Intel PAC (Programmable Acceleration Card) N3000. The Nios is the embedded processor on the FPGA card. This private feature provides a handshake interface to FPGA Nios firmware, which receives retimer configuration command from

Re: [PATCH] drivers/perf: Enable PID_IN_CONTEXTIDR with SPE

2020-12-02 Thread Leo Yan
Hi Will, [ + Mathieu ] On Tue, Dec 01, 2020 at 11:09:36PM +, Will Deacon wrote: > On Tue, Dec 01, 2020 at 12:10:40PM +0800, Leo Yan wrote: > > On Mon, Nov 30, 2020 at 04:46:51PM +, Will Deacon wrote: > > > On Mon, Nov 30, 2020 at 06:24:54PM +0200, James Clark wrote: > > > > Enable

[RESEND PATCH v13 4/6] fpga: dfl: move dfl bus related APIs to include/linux/dfl.h

2020-12-02 Thread Xu Yilun
Now the dfl drivers could be made as independent modules and put in different folders according to their functionalities. In order for scattered dfl device drivers to include dfl bus APIs, move the dfl bus APIs to a new header file in the public folder. [m...@kernel.org: Fixed up header guards to

[RESEND PATCH v13 3/6] fpga: dfl: add dfl bus support to MODULE_DEVICE_TABLE()

2020-12-02 Thread Xu Yilun
Device Feature List (DFL) is a linked list of feature headers within the device MMIO space. It is used by FPGA to enumerate multiple sub features within it. Each feature can be uniquely identified by DFL type and feature id, which can be read out from feature headers. A dfl bus helps DFL

[RESEND PATCH v13 1/6] fpga: dfl: fix the definitions of type & feature_id for dfl devices

2020-12-02 Thread Xu Yilun
The value of the field dfl_device.type comes from the 12 bits register field DFH_ID according to DFL spec. So this patch changes the definition of the type field to u16. Also it is not necessary to illustrate the valid bits of the type field in comments. Instead we should explicitly define the

[RESEND PATCH v13 2/6] fpga: dfl: move dfl_device_id to mod_devicetable.h

2020-12-02 Thread Xu Yilun
In order to support MODULE_DEVICE_TABLE() for dfl device driver, this patch moves struct dfl_device_id to mod_devicetable.h Some brief description for DFL (Device Feature List) is added to make the DFL known to the whole kernel. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Signed-off-by:

[RESEND PATCH v13 0/6] add DFL bus support to MODULE_DEVICE_TABLE()

2020-12-02 Thread Xu Yilun
Main changes from v1: - A new patch (Patch #3) to fix the description. - Rename the dfl-bus.h to dfl.h - Updated the MAINTAINERS under FPGA DFL DRIVERS. - Improve comments and minor fixes. Main changes from v2: - Change the bus name from "dfl" to "fpga-dfl", also rename related variables,

Re: [PATCH 0/2] kernfs: speed up concurrency performance

2020-12-02 Thread Fox Chen
On Thu, Dec 3, 2020 at 2:28 AM Greg KH wrote: > > On Wed, Dec 02, 2020 at 10:58:35PM +0800, Fox Chen wrote: > > Hello, > > > > kernfs is an important facillity to support pseudo file systems and cgroup. > > Currently, with a global mutex, reading files concurrently from kernfs > > (e.g. /sys) >

Re: [PATCH 2/2] kernfs: remove mutex in kernfs_dop_revalidate

2020-12-02 Thread Fox Chen
On Thu, Dec 3, 2020 at 2:26 AM Greg KH wrote: > > On Wed, Dec 02, 2020 at 10:58:37PM +0800, Fox Chen wrote: > > There is a big mutex in kernfs_dop_revalidate which slows down the > > concurrent performance of kernfs. > > > > Since kernfs_dop_revalidate only does some checks, the lock is > >

RE: [PATCH 1/4] dt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC

2020-12-02 Thread Yash Shah
> -Original Message- > From: Andrew Lunn > Sent: 02 December 2020 20:28 > To: Yash Shah > Cc: linux-...@vger.kernel.org; linux-ser...@vger.kernel.org; linux- > p...@vger.kernel.org; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; linux-ri...@lists.infradead.org; >

Re: [PATCH 1/2] kernfs: replace the mutex in kernfs_iop_permission with a rwlock

2020-12-02 Thread Fox Chen
Hi, Thanks for your comments. > On Wed, Dec 02, 2020 at 10:58:36PM +0800, Fox Chen wrote: > > @@ -121,7 +121,7 @@ int kernfs_iop_setattr(struct dentry *dentry, struct > > iattr *iattr) > > if (!kn) > > return -EINVAL; > > > > - mutex_lock(_mutex); > > +

[PATCH v14 10/10] secretmem: test: add basic selftest for memfd_secret(2)

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret memory fail. Signed-off-by: Mike Rapoport ---

[PATCH v14 09/10] arch, mm: wire up memfd_secret system call were relevant

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann --- arch/arm64/include/uapi/asm/unistd.h | 1 +

[PATCH v14 05/10] mm: introduce memfd_secret system call to create "secret" memory areas

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The user will create a file descriptor using the memfd_secret()

[PATCH v14 08/10] PM: hibernate: disable when there are active secretmem users

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of secret memory mappings. Prevent hibernation whenever there are active secret memory users. Signed-off-by:

[PATCH v14 06/10] secretmem: use PMD-size pages to amortize direct map fragmentation

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport Removing a PAGE_SIZE page from the direct map every time such page is allocated for a secret memory mapping will cause severe fragmentation of the direct map. This fragmentation can be reduced by using PMD-size pages as a pool for small pages for secret memory mappings. Add

[PATCH v14 07/10] secretmem: add memcg accounting

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport Account memory consumed by secretmem to memcg. The accounting is updated when the memory is actually allocated and freed. Signed-off-by: Mike Rapoport Acked-by: Roman Gushchin --- mm/filemap.c | 3 ++- mm/secretmem.c | 36 +++- 2 files

[PATCH v14 01/10] mm: add definition of PMD_PAGE_ORDER

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport The definition of PMD_PAGE_ORDER denoting the number of base pages in the second-level leaf page is already used by DAX and maybe handy in other cases as well. Several architectures already have definition of PMD_ORDER as the size of second level page table, so to avoid

[PATCH v14 03/10] set_memory: allow set_direct_map_*_noflush() for multiple pages

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport The underlying implementations of set_direct_map_invalid_noflush() and set_direct_map_default_noflush() allow updating multiple contiguous pages at once. Add numpages parameter to set_direct_map_*_noflush() to expose this ability with these APIs. Signed-off-by: Mike

[PATCH v14 02/10] mmap: make mlock_future_check() global

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport --- mm/internal.h | 3 +++ mm/mmap.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index c43ccdddb0f6..ae146a260b14

[PATCH v14 00/10] mm: introduce memfd_secret system call to create "secret" memory areas

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport Hi, @Andrew, this is based on v5.10-rc2-mmotm-2020-11-07-21-40, I can rebase on current mmotm if you prefer. This is an implementation of "secret" mappings backed by a file descriptor. The file descriptor backing secret memory mappings is created using a dedicated

[PATCH v14 04/10] set_memory: allow querying whether set_direct_map_*() is actually enabled

2020-12-02 Thread Mike Rapoport
From: Mike Rapoport On arm64, set_direct_map_*() functions may return 0 without actually changing the linear map. This behaviour can be controlled using kernel parameters, so we need a way to determine at runtime whether calls to set_direct_map_invalid_noflush() and

[PATCH] x86/mm: Fix leak of pmd ptlock

2020-12-02 Thread Dan Williams
Commit 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces") introduced a new location where a pmd was released, but neglected to run the pmd page destructor. In fact, this happened previously for a different pmd release path and was fixed by commit: c283610e44ec ("x86, mm: do not leak

Re: [PATCH v2] Input: document inhibiting

2020-12-02 Thread Dmitry Torokhov
On Wed, Jun 17, 2020 at 12:18:22PM +0200, Andrzej Pietrasiewicz wrote: > Document inhibiting input devices and its relation to being > a wakeup source. > > Signed-off-by: Andrzej Pietrasiewicz Applied, thank you. -- Dmitry

  1   2   3   4   5   6   7   8   9   10   >