[PATCH v2] docs: driver-model: bus.rst: Clean up the formatting, expound, modernize

2021-01-12 Thread Michael Witten
Thanks for your guidance. * Save this patch to: /path/to/email Then apply it with: git am --scissors /path/to/email * Here are the changes from the last patch: Definition ~~ -* ``struct bus_type``; -* ``int bus_register(struct bus_type

Re: [PATCH] MAINTAINERS: Remove intel-linux-...@intel.com for INTEL C600 SAS DRIVER

2021-01-12 Thread Martin K. Petersen
John, > The mail address intel-linux-...@intel.com bounces for Ahmed and I, so > just remove it. Applied to 5.12/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] target/file: don't zero iter before iov_iter_bvec

2021-01-12 Thread Martin K. Petersen
Pavel, > iov_iter_bvec() initialises iterators well, no need to pre-zero it > beforehand as done in fd_execute_rw_aio(). Compilers can't optimise it > out and generate extra code for that (confirmed with assembly). Applied to 5.12/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux

Re: [PATCH] scsi: ufs: A tad optimization in query upiu trace

2021-01-12 Thread Martin K. Petersen
Avri, > Remove a redundant if clause in ufshcd_add_query_upiu_trace. Applied to 5.12/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: fnic: Fix memleak in vnic_dev_init_devcmd2

2021-01-12 Thread Martin K. Petersen
Dinghao, > When ioread32() returns 0x, we should execute > cleanup functions like other error handling paths before > returning. Applied to 5.12/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3] scsi: ufs: Remove unnecessary devm_kfree

2021-01-12 Thread Martin K. Petersen
Bean, > The memory allocated with devm_kzalloc() is freed automatically no > need to explicitly call devm_kfree, so delete it and save some > instruction cycles. Applied to 5.12/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

linux-next: boot failure after merge of the iomem-mmap-vs-gup tree

2021-01-12 Thread Stephen Rothwell
Hi all, After merging the iomem-mmap-vs-gup tree, today's linux-next boot test (powerpc pseries_le_defconfig) failed like this: EEH: pSeries platform initialized PCI: Probing PCI hardware BUG: Kernel NULL pointer dereference on write at 0x0030 Faulting instruction address:

Re: [PATCH v5 06/27] dt-bindings: mediatek: Add binding for mt8192 IOMMU

2021-01-12 Thread Tomasz Figa
On Thu, Dec 24, 2020 at 8:35 PM Yong Wu wrote: > > On Wed, 2020-12-23 at 17:18 +0900, Tomasz Figa wrote: > > On Wed, Dec 09, 2020 at 04:00:41PM +0800, Yong Wu wrote: > > > This patch adds decriptions for mt8192 IOMMU and SMI. > > > > > > mt8192 also is MTK IOMMU gen2 which uses ARM

Re: [PATCH RESEND v4 08/11] usb: gadget: bdc: use the BIT macro to define bit filed

2021-01-12 Thread kernel test robot
Hi Chunfeng, I love your patch! Perhaps something to improve: [auto build test WARNING on balbi-usb/testing/next] [also build test WARNING on v5.11-rc3 next-20210112] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH v5 04/27] dt-bindings: memory: mediatek: Add domain definition

2021-01-12 Thread Tomasz Figa
On Thu, Dec 24, 2020 at 8:27 PM Yong Wu wrote: > > On Wed, 2020-12-23 at 17:15 +0900, Tomasz Figa wrote: > > Hi Yong, > > > > On Wed, Dec 09, 2020 at 04:00:39PM +0800, Yong Wu wrote: > > > In the latest SoC, there are several HW IP require a sepecial iova > > > range, mainly CCU and VPU has this

[PATCH v4 5/6] mm: hugetlb: fix a race between isolating and freeing page

2021-01-12 Thread Muchun Song
There is a race between isolate_huge_page() and __free_huge_page(). CPU0: CPU1: if (PageHuge(page)) put_page(page) __free_huge_page(page)

[PATCH v4 6/6] mm: hugetlb: remove VM_BUG_ON_PAGE from page_huge_active

2021-01-12 Thread Muchun Song
The page_huge_active() can be called from scan_movable_pages() which do not hold a reference count to the HugeTLB page. So when we call page_huge_active() from scan_movable_pages(), the HugeTLB page can be freed parallel. Then we will trigger a BUG_ON which is in the page_huge_active() when

[PATCH v4 3/6] mm: hugetlb: fix a race between freeing and dissolving the page

2021-01-12 Thread Muchun Song
There is a race condition between __free_huge_page() and dissolve_free_huge_page(). CPU0: CPU1: // page_count(page) == 1 put_page(page) __free_huge_page(page) dissolve_free_huge_page(page) spin_lock(_lock)

[PATCH v4 4/6] mm: hugetlb: retry dissolve page when hitting race

2021-01-12 Thread Muchun Song
There is a race between dissolve_free_huge_page() and put_page(). Theoretically, we should return -EBUSY when we encounter this race. In fact, we have a chance to successfully dissolve the page if we do a retry. Because the race window is quite small. If we seize this opportunity, it is an

[PATCH v4 2/6] mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page

