Re: [PATCH v3 3/4] iommu/vt-d: Add page request draining support

2020-04-29 Thread Lu Baolu
Hi Jacob, On 2020/4/29 11:36, Jacob Pan wrote: On Wed, 22 Apr 2020 16:06:10 +0800 Lu Baolu wrote: When a PASID is stopped or terminated, there can be pending PRQs (requests that haven't received responses) in remapping hardware. This adds the interface to drain page requests and call it when

Re: [PATCH v2 0/5] mtd: spi-nor: Add support for Octal 8D-8D-8D mode

2020-04-29 Thread masonccyang
Hi Boris, > > > > On Tue, 21 Apr 2020 14:39:42 +0800 > > > > Mason Yang wrote: > > > > > > > > > Hello, > > > > > > > > > > This is repost of patchset from Boris Brezillon's > > > > > [RFC,00/18] mtd: spi-nor: Proposal for 8-8-8 mode support [1]. > > > > > > > > I only quickly went through

[PATCH] tools/vm/page_owner_sort: filter out unneeded line

2020-04-29 Thread Changhee Han
To see a sorted result from page owner, it needs a tiresome preprocessing work before running page_owner_sort. This patch simply filters out a line which starts with "PFN" while reading page owner report. Signed-off-by: Changhee Han --- Documentation/vm/page_owner.rst | 3 +--

Re: [PATCH v2 2/2] mfd: ene-kb3930: Add driver for ENE KB3930 Embedded Controller

2020-04-29 Thread Lee Jones
On Sat, 25 Apr 2020, Lubomir Rintel wrote: > This driver provides access to the EC RAM of said embedded controller > attached to the I2C bus as well as optionally supporting its slightly weird > power-off/restart protocol. > > A particular implementation of the EC firmware can be identified by a

[PATCH 1/2] tools/perf: set no_auxtrace for powerpc

2020-04-29 Thread Anju T Sudhakar
x86/perf_regs.h is included by util/intel-pt.c, which will get compiled when buiding perf on powerpc. Since x86/perf_regs.h has `PERF_EXTENDED_REG_MASK` defined, defining `PERF_EXTENDED_REG_MASK` for powerpc to add support for perf extended regs will result in perf build error on powerpc.

[PATCH 0/2] powerpc/perf: Add support for perf extended regs in powerpc

2020-04-29 Thread Anju T Sudhakar
Patch set to add support for perf extended register capability in powerpc. The capability flag PERF_PMU_CAP_EXTENDED_REGS, is used to indicate the PMU which support extended registers. The generic code define the mask of extended registers as 0 for non supported architectures. patch 2/2 defines

[PATCH 2/2] powerpc/perf: Add support for outputting extended regs in perf intr_regs

2020-04-29 Thread Anju T Sudhakar
The capability flag PERF_PMU_CAP_EXTENDED_REGS, is used to indicate the PMU which support extended registers. The generic code define the mask of extended registers as 0 for non supported architectures. Add support for extended registers in POWER9 architecture. For POWER9, the extended registers

Re: [RFC PATCH] powerpc/spufs: fix copy_to_user while atomic

2020-04-29 Thread Christoph Hellwig
On Wed, Apr 29, 2020 at 09:36:30AM +0800, Jeremy Kerr wrote: > Hi Christoph, > > > FYI, these little hunks reduce the difference to my version, maybe > > you can fold them in? > > Sure, no problem. > > How do you want to coordinate these? I can submit mine through mpe, but > that may make it

Re: [PATCH] Fix use after free in get_tree_bdev()

2020-04-29 Thread Lukas Czerner
On Tue, Apr 28, 2020 at 09:27:48PM +0100, David Howells wrote: > Commit 6fcf0c72e4b9, a fix to get_tree_bdev() put a missing blkdev_put() in > the wrong place, before a warnf() that displays the bdev under > consideration rather after it. > > This results in a silent lockup in printk("%pg")

[PATCH 1/1] mm/vmscan.c: change prototype for shrink_page_list

2020-04-29 Thread Maninder Singh
'commit 3c710c1ad11b ("mm, vmscan: extract shrink_page_list reclaim counters into a struct")' changed data type for the function, so changing return type for funciton and its caller. Signed-off-by: Vaneet Narang Signed-off-by: Maninder Singh --- mm/internal.h | 2 +- mm/page_alloc.c | 2

Re: [PATCH 1/1] drm/qxl: add mutex_lock/mutex_unlock to ensure the order in which resources are rele

2020-04-29 Thread Vasily Averin
On 4/21/20 11:43 AM, Gerd Hoffmann wrote: > On Sat, Apr 18, 2020 at 02:39:17PM +0800, Caicai wrote: >> When a qxl resource is released, the list that needs to be released is >> fetched from the linked list ring and cleared. When you empty the list, >> instead of trying to determine whether the

Re: [RFC PATCH] powerpc/spufs: fix copy_to_user while atomic

2020-04-29 Thread Christoph Hellwig
On Wed, Apr 29, 2020 at 08:05:53AM +0200, Christoph Hellwig wrote: > On Wed, Apr 29, 2020 at 09:36:30AM +0800, Jeremy Kerr wrote: > > Hi Christoph, > > > > > FYI, these little hunks reduce the difference to my version, maybe > > > you can fold them in? > > > > Sure, no problem. > > > > How do

Re: [RFC PATCH] powerpc/spufs: fix copy_to_user while atomic

2020-04-29 Thread Christoph Hellwig
And another one that should go on top of this one to address Al's other compaint: --- >From 1b7ced3de0b3a4addec61f61ac5278c3ff141657 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 22 Apr 2020 09:05:30 +0200 Subject: powerpc/spufs: stop using access_ok Just use the proper non

Re: [PATCH v3 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-04-29 Thread kbuild test robot
to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Rishabh-Bhatnagar/Extend-SSR-notifications-framework/20200429-071958 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Re: [PATCH] fixup! signal: factor copy_siginfo_to_external32 from copy_siginfo_to_user32

2020-04-29 Thread Christophe Leroy
Le 28/04/2020 à 21:56, Arnd Bergmann a écrit : I think I found a way to improve the x32 handling: This is a simplification over Christoph's "[PATCH 2/7] signal: factor copy_siginfo_to_external32 from copy_siginfo_to_user32", reducing the x32 specifics in the common code to a single

RE: [PATCH] ARC: guard dsp early init against non ARCv2

2020-04-29 Thread Jose Abreu
From: Eugeniy Paltsev Date: Apr/28/2020, 19:50:24 (UTC+00:00) > As of today we guard early DSP init code with > ARC_AUX_DSP_BUILD (0x7A) BCR check to verify that we have > CPU with DSP configured. However that's not enough as in > ARCv1 CPU the same BCR (0x7A) is used for checking MUL/MAC >

Re: [linux-sunxi] Re: Audio sound card name [was [PATCH 4/7] arm64: dts: allwinner: a64: Add HDMI audio]

2020-04-29 Thread Chen-Yu Tsai
On Wed, Apr 29, 2020 at 1:11 AM Robin Murphy wrote: > > On 2020-04-28 5:49 pm, Clément Péron wrote: > > Hi Mark, Rob, > > > > On Tue, 28 Apr 2020 at 18:04, Maxime Ripard wrote: > >> > >> On Tue, Apr 28, 2020 at 10:54:00AM +0200, Clément Péron wrote: > >>> Hi Maxime, > >>> > >>> On Tue, 28 Apr

[tip:smp/core] BUILD SUCCESS 182e073f68a080a29920f6dca796ccf4806b0329

2020-04-29 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/core branch HEAD: 182e073f68a080a29920f6dca796ccf4806b0329 cpu/hotplug: Fix a typo in comment "broadacasted"->"broadcasted" elapsed time: 2021m configs tested: 191 configs skipped: 0 The following configs have been

Re: [PATCH v3 05/16] mfd: Add support for Kontron sl28cpld management controller

2020-04-29 Thread Lee Jones
On Tue, 28 Apr 2020, Andy Shevchenko wrote: > On Tue, Apr 28, 2020 at 04:43:24PM +0200, Michael Walle wrote: > > Am 2020-04-28 14:50, schrieb Andy Shevchenko: > > > On Thu, Apr 23, 2020 at 07:45:32PM +0200, Michael Walle wrote: > > > > This patch adds core support for the board management

Re: [PATCH] ARM: oabi-compat: fix epoll_ctl build failure

2020-04-29 Thread Christoph Hellwig
On Tue, Apr 28, 2020 at 11:37:30PM +0200, Arnd Bergmann wrote: > Two functions are not declared or defined when CONFIG_EPOLL is > disabled: Can we just compile out the whole syscall handler and use COND_SYSCALL_COMPAT or so?

Re: [PATCH] fixup! signal: factor copy_siginfo_to_external32 from copy_siginfo_to_user32

2020-04-29 Thread Christoph Hellwig
On Wed, Apr 29, 2020 at 08:17:22AM +0200, Christophe Leroy wrote: >> +#ifndef CONFIG_X86_X32_ABI > > Can it be declared __weak instead of enclosing it in an #ifndef ? I really hate the __weak ifdefs. But my plan was to move to a CONFIG_ARCH_COPY_SIGINFO_TO_USER32 and have x86 select it.

Re: [PATCH v8 2/3] mfd: add Gateworks System Controller core driver

2020-04-29 Thread Lee Jones
On Tue, 28 Apr 2020, Tim Harvey wrote: > On Tue, Apr 28, 2020 at 2:44 AM Lee Jones wrote: > > > > > > + > > > +static int gsc_probe(struct i2c_client *client) > > > +{ > > > + struct device *dev = >dev; > > > + struct gsc_dev *gsc; > > > + int ret; > > > + unsigned int reg; > >

Re: [RFC PATCH] powerpc/spufs: fix copy_to_user while atomic

2020-04-29 Thread Jeremy Kerr
Hi Christoph, > And another one that should go on top of this one to address Al's other > compaint: Yeah, I was pondering that one. The access_ok() is kinda redundant, but it does avoid forcing a SPU context save on those errors. However, it's not like we really need to optimise for the case of

[PATCH RESEND] perf tools: Fix function name in comment

2020-04-29 Thread Shaokun Zhang
get_cpuid_str() is used in tools/perf/arch/xxx/util/header.c, fix the name in comment. Cc: Arnaldo Carvalho de Melo CC: Andi Kleen Signed-off-by: Shaokun Zhang --- tools/perf/pmu-events/pmu-events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 5.6 000/167] 5.6.8-rc1 review

2020-04-29 Thread Greg Kroah-Hartman
On Tue, Apr 28, 2020 at 06:44:16PM -0600, shuah wrote: > On 4/28/20 12:22 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.6.8 release. > > There are 167 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with

Re: [PATCH] gpiolib: don't call sleeping functions with a spinlock taken

2020-04-29 Thread Bartosz Golaszewski
wt., 28 kwi 2020 o 17:53 Andy Shevchenko napisał(a): > > On Tue, Apr 14, 2020 at 6:35 PM Bartosz Golaszewski > wrote: > > > > wt., 14 kwi 2020 o 14:00 Linus Walleij > > napisał(a): > > > > > > On Fri, Mar 20, 2020 at 10:31 AM Bartosz Golaszewski > > > wrote: > > > > > > > From: Bartosz

RE: [PATCH v2 6/6] ima: Fix return value of ima_write_policy()

2020-04-29 Thread Krzysztof Struczynski
Hi Mimi, > -Original Message- > From: Mimi Zohar [mailto:zo...@linux.ibm.com] > Sent: Tuesday, April 28, 2020 7:47 PM > To: Roberto Sassu ; Krzysztof Struczynski > > Cc: linux-integr...@vger.kernel.org; linux-security-mod...@vger.kernel.org; > linux-kernel@vger.kernel.org; Silviu

Re: [PATCH] fixup! signal: factor copy_siginfo_to_external32 from copy_siginfo_to_user32

2020-04-29 Thread Christoph Hellwig
On Tue, Apr 28, 2020 at 09:56:26PM +0200, Arnd Bergmann wrote: > I think I found a way to improve the x32 handling: > > This is a simplification over Christoph's "[PATCH 2/7] signal: factor > copy_siginfo_to_external32 from copy_siginfo_to_user32", reducing the > x32 specifics in the common code

linux-next: manual merge of the akpm-current tree with the bpf-next tree

2020-04-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: kernel/sysctl.c between commit: f461d2dcd511 ("sysctl: avoid forward declarations") from the bpf-next tree and commits: 0fe73f87ba37 ("parisc: add sysctl file interface panic_on_stackoverflow") 631b6d13906c

Re: [v3] checkpatch: add dedicated checker for 'Fixes:' tag

2020-04-29 Thread Markus Elfring
> btw: I suggested this patch last year. > > https://lore.kernel.org/lkml/40bfc40958fca6e2cc9b86101153aa0715fac4f7.ca...@perches.com/ Thanks for this link to the previous discussion topic “linux-next: Fixes tag needs some work in the tip tree”. https://lkml.org/lkml/2019/1/17/966 With which

[PATCH 1/2] scripts/sorttable: Build orc fast lookup table via sorttable tool

2020-04-29 Thread Huaixin Chang
Since orc tables are already sorted by sorttable tool, let us move building of fast lookup table into sorttable tool too. This saves us 6380us from boot time under Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz with 64 cores. Signed-off-by: Huaixin Chang Signed-off-by: Shile Zhang ---

Re: [PATCH] drm/i915/gt: Avoid uninitialized use of rpcurupei in frequency_show

2020-04-29 Thread Chris Wilson
Quoting Nathan Chancellor (2020-04-29 04:00:52) > When building with clang + -Wuninitialized: > > drivers/gpu/drm/i915/gt/debugfs_gt_pm.c:407:7: warning: variable > 'rpcurupei' is uninitialized when used here [-Wuninitialized] >rpcurupei, >

[PATCH 2/2] x86/unwind/orc: Remove unwind_init() from x86 boot

2020-04-29 Thread Huaixin Chang
All preparation has been moved to scripts/sorttable tool. No need to init unwind on boot now. Signed-off-by: Huaixin Chang Signed-off-by: Shile Zhang --- arch/x86/include/asm/unwind.h | 2 -- arch/x86/kernel/setup.c | 2 -- arch/x86/kernel/unwind_orc.c | 51

[PATCH 0/2] Build ORC fast lookup table in scripts/sorttable tool

2020-04-29 Thread Huaixin Chang
Move building of fast lookup table from boot to sorttable tool. This saves us 6380us boot time on Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz with cores. Huaixin Chang (2): scripts/sorttable: Build orc fast lookup table via sorttable tool x86/unwind/orc: Remove unwind_init() from x86 boot

Re: linux-next: manual merge of the akpm-current tree with the bpf-next tree

2020-04-29 Thread Christoph Hellwig
On Wed, Apr 29, 2020 at 04:45:07PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the akpm-current tree got a conflict in: > > kernel/sysctl.c > > between commit: > > f461d2dcd511 ("sysctl: avoid forward declarations") > > from the bpf-next tree and commits:

Re: linux-next: manual merge of the akpm-current tree with the bpf-next tree

2020-04-29 Thread Alexei Starovoitov
On Tue, Apr 28, 2020 at 11:47 PM Christoph Hellwig wrote: > > On Wed, Apr 29, 2020 at 04:45:07PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the akpm-current tree got a conflict in: > > > > kernel/sysctl.c > > > > between commit: > > > > f461d2dcd511

RE: [EXT] [PATCH v2 1/5] scsi: ufs: Allow UFS 3.0 as a valid version

2020-04-29 Thread Jose Abreu
From: Bean Huo (beanhuo) Date: Apr/24/2020, 16:57:07 (UTC+00:00) > Hi, Jose > > > @@ -8441,7 +8441,8 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem > > *mmio_base, unsigned int irq) > > if ((hba->ufs_version != UFSHCI_VERSION_10) && > > (hba->ufs_version != UFSHCI_VERSION_11)

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-29 Thread Michael S. Tsirkin
On Wed, Apr 29, 2020 at 01:42:13PM +0800, Lu Baolu wrote: > On 2020/4/29 12:57, Michael S. Tsirkin wrote: > > On Wed, Apr 29, 2020 at 10:22:32AM +0800, Lu Baolu wrote: > > > On 2020/4/29 4:41, Michael S. Tsirkin wrote: > > > > On Tue, Apr 28, 2020 at 11:19:52PM +0530, Srivatsa Vaddagiri wrote: > >

[PATCH 0/4 v2] firmware: stratix10-svc: Fix some error handling code

2020-04-29 Thread Christophe JAILLET
This serie was previously sent as a single patch. After a comment from Dan Carpenter about an error handling path that could be improved, I've looked deeper at the code and found other issues. The previous patch corresponds to patch 3/4 in this serie. This v2 takes Dan's comment into account and

[PATCH 2/4 v2] firmware: stratix10-svc: Unmap some previously memremap'ed memory

2020-04-29 Thread Christophe JAILLET
In 'svc_create_memory_pool()' we memremap some memory. This has to be undone in case of error and if the driver is removed. The easiest way to do it is to use 'devm_memremap()'. Fixes: 7ca5ce896524 ("firmware: add Intel Stratix10 service layer driver") Signed-off-by: Christophe JAILLET ---

Re: [PATCH v2 2/3] powerpc/numa: Prefer node id queried from vphn

2020-04-29 Thread Gautham R Shenoy
Hello Srikar, On Tue, Apr 28, 2020 at 03:08:35PM +0530, Srikar Dronamraju wrote: > Node id queried from the static device tree may not > be correct. For example: it may always show 0 on a shared processor. > Hence prefer the node id queried from vphn and fallback on the device tree > based node

[PATCH 3/4 v2] firmware: stratix10-svc: Fix some error handling paths in 'stratix10_svc_drv_probe()'

2020-04-29 Thread Christophe JAILLET
If an error occurs after calling 'svc_create_memory_pool()', the allocated genpool should be destroyed with 'gen_pool_destroy()', as already done in the remove function. If an error occurs after calling 'kfifo_alloc()', the allocated memory should be freed with 'kfifo_free()', as already done in

[PATCH 1/4 v2] firmware: stratix10-svc: Fix genpool creation error handling

2020-04-29 Thread Christophe JAILLET
'svc_create_memory_pool()' returns an error pointer on error, not NULL. Fix the corresponding test and return value accordingly. Move the genpool allocation after a few devm_kzalloc in order to ease error handling. Fixes: 7ca5ce896524 ("firmware: add Intel Stratix10 service layer driver")

[PATCH 4/4 v2] firmware: stratix10-svc: Slightly simplify code

2020-04-29 Thread Christophe JAILLET
Replace 'devm_kmalloc_array(... | __GFP_ZERO)' with the equivalent and shorter 'devm_kcalloc(...)'. 'ctrl->genpool' can not be NULL, so axe a useless test in the remove function. Signed-off-by: Christophe JAILLET --- drivers/firmware/stratix10-svc.c | 6 ++ 1 file changed, 2 insertions(+),

Re: linux-next: manual merge of the akpm-current tree with the bpf-next tree

2020-04-29 Thread Christoph Hellwig
On Tue, Apr 28, 2020 at 11:49:34PM -0700, Alexei Starovoitov wrote: > On Tue, Apr 28, 2020 at 11:47 PM Christoph Hellwig wrote: > > > > On Wed, Apr 29, 2020 at 04:45:07PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > Today's linux-next merge of the akpm-current tree got a conflict in:

linux-next: manual merge of the akpm-current tree with the arm64 tree

2020-04-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/arm64/include/asm/pgtable.h between commit: 68ecabd0e680 ("arm64/mm: Use phys_to_page() to access pgtable memory") from the arm64 tree and commit: 22998131ab33 ("arm64: add support for folded p4d page

[RESEND PATCH v10 00/11] Support ROHM BD99954 charger IC

2020-04-29 Thread Matti Vaittinen
Support ROHM BD99954 Battery Management IC ROHM BD99954 is a Battery Management IC for 1-4 cell Lithium-Ion secondary battery. BD99954 is intended to be used in space-constraint equipment such as Low profile Notebook PC, Tablets and other applications. Series extracts a "linear ranges" helper

[RESEND PATCH v10 01/11] lib: add linear ranges helpers

2020-04-29 Thread Matti Vaittinen
Many devices have control registers which control some measurable property. Often a register contains control field so that change in this field causes linear change in the controlled property. It is not a rare case that user wants to give 'meaningful' control values and driver needs to convert

[RESEND PATCH v10 02/11] lib/test_linear_ranges: add a test for the 'linear_ranges'

2020-04-29 Thread Matti Vaittinen
Add a KUnit test for the linear_ranges helper. Signed-off-by: Matti Vaittinen Reviewed-by: Brendan Higgins --- No changes since v9 lib/Kconfig.debug| 11 ++ lib/Makefile | 1 + lib/test_linear_ranges.c | 228 +++ 3 files changed,

[RESEND PATCH v10 03/11] power: supply: bd70528: rename linear_range to avoid collision

2020-04-29 Thread Matti Vaittinen
Follow-up patches in this series will add a generic struct linear_range. Rename bd70528 internal struct to avoid collision. Signed-off-by: Matti Vaittinen Reviewed-by: Sebastian Reichel --- No changes since v9 drivers/power/supply/bd70528-charger.c | 10 +- 1 file changed, 5

[RESEND PATCH v10 04/11] regulator: use linear_ranges helper

2020-04-29 Thread Matti Vaittinen
Change the regulator helpers to use common linear_ranges code. Signed-off-by: Matti Vaittinen Acked-by: Charles Keepax Acked-by: Adam Thomson Reviewed-by: Mark Brown --- Changes since v9: - Fix also ranges added to qcom_smd-regulator in v5.7-rc1 drivers/regulator/88pg86x.c |

[RESEND PATCH v10 05/11] power: supply: bd70528: use linear ranges

2020-04-29 Thread Matti Vaittinen
Change the bd70528 to use common linear_range code instead of implementing a copy of it in this driver. Signed-off-by: Matti Vaittinen Reviewed-by: Sebastian Reichel --- Changes since v9: - Add commas to last struct members as suggested by Andy drivers/power/supply/Kconfig | 1 +

[RESEND PATCH v10 06/11] dt-bindings: battery: add new battery parameters

2020-04-29 Thread Matti Vaittinen
Add: - trickle-charge-current-microamp: Some chargers have 3 charging stages. First one when battery is almost empty is often called as trickle-charge. Last state when battery has been "woken up" is usually called as fast-charge. In addition to this some chargers have a 'middle state' which

[PATCH v5] MIPS: Loongson: Add DMA support for LS7A

2020-04-29 Thread Tiezhu Yang
In the current market, the most used bridge chip on the Loongson platform are RS780E and LS7A, the RS780E bridge chip is already supported by the mainline kernel. In order to use the default implementation of __phys_to_dma() and __dma_to_phys() in dma-direct.h, remove CONFIG_ARCH_HAS_PHYS_TO_DMA

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-29 Thread Lu Baolu
On 2020/4/29 14:50, Michael S. Tsirkin wrote: On Wed, Apr 29, 2020 at 01:42:13PM +0800, Lu Baolu wrote: On 2020/4/29 12:57, Michael S. Tsirkin wrote: On Wed, Apr 29, 2020 at 10:22:32AM +0800, Lu Baolu wrote: On 2020/4/29 4:41, Michael S. Tsirkin wrote: On Tue, Apr 28, 2020 at 11:19:52PM

[RESEND PATCH v10 07/11] power: supply: add battery parameters

2020-04-29 Thread Matti Vaittinen
Add parsing of new device-tree battery bindings. - trickle-charge-current-microamp - precharge-upper-limit-microvolt - re-charge-voltage-microvolt - over-voltage-threshold-microvolt Signed-off-by: Matti Vaittinen Reviewed-by: Sebastian Reichel --- No changes since v9

Re: [PATCH] Documentation: LSM: Correct the basic LSM description

2020-04-29 Thread James Morris
On Tue, 28 Apr 2020, Jonathan Corbet wrote: > On Tue, 21 Apr 2020 14:48:34 -0700 > Casey Schaufler wrote: > > > This is a first pass at updating the basic documentation on > > Linux Security Modules (LSM), which is frighteningly out of date. > > Remove untrue statements about the LSM framework.

[RESEND PATCH v10 08/11] dt_bindings: ROHM BD99954 Charger

2020-04-29 Thread Matti Vaittinen
The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion secondary battery. Intended to be used in space-constraint equipment such as Low profile Notebook PC, Tablets and other applications. BD99954 provides a Dual-source Battery Charger, two port BC1.2 detection and a Battery

Re: [PATCH v5 0/5] Allow ld.lld to link the MIPS VDSO

2020-04-29 Thread Sedat Dilek
On Wed, Apr 29, 2020 at 12:14 AM Nathan Chancellor wrote: > Patch 1 adds ld.lld support to Kconfig so that we can avoid certain > ld.bfd checks. > Is it possible to introduce and add LD_IS_BFD Kconfig for ld.bfd in this series? Most people agreed on this name AFAICS. What do people think? -

[RESEND PATCH v10 09/11] power: supply: Support ROHM bd99954 charger

2020-04-29 Thread Matti Vaittinen
The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion secondary battery intended to be used in space-constraint equipment such as Low profile Notebook PC, Tablets and other applications. BD99954 provides a Dual-source Battery Charger, two port BC1.2 detection and a Battery Monitor.

[RESEND PATCH v10 10/11] power: supply: Fix Kconfig help text indentiation

2020-04-29 Thread Matti Vaittinen
Indent the help text as explained in Documentation/process/coding-style.rst Signed-off-by: Matti Vaittinen Reviewed-by: Sebastian Reichel --- No changes since v9 I just learned the help text in Kconfigs should be indented by two spaces. I fixed this for BD99954 as suggested by Randy and

[RESEND PATCH v10 11/11] power: supply: KConfig cleanup default n

2020-04-29 Thread Matti Vaittinen
The "default n" is not needed. Clean the KConfig by removing "default n". Signed-off-by: Matti Vaittinen --- This was pointed to me first by Randy Dunlap during v4 review. I cleaned the BD99954 back then. Also Andy Shevchenko mentioned this to me. So as I was changing the file anyways...

[PATCH v3 -next] drm/mediatek: Fix Kconfig warning

2020-04-29 Thread YueHaibing
WARNING: unmet direct dependencies detected for MTK_MMSYS Depends on [n]: (ARCH_MEDIATEK [=y] || COMPILE_TEST [=n]) && COMMON_CLK_MT8173_MMSYS [=n] Selected by [y]: - DRM_MEDIATEK [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARCH_MEDIATEK [=y] || ARM && COMPILE_TEST [=n]) && COMMON_CLK [=y] &&

Re: [PATCH v4 1/5] kbuild: add CONFIG_LD_IS_LLD

2020-04-29 Thread Sedat Dilek
On Wed, Apr 29, 2020 at 12:14 AM Nathan Chancellor wrote: > > From: Sami Tolvanen > > Similarly to the CC_IS_CLANG config, add LD_IS_LLD to avoid GNU ld > specific logic such as ld-version or ld-ifversion and gain the > ability to select potential features that depend on the linker at >

RE: [PATCH 4.19 000/131] 4.19.119-rc1 review

2020-04-29 Thread Chris Paterson
Hello Greg, > From: stable-ow...@vger.kernel.org On > Behalf Of Greg Kroah-Hartman > Sent: 28 April 2020 19:24 > > This is the start of the stable review cycle for the 4.19.119 release. > There are 131 patches in this series, all will be posted as a response > to this one. If anyone has any

Re: [PATCH 4/4] ASoC: wm8994: Silence warnings during deferred probe

2020-04-29 Thread Lee Jones
On Tue, 28 Apr 2020, Mark Brown wrote: > On Tue, Apr 28, 2020 at 11:36:38AM +0100, Lee Jones wrote: > > On Mon, 27 Apr 2020, Mark Brown wrote: > > > > This completely eliminates the diagnostics which means that if the clock > > > isn't there the user is a bit stuck trying to work out what's

Re: [PATCH 1/2] usb: serial: Add MaxLinear/Exar USB to Serial driver

2020-04-29 Thread Greg KH
On Wed, Apr 29, 2020 at 01:26:50AM +0530, m...@kernel.org wrote: > From: Manivannan Sadhasivam > > Add support for MaxLinear/Exar USB to Serial converters. This driver > only supports XR21V141X series but provision has been made to support > other series in future. > > This driver is inspired

Re: [PATCH 1/4] spi: lantiq: Synchronize interrupt handlers and transfers

2020-04-29 Thread Dilip Kota
On 4/28/2020 6:00 PM, Mark Brown wrote: On Tue, Apr 28, 2020 at 01:39:06PM +0800, Dilip Kota wrote: Do you suggest to use different ISRs for multiple interrupt lines and single ISR for single interrupt line? I see, this results in writing repetitive code lines. It looks like the shared case

[PATCH] staging: iio: ad2s1210: Fix SPI reading

2020-04-29 Thread Alexandru Ardelean
From: Dragos Bogdan If the serial interface is used, the 8-bit address should be latched using the rising edge of the WR/FSYNC signal. This basically means that a CS change is required between the first byte sent, and the second one. This change splits the single-transfer transfer of 2 bytes

Re: [PATCH -next] blk-mq: Use BUG_ON() instead of BUG()

2020-04-29 Thread Christoph Hellwig
On Wed, Apr 29, 2020 at 10:10:24AM +0800, Zou Wei wrote: > Fixes coccicheck warning: > > block/blk-mq.c:546:2-5: WARNING: Use BUG_ON instead of if condition followed > by BUG. > > Fixes: 63151a449eba ("blk-mq: allow drivers to hook into I/O completion") > Reported-by: Hulk Robot >

Re: [PATCH] sound:hdmi:fix without unlocked before return

2020-04-29 Thread Takashi Iwai
On Sun, 26 Apr 2020 15:17:22 +0200, Wu Bo wrote: > > Fix the following coccicheck warning: > sound/pci/hda/patch_hdmi.c:1852:2-8: preceding lock on line 1846 > > After add sanity check to pass klockwork check, > The spdif_mutex should be unlock before return true > in check_non_pcm_per_cvt(). >

[PATCH -next] mailbox: Fix NULL vs IS_ERR() check in zynqmp_ipi_mbox_probe()

2020-04-29 Thread Wei Yongjun
In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 4981b82ba2ff ("mailbox: ZynqMP IPI mailbox controller") Signed-off-by: Wei Yongjun --- drivers/mailbox/zynqmp-ipi-mailbox.c |

Re: [PATCH] net: Select PTP_1588_CLOCK in PTP-specific drivers

2020-04-29 Thread Clay McClure
On Tue, Apr 28, 2020 at 06:07:45PM +0200, Arnd Bergmann wrote: > On Tue, Apr 28, 2020 at 11:21 AM Geert Uytterhoeven > wrote: > > On Tue, Apr 28, 2020 at 11:14 AM Clay McClure wrote: > > > Change these drivers back [2] to `select PTP_1588_CLOCK`. Note that this > > > requires also selecting

Re: [PATCH v5] MIPS: Loongson: Add DMA support for LS7A

2020-04-29 Thread Huacai Chen
Hi, Tiezhu, On Wed, Apr 29, 2020 at 3:00 PM Tiezhu Yang wrote: > > In the current market, the most used bridge chip on the Loongson > platform are RS780E and LS7A, the RS780E bridge chip is already > supported by the mainline kernel. > > In order to use the default implementation of

Re: [PATCH v2 0/5] mtd: spi-nor: Add support for Octal 8D-8D-8D mode

2020-04-29 Thread masonccyang
Hi Pratyush, > > > > On Tue, 21 Apr 2020 14:39:42 +0800 > > > > Mason Yang wrote: > > > > > > > > > Hello, > > > > > > > > > > This is repost of patchset from Boris Brezillon's > > > > > [RFC,00/18] mtd: spi-nor: Proposal for 8-8-8 mode support [1]. > > > > > > > > I only quickly went

Re: [PATCH 2/7] mm: Move pt_mm within struct page

2020-04-29 Thread Geert Uytterhoeven
Hi Matthew, On Tue, Apr 28, 2020 at 9:44 PM Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > Instead of a per-arch word within struct page, use a formerly reserved > word. This word is shared with page->mapping, so it must be cleared > before being freed as it is checked in

ECMP is not flow-based for forwarded traffic >5.4.x

2020-04-29 Thread Lars Ekman G
Hi, >From somewhere between 5.4.35 and 5.5.7 flow-based ECMP for forwarded traffic >has stopped working. The fault is still present in 5.6.4 and t is present both for ipv4 and ipv6. Ecmp is setup with (or corresponding ipv6); ip route add 10.0.0.0/24 \ nexthop via

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-04-29 Thread Yan Zhao
On Tue, Apr 28, 2020 at 10:14:37PM +0800, Dr. David Alan Gilbert wrote: > * Yan Zhao (yan.y.z...@intel.com) wrote: > > On Mon, Apr 27, 2020 at 11:37:43PM +0800, Dr. David Alan Gilbert wrote: > > > * Yan Zhao (yan.y.z...@intel.com) wrote: > > > > On Sat, Apr 25, 2020 at 03:10:49AM +0800, Dr. David

Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state

2020-04-29 Thread Takashi Iwai
On Tue, 28 Apr 2020 16:48:45 +0200, Nicholas Johnson wrote: > > > > > > > > > > > FWIW, I have a fiji board in a desktop system and it worked fine when > > > > > this code was enabled. > > > > > > > > Is the new DC code used for Fiji boards? IIRC, the audio component > > > > binding from amdgpu

Re: [PATCH 1/2] usb: serial: Add MaxLinear/Exar USB to Serial driver

2020-04-29 Thread Manivannan Sadhasivam
Hi Greg, On Wed, Apr 29, 2020 at 09:20:36AM +0200, Greg KH wrote: > On Wed, Apr 29, 2020 at 01:26:50AM +0530, m...@kernel.org wrote: > > From: Manivannan Sadhasivam > > > > Add support for MaxLinear/Exar USB to Serial converters. This driver > > only supports XR21V141X series but provision has

Re: [PATCH v5 0/2] cacheinfo support to read no. of L2 cache ways enabled

2020-04-29 Thread David Abdurachmanov
Ping. I think this one got lost in time. I don't see it in v5.6 or v5.7. david On Fri, Mar 13, 2020 at 8:03 AM Yash Shah wrote: > > Any comments or updates on this series? > > - Yash > > > -Original Message- > > From: Yash Shah > > Sent: 20 February 2020 10:45 > > To:

[RFC][PATCH 1/3] evm: Move hooks outside LSM infrastructure

2020-04-29 Thread Roberto Sassu
EVM is a module for the protection of the integrity of file metadata. It protects security-relevant extended attributes, and some file attributes such as the UID and the GID. It protects their integrity with an HMAC or with a signature. What makes EVM different from other LSMs is that it makes a

[PATCH] kvm: x86: Cleanup vcpu->arch.guest_xstate_size

2020-04-29 Thread Xiaoyao Li
vcpu->arch.guest_xstate_size lost its only user since commit df1daba7d1cb ("KVM: x86: support XSAVES usage in the host"), so clean it up. Signed-off-by: Xiaoyao Li --- arch/x86/include/asm/kvm_host.h | 1 - arch/x86/kvm/cpuid.c| 8 ++-- arch/x86/kvm/x86.c | 2 -- 3

[RFC][PATCH 3/3] evm: Return -EAGAIN to ignore verification failures

2020-04-29 Thread Roberto Sassu
By default, EVM maintains the same behavior as before hooks were moved outside the LSM infrastructure. When EVM returns -EPERM, callers stop their execution and return the error to user space. This patch introduces a new mode, called ignore, that changes the return value of the pre hooks from

Canada Greetings

2020-04-29 Thread Fel
Greetings, My name is Felix,I am contacting you in respect of an urgent matter (Deal) regarding funds in excess of Nine Million US Dollars which resulted from a liquidated BTC account belonging to a deceased account holder. I will let you in on my plan and why I chose to contact you in the

Re: [RFC PATCH] powerpc/spufs: fix copy_to_user while atomic

2020-04-29 Thread Arnd Bergmann
On Wed, Apr 29, 2020 at 8:33 AM Jeremy Kerr wrote: > > Hi Christoph, > > > And another one that should go on top of this one to address Al's other > > compaint: > > Yeah, I was pondering that one. The access_ok() is kinda redundant, but > it does avoid forcing a SPU context save on those errors.

[RFC][PATCH 2/3] evm: Extend API of post hooks to pass the result of pre hooks

2020-04-29 Thread Roberto Sassu
This patch extends the API of post hooks to pass the result returned by the pre hooks. Given that now this information is available, post hooks can stop before updating the HMAC if the result of the pre hook is not zero. They still reset the result of the last verification, stored in the

Re: [PATCH v3 09/14] remoteproc: Deal with synchronisation when crashing

2020-04-29 Thread Arnaud POULIQUEN
Hi Mathieu, On 4/24/20 10:01 PM, Mathieu Poirier wrote: > Refactor function rproc_trigger_recovery() in order to avoid > reloading the firmware image when synchronising with a remote > processor rather than booting it. Also part of the process, > properly set the synchronisation flag in order to

Re: [PATCH 5/7] m68k: Thread mm_struct throughout page table allocation

2020-04-29 Thread Geert Uytterhoeven
On Tue, Apr 28, 2020 at 9:45 PM Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > An upcoming patch will pass mm_struct to the page table constructor. > Make sure m68k has the appropriate mm_struct at the point it needs to > call the constructor. > > Signed-off-by: Matthew Wilcox

[PATCH v3 2/6] block: move main block debugfs initialization to its own file

2020-04-29 Thread Luis Chamberlain
make_request-based drivers and and request-based drivers share some debugfs code. By moving this into its own file it makes it easier to expand and audit this shared code. This patch contains no functional changes. Cc: Bart Van Assche Cc: Omar Sandoval Cc: Hannes Reinecke Cc: Nicolai Stange

[PATCH v3 4/6] blktrace: fix debugfs use after free

2020-04-29 Thread Luis Chamberlain
On commit 6ac93117ab00 ("blktrace: use existing disk debugfs directory") merged on v4.12 Omar fixed the original blktrace code for request-based drivers (multiqueue). This however left in place a possible crash, if you happen to abuse blktrace while racing to remove / add a device. We used to use

[PATCH v3 0/6] block: fix blktrace debugfs use after free

2020-04-29 Thread Luis Chamberlain
Alrighty, here is v3 with all the BUG_*() crap removed, and moving to just create the debugfs directory needed for the partitions as well at initialization. This allows us to get rid of the pesky debugfs_lookup() calls which has made this code very awkward, and allowed us to find surprising bugs

[PATCH v3 1/6] block: revert back to synchronous request_queue removal

2020-04-29 Thread Luis Chamberlain
Commit dc9edc44de6c ("block: Fix a blk_exit_rl() regression") merged on v4.12 moved the work behind blk_release_queue() into a workqueue after a splat floated around which indicated some work on blk_release_queue() could sleep in blk_exit_rl(). This splat would be possible when a driver called

[PATCH v3 6/6] loop: be paranoid on exit and prevent new additions / removals

2020-04-29 Thread Luis Chamberlain
Be pedantic on removal as well and hold the mutex. This should prevent uses of addition while we exit. Signed-off-by: Luis Chamberlain --- drivers/block/loop.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index da693e6a834e..6dccba22c9b5

Re: [PATCH 6/7] mm: Set pt_mm in PTE constructor

2020-04-29 Thread Geert Uytterhoeven
On Tue, Apr 28, 2020 at 9:45 PM Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > By setting pt_mm for pages in use as page tables, we can help with > debugging and lay the foundation for handling hardware errors in page > tables more gracefully. It also opens up the possibility for

[PATCH v3 3/6] blktrace: move blktrace debugfs creation to helper function

2020-04-29 Thread Luis Chamberlain
Move the work to create the debugfs directory used into a helper. It will make further checks easier to read. This commit introduces no functional changes. Signed-off-by: Luis Chamberlain --- kernel/trace/blktrace.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff

[PATCH v3 5/6] blktrace: break out of blktrace setup on concurrent calls

2020-04-29 Thread Luis Chamberlain
We use one blktrace per request_queue, that means one per the entire disk. So we cannot run one blktrace on say /dev/vda and then /dev/vda1, or just two calls on /dev/vda. We check for concurrent setup only at the very end of the blktrace setup though. If we try to run two concurrent blktraces

Re: [PATCH v1 1/1] drivers: base: Fix NULL pointer exception in __platform_driver_probe()

2020-04-29 Thread Greg KH
On Tue, Apr 28, 2020 at 12:24:05PM -0700, Kuppuswamy, Sathyanarayanan wrote: > Hi Greg, > > On 4/28/20 12:03 PM, Greg KH wrote: > > On Wed, Apr 08, 2020 at 02:40:03PM -0700, > > sathyanarayanan.kuppusw...@linux.intel.com wrote: > > > From: Kuppuswamy Sathyanarayanan > > > > > > > > > If

[RFC v1 1/6] block: refcount the request_queue early in __device_add_disk()

2020-04-29 Thread Luis Chamberlain
We refcount the request_queue right now towards the end of the __device_add_disk(), however when we add error handling on this function we'll want to refcount the request_queue first, to help make less complicated changes on drivers on their error paths. For instance, today a driver may call

[RFC v1 5/6] block: add initial error handling for *add_disk()* and friends

2020-04-29 Thread Luis Chamberlain
This adds error handling to the *add_disk*() callers and the functions it depends on. This is initial work as drivers are not converted. That is separate work. Signed-off-by: Luis Chamberlain --- block/blk-integrity.c | 13 ++- block/blk-sysfs.c | 7 +- block/blk.h | 5 +-

  1   2   3   4   5   6   7   8   9   10   >