Re: [PATCH v2 24/24] scsi: aic7xxx: aic79xx_osm: Remove set but unused variabes 'saved_scsiid' and 'saved_modes'

2020-07-14 Thread Hannes Reinecke
On 7/14/20 11:39 PM, Lee Jones wrote: On Tue, 14 Jul 2020, James Bottomley wrote: On Tue, 2020-07-14 at 09:46 +0200, Hannes Reinecke wrote: On 7/13/20 10:00 AM, Lee Jones wrote: Haven't been used since 2006. Fixes the following W=1 kernel build warning(s):

Re: [PATCH v10 05/12] dmaengine: dma: imx-sdma: add fw_loaded and is_ram_script

2020-07-14 Thread Vinod Koul
On 30-06-20, 21:31, Robin Gong wrote: > Add 'fw_loaded' and 'is_ram_script' to check if the script used by channel > is ram script and it's loaded or not, so that could prevent meaningless > following malloc dma descriptor and bd allocate in sdma_transfer_init(), > otherwise memory may be consumed

Re: [PATCH v2 1/6] sched_clock: Expose struct clock_read_data

2020-07-14 Thread Ahmed S. Darwish
On Wed, Jul 15, 2020 at 10:05:07AM +0800, Leo Yan wrote: > From: Peter Zijlstra > ... > > Provide struct clock_read_data and two (seqcount) helpers so that > architectures (arm64 in specific) can expose the numbers to userspace. > ... > > +struct clock_read_data *sched_clock_read_begin(unsigned

Re: [PATCH v3 04/14] dmaengine: pl330: Add quirk 'arm,pl330-periph-burst'

2020-07-14 Thread Vinod Koul
On 29-06-20, 22:05, Sugar Zhang wrote: > This patch adds the qurik to use burst transfers only > for pl330 controller, even for request with a length of 1. > > Although, the correct way should be: if the peripheral request > length is 1, the peripheral should use SINGLE request, and then > notify

Re: [PATCH v3 03/14] dt-bindings: dma: pl330: Document the quirk 'arm,pl330-periph-burst'

2020-07-14 Thread Vinod Koul
On 29-06-20, 22:05, Sugar Zhang wrote: > This patch Adds the quirk 'arm,pl330-periph-burst' for pl330. Applied, thanks -- ~Vinod

Re: [PATCH v3 02/14] dmaengine: pl330: Improve transfer efficiency for the dregs

2020-07-14 Thread Vinod Koul
On 29-06-20, 22:05, Sugar Zhang wrote: > Only the unaligned burst transfers have the dregs. > so, still use BURST transfer with a reduced size > for better performance. Applied, thanks -- ~Vinod

Re: [PATCH v3 01/14] dmaengine: pl330: Remove the burst limit for quirk 'NO-FLUSHP'

2020-07-14 Thread Vinod Koul
On 29-06-20, 22:05, Sugar Zhang wrote: > There is no reason to limit the performance on the 'NO-FLUSHP' SoCs, > because 'FLUSHP' instruction is broken on these platforms, so remove > the limit to improve the efficiency. Applied, thanks -- ~Vinod

Re: kernel panic: System is deadlocked on memory

2020-07-14 Thread Yafang Shao
On Wed, Jul 15, 2020 at 12:49 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:d31958b3 Add linux-next specific files for 20200710 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=11a2fe1310 > kernel config:

Re: Bug Report High CPU Usage events_power_efficient

2020-07-14 Thread Martin Zaharinov
Hi Oki i find the problem is come from nf_conntrack_core I isolate problem in this part : queue_delayed_work(system_power_efficient_wq, _gc_work.dwork, HZ); When package go to queue delayed in one moment if connection track is to big process to delayed go to lock and start high cpu load.

[PATCH 2/2] fpga: dfl: create a dfl bus type to support DFL devices

2020-07-14 Thread Xu Yilun
A new bus type "dfl" is introduced for private features which are not initialized by DFL feature drivers (dfl-fme & dfl-afu drivers). So these private features could be handled by separate driver modules. DFL framework will create DFL devices on enumeration. DFL drivers could be registered on

Re: [PATCH v4 net] rtnetlink: Fix memory(net_device) leak when ->newlink fails

2020-07-14 Thread Cong Wang
On Tue, Jul 14, 2020 at 6:27 PM Weilong Chen wrote: > > When vlan_newlink call register_vlan_dev fails, it might return error > with dev->reg_state = NETREG_UNREGISTERED. The rtnl_newlink should > free the memory. But currently rtnl_newlink only free the memory which > state is

Re: BUG: soft lockup in smp_call_function

2020-07-14 Thread syzbot
syzbot has bisected this issue to: commit 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 Author: Vinicius Costa Gomes Date: Sat Sep 29 00:59:43 2018 + tc: Add support for configuring the taprio scheduler bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1196d06f10 start

[PATCH 0/2] Modularization of DFL private feature drivers

2020-07-14 Thread Xu Yilun
This patchset makes it possible to develop independent driver modules for DFL private features. It also helps to leverage existing kernel drivers to enable some IP blocks in DFL. Xu Yilun (2): fpga: dfl: map feature mmio resources in their own feature drivers fpga: dfl: create a dfl bus type

[PATCH 1/2] fpga: dfl: map feature mmio resources in their own feature drivers

2020-07-14 Thread Xu Yilun
This patch makes preparation for modularization of DFL sub feature drivers. Currently, if we need to support a new DFL sub feature, an entry should be added to fme/port_feature_drvs[] in dfl-fme/port-main.c. And we need to re-compile the whole DFL modules. That make the DFL drivers hard to be

Re: [PATCH] serial: 8250_mtk: Fix high-speed baud rates clamping

2020-07-14 Thread Claire Chang
On Wed, Jul 15, 2020 at 4:45 AM Daniel Winkler wrote: > > Thank you Sergey for looking into this. Adding folks working on this > platform to perform validation of the proposed patch. > > Best, > Daniel > > On Tue, Jul 14, 2020 at 5:41 AM Serge Semin > wrote: > > > > Commit 7b668c064ec3 ("serial:

[PATCH v2 bpf-next 2/2] selftests/bpf: add callchain_stackid

2020-07-14 Thread Song Liu
This tests new helper function bpf_get_stackid_pe and bpf_get_stack_pe. These two helpers have different implementation for perf_event with PEB entries. Signed-off-by: Song Liu --- .../bpf/prog_tests/perf_event_stackmap.c | 120 ++

INFO: rcu detected stall in __do_sys_clock_adjtime

2020-07-14 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a581387e Merge tag 'io_uring-5.8-2020-07-10' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1312c27710 kernel config: https://syzkaller.appspot.com/x/.config?x=66ad203c2bb6d8b

[PATCH v2 bpf-next 1/2] bpf: separate bpf_get_[stack|stackid] for perf events BPF

2020-07-14 Thread Song Liu
Calling get_perf_callchain() on perf_events from PEBS entries may cause unwinder errors. To fix this issue, the callchain is fetched early. Such perf_events are marked with __PERF_SAMPLE_CALLCHAIN_EARLY. Similarly, calling bpf_get_[stack|stackid] on perf_events from PEBS may also cause unwinder

[PATCH v2 bpf-next 0/2] bpf: fix stackmap on perf_events with PEBS

2020-07-14 Thread Song Liu
Calling get_perf_callchain() on perf_events from PEBS entries may cause unwinder errors. To fix this issue, perf subsystem fetches callchain early, and marks perf_events are marked with __PERF_SAMPLE_CALLCHAIN_EARLY. Similar issue exists when BPF program calls get_perf_callchain() via helper

回复: [PATCH v2] tipc: Don't using smp_processor_id() in preemptible code

2020-07-14 Thread Zhang, Qiang
发件人: Tuong Tong Lien 发送时间: 2020年7月15日 11:53 收件人: Zhang, Qiang; Eric Dumazet; jma...@redhat.com; da...@davemloft.net; k...@kernel.org; Xue, Ying 抄送: net...@vger.kernel.org; tipc-discuss...@lists.sourceforge.net; linux-kernel@vger.kernel.org 主题: RE:

[PATCH v2 2/2] spi: coldfire-qspi: Use clk_prepare_enable and clk_disable_unprepare

2020-07-14 Thread Qing Zhang
Convert clk_enable() to clk_prepare_enable() and clk_disable() to clk_disable_unprepare() respectively in the spi-coldfire-qspi.c. Signed-off-by: Qing Zhang --- v2: -Modify the commit message -Split into two patches drivers/spi/spi-coldfire-qspi.c | 4 ++-- 1 file changed, 2

[PATCH v2 1/2] spi: omap-uwire: Use clk_prepare_enable and clk_disable_unprepare

2020-07-14 Thread Qing Zhang
Convert clk_enable() to clk_prepare_enable() and clk_disable() to clk_disable_unprepare() respectively in the spi-omap-uwire.c. Signed-off-by: Qing Zhang --- v2: -Modify the commit message -Split into two patches drivers/spi/spi-omap-uwire.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 3/7] drm: drm_gem.h: delete duplicated words in comments

2020-07-14 Thread Randy Dunlap
Drop the doubled words "the" and "by" in comments. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org --- include/drm/drm_gem.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20200714.orig/i

[PATCH 7/7] drm: drm_rect.h: delete duplicated word in comment

2020-07-14 Thread Randy Dunlap
Drop doubled word "the" in a comment. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org --- include/drm/drm_rect.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/drm/drm_rect.h +++

[PATCH 2/7] drm: drm_bridge.h: delete duplicated word in comment

2020-07-14 Thread Randy Dunlap
Drop doubled word "should" in a comment. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org --- include/drm/drm_bridge.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/drm/drm_bridge.h

[PATCH 4/7] drm: drm_mode_config.h: delete duplicated words in comments

2020-07-14 Thread Randy Dunlap
Drop doubled word "is" in several comments. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org --- include/drm/drm_mode_config.h |8 1 file changed, 4 insertions(+), 4 deletions(-) --- linux-next-20200714.orig/i

[PATCH 6/7] drm: msm_drm.h: delete duplicated words in comments

2020-07-14 Thread Randy Dunlap
Drop the doubled word "to" in comments. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org --- include/uapi/drm/msm_drm.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20200714.orig/include/uapi/drm

[PATCH 5/7] drm: i915_drm.h: delete duplicated words in comments

2020-07-14 Thread Randy Dunlap
Drop doubled words "the" and "be" in comments. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org --- include/uapi/drm/i915_drm.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20200714.o

[PATCH 1/7] drm: drm_atomic.h: delete duplicated word in comment

2020-07-14 Thread Randy Dunlap
Drop doubled word "than" in a comment. Signed-off-by: Randy Dunlap Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org --- include/drm/drm_atomic.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/drm/drm_atomic.h +++

Re: [PATCH v2 0/6] arm64: perf: Proper cap_user_time* support

2020-07-14 Thread Ahmed S. Darwish
On Wed, Jul 15, 2020 at 10:05:06AM +0800, Leo Yan wrote: ... > > In this version, there have two changes comparing to Peter's original > patch set [1]: > ... > > [1] https://lkml.org/lkml/2020/5/12/481 > Nitpick: please avoid using https://lkml.org: 1) It's a non-official external service 2)

