[PATCH v2 2/6] dt-bindings: dma: dw: Add max burst transaction length property

2020-05-08 Thread Serge Semin
This array property is used to indicate the maximum burst transaction length supported by each DMA channel. Signed-off-by: Serge Semin Cc: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Paul Burton Cc: Ralf Baechle Cc: Arnd Bergmann Cc: Viresh Kumar Cc: Andy Shevchenko Cc: Dan Williams Cc:

[PATCH v3] tools/bootconfig: fix resource leak in apply_xbc()

2020-05-08 Thread Yunfeng Ye
Fix the @data and @fd allocations that are leaked in the error path of apply_xbc(). Fixes: 85c46b78da58 ("bootconfig: Add bootconfig magic word for indicating bootconfig explicitly") Fixes: 950313ebf79c ("tools: bootconfig: Add bootconfig command") Acked-by: Masami Hiramatsu Signed-off-by:

[PATCH v2 6/6] dmaengine: dw: Take HC_LLP flag into account for noLLP auto-config

2020-05-08 Thread Serge Semin
Full multi-block transfers functionality is enabled in DW DMA controller only if CHx_MULTI_BLK_EN is set. But LLP-based transfers can be executed only if hardcode channel x LLP register feature isn't enabled, which can be switched on at the IP core synthesis for optimization. If it's enabled then

[PATCH v3 7/9] perf record: extend -D,--delay option with -1 value

2020-05-08 Thread Alexey Budankov
Extend -D,--delay option with -1 to start collection with events disabled to be enbled later by enable command provided via control file descriptor. Signed-off-by: Alexey Budankov --- tools/perf/Documentation/perf-record.txt | 5 +++-- tools/perf/builtin-record.c | 12

[PATCH v2 0/6] dmaengine: dw: Take Baikal-T1 SoC DW DMAC peculiarities into account

2020-05-08 Thread Serge Semin
Baikal-T1 SoC has an DW DMAC on-board to provide a Mem-to-Mem, low-speed peripherals Dev-to-Mem and Mem-to-Dev functionality. Mostly it's compatible with currently implemented in the kernel DW DMAC driver, but there are some peculiarities which must be taken into account in order to have the

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

2020-05-08 Thread Alexey Budankov
Introduce --ctl-fd[-ack] options to pass open file descriptors numbers from command line. Extend perf-stat.txt file with --ctl-fd[-ack] options description. Document possible usage model introduced by --ctl-fd[-ack] options by providing example bash shell script. Signed-off-by: Alexey Budankov

[PATCH v3 5/9] perf stat: implement control commands handling

2020-05-08 Thread Alexey Budankov
Implement handling of 'enable' and 'disable' control commands coming from control file descriptor. Signed-off-by: Alexey Budankov --- tools/perf/builtin-stat.c | 48 +-- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git

[PATCH v7 4/5] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-05-08 Thread Vaibhav Jain
Introduce support for Papr nvDimm Specific Methods (PDSM) in papr_scm modules and add the command family to the white list of NVDIMM command sets. Also advertise support for ND_CMD_CALL for the dimm command mask and implement necessary scaffolding in the module to handle ND_CMD_CALL ioctl and PDSM

[PATCH v7 2/5] seq_buf: Export seq_buf_printf() to external modules

2020-05-08 Thread Vaibhav Jain
'seq_buf' provides a very useful abstraction for writing to a string buffer without needing to worry about it over-flowing. However even though the API has been stable for couple of years now its stills not exported to external modules limiting its usage. Hence this patch proposes update to

[PATCH v7 3/5] powerpc/papr_scm: Fetch nvdimm health information from PHYP

2020-05-08 Thread Vaibhav Jain
Implement support for fetching nvdimm health information via H_SCM_HEALTH hcall as documented in Ref[1]. The hcall returns a pair of 64-bit big-endian integers, bitwise-and of which is then stored in 'struct papr_scm_priv' and subsequently partially exposed to user-space via newly introduced dimm

[PATCH v7 5/5] powerpc/papr_scm: Implement support for PAPR_SCM_PDSM_HEALTH

2020-05-08 Thread Vaibhav Jain
This patch implements support for PDSM request 'PAPR_SCM_PDSM_HEALTH' that returns a newly introduced 'struct nd_papr_pdsm_health' instance containing dimm health information back to user space in response to ND_CMD_CALL. This functionality is implemented in newly introduced papr_scm_get_health()

[PATCH v7 1/5] powerpc: Document details on H_SCM_HEALTH hcall

2020-05-08 Thread Vaibhav Jain
Add documentation to 'papr_hcalls.rst' describing the bitmap flags that are returned from H_SCM_HEALTH hcall as per the PAPR-SCM specification. Cc: Dan Williams Cc: Michael Ellerman Cc: "Aneesh Kumar K . V" Signed-off-by: Vaibhav Jain --- Changelog: v6..v7: * None v5..v6 * New patch in the

[PATCH v7 0/5] powerpc/papr_scm: Add support for reporting nvdimm health

2020-05-08 Thread Vaibhav Jain
The PAPR standard[1][3] provides mechanisms to query the health and performance stats of an NVDIMM via various hcalls as described in Ref[2]. Until now these stats were never available nor exposed to the user-space tools like 'ndctl'. This is partly due to PAPR platform not having support for

[PATCH v3 4/9] perf stat: extend -D,--delay option with -1 value

2020-05-08 Thread Alexey Budankov
Extend -D,--delay option with -1 value to start monitoring with events disabled to be enabled later by enable command provided via control file descriptor. Signed-off-by: Alexey Budankov --- tools/perf/Documentation/perf-stat.txt | 5 +++-- tools/perf/builtin-stat.c | 18

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

2020-05-08 Thread Alexey Budankov
Factor out event handling loop into handle_events() function. Signed-off-by: Alexey Budankov --- tools/perf/builtin-stat.c | 85 +++ 1 file changed, 50 insertions(+), 35 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index

Re: [PATCH v4 1/1] vfio-ccw: Enable transparent CCW IPL from DASD

2020-05-08 Thread Cornelia Huck
On Wed, 6 May 2020 17:24:40 -0400 Jared Rossi wrote: > Remove the explicit prefetch check when using vfio-ccw devices. > This check does not trigger in practice as all Linux channel programs > are intended to use prefetch. > > It is expected that all ORBs issued by Linux will request prefetch.

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

2020-05-08 Thread Alexey Budankov
Implement functions of initialization, finalization and processing of control commands coming from control file descriptors. Signed-off-by: Alexey Budankov --- tools/perf/util/evlist.c | 128 +++ tools/perf/util/evlist.h | 17 ++ 2 files changed, 145

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

2020-05-08 Thread Alexey Budankov
Define and initialize control file descriptors. Signed-off-by: Alexey Budankov --- tools/perf/util/evlist.c | 3 +++ tools/perf/util/evlist.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 0a0b760d6948..2db4bedc4f81 100644 ---

Re: Query regarding pseudo nmi support on GIC V3 and request_nmi()

2020-05-08 Thread Marc Zyngier
On Thu, 07 May 2020 17:06:19 +0100, Neeraj Upadhyay wrote: > > Hi, > > I have one query regarding pseudo NMI support on GIC v3; from what I > could understand, GIC v3 supports pseudo NMI setup for SPIs and PPIs. > However the request_nmi() in irq framework requires NMI to be per cpu > interrupt

[PATCH v3 0/9] perf: support enable and disable commands in stat and record modes

2020-05-08 Thread Alexey Budankov
Changes in v3: - renamed functions and types from perf_evlist_ to evlist_ to avoid clash with libperf code; - supported commands to be strings of variable length consisting of command name and also possibly including command specific data; - merged docs update with the code changes; -

Re: [PATCH] powerpc/spufs: adjust list element pointer type

2020-05-08 Thread Julia Lawall
On Fri, 8 May 2020, Jeremy Kerr wrote: > Hi Julia, > > > Other uses of >aff_list_head, eg in spufs_assert_affinity, indicate > > that the list elements have type spu_context, not spu as used here. Change > > the type of tmp accordingly. > > Looks good to me; we could even use ctx there,

Re: mmotm 2020-05-05-15-28 uploaded (objtool warning)

2020-05-08 Thread Peter Zijlstra
On Tue, May 05, 2020 at 10:40:43PM -0700, Randy Dunlap wrote: > On 5/5/20 3:29 PM, a...@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2020-05-05-15-28 has been uploaded to > > > >http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for

Re: [PATCH 00/14] Modularize schedutil

2020-05-08 Thread Greg KH
On Fri, May 08, 2020 at 10:11:28AM +0200, Peter Zijlstra wrote: > On Thu, May 07, 2020 at 07:09:58PM +0100, Quentin Perret wrote: > > One challenge to implement GKI is to avoid bloating the kernel by > > compiling too many things in, especially given that different devices > > need different

Re: [PATCH v6 2/3] drm: Add support for the LogiCVC display controller

2020-05-08 Thread Emil Velikov
On Thu, 7 May 2020 at 21:11, Paul Kocialkowski wrote: > > Hi Emil, > > Thanks for the review! > > On Mon 04 May 20, 14:28, Emil Velikov wrote: > > Just had a casual quick look for custom KMS properties, since new > > drivers made that mistake in the past. > > Thanks for not including any o/ > >

Re: [PATCH] mm: vmscan: consistent update to pgsteal and pgscan

2020-05-08 Thread Yafang Shao
On Fri, May 8, 2020 at 4:49 AM Shakeel Butt wrote: > > One way to measure the efficiency of memory reclaim is to look at the > ratio (pgscan+pfrefill)/pgsteal. However at the moment these stats are > not updated consistently at the system level and the ratio of these are > not very meaningful.

Re: [PATCH v3 3/3] media: rkvdec: Add the VP9 backend

2020-05-08 Thread Hans Verkuil
On 05/05/2020 15:41, Ezequiel Garcia wrote: > From: Boris Brezillon > > The Rockchip VDEC supports VP9 profile 0 up to 4096x2304@30fps. Add > a backend for this new format. > > Signed-off-by: Boris Brezillon > Signed-off-by: Ezequiel Garcia > --- > drivers/staging/media/rkvdec/Makefile |

Re: [PATCH] mtd: Replace zero-length array with flexible-array

2020-05-08 Thread Miquel Raynal
Hi Gustavo, "Gustavo A. R. Silva" wrote on Thu, 7 May 2020 14:00:33 -0500: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], >

Re: [PATCH v2] tools/bootconfig: fix resource leak in apply_xbc()

2020-05-08 Thread Yunfeng Ye
On 2020/5/8 17:30, Dan Carpenter wrote: > On Fri, May 08, 2020 at 02:51:15PM +0800, Yunfeng Ye wrote: >> diff --git a/tools/bootconfig/main.c b/tools/bootconfig/main.c >> index 16b9a420e6fd..d034f86022b7 100644 >> --- a/tools/bootconfig/main.c >> +++ b/tools/bootconfig/main.c >> @@ -314,31

Re: KASAN: slab-out-of-bounds Read in hfa384x_usbin_callback

2020-05-08 Thread Dmitry Vyukov
On Fri, May 8, 2020 at 11:33 AM Dmitry Vyukov wrote: > > On Thu, May 7, 2020 at 5:56 PM 'Andrey Konovalov' via syzkaller-bugs > wrote: > > > > On Wed, May 6, 2020 at 1:50 PM Andrey Konovalov > > wrote: > > > > > > On Wed, May 6, 2020 at 10:54 AM Oliver Neukum wrote: > > > > > > > > Am

[PATCH] coresight: platform: use dev_warn instead of dev_warn_once

2020-05-08 Thread Kathiravan T
When more than one coresight components uses the obsolete DT bindings, warning is displayed for only one component and not for the others. Lets warn it for all components by replacing dev_warn_once with dev_warn. Signed-off-by: Kathiravan T --- drivers/hwtracing/coresight/coresight-platform.c |

Re: [PATCH] ASoC: soc-core: Replace zero-length array with flexible-array

2020-05-08 Thread Mark Brown
On Thu, 7 May 2020 14:22:28 -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99:

Re: [PATCH v2 -next] ASoC: SOF: Intel: Fix unused variable warning

