Re: [PATCH v6] gpio: pca953x: Add Maxim MAX7313 PWM support

2020-06-29 Thread Miquel Raynal
Hi Uwe, Uwe Kleine-König wrote on Mon, 29 Jun 2020 21:50:44 +0200: > On Mon, Jun 29, 2020 at 04:08:44PM +0200, Miquel Raynal wrote: > > Hello Uwe, Thierry, > > > > Miquel Raynal wrote on Sun, 3 May 2020 > > 12:54:53 +0200: > > > > > The MAX7313 chip is fully compatible with the PCA9535 on

Re: [PATCH v4 12/23] ASoC: simple-card: Support DPCM DAI link with multiple Codecs

2020-06-29 Thread Kuninori Morimoto
Hi Sameer Thank you for explaining detail at off-list mail. Your issue happen on (C) case, and you are tring to solve it. It is easy to understand if it was indicated at log area. I have imagined other system from "multiple CPU/Codec support". (A)(B) FE <-> BE (C)

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-06-29 Thread Marcel Holtmann
Hi Archie, >>> There is a possibility that an ACL packet is received before we >>> receive the HCI connect event for the corresponding handle. If this >>> happens, we discard the ACL packet. >>> >>> Rather than just ignoring them, this patch provides a queue for >>> incoming ACL packet without a

[PATCH v2] net: qrtr: free flow in __qrtr_node_release

2020-06-29 Thread Carl Huang
The flow is allocated in qrtr_tx_wait, but not freed when qrtr node is released. (*slot) becomes NULL after radix_tree_iter_delete is called in __qrtr_node_release. The fix is to save (*slot) to a vairable and then free it. This memory leak is catched when kmemleak is enabled in kernel, the report

Re: [PATCH v3 00/15] HWPOISON: soft offline rework

2020-06-29 Thread 堀口 直也
On Mon, Jun 29, 2020 at 12:29:25PM +0200, Oscar Salvador wrote: > On Wed, 2020-06-24 at 15:01 +, nao.horigu...@gmail.com wrote: > > I rebased soft-offline rework patchset [1][2] onto the latest > > mmotm. The > > rebasing required some non-trivial changes to adjust, but mainly that > > was > >

Re: [PATCH v1] Bluetooth: Fix kernel oops triggered by hci_adv_monitors_clear()

2020-06-29 Thread Marcel Holtmann
Hi Miao-chen, > This fixes the kernel oops by removing unnecessary background scan > update from hci_adv_monitors_clear() which shouldn't invoke any work > queue. > > The following test was performed. > - Run "rmmod btusb" and verify that no kernel oops is triggered. > > Signed-off-by: Miao-chen

Re: [RFC PATCH v1 2/2] Bluetooth: queue L2CAP conn req if encryption is needed

2020-06-29 Thread Marcel Holtmann
Hi Luiz, > It is possible to receive an L2CAP conn req for an encrypted > connection, before actually receiving the HCI change encryption > event. If this happened, the received L2CAP packet will be ignored. >>> >>> How is this possible? Or you are referring to a race between the ACL

[PATCH v3.1 7/7] kconfig: qconf: navigate menus on hyperlinks

2020-06-29 Thread Mauro Carvalho Chehab
Instead of just changing the helper window to show a dependency, also navigate to it at the config and menu widgets. Signed-off-by: Mauro Carvalho Chehab --- I ended re-sending the same version as on patch series 2. Please consider this patch instead. diff --git a/scripts/kconfig/qconf.cc b/s

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-06-29 Thread Archie Pusaka
Hi Marcel, On Mon, 29 Jun 2020 at 14:40, Marcel Holtmann wrote: > > Hi Archie, > > > There is a possibility that an ACL packet is received before we > > receive the HCI connect event for the corresponding handle. If this > > happens, we discard the ACL packet. > > > > Rather than just ignoring th

[PATCH] kconfig: qconf: parse newer types at debug info

2020-06-29 Thread Mauro Carvalho Chehab
There are 3 types that are not parsed by the debug info logic. Add support for them. Signed-off-by: Mauro Carvalho Chehab --- scripts/kconfig/qconf.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index fd721c6c4c94..4a616128a154 10064

Re: [EXT] Re: [PATCH 1/2] arm64: dts: ls1088a: add more thermal zone support

2020-06-29 Thread Amit Kucheria
On Tue, Jun 30, 2020 at 12:07 PM Andy Tang wrote: > > > > > -Original Message- > > From: Amit Kucheria > > Sent: 2020年6月30日 13:37 > > To: Andy Tang > > Cc: Shawn Guo ; Leo Li ; Rob > > Herring ; lakml ; > > open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS > > ; LKML > > Subjec

RE: [PATCH] ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp

2020-06-29 Thread Lu, Brent
> > Support MAX98390 speaker amplifier on cometlake platform. Driver now > detects amplifier type in the probe function and installs corresponding > controls and DAPM widgets/routes in the late_probe function. > > Signed-off-by: Brent Lu This patch is from Chrome-v4.19 branch to support the com

Re: [PATCH v3 4/8] mm/hugetlb: make hugetlb migration callback CMA aware

2020-06-29 Thread Michal Hocko
On Tue 30-06-20 15:30:04, Joonsoo Kim wrote: > 2020년 6월 29일 (월) 오후 4:55, Michal Hocko 님이 작성: [...] > > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > > index 57ece74e3aae..c1595b1d36f3 100644 > > --- a/mm/hugetlb.c > > +++ b/mm/hugetlb.c > > @@ -1092,10 +1092,14 @@ static struct page > > *dequeue_huge

Re: [PATCH 4/4] i2c: stm32f7: Add SMBus-specific protocols support

2020-06-29 Thread Wolfram Sang
Hi Alain, > > So, as mentioned in the other review, I'd like to evaluate other > > possibilities for the above: > > > > - One option is to enable it globally in probe(). Then you lose the > > possibility to have a device at address 0x08. > > I'd prefer avoid this solution to not lose the addre

Re: [RFC PATCH 00/10] Netronix embedded controller driver for Kobo and Tolino ebook readers

2020-06-29 Thread Andreas Kemnade
Hi, On Sun, 21 Jun 2020 00:39:04 +0200 Jonathan Neuschäfer wrote: > Hi, > > This patchset adds basic support for the embedded controller found on > older ebook reader boards designed by/with the ODM Netronix Inc.[1] and > sold by Kobo or Tolino, for example the Kobo Aura and the Tolino Shine. >

RE: [RFC PATCH v3 0/5] scsi: ufs: Add Host Performance Booster Support