[PATCH] power: supply: add "Wireless" to power_supply_type and power_supply_type_text

2020-07-14 Thread Jeehong Kim
In android platform(BatteryMonitor.cpp), SysfsStringEnumMap supplyTypeMap[] is declred for communication with kernel(sysfs) and there is "Wireless". But, no type for "Wireless" in kernel. So, we suggest to add "Wireless" to power_supply_type and power_supply_type_text. I hope this will not only

Re: [PATCH V3 2/3] mfd: Intel Platform Monitoring Technology support

2020-07-14 Thread kernel test robot
Hi "David, I love your patch! Perhaps something to improve: [auto build test WARNING on ljones-mfd/for-mfd-next] [also build test WARNING on pci/next linus/master v5.8-rc5 next-20200714] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we su

[PATCH 2/4] mm/gup: restrict CMA region by using allocation scope API

2020-07-14 Thread js1304
From: Joonsoo Kim We have well defined scope API to exclude CMA region. Use it rather than manipulating gfp_mask manually. With this change, we can now use __GFP_MOVABLE for gfp_mask and the ZONE_MOVABLE is also searched by page allocator. For hugetlb, gfp_mask is redefined since it has a

[PATCH 3/4] mm/hugetlb: make hugetlb migration callback CMA aware

2020-07-14 Thread js1304
From: Joonsoo Kim new_non_cma_page() in gup.c requires to allocate the new page that is not on the CMA area. new_non_cma_page() implements it by using allocation scope APIs. However, there is a work-around for hugetlb. Normal hugetlb page allocation API for migration is

[PATCH 4/4] mm/gup: use a standard migration target allocation callback

2020-07-14 Thread js1304
From: Joonsoo Kim There is a well-defined migration target allocation callback. Use it. Acked-by: Vlastimil Babka Signed-off-by: Joonsoo Kim --- mm/gup.c | 54 ++ 1 file changed, 6 insertions(+), 48 deletions(-) diff --git a/mm/gup.c

[PATCH 1/4] mm/page_alloc: fix non cma alloc context

2020-07-14 Thread js1304
From: Joonsoo Kim Currently, preventing cma area in page allocation is implemented by using current_gfp_context(). However, there are two problems of this implementation. First, this doesn't work for allocation fastpath. In the fastpath, original gfp_mask is used since current_gfp_context() is

Re: [PATCH V1 0/5] riscv: Add k/uprobe supported

2020-07-14 Thread Guo Ren
Hi Palmer, On Wed, Jul 15, 2020 at 2:43 AM Palmer Dabbelt wrote: > > On Sat, 04 Jul 2020 07:55:28 PDT (-0700), guo...@kernel.org wrote: > > Hi Pekka, > > > > On Sat, Jul 4, 2020 at 2:40 PM Pekka Enberg wrote: > >> > >> On Sat, Jul 4, 2020 at 6:34 AM wrote: > >> > The patchset includes

[PATCH 2/4] usb: linux/usb/gadget.h: fix duplicated word in comment

2020-07-14 Thread Randy Dunlap
Change the doubled word "in" to "be in" in a comment. Signed-off-by: Randy Dunlap Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org --- include/linux/usb/gadget.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/linux/usb/gad

[PATCH 1/4] usb: linux/usb.h: drop duplicated word in comment

2020-07-14 Thread Randy Dunlap
Drop the doubled word "the" in a comment. Signed-off-by: Randy Dunlap Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org --- include/linux/usb.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/linux/usb.h +++ linux-next-20200714/inc

[PATCH 3/4] usb: linux/usb/pd_vdo.h: drop duplicated word in comment

2020-07-14 Thread Randy Dunlap
Drop the doubled word "all" in a comment. Signed-off-by: Randy Dunlap Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org --- include/linux/usb/pd_vdo.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/linux/usb/pd_vdo.h +++ linux-nex

[PATCH 4/4] usb: linux/usb/serial.h: drop duplicated word in comment

2020-07-14 Thread Randy Dunlap
Drop the doubled word "set" in a comment. Signed-off-by: Randy Dunlap Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org --- include/linux/usb/serial.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/linux/usb/serial.h +++ linux-nex

Re: [PATCH 7/9] soundwire: intel/cadence: merge Soundwire interrupt handlers/threads

2020-07-14 Thread Vinod Koul
On 02-07-20, 10:01, Pierre-Louis Bossart wrote: > > > Sounds good. Now that you are already in irq thread, does it make sense > > > to spawn a worker thread for this and handle it there? Why not do in the > > > irq thread itself. Using a thread kind of defeats the whole point behind > > >

Re: [PATCH 8/9] soundwire: intel: add wake interrupt support

2020-07-14 Thread Vinod Koul
On 01-07-20, 10:25, Pierre-Louis Bossart wrote: > > > > > > + * wake up master and slave so that slave can notify master > > > > > + * the wakeen event and let codec driver check codec status > > > > > + */ > > > > > + list_for_each_entry(slave, >slaves, node) { > > > > > +

kernel panic: System is deadlocked on memory

2020-07-14 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d31958b3 Add linux-next specific files for 20200710 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11a2fe1310 kernel config: https://syzkaller.appspot.com/x/.config?x=3fe4fccb94cbc1a6 dashboard

[PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int *

2020-07-14 Thread B K Karthik
fixed a sparse warning by changing the type in assignment from void [noderef] __user * to unsigned int * (different address space) Signed-off-by: B K Karthik --- drivers/staging/comedi/comedi_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 2/4] KVM: x86: Introduce paravirt feature CR0/CR4 pinning

2020-07-14 Thread Sean Christopherson
On Tue, Jul 14, 2020 at 05:39:30AM +, Andersen, John wrote: > With regards to FSGSBASE, are we open to validating and adding that to the > DEFAULT set as a part of a separate patchset? This patchset is focused on > replicating the functionality we already have natively. Kees added FSGSBASE

Re: [PATCH v2 0/5] soundwire: handle stream at the dailink level

2020-07-14 Thread Vinod Koul
On 01-07-20, 02:43, Bard Liao wrote: > Currently, stream is handled at the dai level. But we have to handle > stream at the dailink level in the multi-cpu dailink usage. Applied, thanks -- ~Vinod

Re: [PATCH v4 5/9] KVM: nSVM: introduce nested_svm_load_cr3()/nested_npt_enabled()

2020-07-14 Thread Sean Christopherson
On Tue, Jul 14, 2020 at 01:26:24PM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > IMO the addition of nested_npt_enabled() should be a separate patch, and > > the additoin of @nested_npt should be in patch 7. > > > > Hypothetically speaking, if nested_npt_enabled() is inaccurate

[PATCH 3/8] KVM: x86/mmu: Move "huge page disallowed" calculation into mapping helpers

2020-07-14 Thread Sean Christopherson
Calculate huge_page_disallowed in __direct_map() and FNAME(fetch) in preparation for reworking the calculation so that it preserves the requested map level and eventually to avoid flagging a shadow page as being disallowed for being used as a large/huge page when it couldn't have been huge in the

[PATCH 7/8] KVM: x86/mmu: Hoist ITLB multi-hit workaround check up a level

2020-07-14 Thread Sean Christopherson
Move the "ITLB multi-hit workaround enabled" check into the callers of disallowed_hugepage_adjust() to make it more obvious that the helper is specific to the workaround, and to be consistent with the accounting, i.e. account_huge_nx_page() is called if and only if the workaround is enabled. No

[PATCH 6/8] KVM: x86/mmu: Rename 'hlevel' to 'level' in FNAME(fetch)

2020-07-14 Thread Sean Christopherson
Rename 'hlevel', which presumably stands for 'host level', to simply 'level' in FNAME(fetch). The variable hasn't tracked the host level for quite some time. Signed-off-by: Sean Christopherson --- arch/x86/kvm/mmu/paging_tmpl.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH 8/8] KVM: x86/mmu: Track write/user faults using bools

2020-07-14 Thread Sean Christopherson
Use bools to track write and user faults throughout the page fault paths and down into mmu_set_spte(). The actual usage is purely boolean, but that's not obvious without digging into all paths as the current code uses a mix of bools (TDP and try_async_pf) and ints (shadow paging and

[PATCH 4/8] KVM: x86/mmu: Capture requested page level before NX huge page workaround

2020-07-14 Thread Sean Christopherson
Apply the "huge page disallowed" adjustment of the max level only after capturing the original requested level. The requested level will be used in a future patch to skip adding pages to the list of disallowed huge pages if a huge page wasn't possible anyways, e.g. if the page isn't mapped as a

[PATCH 1/8] KVM: x86/mmu: Commit zap of remaining invalid pages when recovering lpages

2020-07-14 Thread Sean Christopherson
Call kvm_mmu_commit_zap_page() after exiting the "prepare zap" loop in kvm_recover_nx_lpages() to finish zapping pages in the unlikely event that the loop exited due to lpage_disallowed_mmu_pages being empty. Because the recovery thread drops mmu_lock() when rescheduling, it's possible that

[PATCH 2/8] KVM: x86/mmu: Refactor the zap loop for recovering NX lpages

2020-07-14 Thread Sean Christopherson
Refactor the zap loop in kvm_recover_nx_lpages() to be a for loop that iterates on to_zap and drop the !to_zap check that leads to the in-loop calling of kvm_mmu_commit_zap_page(). The in-loop commit when to_zap hits zero is superfluous now that there's an unconditional commit after the loop to

Re: [PATCH -v2.1] x86/msr: Filter MSR writes

2020-07-14 Thread Borislav Petkov
On Tue, Jul 14, 2020 at 11:52:47AM -0700, Srinivas Pandruvada wrote: > > As to the power issue, lemme CC some Intel folks I found in > > MAINTAINERS. > > > > Intel folks, pls check the link above and upthread: Why TF do people > > need to use some luserspace daemon which pokes at MSRs which the >

[PATCH 0/8] KVM: x86/mmu: ITLB multi-hit workaround fixes

2020-07-14 Thread Sean Christopherson
Patch 1 is a minor fix for a very theoretical bug where KVM could skip the final "commit zap" when recovering shadow pages for the NX huge page mitigation. Patch 2 is cleanup that's made possible by patch 1. Patches 3-5 are the main course and fix bugs in the NX huge page accounting where shadow

[PATCH 5/8] KVM: x86/mmu: Account NX huge page disallowed iff huge page was requested

2020-07-14 Thread Sean Christopherson
Condition the accounting of a disallowed huge NX page on the original requested level of the page being greater than the current iterator level. This does two things: accounts the page if and only if a huge page was actually disallowed, and accounts the shadow page if and only if it was the level

linux-next: manual merge of the tty tree with the qcom tree

2020-07-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tty tree got a conflict in: drivers/tty/serial/qcom_geni_serial.c between commit: 650c8bd36a66 ("serial: qcom_geni_serial: Always use 4 bytes per TX FIFO word") from the qcom tree and commit: 3550f8979a7b ("tty: serial: qcom_geni_serial: Clean up

[PATCH v1 2/3] dt-bindings: media: imx274: Add optional xclk and supplies

2020-07-14 Thread Sowjanya Komatineni
This patch adds IMX274 optional external clock input and voltage supplies to device tree bindings. Signed-off-by: Sowjanya Komatineni --- Documentation/devicetree/bindings/media/i2c/imx274.txt | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v1 3/3] media: i2c: imx274: Add IMX274 power on and off sequence

2020-07-14 Thread Sowjanya Komatineni
IMX274 has VANA analog 2.8V supply, VDIG digital core 1.8V supply, and VDDL digital io 1.2V supply which are optional based on camera module design. IMX274 also need external 24Mhz clock and is optional based on camera module design. This patch adds support for IMX274 power on and off to enable

[PATCH v1 1/3] media: i2c: imx274: Fix Y_OUT_SIZE register setting

2020-07-14 Thread Sowjanya Komatineni
Current driver sets Y_OUT_SIZE to crop height + 8 and seeing long frame errors on the receiver size as expected height on reciever is crop height. As per Sony IMX274 Y_OUT_SIZE should be the height of effective image output from the sensor which are the actual total lines sent over MIPI CSI to

[RFC PATCH v3 04/18] i2c: tegra: Remove NULL pointer check before clk_enable/disable/prepare/unprepare

2020-07-14 Thread Sowjanya Komatineni
clk_enable, clk_disable, clk_prepare, and clk_unprepare APIs have implementation for checking clk pointer not NULL and clock consumers can safely call these APIs without NULL pointer check. So, this patch cleans up Tegra i2c driver to remove explicit checks before these APIs. Signed-off-by:

[RFC PATCH v3 01/18] dt-bindings: i2c: tegra: Document Tegra210 VI I2C clocks and power-domains

2020-07-14 Thread Sowjanya Komatineni
This patch documents missing clocks and power-domains of Tegra210 VI I2C. Reviewed-by: Rob Herring Signed-off-by: Sowjanya Komatineni --- .../devicetree/bindings/i2c/nvidia,tegra20-i2c.txt| 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git

[RFC PATCH v3 11/18] dt-bindings: tegra: Update VI and CSI bindings with port info

2020-07-14 Thread Sowjanya Komatineni
Update VI and CSI bindings to add port and endpoint nodes as per media video-interfaces DT binding document. Signed-off-by: Sowjanya Komatineni --- .../display/tegra/nvidia,tegra20-host1x.txt| 92 +- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git

[RFC PATCH v3 03/18] i2c: tegra: Don't mark VI I2C as IRQ safe runtime PM

2020-07-14 Thread Sowjanya Komatineni
Tegra VI I2C is part of VE power domain and typically used for camera usecases. VE power domain is not always on and is non-IRQ safe. So, IRQ safe device cannot be attached to a non-IRQ safe domain as it prevents powering off the PM domain and generic power domain driver will warn. Current

[RFC PATCH v3 14/18] gpu: host1x: mipi: Update tegra_mipi_request() to be node based

2020-07-14 Thread Sowjanya Komatineni
Tegra CSI driver need a separate MIPI device for each channel as calibration of corresponding MIPI pads for each channel should happen independently. So, this patch updates tegra_mipi_request() API to add a device_node pointer argument to allow creating mipi device for specific device node rather

Re: [PATCH v2 3/4] x86: Expose SERIALIZE for supported cpuid

2020-07-14 Thread hpa
On July 14, 2020 5:03:31 PM PDT, "Zhang, Cathy" wrote: >On 7/15/2020 7:05 AM, h...@zytor.com wrote: >> On July 14, 2020 3:42:08 PM PDT, "Zhang, Cathy" > wrote: >>> On 7/14/2020 11:00 AM, Sean Christopherson wrote: On Tue, Jul 07, 2020 at 10:16:22AM +0800, Cathy Zhang wrote: > SERIALIZE

[RFC PATCH v3 16/18] gpu: host1x: mipi: Split tegra_mipi_calibrate and tegra_mipi_wait

2020-07-14 Thread Sowjanya Komatineni
SW can trigger MIPI pads calibration any time after power on but calibration results will be latched and applied to the pads by MIPI CAL unit only when the link is in LP-11 state and then status register will be updated. For CSI, trigger of pads calibration happen during CSI stream enable where

[RFC PATCH v3 06/18] i2c: tegra: Fix runtime resume to re-init VI I2C

2020-07-14 Thread Sowjanya Komatineni
VI I2C is on host1x bus and is part of VE power domain. During suspend/resume VE power domain goes through power off/on. So, controller reset followed by i2c re-initialization is required after the domain power up. This patch fixes it. Signed-off-by: Sowjanya Komatineni ---

[RFC PATCH v3 12/18] media: tegra-video: Add support for external sensor capture

2020-07-14 Thread Sowjanya Komatineni
This patch adds support to capture from the external sensor based on device graph in the device tree. Driver walks through the device graph to create media links between the entities and registers and unregisters video devices when the corresponding sub-devices are bound and unbound. Channel

[RFC PATCH v3 15/18] gpu: host1x: mipi: Use readl_relaxed_poll_timeout in tegra_mipi_wait

2020-07-14 Thread Sowjanya Komatineni
Use readl_relaxed_poll_timeout() in tegra_mipi_wait() to simplify the code. Signed-off-by: Sowjanya Komatineni --- drivers/gpu/host1x/mipi.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/host1x/mipi.c b/drivers/gpu/host1x/mipi.c index

[RFC PATCH v3 17/18] media: tegra-video: Add CSI MIPI pads calibration

2020-07-14 Thread Sowjanya Komatineni
CSI MIPI pads need to be enabled and calibrated for capturing from the external sensor or transmitter. MIPI CAL unit calibrates MIPI pads pull-up, pull-down and termination impedances. Calibration is done by co-work of MIPI BIAS pad and MIPI CAL control unit. Triggering calibration start can

[RFC PATCH v3 07/18] i2c: tegra: Avoid tegra_i2c_init_dma() for Tegra210 vi i2c

2020-07-14 Thread Sowjanya Komatineni
VI I2C is on host1x bus so APB DMA can't be used for Tegra210 VI I2C and there are no tx and rx dma channels for VI I2C. So, avoid attempt of requesting DMA channels. Signed-off-by: Sowjanya Komatineni --- drivers/i2c/busses/i2c-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[RFC PATCH v3 09/18] media: tegra-video: Enable TPG based on kernel config

2020-07-14 Thread Sowjanya Komatineni
Tegra internal TPG mode is only for Tegra vi and csi testing without a real sensor and driver should default support real sensor. So, This patch adds CONFIG_VIDEO_TEGRA_TPG and enables Tegra internal TPG mode only when this config is selected. Signed-off-by: Sowjanya Komatineni ---

[RFC PATCH v3 02/18] arm64: tegra: Add missing clocks and power-domains to Tegra210 VI I2C

2020-07-14 Thread Sowjanya Komatineni
Tegra210 VI I2C is in VE power domain and i2c-vi node should have power-domains property. Current Tegra210 i2c-vi device node is missing both VI I2C clocks and power-domains property. This patch adds them. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 6

[RFC PATCH v3 13/18] media: tegra-video: Add support for selection ioctl ops

2020-07-14 Thread Sowjanya Komatineni
This patch adds selection v4l2 ioctl operations to allow configuring a selection rectangle in the sensor through the Tegra video device node. Some sensor drivers supporting crop uses try_crop rectangle from v4l2_subdev_pad_config during try format for computing binning. So with selection ops

[RFC PATCH v3 18/18] media: tegra-video: Compute settle times based on the clock rate

2020-07-14 Thread Sowjanya Komatineni
Settle time determines the number of cil clock cyles to wait after LP00 when moving from LP to HS. This patch computes T-CLK-SETTLE and T-HS-SETTLE times based on cil clock rate and pixel rate from the sensor and programs them during streaming. T-CLK-SETTLE time is the interval during which

[RFC PATCH v3 05/18] i2c: tegra: Fix the error path in tegra_i2c_runtime_resume

2020-07-14 Thread Sowjanya Komatineni
tegra_i2c_runtime_resume does not disable prior enabled clocks properly. This patch fixes it. Signed-off-by: Sowjanya Komatineni --- drivers/i2c/busses/i2c-tegra.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c

Re: [RFC PATCH 00/35] Move all PCIBIOS* definitions into arch/x86

2020-07-14 Thread Oliver O'Halloran
On Wed, Jul 15, 2020 at 8:03 AM Arnd Bergmann wrote: > > - Most error checking is static: PCIBIOS_BAD_REGISTER_NUMBER > only happens if you pass an invalid register number, but most > callers pass a compile-time constant register number that is > known to be correct, or the driver would

[RFC PATCH v3 00/18] Support for Tegra video capture from external sensor

2020-07-14 Thread Sowjanya Komatineni
This series adds support for video capture from external camera sensor to Tegra video driver. Jetson TX1 has camera expansion connector and supports custom camera module designed as per TX1 design specification. This series also enables camera capture support for Jetson Nano which has Raspberry

[RFC PATCH v3 10/18] media: tegra-video: Update format lookup to offset based

2020-07-14 Thread Sowjanya Komatineni
Tegra VI supported video formats are more for non TPG and there can be multiple pixel formats for the same media bus format. This patch updates the helper function for format lookup based on mbus code from pre-defined Tegra supported format list to look from the specified list index offset.

[RFC PATCH v3 08/18] media: tegra-video: Fix channel format alignment

2020-07-14 Thread Sowjanya Komatineni
Pixel format width is mistakenly aligned to surface align bytes and altering width to aligned value may force sensor mode change other than the requested one and also cause mismatch in width programmed between sensor and vi which can lead to capture errors. This patch removes width alignment and

Re: [PATCH] cifs: Remove the superfluous break

2020-07-14 Thread Steve French
merged into cifs-2.6.git for-next thx On Tue, Jul 14, 2020 at 6:14 AM Yi Wang wrote: > > From: Liao Pingfang > > Remove the superfuous break, as there is a 'return' before it. > > Signed-off-by: Liao Pingfang > Signed-off-by: Yi Wang > --- > fs/cifs/sess.c | 1 - > 1 file changed, 1

[PATCH] iio: buffer: fix attach/detach pollfunc order

2020-07-14 Thread Alexandru Ardelean
The original patch was error-ed by the submitter (me) and not by the author (Lars). After looking through the discussion logs (on email), it seems that this order was wrong for the start, even though the order implemented in the drivers was correct. Discussions: - first RFC:

Re: [PATCH 3/3] ASoC: fsl-asoc-card: Support Headphone and Microphone Jack detection

2020-07-14 Thread Shengjiu Wang
On Wed, Jul 15, 2020 at 5:16 AM Nicolin Chen wrote: > > Hi Shengjiu, > > The whole series looks good to me. Just a couple of small > questions inline: > > On Tue, Jul 14, 2020 at 05:05:36PM +0800, Shengjiu Wang wrote: > > Use asoc_simple_init_jack function from simple card to implement > > the

Re: [PATCH v3 2/9] powerpc/watchpoint: Fix DAWR exception constraint

2020-07-14 Thread Ravi Bangoria
Hi Jordan, @@ -536,7 +538,12 @@ static bool check_dawrx_constraints(struct pt_regs *regs, int type, if (OP_IS_LOAD(type) && !(info->type & HW_BRK_TYPE_READ)) return false; - if (OP_IS_STORE(type) && !(info->type & HW_BRK_TYPE_WRITE)) + /* +* The

Re: [f2fs-dev] [PATCH v2] f2fs: change the way of handling range.len in F2FS_IOC_SEC_TRIM_FILE

2020-07-14 Thread Daeho Jeong
We could use fscrypt_zeroout_range() for an encrypted file. But, one problem is fscrypt_zeroout_range() assumes that filesystems only use a single block device. It means it doesn't receive bdev as a parameter. How about changing the interface of fscrypt_zeroout_range() first and using it? 2020년

[PATCH 4/7] KVM: nVMX: Move free_nested() below vmx_switch_vmcs()

2020-07-14 Thread Sean Christopherson
Move free_nested() down below vmx_switch_vmcs() so that a future patch can do an "emergency" invocation of vmx_switch_vmcs() if vmcs01 is not the loaded VMCS when freeing nested resources. No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/nested.c | 88

[PATCH 1/7] KVM: nVMX: Reset the segment cache when stuffing guest segs

2020-07-14 Thread Sean Christopherson
Explicitly reset the segment cache after stuffing guest segment regs in prepare_vmcs02_rare(). Although the cache is reset when switching to vmcs02, there is nothing that prevents KVM from re-populating the cache prior to writing vmcs02 with vmcs12's values. E.g. if the vCPU is preempted after

[PATCH 0/7] KVM: nVMX: Bug fixes and cleanup

2020-07-14 Thread Sean Christopherson
Fix for a brutal segment caching bug that manifested as random nested VM-Enter failures when running with unrestricted guest disabled. A few more bug fixes and cleanups for stuff found by inspection when hunting down the caching issue. Sean Christopherson (7): KVM: nVMX: Reset the segment

[PATCH 5/7] KVM: nVMX: Ensure vmcs01 is the loaded VMCS when freeing nested state

2020-07-14 Thread Sean Christopherson
Add a WARN in free_nested() to ensure vmcs01 is loaded prior to freeing vmcs02 and friends, and explicitly switch to vmcs01 if it's not. KVM is supposed to keep is_guest_mode() and loaded_vmcs==vmcs02 synchronized, but bugs happen and freeing vmcs02 while it's in use will escalate a KVM error to

[PATCH 2/7] KVM: nVMX: Reload vmcs01 if getting vmcs12's pages fails

2020-07-14 Thread Sean Christopherson
Reload vmcs01 when bailing from nested_vmx_enter_non_root_mode() as KVM expects vmcs01 to be loaded when is_guest_mode() is false. Fixes: 671ddc700fd08 ("KVM: nVMX: Don't leak L1 MMIO regions to L2") Cc: sta...@vger.kernel.org Cc: Dan Cross Cc: Jim Mattson Cc: Peter Shier Signed-off-by: Sean

[PATCH 3/7] KVM: nVMX: Explicitly check for valid guest state for !unrestricted guest

2020-07-14 Thread Sean Christopherson
Call guest_state_valid() directly instead of querying emulation_required when checking if L1 is attempting VM-Enter with invalid guest state. If emulate_invalid_guest_state is false, KVM will fixup segment regs to avoid emulation and will never set emulation_required, i.e. KVM will incorrectly

[PATCH 6/7] KVM: nVMX: Drop redundant VMCS switch and free_nested() call

2020-07-14 Thread Sean Christopherson
Remove the explicit switch to vmcs01 and the call to free_nested() in nested_vmx_free_vcpu(). free_nested(), which is called unconditionally by vmx_leave_nested(), ensures vmcs01 is loaded prior to freeing vmcs02 and friends. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/nested.c | 2

[PATCH 7/7] KVM: nVMX: WARN on attempt to switch the currently loaded VMCS

2020-07-14 Thread Sean Christopherson
WARN if KVM attempts to switch to the currently loaded VMCS. Now that nested_vmx_free_vcpu() doesn't blindly call vmx_switch_vmcs(), all paths that lead to vmx_switch_vmcs() are implicitly guarded by guest vs. host mode, e.g. KVM should never emulate VMX instructions when guest mode is active,

[tip:irq/urgent] BUILD SUCCESS e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb

2020-07-14 Thread kernel test robot
rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200714 i386 randconfig-a005-20200714 i386 randconfig-a002-20200714 i386 randconfig-a006

Re: [PATCH v3] scsi: ufs: Cleanup completed request without interrupt notification

2020-07-14 Thread Bart Van Assche
On 2020-07-13 01:10, Avri Altman wrote: > Artificially injecting errors is a very common validation mechanism, > Provided that you are not breaking anything of the upper-layers, > Which I don't think you are doing. Hi Avri, My concern is that the code that is being added in the abort handler

Re: [PATCH] powerpc: Fix inconsistent function names

2020-07-14 Thread Michael Ellerman
YueHaibing writes: > The stub helpers name should be consistent with prototypes. > > mm_context_add_vas_windows() --> mm_context_add_vas_window() > mm_context_remove_vas_windows() --> mm_context_remove_vas_window() > > Fixes: c420644c0a8f ("powerpc: Use mm_context vas_windows counter to issue >

RE: [PATCH v2] tipc: Don't using smp_processor_id() in preemptible code

2020-07-14 Thread Tuong Tong Lien
> -Original Message- > From: Zhang, Qiang > Sent: Wednesday, July 15, 2020 9:13 AM > To: Eric Dumazet ; jma...@redhat.com; > da...@davemloft.net; k...@kernel.org; Tuong Tong Lien > ; Xue, Ying > Cc: net...@vger.kernel.org; tipc-discuss...@lists.sourceforge.net; >

  1   2   3   4   5   6   7   8   9   10   >