2020-05-08 Thread Mark Brown
On Thu, 7 May 2020 15:27:35 +0800, YueHaibing wrote: > When CONFIG_SND_SOC_SOF_BAYTRAIL is not set, gcc warns: > > sound/soc/sof/intel/byt.c:85:41: warning: ‘cht_debugfs’ defined but not > used [-Wunused-const-variable=] > static const struct snd_sof_debugfs_map cht_debugfs[] = { >

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

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

Re: [PATCH 2/2] spi: Add Baikal-T1 System Boot SPI Controller driver

2020-05-08 Thread Andy Shevchenko
On Fri, May 8, 2020 at 1:15 PM Serge Semin wrote: > > On Fri, May 08, 2020 at 01:03:11PM +0300, Andy Shevchenko wrote: > > On Fri, May 8, 2020 at 12:37 PM Serge Semin > > wrote: > > > > > > This SPI-controller is a part of the Baikal-T1 System Controller and > > > is based on the DW APB SSI

Re: [PATCH] gpu: host1x: Clean up debugfs in error handling path in 'host1x_probe()'

2020-05-08 Thread Thierry Reding
On Sun, Apr 26, 2020 at 09:16:30PM +0200, Christophe JAILLET wrote: > 'host1x_debug_init()' must be reverted in an error handling path. > > This is already fixed in the remove function since commit 44156eee91ba > ("gpu: host1x: Clean up debugfs on removal") > > Signed-off-by: Christophe JAILLET

Re: [f2fs-dev] [PATCH] f2fs: compress: allow lz4 to compress data partially

2020-05-08 Thread Gao Xiang
Hi Chao, On Fri, May 08, 2020 at 05:47:09PM +0800, Chao Yu wrote: > For lz4 worst compress case, caller should allocate buffer with size > of LZ4_compressBound(inputsize) for target compressed data storing. > > However lz4 supports partial data compression, so we can get rid of > output buffer

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

2020-05-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: tools/testing/selftests/vm/Makefile between commit: b0d449922eb8 ("mm/hmm/test: add selftests for HMM") from the hmm tree and commit: 3a07caa68f66 ("selftests: vm: pkeys: fix multilib builds for x86") from

Re: [PATCH 2/2] spi: Add Baikal-T1 System Boot SPI Controller driver

2020-05-08 Thread Mark Brown
On Fri, May 08, 2020 at 01:15:41PM +0300, Serge Semin wrote: > On Fri, May 08, 2020 at 01:03:11PM +0300, Andy Shevchenko wrote: > > > slave device. Taking into account the peculiarities of the controller > > > registers and physically mapped SPI flash access, very limited resources > > > and

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

2020-05-08 Thread Roberto Sassu
> From: Mimi Zohar [mailto:zo...@linux.ibm.com] > On Thu, 2020-05-07 at 16:47 +, Roberto Sassu wrote: > > > > > On Wed, 2020-05-06 at 15:44 -0400, Mimi Zohar wrote: > > > > > > Since copying the EVM HMAC or original signature isn't applicable, I > > > > > > would prefer exploring an EVM

arch/powerpc/kernel/entry_32.S:450: Error: bad expression

2020-05-08 Thread kbuild test robot
weeks ago config: powerpc-randconfig-r035-20200508 (attached as .config) compiler: powerpc-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout

Re: [RFC PATCH v3 2/3] docs: scheduler: Add scheduler overview documentation

2020-05-08 Thread Dietmar Eggemann
On 07/05/2020 20:05, John Mathew wrote: [...] > diff --git a/Documentation/scheduler/cfs-overview.rst > b/Documentation/scheduler/cfs-overview.rst > new file mode 100644 > index ..b717f2d3e340 > --- /dev/null > +++ b/Documentation/scheduler/cfs-overview.rst > @@ -0,0 +1,113 @@ > +..

Re: [v2] tools/bootconfig: fix resource leak in apply_xbc()

2020-05-08 Thread Markus Elfring
> Btw, these leaks are totally harmless. This is a short running user > space program with is going to immediately exit on error so the memory > will be freed anyway. Can such a view mean that the function call “free(data)” should be omitted here for a quicker program termination? > But the

Re: [PATCH v5 5/5] drivers/tty/serial: add LiteUART driver

2020-05-08 Thread Mateusz Holenko
On Tue, May 5, 2020 at 4:02 PM Andy Shevchenko wrote: > > On Mon, May 4, 2020 at 4:44 PM Mateusz Holenko wrote: > > On Tue, Apr 28, 2020 at 5:50 PM Andy Shevchenko > > wrote: > > > On Sat, Apr 25, 2020 at 2:45 PM Mateusz Holenko > > > wrote: > > ... > > > > > Signed-off-by: Filip Kokosinski

Re: [RFC] taint: add module firmware crash taint support

2020-05-08 Thread Andy Shevchenko
On Fri, May 08, 2020 at 02:14:38AM +, Luis Chamberlain wrote: > Device driver firmware can crash, and sometimes, this can leave your > system in a state which makes the device or subsystem completely > useless. Detecting this by inspecting /proc/sys/kernel/tainted instead > of scraping some

Re: [RESENT PATCH RFC v3 4/5] scsi: ufs: add unit and geometry parameters for HPB

2020-05-08 Thread Bean Huo
On Thu, 2020-05-07 at 18:04 -0700, Bart Van Assche wrote: > > + GEOMETRY_DESC_PARAM_HPB_REGION_SIZE = 0x48, > > + GEOMETRY_DESC_PARAM_HPB_NUMBER_LU = 0x49, > > + GEOMETRY_DESC_PARAM_HPB_SUBREGION_SIZE = 0x4A, > > + GEOMETRY_DESC_PARAM_HPB_MAX_ACTIVE_REGIONS = 0x4B, > >

Re: [PATCH 2/2] spi: Add Baikal-T1 System Boot SPI Controller driver

2020-05-08 Thread Serge Semin
On Fri, May 08, 2020 at 01:03:11PM +0300, Andy Shevchenko wrote: > On Fri, May 8, 2020 at 12:37 PM Serge Semin > wrote: > > > > This SPI-controller is a part of the Baikal-T1 System Controller and > > is based on the DW APB SSI IP-core, but with very limited resources: > > no IRQ, no DMA, only a

Re: [PATCH v3 0/2] Add Qualcomm MSM8939 GCC binding and driver

2020-05-08 Thread Vincent Knecht
Le jeudi 07 mai 2020 à 17:06 +0100, Bryan O'Donoghue a écrit : > On 07/05/2020 16:57, Bryan O'Donoghue wrote: > > On 23/04/2020 11:34, Bryan O'Donoghue wrote: > > > V3: > > > This update removes the old clock name arrays which I forgot to prune in > > > the previous V2. > > > > > > git diff

Re: [PATCH] fuse:rely on fuse_perm for exec when no mode bits set

2020-05-08 Thread Chakra Divi
On Tue, Apr 28, 2020 at 1:51 PM Miklos Szeredi wrote: > > On Mon, Apr 27, 2020 at 3:46 PM Chakra Divi wrote: > > > > On Tue, Apr 21, 2020 at 4:21 PM Chakra Divi wrote: > > > > > > On Mon, Apr 20, 2020 at 4:55 PM Miklos Szeredi wrote: > > > > > > > > On Wed, Apr 1, 2020 at 11:31 AM Chakra Divi

Re: [PATCH] powerpc/spufs: adjust list element pointer type

2020-05-08 Thread Jeremy Kerr
Hi Julia, > Other uses of >aff_list_head, eg in spufs_assert_affinity, indicate > that the list elements have type spu_context, not spu as used here. Change > the type of tmp accordingly. Looks good to me; we could even use ctx there, rather than the separate tmp variable. Reviewed-by: Jeremy

Re: [RFC][PATCH 3/3] x86/entry, ORC: Teach objtool/unwind_orc about stack irq swizzles

2020-05-08 Thread Peter Zijlstra
On Thu, May 07, 2020 at 11:24:49PM +0200, Thomas Gleixner wrote: > But over our IRC conversation I came up with a 3rd variant: > > For most of the vectors the indirect call overhead is just noise, so > we can run them through the ASM switcher, but for the resched IPI > we can just use a

Re: [PATCH net v3] net: ethernet: ti: fix build and remove TI_CPTS_MOD workaround

2020-05-08 Thread Arnd Bergmann
On Fri, May 8, 2020 at 11:59 AM Grygorii Strashko wrote: > > From: Clay McClure > > My recent commit b6d49cab44b5 ("net: Make PTP-specific drivers depend on > PTP_1588_CLOCK") exposes a missing dependency in defconfigs that select > TI_CPTS without selecting PTP_1588_CLOCK, leading to linker

[PATCH] mtd: physmap: Add Baikal-T1 physically mapped ROMs support

2020-05-08 Thread Serge Semin
Baikal-T1 Boot Controller provides an access to a RO storages, which are physically mapped into the MMIO space. In particularly there are the Internal ROM embedded into the SoC with a pre-installed firmware, externally attached SPI flash (also accessed in the read-only mode) and a memory region,

Re: [RESENT PATCH RFC v3 5/5] scsi: ufs: UFS Host Performance Booster(HPB) driver

2020-05-08 Thread Bean Huo
On Thu, 2020-05-07 at 18:34 -0700, Randy Dunlap wrote: > Hi, > > On 5/4/20 7:20 AM, huob...@gmail.com wrote: > > diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig > > index e2005aeddc2d..0224f224a641 100644 > > --- a/drivers/scsi/ufs/Kconfig > > +++ b/drivers/scsi/ufs/Kconfig > >

Re: [PATCH 08/14] sched/core: Export runqueues per-cpu array

2020-05-08 Thread Quentin Perret
On Friday 08 May 2020 at 10:07:59 (+0200), Peter Zijlstra wrote: > On Thu, May 07, 2020 at 07:10:06PM +0100, Quentin Perret wrote: > > It will be needed by schedutil once modularized, export it. > > > > Signed-off-by: Quentin Perret > > --- > > This is only needed for cpu_rq() -> cpu_bw_dl() in

Re: [PATCH 2/2] spi: Add Baikal-T1 System Boot SPI Controller driver

2020-05-08 Thread Andy Shevchenko
On Fri, May 8, 2020 at 12:37 PM Serge Semin wrote: > > This SPI-controller is a part of the Baikal-T1 System Controller and > is based on the DW APB SSI IP-core, but with very limited resources: > no IRQ, no DMA, only a single native chip-select and just 8 bytes Tx/Rx > FIFO available. In order

[PATCH v3 1/2] dt-bindings: soc: ti: add binding for k3 platforms chipid module

2020-05-08 Thread Grygorii Strashko
Add DT binding for Texas Instruments K3 Multicore SoC platforms chipid module which is represented by CTRLMMR_xxx_JTAGID register and contains information about SoC id and revision. Signed-off-by: Grygorii Strashko Reviewed-by: Lokesh Vutla Reviewed-by: Tero Kristo ---

[PATCH v3 2/2] soc: ti: add k3 platforms chipid module driver

2020-05-08 Thread Grygorii Strashko
The Texas Instruments K3 Multicore SoC platforms have chipid module which is represented by CTRLMMR_xxx_JTAGID register and contains information about SoC id and revision. Bits: 31-28 VARIANT Device variant 27-12 PARTNO Part number 11-1 MFG Indicates TI as manufacturer (0x17) 1

Re: [PATCH] ipc/util.c: sysvipc_find_ipc() incorrectly updates position index

2020-05-08 Thread Vasily Averin
On 5/8/20 9:07 AM, Vasily Averin wrote: > On 5/8/20 6:36 AM, Matthew Wilcox wrote: >> On Thu, May 07, 2020 at 05:02:42PM -0700, Andrew Morton wrote: >>> Here's how I resolved things. Please check? >>> >>> static struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t >>> pos, >>>

ofono for d4: less hcked and more working version was Re: USB networking news, ofono for d4: less hacked version

2020-05-08 Thread Pavel Machek
Hi! > > But I might be confused. I recall some audio patches were needed for > > basic phone calls (setting up mixers to connect gsm<->audio), but > > those worked before gsmux support was enabled. (Maybe some hardcoded > > commands were needed to be sent to gsmmux somewhere). > > We're

[PATCH v3 0/2] soc: ti: add k3 platforms chipid module driver

2020-05-08 Thread Grygorii Strashko
Hi All, This series introduces TI K3 Multicore SoC platforms chipid module driver which provides identification support of the TI K3 SoCs (family, revision) and register this information with the SoC bus. It is available under /sys/devices/soc0/ for user space, and can be checked, where needed,

[PATCH net v3] net: ethernet: ti: fix build and remove TI_CPTS_MOD workaround

2020-05-08 Thread Grygorii Strashko
From: Clay McClure My recent commit b6d49cab44b5 ("net: Make PTP-specific drivers depend on PTP_1588_CLOCK") exposes a missing dependency in defconfigs that select TI_CPTS without selecting PTP_1588_CLOCK, leading to linker errors of the form: drivers/net/ethernet/ti/cpsw.o: in function

Re: [PATCH v2 0/3] Intel Platform Monitoring Technology

2020-05-08 Thread Andy Shevchenko
On Fri, May 8, 2020 at 5:18 AM David E. Box wrote: > > Intel Platform Monitoring Technology (PMT) is an architecture for > enumerating and accessing hardware monitoring capabilities on a device. > With customers increasingly asking for hardware telemetry, engineers not > only have to figure out

Re: [PATCH v2 3/3] platform/x86: Intel PMT Telemetry capability driver

2020-05-08 Thread Andy Shevchenko
On Fri, May 8, 2020 at 5:18 AM David E. Box wrote: > > PMT Telemetry is a capability of the Intel Platform Monitoring Technology. > The Telemetry capability provides access to device telemetry metrics that > provide hardware performance data to users from continuous, memory mapped, > read-only

Re: objtool warning breaks build for fs/dlm/lock.o

2020-05-08 Thread Peter Zijlstra
On Fri, May 08, 2020 at 11:27:39AM +0200, Arnd Bergmann wrote: > Right, makes sense. It would be nice though to have a way of intentionally > turning all objtool warnings into errors. I do my randconfig tests > with '-Werror' > at the moment in order to catch all new warnings, but this does not

[PATCH] powerpc/spufs: adjust list element pointer type

2020-05-08 Thread Julia Lawall
Other uses of >aff_list_head, eg in spufs_assert_affinity, indicate that the list elements have type spu_context, not spu as used here. Change the type of tmp accordingly. This has no impact on the execution, because tmp is not used in the body of the loop. Fixes: c5fc8d2a92461 ("[CELL] cell:

Re: [PATCH v2] KVM: x86/pmu: Support full width counting

2020-05-08 Thread Paolo Bonzini
On 08/05/20 10:42, Xu, Like wrote: >> Given the bugs, it is clear that you should also modify the pmu.c >> testcase for kvm-unit-tests to cover full-width writes (and especially >> the non-full-width write behavior of MSR_IA32_PERFCTRn).  Even before >> the QEMU side is begin worked on, you can

Re: [PATCH v3] KVM: x86/pmu: Support full width counting

2020-05-08 Thread Paolo Bonzini
I would just do small changes to the validity checks for MSRs. On 08/05/20 10:32, Like Xu wrote: > return 0; > + case MSR_IA32_PERF_CAPABILITIES: > + *data = vcpu->arch.perf_capabilities; > + return 0; This should be: if

[PATCH v2] f2fs: shrink spinlock coverage

2020-05-08 Thread Chao Yu
In f2fs_try_to_free_nids(), .nid_list_lock spinlock critical region will increase as expected shrink number increase, to avoid spining other CPUs for long time, we change to release nid caches with small batch each time under .nid_list_lock coverage. Signed-off-by: Chao Yu --- v2: - shrink free

RE: [PATCH v7 2/3] media: ov8856: Add devicetree support

2020-05-08 Thread Kao, Ben
Hi Robert, On Thu, May 7, 2020 16:39 Robert Foss wrote: > On Thu, 7 May 2020 at 10:06, Kao, Ben wrote: > > > > Hi Robert, > > > > On 20-05-05 12:01, Robert Foss wrote: > > > Add match table, enable ov8856_probe() to support both ACPI and DT modes. > > > > > > ACPI and DT modes are primarily

Re: [PATCH 0/4] qoriq: Add platform dependencies

2020-05-08 Thread Geert Uytterhoeven
Hi Li, On Thu, May 7, 2020 at 11:58 PM Li Yang wrote: > On Thu, May 7, 2020 at 6:31 AM Geert Uytterhoeven > wrote: > > Several QorIQ blocks are only present on Freescale or NXP SoCs. > > This series adds platform dependencies to the corresponding config > > ymbols, to avoid asking the user

[PATCH] f2fs: compress: allow lz4 to compress data partially

2020-05-08 Thread Chao Yu
For lz4 worst compress case, caller should allocate buffer with size of LZ4_compressBound(inputsize) for target compressed data storing. However lz4 supports partial data compression, so we can get rid of output buffer size limitation now, then we can avoid 2 * 4KB size intermediate buffer

RE: [PATCH v7 2/3] media: ov8856: Add devicetree support

2020-05-08 Thread Kao, Ben
Hi Marco Felsch, > 20-05-08 04:22, Marco Felsch wrote: > Hi Ben, > > On 20-05-07 08:06, Kao, Ben wrote: > > Hi Robert, > > > > On 20-05-05 12:01, Robert Foss wrote: > > > Add match table, enable ov8856_probe() to support both ACPI and DT modes. > > > > > > ACPI and DT modes are primarily

Re: objtool warning breaks build for fs/dlm/lock.o

2020-05-08 Thread Peter Zijlstra
On Thu, May 07, 2020 at 06:29:41PM -0500, Josh Poimboeuf wrote: > On Wed, May 06, 2020 at 04:07:25PM +0200, Arnd Bergmann wrote: > > Hi, > > > > During randconfig testing with clang-10 I came across a number > > of additional objtool warnings, I'll send another mail about those > > when I have

Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics

2020-05-08 Thread Paolo Bonzini
[Answering for Emanuele because he's not available until Monday] On 07/05/20 19:45, Jonathan Adams wrote: > This is good work. As David Rientjes mentioned, I'm currently investigating > a similar project, based on a google-internal debugfs-based FS we call > "metricfs". It's > designed in a

Re: [PATCH] perf/core: Do not initialise statics to 0 and add space before '{'

2020-05-08 Thread Kaige Li
Ok, I will pay attation. thank you. On 05/08/2020 04:25 PM, Peter Zijlstra wrote: Checkpatch can sod off. Please don't ever submit pure checkpatch patches to anything I maintain

[PATCH 2/2] spi: Add Baikal-T1 System Boot SPI Controller driver

2020-05-08 Thread Serge Semin
This SPI-controller is a part of the Baikal-T1 System Controller and is based on the DW APB SSI IP-core, but with very limited resources: no IRQ, no DMA, only a single native chip-select and just 8 bytes Tx/Rx FIFO available. In order to provide a transparent initial boot code execution this

[PATCH 0/2] spi: Add Baikal-T1 System Boot SPI Controller driver

2020-05-08 Thread Serge Semin
Baikal-T1 SoC System Controller is equipped with a Boot Controller. It's responsible for the system starting up from different sources. In particular it's possible to boot the chip either from an internal firmware or from an externally attached 16MB SPI flash or from the SoC SRAM pre-initialized

[PATCH 1/2] dt-bindings: spi: Add Baikal-T1 System Boot SPI Controller binding

2020-05-08 Thread Serge Semin
Baikal-T1 Boot SPI is a part of the SoC System Controller and is responsible for the system bootup from an external SPI flash. It's a DW APB SSI-based SPI-controller with no interrupts, no DMA, with just one native chip-select available and a single reference clock. Since Baikal-T1 SoC is normally

[PATCH] parisc: use -fno-strict-aliasing for decompressor

2020-05-08 Thread Arnd Bergmann
An experimental patch series of mine reworks how warnings are processed in Kbuild. A side effect is a new warning about a harmless aliasing rule violation in an inline function: In file included from include/linux/rhashtable-types.h:15:0, from include/linux/ipc.h:7,

RE: [RESEND 1/4] arm64: dts: lx2160a: add ftm_alarm0 DT node

2020-05-08 Thread Biwen Li (OSS)
> > On Tue, Apr 07, 2020 at 02:42:48PM +0800, Biwen Li wrote: > > From: Biwen Li > > > > The patch adds ftm_alarm0 DT node for Soc LX2160A > > FlexTimer1 module is used to wakeup the system in deep sleep > > > > Signed-off-by: Biwen Li > > --- > > arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Re: [PATCH v2 11/20] mips: MAAR: Use more precise address mask

2020-05-08 Thread Thomas Bogendoerfer
On Thu, May 07, 2020 at 10:13:37PM +0300, Serge Semin wrote: > On Thu, May 07, 2020 at 01:09:51PM +0200, Thomas Bogendoerfer wrote: > > On Wed, May 06, 2020 at 08:42:29PM +0300, sergey.se...@baikalelectronics.ru > > wrote: > > > From: Serge Semin > > > > > > Indeed according to the P5600/P6000

Re: KASAN: slab-out-of-bounds Read in hfa384x_usbin_callback

2020-05-08 Thread Dmitry Vyukov
On Thu, May 7, 2020 at 5:56 PM 'Andrey Konovalov' via syzkaller-bugs wrote: > > On Wed, May 6, 2020 at 1:50 PM Andrey Konovalov wrote: > > > > On Wed, May 6, 2020 at 10:54 AM Oliver Neukum wrote: > > > > > > Am Freitag, den 20.03.2020, 12:28 -0700 schrieb syzbot: > > > > Hello, > > > > > > > >

Re: [PATCH v2 07/20] mips: Add MIPS Warrior P5600 support

2020-05-08 Thread Thomas Bogendoerfer
On Fri, May 08, 2020 at 12:19:23AM +0300, Serge Semin wrote: > On Thu, May 07, 2020 at 01:17:35PM +0200, Thomas Bogendoerfer wrote: > > P5600 is CPU_MIPS_R5 so can't you select it here and drop all the || > > CPU_5600 > > above/below ? > > Alas, We can't do this so easy.

Re: [PATCH v2] tools/bootconfig: fix resource leak in apply_xbc()

2020-05-08 Thread Dan Carpenter
On Fri, May 08, 2020 at 02:51:15PM +0800, Yunfeng Ye wrote: > diff --git a/tools/bootconfig/main.c b/tools/bootconfig/main.c > index 16b9a420e6fd..d034f86022b7 100644 > --- a/tools/bootconfig/main.c > +++ b/tools/bootconfig/main.c > @@ -314,31 +314,33 @@ int apply_xbc(const char *path, const char

Re: [PATCH] memory: tegra: Fix an error handling path in 'tegra186_emc_probe()'

2020-05-08 Thread Marion & Christophe JAILLET
Le 08/05/2020 à 10:49, Dan Carpenter a écrit : On Wed, May 06, 2020 at 10:09:07PM +0200, Christophe JAILLET wrote: @@ -237,7 +239,7 @@ static int tegra186_emc_probe(struct platform_device *pdev) "failed to set rate range [%lu-%lu] for %pC\n",

KASAN: user-memory-access Read in do_con_trol

2020-05-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3c40cdb0 Merge branch 'linus' of git://git.kernel.org/pub/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14733d6c10 kernel config: https://syzkaller.appspot.com/x/.config?x=b0212dbee046bc1f

Re: objtool warning breaks build for fs/dlm/lock.o

2020-05-08 Thread Arnd Bergmann
On Fri, May 8, 2020 at 1:29 AM Josh Poimboeuf wrote: > > On Wed, May 06, 2020 at 04:07:25PM +0200, Arnd Bergmann wrote: > > Hi, > > > > During randconfig testing with clang-10 I came across a number > > of additional objtool warnings, I'll send another mail about those > > when I have collected

Re: [PATCH] sched/fair: Return true,false in voluntary_active_balance()

2020-05-08 Thread Julia Lawall
On Fri, 8 May 2020, Peter Zijlstra wrote: > On Thu, May 07, 2020 at 07:06:25PM +0800, Jason Yan wrote: > > Fix the following coccicheck warning: > > > > kernel/sched/fair.c:9375:9-10: WARNING: return of 0/1 in function > > 'voluntary_active_balance' with return type bool > > That's not a

clean up kernel_{read,write} & friends

2020-05-08 Thread Christoph Hellwig
Hi Al, this series fixes a few issues and cleans up the helpers that read from or write to kernel space buffers, and ensures that we don't change the address limit if we are using the ->read_iter and ->write_iter methods that don't need the changed address limit.

[PATCH] x86: Use INVPCID mnemonic in invpcid.h

2020-05-08 Thread Uros Bizjak
Current minimum required version of binutils is 2.23, which supports INVPCID instruction mnemonic. Replace the byte-wise specification of INVPCID with this proper mnemonic. Signed-off-by: Uros Bizjak CC: "H. Peter Anvin" CC: Ingo Molnar CC: Thomas Gleixner --- arch/x86/include/asm/invpcid.h

[PATCH 10/11] fs: remove __vfs_read

2020-05-08 Thread Christoph Hellwig
Fold it into the two callers. Signed-off-by: Christoph Hellwig --- fs/read_write.c| 43 +-- include/linux/fs.h | 1 - 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c index

[PATCH 04/11] fs: implement kernel_write using __kernel_write

2020-05-08 Thread Christoph Hellwig
Consolidate the two in-kernel write helpers to make upcoming changes easier. The only difference are the missing call to rw_verify_area in kernel_write, and an access_ok check that doesn't make sense for kernel buffers to start with. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 13

[PATCH 02/11] fs: check FMODE_WRITE in __kernel_write

2020-05-08 Thread Christoph Hellwig
We still need to check if the fѕ is open write, even for the low-level helper. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/read_write.c b/fs/read_write.c index d5aaf3a4198b9..d5c754080e5a5 100644 --- a/fs/read_write.c +++

[PATCH 01/11] fs: call file_{start,end}_write from __kernel_write

2020-05-08 Thread Christoph Hellwig
We always need to take a reference on the file system we are writing to. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/read_write.c b/fs/read_write.c index bbfa9b12b15eb..d5aaf3a4198b9 100644 --- a/fs/read_write.c +++

[PATCH 03/11] fs: remove the call_{read,write}_iter functions

2020-05-08 Thread Christoph Hellwig
Just open coding the methods calls is a lot easier to follow. Signed-off-by: Christoph Hellwig --- drivers/block/loop.c | 4 ++-- drivers/target/target_core_file.c | 4 ++-- fs/aio.c | 4 ++-- fs/io_uring.c | 4 ++-- fs/read_write.c

[PATCH 06/11] fs: don't change the address limit for ->write_iter in __kernel_write

2020-05-08 Thread Christoph Hellwig
If we write to a file that implements ->write_iter there is no need to change the address limit if we send a kvec down. Implement that case, and prefer it over using plain ->write with a changed address limit if available. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 34

[PATCH 09/11] fs: implement kernel_read using __kernel_read

2020-05-08 Thread Christoph Hellwig
Consolidate the two in-kernel read helpers to make upcoming changes easier. The only difference are the missing call to rw_verify_area in kernel_read, and an access_ok check that doesn't make sense for kernel buffers to start with. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 13

[PATCH 11/11] fs: don't change the address limit for ->read_iter in __kernel_read

2020-05-08 Thread Christoph Hellwig
If we read to a file that implements ->read_iter there is no need to change the address limit if we send a kvec down. Implement that case, and prefer it over using plain ->read with a changed address limit if available. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 24

[PATCH 05/11] fs: remove __vfs_write

2020-05-08 Thread Christoph Hellwig
Fold it into the two callers. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 46 ++ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c index 6b456a257b31c..67a035782874b 100644 ---

[PATCH 08/11] integrity/ima: switch to using __kernel_read

2020-05-08 Thread Christoph Hellwig
__kernel_read has a bunch of additional sanity checks, and this moves the set_fs out of non-core code. Signed-off-by: Christoph Hellwig --- security/integrity/iint.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/security/integrity/iint.c

<    12   13   14   15   16   17   18   19   20   >