2020-06-29 Thread Avri Altman
Hi, > > Hi Bean, > > On Mon, 2020-06-29 at 15:15 +0900, Daejun Park wrote: > > > > Seems you intentionally ignored to give you comments on my > > > > suggestion. > > > > let me provide the reason. > > > > > > Sorry! I replied to your comment ( > > > https://protect2.fireeye.com/url?k=be575021-e3

[PATCH] ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp

2020-06-29 Thread Brent Lu
Support MAX98390 speaker amplifier on cometlake platform. Driver now detects amplifier type in the probe function and installs corresponding controls and DAPM widgets/routes in the late_probe function. Signed-off-by: Brent Lu --- sound/soc/intel/boards/Kconfig| 20 soun

RE: [EXT] Re: [PATCH 1/2] arm64: dts: ls1088a: add more thermal zone support

2020-06-29 Thread Andy Tang
> -Original Message- > From: Amit Kucheria > Sent: 2020年6月30日 13:37 > To: Andy Tang > Cc: Shawn Guo ; Leo Li ; Rob > Herring ; lakml ; > open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS > ; LKML > Subject: Re: [EXT] Re: [PATCH 1/2] arm64: dts: ls1088a: add more thermal > zone

[PATCH net] hinic: fix passing non negative value to ERR_PTR

2020-06-29 Thread Luo bin
get_dev_cap and set_resources_state functions may return a positive value because of hardware failure, and the positive return value can not be passed to ERR_PTR directly. Fixes: 7dd29ee12865 ("net-next/hinic: add sriov feature support") Signed-off-by: Luo bin --- drivers/net/ethernet/huawei/hin

Re: [RFC PATCH 0/6] Support raw event and DT for perf on RISC-V

2020-06-29 Thread Zong Li
On Mon, Jun 29, 2020 at 9:23 PM Anup Patel wrote: > > On Mon, Jun 29, 2020 at 6:23 PM Zong Li wrote: > > > > On Mon, Jun 29, 2020 at 4:28 PM Anup Patel wrote: > > > > > > On Mon, Jun 29, 2020 at 11:22 AM Zong Li wrote: > > > > > > > > On Mon, Jun 29, 2020 at 12:53 PM Anup Patel wrote: > > > >

RE: [EXT] Re: [PATCH v4 2/2] ARM: imx6plus: enable internal routing of clk_enet_ref where possible

2020-06-29 Thread Andy Duan
From: Sven Van Asbroeck Sent: Monday, June 29, 2020 10:37 PM > On Mon, Jun 29, 2020 at 10:26 AM Fabio Estevam > wrote: > > > > Just tested 5.4.24_2.1.0 on an imx6qp sabresd and DHCP also fails there. > > I think I discovered the problem ! > > When I compare the sabresd devicetree on mainline w

[PATCH] input: misc: remove needless check before usb_free_coherent()

2020-06-29 Thread Chen Ni
From: Xu Wang usb_free_coherent() is safe with NULL addr and this check is not required. Signed-off-by: Xu Wang --- drivers/input/misc/cm109.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/input/misc/cm109.c b/drivers/input/misc/cm109.c index c09b9628ad34.

Re: [PATCH v3 00/15] HWPOISON: soft offline rework

2020-06-29 Thread Oscar Salvador
On Tue, 2020-06-30 at 01:08 -0400, Qian Cai wrote: > On Wed, Jun 24, 2020 at 03:01:22PM +, nao.horigu...@gmail.com > wrote: > > I rebased soft-offline rework patchset [1][2] onto the latest > > mmotm. The > > rebasing required some non-trivial changes to adjust, but mainly > > that was > > str

Re: [PATCH 6/6] mm: Add memalloc_nowait

2020-06-29 Thread Michal Hocko
On Mon 29-06-20 22:28:30, Matthew Wilcox wrote: [...] > The documentation is hard to add a new case to, so I rewrote it. What > do you think? (Obviously I'll split this out differently for submission; > this is just what I have in my tree right now). I am fine with your changes. Few notes below.

Re: [PATCH] Remove handhelds.org links and email addresses

2020-06-29 Thread Alexander A. Klimov
Am 29.06.20 um 23:10 schrieb Wolfram Sang: Hi Alexander, thanks for trying to fix this, yet I have some doubts. On Mon, Jun 29, 2020 at 10:31:21PM +0200, Alexander A. Klimov wrote: Rationale: https://lore.kernel.org/linux-doc/20200626110706.7b5d4...@lwn.net/ I think we need some text here

Re: [PATCH 04/16] net: bpfilter: use 'userprogs' syntax to build bpfilter_umh

2020-06-29 Thread Masahiro Yamada
Hi Michal, Alexei, On Mon, Jun 8, 2020 at 8:56 PM Michal Kubecek wrote: > > On Thu, Apr 23, 2020 at 04:39:17PM +0900, Masahiro Yamada wrote: > > The user mode helper should be compiled for the same architecture as > > the kernel. > > > > This Makefile reuses the 'hostprogs' syntax by overriding H

[PATCH v5 bpf-next 2/4] bpf: introduce helper bpf_get_task_stack()

2020-06-29 Thread Song Liu
Introduce helper bpf_get_task_stack(), which dumps stack trace of given task. This is different to bpf_get_stack(), which gets stack track of current task. One potential use case of bpf_get_task_stack() is to call it from bpf_iter__task and dump all /proc//stack to a seq_file. bpf_get_task_stack()

[PATCH v5 bpf-next 1/4] perf: expose get/put_callchain_entry()

2020-06-29 Thread Song Liu
Sanitize and expose get/put_callchain_entry(). This would be used by bpf stack map. Suggested-by: Peter Zijlstra Acked-by: Andrii Nakryiko Signed-off-by: Song Liu --- include/linux/perf_event.h | 2 ++ kernel/events/callchain.c | 13 ++--- 2 files changed, 8 insertions(+), 7 deletion

Re: Re: Upstream fixes not merged in 5.4.y

2020-06-29 Thread SeongJae Park
On Mon, 29 Jun 2020 18:15:42 +0200 Greg KH wrote: > On Mon, Jun 29, 2020 at 04:28:05PM +0200, SeongJae Park wrote: > > Hello, > > > > > > With my little script, I found below commits in the mainline tree are more > > than > > 1 week old and fixing commits that back-ported in v5.4..v5.4.49, but

Re: [PATCH v3 4/8] mm/hugetlb: make hugetlb migration callback CMA aware

2020-06-29 Thread Joonsoo Kim
2020년 6월 29일 (월) 오후 4:55, Michal Hocko 님이 작성: > > On Mon 29-06-20 15:27:25, Joonsoo Kim wrote: > [...] > > Solution that Introduces a new > > argument doesn't cause this problem while avoiding CMA regions. > > My primary argument is that there is no real reason to treat hugetlb > dequeing somehow d

[PATCH v5 bpf-next 0/4] bpf: introduce bpf_get_task_stack()

2020-06-29 Thread Song Liu
This set introduces a new helper bpf_get_task_stack(). The primary use case is to dump all /proc/*/stack to seq_file via bpf_iter__task. A few different approaches have been explored and compared: 1. A simple wrapper around stack_trace_save_tsk(), as v1 [1]. This approach introduces new s

[PATCH 6/9] media: mtk-vcodec: vdec: support stateless H.264 decoding

2020-06-29 Thread Alexandre Courbot
From: Yunfei Dong Add support for H.264 decoding using the stateless API, as supported by MT8183. This support takes advantage of the V4L2 H.264 reference list builders. Signed-off-by: Yunfei Dong [acourbot: refactor, cleanup and split] Co-developed-by: Alexandre Courbot Signed-off-by: Alexand

[PATCH 5/9] media: mtk-vcodec: vdec: support stateless API

2020-06-29 Thread Alexandre Courbot
From: Yunfei Dong Support the stateless codec API that will be used by MT8183. Signed-off-by: Yunfei Dong [acourbot: refactor, cleanup and split] Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot --- drivers/media/platform/mtk-vcodec/Makefile| 1 + .../platform/mtk-vc

[PATCH 9/9] dt-bindings: media: document mediatek,mt8183-vcodec-dec

2020-06-29 Thread Alexandre Courbot
MT8183's decoder is instantiated similarly to MT8173's. Signed-off-by: Alexandre Courbot --- Documentation/devicetree/bindings/media/mediatek-vcodec.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt b/Documentation/devicetree/bin

[PATCH 8/9] media: mtk-vcodec: enable MT8183 decoder

2020-06-29 Thread Alexandre Courbot
From: Yunfei Dong Now that all the supporting blocks are present, enable decoder for MT8183. Signed-off-by: Yunfei Dong [acourbot: refactor, cleanup and split] Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 5 +

[PATCH 4/9] media: add Mediatek's MM21 format

2020-06-29 Thread Alexandre Courbot
Add Mediatek's non-compressed 8 bit block video mode. This format is produced by the MT8183 codec and can be converted to a non-proprietary format by the MDP3 component. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/uapi/linux/videodev2.h | 1 + 2

[PATCH 3/9] media: mtk-vcodec: support version 2 of decoder firmware ABI

2020-06-29 Thread Alexandre Courbot
Add support for decoder firmware version 2, which makes the kernel responsible for managing the VSI context and is used for stateless codecs. Signed-off-by: Alexandre Courbot --- .../media/platform/mtk-vcodec/vdec_ipi_msg.h | 18 +--- .../media/platform/mtk-vcodec/vdec_vpu_if.c | 28 +

[PATCH 7/9] media: mtk-vcodec: vdec: add media device if using stateless api

2020-06-29 Thread Alexandre Courbot
From: Yunfei Dong The stateless API requires a media device for issuing requests. Add one if we are being instantiated as a stateless decoder. Signed-off-by: Yunfei Dong [acourbot: refactor, cleanup and split] Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot --- drivers/me

Re: [PATCH] rtc: max77686: Do not allow interrupt to fire before system resume

2020-06-29 Thread Krzysztof Kozlowski
On Tue, Jun 30, 2020 at 12:23:53AM +0200, Alexandre Belloni wrote: > Hi, > > On 15/06/2020 18:14:55+0200, Krzysztof Kozlowski wrote: > > The rtc-max77686 device shares the main interrupt line with parent MFD > > device (max77686 driver). During the system suspend, the parent MFD > > device disabl

[PATCH 2/9] media: mtk-vcodec: vdec: handle firmware version field

2020-06-29 Thread Alexandre Courbot
Firmwares for decoders newer than MT8173 will include an ABI version number in their initialization ack message. Add the capacity to manage it and make initialization fail if the firmware ABI is of a version that we don't support. For MT8173, this ABI version field does not exist ; thus ignore it

[PATCH v3 6/7] kconfig: qconf: don't show goback button on splitMode

2020-06-29 Thread Mauro Carvalho Chehab
the goback button does nothing on splitMode. So, why display it? Signed-off-by: Mauro Carvalho Chehab --- scripts/kconfig/qconf.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index e43fe4dcd4e7..6a327b69ff5f 100644

Re: [PATCH v2] ARM: dts: exynos: Fix missing empty reg/ranges property regulators on Trats

2020-06-29 Thread Marek Szyprowski
Hi Krzysztof, On 29.06.2020 22:59, Krzysztof Kozlowski wrote: > Remove the regulators node entirely because its children do not have any > unit addresses. This fixes DTC warning: > > Warning (simple_bus_reg): /regulators/regulator-0: missing or empty > reg/ranges property > > Signed-off-by:

[PATCH v3 5/7] kconfig: qconf: simplify the goBack() logic

2020-06-29 Thread Mauro Carvalho Chehab
The goBack() logic is used only for the configList, as it only makes sense on singleMode. So, let's simplify the code. Signed-off-by: Mauro Carvalho Chehab --- scripts/kconfig/qconf.cc | 50 +++- 1 file changed, 18 insertions(+), 32 deletions(-) diff --git a/

[PATCH v3 3/7] kconfig: qconf: make debug links work again

2020-06-29 Thread Mauro Carvalho Chehab
The Qt5 conversion broke support for debug info links. Restore the behaviour added by changeset ab45d190fd4a ("kconfig: create links in info window"). The original approach was to pass a pointer for a data struct via an . That doesn't sound a good idea, as, if something gets wrong, the app could

[PATCH v3 7/7] kconfig: qconf: navigate menus on hyperlinks

2020-06-29 Thread Mauro Carvalho Chehab
Instead of just changing the helper window to show a dependency, also navigate to it at the config and menu widgets. Signed-off-by: Mauro Carvalho Chehab --- scripts/kconfig/qconf.cc | 24 +--- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/scripts/kconfig/qco

[PATCH v3 4/7] kconfig: qconf: re-implement setSelected()

2020-06-29 Thread Mauro Carvalho Chehab
The default implementation for setSelected() at QTreeWidgetItem allows multiple items to be selected. Well, this should never be possible for the configItem lists. So, implement a function that will automatically clean any previous selection. This simplifies the logic somewhat, while making the s

[PATCH 1/9] media: mtk-vcodec: vdec: move stateful ops into their own file

2020-06-29 Thread Alexandre Courbot
From: Yunfei Dong We are planning to add support for stateless decoders to this driver. Part of the driver will be shared between stateful and stateless codecs, but a few ops need to be specialized for both. Extract the stateful part of the driver and move it into its own file, accessible through

[PATCH 0/9] media: mtk-vcodec: vdec: support for MT8183

2020-06-29 Thread Alexandre Courbot
This patch series adds support for the H.264 stateless decoder found in MT8183. It depends on the MT8183 encoder support series [1] and should thus be applied on top of it. Contrary to MT8173 which is stateful, MT8183 is a stateless decoder. So the first patches take care of splitting the stateful

[PATCH v3 2/7] kconfig: qconf: make search fully work again on split mode

2020-06-29 Thread Mauro Carvalho Chehab
When the search dialog box finds symbols/menus that match the search criteria, it presents all results at the window. Clicking on a search result should make qconf to navigate to the selected item. This works on singleMode and on fullMode, but on splitMode, the navigation is broken. This was part

[PATCH v3 0/7] Fix split view search and debug info navigation

2020-06-29 Thread Mauro Carvalho Chehab
This series fixes some issues with search while on split view and fix the broken hyperlink navigation. The first patches restore the pre-Qt5 conversion behavior. The last one implements navigation on a different way. I opted to keep this one in separate, as this one is a new feature. - v3: - dr

[PATCH v3 1/7] kconfig: qconf: cleanup includes

2020-06-29 Thread Mauro Carvalho Chehab
The usage of c-like include is deprecated on modern Qt versions. Use the c++ style includes. While here, remove uneeded and redundant ones, sorting them on alphabetic order. Signed-off-by: Mauro Carvalho Chehab --- scripts/kconfig/qconf.cc | 27 +-- scripts/kconfig/qconf

Re: [PATCH v2 5/5] kconfig: qconf: navigate menus on hyperlinks

2020-06-29 Thread Mauro Carvalho Chehab
Em Tue, 30 Jun 2020 12:36:27 +0900 Masahiro Yamada escreveu: > On Mon, Jun 29, 2020 at 6:35 PM Mauro Carvalho Chehab > wrote: > > > > Instead of just changing the helper window to show a > > dependency, also navigate to it at the config and menu > > widgets. > > > > Signed-off-by: Mauro Carvalho

[PATCH] MAINTAINERS: update Amit Kucheria's email to a single email address

2020-06-29 Thread Amit Kucheria
Emails currently go to different mailboxes. Switch to the kernel.org address so I can forward them to a single mailbox. Signed-off-by: Amit Kucheria --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 2 +- MAINTAINERS | 4 ++-- 2 files c

RE: [PATCH 4/4] iommu/vt-d: Add page response ops support

2020-06-29 Thread Tian, Kevin
> From: Lu Baolu > Sent: Sunday, June 28, 2020 8:34 AM > > After a page request is handled, software must response the device which > raised the page request with the handling result. This is done through > the iommu ops.page_response if the request was reported to outside of > vendor iommu drive

Re: [PATCH v2 00/15] Make the user mode driver code a better citizen

2020-06-29 Thread Tetsuo Handa
On 2020/06/30 10:13, Eric W. Biederman wrote: > Alexei Starovoitov writes: > >> On Mon, Jun 29, 2020 at 02:55:05PM -0500, Eric W. Biederman wrote: >>> >>> I have tested thes changes by booting with the code compiled in and >>> by killing "bpfilter_umh" and running iptables -vnL to restart >>> the

Re: wait_on_page_bit_common(TASK_KILLABLE, EXCLUSIVE) can miss wakeup?

2020-06-29 Thread Oleg Nesterov
On 06/30, Nicholas Piggin wrote: > Excerpts from Oleg Nesterov's message of June 30, 2020 12:02 am: > > On 06/29, Nicholas Piggin wrote: > >> > >> prepare_to_wait_event() has a pretty good pattern (and comment), I would > >> favour using that (test the signal when inserting on the waitqueue). > >>

Re: [PATCH v4 bpf-next 2/4] bpf: introduce helper bpf_get_task_stack()

2020-06-29 Thread Song Liu
> On Jun 29, 2020, at 9:18 PM, Alexei Starovoitov > wrote: > > On Sun, Jun 28, 2020 at 10:58 PM Song Liu wrote: >> >> Introduce helper bpf_get_task_stack(), which dumps stack trace of given >> task. This is different to bpf_get_stack(), which gets stack track of >> current task. One potenti

Re: KASAN: out-of-bounds Read in kvm_arch_hardware_setup

2020-06-29 Thread Sean Christopherson
On Sat, Jun 27, 2020 at 01:01:13PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1654e38510 > kernel

Re: general protection fault in pvclock_gtod_notify

2020-06-29 Thread Sean Christopherson
On Fri, Jun 26, 2020 at 01:08:19PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:4a21185c Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16958f4d10 > kernel

Re: KASAN: null-ptr-deref Read in kvm_arch_check_processor_compat

2020-06-29 Thread Sean Christopherson
On Tue, Jun 23, 2020 at 05:17:15AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=135e723510 > kernel

Re: [PATCH 04/11] ppc64/kexec_file: avoid stomping memory used by special regions

2020-06-29 Thread Hari Bathini
On 30/06/20 9:00 am, piliu wrote: > > > On 06/29/2020 01:55 PM, Hari Bathini wrote: >> >> >> On 28/06/20 7:44 am, piliu wrote: >>> Hi Hari, >> >> Hi Pingfan, >> >>> >>> After a quick through for this series, I have a few question/comment on >>> this patch for the time being. Pls see comment in

Re: [PATCH 3/7] kgdb: Add request_nmi() to the io ops table for kgdboc

2020-06-29 Thread Sumit Garg
On Mon, 29 Jun 2020 at 17:15, Daniel Thompson wrote: > > On Fri, Jun 26, 2020 at 12:44:15PM -0700, Doug Anderson wrote: > > Hi, > > > > On Tue, Jun 23, 2020 at 3:59 AM Daniel Thompson > > wrote: > > > > > > On Tue, Jun 23, 2020 at 02:07:47PM +0530, Sumit Garg wrote: > > > > On Mon, 22 Jun 2020 at

Re: [PATCH 2/2] kconfig: qconf: don't show goback button on splitMode

2020-06-29 Thread Mauro Carvalho Chehab
Em Tue, 30 Jun 2020 12:55:05 +0900 Masahiro Yamada escreveu: > On Tue, Jun 30, 2020 at 12:30 AM Mauro Carvalho Chehab > wrote: > > > > the goback button does nothing on splitMode. So, why display > > it? > > > Hmm, I still see the goback button > on all of the three modes... Huh? Perhaps

Re: [PATCH v4 15/23] ASoC: soc-core: Identify 'no_pcm' DAI links for DPCM

2020-06-29 Thread Kuninori Morimoto
Hi Sameer > PCM devices are created for dai links with 'no-pcm' flag as '0'. > Such DAI links have CPU component which implement pcm_construct() > and pcm_destruct() callbacks. Based on this, current patch exposes > a helper function to identify such components and populate 'no_pcm' > flag for D

linux-next: build failure after merge of the thunderbolt tree

2020-06-29 Thread Stephen Rothwell
Hi all, After merging the thunderbolt tree, today's linux-next build (powerpc allyesconfig) failed like this: Caused by commit 54509f5005ca ("thunderbolt: Add KUnit tests for path walking") interacting with commit d4cdd146d0db ("kunit: generalize kunit_resource API beyond allocated resou

Unused lines

2020-06-29 Thread Gon Solo
Hi! Are the 147MB or 1.6 million(!) lines in drivers/gpu/drm/amd/include/asic_reg really necessary? I grepped a few of them and they don't seem to be used, neither in the kernel nor drm or mesa. As an example I removed one of the unused lines (see the attached patch) and the amdgpu driver seems to

RE: [PATCH v8 2/3] dt-bindings: arm-smmu: Add binding for Tegra194 SMMU

2020-06-29 Thread Pritesh Raithatha
> Add binding for NVIDIA's Tegra194 SoC SMMU topology that is based on ARM > MMU-500. > > Signed-off-by: Krishna Reddy Reviewed-by: Pritesh Raithatha

Re: [PATCH v33 15/21] x86/vdso: Add support for exception fixup in vDSO functions

2020-06-29 Thread Sean Christopherson
On Mon, Jun 29, 2020 at 07:10:22PM +0200, Borislav Petkov wrote: > On Thu, Jun 18, 2020 at 01:08:37AM +0300, Jarkko Sakkinen wrote: > ... > > intended benefit of massaging GCC's inlining algorithm is unlikely to > > realized in the vDSO any time soon, if ever. > > That is a very good explanation a

RE: [PATCH 3/4] iommu/vt-d: Report page request faults for guest SVA

2020-06-29 Thread Tian, Kevin
> From: Lu Baolu > Sent: Sunday, June 28, 2020 8:34 AM > > A pasid might be bound to a page table from a VM guest via the iommu > ops.sva_bind_gpasid. In this case, when a DMA page fault is detected > on the physical IOMMU, we need to inject the page fault request into > the guest. After the gues

Re: [PATCH v4 7/8] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables

2020-06-29 Thread Ahmed S. Darwish
Peter Zijlstra wrote: ... > -#define lockdep_assert_irqs_disabled() do {\ > - WARN_ONCE(debug_locks && !current->lockdep_recursion && \ > - current->hardirqs_enabled,\ > - "IRQs not disabled as e

RE: [PATCH v8 3/3] iommu/arm-smmu: Add global/context fault implementation hooks

2020-06-29 Thread Pritesh Raithatha
> Add global/context fault hooks to allow NVIDIA SMMU implementation handle > faults across multiple SMMUs. > > Signed-off-by: Krishna Reddy Reviewed-by: Pritesh Raithatha

Re: [PATCH] kdb: prevent possible null deref in kdb_msg_write

2020-06-29 Thread Sumit Garg
On Mon, 29 Jun 2020 at 21:07, Daniel Thompson wrote: > > On Mon, Jun 29, 2020 at 04:50:20PM +0200, Petr Mladek wrote: > > On Mon 2020-06-29 16:59:24, Cengiz Can wrote: > > > `kdb_msg_write` operates on a global `struct kgdb_io *` called > > > `dbg_io_ops`. > > > > > > Although it is initialized in

RE: [PATCH v8 1/3] iommu/arm-smmu: add NVIDIA implementation for dual ARM MMU-500 usage

2020-06-29 Thread Pritesh Raithatha
> NVIDIA's Tegra194 SoC uses two ARM MMU-500s together to interleave IOVA > accesses across them. > Add NVIDIA implementation for dual ARM MMU-500s and add new compatible > string for Tegra194 SoC SMMU topology. > > Signed-off-by: Krishna Reddy Reviewed-by: Pritesh Raithatha

Re: [PATCH 2/2] can: flexcan: add support for ISO CAN-FD

2020-06-29 Thread Michael Walle
[+ Oliver] Hi Joakim, Am 2020-06-30 04:42, schrieb Joakim Zhang: -Original Message- From: Michael Walle Sent: 2020年6月30日 2:18 To: linux-...@vger.kernel.org; net...@vger.kernel.org; linux-kernel@vger.kernel.org Cc: Wolfgang Grandegger ; Marc Kleine-Budde ; David S . Miller ; Jakub Kicin

[PATCH v3 15/20] raid5: Use sequence counter with associated spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH v3 20/20] hrtimer: Use sequence counter with associated raw spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_raw_spinlock_t data type, which allows to

[PATCH v3 17/20] NFSv4: Use sequence counter with associated spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH v3 12/20] xfrm: policy: Use sequence counters with associated lock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. If the serialization primitive is not disabling preemption implicitly, preemption has to be explicitly disabled before entering the sequence counter write side critical section. A plain s

[PATCH v3 13/20] timekeeping: Use sequence counter with associated raw spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_raw_spinlock_t data type, which allows to

[PATCH v3 11/20] netfilter: nft_set_rbtree: Use sequence counter with associated rwlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_rwlock_t data type, which allows to associ

[PATCH v3 16/20] iocost: Use sequence counter with associated spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH v3 19/20] kvm/eventfd: Use sequence counter with associated spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH v3 18/20] userfaultfd: Use sequence counter with associated spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH v3 14/20] vfs: Use sequence counter with associated spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH v3 07/20] dma-buf: Remove custom seqcount lockdep class key

2020-06-29 Thread Ahmed S. Darwish
Commit 3c3b177a9369 ("reservation: add support for read-only access using rcu") introduced a sequence counter to manage updates to reservations. Back then, the reservation object initializer reservation_object_init() was always inlined. Having the sequence counter initialization inlined meant that

[PATCH v3 05/20] seqlock: lockdep assert non-preemptibility on seqcount_t write

2020-06-29 Thread Ahmed S. Darwish
Preemption must be disabled before entering a sequence count write side critical section. Failing to do so, the seqcount read side can preempt the write side section and spin for the entire scheduler tick. If that reader belongs to a real-time scheduling class, it can spin forever and the kernel

[PATCH v3 09/20] sched: tasks: Use sequence counter with associated spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH v3 10/20] netfilter: conntrack: Use sequence counter with associated spinlock

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to asso

[PATCH v3 01/20] Documentation: locking: Describe seqlock design and usage

2020-06-29 Thread Ahmed S. Darwish
Proper documentation for the design and usage of sequence counters and sequential locks does not exist. Complete the seqlock.h documentation as follows: - Divide all documentation on a seqcount_t vs. seqlock_t basis. The description for both mechanisms was intermingled, which is incorrect

[PATCH v3 04/20] lockdep: Add preemption enabled/disabled assertion APIs

2020-06-29 Thread Ahmed S. Darwish
Asserting that preemption is enabled or disabled is a critical sanity check. Developers are usually reluctant to add such a check in a fastpath as reading the preemption count can be costly. Extend the lockdep API with macros asserting that preemption is disabled or enabled. If lockdep is disable

[PATCH v3 08/20] dma-buf: Use sequence counter with associated wound/wait mutex

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. If the serialization primitive is not disabling preemption implicitly, preemption has to be explicitly disabled before entering the sequence counter write side critical section. The dma-b

[PATCH v3 06/20] seqlock: Extend seqcount API with associated locks

2020-06-29 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. If the serialization primitive is not disabling preemption implicitly, preemption has to be explicitly disabled before entering the write side critical section. There is no built-in debug

[PATCH v3 03/20] seqlock: Add missing kernel-doc annotations

2020-06-29 Thread Ahmed S. Darwish
A small number of the the exported seqlock.h functions are kernel-doc annotated. Since seqlock.h is now included by the kernel's RST documentation, add kernel-doc annotations for all of the remaining functions. Signed-off-by: Ahmed S. Darwish --- include/linux/seqlock.h | 398 ++

[PATCH v3 00/20] seqlock: Extend seqcount API with associated locks

2020-06-29 Thread Ahmed S. Darwish
Hi, This is v3 of the seqlock patch series: [PATCH v1 00/25] seqlock: Extend seqcount API with associated locks https://lore.kernel.org/lkml/20200519214547.352050-1-a.darw...@linutronix.de [PATCH v2 00/18] https://lore.kernel.org/lkml/20200608005729.1874024-1-a.darw...@linutronix.de

[PATCH v3 02/20] seqlock: Properly format kernel-doc code samples

2020-06-29 Thread Ahmed S. Darwish
Align the code samples and note sections inside kernel-doc comments with tabs. This way they can be properly parsed and rendered by Sphinx. It also makes the code samples easier to read from text editors. Signed-off-by: Ahmed S. Darwish --- include/linux/seqlock.h | 82 +-

Re: [PATCH v2 10/15] exec: Remove do_execve_file

2020-06-29 Thread Christoph Hellwig
FYI, this clashes badly with my exec rework. I'd suggest you drop everything touching exec here for now, and I can then add the final file based exec removal to the end of my series.

Re: [PATCH] doc: cgroup: add f2fs and xfs to supported list for writeback

2020-06-29 Thread Christoph Hellwig
On Mon, Jun 29, 2020 at 02:08:09PM -0500, Eric Sandeen wrote: > f2fs and xfs have both added support for cgroup writeback: > > 578c647 f2fs: implement cgroup writeback support > adfb5fb xfs: implement cgroup aware writeback > > so add them to the supported list in the docs. > > Signed-off-by: Er

Re: [PATCH v3 1/2] remoteproc: Add remoteproc character device interface

2020-06-29 Thread Siddharth Gupta
On 6/17/2020 1:44 AM, Arnaud POULIQUEN wrote: On 6/16/20 9:56 PM, risha...@codeaurora.org wrote: On 2020-04-30 01:30, Arnaud POULIQUEN wrote: Hi Rishabh, On 4/21/20 8:10 PM, Rishabh Bhatnagar wrote: Add the character device interface into remoteproc framework. This interface can be used i

Re: [EXT] Re: [PATCH 1/2] arm64: dts: ls1088a: add more thermal zone support

2020-06-29 Thread Amit Kucheria
On Tue, Jun 30, 2020 at 10:58 AM Andy Tang wrote: > > > > > -Original Message- > > From: Amit Kucheria > > Sent: 2020年6月30日 13:12 > > To: Andy Tang > > Cc: Shawn Guo ; Leo Li ; Rob > > Herring ; lakml ; > > open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS > > ; LKML > > Subjec

Re: [PATCH] vhost: Fix documentation

2020-06-29 Thread Jason Wang
On 2020/6/30 下午1:29, Eli Cohen wrote: Fix documentation to match actual function prototypes "end" used instead of "last". Fix that. Signed-off-by: Eli Cohen --- Acked-by: Jason Wang Thanks drivers/vhost/iotlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >