Re: add custom hinge sensor support

2020-12-04 Thread Srinivas Pandruvada
On Thu, 2020-12-03 at 11:53 +0800, Ye Xiang wrote: > Here three separate iio devices are presented which presents angle > for > hinge, keyboard and screen. You are presenting one IIO device now with three channels. > > This driver works on devices with Intel integrated sensor hub, where > hinge

Re: media: i2c: add OV02A10 image sensor driver

2020-12-04 Thread Sakari Ailus
On Thu, Dec 03, 2020 at 08:30:03PM +0200, Andy Shevchenko wrote: > On Thu, Dec 3, 2020 at 8:24 PM Colin Ian King > wrote: > > On 03/12/2020 18:10, Andy Shevchenko wrote: > > > On Thu, Dec 3, 2020 at 8:03 PM Colin Ian King > > > wrote: > > > > > >> Static analysis on linux-next with Coverity

Re: [PATCH] arm64: mm: decrease the section size to reduce the memory reserved for the page map

2020-12-04 Thread Mike Rapoport
On Fri, Dec 04, 2020 at 11:13:47AM +, Will Deacon wrote: > On Fri, Dec 04, 2020 at 09:44:43AM +0800, Wei Li wrote: > > For the memory hole, sparse memory model that define SPARSEMEM_VMEMMAP > > do not free the reserved memory for the page map, decrease the section > > size can reduce the waste

Re: [PATCH v2 2/2] platform/x86/drivers/acerhdf: Check the interval value when it is set

2020-12-04 Thread Daniel Lezcano
On 03/12/2020 22:22, Peter Kästle wrote: > 3. Dezember 2020 08:17, "Daniel Lezcano" schrieb: > >> Currently the code checks the interval value when the temperature is >> read which is bad for two reasons: >> >> - checking and setting the interval in the get_temp callback is >> inaccurate and

[PATCH 3/3] driver core: auxiliary bus: minor coding style tweaks

2020-12-04 Thread Greg KH
From: Greg Kroah-Hartman For some reason, the original aux bus patch had some really long lines in a few places, probably due to it being a very long-lived patch in development by many different people. Fix that up so that the two files all have the same length lines and function formatting

[PATCH 2/3] driver core: auxiliary bus: make remove function return void

2020-12-04 Thread Greg KH
From: Greg Kroah-Hartman There's an effort to move the remove() callback in the driver core to not return an int, as nothing can be done if this function fails. To make that effort easier, make the aux bus remove function void to start with so that no users have to be changed sometime in the

[PATCH 1/3] driver core: auxiliary bus: move slab.h from include file

2020-12-04 Thread Greg KH
From: Greg Kroah-Hartman No need to include slab.h in include/linux/auxiliary_bus.h, as it is not needed there. Move it to drivers/base/auxiliary.c instead. Signed-off-by: Greg Kroah-Hartman --- drivers/base/auxiliary.c | 1 + include/linux/auxiliary_bus.h | 1 - 2 files changed, 1

Re: [resend/standalone PATCH v4] Add auxiliary bus support

2020-12-04 Thread Greg KH
On Wed, Dec 02, 2020 at 04:54:24PM -0800, Dan Williams wrote: > From: Dave Ertman > > Add support for the Auxiliary Bus, auxiliary_device and auxiliary_driver. > It enables drivers to create an auxiliary_device and bind an > auxiliary_driver to it. > > The bus supports probe/remove shutdown and

Re: [PATCH v3 3/3] iio:Documentation: Add documentation for hinge sensor channels

2020-12-04 Thread Srinivas Pandruvada
On Thu, 2020-12-03 at 11:53 +0800, Ye Xiang wrote: > Add channel description for hinge sensor, including channel label > attribute and raw data description. > > Signed-off-by: Ye Xiang > --- > Documentation/ABI/testing/sysfs-bus-iio | 17 + > 1 file changed, 17 insertions(+) >

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
On Fri, Dec 04, 2020 at 12:21:15PM +0100, Uwe Kleine-König wrote: > Hello Lino, > > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > On 29.11.20 at 19:10, Uwe Kleine-König wrote: > > > You're storing an unsigned long long (i.e. 64 bits) in an u32. If > > > you are sure that

Re: [PATCH] cpufreq: scmi: add COMMON_CLK dependency

2020-12-04 Thread Sudeep Holla
On Fri, Dec 04, 2020 at 12:17:46AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Wtihout CONFIG_COMMON_CLK, the scmi driver fails to link: > > arm-linux-gnueabi-ld: drivers/cpufreq/scmi-cpufreq.o: in function > `scmi_cpufreq_probe': > scmi-cpufreq.c:(.text+0x20c): undefined reference to

Re: linux-next: manual merge of the v4l-dvb tree with the mvebu tree

2020-12-04 Thread Sakari Ailus
On Thu, Dec 03, 2020 at 11:51:37AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the v4l-dvb tree got a conflict in: > > MAINTAINERS > > between commit: > > 8c4e256e3d42 ("MAINTAINERS: Add an entry for MikroTik CRS3xx 98DX3236 > boards") > > from the mvebu tree

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
Hi, On Fri, Dec 04, 2020 at 12:13:26PM +0100, Uwe Kleine-König wrote: > On Fri, Dec 04, 2020 at 08:44:17AM +, Sean Young wrote: > > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > > > You're storing an unsigned long long (i.e. 64 bits) in an u32. If > > > > you are sure

Re: [PATCH] drm/vkms: Add setup and testing information

2020-12-04 Thread Melissa Wen
Hi Sumera, Thanks for the doc improvements. Please see some complimentary comments below. On 12/03, Daniel Vetter wrote: > On Thu, Dec 3, 2020 at 8:13 PM Sumera Priyadarsini > wrote: > > > > Update the vkms documentation to contain steps to: > > > > - setup the vkms driver > > - run tests

[PATCH net] openvswitch: fix error return code in validate_and_copy_dec_ttl()

2020-12-04 Thread Wang Hai
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Changing 'return start' to 'return action_start' can fix this bug. Fixes: 69929d4c49e1 ("net: openvswitch: fix TTL decrement action netlink message format") Reported-by: Hulk Robot

Re: [PATCH bpf-next v4 6/6] bpf: Test bpf_sk_storage_get in tcp iterators

2020-12-04 Thread Florent Revest
On Thu, 2020-12-03 at 18:05 -0800, Martin KaFai Lau wrote: > On Wed, Dec 02, 2020 at 09:55:27PM +0100, Florent Revest wrote: > > This extends the existing bpf_sk_storage_get test where a socket is > > created and tagged with its creator's pid by a task_file iterator. > > > > A TCP iterator is now

[PATCH bpf-next v5 2/6] bpf: Add a bpf_sock_from_file helper

2020-12-04 Thread Florent Revest
While eBPF programs can check whether a file is a socket by file->f_op == _file_ops, they cannot convert the void private_data pointer to a struct socket BTF pointer. In order to do this a new helper wrapping sock_from_file is added. This is useful to tracing programs but also other program types

[PATCH bpf-next v5 6/6] selftests/bpf: Test bpf_sk_storage_get in tcp iterators

2020-12-04 Thread Florent Revest
This extends the existing bpf_sk_storage_get test where a socket is created and tagged with its creator's pid by a task_file iterator. A TCP iterator is now also used at the end of the test to negate the values already stored in the local storage. The test therefore expects -getpid() to be stored

[PATCH bpf-next v5 5/6] selftests/bpf: Add an iterator selftest for bpf_sk_storage_get

2020-12-04 Thread Florent Revest
The eBPF program iterates over all files and tasks. For all socket files, it stores the tgid of the last task it encountered with a handle to that socket. This is a heuristic for finding the "owner" of a socket similar to what's done by lsof, ss, netstat or fuser. Potentially, this information

[PATCH bpf-next v5 4/6] selftests/bpf: Add an iterator selftest for bpf_sk_storage_delete

2020-12-04 Thread Florent Revest
The eBPF program iterates over all entries (well, only one) of a socket local storage map and deletes them all. The test makes sure that the entry is indeed deleted. Signed-off-by: Florent Revest Acked-by: Martin KaFai Lau --- .../selftests/bpf/prog_tests/bpf_iter.c | 64

[PATCH bpf-next v5 3/6] bpf: Expose bpf_sk_storage_* to iterator programs

2020-12-04 Thread Florent Revest
Iterators are currently used to expose kernel information to userspace over fast procfs-like files but iterators could also be used to manipulate local storage. For example, the task_file iterator could be used to initialize a socket local storage with associations between processes and sockets or

[PATCH bpf-next v5 1/6] net: Remove the err argument from sock_from_file

2020-12-04 Thread Florent Revest
Currently, the sock_from_file prototype takes an "err" pointer that is either not set or set to -ENOTSOCK IFF the returned socket is NULL. This makes the error redundant and it is ignored by a few callers. This patch simplifies the API by letting callers deduce the error based on whether the

Re: [PATCH v3 0/2] fs, close_range: add flag CLOSE_RANGE_CLOEXEC

2020-12-04 Thread Christian Brauner
On Wed, Nov 18, 2020 at 11:47:44AM +0100, Giuseppe Scrivano wrote: > When the new flag is used, close_range will set the close-on-exec bit > for the file descriptors instead of close()-ing them. > > It is useful for e.g. container runtimes that want to minimize the > number of syscalls used after

Re: [PATCH 06/10] sched/fair: Clear the target CPU from the cpumask of CPUs searched

2020-12-04 Thread Mel Gorman
On Fri, Dec 04, 2020 at 11:56:36AM +0100, Vincent Guittot wrote: > > The intent was that the sibling might still be an idle candidate. In > > the current draft of the series, I do not even clear this so that the > > SMT sibling is considered as an idle candidate. The reasoning is that if > > there

Re: [PATCH v2 1/3] x86/uprobes: Fix not using prefixes.nbytes for loop over prefixes.bytes

2020-12-04 Thread Masami Hiramatsu
On Fri, 4 Dec 2020 12:06:44 +0100 Borislav Petkov wrote: > On Fri, Dec 04, 2020 at 09:56:53AM +0900, Masami Hiramatsu wrote: > > Hmm, there is a difference between Intel SDM and AMD APM. > > > > Intel SDM vol.2 > > > > 2.1.1 Instruction Prefixes > > Instruction prefixes are divided into four

Re: [PATCH 0/2] Remove one more platform_device_add_properties() call

2020-12-04 Thread Heikki Krogerus
Hi Felipe, On Mon, Nov 23, 2020 at 06:06:31PM +0100, Rafael J. Wysocki wrote: > On Mon, Nov 23, 2020 at 4:32 PM Heikki Krogerus > wrote: > > > > Hi, > > > > I originally introduced these as part of my series where I was > > proposing PM ops for software nodes [1], but since that still needs > >

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-04 Thread Damien Le Moal
On 2020/12/04 20:02, SelvaKumar S wrote: > This patchset tries to add support for TP4065a ("Simple Copy Command"), > v2020.05.04 ("Ratified") > > The Specification can be found in following link. > https://nvmexpress.org/wp-content/uploads/NVM-Express-1.4-Ratified-TPs-1.zip > > This is an RFC.

Re: [PATCH v8 18/18] KVM: SVM: Enable SEV live migration feature implicitly on Incoming VM(s).

2020-12-04 Thread Paolo Bonzini
On 05/05/20 23:22, Ashish Kalra wrote: From: Ashish Kalra For source VM, live migration feature is enabled explicitly when the guest is booting, for the incoming VM(s) it is implied. This is required for handling A->B->C->... VM migrations case. Signed-off-by: Ashish Kalra ---

Re: [PATCH v8 13/18] KVM: x86: Introduce new KVM_FEATURE_SEV_LIVE_MIGRATION feature & Custom MSR.

2020-12-04 Thread Paolo Bonzini
On 05/05/20 23:19, Ashish Kalra wrote: From: Ashish Kalra Add new KVM_FEATURE_SEV_LIVE_MIGRATION feature for guest to check for host-side support for SEV live migration. Also add a new custom MSR_KVM_SEV_LIVE_MIG_EN for guest to enable the SEV live migration feature. Signed-off-by: Ashish

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Uwe Kleine-König
Hello Lino, On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > On 29.11.20 at 19:10, Uwe Kleine-König wrote: > > You're storing an unsigned long long (i.e. 64 bits) in an u32. If > > you are sure that this won't discard relevant bits, please explain > > this in a comment for the

[PATCH v6 05/10] perf evlist: Change perf_evlist__splice_list_tail() ordering

2020-12-04 Thread John Garry
Function find_evsel_group() expects events to be ordered such that they are grouped after their leader. Modify perf_evlist__splice_list_tail() to guarantee this (ordering). [Should prob also change the function name] Signed-off-by: John Garry Acked-by: Kajol Jain --- tools/perf/util/evlist.c

[PATCH v6 08/10] perf metricgroup: Support printing metric groups for system PMUs

2020-12-04 Thread John Garry
Currently printing metricgroups for core- or uncore-based events matched by CPUID is supported. Extend this for system events. Signed-off-by: John Garry Acked-by: Kajol Jain --- tools/perf/util/metricgroup.c | 64 --- 1 file changed, 60 insertions(+), 4

[PATCH v6 09/10] perf metricgroup: Support adding metrics for system PMUs

2020-12-04 Thread John Garry
Currently adding metrics for core- or uncore-based events matched by CPUID is supported. Extend this for system events. Signed-off-by: John Garry Acked-by: Kajol Jain --- tools/perf/util/metricgroup.c | 66 +++ 1 file changed, 60 insertions(+), 6 deletions(-)

[PATCH v6 02/10] perf jevents: Add support for system events tables

2020-12-04 Thread John Garry
Process the JSONs to find support for "system" events, which are not tied to a specific CPUID. A "COMPAT" property is now used to match against the namespace ID from the kernel PMU driver. The generated pmu-events.c will now have 2 tables: a. CPU events, as before. b. New pmu_sys_event_tables[]

[PATCH v6 10/10] perf vendor events: Add JSON metrics for imx8mm DDR Perf

2020-12-04 Thread John Garry
From: Joakim Zhang Add JSON metrics for imx8mm DDR Perf. Signed-off-by: Joakim Zhang Signed-off-by: John Garry Acked-by: Kajol Jain --- .../arch/arm64/freescale/imx8mm/sys/ddrc.json | 39 +++ .../arm64/freescale/imx8mm/sys/metrics.json | 18 +

[PATCH v6 07/10] perf metricgroup: Split up metricgroup__print()

2020-12-04 Thread John Garry
To aid supporting system event metric groups, break up the function metricgroup__print() into a part which iterates metrics and a part which actually "prints" the metric. No functional change intended. Signed-off-by: John Garry Acked-by: Kajol Jain --- tools/perf/util/metricgroup.c | 124

[PATCH v6 01/10] perf jevents: Add support for an extra directory level

2020-12-04 Thread John Garry
Currently only upto a level 2 directory is supported, in form vendor/platform. Add support for a further level, to support vendor/platform sub-directories in future, which will be vendor/platform/cpu and vendor/platform/sys. Signed-off-by: John Garry Acked-by: Kajol Jain ---

[PATCH v6 00/10] perf pmu-events: Support event aliasing for system PMUs

2020-12-04 Thread John Garry
Currently event aliasing and metrics is supported for only CPU and uncore PMUs. More specifically, only uncore PMUs aliasing is supported for when the uncore PMUs are fixed for a CPU, which may not always be the case for certain architectures. This series adds support for PMU event aliasing and

[PATCH v6 06/10] perf metricgroup: Fix metrics using aliases covering multiple PMUs

2020-12-04 Thread John Garry
Support for metric expressions using aliases which cover multiple PMUs is broken. Consider the following test metric expression: "MetricExpr": "UNC_CBO_XSNP_RESPONSE.MISS_XCORE * UNC_CBO_XSNP_RESPONSE.MISS_EVICTION" When used on my broadwell, "perf stat" gives:

[PATCH v6 04/10] perf pmu: Add pmu_add_sys_aliases()

2020-12-04 Thread John Garry
Add pmu_add_sys_aliases() to add system PMU events aliases. For adding system PMU events, iterate through all the events for all SoC event tables in pmu_sys_event_tables[]. Matches must satisfy both: - PMU identifier matches event "compat" value - event "Unit" member must match, same as uncore

[PATCH v6 03/10] perf pmu: Add pmu_id()

2020-12-04 Thread John Garry
Add a function to read the PMU id sysfs entry. This is only done for uncore PMUs where this would possibly be relevant. Signed-off-by: John Garry Acked-by: Kajol Jain --- tools/perf/util/pmu.c | 18 ++ tools/perf/util/pmu.h | 1 + 2 files changed, 19 insertions(+) diff --git

Re: [PATCH] arm64: mm: decrease the section size to reduce the memory reserved for the page map

2020-12-04 Thread Will Deacon
On Fri, Dec 04, 2020 at 09:44:43AM +0800, Wei Li wrote: > For the memory hole, sparse memory model that define SPARSEMEM_VMEMMAP > do not free the reserved memory for the page map, decrease the section > size can reduce the waste of reserved memory. > > Signed-off-by: Wei Li > Signed-off-by:

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Uwe Kleine-König
Hello, On Fri, Dec 04, 2020 at 08:44:17AM +, Sean Young wrote: > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > > You're storing an unsigned long long (i.e. 64 bits) in an u32. If > > > you are sure that this won't discard relevant bits, please explain > > > this in a

Re: linux-next: manual merge of the kvm-arm tree with the arm64 tree

2020-12-04 Thread Marc Zyngier
Hi Stephen, On 2020-12-04 05:44, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/kernel/head.S between commits: 2ffac9e3fdbd ("arm64: head.S: cleanup SCTLR_ELx initialization") d87a8e65b510 ("arm64: head.S: always initialize

Re: [External] Re: [PATCH] mm/page_alloc: speeding up the iteration of max_order

2020-12-04 Thread Muchun Song
On Fri, Dec 4, 2020 at 6:28 PM Vlastimil Babka wrote: > > On 12/4/20 5:03 AM, Muchun Song wrote: > > On Fri, Dec 4, 2020 at 1:37 AM Vlastimil Babka wrote: > >> > >> On 12/2/20 1:18 PM, Muchun Song wrote: > >> > When we free a page whose order is very close to MAX_ORDER and greater > >> > than

Re: [PATCH v8 18/18] KVM: SVM: Enable SEV live migration feature implicitly on Incoming VM(s).

2020-12-04 Thread Paolo Bonzini
On 05/05/20 23:22, Ashish Kalra wrote: From: Ashish Kalra For source VM, live migration feature is enabled explicitly when the guest is booting, for the incoming VM(s) it is implied. This is required for handling A->B->C->... VM migrations case. Signed-off-by: Ashish Kalra ---

Re: [PATCH] firmware: tegra: bpmp: fix T234 build failure

2020-12-04 Thread Thierry Reding
On Fri, Dec 04, 2020 at 12:06:20AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When only Tegra 234 is enabled, the bpmp driver fails > to build: > > drivers/firmware/tegra/bpmp.c:861:51: error: 'tegra186_soc' undeclared here > (not in a function) > 861 | { .compatible =

Re: [PATCH] soc/tegra: fix T234 build failure

2020-12-04 Thread Thierry Reding
On Fri, Dec 04, 2020 at 12:05:47AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > In a T234-only configuration, the fuse driver fails to build: > > drivers/soc/tegra/fuse/fuse-tegra30.c:376:10: error: 'tegra30_fuse_read' > undeclared here (not in a function); did you mean

Re: [PATCH v8 12/18] KVM: SVM: Add support for static allocation of unified Page Encryption Bitmap.

2020-12-04 Thread Paolo Bonzini
On 05/05/20 23:18, Ashish Kalra wrote: Add support for static allocation of the unified Page encryption bitmap by extending kvm_arch_commit_memory_region() callack to add svm specific x86_ops which can read the userspace provided memory region/memslots and calculate the amount of guest RAM

Re: [PATCH v3 3/3] PCI/MSI: Set device flag indicating only 32-bit MSI support

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 12:51:10PM -0600, Bjorn Helgaas wrote: > From: Vidya Sagar > > The MSI-X Capability requires devices to support 64-bit Message Addresses, > but the MSI Capability can support either 32- or 64-bit addresses. > > Previously, we set dev->no_64bit_msi for a few broken

Re: [PATCH v2 1/3] x86/uprobes: Fix not using prefixes.nbytes for loop over prefixes.bytes

2020-12-04 Thread Borislav Petkov
On Fri, Dec 04, 2020 at 09:56:53AM +0900, Masami Hiramatsu wrote: > Hmm, there is a difference between Intel SDM and AMD APM. > > Intel SDM vol.2 > > 2.1.1 Instruction Prefixes > Instruction prefixes are divided into four groups, each with a set of > allowable prefix codes. For each

Re: [PATCH v3 2/3] PCI/MSI: Move MSI/MSI-X flags updaters to msi.c

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 12:51:09PM -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > pci_msi_set_enable() and pci_msix_clear_and_set_ctrl() are only used from > msi.c, so move them from drivers/pci/pci.h to msi.c. No functional change > intended. > > Signed-off-by: Bjorn Helgaas > --- >

Re: [PATCH v3 1/3] PCI/MSI: Move MSI/MSI-X init to msi.c

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 12:51:08PM -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Move pci_msi_setup_pci_dev(), which disables MSI and MSI-X interrupts, from > probe.c to msi.c so it's with all the other MSI code and more consistent > with other capability initialization. This means we

Re: [PATCH] ethernet: select CONFIG_CRC32 as needed

2020-12-04 Thread Simon Horman
On Fri, Dec 04, 2020 at 12:20:37AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > A number of ethernet drivers require crc32 functionality to be > avaialable in the kernel, causing a link error otherwise: > > arm-linux-gnueabi-ld: drivers/net/ethernet/agere/et131x.o: in function >

[RFC PATCH v2 2/2] nvme: add simple copy support

2020-12-04 Thread SelvaKumar S
Add support for TP 4065a ("Simple Copy Command"), v2020.05.04 ("Ratified") The implementation uses the payload passed from the block layer to form simple copy command. Set the device copy limits to queue limits. Signed-off-by: SelvaKumar S Signed-off-by: Kanchan Joshi Signed-off-by: Nitesh

[RFC PATCH v2 1/2] block: add simple copy support

2020-12-04 Thread SelvaKumar S
Add new BLKCOPY ioctl that offloads copying of multiple sources to a destination to the device. Accept copy_ranges that contains destination, no of sources and pointer to the array of source ranges. Each range_entry contains start and length of source ranges (in bytes). Introduce REQ_OP_COPY, a

Re: [PATCH] PM: AVS: rockchip-io: Fix error return code in rockchip_iodomain_probe()

2020-12-04 Thread Heiko Stuebner
On Fri, 4 Dec 2020 16:33:25 +0800, Zhang Changzhong wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. Applied, thanks! [1/1] PM: AVS: rockchip-io: Fix error return code in rockchip_iodomain_probe() commit:

[RFC PATCH v2 0/2] add simple copy support

2020-12-04 Thread SelvaKumar S
This patchset tries to add support for TP4065a ("Simple Copy Command"), v2020.05.04 ("Ratified") The Specification can be found in following link. https://nvmexpress.org/wp-content/uploads/NVM-Express-1.4-Ratified-TPs-1.zip This is an RFC. Looking forward for any feedbacks or other alternate

Re: [PATCH] arm64: dts: rockchip: rk3328: Fix UART pull-ups

2020-12-04 Thread Heiko Stuebner
On Fri, 4 Dec 2020 14:48:05 +0800, Chen-Yu Tsai wrote: > For UARTs, the local pull-ups should be on the RX pin, not the TX pin. > UARTs transmit active-low, so a disconnected RX pin should be pulled > high instead of left floating to prevent noise being interpreted as > transmissions. > > This

REPLY ME URGENTLY

2020-12-04 Thread Elizabeth Edward
Greeting Please forgive me for stressing you with my predicaments and I sorry to approach you through this media it is because it serves the fastest means of communication. I came across your E-mail from my personal search and I decided to contact you believing you will be honest to fulfill my

Re: [PATCH v1] Bluetooth: Set missing suspend task bits

2020-12-04 Thread Marcel Holtmann
Hi Howard, > When suspending, mark SUSPEND_SCAN_ENABLE and SUSPEND_SCAN_DISABLE tasks > correctly when either classic or le scanning is modified. > > Signed-off-by: Abhishek Pandit-Subedi > Signed-off-by: Howard Chung > Reviewed-by: Alain Michaud > --- > > net/bluetooth/hci_request.c | 8

Re: [PATCH] mm/vmalloc: randomize vmalloc() allocations

2020-12-04 Thread Topi Miettinen
On 4.12.2020 1.15, David Laight wrote: From: Mike Rapoport Sent: 03 December 2020 06:58 On Wed, Dec 02, 2020 at 08:49:06PM +0200, Topi Miettinen wrote: On 1.12.2020 23.45, Topi Miettinen wrote: Memory mappings inside kernel allocated with vmalloc() are in predictable order and packed tightly

Re: [PATCH] powerpc/xmon: Change printk() to pr_cont()

2020-12-04 Thread Michael Ellerman
Christophe Leroy writes: > Since some time now, printk() adds carriage return, leading to > unusable xmon output: > > [ 54.288722] sysrq: Entering xmon > [ 54.292209] Vector: 0 at [cace3d2c] > [ 54.292274] pc: > [ 54.292331] c0023650 ... > diff --git a/arch/powerpc/xmon/nonstdio.c

Re: [PATCH 06/10] sched/fair: Clear the target CPU from the cpumask of CPUs searched

2020-12-04 Thread Vincent Guittot
On Thu, 3 Dec 2020 at 18:52, Mel Gorman wrote: > > On Thu, Dec 03, 2020 at 05:38:03PM +0100, Vincent Guittot wrote: > > On Thu, 3 Dec 2020 at 15:11, Mel Gorman wrote: > > > > > > The target CPU is definitely not idle in both select_idle_core and > > > select_idle_cpu. For select_idle_core(), the

Re: [PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties'

2020-12-04 Thread Philipp Zabel
On Fri, 2020-12-04 at 17:38 +0800, Zhen Lei wrote: > When I do dt_binding_check for any YAML file, below wanring is always > reported: > > xxx/media/coda.yaml: 'additionalProperties' is a required property > xxx/media/coda.yaml: ignoring, error in schema: > warning: no schema found in file:

[PATCH v3 0/3] x86/insn: Fix not using prefixes.nbytes for loop over prefixes.bytes

2020-12-04 Thread Masami Hiramatsu
Hi, Here are the 3rd version of patches to fix the wrong loop boundary check on insn.prefixes.bytes[] array. The previous version is here; https://lkml.kernel.org/r/160697102582.3146288.10127018634865687932.stgit@devnote2 In this version, I've fixed some comments, added NUM_INSN_FIELD_BYTES

[PATCH v3 1/3] x86/uprobes: Fix not using prefixes.nbytes for loop over prefixes.bytes

2020-12-04 Thread Masami Hiramatsu
Since the insn.prefixes.nbytes can be bigger than the size of insn.prefixes.bytes[] when a same prefix is repeated, we have to check whether the insn.prefixes.bytes[i] != 0 and i < 4(*) instead of insn.prefixes.nbytes. (*) 4 is the number of maximum legacy prefix groups on one instruction. This

[PATCH v3 3/3] x86/sev-es: Fix not using prefixes.nbytes for loop over prefixes.bytes

2020-12-04 Thread Masami Hiramatsu
Since the insn.prefixes.nbytes can be bigger than the size of insn.prefixes.bytes[] when a same prefix is repeated, we have to check whether the i < 4 and insn.prefixes.bytes[i] != 0 instead of insn.prefixes.nbytes. Fixes: 25189d08e516 ("x86/sev-es: Add support for handling IOIO exceptions")

[PATCH v3 2/3] x86/insn-eval: Fix not using prefixes.nbytes for loop over prefixes.bytes

2020-12-04 Thread Masami Hiramatsu
Since the insn.prefixes.nbytes can be bigger than the size of insn.prefixes.bytes[] when a same prefix is repeated, we have to check whether the insn.prefixes.bytes[i] != 0 and i < 4 instead of insn.prefixes.nbytes. Fixes: 32d0b95300db ("x86/insn-eval: Add utility functions to get segment

Re: [PATCH] driver core: Reorder devices on successful probe

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 07:17:30PM +0100, Rafael J. Wysocki wrote: > On Thu, Dec 3, 2020 at 6:58 PM Thierry Reding > wrote: > > > > From: Thierry Reding > > > > Device drivers usually depend on the fact that the devices that they > > control are suspended in the same order that they were probed

tick/sched: Make jiffies update quick check more robust

2020-12-04 Thread Thomas Gleixner
The quick check in tick_do_update_jiffies64() whether jiffies need to be updated is not really correct under all circumstances and on all architectures, especially not on 32bit systems. The quick check does: if (now < READ_ONCE(tick_next_period)) return; and the counterpart in the

Re: [PATCH net] net: bridge: vlan: fix error return code in __vlan_add()

2020-12-04 Thread Nikolay Aleksandrov
On 04/12/2020 10:48, Zhang Changzhong wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: f8ed289fab84 ("bridge: vlan: use br_vlan_(get|put)_master to deal with > refcounts") > Reported-by: Hulk Robot >

Re: [PATCH] rtc: adapt allowed RTC update error

2020-12-04 Thread Thomas Gleixner
On Fri, Dec 04 2020 at 10:51, Alexandre Belloni wrote: > On 04/12/2020 10:34:13+0100, Thomas Gleixner wrote: >> So either the RTC knows the requirements for tsched, e.g. the MC14xxx >> datasheet, or it can retrieve that information from DT or by querying >> the underlying bus mechanics for the

Re: [PATCH] driver core: Reorder devices on successful probe

2020-12-04 Thread Thierry Reding
On Thu, Dec 03, 2020 at 11:19:11AM -0800, Saravana Kannan wrote: > On Thu, Dec 3, 2020 at 10:17 AM Rafael J. Wysocki wrote: > > > > On Thu, Dec 3, 2020 at 6:58 PM Thierry Reding > > wrote: > > > > > > From: Thierry Reding > > > > > > Device drivers usually depend on the fact that the devices

Re: [PATCH] staging: bcm2835: fix vchiq_mmal dependencies

2020-12-04 Thread Jacopo Mondi
Hi Arnd, On Thu, Dec 03, 2020 at 11:38:30PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When the MMAL code is built-in but the vchiq core config is > set to =m, the mmal code never gets built, which in turn can > lead to link errors: My bad, I repetedly ignored the error report

Re: [PATCH] bus: fsl-mc: fix error return code in fsl_mc_object_allocate()

2020-12-04 Thread Laurentiu Tudor
On 12/4/2020 10:02 AM, Zhang Changzhong wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 197f4d6a4a00 ("staging: fsl-mc: fsl-mc object allocator driver") > Reported-by: Hulk Robot > Signed-off-by: Zhang

Re: [PATCH] staging: greybus: audio: Add missing unlock in gbaudio_dapm_free_controls()

2020-12-04 Thread Johan Hovold
On Fri, Dec 04, 2020 at 05:19:25PM +0800, wanghai (M) wrote: > > 在 2020/12/4 16:40, Johan Hovold 写道: > > On Fri, Dec 04, 2020 at 10:13:50AM +0800, Wang Hai wrote: > >> Add the missing unlock before return from function > >> gbaudio_dapm_free_controls() in the error handling case. > >> > >> Fixes:

[PATCH] kasan: fix slab double free when cpu-hotplug

2020-12-04 Thread qiang . zhang
From: Zqiang When a CPU offline, the per-cpu quarantine's offline be set true, after this, if the quarantine_put be called in this CPU, the objects will be free and return false, free objects doesn't to be done, due to return false, the slab memory manager will free this objects. Fixes:

Re: [PATCH net v2] xsk: Return error code if force_zc is set

2020-12-04 Thread Magnus Karlsson
On Fri, Dec 4, 2020 at 11:18 AM Zhang Changzhong wrote: > > If force_zc is set, we should exit out with an error, not fall back to > copy mode. > > Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") > Reported-by: Hulk Robot > Signed-off-by: Zhang Changzhong > --- >

Re: [PATCH 15/15] usb: serial: kl5kusb105: use usb_control_msg_recv() and usb_control_msg_send()

2020-12-04 Thread Johan Hovold
On Wed, Nov 04, 2020 at 12:17:03PM +0530, Himadri Pandya wrote: > The new usb_control_msg_recv() and usb_control_msg_send() nicely wraps > usb_control_msg() with proper error check. Hence use the wrappers > instead of calling usb_control_msg() directly > > Signed-off-by: Himadri Pandya > --- >

[PATCH] powerpc/xmon: Change printk() to pr_cont()

2020-12-04 Thread Christophe Leroy
Since some time now, printk() adds carriage return, leading to unusable xmon output: [ 54.288722] sysrq: Entering xmon [ 54.292209] Vector: 0 at [cace3d2c] [ 54.292274] pc: [ 54.292331] c0023650 [ 54.292468] : xmon+0x28/0x58 [ 54.292519] [ 54.292574] lr: [ 54.292630]

Re: [PATCH v1 0/5] dm: dm-user: New target that proxies BIOs to userspace

2020-12-04 Thread Christoph Hellwig
What is the advantage over simply using nbd?

Re: [PATCH 14/15] usb: serial: keyspan_pda: use usb_control_msg_recv() and usb_control_msg_send()

2020-12-04 Thread Johan Hovold
On Wed, Nov 04, 2020 at 12:17:02PM +0530, Himadri Pandya wrote: > The new usb_control_msg_recv() and usb_control_msg_send() nicely wraps > usb_control_msg() with proper error check. Hence use the wrappers > instead of calling usb_control_msg() directly. > > Signed-off-by: Himadri Pandya > --- >

Re: [External] Re: [PATCH] mm/page_alloc: speeding up the iteration of max_order

2020-12-04 Thread Vlastimil Babka
On 12/4/20 5:03 AM, Muchun Song wrote: > On Fri, Dec 4, 2020 at 1:37 AM Vlastimil Babka wrote: >> >> On 12/2/20 1:18 PM, Muchun Song wrote: >> > When we free a page whose order is very close to MAX_ORDER and greater >> > than pageblock_order, it wastes some CPU cycles to increase max_order >> >

Re: [PATCH 13/15] usb: serial: iuu_phoenix: use usb_control_msg_send()

2020-12-04 Thread Johan Hovold
On Wed, Nov 04, 2020 at 12:17:01PM +0530, Himadri Pandya wrote: > The new usb_control_msg_send() nicely wraps usb_control_msg() with proper > error check. Hence use the wrapper instead of calling usb_control_msg() > directly. > > Signed-off-by: Himadri Pandya > --- >

Re: [PATCH 12/15] usb: serial: ipw: use usb_control_msg_send()

2020-12-04 Thread Johan Hovold
On Wed, Nov 04, 2020 at 12:17:00PM +0530, Himadri Pandya wrote: > The new usb_control_msg_send() nicely wraps usb_control_msg() with proper > error check. Hence use the wrapper instead of calling usb_control_msg() > directly. > > Signed-off-by: Himadri Pandya > --- > drivers/usb/serial/ipw.c |

[PATCH v2 0/3] HWPoison: Refactor get page interface

2020-12-04 Thread Oscar Salvador
Ok, this is v2. I left out the MF_COUNT_INCREASED changes as we need to have the pages pinned when coming from madvise, otherwise we might be messing with a page which belongs to someone else. I ran several tests [1] [2] to make sure nothing is broken. @Andrew: Please, remove [3] from mmotm and

[PATCH v2 2/3] mm,hwpoison: Disable pcplists before grabbing a refcount

2020-12-04 Thread Oscar Salvador
Currently, we have a sort of retry mechanism to make sure pages in pcp-lists are spilled to the buddy system, so we can handle those. We can save us this extra checks with the new disable-pcplist mechanism that is available with [1]. zone_pcplist_disable makes sure to 1) disable pcplists, so any

[PATCH v2 3/3] mm,hwpoison: Remove drain_all_pages from shake_page

2020-12-04 Thread Oscar Salvador
get_hwpoison_page already drains pcplists, previously disabling them when trying to grab a refcount. We do not need shake_page to take care of it anymore. Signed-off-by: Oscar Salvador Acked-by: Naoya Horiguchi --- mm/memory-failure.c | 7 ++- 1 file changed, 2 insertions(+), 5

[PATCH v2 1/3] mm,hwpoison: Refactor get_any_page

2020-12-04 Thread Oscar Salvador
When we want to grab a refcount via get_any_page, we call __get_any_page that calls get_hwpoison_page to get the actual refcount. get_any_page is only there because we have a sort of retry mechanism in case the page we met is unknown to us or if we raced with an allocation. Also __get_any_page

Re: [PATCH v13 07/15] iommu/smmuv3: Allow stage 1 invalidation with unmanaged ASIDs

2020-12-04 Thread Auger Eric
Hi Shameer, Jean-Philippe, On 12/4/20 11:20 AM, Shameerali Kolothum Thodi wrote: > Hi Jean, > >> -Original Message- >> From: Jean-Philippe Brucker [mailto:jean-phili...@linaro.org] >> Sent: 04 December 2020 09:54 >> To: Shameerali Kolothum Thodi >> Cc: Auger Eric ; wangxingang >> ;

[PATCH v7] f2fs: compress: support compress level

2020-12-04 Thread Chao Yu
Expand 'compress_algorithm' mount option to accept parameter as format of :, by this way, it gives a way to allow user to do more specified config on lz4 and zstd compression level, then f2fs compression can provide higher compress ratio. In order to set compress level for lz4 algorithm, it needs

RE: [PATCH v13 07/15] iommu/smmuv3: Allow stage 1 invalidation with unmanaged ASIDs

2020-12-04 Thread Shameerali Kolothum Thodi
Hi Jean, > -Original Message- > From: Jean-Philippe Brucker [mailto:jean-phili...@linaro.org] > Sent: 04 December 2020 09:54 > To: Shameerali Kolothum Thodi > Cc: Auger Eric ; wangxingang > ; Xieyingtai ; > k...@vger.kernel.org; m...@kernel.org; j...@8bytes.org; w...@kernel.org; >

Re: [PATCH] genksyms: Ignore module scoped _Static_assert()

2020-12-04 Thread Marco Elver
On Tue, 1 Dec 2020 at 21:00, Nick Desaulniers wrote: > On Tue, Dec 1, 2020 at 7:21 AM Marco Elver wrote: > > The C11 _Static_assert() keyword may be used at module scope, and we > > need to teach genksyms about it to not abort with an error. We currently > > have a growing number of

Re: [PATCH v8 3/4] phy: Add Sparx5 ethernet serdes PHY driver

2020-12-04 Thread Russell King - ARM Linux admin
On Fri, Dec 04, 2020 at 08:56:33AM +0100, Alexandre Belloni wrote: > Hi Russell, > > On 03/12/2020 22:52:33+, Russell King - ARM Linux admin wrote: > > You still have not Cc'd me on your patches. Please can you either: > > > > 1) use get_maintainer.pl to find out whom you should be sending >

Re: [PATCH 11/15] usb: serial: ipaq: use usb_control_msg_send()

2020-12-04 Thread Johan Hovold
On Wed, Nov 04, 2020 at 12:16:59PM +0530, Himadri Pandya wrote: > The new usb_control_msg_send() nicely wraps usb_control_msg() with proper > error check. Hence use the wrapper instead of calling usb_control_msg() > directly. > > Signed-off-by: Himadri Pandya > --- > drivers/usb/serial/ipaq.c |

linux-next: Tree for Dec 4

2020-12-04 Thread Stephen Rothwell
Hi all, Changes since 20201203: The tip tree gained a conflict against the jc_docs tree. The rcu tree gained a build failure for which I applied a patch. The kvm-arm tree gained a difficult conflict against the arm64 tree so I used the version from next-20201203. The akpm-current tree lost

Re: [PATCH 04/17] fs/afs: Convert to memzero_page()

2020-12-04 Thread David Howells
ira.we...@intel.com wrote: > Convert the kmap()/memcpy()/kunmap() pattern to memzero_page(). > > Cc: David Howells > Signed-off-by: Ira Weiny Acked-by: David Howells

Re: [PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350

2020-12-04 Thread Vinod Koul
Hi Taniya, On 04-12-20, 14:20, Taniya Das wrote: > On 12/4/2020 10:05 AM, Vinod Koul wrote: > > On 03-12-20, 18:06, Bjorn Andersson wrote: > > > On Thu 03 Dec 01:02 CST 2020, Vinod Koul wrote: > > > > diff --git a/drivers/clk/qcom/gcc-sm8350.c > > > > b/drivers/clk/qcom/gcc-sm8350.c > > > [..] >

Re: [PATCH net] xsk: Fix error return code in __xp_assign_dev()

2020-12-04 Thread Zhang Changzhong
> > Good catch! My intention here by not setting err is that it should > fall back to copy mode, which it does. The problem is that the > force_zc flag is disregarded when err is not set (see exit code below) > and your patch fixes that. If force_zc is set, we should exit out with > an error, not

<    4   5   6   7   8   9   10   11   >