Re: [PATCH 8/9] vfio/pci: export nvlink2 support into vendor vfio_pci drivers

2021-03-10 Thread Alexey Kardashevskiy
On 11/03/2021 13:00, Jason Gunthorpe wrote: On Thu, Mar 11, 2021 at 12:42:56PM +1100, Alexey Kardashevskiy wrote: btw can the id list have only vendor ids and not have device ids? The PCI matcher is quite flexable, see the other patch from Max for the igd ah cool, do this for NVIDIA

Re: [PATCH v5 04/10] scsi: ufshpb: Make eviction depends on region's reads

2021-03-10 Thread Can Guo
Hi Avri, On 2021-03-02 21:24, Avri Altman wrote: In host mode, eviction is considered an extreme measure. verify that the entering region has enough reads, and the exiting region has much less reads. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 20 +++- 1 file

Re: [PATCH v4 1/3] bus: mhi: core: Introduce internal register poll helper function

2021-03-10 Thread Loic Poulain
Hi Bhaumik, On Thu, 11 Mar 2021 at 00:31, Bhaumik Bhatt wrote: > > Introduce helper function to allow MHI core driver to poll for > a value in a register field. This helps reach a common path to > read and poll register values along with a retry time interval. > > Signed-off-by: Bhaumik Bhatt >

Re: [PATCH v5 03/10] scsi: ufshpb: Add region's reads counter

2021-03-10 Thread Can Guo
Hi Avri, On 2021-03-02 21:24, Avri Altman wrote: In host control mode, reads are the major source of activation trials. Keep track of those reads counters, for both active as well inactive regions. We reset the read counter upon write - we are only interested in "clean" reads. less

Re: [PATCH v2 0/5] Add option to mmap GEM buffers cached

2021-03-10 Thread Thomas Zimmermann
Hi Am 10.03.21 um 20:02 schrieb Paul Cercueil: Hi Thomas, Le lun. 8 mars 2021 à 9:41, Thomas Zimmermann a écrit : Hi Paul, having individual functions for each mode only makes sense if the decision is at compile time. But in patch 5, you're working around your earlier design by

Re: [RFC] mm: Enable generic pfn_valid() to handle early sections with memmap holes

2021-03-10 Thread Anshuman Khandual
On 3/8/21 2:25 PM, Mike Rapoport wrote: > Hi Anshuman, > > On Mon, Mar 08, 2021 at 08:57:53AM +0530, Anshuman Khandual wrote: >> Platforms like arm and arm64 have redefined pfn_valid() because their early >> memory sections might have contained memmap holes caused by memblock areas >> tagged

[question] Panic in dax_writeback_one

2021-03-10 Thread chenjun (AM)
Hi I write a driver to simulate memory as a block device (like a ramdisk). and I hope the memory used would not be observed by kernel, becasue of the struct page will take many memory. When I mount ext2 with dax on my ramdisk. Panic will happen when fsync. Call trace:

Re: [PATCH] cxl: don't manipulate the mm.mm_users field directly

2021-03-10 Thread Frederic Barrat
On 10/03/2021 18:44, Laurent Dufour wrote: It is better to rely on the API provided by the MM layer instead of directly manipulating the mm_users field. Signed-off-by: Laurent Dufour --- Thanks! Acked-by: Frederic Barrat drivers/misc/cxl/fault.c | 2 +- 1 file changed, 1

Re: [PATCH 4.19 00/39] 4.19.180-rc1 review

2021-03-10 Thread Naresh Kamboju
On Wed, 10 Mar 2021 at 18:56, wrote: > > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.19.180 release. > There are 39 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

RE: [PATCH 2/2] iio:magnetometer: Support for ST magnetic sensors

2021-03-10 Thread LI Qingwu
Hi Andy, Thanks a lot for your input, I just extend the existing driver in patch V2 for the sersor. Best Regards ** Li Qingwu (Terry) Senior Embedded Software Engineer Leica Geosystems(Shanghai)Co.,Limited (Tel): +86 21 61061036 (FAX): +86 21

Re: Errant readings on LM81 with T2080 SoC

2021-03-10 Thread Guenter Roeck
On 3/10/21 1:48 PM, Chris Packham wrote: > > On 10/03/21 6:06 pm, Guenter Roeck wrote: >> On 3/9/21 6:19 PM, Chris Packham wrote: >>> On 9/03/21 9:27 am, Chris Packham wrote: On 8/03/21 5:59 pm, Guenter Roeck wrote: > Other than that, the only other real idea I have would be to monitor

Re: [PATCH RESEND][next] rtl8xxxu: Fix fall-through warnings for Clang

2021-03-10 Thread Gustavo A. R. Silva
On 3/11/21 01:00, Kalle Valo wrote: > Kees Cook writes: > >> On Fri, Mar 05, 2021 at 03:40:33PM +0200, Kalle Valo wrote: >>> "Gustavo A. R. Silva" writes: >>> In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by replacing /* fall through */ comments

module refcount issues in the liquidio driver

2021-03-10 Thread Christoph Hellwig
Hi all, I just stumbled over the odd handling of module refcounts in the liquidio driver. The big red flag is the call to module_refcount in liquidio_watchdog, which will do the wrong thing for any external module refcount, like a userspace open. But more importantly the whole concept of

RE: [PATCH v3 1/3] scsi: ufshcd: use a function to calculate versions

2021-03-10 Thread Avri Altman
> Hi Avri, > > On 10/03/2021 4:34 pm, Avri Altman wrote: > >> @@ -9298,10 +9291,7 @@ int ufshcd_init(struct ufs_hba *hba, void > __iomem > >> *mmio_base, unsigned int irq) > >> /* Get UFS version supported by the controller */ > >> hba->ufs_version = ufshcd_get_ufs_version(hba);

Re: [PATCH 5.4 00/24] 5.4.105-rc1 review

2021-03-10 Thread Naresh Kamboju
On Wed, 10 Mar 2021 at 18:55, wrote: > > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.4.105 release. > There are 24 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

Re: [PATCH V3 1/6] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-10 Thread Zhu, Lingshan
On 3/11/2021 2:13 PM, Jason Wang wrote: On 2021/3/11 12:21 下午, Zhu Lingshan wrote: On 3/11/2021 11:23 AM, Jason Wang wrote: On 2021/3/10 5:00 下午, Zhu Lingshan wrote: In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code.

Re: [External] Re: [PATCH v18 9/9] mm: hugetlb: optimize the code with the help of the compiler

2021-03-10 Thread Muchun Song
On Wed, Mar 10, 2021 at 11:41 PM Michal Hocko wrote: > > On Mon 08-03-21 18:28:07, Muchun Song wrote: > > When the "struct page size" crosses page boundaries we cannot > > make use of this feature. Let free_vmemmap_pages_per_hpage() > > return zero if that is the case, most of the functions can

Re: [PATCH v1 1/3] binder: BINDER_FREEZE ioctl

2021-03-10 Thread Greg KH
On Wed, Mar 10, 2021 at 02:52:49PM -0800, Li Li wrote: > if (target_proc) { > binder_inner_proc_lock(target_proc); > + target_proc->outstanding_txns--; > + WARN_ON(target_proc->outstanding_txns < 0); WARN_* is a huge crutch, please just handle stuff

[PATCH 0/3] Add RTC support for PMIC PMK8350

2021-03-10 Thread satya priya
Convert pm8xxx bindings to yaml and add pmk8350 rtc binding. satya priya (3): rtc: pm8xxx: Add RTC support for PMIC PMK8350 dt-bindings: mfd: Convert pm8xxx bindings to yaml dt-bindings: mfd: Add compatible for pmk8350 rtc .../devicetree/bindings/mfd/qcom-pm8xxx.txt| 99

[PATCH 1/3] rtc: pm8xxx: Add RTC support for PMIC PMK8350

2021-03-10 Thread satya priya
Add the comaptible string for PMIC PMK8350. Signed-off-by: satya priya --- drivers/rtc/rtc-pm8xxx.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c index eb20659..29a1c65 100644 --- a/drivers/rtc/rtc-pm8xxx.c +++

[PATCH 2/3] dt-bindings: mfd: Convert pm8xxx bindings to yaml

2021-03-10 Thread satya priya
Convert pm8xxx rtc bindings from .txt to .yaml format. Signed-off-by: satya priya --- .../devicetree/bindings/mfd/qcom-pm8xxx.txt| 99 --- .../devicetree/bindings/mfd/qcom-pm8xxx.yaml | 108 + 2 files changed, 108 insertions(+), 99 deletions(-)

[PATCH 3/3] dt-bindings: mfd: Add compatible for pmk8350 rtc

2021-03-10 Thread satya priya
Add compatible string for pmk8350 rtc support. Signed-off-by: satya priya --- Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml

Re: [RFC v2 5/5] clk: socfpga: allow compile testing of Stratix 10 / Agilex clocks

2021-03-10 Thread Krzysztof Kozlowski
On 10/03/2021 17:48, Arnd Bergmann wrote: > On Wed, Mar 10, 2021 at 9:38 AM Krzysztof Kozlowski > wrote: >> --- a/drivers/clk/socfpga/Kconfig >> +++ b/drivers/clk/socfpga/Kconfig >> @@ -1,6 +1,17 @@ >> # SPDX-License-Identifier: GPL-2.0 >> +config COMMON_CLK_SOCFPGA >> + bool "Intel

Re: [PATCH v9 6/8] media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2021-03-10 Thread Hans Verkuil
Hi Mirela, On 11/03/2021 01:28, Mirela Rabulea (OSS) wrote: > +static const struct of_device_id mxc_jpeg_match[] = { > + { > + .compatible = "nxp,imx8qxp-jpgdec", > + .data = (void *)MXC_JPEG_DECODE, Don't do this, just say: static const int mxc_decode_mode

[PATCH net] net: lapbether: Prevent racing when checking whether the netif is running

2021-03-10 Thread Xie He
There are two "netif_running" checks in this driver. One is in "lapbeth_xmit" and the other is in "lapbeth_rcv". They serve to make sure that the LAPB APIs called in these functions are called before "lapb_unregister" is called by the "ndo_stop" function. However, these "netif_running" checks are

Re: [PATCH v1] mm, hwpoison: enable error handling on shmem thp

2021-03-10 Thread Hugh Dickins
On Tue, 9 Feb 2021, Naoya Horiguchi wrote: > From: Naoya Horiguchi > > Currently hwpoison code checks PageAnon() for thp and refuses to handle > errors on non-anonymous thps (just for historical reason). We now > support non-anonymou thp like shmem one, so this patch suggests to enable > to

Re: [PATCH] mm/oom_kill: Ensure MMU notifier range_end() is paired with range_start()

2021-03-10 Thread Sean Christopherson
On Wed, Mar 10, 2021, Jason Gunthorpe wrote: > On Wed, Mar 10, 2021 at 05:20:01PM -0800, Sean Christopherson wrote: > > > > Which I believe is fatal to kvm? These notifiers certainly do not only > > > happen at process exit. > > > > My point about the process dying is that the existing bug that

[PATCH] Rectify spelling and grammar

2021-03-10 Thread Xiaofeng Cao
Change 'inaccesable' to 'inaccessible' Change 'detrmine' to 'determine' Delete 'in' grammatically Signed-off-by: Xiaofeng Cao --- drivers/media/radio/radio-si476x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/radio-si476x.c

Re: [PATCH V3 6/6] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-10 Thread Zhu, Lingshan
On 3/11/2021 2:20 PM, Jason Wang wrote: On 2021/3/11 12:16 下午, Zhu Lingshan wrote: On 3/11/2021 11:20 AM, Jason Wang wrote: On 2021/3/10 5:00 下午, Zhu Lingshan wrote: vDPA requres VIRTIO_F_ACCESS_PLATFORM as a must, this commit examines this when set features. Signed-off-by: Zhu

[PATCH v2] netdevsim: fib: Remove redundant code

2021-03-10 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/net/netdevsim/fib.c:874:5-8: Unneeded variable: "err". Return "0" on line 889. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Modify the function type to void. drivers/net/netdevsim/fib.c | 6 +- 1 file

[PATCH v2 25/27] perf tests: Support 'Convert perf time to TSC' test for hybrid

2021-03-10 Thread Jin Yao
Since for "cycles:u' on hybrid platform, it creates two "cycles". So the second evsel in evlist also needs initialization. With this patch, root@otcpl-adl-s-2:~# ./perf test 71 71: Convert perf time to TSC: Ok Signed-off-by: Jin Yao ---

[PATCH v2 26/27] perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid

2021-03-10 Thread Jin Yao
Currently we don't support shadow stat for hybrid. root@ssp-pwrt-002:~# ./perf stat -e cycles,instructions -a -- sleep 1 Performance counter stats for 'system wide': 12,883,109,591 cpu_core/cycles/ 6,405,163,221 cpu_atom/cycles/ 555,553,778

[PATCH v2 27/27] perf Documentation: Document intel-hybrid support

2021-03-10 Thread Jin Yao
Add some words and examples to help understanding of Intel hybrid perf support. Signed-off-by: Jin Yao --- tools/perf/Documentation/intel-hybrid.txt | 228 ++ tools/perf/Documentation/perf-record.txt | 1 + tools/perf/Documentation/perf-stat.txt| 2 + 3 files

[PATCH v2 19/27] perf tests: Add hybrid cases for 'Parse event definition strings' test

2021-03-10 Thread Jin Yao
Add basic hybrid test cases for 'Parse event definition strings' test. root@otcpl-adl-s-2:~# ./perf test 6 6: Parse event definition strings : Ok Signed-off-by: Jin Yao --- tools/perf/tests/parse-events.c | 171 1 file changed,

[PATCH v2 21/27] perf tests: Skip 'Setup struct perf_event_attr' test for hybrid

2021-03-10 Thread Jin Yao
For hybrid, kernel introduces new perf type PERF_TYPE_HARDWARE_PMU (6) and it's assigned to hybrid hardware events. root@otcpl-adl-s-2:~# ./perf test 17 -vvv ... compare matching [event:base-stat] to [event-6-17179869184-4] [cpu] * 0 [flags] 0|8 8 [type] 0 6

[PATCH v2 24/27] perf tests: Support 'Session topology' test for hybrid

2021-03-10 Thread Jin Yao
Force to create one event "cpu_core/cycles/" by default, otherwise in evlist__valid_sample_type, the checking of 'if (evlist->core.nr_entries == 1)' would be failed. root@otcpl-adl-s-2:~# ./perf test 41 41: Session topology: Ok Signed-off-by: Jin

[PATCH v2 23/27] perf tests: Support 'Parse and process metrics' test for hybrid

2021-03-10 Thread Jin Yao
Some events are not supported. Only pick up some cases for hybrid. root@otcpl-adl-s-2:~# ./perf test 67 67: Parse and process metrics : Ok Signed-off-by: Jin Yao --- tools/perf/tests/parse-metric.c | 11 --- 1 file changed, 8 insertions(+), 3

[PATCH v2 20/27] perf tests: Add hybrid cases for 'Roundtrip evsel->name' test

2021-03-10 Thread Jin Yao
Since for one hw event, two hybrid events are created. For example, evsel->idx evsel__name(evsel) 0 cycles 1 cycles 2 instructions 3 instructions ... So for comparing the evsel name on hybrid, the evsel->idx needs to be divided by 2.

[PATCH v2 22/27] perf tests: Support 'Track with sched_switch' test for hybrid

2021-03-10 Thread Jin Yao
Since for "cycles:u' on hybrid platform, it creates two "cycles". So the number of events in evlist is not expected in next test steps. Now we just use one event "cpu_core/cycles:u/" for hybrid. root@otcpl-adl-s-2:~# ./perf test 35 35: Track with sched_switch

[PATCH v2 16/27] perf evlist: Warn as events from different hybrid PMUs in a group

2021-03-10 Thread Jin Yao
If a group has events which are from different hybrid PMUs, shows a warning. This is to remind the user not to put the core event and atom event into one group. root@ssp-pwrt-002:~# ./perf stat -e "{cpu_core/cycles/,cpu_atom/cycles/}" -- sleep 1 WARNING: Group has events from different

[PATCH v2 17/27] perf evsel: Adjust hybrid event and global event mixed group

2021-03-10 Thread Jin Yao
A group mixed with hybrid event and global event is allowed. For example, group leader is 'cpu-clock' and the group member is 'cpu_atom/cycles/'. e.g. perf stat -e '{cpu-clock,cpu_atom/cycles/}' -a The challenge is their available cpus are not fully matched. For example, 'cpu-clock' is available

[PATCH v2 18/27] perf script: Support PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU

2021-03-10 Thread Jin Yao
For a hybrid system, the perf subsystem doesn't know which PMU the events belong to. So the PMU aware version PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU are introduced. Now define the new output[] entries for these two types. Signed-off-by: Jin Yao --- tools/perf/builtin-script.c | 24

Re: [PATCH] ASoC: soc-core: fix DMI handling

2021-03-10 Thread Takashi Iwai
On Wed, 10 Mar 2021 20:39:27 +0100, Pierre-Louis Bossart wrote: > > When DMI information is not present, trying to assign the card long > name results in the following warning. > > WARNING KERN tegra-audio-graph-card sound: ASoC: no DMI vendor name! > > The initial solution suggested was to

[PATCH v2 15/27] perf stat: Filter out unmatched aggregation for hybrid event

2021-03-10 Thread Jin Yao
perf-stat has supported some aggregation modes, such as --per-core, --per-socket and etc. While for hybrid event, it may only available on part of cpus. So for --per-core, we need to filter out the unavailable cores, for --per-socket, filter out the unavailable sockets, and so on. Before:

[PATCH v2 14/27] perf stat: Add default hybrid events

2021-03-10 Thread Jin Yao
Previously if '-e' is not specified in perf stat, some software events and hardware events are added to evlist by default. root@otcpl-adl-s-2:~# ./perf stat -- ./triad_loop Performance counter stats for './triad_loop': 109.43 msec task-clock#0.993 CPUs

[PATCH v2 13/27] perf evlist: Create two hybrid 'cycles' events by default

2021-03-10 Thread Jin Yao
When evlist is empty, for example no '-e' specified in perf record, one default 'cycles' event is added to evlist. While on hybrid platform, it needs to create two default 'cycles' events. One is for core, the other is for atom. This patch actually calls evsel__new_cycles() two times to create

[PATCH v2 11/27] perf parse-events: Support hardware events inside PMU

2021-03-10 Thread Jin Yao
On hybrid platform, some hardware events are only available on a specific pmu. For example, 'L1-dcache-load-misses' is only available on 'cpu_core' pmu. And even for the event which can be available on both pmus, the user also may want to just enable one event. So now following syntax is

Re: [RFC v2 3/5] arm64: socfpga: rename ARCH_STRATIX10 to ARCH_SOCFPGA64

2021-03-10 Thread Krzysztof Kozlowski
On 10/03/2021 17:42, Arnd Bergmann wrote: > On Wed, Mar 10, 2021 at 4:54 PM Krzysztof Kozlowski > wrote: >> On 10/03/2021 16:47, Krzysztof Kozlowski wrote: >>> This edac Altera driver is very weird... it uses the same compatible >>> differently depending whether this is 32-bit or 64-bit (e.g.

[PATCH v2 12/27] perf parse-events: Support hybrid raw events

2021-03-10 Thread Jin Yao
On hybrid platform, same raw event is possible to be available on both cpu_core pmu and cpu_atom pmu. So it's supported to create two raw events for one event encoding. root@ssp-pwrt-002:~# ./perf stat -e r3c -a -vv -- sleep 1 Control descriptor is not initialized

[PATCH v2 10/27] perf parse-events: Create two hybrid cache events

2021-03-10 Thread Jin Yao
For cache events, they have pre-defined configs. The kernel needs to know where the cache event comes from (e.g. from cpu_core pmu or from cpu_atom pmu). But the perf type 'PERF_TYPE_HW_CACHE' can't carry pmu information. So the kernel introduces a new type 'PERF_TYPE_HW_CACHE_PMU'. The new

[PATCH v2 09/27] perf parse-events: Create two hybrid hardware events

2021-03-10 Thread Jin Yao
For hardware events, they have pre-defined configs. The kernel needs to know where the event comes from (e.g. from cpu_core pmu or from cpu_atom pmu). But the perf type 'PERF_TYPE_HARDWARE' can't carry pmu information. So the kernel introduces a new type 'PERF_TYPE_HARDWARE_PMU'. The new

[PATCH v2 08/27] perf stat: Uniquify hybrid event name

2021-03-10 Thread Jin Yao
It would be useful to tell user the pmu which the event belongs to. perf-stat has supported '--no-merge' option and it can print the pmu name after the event name, such as: "cycles [cpu_core]" Now this option is enabled by default for hybrid platform but change the format to: "cpu_core/cycles/"

[PATCH v2 06/27] perf pmu: Add hybrid helper functions

2021-03-10 Thread Jin Yao
The functions perf_pmu__is_hybrid and perf_pmu__find_hybrid_pmu can be used to identify the hybrid platform and return the found hybrid cpu pmu. All the detected hybrid pmus have been saved in 'perf_pmu__hybrid_pmus' list. So we just need to search this list. perf_pmu__hybrid_type_to_pmu converts

[PATCH v2 04/27] perf pmu: Save pmu name

2021-03-10 Thread Jin Yao
On hybrid platform, one event is available on one pmu (such as, available on cpu_core or on cpu_atom). This patch saves the pmu name to the pmu field of struct perf_pmu_alias. Then next we can know the pmu which the event can be available on. Signed-off-by: Jin Yao --- tools/perf/util/pmu.c |

[PATCH v2 02/27] perf jevents: Support unit value "cpu_core" and "cpu_atom"

2021-03-10 Thread Jin Yao
For some Intel platforms, such as Alderlake, which is a hybrid platform and it consists of atom cpu and core cpu. Each cpu has dedicated event list. Part of events are available on core cpu, part of events are available on atom cpu. The kernel exports new cpu pmus: cpu_core and cpu_atom. The

[PATCH v2 03/27] perf pmu: Simplify arguments of __perf_pmu__new_alias

2021-03-10 Thread Jin Yao
Simplify the arguments of __perf_pmu__new_alias() by passing the whole 'struct pme_event' pointer. Signed-off-by: Jin Yao --- tools/perf/util/pmu.c | 36 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/tools/perf/util/pmu.c

[PATCH v2 07/27] perf evlist: Hybrid event uses its own cpus

2021-03-10 Thread Jin Yao
On hybrid platform, atom events can be only enabled on atom CPUs. Core events can be only enabled on core CPUs. So for a hybrid event, it can be only enabled on it's own CPUs. But the problem for current perf is, the cpus for evsel (via PMU sysfs) have been merged to evsel_list->core.all_cpus. It

[PATCH v2 05/27] perf pmu: Save detected hybrid pmus to a global pmu list

2021-03-10 Thread Jin Yao
We identify the cpu_core pmu and cpu_atom pmu by explicitly checking following files: For cpu_core, checks: "/sys/bus/event_source/devices/cpu_core/cpus" For cpu_atom, checks: "/sys/bus/event_source/devices/cpu_atom/cpus" If the 'cpus' file exists, the pmu exists. But in order not to hardcode

[PATCH v2 01/27] tools headers uapi: Update tools's copy of linux/perf_event.h

2021-03-10 Thread Jin Yao
To get the changes in: Liang Kan's patch ("perf: Introduce PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU") Kan's patch is in review at the moment, but the following perf tool patches need this interface for hybrid support. This patch can be removed after Kan's patch is upstreamed.

[PATCH v2 00/27] perf tool: AlderLake hybrid support series 1

2021-03-10 Thread Jin Yao
AlderLake uses a hybrid architecture utilizing Golden Cove cores (core cpu) and Gracemont cores (atom cpu). Each cpu has dedicated event list. Some events are available on core cpu, some events are available on atom cpu and some events can be available on both. Kernel exports new pmus "cpu_core"

[RFC PATCH v2] Bluetooth: hci_qca: Add device_may_wakeup support

2021-03-10 Thread Venkata Lakshmi Narayana Gubba
Based on device may wakeup status, Bluez stack will enable/disable passive scanning with whitelist in BT controller while suspending. As interrupt from BT SoC is handled by UART driver,we need to use device handle of UART driver to get the status of device may wakeup Signed-off-by: Venkata

Re: [PATCH v3 0/4] KVM: arm64: Add VLPI migration support on GICv4.1

2021-03-10 Thread Shenming Lu
Hi, Sorry to bother again, I am really hoping a response for this series. :-) Thanks, Shenming On 2021/2/26 16:58, Shenming Lu wrote: > Hi Marc, > > Gentle ping. Does this series need any further modification? Wish you can > pick it up. :-) > > Thanks, > Shenming > > On 2021/1/27 20:13,

Re: [PATCH v4 4/5] perf stat: Enable iostat mode for x86 platforms

2021-03-10 Thread liuqi (BA)
On 2021/3/11 0:19, Alexander Antonov wrote: On 3/9/2021 10:51 AM, liuqi (BA) wrote: Hi Alexander, On 2021/2/3 21:58, Alexander Antonov wrote: This functionality is based on recently introduced sysfs attributes for Intel® Xeon® Scalable processor family (code name Skylake-SP): Commit

Re: [PATCH RESEND][next] rtl8xxxu: Fix fall-through warnings for Clang

2021-03-10 Thread Kalle Valo
Kees Cook writes: > On Fri, Mar 05, 2021 at 03:40:33PM +0200, Kalle Valo wrote: >> "Gustavo A. R. Silva" writes: >> >> > In preparation to enable -Wimplicit-fallthrough for Clang, fix >> > multiple warnings by replacing /* fall through */ comments with >> > the new pseudo-keyword macro

[PATCH v2] perf machine: Assign boolean values to a bool variable

2021-03-10 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/perf/util/machine.c:2041:9-10: WARNING: return of 0/1 in function 'symbol__match_regex' with return type bool. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Make code simpler. tools/perf/util/machine.c | 4 +--- 1

Re: [PATCH v4] usb: gadget: configfs: Fix KASAN use-after-free

2021-03-10 Thread Macpaul Lin
On Thu, 2021-03-11 at 14:42 +0800, Macpaul Lin wrote: > From: Jim Lin > > When gadget is disconnected, running sequence is like this. > . composite_disconnect > . Call trace: > usb_string_copy+0xd0/0x128 > gadget_config_name_configuration_store+0x4 > gadget_config_name_attr_store+0x40/0x50

Re: [PATCH 07/11] PM / devfreq: check get_dev_status before start monitor

2021-03-10 Thread Chanwoo Choi
On 3/10/21 1:56 PM, Dong Aisheng wrote: > On Wed, Mar 10, 2021 at 11:08 AM Chanwoo Choi wrote: >> >> On 3/10/21 11:56 AM, Dong Aisheng wrote: >>> On Wed, Mar 10, 2021 at 12:12 AM Chanwoo Choi wrote: On 21. 3. 10. 오전 12:58, Chanwoo Choi wrote: > On 21. 3. 9. 오후 9:58, Dong Aisheng

Re: [PATCH] f2fs: allow to change discard policy based on cached discard cmds

2021-03-10 Thread Chao Yu
On 2021/3/11 9:47, Sahitya Tummala wrote: With the default DPOLICY_BG discard thread is ioaware, which prevents the discard thread from issuing the discard commands. On low RAM setups, it is observed that these discard commands in the cache are consuming high memory. This patch aims to relax the

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-10 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 7:50 AM Dmitry Vyukov wrote: > > On Thu, Mar 11, 2021 at 7:40 AM Alex Ghiti wrote: > > > > Hi Ben, > > > > Le 3/10/21 à 5:24 PM, Ben Dooks a écrit : > > > On 10/03/2021 17:16, Dmitry Vyukov wrote: > > >> On Wed, Mar 10, 2021 at 5:46 PM syzbot > > >> wrote: > > >>> > >

Re: [net-next PATCH v7 02/16] net: phy: Introduce fwnode_mdio_find_device()

2021-03-10 Thread Saravana Kannan
On Wed, Mar 10, 2021 at 10:21 PM Calvin Johnson wrote: > > Define fwnode_mdio_find_device() to get a pointer to the > mdio_device from fwnode passed to the function. > > Refactor of_mdio_find_device() to use fwnode_mdio_find_device(). > > Signed-off-by: Calvin Johnson > --- > > Changes in v7: >

Re: [PATCH v2 5/5] PCI: dwc: Move dw_pcie_msi_init() from each users to designware host

2021-03-10 Thread Jisheng Zhang
On Sun, 7 Mar 2021 23:10:12 +0100 Krzysztof Wilczyński wrote: > > > Hi, > > > Currently, dw_pcie_msi_init() allocates and maps page for msi, then > > program the PCIE_MSI_ADDR_LO and PCIE_MSI_ADDR_HI. The Root Complex > > may lose power during suspend-to-RAM, so when we resume, we want to > >

Re: [External] Re: [PATCH v3 3/4] mm: memcontrol: use obj_cgroup APIs to charge kmem pages

2021-03-10 Thread Muchun Song
On Thu, Mar 11, 2021 at 3:53 AM Roman Gushchin wrote: > > On Tue, Mar 09, 2021 at 06:07:16PM +0800, Muchun Song wrote: > > Since Roman series "The new cgroup slab memory controller" applied. All > > slab objects are charged via the new APIs of obj_cgroup. The new APIs > > introduce a struct

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-10 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 7:40 AM Alex Ghiti wrote: > > Hi Ben, > > Le 3/10/21 à 5:24 PM, Ben Dooks a écrit : > > On 10/03/2021 17:16, Dmitry Vyukov wrote: > >> On Wed, Mar 10, 2021 at 5:46 PM syzbot > >> wrote: > >>> > >>> Hello, > >>> > >>> syzbot found the following issue on: > >>> > >>> HEAD

Re: [PATCH 5.10 00/47] 5.10.23-rc2 review

2021-03-10 Thread Naresh Kamboju
On Wed, 10 Mar 2021 at 23:59, wrote: > > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.10.23 release. > There are 47 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

Re: linux-next: build failure after merge of the bpf-next tree

2021-03-10 Thread Björn Töpel
have used the bpf tree from next-20210310 for today.

[PATCH] scsi: Fix a use after free in st_open

2021-03-10 Thread Lv Yunlong
In st_open, if STp->in_use is true, STp will be freed by scsi_tape_put(). However, STp is still used by DEBC_printk() after. It is better to DEBC_printk() before scsi_tape_put(). Signed-off-by: Lv Yunlong --- drivers/scsi/st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [External] Re: [PATCH v3 2/4] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page

2021-03-10 Thread Muchun Song
On Thu, Mar 11, 2021 at 3:58 AM Roman Gushchin wrote: > > On Tue, Mar 09, 2021 at 06:07:15PM +0800, Muchun Song wrote: > > We want to reuse the obj_cgroup APIs to charge the kmem pages. > > If we do that, we should store an object cgroup pointer to > > page->memcg_data for the kmem pages. > > > >

Re: [PATCH 08/11] PM / devfreq: check get_dev_status in devfreq_update_stats

2021-03-10 Thread Chanwoo Choi
On 3/10/21 12:00 PM, Dong Aisheng wrote: > On Wed, Mar 10, 2021 at 12:20 AM Chanwoo Choi wrote: >> >> On 21. 3. 9. 오후 9:58, Dong Aisheng wrote: >>> Check .get_dev_status() in devfreq_update_stats in case it's abused >>> when a device does not provide it. >>> >>> Signed-off-by: Dong Aisheng >>>

Re: [PATCH 2/3] net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver

2021-03-10 Thread Philipp Zabel
Hi Cristian, On Thu, Mar 11, 2021 at 03:20:13AM +0200, Cristian Ciocaltea wrote: > Add new driver for the Ethernet MAC used on the Actions Semi Owl > family of SoCs. > > Currently this has been tested only on the Actions Semi S500 SoC > variant. > > Signed-off-by: Cristian Ciocaltea > ---

[PATCH v4] usb: gadget: configfs: Fix KASAN use-after-free

2021-03-10 Thread Macpaul Lin
From: Jim Lin When gadget is disconnected, running sequence is like this. . composite_disconnect . Call trace: usb_string_copy+0xd0/0x128 gadget_config_name_configuration_store+0x4 gadget_config_name_attr_store+0x40/0x50 configfs_write_file+0x198/0x1f4 vfs_write+0x100/0x220

[PATCH] staging: rtl8723bs: add initial value

2021-03-10 Thread Hao Peng
Add initial value for some uninitialized variable and array. Signed-off-by: Hao Peng --- drivers/staging/rtl8723bs/core/rtw_ap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c index

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-10 Thread Alex Ghiti
Hi Ben, Le 3/10/21 à 5:24 PM, Ben Dooks a écrit : On 10/03/2021 17:16, Dmitry Vyukov wrote: On Wed, Mar 10, 2021 at 5:46 PM syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:    0d7588ab riscv: process: Fix no prototype for arch_dup_tas.. git tree:

Re: [PATCH] net: add net namespace inode for all net_dev events

2021-03-10 Thread Tony Lu
On Wed, Mar 10, 2021 at 11:31:12AM -0500, Steven Rostedt wrote: > On Wed, 10 Mar 2021 17:03:40 +0800 > Tony Lu wrote: > > > I use pahole to read vmlinux.o directly with defconfig and > > CONFIG_DEBUG_INFO enabled, the result shows 22 structs prefixed with > > trace_event_raw_ that have at least

Re: [External] Re: [PATCH v18 6/9] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-03-10 Thread Muchun Song
On Thu, Mar 11, 2021 at 1:16 AM Randy Dunlap wrote: > > On 3/10/21 7:37 AM, Michal Hocko wrote: > > On Mon 08-03-21 18:28:04, 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. >

Re: [PATCH v4 2/3] dt-bindings: mtd: Document use of nvmem-cells compatible

2021-03-10 Thread Rafał Miłecki
On 10.03.2021 23:47, Ansuel Smith wrote: On Wed, Mar 10, 2021 at 11:41:24PM +0100, Rafał Miłecki wrote: See inline On 10.03.2021 22:08, Ansuel Smith wrote: Document nvmem-cells compatible used to treat mtd partitions as a nvmem provider. Signed-off-by: Ansuel Smith ---

Re: [External] Re: [PATCH v18 6/9] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-03-10 Thread Muchun Song
On Wed, Mar 10, 2021 at 11:37 PM Michal Hocko wrote: > > On Mon 08-03-21 18:28:04, 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. > > > > We disables PMD mapping of vmemmap

[unixbhas...@gmail.com: [PATCH] ia64: kernel: Few typos fixed in the file fsys.S]

2021-03-10 Thread Bhaskar Chowdhury
- Forwarded message from Bhaskar Chowdhury - Date: Thu, 11 Mar 2021 11:40:58 +0530 From: Bhaskar Chowdhury To: unixbhas...@gmail.com, linux-i...@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ia64: kernel: Few typos fixed in the file fsys.S X-Mailer: git-send-email

Re: [External] Re: [PATCH v18 5/9] mm: hugetlb: set the PageHWPoison to the raw error page

2021-03-10 Thread Muchun Song
On Wed, Mar 10, 2021 at 11:28 PM Michal Hocko wrote: > > On Mon 08-03-21 18:28:03, Muchun Song wrote: > > Because we reuse the first tail vmemmap page frame and remap it > > with read-only, we cannot set the PageHWPosion on some tail pages. > > So we can use the head[4].private (There are at

'make O=' indigestion with module signing

2021-03-10 Thread Valdis Klētnieks
So, I tried doing a 'make O=... allmodconfig', with a setup where the uid of the build process had write permission to the O= directory, but intentionally did *not* have write permission to the source tree (so they couldn't mess up the tree - I got tired of having to repeatedly do 'make mrproper'

[PATCH] kbuild: remove meaningless parameter to $(call if_changed_rule,dtc)

2021-03-10 Thread Masahiro Yamada
This is a remnant of commit 78046fabe6e7 ("kbuild: determine the output format of DTC by the target suffix"). The parameter "yaml" is meaningless because cmd_dtc no loner takes $(2). Reported-by: Rob Herring Signed-off-by: Masahiro Yamada --- scripts/Makefile.lib | 2 +- 1 file changed, 1

[PATCH] scsi: Fix a double free in myrs_cleanup

2021-03-10 Thread Lv Yunlong
In myrs_cleanup, cs->mmio_base will be freed twice by iounmap(). Fixes: 77266186397c6 ("scsi: myrs: Add Mylex RAID controller (SCSI interface)") Signed-off-by: Lv Yunlong --- drivers/scsi/myrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/myrs.c

Re: [PATCH] ia64: kernel: Few typos fixed in the file fsys.S

2021-03-10 Thread Randy Dunlap
On 3/10/21 10:24 PM, Bhaskar Chowdhury wrote: > On 22:15 Wed 10 Mar 2021, Randy Dunlap wrote: >> On 3/10/21 10:10 PM, Bhaskar Chowdhury wrote: >>> >>> Mundane spelling fixes. >>> >>> Signed-off-by: Bhaskar Chowdhury >> >> Acked-by: Randy Dunlap >> >> but no maintainer Cc:ed to pick it up... >> >

Re: [PATCH] ia64: kernel: Few typos fixed in the file fsys.S

2021-03-10 Thread Bhaskar Chowdhury
On 22:15 Wed 10 Mar 2021, Randy Dunlap wrote: On 3/10/21 10:10 PM, Bhaskar Chowdhury wrote: Mundane spelling fixes. Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap but no maintainer Cc:ed to pick it up... I have seen "maintainer less" files and you have pointed out that too in

[net-next PATCH v7 16/16] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2021-03-10 Thread Calvin Johnson
Modify dpaa2_mac_get_node() to get the dpmac fwnode from either DT or ACPI. Modify dpaa2_mac_get_if_mode() to get interface mode from dpmac_node which is a fwnode. Modify dpaa2_pcs_create() to create pcs from dpmac_node fwnode. Modify dpaa2_mac_connect() to support ACPI along with DT.

[net-next PATCH v7 14/16] net: phylink: introduce phylink_fwnode_phy_connect()

2021-03-10 Thread Calvin Johnson
Define phylink_fwnode_phy_connect() to connect phy specified by a fwnode to a phylink instance. Signed-off-by: Calvin Johnson --- Changes in v7: None Changes in v6: - remove OF check for fixed-link Changes in v5: None Changes in v4: - call phy_device_free() before returning Changes in v3:

[net-next PATCH v7 15/16] net: phylink: Refactor phylink_of_phy_connect()

2021-03-10 Thread Calvin Johnson
Refactor phylink_of_phy_connect() to use phylink_fwnode_phy_connect(). Signed-off-by: Calvin Johnson --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/net/phy/phylink.c | 39

[net-next PATCH v7 13/16] net/fsl: Use fwnode_mdiobus_register()

2021-03-10 Thread Calvin Johnson
fwnode_mdiobus_register() internally takes care of both DT and ACPI cases to register mdiobus. Replace existing of_mdiobus_register() with fwnode_mdiobus_register(). Note: For both ACPI and DT cases, endianness of MDIO controller need to be specified using "little-endian" property.

[net-next PATCH v7 12/16] net: mdiobus: Introduce fwnode_mdiobus_register()

2021-03-10 Thread Calvin Johnson
Introduce fwnode_mdiobus_register() to register PHYs on the mdiobus. If the fwnode is DT node, then call of_mdiobus_register(). If it is an ACPI node, then call acpi_mdiobus_register(). Signed-off-by: Calvin Johnson --- Changes in v7: - Move fwnode_mdiobus_register() to fwnode_mdio.c Changes

[net-next PATCH v7 11/16] net: mdio: Add ACPI support code for mdio

2021-03-10 Thread Calvin Johnson
Define acpi_mdiobus_register() to Register mii_bus and create PHYs for each ACPI child node. Signed-off-by: Calvin Johnson --- Changes in v7: - Include headers directly used in acpi_mdio.c Changes in v6: - use GENMASK() and ACPI_COMPANION_SET() - some cleanup - remove unwanted header inclusion

[net-next PATCH v7 09/16] of: mdio: Refactor of_mdiobus_register_phy()

2021-03-10 Thread Calvin Johnson
Refactor of_mdiobus_register_phy() to use fwnode_mdiobus_register_phy(). Signed-off-by: Calvin Johnson --- Changes in v7: - include fwnode_mdio.h Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/net/mdio/of_mdio.c | 39

  1   2   3   4   5   6   7   8   9   10   >