2021-01-12 Thread Muchun Song
If a new hugetlb page is allocated during fallocate it will not be marked as active (set_page_huge_active) which will result in a later isolate_huge_page failure when the page migration code would like to move that page. Such a failure would be unexpected and wrong. Only export

[PATCH v4 1/6] mm: migrate: do not migrate HugeTLB page whose refcount is one

2021-01-12 Thread Muchun Song
All pages isolated for the migration have an elevated reference count and therefore seeing a reference count equal to 1 means that the last user of the page has dropped the reference and the page has became unused and there doesn't make much sense to migrate it anymore. This has been done for

[PATCH v4 0/6] Fix some bugs about HugeTLB code

2021-01-12 Thread Muchun Song
This patch series aims to fix some bugs and add some improvements. Changelog since v3 -> v4: - Update commit log of patch #1. - Drop "mm: hugetlb: add return -EAGAIN for dissolve_free_huge_page" - Add "mm: hugetlb: retry dissolve page when hitting race" Changelog since v2 -> v3: - Update

[PATCH] mmc: sunxi-mmc: Ensure host is suspended during system sleep

2021-01-12 Thread Samuel Holland
If the device suspend process begins before the mmc host's autosuspend timeout, the host will continue running during system sleep. Avoid this by forcing runtime suspend during a global suspend transition. Signed-off-by: Samuel Holland --- drivers/mmc/host/sunxi-mmc.c | 2 ++ 1 file changed, 2

Re: [PATCH] mm: Free unused swap cache page in write protection fault handler

2021-01-12 Thread huang ying
On Wed, Jan 13, 2021 at 11:12 AM Matthew Wilcox wrote: > > On Wed, Jan 13, 2021 at 11:08:56AM +0800, huang ying wrote: > > On Wed, Jan 13, 2021 at 10:47 AM Linus Torvalds > > wrote: > > > > > > On Tue, Jan 12, 2021 at 6:43 PM Huang Ying wrote: > > > > > > > > So in this patch, at the end of

Re: [PATCH] ARM: dts: exynos: Add energy model for Exynos 5250

2021-01-12 Thread Krzysztof Kozlowski
On Mon, Jan 11, 2021 at 03:57:16PM -0800, Danny Lin wrote: > This energy model enables the use of energy- and capacity-aware CPU > frequency scaling. > > Power and performance measurements were made using my freqbench [1] > benchmark coordinator, which uses EEMBC CoreMark [2] as the workload >

Re: WARNING in corrupted/usb_submit_urb (2)

2021-01-12 Thread syzbot
syzbot suspects this issue was fixed by commit: commit c318840fb2a42ce25febc95c4c19357acf1ae5ca Author: Alan Stern Date: Wed Dec 30 16:20:44 2020 + USB: Gadget: dummy-hcd: Fix shift-out-of-bounds bug bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17a8972f50 start

Re: [PATCH 1/2] misc: eeprom_93xx46: Fix module alias to enable module autoprobe

2021-01-12 Thread Aswath Govindraju
On 12/01/21 12:49 pm, Vignesh Raghavendra wrote: > > > On 1/7/21 10:09 PM, Aswath Govindraju wrote: >> Fix module autoprobe by correcting module alias to match the string from >> /sys/class/.../spi1.0/modalias content. >> >> Fixes: 06b4501e88ad ("misc/eeprom: add driver for microwire 93xx46

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Wei Huang
On 1/12/21 12:58 PM, Andy Lutomirski wrote: Andrew Cooper points out that there may be a nicer workaround. Make sure that the SMRAM and HT region (FFFD - ) are marked as reserved in the guest, too. In theory this proposed solution can avoid intercepting #GP. But in

[PATCH] misc: eeprom_93xx46: Add module alias to avoid breaking support for non device tree users

2021-01-12 Thread Aswath Govindraju
Module alias "spi:93xx46" is used by non device tree users like drivers/misc/eeprom/digsy_mtc_eeprom.c and removing it will break support for them. Fix this by adding back the module alias "spi:93xx46". Fixes: 13613a2246bf ("misc: eeprom_93xx46: Fix module alias to enable module autoprobe")

Re: [PATCH] rcu: Correct cpu offline trace in rcutree_dying_cpu

2021-01-12 Thread Neeraj Upadhyay
On 1/12/2021 11:01 PM, Paul E. McKenney wrote: On Mon, Jan 11, 2021 at 05:15:58PM +0530, Neeraj Upadhyay wrote: Correctly trace whether the outgoing cpu blocks current gp in rcutree_dying_cpu(). Signed-off-by: Neeraj Upadhyay Good catch, queued, thank you! Please see below for my usual

Re: Malicious fs images was Re: ext4 regression in v5.9-rc2 from e7bfb5c9bb3d on ro fs with overlapped bitmaps

2021-01-12 Thread Theodore Ts'o
On Tue, Jan 12, 2021 at 11:28:40PM +0100, Pavel Machek wrote: > > This thread suggested that kernel is _not_ supposed to be robust > against corrupt filesystems (because fsck is not integrated in > kernel). Which was news to me (and I'm not the person that needs > warning in execve

Re: [PATCH v4] PCI: endpoint: Fix NULL pointer dereference for ->get_features()

2021-01-12 Thread Kishon Vijay Abraham I
On 12/01/21 7:32 pm, Shradha Todi wrote: > get_features ops of pci_epc_ops may return NULL, causing NULL pointer > dereference in pci_epf_test_bind function. Let us add a check for > pci_epc_feature pointer in pci_epf_test_bind before we access it to avoid > any such NULL pointer dereference

"UBSAN: shift-out-of-bounds in mceusb_dev_recv" should share the same root cause with "UBSAN: shift-out-of-bounds in mceusb_dev_printdata"

2021-01-12 Thread 慕冬亮
Hi developers, I found that "UBSAN: shift-out-of-bounds in mceusb_dev_recv" and "UBSAN: shift-out-of-bounds in mceusb_dev_printdata" should share the same root cause. The reason is that the PoCs after minimization has a high similarity with the other. And their stack trace only diverges at the

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Wei Huang
On 1/12/21 11:59 AM, Sean Christopherson wrote: On Tue, Jan 12, 2021, Sean Christopherson wrote: On Tue, Jan 12, 2021, Wei Huang wrote: From: Bandan Das While running VM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD CPUs check EAX against reserved memory regions (e.g. SMM memory on

Re: [PATCH V2 1/3] mm/hotplug: Prevalidate the address range being added with platform

2021-01-12 Thread Anshuman Khandual
On 1/12/21 3:39 PM, David Hildenbrand wrote: > On 12.01.21 04:51, Anshuman Khandual wrote: >> >> >> On 1/11/21 7:13 PM, Oscar Salvador wrote: >>> On Mon, Jan 11, 2021 at 11:51:47AM +0100, David Hildenbrand wrote: AFAIKs, all memhp_get_pluggable_range() users pass "1". What about

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Wei Huang
On 1/12/21 11:56 AM, Sean Christopherson wrote: On Tue, Jan 12, 2021, Andy Lutomirski wrote: On Jan 12, 2021, at 7:46 AM, Bandan Das wrote: Andy Lutomirski writes: ... #endif diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c index 6d16481aa29d..c5c4aaf01a1a 100644 ---

Re: [PATCH V3 2/2] scripts: dtc: Build fdtoverlay and fdtdump tools

2021-01-12 Thread Viresh Kumar
On 12-01-21, 12:34, Frank Rowand wrote: > On 1/11/21 11:08 PM, Viresh Kumar wrote: > > On 11-01-21, 18:44, Frank Rowand wrote: > >> On 1/7/21 12:25 AM, Viresh Kumar wrote: > >>> We will start building overlays for platforms soon in the kernel and > >>> would need these tools going forward. Lets

[PATCH 4/4] media: sunxi-cir: Implement suspend/resume/shutdown callbacks

2021-01-12 Thread Samuel Holland
To save power, gate/reset the hardware block while the system is asleep or powered off. Signed-off-by: Samuel Holland --- drivers/media/rc/sunxi-cir.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index

[PATCH 3/4] media: sunxi-cir: Factor out hardware initialization

2021-01-12 Thread Samuel Holland
In preparation for adding suspend/resume hooks, factor out the hardware initialization from the driver probe/remove functions. The timeout programmed during init is taken from the `struct rc_dev` so it is maintained across an exit/init cycle. This resolves some trivial issues with the probe

[PATCH 2/4] media: sunxi-cir: Remove unnecessary spinlock

2021-01-12 Thread Samuel Holland
Only one register, SUNXI_IR_CIR_REG, is accessed from outside the interrupt handler, and that register is not accessed from inside it. As there is no overlap between different contexts, no lock is needed. Signed-off-by: Samuel Holland --- drivers/media/rc/sunxi-cir.c | 10 -- 1 file

Re: [PATCH V4 1/3] dt-bindings: phy: brcm,brcmstb-usb-phy: convert to the json-schema

2021-01-12 Thread Florian Fainelli
On 1/6/2021 12:58 PM, Rafał Miłecki wrote: > From: Rafał Miłecki > > Changes that require mentioning: > 1. interrupt-names >Name "wakeup" was changed to the "wake". It matches example and what >Linux driver looks for in the first place > 2. brcm,ipp and brcm,ioc >Both were

[PATCH 1/4] media: sunxi-cir: Clean up dead register writes

2021-01-12 Thread Samuel Holland
The register writes during driver removal occur after the device is already put back in reset, so they never had any effect. Signed-off-by: Samuel Holland --- drivers/media/rc/sunxi-cir.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/media/rc/sunxi-cir.c

[PATCH 0/4] media: sunxi-cir: Cleanup and power management

2021-01-12 Thread Samuel Holland
This series cleans up some dead code in the sunxi-cir driver and adds system power management hooks. Samuel Holland (4): media: sunxi-cir: Clean up dead register writes media: sunxi-cir: Remove unnecessary spinlock media: sunxi-cir: Factor out hardware initialization media: sunxi-cir:

Re: [PATCH] sched: pull tasks when CPU is about to run SCHED_IDLE tasks

2021-01-12 Thread chin
At 2021-01-12 16:18:51, "Vincent Guittot" wrote: >On Tue, 12 Jan 2021 at 07:59, chin wrote: >> >> >> >> >> At 2021-01-11 19:04:19, "Vincent Guittot" wrote: >> >On Mon, 11 Jan 2021 at 09:27, chin wrote: >> >> >> >> >> >> At 2020-12-23 19:30:26, "Vincent Guittot" >> >> wrote: >> >> >On Wed,

Re: [RFT PATCH 0/4] usb: dwc2: Fixes and improvements

2021-01-12 Thread Guenter Roeck
H Nicolas, On 1/12/21 11:44 AM, Nicolas Saenz Julienne wrote: > Hi Guenter, > I found patches #2 and #3 fixed an issue for us at suse. Are you planning on > sending a v2? Do you mind if I give it a try? > I don't plan a v2. The pandemic put a big hole into both my plans and my ability to test

Re: [PATCH V2 0/2] Broadcom's PMB (Power Management Bus) support

2021-01-12 Thread Florian Fainelli
On 12/14/2020 10:07 AM, Rafał Miłecki wrote: > From: Rafał Miłecki > > PMB is a hardware block used for powering SoC devices like PCIe, USB, > SATA. Initially I planned to treat it as a reset controller and Philipp > pointed out in review that PMB driver should use a power subsystem. > >

Re: [PATCH net-next 0/5] skbuff: introduce skbuff_heads bulking and reusing

2021-01-12 Thread Eric Dumazet
On Wed, Jan 13, 2021 at 2:02 AM Jakub Kicinski wrote: > > On Tue, 12 Jan 2021 13:23:16 +0100 Eric Dumazet wrote: > > On Tue, Jan 12, 2021 at 12:08 PM Alexander Lobakin wrote: > > > > > > From: Edward Cree > > > Date: Tue, 12 Jan 2021 09:54:04 + > > > > > > > Without wishing to weigh in on

Re: [RFC PATCH v3 0/6] Restricted DMA

2021-01-12 Thread Florian Fainelli
On 1/12/2021 8:25 PM, Tomasz Figa wrote: > On Wed, Jan 13, 2021 at 12:56 PM Florian Fainelli > wrote: >> >> >> >> On 1/12/2021 6:29 PM, Tomasz Figa wrote: >>> Hi Florian, >>> >>> On Wed, Jan 13, 2021 at 3:01 AM Florian Fainelli >>> wrote: On 1/11/21 11:48 PM, Claire Chang wrote:

Re: [PATCH] arm64: dts: qcom: sdm660: Fix CPU capacities

2021-01-12 Thread Danny Lin
On Tue, Jan 12, 2021 at 8:04 pm, AngeloGioacchino Del Regno wrote: Il 12/01/21 15:59, Alexey Minnekhanov ha scritto: Hi! I always had a feeling something is not right in those cpu definitions, so cpus with reg 100-103 are little cores, and 0-3 big ones? But downstream sdm660.dtsi has a

Re: [PATCH] riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL

2021-01-12 Thread Palmer Dabbelt
On Sun, 03 Jan 2021 02:11:35 PST (-0800), penb...@gmail.com wrote: On Sat, Jan 2, 2021 at 3:26 PM wrote: From: Guo Ren The patch fix commit: ad5d112 ("riscv: use vDSO common flow to reduce the latency of the time-related functions"). The GENERIC_TIME_VSYSCALL should be

Re: [PATCH] riscv: Trace irq on only interrupt is enabled

2021-01-12 Thread Palmer Dabbelt
On Fri, 18 Dec 2020 16:20:51 PST (-0800), Atish Patra wrote: We should call irq trace only if interrupt is going to be enabled during excecption handling. Otherwise, it results in following warning during boot with lock debugging enabled. [0.00] [ cut here ] [

Re: [PATCH] cpuset: fix typos in comments

2021-01-12 Thread Randy Dunlap
On 1/12/21 8:37 PM, Aubrey Li wrote: > Change hierachy to hierarchy and congifured to configured, no functionality > changed. > > Signed-off-by: Aubrey Li Reviewed-by: Randy Dunlap Thanks. > --- > kernel/cgroup/cpuset.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff

[PATCH] cpuset: fix typos in comments

2021-01-12 Thread Aubrey Li
Change hierachy to hierarchy and congifured to configured, no functionality changed. Signed-off-by: Aubrey Li --- kernel/cgroup/cpuset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 57b5b5d..15f4300 100644 ---

Re: [PATCH net-next] net: ipa: add config dependency on QCOM_SMEM

2021-01-12 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 12 Jan 2021 13:21:34 -0600 you wrote: > The IPA driver depends on some SMEM functionality (qcom_smem_init(), > qcom_smem_alloc(), and qcom_smem_virt_to_phys()), but this is not > reflected in the configuration

Re: [PATCH] hci: llc_shdlc: style: Simplify bool comparison

2021-01-12 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 11 Jan 2021 17:24:23 +0800 you wrote: > Fix the following coccicheck warning: > ./net/nfc/hci/llc_shdlc.c:239:5-21: WARNING: Comparison to bool > > Signed-off-by: YANG LI > Reported-by: Abaci Robot > --- >

Re: [PATCH net-next v8 0/2] net: dsa: add stats64 support

2021-01-12 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Mon, 11 Jan 2021 11:46:56 +0100 you wrote: > changes v8: > - stats.no_handler should not be assigned from HW stats > > changes v7: > - move raw.filtered from rx_errors to rx_dropped counter > > changes v6: > - move

Re: [PATCH v5 2/2] venus: venc: Add support for Long Term Reference (LTR) controls

2021-01-12 Thread dikshita
Hi Hans, On 2021-01-12 14:34, Hans Verkuil wrote: On 04/01/2021 06:09, Dikshita Agarwal wrote: Add support for below LTR controls in encoder: - V4L2_CID_MPEG_VIDEO_LTR_COUNT - V4L2_CID_MPEG_VIDEO_FRAME_LTR_INDEX - V4L2_CID_MPEG_VIDEO_USE_LTR_FRAMES This patch does not add any Request API

Re: [RFC PATCH v3 0/6] Restricted DMA

2021-01-12 Thread Tomasz Figa
On Wed, Jan 13, 2021 at 12:56 PM Florian Fainelli wrote: > > > > On 1/12/2021 6:29 PM, Tomasz Figa wrote: > > Hi Florian, > > > > On Wed, Jan 13, 2021 at 3:01 AM Florian Fainelli > > wrote: > >> > >> On 1/11/21 11:48 PM, Claire Chang wrote: > >>> On Fri, Jan 8, 2021 at 1:59 AM Florian Fainelli

Re: [PATCH 8/9] arm64: dts: Add Librem5 Evergreen

2021-01-12 Thread Krzysztof Kozlowski
On Tue, Jan 12, 2021 at 10:51:50AM +0100, Martin Kepplinger wrote: > Add librem5-r4 with specifics to that revision like the near-level, > battery and charger properties. For schematics and more information, > see https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html > >

Re: [PATCH 9/9] dt-bindings: arm: fsl: Add the librem 5 Evergreen revision

2021-01-12 Thread Krzysztof Kozlowski
On Tue, Jan 12, 2021 at 10:51:51AM +0100, Martin Kepplinger wrote: > Add an entry for the Librem 5 phone, Evergreen revision which is supported > by "r4". Schematics and more information can be found at > https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html > > Signed-off-by:

[PATCH V2 08/11] coresight: core: Add support for dedicated percpu sinks

2021-01-12 Thread Anshuman Khandual
Add support for dedicated sinks that are bound to individual CPUs. (e.g, TRBE). To allow quicker access to the sink for a given CPU bound source, keep a percpu array of the sink devices. Also, add support for building a path to the CPU local sink from the ETM. This adds a new percpu sink type

[PATCH V2 09/11] coresight: etm-perf: Truncate the perf record if handle has no space

2021-01-12 Thread Anshuman Khandual
While starting off the etm event, just abort and truncate the perf record if the perf handle as no space left. This avoids configuring both source and sink devices in case the data cannot be consumed in perf. Cc: Mathieu Poirier Cc: Mike Leach Cc: Suzuki K Poulose Signed-off-by: Anshuman

[PATCH V2 10/11] coresight: sink: Add TRBE driver

2021-01-12 Thread Anshuman Khandual
Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is accessible via the system registers. The TRBE supports different addressing modes including CPU virtual address and buffer modes including the circular buffer mode. The TRBE buffer is addressed by a base pointer

[PATCH V2 11/11] dts: bindings: Document device tree bindings for Arm TRBE

2021-01-12 Thread Anshuman Khandual
From: Suzuki K Poulose Document the device tree bindings for Trace Buffer Extension (TRBE). Cc: Anshuman Khandual Cc: Mathieu Poirier Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Suzuki K Poulose Signed-off-by: Anshuman Khandual ---

[PATCH V2 06/11] dts: bindings: Document device tree bindings for ETE

2021-01-12 Thread Anshuman Khandual
From: Suzuki K Poulose Document the device tree bindings for Embedded Trace Extensions. ETE can be connected to legacy coresight components and thus could optionally contain a connection graph as described by the CoreSight bindings. Cc: devicet...@vger.kernel.org Cc: Mathieu Poirier Cc: Mike

[PATCH V2 05/11] coresight: ete: Add support for ETE tracing

2021-01-12 Thread Anshuman Khandual
From: Suzuki K Poulose Add ETE as one of the supported device types we support with ETM4x driver. The devices are named following the existing convention as ete. ETE mandates that the trace resource status register is programmed before the tracing is turned on. For the moment simply write to it

[PATCH V2 07/11] arm64: Add TRBE definitions

2021-01-12 Thread Anshuman Khandual
This adds TRBE related registers and corresponding feature macros. Cc: Mathieu Poirier Cc: Mike Leach Cc: Suzuki K Poulose Signed-off-by: Anshuman Khandual --- arch/arm64/include/asm/sysreg.h | 49 + 1 file changed, 49 insertions(+) diff --git

[PATCH V2 04/11] coresight: ete: Add support for ETE sysreg access

2021-01-12 Thread Anshuman Khandual
From: Suzuki K Poulose Add support for handling the system registers for Embedded Trace Extensions (ETE). ETE shares most of the registers with ETMv4 except for some and also adds some new registers. Re-arrange the ETMv4x list to share the common definitions and add the ETE sysreg support. Cc:

[PATCH V2 02/11] coresight: Do not scan for graph if none is present

2021-01-12 Thread Anshuman Khandual
From: Suzuki K Poulose If a graph node is not found for a given node, of_get_next_endpoint() will emit the following error message : OF: graph: no port node found in / If the given component doesn't have any explicit connections (e.g, ETE) we could simply ignore the graph parsing. Cc:

Re: linux-next: build warning after merge of the jc_docs tree

2021-01-12 Thread Stephen Rothwell
Hi all, On Wed, 13 Jan 2021 15:12:54 +1100 Stephen Rothwell wrote: > > After merging the jc_docs tree, today's linux-next build (htmldocs) > produced this warning: > > Documentation/translations/zh_CN/mips/booting.rst:5: WARNING: undefined > label: booting (if the link has no caption the

[PATCH V2 03/11] coresight: etm4x: Add support for PE OS lock

2021-01-12 Thread Anshuman Khandual
From: Suzuki K Poulose ETE may not implement the OS lock and instead could rely on the PE OS Lock for the trace unit access. This is indicated by the TRCOLSR.OSM == 0b100. Add support for handling the PE OS lock Cc: Mathieu Poirier Cc: Mike Leach Signed-off-by: Suzuki K Poulose

[PATCH V2 01/11] coresight: etm-perf: Allow an event to use different sinks

2021-01-12 Thread Anshuman Khandual
From: Suzuki K Poulose When there are multiple sinks on the system, in the absence of a specified sink, it is quite possible that a default sink for an ETM could be different from that of another ETM. However we do not support having multiple sinks for an event yet. This patch allows the event

[PATCH V2 00/11] arm64: coresight: Enable ETE and TRBE

2021-01-12 Thread Anshuman Khandual
This series enables future IP trace features Embedded Trace Extension (ETE) and Trace Buffer Extension (TRBE). This series depends on the ETM system register instruction support series [0] which is available here [1]. This series which applies on [1] is avaialble here [2] for quick access. ETE is

Re: [PATCH 2/9] arm64: dts: imx8mq-librem5: Mark charger IRQ as High-Z

2021-01-12 Thread Krzysztof Kozlowski
On Tue, Jan 12, 2021 at 10:51:44AM +0100, Martin Kepplinger wrote: > From: Guido Günther > > This is consistent with other IRQs and makes keeps currents low. > > Signed-off-by: Guido Günther > Signed-off-by: Martin Kepplinger > --- > arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +- >

Re: [PATCH 1/9] arm64: defconfig: Enable vibra-pwm

2021-01-12 Thread Krzysztof Kozlowski
On Tue, Jan 12, 2021 at 10:51:43AM +0100, Martin Kepplinger wrote: > From: Guido Günther > > The haptic motor for the Librem 5 uses this. > > Signed-off-by: Guido Günther > Signed-off-by: Martin Kepplinger > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH v2 1/3] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-12 Thread Andy Lutomirski
> On Jan 12, 2021, at 5:50 PM, Luck, Tony wrote: > > On Tue, Jan 12, 2021 at 02:04:55PM -0800, Andy Lutomirski wrote: >>> But we know that the fault happend in a get_user() or copy_from_user() call >>> (i.e. an RIP with an extable recovery address). Does context switch >>> access user

Re: [PATCH v3] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call

2021-01-12 Thread Cindy Lu
On Tue, Jan 12, 2021 at 3:53 PM Greg KH wrote: > > On Tue, Jan 12, 2021 at 01:36:29PM +0800, Cindy Lu wrote: > > In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. > > this cb.private will finally use in vhost_vdpa_config_cb as > > vhost_vdpa. Fix this issue. > > > > Fixes:

Re: [PATCH v3] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call

2021-01-12 Thread Cindy Lu
On Wed, Jan 13, 2021 at 11:38 AM Jason Wang wrote: > > > On 2021/1/12 下午1:36, Cindy Lu wrote: > > In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. > > this cb.private will finally use in vhost_vdpa_config_cb as > > vhost_vdpa. Fix this issue. > > > > Fixes: 776f395004d82

linux-next: build warning after merge of the jc_docs tree

2021-01-12 Thread Stephen Rothwell
Hi all, After merging the jc_docs tree, today's linux-next build (htmldocs) produced this warning: Documentation/translations/zh_CN/mips/index.rst:5: WARNING: undefined label: index (if the link has no caption the label must precede a section header) Introduced by commit b8e724fd7117

Re: [PATCH 1/2] KVM: x86: introduce definitions to support static calls for kvm_x86_ops

2021-01-12 Thread Jason Baron
On 1/12/21 6:04 PM, Sean Christopherson wrote: On Mon, Jan 11, 2021, Jason Baron wrote: Use static calls to improve kvm_x86_ops performance. Introduce the definitions that will be used by a subsequent patch to actualize the savings. Note that all kvm_x86_ops are covered here except for

linux-next: build warning after merge of the jc_docs tree

2021-01-12 Thread Stephen Rothwell
Hi all, After merging the jc_docs tree, today's linux-next build (htmldocs) produced this warning: Documentation/translations/zh_CN/mips/booting.rst:5: WARNING: undefined label: booting (if the link has no caption the label must precede a section header) Introduced by commit 7fd3954b0c52

linux-next: build warning after merge of the v4l-dvb tree

2021-01-12 Thread Stephen Rothwell
Hi all, After merging the v4l-dvb tree, today's linux-next build (htmldocs) produced this warning: Documentation/driver-api/media/v4l2-subdev.rst:125: WARNING: Inline interpreted text or phrase reference start-string without end-string. Introduced by commit 25c8d9a7689e ("media:

Re: [PATCH v2 0/3] hv_netvsc: Prevent packet loss during VF add/remove

2021-01-12 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Fri, 8 Jan 2021 16:53:40 -0800 you wrote: > From: Long Li > > This patch set fixes issues with packet loss on VF add/remove. > > Long Li (3): > hv_netvsc: Check VF datapath when sending traffic to VF >

linux-next: build warning after merge of the jc_docs tree

2021-01-12 Thread Stephen Rothwell
Hi all, After merging the jc_docs tree, today's linux-next build (htmldocs) produced this warning: Documentation/translations/zh_CN/mips/ingenic-tcu.rst:61: WARNING: Malformed table. Text in column margin in table line 6. === = 时钟drivers/clk/ingenic/tcu.c 中断

Re: [RFC PATCH 0/7] Support for virtio-net hash reporting

2021-01-12 Thread Jason Wang
On 2021/1/13 上午7:47, Willem de Bruijn wrote: On Tue, Jan 12, 2021 at 3:29 PM Yuri Benditovich wrote: On Tue, Jan 12, 2021 at 9:49 PM Yuri Benditovich wrote: On Tue, Jan 12, 2021 at 9:41 PM Yuri Benditovich wrote: Existing TUN module is able to use provided "steering eBPF" to calculate

[PATCH v2 2/3] input: sun4i-lradc-keys - Add wakup support

2021-01-12 Thread Samuel Holland
From: Ondrej Jirman Allow the driver to wake the system on key press if the "wakeup-source" property is provided in the device tree. Using the LRADC as a wakeup source requires keeping the AVCC domain active during sleep. Since this has a nontrivial impact on power consumption (sometimes

[PATCH v2 0/3] PinePhone volume key (LRADC) wakeup support

2021-01-12 Thread Samuel Holland
This series allows the volume keys on the PinePhone to wake up the device. As pointed out for v1, wakeup should only be enabled when a "wakeup-source" property is present, so v2 requires DT and binding changes in addition to the driver change. Changes since v1: - Add requisite DT binding change

[PATCH v2 3/3] arm64: dts: allwinner: pinephone: Support volume key wakeup

2021-01-12 Thread Samuel Holland
PinePhone volume keys are connected to the LRADC in the A64. Users may want to use them to wake the device from sleep. Support this by declaring the LRADC as a wakeup source. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 1 + 1 file changed, 1

[PATCH v2 1/3] dt-bindings: sun4i-a10-lradc-keys: Accept wakeup-source property

2021-01-12 Thread Samuel Holland
The LRADC provides an interrupt that can be used to wake the system. Signify this by accepting a "wakeup-source" property in the binding. Signed-off-by: Samuel Holland --- .../bindings/input/allwinner,sun4i-a10-lradc-keys.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: Re: [PATCH] bio: limit bio max size.

2021-01-12 Thread Changheun Lee
>On 2021/01/12 21:14, Changheun Lee wrote: >>> On 2021/01/12 17:52, Changheun Lee wrote: From: "Changheun Lee" bio size can grow up to 4GB when muli-page bvec is enabled. but sometimes it would lead to inefficient behaviors. in case of large chunk direct I/O, - 64MB chunk

RE: [PATCH net-next] udp: allow forwarding of plain (non-fraglisted) UDP GRO packets

2021-01-12 Thread Dongseok Yi
On 2021-01-13 12:10, Alexander Duyck wrote: > On 1/12/21 1:16 PM, Alexander Lobakin wrote: > > Commit 9fd1ff5d2ac7 ("udp: Support UDP fraglist GRO/GSO.") actually > > not only added a support for fraglisted UDP GRO, but also tweaked > > some logics the way that non-fraglisted UDP GRO started to

[tip:auto-latest] BUILD SUCCESS 83e7ef80f52d4621c4063454f4e359d4d0a2136c

2021-01-12 Thread kernel test robot
i386 randconfig-a002-20210112 i386 randconfig-a005-20210112 i386 randconfig-a006-20210112 i386 randconfig-a003-20210112 i386 randconfig-a001-20210112 i386 randconfig-a004-20210112 x86_64

Re: [RFC PATCH v3 0/6] Restricted DMA

2021-01-12 Thread Florian Fainelli
On 1/12/2021 6:29 PM, Tomasz Figa wrote: > Hi Florian, > > On Wed, Jan 13, 2021 at 3:01 AM Florian Fainelli wrote: >> >> On 1/11/21 11:48 PM, Claire Chang wrote: >>> On Fri, Jan 8, 2021 at 1:59 AM Florian Fainelli >>> wrote: On 1/7/21 9:42 AM, Claire Chang wrote: >> Can

[PATCH] net: stmmac: Fixed mtu channged by cache aligned

2021-01-12 Thread David Wu
Since the original mtu is not used when the mtu is updated, the mtu is aligned with cache, this will get an incorrect. For example, if you want to configure the mtu to be 1500, but mtu 1536 is configured in fact. Fixed: eaf4fac478077 ("net: stmmac: Do not accept invalid MTU values")

[PATCH v2] pinctrl: sprd: Simplify bool comparison

2021-01-12 Thread Yang Li
Fix the following coccicheck warning: ./drivers/pinctrl/sprd/pinctrl-sprd.c:690:8-23: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- Changes in v2: - make "pinctrl: sprd:" as subject prefix drivers/pinctrl/sprd/pinctrl-sprd.c | 2 +- 1 file changed, 1

RE: [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges

2021-01-12 Thread Bharat Gooty
Hello Ray, I had cross checked with Design and integration team. Yes we can set the "dma-rages" to 40 bit DMA ranges. Tested, it is working. Thanks, -Bharat -Original Message- From: Ray Jui Sent: Wednesday, January 13, 2021 2:28 AM To: Arnd Bergmann Cc: Florian Fainelli ; Bharat Gooty

Re: [PATCH v3] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call

2021-01-12 Thread Jason Wang
On 2021/1/12 下午1:36, Cindy Lu wrote: In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. this cb.private will finally use in vhost_vdpa_config_cb as vhost_vdpa. Fix this issue. Fixes: 776f395004d82 ("vhost_vdpa: Support config interrupt in vdpa") Acked-by: Jason Wang

Re: [PATCH v3 4/4] dma-buf: heaps: add chunk heap to dmabuf heaps

2021-01-12 Thread Randy Dunlap
On 1/12/21 5:21 PM, Minchan Kim wrote: > +config DMABUF_HEAPS_CHUNK > + bool "DMA-BUF CHUNK Heap" > + depends on DMABUF_HEAPS && DMA_CMA > + help > + Choose this option to enable dma-buf CHUNK heap. This heap is backed > + by the Contiguous Memory Allocator (CMA) and

Re: [PATCH v2 3/5] dt-bindings: clock: Add Qualcomm A7 PLL binding

2021-01-12 Thread Rob Herring
On Fri, 08 Jan 2021 17:02:31 +0530, Manivannan Sadhasivam wrote: > Add devicetree YAML binding for Cortex A7 PLL clock in Qualcomm > platforms like SDX55. > > Signed-off-by: Manivannan Sadhasivam > --- > .../devicetree/bindings/clock/qcom,a7pll.yaml | 51 +++ > 1 file changed,

Re: mmotm 2021-01-12-01-57 uploaded (NR_SWAPCACHE in mm/)

2021-01-12 Thread Stephen Rothwell
Hi all, On Tue, 12 Jan 2021 13:50:10 -0800 Andrew Morton wrote: > > On Tue, 12 Jan 2021 12:38:18 -0800 Randy Dunlap wrote: > > > On 1/12/21 1:58 AM, a...@linux-foundation.org wrote: > > > The mm-of-the-moment snapshot 2021-01-12-01-57 has been uploaded to > > > > > >

Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse

2021-01-12 Thread Linus Torvalds
On Tue, Jan 12, 2021 at 6:16 PM Matthew Wilcox wrote: > > The thing about the speculative page cache references is that they can > temporarily bump a refcount on a page which _used_ to be in the page > cache and has now been reallocated as some other kind of page. Oh, and thinking about this

Re: [PATCH v2 1/5] dt-bindings: mailbox: Add binding for SDX55 APCS

2021-01-12 Thread Rob Herring
On Fri, Jan 08, 2021 at 05:02:29PM +0530, Manivannan Sadhasivam wrote: > Add devicetree YAML binding for SDX55 APCS GCC block. The APCS block > acts as the mailbox controller and also provides a clock output and > takes 3 clock sources (pll, aux, ref) as input. > > Signed-off-by: Manivannan

Re: [PATCH 4/7] spi: spi-geni-qcom: Add support for GPI dma

2021-01-12 Thread Vinod Koul
On 12-01-21, 16:01, Doug Anderson wrote: > Hi, > > On Mon, Jan 11, 2021 at 7:17 AM Vinod Koul wrote: > > > > We can use GPI DMA for devices where it is enabled by firmware. Add > > support for this mode > > > > Signed-off-by: Vinod Koul > > --- > > drivers/spi/spi-geni-qcom.c | 395

Re: [PATCH 3/7] soc: qcom: geni: Add support for gpi dma

2021-01-12 Thread Vinod Koul
On 12-01-21, 16:01, Doug Anderson wrote: > Hi, > > On Mon, Jan 11, 2021 at 7:17 AM Vinod Koul wrote: > > > > +static int geni_se_select_gpi_mode(struct geni_se *se) > > +{ > > + unsigned int geni_dma_mode = 0; > > + unsigned int gpi_event_en = 0; > > + unsigned int

Re: [PATCH 1/4] dt-bindings: renesas,rcar-dmac: Add r8a779a0 support

2021-01-12 Thread Rob Herring
On Thu, 07 Jan 2021 19:15:21 +0100, Geert Uytterhoeven wrote: > Document the compatible value for the Direct Memory Access Controller > blocks in the Renesas R-Car V3U (R8A779A0) SoC. > > The most visible difference with DMAC blocks on other R-Car SoCs is the > move of the per-channel registers

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