[ANNOUNCE] autofs 5.1.7 release

2021-01-26 Thread Ian Kent
Hi all, It's time for a release, autofs-5.1.7. As with autofs-5.1.6 work to resolve difficulties using very large large direct mount maps has continued but there have been some difficulties. Trying to get back to the situation that existed before symlinking of the mount table can't be done in

[PATCH 4/4] sched/fair: Merge select_idle_core/cpu()

2021-01-26 Thread Mel Gorman
From: Peter Zijlstra From: Peter Zijlstra (Intel) Both select_idle_core() and select_idle_cpu() do a loop over the same cpumask. Observe that by clearing the already visited CPUs, we can fold the iteration and iterate a core at a time. All we need to do is remember any non-idle CPU we

linux-next: Fixes tag needs some work in the block tree

2021-01-26 Thread Stephen Rothwell
Hi all, In commit d4fc3640ff36 ("block, bfq: set next_rq to waker_bfqq->next_rq in waker injection") Fixes tag Fixes: c5089591c3ba ("block, bfq: detect wakers and unconditionally inject their I/O") has these problem(s): - Target SHA1 does not exist Maybe you meant Fixes:

Re: [PATCH 4/4] perf tools: determine if LR is the return address

2021-01-26 Thread James Clark
On 24/01/2021 02:05, Jiri Olsa wrote: > On Fri, Jan 22, 2021 at 04:18:54PM +, Alexandre Truong wrote: >> On arm64 and frame pointer mode (e.g: perf record --callgraph fp), >> use dwarf unwind info to check if the link register is the return >> address in order to inject it to the frame

Re: [PATCH v3 2/2] usb: typec: tcpci_maxim: add terminating newlines to logging

2021-01-26 Thread Heikki Krogerus
On Sun, Jan 24, 2021 at 10:39:47PM +0800, angkery wrote: > From: Junlin Yang > > Add terminating '\n' to the formats where missed. > > Signed-off-by: Junlin Yang Reviewed-by: Heikki Krogerus > --- > v3:Modify it again and submit it separately from patch 1. > >

[PATCH] scsi: qla2xxx: fix some memory corruption

2021-01-26 Thread Dan Carpenter
This was supposed to be "data" instead of "". The current code will corrupt the stack. Fixes: dbf1f53cfd23 ("scsi: qla2xxx: Implementation to get and manage host, target stats and initiator port") Signed-off-by: Dan Carpenter --- drivers/scsi/qla2xxx/qla_bsg.c | 2 +- 1 file changed, 1

Re: linux-next: manual merge of the risc-v tree with the arm-soc tree

2021-01-26 Thread Arnd Bergmann
On Sun, Jan 24, 2021 at 11:14 PM Stephen Rothwell wrote: > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for

Re: [PATCH v7] perf stat: Fix wrong skipping for per-die aggregation

