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

2020-04-28 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 03/11] power: supply: bd70528: rename linear_range to avoid collision

2020-04-28 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 insertion

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

2020-04-28 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 01/11] lib: add linear ranges helpers

2020-04-28 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 the

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

2020-04-28 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-28 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 tabl

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

2020-04-28 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 out

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

2020-04-28 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") Signed-

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

2020-04-28 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(+),

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

2020-04-28 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 --- driv

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

2020-04-28 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 id

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

2020-04-28 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 t

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

2020-04-28 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 f

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

2020-04-28 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: > >

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

2020-04-28 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 ("sysctl

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

2020-04-28 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) &

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

2020-04-28 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-28 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 arch

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

2020-04-28 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: Hmm,

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

2020-04-28 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 --- scripts/sortta

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

2020-04-28 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, >^~

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

2020-04-28 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-28 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 scri

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

2020-04-28 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 t

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

2020-04-28 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 Vlascean

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

2020-04-28 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 Golasz

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

2020-04-28 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

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

2020-04-28 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 a/tools/perf/pmu-events/pmu-e

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

2020-04-28 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

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

2020-04-28 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 = &client->dev; > > > + struct gsc_dev *gsc; > > > + int ret; > > > + unsigned int re

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

2020-04-28 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] ARM: oabi-compat: fix epoll_ctl build failure

2020-04-28 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 v3 05/16] mfd: Add support for Kontron sl28cpld management controller

2020-04-28 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 controll

[tip:smp/core] BUILD SUCCESS 182e073f68a080a29920f6dca796ccf4806b0329

2020-04-28 Thread kbuild test robot
randconfig-a001-20200427 nds32randconfig-a001-20200427 nios2 randconfig-a001-20200428 h8300 randconfig-a001-20200428 c6x randconfig-a001-20200428 sparc64 randconfig-a001-20200428 microblaze randcon

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

2020-04-28 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 202

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

2020-04-28 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 > instr

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

2020-04-28 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 #ifdef/#en

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

2020-04-28 Thread kbuild test robot
Hi Rishabh, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.7-rc3 next-20200428] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base&#x

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

2020-04-28 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 __-pref

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

2020-04-28 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 yo

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

2020-04-28 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 t

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

2020-04-28 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] Fix use after free in get_tree_bdev()

2020-04-28 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") called

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

2020-04-28 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 tri

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

2020-04-28 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 a

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

2020-04-28 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. Currentl

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

2020-04-28 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 th

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

2020-04-28 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 +-- tools/vm/page_owne

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

2020-04-28 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

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

2020-04-28 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

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

2020-04-28 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 v8 v5 1/3] media: dt-bindings: ov8856: Document YAML bindings

2020-04-28 Thread Marco Felsch
Hi Robert, On 20-04-28 20:07, Robert Foss wrote: > From: Dongchun Zhu > > This patch adds documentation of device tree in YAML schema for the > OV8856 CMOS image sensor. > > Signed-off-by: Dongchun Zhu > Signed-off-by: Robert Foss > --- > > - Changes since v7: > * Marco: Make 'port' proper

[GIT PULL] Crypto Fixes for 5.7

2020-04-28 Thread Herbert Xu
Hi Linus: This push fixes a bunch of bugs detected by KASAN in the caam driver. The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/herbe

Re: [PATCH v2 0/2] mtd: spi-nor: macronix: Add support for mx25l512/mx25u512

2020-04-28 Thread masonccyang
Hi Tudor, > > 2020/04/28 下午 04:39 > > To > > , > > cc > > , , , > , , > > Subject > > Re: [PATCH v2 0/2] mtd: spi-nor: macronix: Add support for mx25l512/mx25u512 > > On Thursday, April 23, 2020 11:38:41 AM EEST Mason Yang wrote: > > EXTERNAL EMAIL: Do not click links or open attach

Re: [PATCH V11.2] Documentation/dax: Update Usage section

2020-04-28 Thread Randy Dunlap
On 4/28/20 9:33 PM, ira.we...@intel.com wrote: > From: Ira Weiny > > Update the Usage section to reflect the new individual dax selection > functionality. > > Signed-off-by: Ira Weiny > > --- Acked-by: Randy Dunlap Thanks. > --- > Documentation/filesystems/dax.txt | 142 ++

[PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-28 Thread Li RongQing
Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, this is confused to user when turbo is enable, and aperf/mperf can be used to show current cpu frequency after 7d5905dc14a "(x86 / CPU: Always show current CPU frequency in /proc/cpuinfo)" so we should emulate aperf mperf to achieve it t

Re: [PATCH] usb: typec: mux: intel: Handle alt mode HPD_LVL

2020-04-28 Thread Prashant Malani
Sorry, didn't compose the Commit message quite right, have sent out v2. Thanks, On Tue, Apr 28, 2020 at 10:34 PM Prashant Malani wrote: > > According to the PMC Type C Subsystem (TCSS) Mux programming guide rev > 0.6, when a device is transitioning to DP Alternate Mode state, if the > HPD_LVL in

[PATCH v2] usb: typec: mux: intel: Handle alt mode HPD_HIGH

2020-04-28 Thread Prashant Malani
According to the PMC Type C Subsystem (TCSS) Mux programming guide rev 0.6, when a device is transitioning to DP Alternate Mode state, if the HPD_STATE (bit 7) field in the status update command VDO is set to HPD_HIGH, the HPD_HIGH field in the Alternate Mode request “mode_data” field (bit 14) shou

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

2020-04-28 Thread Lu Baolu
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: * Michael S. Tsirkin [2020-04-28 12:17:57]: Okay, but how is all this virt

Re: [net-next PATCH v2 0/3] Introduce new APIs to support phylink and phy layers

2020-04-28 Thread Calvin Johnson
On Mon, Apr 27, 2020 at 03:48:07PM +0100, Russell King - ARM Linux admin wrote: > On Mon, Apr 27, 2020 at 08:02:38PM +0530, Calvin Johnson wrote: > > On Mon, Apr 27, 2020 at 02:58:20PM +0100, Russell King - ARM Linux admin > > wrote: > > > On Mon, Apr 27, 2020 at 06:54:06PM +0530, Calvin Johnson w

Re: [PATCH v7 3/7] tpm: tpm_tis: Rewrite "tpm_tis_req_canceled()"

2020-04-28 Thread Jarkko Sakkinen
On Mon, Apr 27, 2020 at 03:49:27PM +0300, amirmi...@gmail.com wrote: > From: Amir Mizinski > > Using this function while reading/writing data resulted in an aborted > operation. > After investigating the issue according to the TCG TPM Profile (PTP) > Specifications, I found that "request to cance

Re: [PATCH v7 2/7] tpm: tpm_tis: Add verify_data_integrity handle toy tpm_tis_phy_ops

2020-04-28 Thread Jarkko Sakkinen
On Mon, Apr 27, 2020 at 03:49:26PM +0300, amirmi...@gmail.com wrote: > + bool (*verify_data_integrity)(struct tpm_tis_data *data, const u8 *buf, > + size_t len); Why can't the i2c driver verify this in the end of read_bytes()? /Jarkko

[PATCH] usb: typec: mux: intel: Handle alt mode HPD_LVL

2020-04-28 Thread Prashant Malani
According to the PMC Type C Subsystem (TCSS) Mux programming guide rev 0.6, when a device is transitioning to DP Alternate Mode state, if the HPD_LVL in the status update command VDO is set, the HPD_HIGH field in the Alternate Mode request “mode_data” field (bit 14) should also be set. Ensure the b

Re: [PATCH v29 00/20] Intel SGX foundations

2020-04-28 Thread Jarkko Sakkinen
On Sun, Apr 26, 2020 at 11:57:53AM -0500, Dr. Greg wrote: > On Wed, Apr 22, 2020 at 12:52:56AM +0300, Jarkko Sakkinen wrote: > > Good day, I hope the weekend is going well for everyone. > > > Intel(R) SGX is a set of CPU instructions that can be used by applications > > to set aside private regio

Re: [PATCH -next] ipc: use GFP_ATOMIC under spin lock

2020-04-28 Thread Manfred Spraul
Hello together, On 4/28/20 1:14 PM, Matthew Wilcox wrote: On Tue, Apr 28, 2020 at 03:47:36AM +, Wei Yongjun wrote: The function ipc_id_alloc() is called from ipc_addid(), in which a spin lock is held, so we should use GFP_ATOMIC instead. Fixes: de5738d1c364 ("ipc: convert ipcs_idr to XArra

Re: [PATCH v29 00/20] Intel SGX foundations

2020-04-28 Thread Jarkko Sakkinen
On Wed, Apr 22, 2020 at 09:48:58AM -0700, Connor Kuehl wrote: > On 4/21/20 2:52 PM, Jarkko Sakkinen wrote: > > v29: > > * The selftest has been moved to selftests/sgx. Because SGX is an execution > >environment of its own, it really isn't a great fit with more "standard" > >x86 tests. > >

Re: [PATCH 0/2] Add support for StorageD3Enable _DSD property

2020-04-28 Thread Williams, Dan J
On Tue, 2020-04-28 at 08:27 -0700, David E. Box wrote: > On Tue, 2020-04-28 at 16:22 +0200, Christoph Hellwig wrote: > > On Tue, Apr 28, 2020 at 07:09:59AM -0700, David E. Box wrote: > > > > I'm not sure who came up with the idea to put this into ACPI, > > > > but > > > > it > > > > belongs into NV

Re: [RESEND PATCH v6 1/4] mfd: syscon: Add fwnode_to_regmap

2020-04-28 Thread Dilip Kota
On 4/28/2020 6:29 PM, Arnd Bergmann wrote: On Tue, Apr 28, 2020 at 12:05 PM Lee Jones wrote: On Tue, 21 Apr 2020, Dilip Kota wrote: But, i feel return error for ACPI or oother, looks better because 'device_node' has fwnode pointer. And provide description in the header file, mentioning funct

Re: [f2fs-dev] [PATCH V2] f2fs: Avoid double lock for cp_rwsem during checkpoint

2020-04-28 Thread Sayali Lokhande
Hi Markus On 4/27/2020 4:08 PM, Markus Elfring wrote: … This results in deadlock as iput() tries to hold cp_rwsem, which is already held at the beginning by checkpoint->block_operations(). Will another imperative wording become helpful besides the provided information for this change descriptio

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

2020-04-28 Thread Michael S. Tsirkin
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: > > > * Michael S. Tsirkin [2020-04-28 12:17:57]: > > > > > > > Okay, but how is all this virtio specific? For example,

Re: [PATCH 1/3] staging: qlge: Remove multi-line dereferences from qlge_main.c

2020-04-28 Thread Rylan Dmello
On Tue, Apr 28, 2020 at 09:31:10PM -0700, Joe Perches wrote: > On Wed, 2020-04-29 at 00:04 -0400, Rylan Dmello wrote: > > Fix checkpatch.pl warnings: > > > > WARNING: Avoid multiple line dereference - prefer 'qdev->func' > > WARNING: Avoid multiple line dereference - prefer 'qdev->flags' > >

Re: [PATCH] perf: perf can not parser the backtrace of app in the 32bit system and 64bit kernel.

2020-04-28 Thread Jiping Ma
We test it as the following steps. # gcc -g -mthumb -gdwarf -o test test.c # export CALLGRAPH=dwarf #(./perftest ./test profiling 1; cd ./profiling/; perf script) Thanks, Jiping On 04/29/2020 12:01 PM, Jiping Ma wrote: Record PC value from regs[15], it should be regs[32], which cause perf parse

Re: [PATCH v4 1/4] dt-bindings: net: phy: Add support for NXP TJA11xx

2020-04-28 Thread Florian Fainelli
On 4/28/2020 9:38 PM, Oleksij Rempel wrote: > @Rob, thank you for the review. > > @David, should I send fixes or reworked initial patches? You need to send incremental patches, once David applies the patches, they are part of the git history for the trees he maintains. -- Florian

Re: [PATCH v4 1/4] dt-bindings: net: phy: Add support for NXP TJA11xx

2020-04-28 Thread Oleksij Rempel
@Rob, thank you for the review. @David, should I send fixes or reworked initial patches? On Tue, Apr 28, 2020 at 12:30:06PM -0500, Rob Herring wrote: > On Fri, Mar 13, 2020 at 12:23 AM Oleksij Rempel > wrote: > > > > Document the NXP TJA11xx PHY bindings. > > Given the discussion, I'd marked t

[PATCH] video: fbdev: pxa3xx_gcu: Fix some resource leak in an error handling path in 'pxa3xx_gcu_probe()'

2020-04-28 Thread Christophe JAILLET
If an error occurs in the loop where we call 'pxa3xx_gcu_add_buffer()', any resource already allocated should be freed. In order to fix it, add a call to 'pxa3xx_gcu_free_buffers()' in the error handling path, as already done in the remove function. Fixes: 364dbdf3b6c3 ("video: add driver for PXA

[PATCH V11.2] Documentation/dax: Update Usage section

2020-04-28 Thread ira . weiny
From: Ira Weiny Update the Usage section to reflect the new individual dax selection functionality. Signed-off-by: Ira Weiny --- Changes from V11.1: Make filesystem/file system consistently filesystem grammatical fixes Changes from V11: Minor changes from Darrick Chan

Re: [PATCH 1/3] staging: qlge: Remove multi-line dereferences from qlge_main.c

2020-04-28 Thread Joe Perches
On Wed, 2020-04-29 at 00:04 -0400, Rylan Dmello wrote: > Fix checkpatch.pl warnings: > > WARNING: Avoid multiple line dereference - prefer 'qdev->func' > WARNING: Avoid multiple line dereference - prefer 'qdev->flags' Assuming you are doing this for exercise: It'd be better to unindent all t

Re: [PATCH V11.1] Documentation/dax: Update Usage section

2020-04-28 Thread Ira Weiny
On Tue, Apr 28, 2020 at 07:21:18PM -0700, Randy Dunlap wrote: > On 4/28/20 3:21 PM, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Update the Usage section to reflect the new individual dax selection > > functionality. > > > > Signed-off-by: Ira Weiny > > > > --- > > Changes from V11:

[PATCH RESEND] MAINTAINERS: remove entry after hp100 driver removal

2020-04-28 Thread Lukas Bulwahn
r entry in MAINTAINERS now. Signed-off-by: Lukas Bulwahn --- Greg, here is a minor non-urgent patch for staging. applies cleanly on v5.7-rc3, current master and next-20200428 MAINTAINERS | 5 - 1 file changed, 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 26f281d9f32a..41e2b5774

Re: [PATCH net-next v2 4/4] net: phy: bcm54140: add second PHY ID

2020-04-28 Thread Florian Fainelli
On 4/28/2020 4:06 PM, Michael Walle wrote: > This PHY has two PHY IDs depending on its mode. Adjust the mask so that > it includes both IDs. > > Signed-off-by: Michael Walle Reviewed-by: Florian Fainelli For future submissions to netdev, if you have a patch count > 1, please include a cover

Re: [PATCH/RFC] clk: gate: Add some kunit test suites

2020-04-28 Thread David Gow
On Tue, Apr 14, 2020 at 7:46 PM Vaittinen, Matti wrote: > > Hello Stephen & All, > > Prologue: > > I have been traumatized in the past - by unit tests :) Thus I am always > a bit jumpy when I see people adding UTs. I always see the inertia UTs > add to development - when people change anything the

Re: [PATCH v2] eventpoll: fix missing wakeup for ovflist in ep_poll_callback

2020-04-28 Thread Jason Baron
On 4/28/20 2:10 PM, Roman Penyaev wrote: > On 2020-04-27 22:38, Jason Baron wrote: >> On 4/25/20 4:59 PM, Khazhismel Kumykov wrote: >>> On Sat, Apr 25, 2020 at 9:17 AM Jason Baron wrote: On 4/24/20 3:00 PM, Khazhismel Kumykov wrote: > In the event that we add to ovflist,

[PATCH -next v2] hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler

2020-04-28 Thread Zou Wei
fix coccinelle warning, use ARRAY_SIZE drivers/net/ethernet/huawei/hinic/hinic_sriov.c:713:43-44: WARNING: Use ARRAY_SIZE -- v1-->v2: remove cmd_number Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/net/ethernet/huawei/hinic/hinic_sriov.c | 8 +++- 1 file changed,

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

2020-04-28 Thread Srivatsa Vaddagiri
* Stefano Stabellini [2020-04-28 16:04:34]: > > > Is swiotlb commonly used for multiple devices that may be on different > > > trust > > > boundaries (and not behind a hardware iommu)? > > The trust boundary is not a good way of describing the scenario and I > think it leads to miscommunication

[PATCH 2/3] staging: qlge: Fix suspect indentation warning in qlge_main.c

2020-04-28 Thread Rylan Dmello
Fix checkpatch.pl warning: WARNING: suspect code indent for conditional statements (16, 23) Signed-off-by: Rylan Dmello --- drivers/staging/qlge/qlge_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.

[PATCH 3/3] staging: qlge: Fix function argument alignment warning in qlge_main.c

2020-04-28 Thread Rylan Dmello
Fix checkpatch.pl check: CHECK: Alignment should match open parenthesis Signed-off-by: Rylan Dmello --- drivers/staging/qlge/qlge_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.c index 0edeea525f

[PATCH 1/3] staging: qlge: Remove multi-line dereferences from qlge_main.c

2020-04-28 Thread Rylan Dmello
Fix checkpatch.pl warnings: WARNING: Avoid multiple line dereference - prefer 'qdev->func' WARNING: Avoid multiple line dereference - prefer 'qdev->flags' Signed-off-by: Rylan Dmello --- drivers/staging/qlge/qlge_main.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --

[PATCH v2] workqueue: Use IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO.

2020-04-28 Thread Sean Fu
Replace inline function PTR_ERR_OR_ZERO with IS_ERR and PTR_ERR to remove redundant parameter definitions and checks. Reduce code size. Before: textdata bss dec hex filename 475105979 840 54329d439 kernel/workqueue.o After: textdata bss dec hex

[PATCH] perf: perf can not parser the backtrace of app in the 32bit system and 64bit kernel.

2020-04-28 Thread Jiping Ma
Record PC value from regs[15], it should be regs[32], which cause perf parser the backtrace failed. Signed-off-by: Jiping Ma --- arch/arm64/kernel/perf_regs.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/perf_regs.c b/arch/arm64/kernel/perf_regs.c index 0bbac61..0408

[PATCH v0 linux master] i2c/busses: Avoid i2c interrupt status clear race condition.

2020-04-28 Thread ryan_chen
In AST2600 there have a slow peripheral bus between CPU and i2c controller. Therefore GIC i2c interrupt status clear have delay timing, when CPU issue write clear i2c controller interrupt status. To avoid this issue, the driver need have read after write clear at i2c ISR. Signed-off-by: ryan_che

Re: [PATCH] samples: fix binderfs sample

2020-04-28 Thread Masahiro Yamada
Hi Arnd, On Wed, Apr 29, 2020 at 6:26 AM Arnd Bergmann wrote: > > A routine check for misspelled Kconfig symbols showed on instance > from last year, the correct symbol name is CONFIG_ANDROID_BINDERFS, > not CONFIG_CONFIG_ANDROID_BINDERFS, so the extra prefix must > be removed in the Kconfig fil

Re: [PATCH v3 1/2] dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings

2020-04-28 Thread EastL
On Mon, 2020-04-27 at 16:32 -0500, Rob Herring wrote: > On Mon, 27 Apr 2020 10:52:56 +0800, EastL wrote: > > Document the devicetree bindings for MediaTek Command-Queue DMA controller > > which could be found on MT6779 SoC or other similar Mediatek SoCs. > > > > Signed-off-by: EastL > > --- > >

Re: [PATCH -next] hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler

2020-04-28 Thread Samuel Zou
Hi Joe, Thanks for your comments, I will modify and send the v2 On 2020/4/29 11:23, Joe Perches wrote: On Wed, 2020-04-29 at 11:15 +0800, Zou Wei wrote: fix coccinelle warning, use ARRAY_SIZE drivers/net/ethernet/huawei/hinic/hinic_sriov.c:713:43-44: WARNING: Use ARRAY_SIZE Reported-by: Hulk

[PATCH v2 08/15] samples: hidraw: build sample program for target architecture

2020-04-28 Thread Masahiro Yamada
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. I also guarded the CONF

[PATCH V2] net: hns3: adds support for reading module eeprom info

2020-04-28 Thread Huazhong Tan
From: Yonglong Liu This patch adds support for reading the optical module eeprom info via "ethtool -m". Signed-off-by: Yonglong Liu Signed-off-by: Huazhong Tan --- V2: replace self-defined macro with the SFF8024_ID_* in sfp.h suggested by Jakub Kicinski. --- drivers/net/ethernet/hisilicon

[PATCH v2 06/15] samples: uhid: fix warnings in uhid-example

2020-04-28 Thread Masahiro Yamada
From: Sam Ravnborg Fix warnings seen when building for 32-bit architecture. Use "%xd" for arguments of type size_t to fix the warnings. Signed-off-by: Sam Ravnborg Signed-off-by: Masahiro Yamada --- Changes in v2: None samples/uhid/uhid-example.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH v2 12/15] samples: mei: build sample program for target architecture

2020-04-28 Thread Masahiro Yamada
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. I also guarded the CONF

[PATCH v2 05/15] kbuild: doc: document the new syntax 'userprogs'

2020-04-28 Thread Masahiro Yamada
Kbuild now supports the syntax 'userprogs' to compile userspace programs for the same architecture as the kernel. Insert the section '5 Userspace Program support' to explain it. I copy-pasted '4 Host Program support' and fixed it up. Signed-off-by: Masahiro Yamada Acked-by: Sam Ravnborg --- C

[PATCH v2 15/15] samples: watchdog: use 'userprogs' syntax

2020-04-28 Thread Masahiro Yamada
Kbuild now supports the 'userprogs' syntax to compile userspace programs for the same architecture as the kernel. Add the entry to samples/Makefile to put this into the build bot coverage. I also added the CONFIG option guarded by 'depends on CC_CAN_LINK' because $(CC) may not provide libc. Sign

[PATCH v2 11/15] samples: pidfd: build sample program for target architecture

2020-04-28 Thread Masahiro Yamada
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. I also guarded the CONF

  1   2   3   4   5   6   7   8   9   10   >