Re: [3/3,v3] tools/power turbostat: Enable accumulate RAPL display

2021-03-25 Thread Kurt Garloff
Hi Doug, Am 24.03.21 um 15:44 schrieb Doug Smythies: > Just resending to previously missed people who should also test this. > (See other e-mail: Re: turbostat: Fix Pkg Power on Zen) > > On Sat, Mar 13, 2021 at 5:49 AM youling 257 wrote: >> test this patch, turbostat can work. >> >> 2021-03-12 21

Re: [PATCH] usb: dwc3: add cancelled reason for dwc3 requests

2021-03-25 Thread Felipe Balbi
Hi, Ray Chi writes: > diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h > index 0cd281949970..a23e85bd3933 100644 > --- a/drivers/usb/dwc3/gadget.h > +++ b/drivers/usb/dwc3/gadget.h > @@ -56,6 +56,12 @@ struct dwc3; > > /* Frame/Microframe Number Mask */ > #define DWC3_FRNUMB

[PATCH v3] docs: experimental: build PDF with rst2pdf

2021-03-25 Thread Mauro Carvalho Chehab
Add an experimental PDF builder using rst2pdf. This extension is only enabled when "pdf" builder is selected. So, it won't interfere with normal documentation builds. I opted to not add a try..except block, as the message is already good enough if one tries to do a "make rst2pdf" but the extension

[PATCH v4,2/3] arm64: dts: mt8173: Separating mtk-vcodec-enc device node

2021-03-25 Thread Irui Wang
There are two separate hardware encoder blocks inside MT8173. Split the current mtk-vcodec-enc node to match the hardware architecture. Acked-by: Tiffany Lin Signed-off-by: Hsin-Yi Wang Signed-off-by: Maoguang Meng Signed-off-by: Irui Wang --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 60 +++

[PATCH v4,3/3] media: mtk-vcodec: Separating mtk encoder driver

2021-03-25 Thread Irui Wang
MTK H264 Encoder(VENC_SYS) and VP8 Encoder(VENC_LT_SYS) are two independent hardware instance. They have their owner interrupt, register mapping, and special clocks. This patch separates them into two devices. This is a preparing patch for adding device_link between the larbs and venc-device. It's

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

2021-03-25 Thread Michal Hocko
On Thu 25-03-21 11:55:01, Oscar Salvador wrote: > On Thu, Mar 25, 2021 at 10:17:33AM +0100, Michal Hocko wrote: > > Why do you think it is wrong to initialize/account pages when they are > > used? Keep in mind that offline pages are not used until they are > > onlined. But vmemmap pages are used si

Re: [PATCH 1/2] leds: leds-multi-gpio: Add multiple GPIOs LED driver

2021-03-25 Thread Marek Behun
On Thu, 25 Mar 2021 06:04:43 + Hermes Zhang wrote: > > LED_FULL / LED_OFF are deprecated, don't use them. > > Then could I use just 0 (instead LED_OFF) and led_cdev->max_brightness > > (instead of LED_FULL) here? The idea here is map the states defined in dts > > to the full brightness r

[PATCH v4,1/3] dt-bindings: media: mtk-vcodec: Separating mtk vcodec encoder node

2021-03-25 Thread Irui Wang
Updates binding document since the avc and vp8 hardware encoder in MT8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to "mediatek,mt8173-vcodec-enc-vp8" and "mediatek,mt8173-vcodec-enc". This patch is not a compatible change, but we must do this modifaction because MediaTek IOMMU add

Re: [PATCH] regulator: Use IRQF_ONESHOT

2021-03-25 Thread Felipe Balbi
Hi, Krzysztof Kozlowski writes: > On 23/03/2021 13:12, Jian Dong wrote: >> From: Jian Dong >> >> Fixes coccicheck error: >> >> drivers/regulator/mt6360-regulator.c:388:8-33: ERROR: >> drivers/regulator/pca9450-regulator.c:781:7-32: ERROR: >> drivers/regulator/slg51000-regulator.c:480:8-33: ER

[PATCH 2/6] usb: typec: Organize the private headers properly

2021-03-25 Thread Heikki Krogerus
Adding a header file for each subsystem - the connector class, alt mode bus and the class for the muxes. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/bus.c | 2 ++ drivers/usb/typec/bus.h | 19 +- drivers/usb/typec/class.c | 69 +++ drivers/us

[PATCH 0/6] usb: Linking ports to their Type-C connectors

2021-03-25 Thread Heikki Krogerus
Hi, Adding a simple function typec_link_port() that can be used to create a symlink "connector" that points to the USB Type-C connector of a port. It is used with USB ports initially, but hopefully later also with other things like DisplayPorts. Being able to see which connector is connected to a

[PATCH 1/6] usb: Iterator for ports

2021-03-25 Thread Heikki Krogerus
Introducing usb_for_each_port(). It works the same way as usb_for_each_dev(), but instead of going through every USB device in the system, it walks through the USB ports in the system. Signed-off-by: Heikki Krogerus --- drivers/usb/core/usb.c | 43 ++ incl

[PATCH 4/6] usb: typec: Port mapping utility

2021-03-25 Thread Heikki Krogerus
Adding functions that can be used to link/unlink ports - USB ports, TBT3/USB4 ports, DisplayPorts and so on - to the USB Type-C connectors they are attached to inside a system. The symlink that is created for the port device is named "connector". Initially only ACPI is supported. ACPI port object

[PATCH 6/6] usb: typec: Link all ports during connector registration

2021-03-25 Thread Heikki Krogerus
The connectors may be registered after the ports, so the "connector" links need to be created for the ports also when ever a new connector gets registered. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/class.c | 9 +++-- drivers/usb/typec/class.h | 10 +++--- drivers/usb/type

[PATCH v1 0/2] scsi: libsas: few clean up patches

2021-03-25 Thread Luo Jiaxing
Two types of errors are detected by the checkpatch. 1. Alignment between switches and cases 2. Improper use of some spaces Here are the clean up patches. Luo Jiaxing (2): scsi: libsas: make switch and case at the same indent in sas_to_ata_err() scsi: libsas: clean up for white spaces dr

[PATCH 3/6] usb: typec: Declare the typec_class static

2021-03-25 Thread Heikki Krogerus
This is only to make the handling of the class consistent with the two other susbsystems - the alt mode bus and the mux class. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/class.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/usb/t

[PATCH 5/6] usb: Link the ports to the connectors they are attached to

2021-03-25 Thread Heikki Krogerus
Creating link to the USB Type-C connector for every new port that is added when possible. Signed-off-by: Heikki Krogerus --- Documentation/ABI/testing/sysfs-bus-usb | 9 + drivers/usb/core/port.c | 3 +++ 2 files changed, 12 insertions(+) diff --git a/Documentation/ABI/t

Re: [PATCH 3/8] hugetlb: add per-hstate mutex to synchronize user adjustments

2021-03-25 Thread Oscar Salvador
On Wed, Mar 24, 2021 at 05:28:30PM -0700, Mike Kravetz wrote: > The helper routine hstate_next_node_to_alloc accesses and modifies the > hstate variable next_nid_to_alloc. The helper is used by the routines > alloc_pool_huge_page and adjust_pool_surplus. adjust_pool_surplus is > called with huget

[PATCH v1 1/2] scsi: libsas: make switch and case at the same indent in sas_to_ata_err()

2021-03-25 Thread Luo Jiaxing
One checkpatch error is found in sas_to_ata_err() that switch and case is not at the same indent. So fix it. Signed-off-by: Luo Jiaxing --- drivers/scsi/libsas/sas_ata.c | 74 --- 1 file changed, 34 insertions(+), 40 deletions(-) diff --git a/drivers/scsi

[PATCH v1 2/2] scsi: libsas: clean up for white spaces

2021-03-25 Thread Luo Jiaxing
Some checkpatch errors are found that some white spaces are missing or being used inappropriately. So fix them all. Signed-off-by: Luo Jiaxing --- drivers/scsi/libsas/sas_discover.c | 2 +- drivers/scsi/libsas/sas_expander.c | 15 --- 2 files changed, 9 insertions(+), 8 deletions(-)

[PATCH v2 4/4] iommu: Stop exporting free_iova_fast()

2021-03-25 Thread John Garry
Function free_iova_fast() is only referenced by dma-iommu.c, which can only be in-built, so stop exporting it. This was missed in an earlier tidy-up patch. Signed-off-by: John Garry --- drivers/iommu/iova.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iommu/iova.c b/drivers/iommu/

[PATCH v2 3/4] iommu: Delete iommu_dma_free_cpu_cached_iovas()

2021-03-25 Thread John Garry
Function iommu_dma_free_cpu_cached_iovas() no longer has any caller, so delete it. With that, function free_cpu_cached_iovas() may be made static. Signed-off-by: John Garry --- drivers/iommu/dma-iommu.c | 9 - drivers/iommu/iova.c | 3 ++- include/linux/dma-iommu.h | 8 in

[PATCH v2 2/4] iommu/vt-d: Remove IOVA domain rcache flushing for CPU offlining

2021-03-25 Thread John Garry
Now that the core code handles flushing per-IOVA domain CPU rcaches, remove the handling here. Reviewed-by: Lu Baolu Signed-off-by: John Garry --- drivers/iommu/intel/iommu.c | 31 --- include/linux/cpuhotplug.h | 1 - 2 files changed, 32 deletions(-) diff --git a

[PATCH v2 1/4] iova: Add CPU hotplug handler to flush rcaches

2021-03-25 Thread John Garry
Like the Intel IOMMU driver already does, flush the per-IOVA domain CPU rcache when a CPU goes offline - there's no point in keeping it. Reviewed-by: Robin Murphy Signed-off-by: John Garry --- drivers/iommu/iova.c | 30 +- include/linux/cpuhotplug.h | 1 + inc

[PATCH v2 0/4] iommu/iova: Add CPU hotplug handler to flush rcaches to core code

2021-03-25 Thread John Garry
The Intel IOMMU driver supports flushing the per-CPU rcaches when a CPU is offlined. Let's move it to core code, so everyone can take advantage. Also throw in a patch to stop exporting free_iova_fast(). Differences to v1: - Add RB tags (thanks!) - Add patch to stop exporting free_iova_fast() - D

Re: [PATCH v3] docs: experimental: build PDF with rst2pdf

2021-03-25 Thread Mauro Carvalho Chehab
Em Thu, 25 Mar 2021 13:25:56 +0100 Mauro Carvalho Chehab escreveu: > Add an experimental PDF builder using rst2pdf. > > This extension is only enabled when "pdf" builder is selected. > So, it won't interfere with normal documentation builds. I opted > to not add a try..except block, as the messa

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

2021-03-25 Thread Michal Hocko
On Thu 25-03-21 12:08:43, David Hildenbrand wrote: > On 25.03.21 11:55, Oscar Salvador wrote: > > On Thu, Mar 25, 2021 at 10:17:33AM +0100, Michal Hocko wrote: > > > Why do you think it is wrong to initialize/account pages when they are > > > used? Keep in mind that offline pages are not used until

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Intel
On 3/25/21 1:09 PM, Christian König wrote: Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 12:53:15PM +0100, Thomas Hellström (Intel) wrote: Nope. The point here was that in this case, to make sure mmap uses the correct VA to give us a reasonable chance of alignement,

Re: [PATCH 2/9] mm/page_alloc: Add a bulk page allocator

2021-03-25 Thread Mel Gorman
On Thu, Mar 25, 2021 at 12:05:25PM +, Matthew Wilcox wrote: > On Thu, Mar 25, 2021 at 11:42:21AM +, Mel Gorman wrote: > > +int __alloc_pages_bulk(gfp_t gfp, int preferred_nid, > > + nodemask_t *nodemask, int nr_pages, > > + struct list_hea

[PATCH v4] docs: experimental: build PDF with rst2pdf

2021-03-25 Thread Mauro Carvalho Chehab
Add an experimental PDF builder using rst2pdf. This extension is only enabled when "pdf" builder is selected. So, it won't interfere with normal documentation builds. I opted to not add a try..except block, as the message is already good enough if one tries to do a "make rst2pdf" but the extension

Re: [PATCH 0/3] s390 vdso fixes

2021-03-25 Thread Heiko Carstens
On Thu, Mar 25, 2021 at 04:56:18PM +0800, Li Wang wrote: > Hi Heiko, > > On Wed, Mar 24, 2021 at 5:58 AM Heiko Carstens wrote: > > > Li Wang reported that clock_gettime(CLOCK_MONOTONIC_RAW, ...) does not > > work correctly on s390 via vdso. Debugging this also revealed an > > unrelated bug (firs

RE: [PATCH v4 08/11] evm: Allow setxattr() and setattr() for unmodified metadata

2021-03-25 Thread Roberto Sassu
> From: Christian Brauner [mailto:christian.brau...@ubuntu.com] > Sent: Thursday, March 25, 2021 1:14 PM > On Thu, Mar 25, 2021 at 10:53:43AM +, Roberto Sassu wrote: > > > From: Roberto Sassu > > > Sent: Friday, March 5, 2021 4:19 PM > > > With the patch to allow xattr/attr operations if a port

RE: [PATCH v4 08/11] evm: Allow setxattr() and setattr() for unmodified metadata

2021-03-25 Thread Roberto Sassu
> From: Christian Brauner [mailto:christian.brau...@ubuntu.com] > Sent: Thursday, March 25, 2021 1:21 PM > On Thu, Mar 25, 2021 at 01:13:41PM +0100, Christian Brauner wrote: > > On Thu, Mar 25, 2021 at 10:53:43AM +, Roberto Sassu wrote: > > > > From: Roberto Sassu > > > > Sent: Friday, March 5,

Re: [PATCH 1/2] Perf: Clean generated directory, other archs.

2021-03-25 Thread Will Deacon
On Sun, Mar 07, 2021 at 11:19:42AM +0100, Gon Solo wrote: > After a make clean there are generated directories left in the arch > directories of perf. Clean them up. > > Suggested-by: Arnaldo Carvalho de Melo > Signed-off-by: Andreas Wendleder > --- > tools/perf/arch/arm64/Makefile | 5 +++--

Re: [PATCH 4/9] mm/page_alloc: optimize code layout for __alloc_pages_bulk

2021-03-25 Thread Mel Gorman
On Thu, Mar 25, 2021 at 12:12:17PM +, Matthew Wilcox wrote: > On Thu, Mar 25, 2021 at 11:42:23AM +, Mel Gorman wrote: > > > > - if (WARN_ON_ONCE(nr_pages <= 0)) > > + if (unlikely(nr_pages <= 0)) > > return 0; > > If we made nr_pages unsigned, we wouldn't need this check

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

2021-03-25 Thread David Hildenbrand
On 25.03.21 13:35, Michal Hocko wrote: On Thu 25-03-21 12:08:43, David Hildenbrand wrote: On 25.03.21 11:55, Oscar Salvador wrote: On Thu, Mar 25, 2021 at 10:17:33AM +0100, Michal Hocko wrote: Why do you think it is wrong to initialize/account pages when they are used? Keep in mind that offlin

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Jason Gunthorpe
On Thu, Mar 25, 2021 at 01:09:14PM +0100, Christian König wrote: > Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: > > On Thu, Mar 25, 2021 at 12:53:15PM +0100, Thomas Hellström (Intel) wrote: > > > > > Nope. The point here was that in this case, to make sure mmap uses the > > > correct VA to give u

Re: [PATCH] mm/sparse: Add the missing sparse_buffer_fini() in error branch

2021-03-25 Thread David Hildenbrand
On 25.03.21 12:31, Wang Wensheng wrote: sparse_buffer_init() and sparse_buffer_fini() should appear in pair, or a WARN issue would be through the next time sparse_buffer_init() runs. Add the missing sparse_buffer_fini() in error branch. Fixes: 85c77f791390 ("mm/sparse: add new sparse_init_nid()

[PATCH v5 0/1] s390/vfio-ap: fix circular lockdep when starting

2021-03-25 Thread Tony Krowiak
*Commit f21916ec4826 ("s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated") introduced a change that results in a circular lockdep when a Secure Execution guest that is configured with crypto devices is started. The problem resulted due to the fact that the patch moved the settin

[PATCH v5 1/1] s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks

2021-03-25 Thread Tony Krowiak
This patch fixes a lockdep splat introduced by commit f21916ec4826 ("s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated"). The lockdep splat only occurs when starting a Secure Execution guest. Crypto virtualization (vfio_ap) is not yet supported for SE guests; however, in order t

[PATCH v3] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-25 Thread Tiezhu Yang
After commit 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work"), bpf_probe_read{, str}() functions were no longer available on MIPS, so there exist some errors when running bpf program: root@linux:/home/loongson/bcc# python examples/tracing/task_switch.py bpf: Fai

Re: [net-next PATCH 0/8] configuration support for switch headers & phy

2021-03-25 Thread Andrew Lunn
> > So you completely skipped how this works with mv88e6xxx or > > prestera. If you need this private flag for some out of mainline > > Marvell SDK, it is very unlikely to be accepted. > > > > Andrew > > What we are trying to do here has no dependency on DSA drivers and > neither impacts t

Re: [PATCH] btrfs: fixed rudimentary typos

2021-03-25 Thread David Sterba
On Thu, Mar 25, 2021 at 09:51:13AM +0530, Bhaskar Chowdhury wrote: > > s/contaning/containing > s/clearning/clearing/ Have hou scanned the whole subdirectory for typos? We do typo fixing about once a year in one big patch and won't fix them one by one.

Re: [PATCH 0/9 v6] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-25 Thread Matthew Wilcox
On Thu, Mar 25, 2021 at 11:42:19AM +, Mel Gorman wrote: > This series introduces a bulk order-0 page allocator with sunrpc and > the network page pool being the first users. The implementation is not > efficient as semantics needed to be ironed out first. If no other semantic > changes are need

[rcu:rcu/test] BUILD SUCCESS b0ac3778ec85fd913954cc986f74b40cd0f8c9da

2021-03-25 Thread kernel test robot
onfig i386defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a003-202

[rcu:dev.2021.03.22a] BUILD SUCCESS 27cbc21bc1b24dd014f778e95711bfa91ac15564

2021-03-25 Thread kernel test robot
-a002-20210325 x86_64 randconfig-a003-20210325 x86_64 randconfig-a006-20210325 x86_64 randconfig-a001-20210325 x86_64 randconfig-a005-20210325 x86_64 randconfig-a004-20210325 i386 randconfig-a003-20210325 i386

Re: [PATCH v2 3/4] iommu: Delete iommu_dma_free_cpu_cached_iovas()

2021-03-25 Thread Robin Murphy
On 2021-03-25 12:30, John Garry wrote: Function iommu_dma_free_cpu_cached_iovas() no longer has any caller, so delete it. With that, function free_cpu_cached_iovas() may be made static. Reviewed-by: Robin Murphy Signed-off-by: John Garry --- drivers/iommu/dma-iommu.c | 9 - driv

Re: [PATCH v2 4/4] iommu: Stop exporting free_iova_fast()

2021-03-25 Thread Robin Murphy
On 2021-03-25 12:30, John Garry wrote: Function free_iova_fast() is only referenced by dma-iommu.c, which can only be in-built, so stop exporting it. This was missed in an earlier tidy-up patch. Reviewed-by: Robin Murphy Signed-off-by: John Garry --- drivers/iommu/iova.c | 1 - 1 file c

Re: [PATCH v3] intel/pinctrl: check REVID register value for device presence

2021-03-25 Thread Andy Shevchenko
On Thu, Mar 25, 2021 at 10:09:47AM +0100, Roger Pau Monne wrote: > Use the value read from the REVID register in order to check for the > presence of the device. A read of all ones is treated as if the device > is not present, and hence probing is ended. > > This fixes an issue when running as a X

Re: [PATCH 1/2] perf/core: Share an event with multiple cgroups

2021-03-25 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 25, 2021 at 12:55:50AM +, Song Liu escreveu: > > On Mar 23, 2021, at 9:21 AM, Namhyung Kim wrote: > > #ifdef CONFIG_SECURITY > > @@ -780,6 +792,14 @@ struct perf_event { > > #endif /* CONFIG_PERF_EVENTS */ > > }; > > +struct perf_cgroup_node { > > + struct hlist_node

Re: [PATCH] tools: perf: Remove duplicate includes

2021-03-25 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 23, 2021 at 01:01:39PM +0800, Wan Jiabing escreveu: > sys/stat.h has been included at line 23, so remove the > duplicate one at line 27. > linux/string.h has been included at line 7, so remove the > duplicate one at line 9. > time.h has been included at line 14, so remove the > duplicat

Re: [PATCH V2 1/5] powerpc/perf: Expose processor pipeline stage cycles using PERF_SAMPLE_WEIGHT_STRUCT

2021-03-25 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 24, 2021 at 10:05:23AM +0530, Madhavan Srinivasan escreveu: > > On 3/22/21 8:27 PM, Athira Rajeev wrote: > > Performance Monitoring Unit (PMU) registers in powerpc provides > > information on cycles elapsed between different stages in the > > pipeline. This can be used for application

Re: [net-next PATCH 0/8] configuration support for switch headers & phy

2021-03-25 Thread Sunil Kovvuri
On Thu, Mar 25, 2021 at 6:20 PM Andrew Lunn wrote: > > > > So you completely skipped how this works with mv88e6xxx or > > > prestera. If you need this private flag for some out of mainline > > > Marvell SDK, it is very unlikely to be accepted. > > > > > > Andrew > > > > What we are trying

Re: [PATCH 0/3] mm, pmem: Force unmap pmem on surprise remove

2021-03-25 Thread David Hildenbrand
On 18.03.21 05:08, Dan Williams wrote: Summary: A dax_dev can be unbound from its driver at any time. Unbind can not fail. The driver-core will always trigger ->remove() and the result from ->remove() is ignored. After ->remove() the driver-core proceeds to tear down context. The filesystem-dax

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Christian König
Am 25.03.21 um 13:36 schrieb Thomas Hellström (Intel): On 3/25/21 1:09 PM, Christian König wrote: Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 12:53:15PM +0100, Thomas Hellström (Intel) wrote: Nope. The point here was that in this case, to make sure mmap uses the

Re: Proposal With Jeffery & Schulman

2021-03-25 Thread Peter Schulman
Hello , I sent you an email before about an inheritance without hearing from you. Let me reintroduce my email again to you and please reply immediately. My name is Mr. Peter Schulman the principal attorney at Jeffery & Schulman Law Office based in Canada. I am contacting you because of my decease

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Christian König
Am 25.03.21 um 13:42 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 01:09:14PM +0100, Christian König wrote: Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 12:53:15PM +0100, Thomas Hellström (Intel) wrote: Nope. The point here was that in this case, to make sure mm

Re: [RFC PATCH 5/7] iommu/amd: Add support for Guest IO protection

2021-03-25 Thread Suravee Suthikulpanit
Joerg, On 3/18/21 10:31 PM, Joerg Roedel wrote: On Fri, Mar 12, 2021 at 03:04:09AM -0600, Suravee Suthikulpanit wrote: @@ -519,6 +521,7 @@ struct protection_domain { spinlock_t lock;/* mostly used to lock the page table*/ u16 id; /* the domain id written

Re: [PATCH V2 1/5] powerpc/perf: Expose processor pipeline stage cycles using PERF_SAMPLE_WEIGHT_STRUCT

2021-03-25 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 24, 2021 at 10:05:23AM +0530, Madhavan Srinivasan escreveu: > > On 3/22/21 8:27 PM, Athira Rajeev wrote: > > Performance Monitoring Unit (PMU) registers in powerpc provides > > information on cycles elapsed between different stages in the > > pipeline. This can be used for application

Re: [PATCH] [v2] drivers: gpu: drm: Remove duplicate declaration

2021-03-25 Thread Laurent Pinchart
Hi Wan, Thank you for the patch. On Thu, Mar 25, 2021 at 07:10:24PM +0800, Wan Jiabing wrote: > struct dss_device has been declared. Remove the duplicate. > And sort these forward declarations alphabetically. > > Signed-off-by: Wan Jiabing Reviewed-by: Laurent Pinchart Tomi, I assume you'll

Re: [PATCH] regulator: Use IRQF_ONESHOT

2021-03-25 Thread Jian Dong
On Thu, 25 Mar 2021 14:29:02 +0200 Felipe Balbi wrote: > Hi, > > Krzysztof Kozlowski writes: > > On 23/03/2021 13:12, Jian Dong wrote: > >> From: Jian Dong > >> > >> Fixes coccicheck error: > >> > >> drivers/regulator/mt6360-regulator.c:388:8-33: ERROR: > >> drivers/regulator/pca9450-regul

[PATCH] MAINTAINERS: Add linux-mediatek ML for drm Mediatek drivers

2021-03-25 Thread Dafna Hirschfeld
Add the linux-mediatek mailing list to drm Mediatek drivers Signed-off-by: Dafna Hirschfeld --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9e876927c60d..8260bc5afe66 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5963,6 +5963,7 @@ DRM DRIVERS

Re: [PATCH 06/10] timer: Report ignored local enqueue in nohz mode

2021-03-25 Thread Frederic Weisbecker
On Tue, Mar 16, 2021 at 04:27:56PM +0100, Peter Zijlstra wrote: > On Thu, Mar 11, 2021 at 01:37:04PM +0100, Frederic Weisbecker wrote: > > Enqueuing a local timer after the tick has been stopped will result in > > the timer being ignored until the next random interrupt. > > > > Perform sanity chec

Re: [PATCH] loop: Fix use of unsafe lo->lo_mutex locks

2021-03-25 Thread Pavel Tatashin
Hi Qiang, Thank you for root causing this issue. Did you encounter this issue or found by inspection? I would change the title to what actually being changed, something like: loop: call __loop_clr_fd() with lo_mutex locked to avoid autoclear race > ..

Re: [PATCH] arm64: PCI: Enable SMC conduit

2021-03-25 Thread Lorenzo Pieralisi
On Tue, Jan 26, 2021 at 10:53:51PM +, Will Deacon wrote: > On Tue, Jan 26, 2021 at 11:08:31AM -0600, Vikram Sethi wrote: > > On 1/22/2021 1:48 PM, Will Deacon wrote: > > > On Fri, Jan 08, 2021 at 10:32:16AM +, Lorenzo Pieralisi wrote: > > >> On Thu, Jan 07, 2021 at 04:05:48PM -0500, Jon Mas

Re: 回复: [PATCH 01/10] tick/nohz: Prevent tick_nohz_get_sleep_length() from returning negative value

2021-03-25 Thread Frederic Weisbecker
On Tue, Mar 16, 2021 at 04:08:08PM +, Zhou Ti (x2019cwm) wrote: > But I don't think it's a good idea to handle this in callers, because > logically the function shouldn't return negative values. Returning 0 directly > would allow idle governors to get another chance to select again. Hmm, I'm

[PATCH v3 0/5] Cleanup and fixup for mm/migrate.c

2021-03-25 Thread Miaohe Lin
Hi all, This series contains cleanups to remove unnecessary VM_BUG_ON_PAGE and rc != MIGRATEPAGE_SUCCESS check. Also use helper function to remove some duplicated codes. What's more, this fixes potential deadlock in NUMA balancing shared exec THP case and so on. More details can be found in the res

[PATCH v3 2/5] mm/migrate.c: remove unnecessary rc != MIGRATEPAGE_SUCCESS check in 'else' case

2021-03-25 Thread Miaohe Lin
It's guaranteed that in the 'else' case of the rc == MIGRATEPAGE_SUCCESS check, rc does not equal to MIGRATEPAGE_SUCCESS. Remove this unnecessary check. Reviewed-by: David Hildenbrand Reviewed-by: Yang Shi Signed-off-by: Miaohe Lin --- mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH v3 3/5] mm/migrate.c: fix potential indeterminate pte entry in migrate_vma_insert_page()

2021-03-25 Thread Miaohe Lin
If the zone device page does not belong to un-addressable device memory, the variable entry will be uninitialized and lead to indeterminate pte entry ultimately. Fix this unexpected case and warn about it. Fixes: df6ad69838fc ("mm/device-public-memory: device memory cache coherent with CPU") Sign

[PATCH v3 1/5] mm/migrate.c: make putback_movable_page() static

2021-03-25 Thread Miaohe Lin
The putback_movable_page() is just called by putback_movable_pages() and we know the page is locked and both PageMovable() and PageIsolated() is checked right before calling putback_movable_page(). So we make it static and remove all the 3 VM_BUG_ON_PAGE(). Signed-off-by: Miaohe Lin --- include/

[PATCH v3 5/5] Revert "mm: migrate: skip shared exec THP for NUMA balancing"

2021-03-25 Thread Miaohe Lin
This reverts commit c77c5cbafe549eb330e8909861a3e16cbda2c848. Since commit c77c5cbafe54 ("mm: migrate: skip shared exec THP for NUMA balancing"), the NUMA balancing would skip shared exec transhuge page. But this enhancement is not suitable for transhuge page. Because it's required that page_mapco

[PATCH v3 4/5] mm/migrate.c: use helper migrate_vma_collect_skip() in migrate_vma_collect_hole()

2021-03-25 Thread Miaohe Lin
It's more recommended to use helper function migrate_vma_collect_skip() to skip the unexpected case and it also helps remove some duplicated codes. Move migrate_vma_collect_skip() above migrate_vma_collect_hole() to avoid compiler warning. Reviewed-by: David Hildenbrand Signed-off-by: Miaohe Lin

[PATCH V4] exit: trigger panic when global init has exited

2021-03-25 Thread Qianli Zhao
From: Qianli Zhao When init sub-threads running on different CPUs exit at the same time, zap_pid_ns_processe()->BUG() may be happened(timing is as below),move panic() before set PF_EXITING to fix this problem. In addition,if panic() after other sub-threads finish do_exit(), some key variables (t

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Jason Gunthorpe
On Thu, Mar 25, 2021 at 02:05:14PM +0100, Christian König wrote: > > > Am 25.03.21 um 13:42 schrieb Jason Gunthorpe: > > On Thu, Mar 25, 2021 at 01:09:14PM +0100, Christian König wrote: > > > Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: > > > > On Thu, Mar 25, 2021 at 12:53:15PM +0100, Thomas He

Re: [PATCH] KVM: clean up the unused argument

2021-03-25 Thread Haiwei Li
Kindly ping. :) On Mon, Mar 15, 2021 at 12:40 PM Keqian Zhu wrote: > > > This looks OK. The use of vcpu argument is removed in commit d383b3146d80 > (KVM: x86: Fix NULL dereference at kvm_msr_ignored_check()) > > Reviewed-by: Keqian Zhu > > On 2021/3/13 13:10, lihaiwei.ker...@gmail.com wrote: >

Re: [PATCH v3 1/5] mm/migrate.c: make putback_movable_page() static

2021-03-25 Thread David Hildenbrand
On 25.03.21 14:15, Miaohe Lin wrote: The putback_movable_page() is just called by putback_movable_pages() and we know the page is locked and both PageMovable() and PageIsolated() is checked right before calling putback_movable_page(). So we make it static and remove all the 3 VM_BUG_ON_PAGE(). S

Re: [PATCH] mm/sparse: Add the missing sparse_buffer_fini() in error branch

2021-03-25 Thread Oscar Salvador
On Thu, Mar 25, 2021 at 11:31:55AM +, Wang Wensheng wrote: > sparse_buffer_init() and sparse_buffer_fini() should appear in pair, or > a WARN issue would be through the next time sparse_buffer_init() runs. > > Add the missing sparse_buffer_fini() in error branch. > > Fixes: 85c77f791390 ("mm/

Re: [net-next PATCH 0/8] configuration support for switch headers & phy

2021-03-25 Thread Andrew Lunn
On Thu, Mar 25, 2021 at 06:32:12PM +0530, Sunil Kovvuri wrote: > On Thu, Mar 25, 2021 at 6:20 PM Andrew Lunn wrote: > > > > > > So you completely skipped how this works with mv88e6xxx or > > > > prestera. If you need this private flag for some out of mainline > > > > Marvell SDK, it is very unlike

Re: [PATCH] include: linux: debug_locks: Remove duplicate declaration

2021-03-25 Thread Andy Shevchenko
On Thu, Mar 25, 2021 at 10:26:58AM +0800, Wan Jiabing wrote: > struct task_struct is declared at 9th line. Remove the duplicate. It seems the duplicate is the other one and you removed wrong one. > Signed-off-by: Wan Jiabing > --- > include/linux/debug_locks.h | 1 - > 1 file changed, 1 deletio

Re: [PATCH] KVM: VMX: Check the corresponding bits according to the intel sdm

2021-03-25 Thread Haiwei Li
On Tue, Mar 23, 2021 at 10:37 AM wrote: > > From: Haiwei Li > > According to IA-32 SDM Vol.3D "A.1 BASIC VMX INFORMATION", two inspections > are missing. > * Bit 31 is always 0. Earlier versions of this manual specified that the > VMCS revision identifier was a 32-bit field in bits 31:0 of this M

Re: [PATCH] include: linux: debug_locks: Remove duplicate declaration

2021-03-25 Thread Andy Shevchenko
On Thu, Mar 25, 2021 at 03:22:22PM +0200, Andy Shevchenko wrote: > On Thu, Mar 25, 2021 at 10:26:58AM +0800, Wan Jiabing wrote: > > struct task_struct is declared at 9th line. Remove the duplicate. > > It seems the duplicate is the other one and you removed wrong one. Okay, they are on the same l

Re: [PATCH 0/9 v6] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-25 Thread Mel Gorman
On Thu, Mar 25, 2021 at 12:50:01PM +, Matthew Wilcox wrote: > On Thu, Mar 25, 2021 at 11:42:19AM +, Mel Gorman wrote: > > This series introduces a bulk order-0 page allocator with sunrpc and > > the network page pool being the first users. The implementation is not > > efficient as semantic

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Christian König
Am 25.03.21 um 14:17 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 02:05:14PM +0100, Christian König wrote: Am 25.03.21 um 13:42 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 01:09:14PM +0100, Christian König wrote: Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at

Re: [PATCH v3 3/5] mm/migrate.c: fix potential indeterminate pte entry in migrate_vma_insert_page()

2021-03-25 Thread David Hildenbrand
On 25.03.21 14:15, Miaohe Lin wrote: If the zone device page does not belong to un-addressable device memory, the variable entry will be uninitialized and lead to indeterminate pte entry ultimately. Fix this unexpected case and warn about it. Fixes: df6ad69838fc ("mm/device-public-memory: device

Re: [PATCH v2] video: hyperv_fb: Fix a double free in hvfb_probe

2021-03-25 Thread Wei Liu
On Wed, Mar 24, 2021 at 01:46:39PM +, Michael Kelley wrote: > From: Lv Yunlong Sent: Wednesday, March 24, 2021 > 3:37 AM > > > > In function hvfb_probe in hyperv_fb.c, it calls hvfb_getmem(hdev, info) > > and return err when info->apertures is freed. > > > > In the error1 label of hvfb_prob

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Intel
Hi, On 3/25/21 2:02 PM, Christian König wrote: Am 25.03.21 um 13:36 schrieb Thomas Hellström (Intel): On 3/25/21 1:09 PM, Christian König wrote: Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 12:53:15PM +0100, Thomas Hellström (Intel) wrote: Nope. The point here wa

Re: [PATCH] clk: Mark fwnodes when their clock provider is added

2021-03-25 Thread Marek Szyprowski
Hi On 10.02.2021 12:44, Tudor Ambarus wrote: > This is a follow-up for: > commit 3c9ea42802a1 ("clk: Mark fwnodes when their clock provider is > added/removed") > > The above commit updated the deprecated of_clk_add_provider(), > but missed to update the preferred of_clk_add_hw_provider(). > Upda

Re: [PATCH] ARM: fix smp_processor_id() in preemptible warning in harden_branch_predictor()

2021-03-25 Thread Liu Xiang
Russell King - ARM Linux admin 于2021年3月25日周四 下午6:06写道: > > On Thu, Mar 25, 2021 at 05:50:49PM +0800, Liu Xiang wrote: > > When CONFIG_HARDEN_BRANCH_PREDICTOR is selected and user aborts occur, > > there is a warning: > > > > BUG: using smp_processor_id() in preemptible [] code: errnotest/5

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Jason Gunthorpe
On Thu, Mar 25, 2021 at 02:26:50PM +0100, Christian König wrote: > Am 25.03.21 um 14:17 schrieb Jason Gunthorpe: > > On Thu, Mar 25, 2021 at 02:05:14PM +0100, Christian König wrote: > > > > > > Am 25.03.21 um 13:42 schrieb Jason Gunthorpe: > > > > On Thu, Mar 25, 2021 at 01:09:14PM +0100, Christia

Re: [PATCH 9/9] net: page_pool: use alloc_pages_bulk in refill code path

2021-03-25 Thread Alexander Lobakin
From: Mel Gorman Date: Thu, 25 Mar 2021 11:42:28 + > From: Jesper Dangaard Brouer > > There are cases where the page_pool need to refill with pages from the > page allocator. Some workloads cause the page_pool to release pages > instead of recycling these pages. > > For these workload it can

Re: [RFC PATCH] USB:XHCI:Adjust the log level of hub

2021-03-25 Thread liulongfang
On 2021/3/25 18:31, Greg KH wrote: > On Thu, Mar 25, 2021 at 06:04:12PM +0800, Longfang Liu wrote: >> When the number of ports of the hub is not between 1 and Maxports, >> it will only exit the registration of the hub on the current controller, >> but it will not affect the function of the controll

[PATCH] Staging: comedi: remove unnecessary else statement

2021-03-25 Thread Swen Kalski
Removal of an unnecessary else in statging/comedi/comedi_buf.c Add an early Return and removed the unleashed the else condition for better readability int staging/comedi drivers. Signed-off-by: Swen Kalski --- drivers/staging/comedi/comedi_buf.c | 52 ++--- 1 file changed

Re: [PATCH AUTOSEL 5.11 43/44] signal: don't allow STOP on PF_IO_WORKER threads

2021-03-25 Thread Jens Axboe
On 3/25/21 6:11 AM, Stefan Metzmacher wrote: > > Am 25.03.21 um 13:04 schrieb Eric W. Biederman: >> Stefan Metzmacher writes: >> >>> Am 25.03.21 um 12:24 schrieb Sasha Levin: From: "Eric W. Biederman" [ Upstream commit 4db4b1a0d1779dc159f7b87feb97030ec0b12597 ] Just like

Re: [PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Takashi Iwai
On Thu, 25 Mar 2021 13:12:48 +0100, Kai-Heng Feng wrote: > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no > error and the other two functions of the USB audio, Line In and Line > Out, work just fine. > > The mic starts to work again after running userspace app like "als

Re: [PATCH] drivers/perf: Simplify the SMMUv3 PMU event attributes

2021-03-25 Thread Will Deacon
On Mon, 8 Feb 2021 21:04:58 +0800, Qi Liu wrote: > For each PMU event, there is a SMMU_EVENT_ATTR(xx, XX) and > &smmu_event_attr_xx.attr.attr. Let's redefine the SMMU_EVENT_ATTR > to simplify the smmu_pmu_events. Applied to will (for-next/perf), thanks! [1/1] drivers/perf: Simplify the SMMUv3 PMU

Re: [PATCH v2 0/3] drivers/perf: convert sysfs sprintf/snprintf/scnprintf to sysfs_emit

2021-03-25 Thread Will Deacon
On Fri, 19 Mar 2021 18:04:30 +0800, Qi Liu wrote: > Use the generic sysfs_emit() and sysfs_emit_at() function to take > place of sprintf/snprintf/scnprintf, to avoid buffer overrun. > > Qi Liu (2): > drivers/perf: convert sysfs scnprintf family to sysfs_emit_at() and > sysfs_emit() > drivers/

Re: [PATCH] docs: livepatch: Fix a typo

2021-03-25 Thread Jonathan Corbet
Bhaskar Chowdhury writes: > On 10:05 Thu 25 Mar 2021, Miroslav Benes wrote: >>you sent the same fix a couple of weeks ago and Jon applied it. >> > Ah..difficult to rememberthanks for reminding ..it seems I need to keep > track ...which I don't do at this moment ...so the patch get duplicated

RE: [PATCH][next] UAPI: nfsfh.h: Replace one-element array with flexible-array member

2021-03-25 Thread David Laight
From: Gustavo A. R. Silva > Sent: 23 March 2021 22:49 > > There is a regular need in the kernel to provide a way to declare having > a dynamically sized set of trailing elements in a structure. Kernel code > should always use “flexible array members”[1] for these cases. The older > style of one-el

Re: [PATCH v2 3/7] powerpc: convert config files to generic cmdline

2021-03-25 Thread Rob Herring
On Thu, Mar 25, 2021 at 6:06 AM Christophe Leroy wrote: > > > > Le 24/03/2021 à 18:32, Rob Herring a écrit : > > On Wed, Mar 24, 2021 at 11:01 AM Christophe Leroy > > wrote: > >> > >> > >> > >> Le 09/03/2021 à 22:29, Daniel Walker a écrit : > >>> On Tue, Mar 09, 2021 at 08:47:09AM +0100, Christop

Re: [PATCH v4 17/21] spmi: hisi-spmi-controller: move driver from staging

2021-03-25 Thread Mauro Carvalho Chehab
Em Fri, 5 Feb 2021 16:19:47 -0600 Rob Herring escreveu: > On Tue, Jan 19, 2021 at 05:10:43PM +0100, Mauro Carvalho Chehab wrote: > > The Hisilicon 6421v600 SPMI driver is ready for mainstream. > > > > So, move it from staging. > > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > .../spmi/

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