2021-01-26 Thread Jiri Olsa
On Mon, Jan 25, 2021 at 01:47:54PM +0800, Jin, Yao wrote: > Hi Jiri, > > On 1/24/2021 6:57 AM, Jiri Olsa wrote: > > On Thu, Jan 21, 2021 at 12:21:36PM +0800, Jin, Yao wrote: > > > > sNIP > > > > > mask = hashmap__new(pkg_id_hash, pkg_id_equal, NULL); > > > d = cpu_map__get_die(cpus, cpu,

[PATCH v2 2/3] arm64: dts: qcom: msm8916: Add blsp_i2c3

2021-01-26 Thread Jonathan Albrieux
MSM8916 has another I2C QUP controller that can be enabled on GPIO 10 and 11. Add blsp_i2c3 to msm8916.dtsi and disable it by default. Reviewed-by: Konrad Dybcio Reviewed-by: Stephan Gerhold Signed-off-by: Jonathan Albrieux --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 16

Re: [PATCH 3/3] memory: mtk-smi: Switch MTK_SMI to tristate

2021-01-26 Thread Krzysztof Kozlowski
On Mon, Jan 25, 2021 at 02:49:44PM +0800, Yong Wu wrote: > On Fri, 2021-01-22 at 22:35 +0100, Krzysztof Kozlowski wrote: > > On Thu, Jan 21, 2021 at 02:24:29PM +0800, Yong Wu wrote: > > > This patch switches MTK_SMI to tristate. Support it could be 'm'. > > > > > > Meanwhile, Fix a build issue

[PATCH 4/4] cxgb4: remove redundant NULL check

2021-01-26 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c:533:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c | 6 ++ 1 file

[PATCH 3/4] cxgb4: remove redundant NULL check

2021-01-26 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c:161:2-7: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c | 3 +-- 1 file changed,

Re: [PATCH] tee: optee: remove need_resched() before cond_resched()

2021-01-26 Thread Jens Wiklander
Hi Rouven and Sumit, On Mon, Jan 25, 2021 at 10:55 AM Jens Wiklander wrote: > > Testing need_resched() before cond_resched() is not needed as an > equivalent test is done internally in cond_resched(). So drop the > need_resched() test. > > Fixes: dcb3b06d9c34 ("tee: optee: replace might_sleep

Re: [PATCH 1/3] media: i2c: adv7842: remove open coded version of SMBus block write

2021-01-26 Thread Hans Verkuil
On 19/01/2021 10:39, Wolfram Sang wrote: > The version here is identical to the one in the I2C core, so use the > latter version directly. > > Signed-off-by: Wolfram Sang Reviewed-by: Hans Verkuil Looks good to me! Hans > --- > > Changes since RFC: > * skip define, use

Re: [PATCH 2/3] blk-mq: Always complete remote completions requests in softirq

2021-01-26 Thread Sebastian Andrzej Siewior
On 2021-01-25 08:25:42 [+], Christoph Hellwig wrote: > On Mon, Jan 25, 2021 at 08:10:16AM +0100, Hannes Reinecke wrote: > > I don't get this. > > This code is about _avoiding_ having to raise a softirq if the driver > > exports more than one hardware queue. > > So where exactly does the remote

Re: [PATCH v2 2/3] media/radio: Make radio_isa_common_remove() return void

2021-01-26 Thread Hans Verkuil
On 22/01/2021 10:24, Uwe Kleine-König wrote: > Instead of an unconditional return 0, return no value. One of the two > callers ignored the return value already before. > > This simplifies the next patch. > > Signed-off-by: Uwe Kleine-König Reviewed-by: Hans Verkuil Thanks! Hans >

Re: [PATCH 2/3] blk-mq: Always complete remote completions requests in softirq

2021-01-26 Thread Christoph Hellwig
On Mon, Jan 25, 2021 at 09:30:29AM +0100, Sebastian Andrzej Siewior wrote: > On 2021-01-25 08:25:42 [+], Christoph Hellwig wrote: > > On Mon, Jan 25, 2021 at 08:10:16AM +0100, Hannes Reinecke wrote: > > > I don't get this. > > > This code is about _avoiding_ having to raise a softirq if the

Re: [PATCH] mm/filemap: Adding missing mem_cgroup_uncharge() to __add_to_page_cache_locked()

2021-01-26 Thread Muchun Song
On Mon, Jan 25, 2021 at 12:29 PM Waiman Long wrote: > > The commit 3fea5a499d57 ("mm: memcontrol: convert page > cache to a new mem_cgroup_charge() API") introduced a bug in > __add_to_page_cache_locked() causing the following splat: > > [ 1570.068330] page dumped because:

Re: [PATCH 2/3] media: i2c: adv7511: remove open coded version of SMBus block read

2021-01-26 Thread Hans Verkuil
On 19/01/2021 10:39, Wolfram Sang wrote: > The open coded version differs from the one in the core in one way: the > buffer will be always copied back, even when the transfer failed. Be > more robust: use the block read from the I2C core and propagate a > potential errno further to the sanity

Re: [PATCH 3/3] memory: mtk-smi: Switch MTK_SMI to tristate

2021-01-26 Thread Yong Wu
On Mon, 2021-01-25 at 09:44 +0100, Krzysztof Kozlowski wrote: > On Mon, Jan 25, 2021 at 02:49:44PM +0800, Yong Wu wrote: > > On Fri, 2021-01-22 at 22:35 +0100, Krzysztof Kozlowski wrote: > > > On Thu, Jan 21, 2021 at 02:24:29PM +0800, Yong Wu wrote: > > > > This patch switches MTK_SMI to tristate.

Re: [PATCH v2 3/3] arm64: dts: qcom: msm8916-longcheer-l8910: Add imu/magnetometer

2021-01-26 Thread Stephan Gerhold
On Mon, Jan 25, 2021 at 10:44:32AM +0100, Jonathan Albrieux wrote: > BQ Aquaris X5 (Longcheer L8910) has: > - BMI160 accelerometer and gyroscope sensor > - AK09911 magnetometer sensor > Add them to the device tree. > > This patch depends on patch "arm64: dts: qcom: msm8916: Add blsp_i2c3". > >

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-26 Thread Donald Buczek
Dear Guoqing, a colleague of mine was able to produce the issue inside a vm and were able to find a procedure to run the vm into the issue within minutes (not unreliably after hours on a physical system as before). This of course helped to pinpoint the problem. My current theory of what is

Re: [PATCH v2] PCI: Re-enable downstream port LTR if it was previously enabled

2021-01-26 Thread Mingchuang Qiao
On Fri, 2021-01-22 at 07:20 -0600, Bjorn Helgaas wrote: > On Fri, Jan 22, 2021 at 03:03:11PM +0800, Mingchuang Qiao wrote: > > On Thu, 2021-01-21 at 16:31 -0600, Bjorn Helgaas wrote: > > > [+cc Alex and Mingchuang et al from > > >

Re: [PATCH][next] vpda: Fix memory leaks of msg on error return paths

2021-01-26 Thread Stefano Garzarella
On Fri, Jan 22, 2021 at 02:52:35PM +, Colin King wrote: From: Colin Ian King There are two error return paths that neglect to free the allocated object msg that lead to memory leaks. Fix this by adding an error exit path that frees msg. Addresses-Coverity: ("Resource leak") Fixes:

[PATCH 0/3] pinctrl: at91-pio4: add support for slew-rate

2021-01-26 Thread Claudiu Beznea
Hi, This series adds support for slew rate on SAMA7G5. Along with this patch 3/3 fixes some checkpatch.pl warnings. Thank you, Claudiu Beznea Claudiu Beznea (3): dt-bindings: pinctrl: at91-pio4: add slew-rate pinctrl: at91-pio4: add support for slew-rate pinctrl: at91-pio4: fix "Prefer

Re: [PATCH v2] lan743x: add virtual PHY for PHY-less devices

2021-01-26 Thread Sergej Bauer
On Saturday, January 23, 2021 4:39:47 AM MSK Florian Fainelli wrote: > On 1/22/2021 5:01 PM, Sergej Bauer wrote: > > On Saturday, January 23, 2021 3:01:47 AM MSK Florian Fainelli wrote: > >> On 1/22/2021 3:58 PM, Sergej Bauer wrote: > >>> On Saturday, January 23, 2021 2:23:25 AM MSK Andrew Lunn

GOOD DAY

2021-01-26 Thread Mr. Jacopo Minicucci
Hello Sir/Ma, We are a leading investment company working on project financing internationally. We grant loan at a low interest rate of 2% RIO per anum. Kindly revert back if interested for further proceedings and negotiations. For further inquiries contact us.

Re: [PATCH] fs/pipe: allow sendfile() to pipe again

2021-01-26 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 3/3 v2] blk-mq: Use llist_head for blk_cpu_done

2021-01-26 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH V4 0/4] mm/memory_hotplug: Pre-validate the address range with platform

2021-01-26 Thread Anshuman Khandual
On 1/25/21 2:55 PM, David Hildenbrand wrote: > On 25.01.21 03:58, Anshuman Khandual wrote: >> This series adds a mechanism allowing platforms to weigh in and prevalidate >> incoming address range before proceeding further with the memory hotplug. >> This helps prevent potential platform errors

RE: [EXT] [PATCH] scsi: qla2xxx: fix some memory corruption

2021-01-26 Thread Saurav Kashyap
Hi Dan, Thanks for a patch. > -Original Message- > From: Dan Carpenter > Sent: Monday, January 25, 2021 2:14 PM > To: Nilesh Javali > Cc: GR-QLogic-Storage-Upstream upstr...@marvell.com>; James E.J. Bottomley ; > Martin K. Petersen ; Himanshu Madhani > ; Saurav Kashyap > ;

Re: [PATCH v2] lan743x: add virtual PHY for PHY-less devices

2021-01-26 Thread Sergej Bauer
On Saturday, January 23, 2021 2:23:25 AM MSK Andrew Lunn wrote: > > > > @@ -1000,8 +1005,10 @@ static void lan743x_phy_close(struct > > > > lan743x_adapter *adapter)> > > > > > > > > struct net_device *netdev = adapter->netdev; > > > > > > > > phy_stop(netdev->phydev); >

Re: [PATCH v4 4/5] docs: Document CLL and Mastering display colorimetry controls

2021-01-26 Thread Hans Verkuil
On 20/01/2021 10:26, Stanimir Varbanov wrote: > Document Content Light Level and Mastering Display v4l2 colorimetry > controls. > > Signed-off-by: Stanimir Varbanov > --- > .../media/v4l/ext-ctrls-colorimetry.rst | 71 +++ > .../media/videodev2.h.rst.exceptions |

Re: [PATCH 2/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-01-26 Thread Oscar Salvador
On Tue, Jan 19, 2021 at 02:58:41PM +0100, David Hildenbrand wrote: > IIRC, there is a conflict with the hpage vmemmap freeing patch set, > right? How are we going to handle that? First of all, sorry for the lateness David, was a bit busy. AFAIK, there is no conflict at the moment. hpage vmemmap

Re: [PATCH 2/3] memory: mtk-smi: Add module_exit and module_license

2021-01-26 Thread Krzysztof Kozlowski
On Mon, Jan 25, 2021 at 05:28:05PM +0800, Yong Wu wrote: > On Mon, 2021-01-25 at 09:40 +0100, Krzysztof Kozlowski wrote: > > On Mon, Jan 25, 2021 at 02:49:41PM +0800, Yong Wu wrote: > > > On Fri, 2021-01-22 at 22:34 +0100, Krzysztof Kozlowski wrote: > > > > On Thu, Jan 21, 2021 at 02:24:28PM

[PATCH v5 06/21] arm64: Move VHE-specific SPE setup to mutate_to_vhe()

2021-01-26 Thread Marc Zyngier
There isn't much that a VHE kernel needs on top of whatever has been done for nVHE, so let's move the little we need to the VHE stub (the SPE setup), and drop the init_el2_state macro. No expected functional change. Signed-off-by: Marc Zyngier Acked-by: David Brazdil ---

Re: [PATCH] printk: fix string termination for record_print_text()

2021-01-26 Thread Petr Mladek
On Sun 2021-01-24 21:33:28, John Ogness wrote: > Commit f0e386ee0c0b ("printk: fix buffer overflow potential for > print_text()") added string termination in record_print_text(). > However it used the wrong base pointer for adding the terminator. > This led to a 0-byte being written somewhere

[PATCH v5 09/21] arm64: cpufeature: Add global feature override facility

2021-01-26 Thread Marc Zyngier
Add a facility to globally override a feature, no matter what the HW says. Yes, this sounds dangerous, but we do respect the "safe" value for a given feature. This doesn't mean the user doesn't need to know what they are doing. Nothing uses this yet, so we are pretty safe. For now.

Re: [PATCH 1/2] printk: Add new pr_*_deferred_once() variants

2021-01-26 Thread John Ogness
On 2021-01-25, Peter Zijlstra wrote: > On Sat, Jan 23, 2021 at 11:37:40PM +, Qais Yousef wrote: >> To allow users in code where printk is not allowed. >> >> Signed-off-by: Qais Yousef >> --- >> include/linux/printk.h | 24 >> 1 file changed, 24 insertions(+) >> >>

[PATCH v5 03/21] arm64: Turn the MMU-on sequence into a macro

2021-01-26 Thread Marc Zyngier
Turning the MMU on is a popular sport in the arm64 kernel, and we do it more than once, or even twice. As we are about to add even more, let's turn it into a macro. No expected functional change. Signed-off-by: Marc Zyngier Acked-by: Catalin Marinas Acked-by: David Brazdil ---

[PATCH v5 04/21] arm64: Provide an 'upgrade to VHE' stub hypercall

2021-01-26 Thread Marc Zyngier
As we are about to change the way a VHE system boots, let's provide the core helper, in the form of a stub hypercall that enables VHE and replicates the full EL1 context at EL2, thanks to EL1 and VHE-EL2 being extremely similar. On exception return, the kernel carries on at EL2. Fancy! Nothing

[PATCH v5 00/21] arm64: Early CPU feature override, and applications to VHE, BTI and PAuth

2021-01-26 Thread Marc Zyngier
It recently came to light that there is a need to be able to override some CPU features very early on, before the kernel is fully up and running. The reasons for this range from specific feature support (such as using Protected KVM on VHE HW, which is the main motivation for this work) to errata

Re: [PATCH v2 08/11] drm: Rename plane->state variables in atomic update and disable

2021-01-26 Thread Maxime Ripard
Hi Ville, On Fri, Jan 22, 2021 at 02:15:07PM +0200, Ville Syrjälä wrote: > On Thu, Jan 21, 2021 at 05:35:33PM +0100, Maxime Ripard wrote: > > Some drivers are storing the plane->state pointer in atomic_update and > > atomic_disable in a variable simply called state, while the state passed > > as

Re: [PATCH v5] scripts: use pkg-config to locate libcrypto

2021-01-26 Thread Rolf Eike Beer
Am Mittwoch, 13. Januar 2021, 13:49:12 CET schrieb Rolf Eike Beer: > Otherwise build fails if the headers are not in the default location. While > at it also ask pkg-config for the libs, with fallback to the existing > value. Can someone please take this through the kbuild-tree? Noone seems to be

[PATCH] [net-next] ipa: add remoteproc dependency

2021-01-26 Thread Arnd Bergmann
From: Arnd Bergmann Compile-testing without CONFIG_REMOTEPROC results in a build failure: >>> referenced by ipa_main.c >>> net/ipa/ipa_main.o:(ipa_probe) in archive drivers/built-in.a ld.lld: error: undefined symbol: rproc_put >>> referenced by ipa_main.c >>>

Re: [PATCH v10 06/12] powerpc: inline huge vmap supported functions

2021-01-26 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of January 25, 2021 6:42 pm: > > > Le 24/01/2021 à 09:22, Nicholas Piggin a écrit : >> This allows unsupported levels to be constant folded away, and so >> p4d_free_pud_page can be removed because it's no longer linked to. > > Ah, ok, you did it here.

Re: [PATCH v10 11/12] mm/vmalloc: Hugepage vmalloc mappings

2021-01-26 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of January 25, 2021 7:14 pm: > > > Le 24/01/2021 à 09:22, Nicholas Piggin a écrit : >> Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC >> enables support on architectures that define HAVE_ARCH_HUGE_VMAP and >> supports PMD sized

Re: [PATCH v13 09/12] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-01-26 Thread Oscar Salvador
On Mon, Jan 25, 2021 at 12:43:23PM +0100, David Hildenbrand wrote: > > - if (end - start < PAGES_PER_SECTION * sizeof(struct page)) > > + if (is_hugetlb_free_vmemmap_enabled() || > > + end - start < PAGES_PER_SECTION * sizeof(struct page)) > > This looks irresponsible. You ignore any

Re: [PATCH v2 08/11] drm: Rename plane->state variables in atomic update and disable

2021-01-26 Thread Ville Syrjälä
On Mon, Jan 25, 2021 at 11:52:18AM +0100, Maxime Ripard wrote: > Hi Ville, > > On Fri, Jan 22, 2021 at 02:15:07PM +0200, Ville Syrjälä wrote: > > On Thu, Jan 21, 2021 at 05:35:33PM +0100, Maxime Ripard wrote: > > > Some drivers are storing the plane->state pointer in atomic_update and > > >

Re: [PATCH v5 04/21] arm64: Provide an 'upgrade to VHE' stub hypercall

2021-01-26 Thread Catalin Marinas
On Mon, Jan 25, 2021 at 10:50:02AM +, Marc Zyngier wrote: > As we are about to change the way a VHE system boots, let's > provide the core helper, in the form of a stub hypercall that > enables VHE and replicates the full EL1 context at EL2, thanks > to EL1 and VHE-EL2 being extremely similar.

Re: [PATCH v5 05/21] arm64: Initialise as nVHE before switching to VHE

2021-01-26 Thread Catalin Marinas
On Mon, Jan 25, 2021 at 10:50:03AM +, Marc Zyngier wrote: > As we are aiming to be able to control whether we enable VHE or > not, let's always drop down to EL1 first, and only then upgrade > to VHE if at all possible. > > This means that if the kernel is booted at EL2, we always start > with

[PATCH rdma-next v1 0/2] Fixes to v5.11

2021-01-26 Thread Leon Romanovsky
From: Leon Romanovsky v1: * Improved grammar and add wake call to ib_umad_kill_port() v0: https://lore.kernel.org/linux-rdma/20201213132940.345554-1-l...@kernel.org/ Shay Drory (2): IB/umad: Return EIO in case of when device disassociated IB/umad: Return EPOLLERR in case of when device

Re: [PATCH v2] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-26 Thread Ahmad Fatoum
Hello Jonathan, On 24.01.21 16:22, Jonathan Cameron wrote: > On Fri, 22 Jan 2021 12:33:55 +0100 > Ahmad Fatoum wrote: > >> For non-DMA usage, we have an easy way to associate a timestamp with a >> sample: iio_pollfunc_store_time stores a timestamp in the primary >> trigger IRQ handler and

Build regressions/improvements in v5.11-rc5

2021-01-26 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v5.11-rc5[1] compared to v5.10[2]. Summarized: - build errors: +0/-3 - build warnings: +31/-95 JFYI, when comparing v5.11-rc5[1] to v5.11-rc4[3], the summaries are: - build errors: +0/-2 - build warnings: +0/-2 Happy

Re: [PATCH v5 06/21] arm64: Move VHE-specific SPE setup to mutate_to_vhe()

2021-01-26 Thread Catalin Marinas
On Mon, Jan 25, 2021 at 10:50:04AM +, Marc Zyngier wrote: > There isn't much that a VHE kernel needs on top of whatever has > been done for nVHE, so let's move the little we need to the > VHE stub (the SPE setup), and drop the init_el2_state macro. > > No expected functional change. > >

Re: [PATCH v5 09/21] arm64: cpufeature: Add global feature override facility

2021-01-26 Thread Catalin Marinas
On Mon, Jan 25, 2021 at 10:50:07AM +, Marc Zyngier wrote: > Add a facility to globally override a feature, no matter what > the HW says. Yes, this sounds dangerous, but we do respect the > "safe" value for a given feature. This doesn't mean the user > doesn't need to know what they are doing.

[PATCH 3/4] perf vendor events arm64: Reference common and uarch events for Ampere eMag

2021-01-26 Thread John Garry
Reduce duplication in the JSONs by referencing standard events from armv8-common-and-microarch.json In general the "PublicDescription" fields are not modified when somewhat significantly worded differently than the standard. Apart from that, description and names for events slightly different to

Re: [PATCH v3 04/17] perf: x86/ds: Handle guest PEBS overflow PMI and inject it to guest

2021-01-26 Thread Peter Zijlstra
On Mon, Jan 25, 2021 at 04:26:22PM +0800, Like Xu wrote: > In the host and guest PEBS both enabled case, > we'll get a crazy dmesg *bombing* about spurious PMI warning > if we pass the host PEBS PMI "harmlessly" to the guest: > > [11261.502536] Uhhuh. NMI received for unknown reason 2c on CPU

[PATCH 1/4] perf vendor events arm64: Fix Ampere eMag event typo

2021-01-26 Thread John Garry
The "briefdescription" for event 0x35 has a typo - fix it. Fixes: d35c595bf005 ("perf vendor events arm64: Revise core JSON events for eMAG") Signed-off-by: John Garry --- tools/perf/pmu-events/arch/arm64/ampere/emag/cache.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v5 10/21] arm64: cpufeature: Use IDreg override in __read_sysreg_by_encoding()

2021-01-26 Thread Catalin Marinas
On Mon, Jan 25, 2021 at 10:50:08AM +, Marc Zyngier wrote: > __read_sysreg_by_encoding() is used by a bunch of cpufeature helpers, > which should take the feature override into account. Let's do that. > > For a good measure (and because we are likely to need to further > down the line), make

[RFC PATCH v3 07/13] virtio/vsock: dequeue callback for SOCK_SEQPACKET

2021-01-26 Thread Arseny Krasnov
This adds transport callback and it's logic for SEQPACKET dequeue. Callback fetches RW packets from rx queue of socket until whole record is copied(if user's buffer is full, user is not woken up). This is done to not stall sender, because if we wake up user and it leaves syscall, nobody will send

RE: [PATCH v2] scsi: ufs: Fix some problems in task management request implementation

2021-01-26 Thread Avri Altman
> Current task management request send/compl implementation is broken, the > problems and fixes are listed as below: > > Problem: TMR completion timeout. ufshcd_tmc_handler() calls > blk_mq_tagset_busy_iter(fn == ufshcd_compl_tm()), but since > blk_mq_tagset_busy_iter() only

Re: [External] Re: [PATCH v13 09/12] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-01-26 Thread Muchun Song
On Mon, Jan 25, 2021 at 7:43 PM David Hildenbrand wrote: > > On 17.01.21 16:10, Muchun Song wrote: > > Add a kernel parameter hugetlb_free_vmemmap to enable the feature of > > freeing unused vmemmap pages associated with each hugetlb page on boot. > > The description completely lacks a

Re: [External] Re: [PATCH v13 09/12] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-01-26 Thread Muchun Song
On Mon, Jan 25, 2021 at 8:08 PM Oscar Salvador wrote: > > On Mon, Jan 25, 2021 at 12:43:23PM +0100, David Hildenbrand wrote: > > > - if (end - start < PAGES_PER_SECTION * sizeof(struct page)) > > > + if (is_hugetlb_free_vmemmap_enabled() || > > > + end - start < PAGES_PER_SECTION *

Re: [PATCH] dmaengine: ti: k3-udma: Fix a resource leak in an error handling path

2021-01-26 Thread Péter Ujfalusi
Hi, On 1/24/21 9:09 AM, Christophe JAILLET wrote: In 'dma_pool_create()', we return -ENOMEM, but don't release the resources already allocated, as in all the other error handling paths. Go to 'err_res_free' instead of returning directly. Interesting that I only had error for the bcdma

Re: [PATCH] ASoC: ti: Allocate dais dynamically for TDM and audio graph card

2021-01-26 Thread Péter Ujfalusi
Hi Pavel, On 1/24/21 11:27 AM, Pavel Machek wrote: From: Tony Lindgren We can have multiple connections on a single McBSP instance configured with audio graph card when using TDM (Time Division Multiplexing). Let's allow that by configuring dais dynamically. Still we have _one_ DAI per

Re: [RFC PATCH 0/4] make jbd2 debug switch per device

2021-01-26 Thread Jan Kara
On Fri 22-01-21 14:43:18, Chunguang Xu wrote: > On a multi-disk machine, because jbd2 debugging switch is global, this > confuses the logs of multiple disks. It is not easy to distinguish the > logs of each disk and the amount of generated logs is very large. Or a > separate debugging switch for

[PATCH] [net-next] bonding: add TLS dependency

2021-01-26 Thread Arnd Bergmann
From: Arnd Bergmann When TLS is a module, the built-in bonding driver may cause a link error: x86_64-linux-ld: drivers/net/bonding/bond_main.o: in function `bond_start_xmit': bond_main.c:(.text+0xc451): undefined reference to `tls_validate_xmit_skb' Add a dependency to avoid the problem.

Re: [v4 PATCH 04/11] mm: vmscan: remove memcg_shrinker_map_size

2021-01-26 Thread Kirill Tkhai
On 22.01.2021 02:06, Yang Shi wrote: > Both memcg_shrinker_map_size and shrinker_nr_max is maintained, but actually > the > map size can be calculated via shrinker_nr_max, so it seems unnecessary to > keep both. > Remove memcg_shrinker_map_size since shrinker_nr_max is also used by > iterating

[PATCH v2] memory: mtk-smi: Support SMI modular

2021-01-26 Thread Yong Wu
This patch mainly support SMI modular. Switch MTK_SMI to tristate, and add module_exit/module_license. Signed-off-by: Yong Wu --- This patch rebase on the clean v5.11-rc1. and this one: memory: mtk-smi: Use platform_register_drivers

Re: [PATCH v6] usb: xhci-mtk: fix unreleased bandwidth data

2021-01-26 Thread Chunfeng Yun
Hi Ikjoon, Can I put this patch into my patch series about bandwidth scheduler? the series also include "[RFC PATCH v3 1/5] usb: xhci-mtk: improve bandwidth scheduling with multi-TT", put them together will help to fix dependence issue, meanwhile I try to build xhci-mtk-sch.c into xhci-mtk.ko

Re: Splicing to/from a tty

2021-01-26 Thread Al Viro
On Sun, Jan 24, 2021 at 11:11:42AM -0800, Linus Torvalds wrote: > Al, > coming back to this because rc5 is imminent.. > > On Mon, Jan 18, 2021 at 11:45 AM Al Viro wrote: > > > > do_splice_direct() does something that do_splice() won't - it > > handles non-pipe to non-pipe case. Which is how

Re: [PATCH v11 05/13] mm: HUGE_VMAP arch support cleanup

2021-01-26 Thread Ding Tianhong
Reviewed-by: Ding Tianhong On 2021/1/26 12:45, Nicholas Piggin wrote: > This changes the awkward approach where architectures provide init > functions to determine which levels they can provide large mappings for, > to one where the arch is queried for each call. > > This removes code and

[PATCH v7 6/6] MAINTAINERS: add maintainer for i.MX8qxp DPU DRM driver

2021-01-26 Thread Liu Ying
Add myself as the maintainer of the i.MX8qxp DPU DRM driver. Signed-off-by: Liu Ying --- v6->v7: * No change. v5->v6: * No change. v4->v5: * No change. v3->v4: * No change. v2->v3: * No change. v1->v2: * No change. MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH 1/3] do_splice_to(): move the logics for limiting the read length in

