[PATCH v7 2/3] binder: add trace at free transaction.

2020-08-04 Thread Frankie Chang
From: "Frankie.Chang" Since the original trace_binder_transaction_received cannot precisely present the real finished time of transaction, adding a trace_binder_txn_latency_free at the point of free transaction may be more close to it. Signed-off-by: Frankie.Chang --- drivers/android/binder.c

[PATCH v4 04/10] crypto: hisilicon/qm - fix judgement of queue is full

2020-08-04 Thread Yang Shen
From: Hui Tang The queue depth is 1024, so the condition for judging the queue full should be 1023, otherwise the hardware cannot judge whether the queue is empty or full. Fixes: 263c9959c937("crypto: hisilicon - add queue management driver...") Signed-off-by: Hui Tang Signed-off-by: Yang Shen

[PATCH v4 06/10] crypto: hisilicon/qm - fix no stop reason when use 'hisi_qm_stop'

2020-08-04 Thread Yang Shen
Now, there are three reasons of stopping: 'NORMAL', 'SOFT_RESET' and 'FLR'. In order to keep this, explicitly pass the stop reason as an input parameter of 'hisi_qm_stop' function. Fixes: b67202e8ed30("crypto: hisilicon/qm - add state machine for QM") Signed-off-by: Shukun Tan Signed-off-by: Yang

[PATCH v4 02/10] crypto: hisilicon/qm - clear used reference count when start qp