2021-01-26 Thread Al Viro
Both callers have the identical logics limiting the amount of data we try to read into pipe - no more than would fit into that pipe. Move that into do_splice_to() itself. Signed-off-by: Al Viro --- fs/splice.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff

[PATCH v7 1/6] dt-bindings: display: imx: Add i.MX8qxp/qm DPU binding

2021-01-26 Thread Liu Ying
This patch adds bindings for i.MX8qxp/qm Display Processing Unit. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v6->v7: * Add Rob's R-b tag back. v5->v6: * Use graph schema. So, drop Rob's R-b tag as review is needed. v4->v5: * No change. v3->v4: * Improve compatible property by using

[PATCH v7 4/6] drm/atomic: Avoid unused-but-set-variable warning on for_each_old_plane_in_state

2021-01-26 Thread Liu Ying
Artificially use 'plane' and 'old_plane_state' to avoid 'not used' warning. The precedent has already been set by other macros in the same file. Acked-by: Daniel Vetter Signed-off-by: Liu Ying --- v6->v7: * No change. v5->v6: * Fix commit message typo - s/Artifically/Artificially/ v4->v5: *

[PATCH] hwmon: (pmbus) Simplify the calculation of variables

2021-01-26 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/hwmon/pmbus/pmbus_core.c:1265:24-26: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/hwmon/pmbus/pmbus_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/3] take the guts of file-to-pipe splice into a helper function