2020-08-04 Thread Yang Shen
From: Shukun Tan The used reference count is used for counting the number of 'sqe' which is under processing. This reference count should be cleared as starting 'qp', otherwise the 'used' will be messy when allocating this 'qp' again. Fixes: 5308f6600a39("crypto: hisilicon - QM memory management

[PATCH v4 09/10] crypto: hisilicon/qm - fix the call trace when unbind device

2020-08-04 Thread Yang Shen
From: Weili Qian Call trace will appear in the Hisilicon crypto driver unbinding or disabling SRIOV during task running with TFMs on the corresponding function. The log looks like this: [ 293.908078] Call trace: [ 293.908080] __queue_work+0x494/0x548 [ 293.908081] que

[PATCH v4 00/10] crypto: hisilicon/qm - misc fixes

2020-08-04 Thread Yang Shen
This patchset fix some qm bugs: patch 1: store the string address before pass to 'strsep' patch 2: clear 'qp_status->used' when init the 'qp' patch 3: use 'dev_info_ratelimited' to avoid printk flooding. patch 4: fix the judgement of queue is full patch 7: save the vf configuration space to make su

[PATCH v4 08/10] crypto: hisilicon/qm - register callback function to 'pci_driver.shutdown'

2020-08-04 Thread Yang Shen
Since the drivers such as HPRE/SEC/ZIP do not implement 'pci_driver.shutdow', a RAS will be triggered at OS rebooting or shutting down as the hardware device is processing request. The log looks like this: NOTICE: [NimbusSecNodeType1]:[2372L]This is sec, Base = 0x14180 NOTICE:

[PATCH v4 03/10] crypto: hisilicon/qm - fix print frequence in hisi_qp_send

2020-08-04 Thread Yang Shen
Requests will be sent continuously as resetting, which will cause 'printk' flooding. Using 'dev_info_ratelimited' can solve this problem well. Fixes: b67202e8ed30("crypto: hisilicon/qm - add state machine for QM") Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/qm.c

[PATCH v4 10/10] crypto: hisilicon/qm - fix the process of register algorithms to crypto

2020-08-04 Thread Yang Shen
When the devices are removed or not existing, the corresponding algorithms which are registered by 'hisi-zip' driver can't be used. Move 'hisi_zip_register_to_crypto' from 'hisi_zip_init' to 'hisi_zip_probe'. The algorithms will be registered to crypto only when there is device bind on the driver.

[PATCH v4 05/10] crypto: hisilicon/qm - fix event queue depth to 2048

2020-08-04 Thread Yang Shen
From: Shukun Tan Increasing depth of 'event queue' from 1024 to 2048, which equals to twice depth of 'completion queue'. It will fix the easily happened 'event queue overflow' as using 1024 queue depth for 'event queue'. Fixes: 263c9959c937("crypto: hisilicon - add queue management driver...") S

[PATCH v4 01/10] crypto: hisilicon/qm - fix wrong release after using strsep

2020-08-04 Thread Yang Shen
From: Sihang Chen Save the string address before pass to strsep, release it at end. Because strsep will update the string address to point after the token. Fixes: c31dc9fe165d("crypto: hisilicon/qm - add DebugFS for xQC and...") Signed-off-by: Sihang Chen Signed-off-by: Yang Shen Reviewed-by:

[PATCH v7 3/3] binder: add transaction latency tracer

2020-08-04 Thread Frankie Chang
From: "Frankie.Chang" Record start/end timestamp for binder transaction. When transaction is completed or transaction is free, it would be checked if transaction latency over threshold (default 2 sec), if yes, printing related information for tracing. /* Implement details */ - Add latency tracer

[PATCH v4 07/10] crypto: hisilicon/qm - fix VF not available after PF FLR

2020-08-04 Thread Yang Shen
From: Shukun Tan When PF FLR, the hardware will actively trigger the VF FLR. Configuration space of VF needs to be saved and restored to ensure that it is available after the PF FLR. Fixes: 7ce396fa12a9("crypto: hisilicon - add FLR support") Signed-off-by: Shukun Tan Signed-off-by: Yang Shen R

[PATCH] mtd: spi-nor: intel-spi: Do not try to make the SPI flash chip writable

2020-08-04 Thread Daniel Gutson
Currently, the intel-spi-pci driver tries to unconditionally set the SPI chip writeable. After discussing in the LKML, the original author decided that it was better to remove the attempt. Context, the intel-spi has a module argument that controls whether the driver attempts to turn the SPI flash

Re: [PATCH v2] ALSA: hda/hdmi: Add quirk to force connectivity

2020-08-04 Thread Takashi Iwai
On Tue, 04 Aug 2020 15:48:00 +0200, Kai-Heng Feng wrote: > > HDMI on some platforms doesn't enable audio support because its Port > Connectivity [31:30] is set to AC_JACK_PORT_NONE: > Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP > Amp-Out caps: ofs=0x00, nsteps=0x00, ste

Re: [PATCH 15/18] fsinfo: Add an attribute that lists all the visible mounts in a namespace [ver #21]

2020-08-04 Thread Miklos Szeredi
On Mon, Aug 03, 2020 at 02:38:34PM +0100, David Howells wrote: > Add a filesystem attribute that exports a list of all the visible mounts in > a namespace, given the caller's chroot setting. The returned list is an > array of: > > struct fsinfo_mount_child { > __u64 mnt_uniq

[RELEASE] LTTng-modules 2.11.5 and 2.12.2 (Linux kernel tracer)

2020-08-04 Thread Mathieu Desnoyers
Hi, The releases 2.11.5 and 2.12.2 of LTTng-modules are bug fix releases, which also add support for the recently released Linux kernel 5.8. The LTTng modules provide Linux kernel tracing capability to the LTTng tracer toolset. Project website: https://lttng.org Documentation: https://lttng.org/

Re: [PATCH] mtd: spi-nor: intel-spi: Do not try to make the SPI flash chip writable

2020-08-04 Thread Mika Westerberg
On Tue, Aug 04, 2020 at 10:58:17AM -0300, Daniel Gutson wrote: > Currently, the intel-spi-pci driver tries to unconditionally set > the SPI chip writeable. After discussing in the LKML, the original > author decided that it was better to remove the attempt. > > Context, the intel-spi has a module

[PATCH] arm64: Skip apply SSBS call for non SSBS system

2020-08-04 Thread Gaurav Kohli
In a system where no cpu's implement SSBS, for them no need to set pstate. This might help to save few cpu cycles during context switch. Signed-off-by: Gaurav Kohli diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 6089638..79f80f1 100644 --- a/arch/arm64/kernel/proces

[PATCH] nvmem: core: add support to NVMEM_NO_SYSFS_ENTRY

2020-08-04 Thread Gaurav Kohli
From: Srinivas Kandagatla Some users might not want to expose nvmem entry to sysfs and only intend to use kernel interface so add such provision. Signed-off-by: Srinivas Kandagatla --- Documentation/ABI/stable/sysfs-bus-nvmem | 2 ++ drivers/nvmem/Kconfig| 5 + dri

Re: [PATCH v2 01/24] virtio_balloon: fix sparse warning

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:58:38 -0400 "Michael S. Tsirkin" wrote: > balloon uses virtio32_to_cpu instead of cpu_to_virtio32 > to convert a native endian number to virtio. > No practical difference but makes sparse warn. > Fix it up. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/virtio/virt

Re: [PATCH v2 02/24] virtio_ring: sparse warning fixup

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:58:42 -0400 "Michael S. Tsirkin" wrote: > virtio_store_mb was built with split ring in mind so it accepts > __virtio16 arguments. Packed ring uses __le16 values, so sparse > complains. It's just a store with some barriers so let's convert it to > a macro, we don't loose too

Re: [PATCH] Platform lockdown information in SYSFS

2020-08-04 Thread Greg Kroah-Hartman
On Tue, Aug 04, 2020 at 10:50:13AM -0300, Daniel Gutson wrote: > On Tue, Aug 4, 2020 at 3:41 AM Greg Kroah-Hartman > wrote: > > > > On Mon, Aug 03, 2020 at 07:04:56PM -0300, Daniel Gutson wrote: > > > > > > Think of this as an input device. You don't put the random input > > > > > > attributes al

Re: [PATCH v2 03/24] virtio: allow __virtioXX, __leXX in config space

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:58:46 -0400 "Michael S. Tsirkin" wrote: > Currently all config space fields are of the type __uXX. > This confuses people and some drivers (notably vdpa) > access them using CPU endian-ness - which only > works well for legacy or LE platforms. > > Update virtio_cread/virtio

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-08-04 Thread peterz
On Tue, Aug 04, 2020 at 10:46:21AM -0300, Vitor Massaru Iha wrote: > On Tue, Aug 4, 2020 at 10:25 AM wrote: > > On Wed, Jul 29, 2020 at 06:57:17PM -0300, Vitor Massaru Iha wrote: > > > > > The results can be seen this way: > > > > > > This is an excerpt from the test.log with the result in TAP for

[PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard()

2020-08-04 Thread Coly Li
When some buggy driver doesn't set its queue->limits.discard_granularity (e.g. current loop device driver), discard at LBA 0 on such device will trigger a kernel BUG() panic from block/blk-mq.c:563. [ 955.565006][ C39] [ cut here ] [ 955.559660][ C39] invalid opcode:

Re: [PATCH v3 1/2] i2c: smbus: add core function handling SMBus host-notify

2020-08-04 Thread Pierre Yves MORDRET
Hi Alain Look good for me Reviewed-by: Pierre-Yves MORDRET Best Regards On 8/3/20 7:17 AM, Alain Volmat wrote: > SMBus Host-Notify protocol, from the adapter point of view > consist of receiving a message from a client, including the > client address and some other data. > > It can be simply

Re: [PATCH] iocost: Only inc nr_shortages when have io waited

2020-08-04 Thread Tejun Heo
On Sun, Aug 02, 2020 at 01:00:21AM +0800, Chengming Zhou wrote: > The last else branch of current code may have not io waited in iocg, > in which case we should not inc nr_shortages, or the device vrate > will speed up even this iocg is not shortage of vtime. > > Signed-off-by: Chengming Zhou > -

Re: [PATCH] nvmem: core: add support to NVMEM_NO_SYSFS_ENTRY

2020-08-04 Thread Gaurav Kohli
Please ignore this patch, some problem in my git send mail. Apologies for the spam. On 8/4/2020 7:44 PM, Gaurav Kohli wrote: From: Srinivas Kandagatla Some users might not want to expose nvmem entry to sysfs and only intend to use kernel interface so add such provision. Signed-off-by: Sriniv

[RFC v14 0/7] Implement Data Access Monitoring-based Memory Operation Schemes

2020-08-04 Thread SeongJae Park
From: SeongJae Park Changes from Previous Version = - Drop loadable module support - Use dedicated valid action checker function - Rebase on v5.8 plus v19 DAMON Introduction DAMON[1] can be used as a primitive for data access awared memory management op

[RFC v14 1/7] mm/damon: Account age of target regions

2020-08-04 Thread SeongJae Park
From: SeongJae Park DAMON can be used as a primitive for data access pattern aware memory management optimizations. However, users who want such optimizations should run DAMON, read the monitoring results, analyze it, plan a new memory management scheme, and apply the new scheme by themselves.

Re: [PATCH v2 04/24] virtio_9p: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:58:50 -0400 "Michael S. Tsirkin" wrote: > Tag config space fields as having virtio endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_9p.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Cornelia Huck

[RFC v14 3/7] mm/damon/schemes: Implement a debugfs interface

2020-08-04 Thread SeongJae Park
From: SeongJae Park This commit implements a debugfs interface for the data access monitoring oriented memory management schemes. It is supposed to be used by administrators and/or privileged user space programs. Users can read and update the rules using ``/damon/schemes`` file. The format is:

[RFC v14 2/7] mm/damon: Implement data access monitoring-based operation schemes

2020-08-04 Thread SeongJae Park
From: SeongJae Park In many cases, users might use DAMON for simple data access aware memory management optimizations such as applying an operation scheme to a memory region of a specific size having a specific access frequency for a specific time. For example, "page out a memory region larger t

[RFC v14 4/7] mm/damon/schemes: Implement statistics feature

2020-08-04 Thread SeongJae Park
From: SeongJae Park To tune the DAMON-based operation schemes, knowing how many and how large regions are affected by each of the schemes will be helful. Those stats could be used for not only the tuning, but also monitoring of the working set size and the number of regions, if the scheme does n

Re: [PATCH v2 05/24] virtio_balloon: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:58:55 -0400 "Michael S. Tsirkin" wrote: > Tag config space fields as having little endian-ness. > Note that balloon is special: LE even when using > the legacy interface. At least that is clearer now. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virt

[RFC v14 5/7] mm/damon/selftests: Add 'schemes' debugfs tests

2020-08-04 Thread SeongJae Park
From: SeongJae Park This commit adds simple selftets for 'schemes' debugfs file of DAMON. Signed-off-by: SeongJae Park --- .../testing/selftests/damon/debugfs_attrs.sh | 29 +++ 1 file changed, 29 insertions(+) diff --git a/tools/testing/selftests/damon/debugfs_attrs.sh b/to

[RFC v14 7/7] Docs/admin-guide/mm/damon: Document DAMON-based Operation Schemes

2020-08-04 Thread SeongJae Park
From: SeongJae Park This commit add description of DAMON-based operation schemes in the DAMON documents. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/guide.rst | 41 ++- Documentation/admin-guide/mm/damon/start.rst | 11 ++ Documentation/admin-guide/mm/damon/usage.

Re: [PATCH v4 0/2] Syscall User Redirection

2020-08-04 Thread Gabriel Krisman Bertazi
Pavel Machek writes: > Hi! > >> This is v4 of Syscall User Redirection. The implementation itself is >> not modified from v3, it only applies the latest round of reviews to the >> selftests. >> >> __NR_syscalls is not really exported in header files other than >> asm-generic for every architect

[RFC v14 6/7] damon/tools: Support more human friendly 'schemes' control

2020-08-04 Thread SeongJae Park
From: SeongJae Park This commit implements 'schemes' subcommand of the damon userspace tool. It can be used to describe and apply the data access monitoring-based operation schemes in more human friendly fashion. Signed-off-by: SeongJae Park --- tools/damon/_convert_damos.py | 141

Re: [PATCH v9 00/15] s390/vfio-ap: dynamic configuration support

2020-08-04 Thread Tony Krowiak
PING! On 7/20/20 11:03 AM, Tony Krowiak wrote: The current design for AP pass-through does not support making dynamic changes to the AP matrix of a running guest resulting in a few deficiencies this patch series is intended to mitigate: 1. Adapters, domains and control domains can not be added

Re: [PATCH v2 03/24] virtio: allow __virtioXX, __leXX in config space

2020-08-04 Thread Michael S. Tsirkin
On Tue, Aug 04, 2020 at 04:23:40PM +0200, Cornelia Huck wrote: > On Mon, 3 Aug 2020 16:58:46 -0400 > "Michael S. Tsirkin" wrote: > > > Currently all config space fields are of the type __uXX. > > This confuses people and some drivers (notably vdpa) > > access them using CPU endian-ness - which on

Re: [PATCH] nvmem: core: add NVMEM_SYSFS Kconfig

2020-08-04 Thread Gaurav Kohli
Please ignore this patch also, sent due to git send mistake. Apologies for the spam. On 8/4/2020 7:44 PM, Gaurav Kohli wrote: From: Srinivas Kandagatla Many nvmem providers are not very keen on having default sysfs nvmem entry, as most of the usecases for them are inside kernel itself. And in

Re: [PATCH v2 06/24] virtio_blk: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:58:59 -0400 "Michael S. Tsirkin" wrote: > Tag config space fields as having virtio endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_blk.h | 26 +- > 1 file changed, 13 insertions(+), 13 deletions(-) Reviewed-by:

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-04 Thread Mark Rutland
On Mon, Aug 03, 2020 at 11:57:57AM -0500, Madhavan T. Venkataraman wrote: > Responses inline.. > > On 7/31/20 1:09 PM, Mark Rutland wrote: > > Hi, > > > > On Tue, Jul 28, 2020 at 08:10:46AM -0500, madve...@linux.microsoft.com > > wrote: > >> From: "Madhavan T. Venkataraman" > >> Trampoline code

Re: [PATCH v17 21/21] mm/lru: revise the comments of lru_lock

2020-08-04 Thread Alexander Duyck
On Tue, Aug 4, 2020 at 3:04 AM Alex Shi wrote: > > > > 在 2020/8/4 上午6:37, Alexander Duyck 写道: > >> > >> shrink_inactive_list() also diverts any unevictable pages that it finds > >> on the > >> -inactive lists to the appropriate zone's unevictable list. > >> +inactive lists to the appropriate nod

Re: [PATCH v2 07/24] virtio_console: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:04 -0400 "Michael S. Tsirkin" wrote: > Tag config space fields as having virtio endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_console.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Cornelia Huck

Re: [PATCH v2 09/24] virtio_fs: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:13 -0400 "Michael S. Tsirkin" wrote: > Since fs is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_fs.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Review

Re: [PATCH v2 08/24] virtio_crypto: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:09 -0400 "Michael S. Tsirkin" wrote: > Since crypto is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_crypto.h | 26 +- > 1 file changed, 13 i

Re: [PATCH v2 10/24] virtio_gpu: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:18 -0400 "Michael S. Tsirkin" wrote: > Since gpu is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_gpu.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(

Re: [PATCH] net: Fix potential out of bound write in skb_try_coalesce()

2020-08-04 Thread Eric Dumazet
On Tue, Aug 4, 2020 at 4:46 AM linmiaohe wrote: > > From: Miaohe Lin > > The head_frag of skb would occupy one extra skb_frag_t. Take it into > account or out of bound write to skb frags may happen. > > Signed-off-by: Miaohe Lin Please share a stack trace if this was a real bug spotted in the w

Re: linux-next: Tree for Aug 4 (fs/mount_notify.c)

2020-08-04 Thread Randy Dunlap
On 8/4/20 1:41 AM, Stephen Rothwell wrote: > Hi all, > on i386 or x86_64: ../fs/mount_notify.c: In function 'notify_mount': ../fs/mount_notify.c:94:28: error: 'struct mount' has no member named 'mnt_unique_id'; did you mean 'mnt_group_id'? n.triggered_on = trigger->mnt_unique_id;

Re: [PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard()

2020-08-04 Thread Coly Li
On 2020/8/4 22:31, Johannes Thumshirn wrote: > On 04/08/2020 16:23, Coly Li wrote: >> This is the procedure to reproduce the panic, >> # modprobe scsi_debug delay=0 dev_size_mb=2048 max_queue=1 >> # losetup -f /dev/nvme0n1 --direct-io=on >> # blkdiscard /dev/loop0 -o 0 -l 0x200 > > losetup -

Re: [RFC PATCH 1/2] sched: Fix exit_mm vs membarrier

2020-08-04 Thread peterz
On Tue, Jul 28, 2020 at 12:00:09PM -0400, Mathieu Desnoyers wrote: > exit_mm should issue memory barriers after user-space memory accesses, > before clearing current->mm, to order user-space memory accesses > performed prior to exit_mm before clearing tsk->mm, which has the > effect of skipping the

Re: [PATCH v2 11/24] virtio_input: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:23 -0400 "Michael S. Tsirkin" wrote: > Since this is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_input.h | 18 +- > 1 file changed, 9 insertions(+)

Re: [PATCH v3 1/5] drm: mediatek: add ddp routing for mt7623

2020-08-04 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月4日 週二 下午7:00寫道: > > From: Frank Wunderlich > > on BPi-R2/mt7623 main-path have to be routed to DPI0 (hdmi) instead of DSI0 > using compatible "mt7623-mmsys" already defined in dts > > Signed-off-by: Frank Wunderlich > --- > drivers/gpu/drm/mediatek/mtk_drm_

Re: [PATCH v2 12/24] virtio_iommu: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:27 -0400 "Michael S. Tsirkin" wrote: > Since this is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_iommu.h | 12 ++-- > 1 file changed, 6 insertions(+), 6 de

Re: [PATCH 1/8] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-08-04 Thread Kirill Tkhai
On 04.08.2020 16:52, Eric W. Biederman wrote: > Kirill Tkhai writes: > >> On 04.08.2020 15:21, Eric W. Biederman wrote: >>> Kirill Tkhai writes: >>> Currently, every type of namespaces has its own counter, which is stored in ns-specific part. Say, @net has struct net::count, @pid

ERROR: "ap_driver_register" undefined!

2020-08-04 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c0842fbc1b18c7a044e6ff3e8fa78bfa822c7d1a commit: e93a1695d7fb551376b1c1220a267d032b6ad159 iommu: Enable compile testing for some of drivers date: 5 months ago config: s390-randconfig-m031-20200804

Re: [PATCH v2 13/24] virtio_mem: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:32 -0400 "Michael S. Tsirkin" wrote: > Since this is a modern-only device, > tag config space fields as having little endian-ness. > > TODO: check other uses of __virtioXX types in this header, > should probably be __leXX. Yes, I think so. > > Signed-off-by: Michael S

Re: [GIT PULL] Filesystem Information

2020-08-04 Thread Miklos Szeredi
On Tue, Aug 4, 2020 at 4:15 AM Ian Kent wrote: > > On Mon, 2020-08-03 at 18:42 +0200, Miklos Szeredi wrote: > > On Mon, Aug 3, 2020 at 5:50 PM David Howells > > wrote: > > > > > > Hi Linus, > > > > > > Here's a set of patches that adds a system call, fsinfo(), that > > > allows > > > information

RE: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-04 Thread David Laight
> > If you look at the libffi reference patch I have included, the architecture > > specific changes to use trampfd just involve a single C function call to > > a common code function. No idea what libffi is, but it must surely be simpler to rewrite it to avoid nested function definitions. Or fin

Re: [PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard()

2020-08-04 Thread Johannes Thumshirn
On 04/08/2020 16:34, Coly Li wrote: > On 2020/8/4 22:31, Johannes Thumshirn wrote: >> On 04/08/2020 16:23, Coly Li wrote: >>> This is the procedure to reproduce the panic, >>> # modprobe scsi_debug delay=0 dev_size_mb=2048 max_queue=1 >>> # losetup -f /dev/nvme0n1 --direct-io=on >>> # blkdisc

Re: hwmon: (sis5595) potential null pointer dereference in probe

2020-08-04 Thread Guenter Roeck
On 8/4/20 4:50 AM, Evgeny Novikov wrote: > sis5595_pci_probe() registers platform driver callbacks and just then > initializes global pointer variable s_bridge. sis5595_probe() may > dereference it before this happens that can result in null pointer > dereference. > sis5595_probe() is only called

Re: [PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard()

2020-08-04 Thread Johannes Thumshirn
On 04/08/2020 16:37, Johannes Thumshirn wrote: > On 04/08/2020 16:34, Coly Li wrote: >> On 2020/8/4 22:31, Johannes Thumshirn wrote: >>> On 04/08/2020 16:23, Coly Li wrote: This is the procedure to reproduce the panic, # modprobe scsi_debug delay=0 dev_size_mb=2048 max_queue=1 #

Re: [PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard()

2020-08-04 Thread Johannes Thumshirn
On 04/08/2020 16:23, Coly Li wrote: > This is the procedure to reproduce the panic, > # modprobe scsi_debug delay=0 dev_size_mb=2048 max_queue=1 > # losetup -f /dev/nvme0n1 --direct-io=on > # blkdiscard /dev/loop0 -o 0 -l 0x200 losetup -f /dev/sdX isn't it?

Re: [PATCH v3 3/5] drm: Add get_possible_crtc API for dpi, dsi

2020-08-04 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月4日 週二 下午7:00寫道: > > From: Stu Hsieh > > For current mediatek dsi encoder, its possible crtc is fixed in crtc > 0, and mediatek dpi encoder's possible crtc is fixed in crtc 1. In > some SoC the possible crtc is not fixed in this case, so search > pipeline info

iTCO watchdog last reboot reason?

2020-08-04 Thread Naveen Kumar P
[ Please keep me in CC as I'm not subscribed to the list] Hi everyone, I enabled the iTCO watchdog in my Linux system. sudo cat /dev/watchdog perfectly reboots my system. But, is there a way to find out on each boot if the machine was rebooted due to a watchdog timeout or not? Any ideas? Than

Re: [PATCH v3 4/5] drm/mediatek: dpi/dsi: change the getting possible_crtc way

2020-08-04 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月4日 週二 下午7:00寫道: > > From: Jitao Shi > > For current mediatek dsi encoder, its possible crtc is fixed in crtc > 0, and mediatek dpi encoder's possible crtc is fixed in crtc 1. In > some SoC the possible crtc is not fixed in this case, so call > mtk_drm_find_po

Re: [PATCH] Platform lockdown information in SYSFS

2020-08-04 Thread Greg Kroah-Hartman
On Tue, Aug 04, 2020 at 11:37:02AM -0300, Daniel Gutson wrote: > On Tue, Aug 4, 2020 at 11:23 AM Greg Kroah-Hartman < > gre...@linuxfoundation.org> wrote: > > > > On Tue, Aug 04, 2020 at 10:50:13AM -0300, Daniel Gutson wrote: > > > On Tue, Aug 4, 2020 at 3:41 AM Greg Kroah-Hartman > > > wrote: > >

Re: [PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard()

2020-08-04 Thread Coly Li
On 2020/8/4 22:37, Johannes Thumshirn wrote: > On 04/08/2020 16:34, Coly Li wrote: >> On 2020/8/4 22:31, Johannes Thumshirn wrote: >>> On 04/08/2020 16:23, Coly Li wrote: This is the procedure to reproduce the panic, # modprobe scsi_debug delay=0 dev_size_mb=2048 max_queue=1 # lo

Aw: Re: [PATCH v3 1/5] drm: mediatek: add ddp routing for mt7623

2020-08-04 Thread Frank Wunderlich
Hi, > Gesendet: Dienstag, 04. August 2020 um 16:34 Uhr > Von: "Chun-Kuang Hu" > > -static const enum mtk_ddp_comp_id mt2712_mtk_ddp_main[] = { > > +static enum mtk_ddp_comp_id mt2712_mtk_ddp_main[] = { > > Why do you remove 'const'? was removed by previous patch and not re-added (revert failed)

Re: [PATCH v2 14/24] virtio_net: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:37 -0400 "Michael S. Tsirkin" wrote: > Tag config space fields as having virtio endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_net.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/uapi/lin

Re: [PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard()

2020-08-04 Thread Coly Li
On 2020/8/4 22:39, Johannes Thumshirn wrote: > On 04/08/2020 16:37, Johannes Thumshirn wrote: >> On 04/08/2020 16:34, Coly Li wrote: >>> On 2020/8/4 22:31, Johannes Thumshirn wrote: On 04/08/2020 16:23, Coly Li wrote: > This is the procedure to reproduce the panic, > # modprobe scsi_

Re: [PATCH v1 3/3] kernel/configs: don't include PCI_QUIRKS in KVM guest configs

2020-08-04 Thread Alex Bennée
Marc Zyngier writes: > On 2020-08-04 13:44, Alex Bennée wrote: >> The VIRTIO_PCI support is an idealised PCI bus, we don't need a bunch >> of bloat for real world hardware for a VirtIO guest. > > Who says this guest will only have virtio devices? This is true - although what is the point of kv

RE: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-04 Thread David Laight
> > > If you look at the libffi reference patch I have included, the > > > architecture > > > specific changes to use trampfd just involve a single C function call to > > > a common code function. > > No idea what libffi is, but it must surely be simpler to > rewrite it to avoid nested function d

Re: [PATCH v2 15/24] virtio_pmem: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:41 -0400 "Michael S. Tsirkin" wrote: > Since this is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_pmem.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [RFC PATCH v1 0/3] put arm64 kvm_config on a diet

2020-08-04 Thread Alex Bennée
Ard Biesheuvel writes: > On Tue, 4 Aug 2020 at 14:45, Alex Bennée wrote: >> >> Hi, >> >> When building guest kernels for virtualisation we were bringing in a >> bunch of stuff from physical hardware which we don't need for our >> idealised fixable virtual PCI devices. This series makes some Kc

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-08-04 Thread Kirill Tkhai
On 04.08.2020 08:43, Andrei Vagin wrote: > On Thu, Jul 30, 2020 at 06:01:20PM +0300, Kirill Tkhai wrote: >> On 30.07.2020 17:34, Eric W. Biederman wrote: >>> Kirill Tkhai writes: >>> Currently, there is no a way to list or iterate all or subset of namespaces in the system. Some namespace

Re: [PATCH v2 16/24] virtio_scsi: correct tags for config space fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:45 -0400 "Michael S. Tsirkin" wrote: > Tag config space fields as having virtio endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/scsi/virtio_scsi.c | 4 ++-- > include/uapi/linux/virtio_scsi.h | 20 ++-- > 2 files changed, 12 in

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-04 Thread Madhavan T. Venkataraman
On 8/4/20 9:33 AM, David Laight wrote: >>> If you look at the libffi reference patch I have included, the architecture >>> specific changes to use trampfd just involve a single C function call to >>> a common code function. > No idea what libffi is, but it must surely be simpler to > rewrite it

Re: [RFC PATCH 1/2] sched: Fix exit_mm vs membarrier

2020-08-04 Thread Mathieu Desnoyers
- On Aug 4, 2020, at 10:34 AM, Peter Zijlstra pet...@infradead.org wrote: > On Tue, Jul 28, 2020 at 12:00:09PM -0400, Mathieu Desnoyers wrote: >> exit_mm should issue memory barriers after user-space memory accesses, >> before clearing current->mm, to order user-space memory accesses >> per

Re: [PATCH 4/9] drm/msm/dsi: Add phy configuration for SDM630/636/660

2020-08-04 Thread Rob Clark
On Tue, Aug 4, 2020 at 5:09 AM Vinod Koul wrote: > > On 03-08-20, 09:06, Rob Clark wrote: > > On Mon, Aug 3, 2020 at 4:00 AM Vinod Koul wrote: > > > > > > On 26-07-20, 13:12, Konrad Dybcio wrote: > > > > These SoCs make use of the 14nm phy, but at different > > > > addresses than other 14nm units

Re: hwmon: (sis5595) potential null pointer dereference in probe

2020-08-04 Thread Evgeny Novikov
04.08.2020, 17:33, "Guenter Roeck" : > On 8/4/20 4:50 AM, Evgeny Novikov wrote: >>  sis5595_pci_probe() registers platform driver callbacks and just then >>  initializes global pointer variable s_bridge. sis5595_probe() may >>  dereference it before this happens that can result in null pointer >>  

Re: [PATCH v2 4/5] perf record: Don't clear event's period if set by a term

2020-08-04 Thread Adrian Hunter
On 4/08/20 4:33 pm, Ian Rogers wrote: > On Tue, Aug 4, 2020 at 3:08 AM Adrian Hunter wrote: >> >> On 28/07/20 11:57 am, Ian Rogers wrote: >>> If events in a group explicitly set a frequency or period with leader >>> sampling, don't disable the samples on those events. >>> >>> Prior to 5.8: >>> per

Re: [PATCH v2 17/24] virtio_config: disallow native type fields

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 16:59:57 -0400 "Michael S. Tsirkin" wrote: > Transitional devices should all use __virtioXX types. I think they should use __leXX for those fields that are not present with legacy devices? > Modern ones should use __leXX. > _uXX type would be a bug. > Let's prevent that. Tha

Re: [RFC PATCH 2/2] sched: membarrier: cover kthread_use_mm

2020-08-04 Thread peterz
On Tue, Jul 28, 2020 at 12:00:10PM -0400, Mathieu Desnoyers wrote: > Add comments and memory barrier to kthread_use_mm and kthread_unuse_mm > to allow the effect of membarrier(2) to apply to kthreads accessing > user-space memory as well. > > Given that no prior kthread use this guarantee and that

Re: [PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard()

2020-08-04 Thread Johannes Thumshirn
On 04/08/2020 16:45, Coly Li wrote: > Yes, Ming just posts a patch with a very similar change to loop device > driver. Ah ok. I'll go and have a look at Ming's patch then.

RE: [PATCH 4.19 00/56] 4.19.137-rc1 review

2020-08-04 Thread Chris Paterson
Hi Pavel, > From: stable-ow...@vger.kernel.org On > Behalf Of Pavel Machek > Sent: 04 August 2020 08:46 > > *** gpg4o | The signature of this email could not be verified because the > following public key is missing. Click here to search and import the key > 30E7F06A95DBFAF2 *** > > Hi! > > > Thi

[PATCH 2/6] clk: axi-clkgen: Set power bits for fractional mode

2020-08-04 Thread Alexandru Ardelean
From: Lars-Peter Clausen Using the fractional dividers requires some additional power bits to be set. The fractional power bits are not documented and the current heuristic for setting them seems be insufficient for some cases. Just always set all the fractional power bits when in fractional mod

[PATCH] staging: wlan-ng: fix out of bounds read in prism2sta_probe_usb()

2020-08-04 Thread Rustam Kovhaev
let's use usb_find_common_endpoints() to discover endpoints, it does all necessary checks for type and xfer direction remove memset() in hfa384x_create(), because we now assign endpoints in prism2sta_probe_usb() and because create_wlan() uses kzalloc() to allocate hfa384x struct before calling hfa

Re: [PATCH v2 18/24] mlxbf-tmfifo: sparse tags for config access

2020-08-04 Thread Cornelia Huck
On Mon, 3 Aug 2020 17:00:01 -0400 "Michael S. Tsirkin" wrote: > mlxbf-tmfifo accesses config space using native types - > which works for it since the legacy virtio native types. > > This will break if it ever needs to support modern virtio, > so with new tags previously introduced for virtio ne

Re: [PATCH 0/8] namespaces: Introduce generic refcount

2020-08-04 Thread Christian Brauner
On Tue, Aug 04, 2020 at 08:21:51AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Tue, Aug 04, 2020 at 07:11:59AM -0500, Eric W. Biederman wrote: > >> Christian Brauner writes: > >> > >> > On Mon, Aug 03, 2020 at 01:16:10PM +0300, Kirill Tkhai wrote: > >> >> Every namespac

Re: [PATCH 0/8] namespaces: Introduce generic refcount

2020-08-04 Thread Eric W. Biederman
Christian Brauner writes: > On Mon, Aug 03, 2020 at 01:16:10PM +0300, Kirill Tkhai wrote: >> Every namespace type has its own counter. Some of them are >> of refcount_t, some of them are of kref. >> >> This patchset introduces generic ns_common::count for any >> type of namespaces instead of the

[PATCH] staging: wfx: fixed misspelled word in comment

2020-08-04 Thread Aditya Bansal
From: Aditya Bansal Subject: [PATCH] fixed typo in driver/staging/wfx/hif_tx.c file Correct the spelling of function Signed-off-by: Aditya Bansal --- diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index 5110f9b93762..6a485fa5b72b 100644 --- a/drivers/staging/wfx/hif_

Re: [PATCH v1 3/3] kernel/configs: don't include PCI_QUIRKS in KVM guest configs

2020-08-04 Thread Marc Zyngier
On 2020-08-04 15:44, Alex Bennée wrote: Marc Zyngier writes: On 2020-08-04 13:44, Alex Bennée wrote: The VIRTIO_PCI support is an idealised PCI bus, we don't need a bunch of bloat for real world hardware for a VirtIO guest. Who says this guest will only have virtio devices? This is true -

Re: [PATCH V2 00/12] perf intel-pt: Add support for decoding FUP/TIP only

2020-08-04 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 04, 2020 at 04:34:36PM +0300, Adrian Hunter escreveu: > On 10/07/20 6:10 pm, Adrian Hunter wrote: > > Hi > > > > Here are some fixes and small improvements for Intel PT. > > Andi added his "Reviewed-by" with 2 comments to tweak the > documentation. > > The patches still apply, so do

Re: [RFC PATCH 2/2] sched: membarrier: cover kthread_use_mm

2020-08-04 Thread Mathieu Desnoyers
- On Aug 4, 2020, at 10:51 AM, Peter Zijlstra pet...@infradead.org wrote: > On Tue, Jul 28, 2020 at 12:00:10PM -0400, Mathieu Desnoyers wrote: >> Add comments and memory barrier to kthread_use_mm and kthread_unuse_mm >> to allow the effect of membarrier(2) to apply to kthreads accessing >> use

Re: [PATCH v3 5/5] arm: dts: mt7623: add display subsystem related device nodes

2020-08-04 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月4日 週二 下午7:00寫道: > > From: Ryder Lee > > Add display subsystem related device nodes for MT7623. > > Cc: CK Hu > Signed-off-by: chunhui dai > Signed-off-by: Bibby Hsieh > Signed-off-by: Ryder Lee > Signed-off-by: Frank Wunderlich > Tested-by: Frank Wunderl

Re: [PATCH v3 2/2] i2c: stm32f7: Add SMBus Host-Notify protocol support

2020-08-04 Thread Pierre Yves MORDRET
Hi Alain Look good for me Reviewed-by: Pierre-Yves MORDRET Best Regards On 8/3/20 7:17 AM, Alain Volmat wrote: > Rely on the core functions to implement the host-notify > protocol via the a I2C slave device. > > Signed-off-by: Alain Volmat > --- > v3: identical to v2 > v2: fix slot #0 usag

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