2021-01-26 Thread Al Viro
Signed-off-by: Al Viro --- fs/splice.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/fs/splice.c b/fs/splice.c index c1ca2cc63b43..74f968c65a93 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -1002,6 +1002,23 @@ static int

Re: [PATCH] pinctrl: sunxi: fix use-after-free in sunxi_pmx_free()

2021-01-26 Thread liu xiang
> On Thu, Jan 21, 2021 at 5:40 PM Maxime Ripard wrote: > On Tue, Jan 19, 2021 at 02:29:08PM +0800, Liu Xiang wrote: > > When CONFIG_REGULATOR is not set, sunxi_pmx_request() always return > > success. Even a group of pins call sunxi_pmx_request(), the refcount > > is only 1. This can cause a

Re: [PATCH v3 1/6] ALSA: hda/tegra: Use clk_bulk helpers

2021-01-26 Thread Takashi Iwai
On Wed, 20 Jan 2021 01:31:49 +0100, Dmitry Osipenko wrote: > > Use clk_bulk helpers to make code cleaner. Note that this patch changed > the order in which clocks are enabled to make code look nicer, but this > doesn't matter in terms of hardware. > > Tested-by: Peter Geis # Ouya T30 audio

Re: [PATCH v3 3/6] ALSA: hda/tegra: Remove unnecessary null-check from hda_tegra_runtime_resume()

2021-01-26 Thread Takashi Iwai
On Wed, 20 Jan 2021 01:31:51 +0100, Dmitry Osipenko wrote: > > The "chip" can't be NULL in hda_tegra_runtime_resume() because code would > crash otherwise. Let's remove the unnecessary check in order to clean up > code a tad. > > Tested-by: Peter Geis # Ouya T30 audio works > Tested-by: Matt

Re: [PATCH 3/5] powerpc/xive: remove unnecessary unmap_kernel_range

2021-01-26 Thread Christoph Hellwig
On Tue, Jan 26, 2021 at 02:54:02PM +1000, Nicholas Piggin wrote: > iounmap will remove ptes. Looks good, Reviewed-by: Christoph Hellwig

[PATCH] mm/hugetlb: Simplify the calculation of variables

2021-01-26 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./mm/hugetlb.c:3372:20-22: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- mm/hugetlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index

Re: [PATCH v11 04/13] mm/ioremap: rename ioremap_*_range to vmap_*_range

2021-01-26 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v11 02/13] mm: apply_to_pte_range warn and fail if a large pte is encountered

2021-01-26 Thread Miaohe Lin
Hi: On 2021/1/26 12:44, Nicholas Piggin wrote: > apply_to_pte_range might mistake a large pte for bad, or treat it as a > page table, resulting in a crash or corruption. Add a test to warn and > return error if large entries are found. > > Reviewed-by: Christoph Hellwig > Signed-off-by: Nicholas

Re: [PATCH] mm/hugetlb: Simplify the calculation of variables

2021-01-26 Thread Miaohe Lin
Hi: On 2021/1/26 14:44, Jiapeng Zhong wrote: > Fix the following coccicheck warnings: > > ./mm/hugetlb.c:3372:20-22: WARNING !A || A && B is equivalent to > !A || B. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Zhong > --- > mm/hugetlb.c | 3 +-- > 1 file changed, 1 insertion(+), 2

[PATCH] edd: Simplify the calculation of variables

2021-01-26 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./drivers/firmware/edd.c:698:18-20: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/firmware/edd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 1/4] mfd: intel-m10-bmc: Fix the register access range

2021-01-26 Thread Xu Yilun
This patch fixes the max register address of MAX 10 BMC. The range 0x2000 ~ 0x20fc are for control registers of the QSPI flash controller, which are not accessible to host. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix --- v2: no change. --- include/linux/mfd/intel-m10-bmc.h | 2 +- 1

[PATCH v2 0/4] Some improvement for Intel MAX 10 MFD drivers

2021-01-26 Thread Xu Yilun
This patchset is some improvements for intel-m10-bmc and its subdevs. Main changes from v1: - Add a patch (#2) to simplify the definition of the legacy version reg. - Add a patch (#4), add entry in MAINTAINERS for intel-m10-bmc mfd driver and the subdev drivers. Matthew Gerlach (1): mfd:

[PATCH v2 3/4] mfd: intel-m10-bmc: Add access table configuration to the regmap

2021-01-26 Thread Xu Yilun
From: Matthew Gerlach This patch adds access tables to the MAX 10 BMC regmap. This prevents the host from accessing the unwanted I/O space. It also filters out the invalid outputs when reading the regmap debugfs interface. Signed-off-by: Matthew Gerlach Signed-off-by: Xu Yilun --- v2: no

[PATCH v2 4/4] MAINTAINERS: Add entry for Intel MAX 10 mfd driver

2021-01-26 Thread Xu Yilun
This patch adds maintainer info for Intel MAX 10 mfd driver. Signed-off-by: Xu Yilun --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5aa18cb..10985d3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9132,6 +9132,15 @@ F:

Re: [PATCH 5.4 55/86] x86/mmx: Use KFPU_387 for MMX string operations

2021-01-26 Thread Krzysztof Olędzki
On 2021-01-25 at 10:39, Greg Kroah-Hartman wrote: From: Andy Lutomirski commit 67de8dca50c027ca0fa3b62a488ee5035036a0da upstream. The default kernel_fpu_begin() doesn't work on systems that support XMM but haven't yet enabled CR4.OSFXSR. This causes crashes when _mmx_memcpy() is called too

Re: [PATCH] Change 'addres' to 'address'.

2021-01-26 Thread Greg KH
On Tue, Jan 26, 2021 at 12:53:48PM +0800, mateng wrote: > From: mateng > > Signed-off-by: mateng > --- > drivers/misc/vmw_vmci/vmci_queue_pair.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/vmw_vmci/vmci_queue_pair.h >

[PATCH v3 3/5] perf stat: Helper functions for PCIe root ports list in iostat mode

2021-01-26 Thread Alexander Antonov
Introduce helper functions to control PCIe root ports list. These helpers will be used in the follow-up patch. Signed-off-by: Alexander Antonov --- tools/perf/arch/x86/util/iostat.c | 127 ++ 1 file changed, 127 insertions(+) create mode 100644

Re: [PATCH v3 2/2] counter: add GPIO based pulse counters

2021-01-26 Thread Oleksij Rempel
Hi Jonathan, On Sun, Jan 24, 2021 at 02:47:37PM +, Jonathan Cameron wrote: > On Fri, 22 Jan 2021 12:24:34 +0100 > Oleksij Rempel wrote: > > > Add simple GPIO base pulse counter. This device is used to measure > > rotation speed of some agricultural devices, so no high frequency on the > >

[PATCH v3 5/5] perf: Update .gitignore file

2021-01-26 Thread Alexander Antonov
After a "make -C tools/perf", git reports the following untracked file: perf-iostat Add this generated file to perf's .gitignore file. Signed-off-by: Alexander Antonov --- tools/perf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/.gitignore b/tools/perf/.gitignore

[PATCH] Revert "arm64: dts: amlogic: add missing ethernet reset ID"

2021-01-26 Thread Neil Armstrong
It has been reported on IRC and in KernelCI boot tests, this change breaks internal PHY support on the Amlogic G12A/SM1 Based boards. We suspect the added signal to reset more than the Ethernet MAC but also the MDIO/(RG)MII mux used to redirect the MAC signals to the internal PHY. This reverts

Re: [PATCH 4.19 00/58] 4.19.171-rc1 review

2021-01-26 Thread Naresh Kamboju
On Tue, 26 Jan 2021 at 00:12, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.171 release. > There are 58 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-01-26 Thread Greg KH
On Mon, Jan 25, 2021 at 03:27:55PM -0600, Josh Poimboeuf wrote: > On Tue, Jan 26, 2021 at 06:16:01AM +0900, Masahiro Yamada wrote: > > On Tue, Jan 26, 2021 at 5:42 AM Josh Poimboeuf wrote: > > > > > > When building out-of-tree kernel modules, the build system doesn't > > > require the GCC version

<    3   4   5   6   7   8   9   10   11   12   >