[PATCH 1/3] gpio: zynq: use module_platform_driver to simplify the code

2021-04-09 Thread Srinivas Neeli
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Srinivas Neeli --- drivers/gpio/gpio-zynq.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index

[PATCH 3/3] gpio: zynq: Check return value of irq_get_irq_data

2021-04-09 Thread Srinivas Neeli
In two different instances the return value of "irq_get_irq_data" API was neither captured nor checked. Fixed it by capturing the return value and then checking for any error. Addresses-Coverity: "returned_null" Signed-off-by: Srinivas Neeli --- drivers/gpio/gpio-zynq.c | 10 ++ 1 file

[PATCH 0/3] gpio: zynq: Update on gpio zynq driver

2021-04-09 Thread Srinivas Neeli
This patch series does the following: -Simplified the code by using module_platform_driver(). -Fixing coverity warnings. Srinivas Neeli (3): gpio: zynq: use module_platform_driver to simplify the code gpio: zynq: Check return value of pm_runtime_get_sync gpio: zynq: Check return value of

Re: [PATCH] USB: serial: do not use tty class device for debugging

2021-04-09 Thread Greg KH
On Thu, Apr 08, 2021 at 05:08:59PM +0200, Johan Hovold wrote: > Use the port struct device rather than tty class device for debugging. > > Note that while USB serial doesn't support serdev yet (due to serdev not > handling hotplugging), serdev ttys do not have a corresponding class > device and

Re: [PATCH RESEND v8 6/7] usb: dwc3: qcom: Detect DWC3 DT-nodes using compatible string

2021-04-09 Thread Bjorn Andersson
On Fri 09 Apr 06:30 CDT 2021, Serge Semin wrote: > In accordance with the USB HCD/DRD schema all the USB controllers are > supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the > existing DT-nodes will be renamed in a subsequent patch let's fix the DWC3 > Qcom-specific code to

Re: New Defects reported by Coverity Scan for linux-next weekly scan

2021-04-09 Thread Muhammad Usama Anjum
On Thu, 2021-04-08 at 17:13 +, scan-ad...@coverity.com wrote: > ** CID 1503714:(DEADCODE) > /drivers/staging/rtl8723bs/os_dep/ioctl_linux.c: 367 in wpa_set_auth_algs() > /drivers/staging/rtl8723bs/os_dep/ioctl_linux.c: 357 in wpa_set_auth_algs() > > >

Re: [PATCH] clk: qcom: rpmh: add support for SDX55 rpmh IPA clock

2021-04-09 Thread Manivannan Sadhasivam
On Fri, Apr 09, 2021 at 08:44:07AM -0500, Alex Elder wrote: > The IPA core clock is required for SDX55. Define it. > > Signed-off-by: Alex Elder I tested this patch on couple of SDX55 based boards like Telit FN980 and Thundercomm T55. Hence, Tested-by: Manivannan Sadhasivam Also cross

Re: [RFC PATCH v2 3/4] arm64: Detect FTRACE cases that make the stack trace unreliable

2021-04-09 Thread Madhavan T. Venkataraman
On 4/9/21 6:31 AM, Mark Brown wrote: > On Thu, Apr 08, 2021 at 02:23:39PM -0500, Madhavan T. Venkataraman wrote: >> On 4/8/21 11:58 AM, Mark Brown wrote: > >>> This looks good to me however I'd really like someone who has a firmer >>> understanding of what ftrace is doing to double check as it

Re: [PATCH] pata_ipx4xx_cf: Fix unsigned comparison with less than zero

2021-04-09 Thread Jens Axboe
On 4/9/21 7:54 AM, angkery wrote: > From: Junlin Yang > > The return from the call to platform_get_irq() is int, it can be > a negative error code, however this is being assigned to an unsigned > int variable 'irq', so making 'irq' an int, and change the position to > keep the code format. > >

Re: [PATCH v2] ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present

2021-04-09 Thread Jens Axboe
On 4/8/21 2:55 PM, Sowjanya Komatineni wrote: > This patch adds check to call legacy power domain API > tegra_powergate_power_off() only when PM domain is not present. Applied, and added a Fixes line. -- Jens Axboe

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

2021-04-09 Thread satya priya
Convert pm8xxx bindings from .txt to .yaml format. Also, split this binding into two: parent binding(qcom-pm8xxx.yaml) and child node RTC binding(qcom-pm8xxx-rtc.yaml). Signed-off-by: satya priya --- Changes in V2: - As per Bjorn's comments, I've split this into two, one parent binding and

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

2021-04-09 Thread satya priya
Add the comaptible string for PMIC PMK8350. Signed-off-by: satya priya Reviewed-by: Bjorn Andersson --- Chnges in V2: - No change. 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

[PATCH V2 2/4] dt-bindings: mfd: Add compatible for pmk8350 rtc

2021-04-09 Thread satya priya
Add compatible string for pmk8350 rtc support. Signed-off-by: satya priya Reviewed-by: Bjorn Andersson --- Changes in V2: - Moved this patch before conversion patches. Documentation/devicetree/bindings/mfd/qcom-pm8xxx.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH V2 0/4] Add RTC support for PMIC PMK8350

2021-04-09 Thread satya priya
satya priya (4): rtc: pm8xxx: Add RTC support for PMIC PMK8350 dt-bindings: mfd: Add compatible for pmk8350 rtc dt-bindings: mfd: Convert pm8xxx bindings to yaml dt-bindings: rtc: qcom-pm8xxx-rtc: Add qcom pm8xxx rtc bindings .../devicetree/bindings/mfd/qcom-pm8xxx.txt| 99

[PATCH V2 4/4] dt-bindings: rtc: qcom-pm8xxx-rtc: Add qcom pm8xxx rtc bindings

2021-04-09 Thread satya priya
Add binding doc for qcom pm8xxx rtc device. Signed-off-by: satya priya --- Changes in V2: - Added this in V2 to have separate binding for rtc node. .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml | 62 ++ 1 file changed, 62 insertions(+) create mode 100644

Re: [PATCH v7] RISC-V: enable XIP

2021-04-09 Thread Mike Rapoport
On Fri, Apr 09, 2021 at 02:46:17PM +0200, David Hildenbrand wrote: > > > > Also, will that memory properly be exposed in the resource tree as > > > > System RAM (e.g., /proc/iomem) ? Otherwise some things (/proc/kcore) > > > > won't work as expected - the kernel won't be included in a dump. > > Do

Re: [PATCH 2/2] bus: mhi: fix typo in comments for struct mhi_channel_config

2021-04-09 Thread Manivannan Sadhasivam
On Thu, Apr 08, 2021 at 03:02:20AM -0700, Jarvis Jiang wrote: > The word 'rung' is a typo in below comment, fix it. > * @event_ring: The event rung index that services this channel > > Signed-off-by: Jarvis Jiang Applied to mhi-next! Thanks, Mani > --- > include/linux/mhi.h | 2 +- > 1 file

[tip:sched/core 2/5] kernel/sched/fair.c:6345:28: error: 'sched_smt_present' undeclared

2021-04-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core head: 816969e4af7a56bfd284d2e0fa11511900ab93e3 commit: 6bcd3e21ba278098920d26d4888f5e6f4087c61d [2/5] sched/fair: Bring back select_idle_smt(), but differently config: ia64-randconfig-r034-20210409 (attached

[tip:sched/core 2/5] kernel/sched/fair.c:6345:28: error: use of undeclared identifier 'sched_smt_present'

2021-04-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core head: 816969e4af7a56bfd284d2e0fa11511900ab93e3 commit: 6bcd3e21ba278098920d26d4888f5e6f4087c61d [2/5] sched/fair: Bring back select_idle_smt(), but differently config: powerpc64-randconfig-r033-20210409 (attached

Re: [RFC PATCH 06/10] genirq: Don't mask IRQ within flow handler if IRQ is flow-masked

2021-04-09 Thread Thomas Gleixner
On Thu, Apr 08 2021 at 16:43, Valentin Schneider wrote: > + /* > + * Masking is required if IRQ is ONESHOT and we can't rely on the > + * flow-masking persisting down to irq_finalize_oneshot() > + * (in the IRQ thread). > + */ > + if ((desc->istate & IRQS_ONESHOT) && >

RE: [PATCH net-next v3 1/2] mfd: Add Renesas Synchronization Management Unit (SMU) support

2021-04-09 Thread Min Li
> > Then you need to mention that in the change log. > > What changed from v1 => v2? > Please look it up by the latest patch I sent over yesterday. It is under the Signed-off-by --- -rebase change to linux-next tree -add log to inform driver loading success

Re: [PATCH v4 2/6] drm/sprd: add Unisoc's drm kms master

2021-04-09 Thread Thomas Zimmermann
Hi Am 09.04.21 um 15:50 schrieb Kevin Tang: > +static int __init sprd_drm_init(void) > +{ > +     int ret; I think ret should just go away. Like this? "return platform_register_drivers(sprd_drm_drivers, ARRAY_SIZE(sprd_drm_drivers));" Sure. Best regards Thomas if so,

[PATCH] pata_ipx4xx_cf: Fix unsigned comparison with less than zero

2021-04-09 Thread angkery
From: Junlin Yang The return from the call to platform_get_irq() is int, it can be a negative error code, however this is being assigned to an unsigned int variable 'irq', so making 'irq' an int, and change the position to keep the code format. ./drivers/ata/pata_ixp4xx_cf.c:168:5-8: WARNING:

[Outreachy kernel][PATCH] staging: media: hantro: Rewrite macro function in lower case

2021-04-09 Thread Aline Santana Cordeiro
Rewrite macros resembling functions #define HANTRO_PP_REG_WRITE and #define HANTRO_PP_RED_WRITE_S in lower case, according with code style. Signed-off-by: Aline Santana Cordeiro --- drivers/staging/media/hantro/hantro_postproc.c | 34 +- 1 file changed, 17 insertions(+),

Re: [RFC PATCH 05/10] genirq: Let purely flow-masked ONESHOT irqs through unmask_threaded_irq()

2021-04-09 Thread Thomas Gleixner
On Thu, Apr 08 2021 at 16:43, Valentin Schneider wrote: > A subsequent patch will let IRQs end up in irq_finalize_oneshot() without > IRQD_IRQ_MASKED, but with IRQD_IRQ_FLOW_MASKED set instead. Let such IRQs > receive their final ->irq_eoi(). > > Signed-off-by: Valentin Schneider > --- >

Re: [PATCH] net/Bluetooth - delete unneeded variable initialization

2021-04-09 Thread Marcel Holtmann
Hi Kai, > Delete unneeded variable initialization. > > Signed-off-by: Kai Ye > --- > net/bluetooth/6lowpan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel

Re: [RFCv1 7/7] KVM: unmap guest memory using poisoned pages

2021-04-09 Thread David Hildenbrand
It looks quite hacky (well, what did I expect from an RFC :) ) you can no longer distinguish actually poisoned pages from "temporarily poisoned" pages. FOLL_ALLOW_POISONED sounds especially nasty and dangerous - "I want to read/write a poisoned page, trust me, I know what I am doing". Storing

Re: [PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-04-09 Thread Amir Goldstein
On Fri, Apr 9, 2021 at 4:39 PM Luis Henriques wrote: > > Nicolas Boichat writes: > > > On Wed, Feb 24, 2021 at 6:44 PM Nicolas Boichat > > wrote: > >> > >> On Wed, Feb 24, 2021 at 6:22 PM Luis Henriques wrote: > >> > > >> > On Tue, Feb 23, 2021 at 08:00:54PM -0500, Olga Kornievskaia wrote: >

Re: [PATCH V5 16/25] perf/x86: Register hybrid PMUs

2021-04-09 Thread Liang, Kan
On 4/9/2021 2:58 AM, Peter Zijlstra wrote: On Mon, Apr 05, 2021 at 08:10:58AM -0700, kan.li...@linux.intel.com wrote: @@ -2089,9 +2119,46 @@ static int __init init_hw_perf_events(void) if (err) goto out1; - err = perf_pmu_register(, "cpu", PERF_TYPE_RAW); -

Re: [PATCH net-next 1/3] dt-bindings: net: add new properties for of_get_mac_address from nvmem

2021-04-09 Thread Rob Herring
On Fri, Apr 9, 2021 at 4:07 AM Joakim Zhang wrote: > > From: Fugang Duan > > Currently, of_get_mac_address supports NVMEM, some platforms What's of_get_mac_address? This is a binding patch. Don't mix Linux things in it. > MAC address that read from NVMEM efuse requires to swap bytes > order,

Re: [PATCH v3 10/27] perf parse-events: Create two hybrid raw events

2021-04-09 Thread Jiri Olsa
On Mon, Mar 29, 2021 at 03:00:29PM +0800, Jin Yao wrote: SNIP > + name, config_terms, pmu); > + if (ret) > + return ret; > + } > + > + return 0; > +} > + > int parse_events__add_numeric_hybrid(struct

Re: [PATCH v7 2/5] i2c: core: add api to provide frequency mode strings

2021-04-09 Thread Yicong Yang
On 2021/4/9 19:40, Andy Shevchenko wrote: > On Fri, Apr 9, 2021 at 2:37 PM Wolfram Sang wrote: >> >> >>> Can we add this later if needed? >>> Because in such case additionally printing bus_freq_hz will be fine, no? >> >> Yes, we can do that. >> >>> But putting max to each frequency

Re: static_branch/jump_label vs branch merging

2021-04-09 Thread David Malcolm
On Fri, 2021-04-09 at 15:13 +0200, Peter Zijlstra wrote: > On Fri, Apr 09, 2021 at 03:01:50PM +0200, Peter Zijlstra wrote: > > On Fri, Apr 09, 2021 at 02:03:46PM +0200, Peter Zijlstra wrote: > > > On Fri, Apr 09, 2021 at 07:55:42AM -0400, David Malcolm wrote: > > > > > > Sorry if this is a dumb

Re: [PATCH v3 11/27] perf pmu: Support 'cycles' and 'branches' inside hybrid PMU

2021-04-09 Thread Jiri Olsa
On Mon, Mar 29, 2021 at 03:00:30PM +0800, Jin Yao wrote: > On hybrid platform, user may want to enable the hardware event > only on one PMU. So following syntax is supported: > > cpu_core// > cpu_atom// > > # perf stat -e cpu_core/cpu-cycles/ -a -- sleep 1 > >Performance counter stats for

Re: [PATCH v3 09/27] perf parse-events: Create two hybrid cache events

2021-04-09 Thread Jiri Olsa
On Mon, Mar 29, 2021 at 03:00:28PM +0800, Jin Yao wrote: SNIP > index 1bbd0ba92ba7..3692fa3c964a 100644 > --- a/tools/perf/util/parse-events.c > +++ b/tools/perf/util/parse-events.c > @@ -458,6 +458,7 @@ int parse_events_add_cache(struct list_head *list, int > *idx, > int cache_type = -1,

Re: [PATCH v3 12/27] perf parse-events: Support no alias assigned event inside hybrid PMU

2021-04-09 Thread Jiri Olsa
On Mon, Mar 29, 2021 at 03:00:31PM +0800, Jin Yao wrote: SNIP > +struct parse_events_state *parse_state) > { > struct perf_event_attr attr; > LIST_HEAD(config_terms); > @@ -521,7 +526,7 @@ int parse_events_add_cache(struct list_head *list, int > *idx, > >

[PATCH] clk: qcom: rpmh: add support for SDX55 rpmh IPA clock

2021-04-09 Thread Alex Elder
The IPA core clock is required for SDX55. Define it. Signed-off-by: Alex Elder --- drivers/clk/qcom/clk-rpmh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index c623ce9004063..552d1cbfea4c0 100644 ---

Re: [PATCHv2 35/38] dt-bindings: power: supply: ab8500: Convert to DT schema format

2021-04-09 Thread Sebastian Reichel
Hi Linus, On Fri, Apr 09, 2021 at 01:28:05AM +0200, Linus Walleij wrote: > On Wed, Mar 17, 2021 at 2:51 PM Sebastian Reichel > wrote: > > > Convert the binding to DT schema format. > > > > Note: The battery node does not have a compatible value and needs > > to be described from the binding

Re: [RFC PATCH] Add split_lock

2021-04-09 Thread Thomas Gleixner
On Thu, Apr 08 2021 at 12:18, Peter Zijlstra wrote: > On Thu, Apr 08, 2021 at 06:23:38AM +0100, Matthew Wilcox (Oracle) wrote: >> bit_spinlocks are horrible on RT because there's absolutely nowhere >> to put the mutex to sleep on. They also do not participate in lockdep >> because there's nowhere

Re: [PATCH] mm/memory_hotplug: Make unpopulated zones PCP structures unreachable during hot remove

2021-04-09 Thread Mel Gorman
On Fri, Apr 09, 2021 at 02:48:12PM +0200, Michal Hocko wrote: > On Fri 09-04-21 14:42:58, Michal Hocko wrote: > > On Fri 09-04-21 13:09:57, Mel Gorman wrote: > > > zone_pcp_reset allegedly protects against a race with drain_pages > > > using local_irq_save but this is bogus. local_irq_save only

[PATCH 4/4] can: m_can_platform: Add support for transceiver as phy

2021-04-09 Thread Aswath Govindraju
From: Faiz Abbas Add support for implementing transceiver node as phy. The max_bitrate is obtained by getting a phy attribute. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/net/can/m_can/m_can_platform.c | 25 + 1 file changed, 25

[PATCH 3/4] dt-bindings: net: can: Document transceiver implementation as phy

2021-04-09 Thread Aswath Govindraju
From: Faiz Abbas Some transceivers need a configuration step (for example, pulling the standby or enable lines) for them to start sending messages. The transceiver can be implemented as a phy with the configuration done in the phy driver. The bit rate limitation can the be obtained by the driver

[PATCH 1/4] dt-bindings: phy: Add binding for TI TCAN104x CAN transceivers

2021-04-09 Thread Aswath Govindraju
Add binding documentation for TI TCAN104x CAN transceivers. Signed-off-by: Aswath Govindraju --- .../bindings/phy/ti,tcan104x-can.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml diff --git

[PATCH 2/4] phy: phy-can-transceiver: Add support for generic CAN transceiver driver

2021-04-09 Thread Aswath Govindraju
The driver adds support for generic CAN transceivers. Currently the modes supported by this driver are standby and normal modes for TI TCAN1042 and TCAN1043 CAN transceivers. The transceiver is modelled as a phy with pins controlled by gpios, to put the transceiver in various device functional

[PATCH 0/4] CAN TRANSCEIVER: Add support for CAN transceivers

2021-04-09 Thread Aswath Govindraju
The following series of patches add support for CAN transceivers. TCAN1042 has a standby signal that needs to be pulled high for sending/receiving messages[1]. TCAN1043 has a enable signal along with standby signal that needs to be pulled up for sending/receiving messages[2], and other

Re: [PATCH] media: em28xx: Fix race condition between open and init function

2021-04-09 Thread Igor Torrente
On 4/8/21 2:37 PM, Shuah Khan wrote: On 4/8/21 6:10 AM, Igor Matheus Andrade Torrente wrote: Fixes a race condition - for lack of a more precise term - between em28xx_v4l2_open and em28xx_v4l2_init, by detaching the v4l2_dev, media_pad and vdev structs from the em28xx_v4l2, and managing the

Re: [PATCH v3] drivers: introduce and use WANT_DMA_CMA for soft dependencies on DMA_CMA

2021-04-09 Thread David Hildenbrand
On 09.04.21 15:35, Arnd Bergmann wrote: On Fri, Apr 9, 2021 at 1:21 PM David Hildenbrand wrote: Random drivers should not override a user configuration of core knobs (e.g., CONFIG_DMA_CMA=n). Applicable drivers would like to use DMA_CMA, which depends on CMA, if possible; however, these

Re: [PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-04-09 Thread Luis Henriques
Nicolas Boichat writes: > On Wed, Feb 24, 2021 at 6:44 PM Nicolas Boichat wrote: >> >> On Wed, Feb 24, 2021 at 6:22 PM Luis Henriques wrote: >> > >> > On Tue, Feb 23, 2021 at 08:00:54PM -0500, Olga Kornievskaia wrote: >> > > On Mon, Feb 22, 2021 at 5:25 AM Luis Henriques >> > > wrote: >> > >

Re: [PATCH V2 3/4] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

2021-04-09 Thread skakit
On 2021-04-09 17:27, Sebastian Reichel wrote: Hi, On Fri, Apr 09, 2021 at 01:48:58PM +0530, ska...@codeaurora.org wrote: Please do not drop the example :) As per my understanding on Rob's comments [1] I have added one complete example in qcom,pm8941-pwrkey.yaml (see patch 4/4) and dropped

Re: [PATCH v1 0/7] imx-gpcv2 improvements

2021-04-09 Thread Adam Ford
On Wed, Apr 7, 2021 at 8:27 PM Peng Fan (OSS) wrote: > > Hi Lucas, > > On 2021/4/8 6:13, Lucas Stach wrote: > > Hi Adrien, > > > > I feel like I already mentioned to you some time ago that there is > > already a much more complete patch series to add this functionality on > > the list [1]. > > >

Re: [RFCv1 2/7] x86/kvm: Introduce KVM memory protection feature

2021-04-09 Thread Kirill A. Shutemov
On Thu, Apr 08, 2021 at 11:52:35AM +0200, Borislav Petkov wrote: > On Fri, Apr 02, 2021 at 06:26:40PM +0300, Kirill A. Shutemov wrote: > > Provide basic helpers, KVM_FEATURE, CPUID flag and a hypercall. > > > > Host side doesn't provide the feature yet, so it is a dead code for now. > > > >

Re: [PATCH v3 net-next] net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)

2021-04-09 Thread Andrew Lunn
For the structs containing variables with the same sizes, or already size aligned > variables, we knew the __packed has no effect. And for these structs, it > doesn't > cause performance impact either, correct? > > But in the future, if different sized variables are added, the __packed may

Re: [PATCH v3] drivers: introduce and use WANT_DMA_CMA for soft dependencies on DMA_CMA

2021-04-09 Thread Arnd Bergmann
On Fri, Apr 9, 2021 at 1:21 PM David Hildenbrand wrote: > > Random drivers should not override a user configuration of core knobs > (e.g., CONFIG_DMA_CMA=n). Applicable drivers would like to use DMA_CMA, > which depends on CMA, if possible; however, these drivers also have to > tolerate if

Re: [RFCv1 7/7] KVM: unmap guest memory using poisoned pages

2021-04-09 Thread Kirill A. Shutemov
On Wed, Apr 07, 2021 at 04:55:54PM +0200, David Hildenbrand wrote: > On 02.04.21 17:26, Kirill A. Shutemov wrote: > > TDX architecture aims to provide resiliency against confidentiality and > > integrity attacks. Towards this goal, the TDX architecture helps enforce > > the enabling of memory

Re: [PATCH 02/11] mm/page_alloc: Convert per-cpu list protection to local_lock

2021-04-09 Thread Mel Gorman
On Fri, Apr 09, 2021 at 10:24:24AM +0200, Peter Zijlstra wrote: > On Fri, Apr 09, 2021 at 08:59:39AM +0100, Mel Gorman wrote: > > In the end I just gave up and kept it simple as there is no benefit to > > !PREEMPT_RT which just disables IRQs. Maybe it'll be worth considering when > > PREEMPT_RT is

[PATCH 2/2] kbuild: allow setting zstd compression level for kernel

2021-04-09 Thread torvic9
In a similar way to the first patch in this series, add another Kconfig option that allows setting the zstd compression level for the kernel as well. This enables users to choose either a compression level between 1 and 19, or instead use the highest possible level (ultra-22). Also add '-T0'

[PATCH 1/2] kbuild: allow setting zstd compression level for modules

2021-04-09 Thread torvic9
Zstd offers a very fine-grained control of compression ratios. Add a Kconfig option that allows setting the desired compression level for module compression. Based on Masahiro's linux-kbuild. Signed-off-by: Tor Vic Tested-by: Piotr Gorski --- init/Kconfig | 8

Re: [PATCH v15 00/13] s390/vfio-ap: dynamic configuration support

2021-04-09 Thread Tony Krowiak
On 4/8/21 4:38 PM, Halil Pasic wrote: On Tue, 6 Apr 2021 11:31:09 -0400 Tony Krowiak wrote: Tony Krowiak (13): s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks The subsequent patches, re introduce this circular locking dependency problem. See my kernel messages

[PATCH v3] arm64: mte: Move MTE TCF0 check in entry-common

2021-04-09 Thread Vincenzo Frascino
The check_mte_async_tcf macro sets the TIF flag non-atomically. This can race with another CPU doing a set_tsk_thread_flag() and all the other flags can be lost in the process. Move the tcf0 check to enter_from_user_mode() and clear tcf0 in exit_to_user_mode() to address the problem. Note:

Re: [PATCH 11/17] s390: Add airq_iv_lock

2021-04-09 Thread Matthew Wilcox
On Fri, Apr 09, 2021 at 02:18:16PM +0800, kernel test robot wrote: > Hi "Matthew, > > Thank you for the patch! Yet something to improve: Thanks. I'll fold in this patch to fix it. diff --git a/arch/s390/include/asm/airq.h b/arch/s390/include/asm/airq.h index d281340de14a..26030b7c1b88 100644

Re: [PATCH v3 2/2] pwm: visconti: Add Toshiba Visconti SoC PWM support

2021-04-09 Thread Thierry Reding
On Fri, Apr 09, 2021 at 06:07:09PM +0900, Nobuhiro Iwamatsu wrote: > Add driver for the PWM controller on Toshiba Visconti ARM SoC. > > Signed-off-by: Nobuhiro Iwamatsu > --- > drivers/pwm/Kconfig| 9 ++ > drivers/pwm/Makefile | 1 + > drivers/pwm/pwm-visconti.c | 193

Re: [PATCH 2/2] bus: mhi: fix typo in comments for struct mhi_channel_config

2021-04-09 Thread Manivannan Sadhasivam
On Thu, Apr 08, 2021 at 03:02:20AM -0700, Jarvis Jiang wrote: > The word 'rung' is a typo in below comment, fix it. > * @event_ring: The event rung index that services this channel > > Signed-off-by: Jarvis Jiang Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > include/linux/mhi.h |

Re: static_branch/jump_label vs branch merging

2021-04-09 Thread Peter Zijlstra
On Fri, Apr 09, 2021 at 03:01:50PM +0200, Peter Zijlstra wrote: > On Fri, Apr 09, 2021 at 02:03:46PM +0200, Peter Zijlstra wrote: > > On Fri, Apr 09, 2021 at 07:55:42AM -0400, David Malcolm wrote: > > > > Sorry if this is a dumb question, but does the function attribute: > > > __attribute__

Re: [PATCH] Staging: rtl8192u: ieee80211: fixed a trailing statements coding style issue.

2021-04-09 Thread Dan Carpenter
On Sun, Apr 04, 2021 at 08:15:00AM +0300, dev.dra...@bk.ru wrote: > From: Dmitrii Wolf > > Signed-off-by: Dmitrii Wolf > --- > drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git

Re: [PATCH v2] arm64: mte: Move MTE TCF0 check in entry-common

2021-04-09 Thread kernel test robot
drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Vincenzo-Frascino/arm64-mte-Move-MTE-TCF0-check-in-entry-common/20210409-182215 base: git://git.armlinux.org.uk/~rmk

Re: [PATCH v2 2/2] docs: reporting-issues: make people CC the regressions list

2021-04-09 Thread Greg KH
On Fri, Apr 09, 2021 at 01:47:24PM +0200, Thorsten Leemhuis wrote: > Make people CC the recently created mailing list dedicated to Linux > kernel regressions when reporting one. Some paragraphs had to be > reshuffled and slightly rewritten during the process, as the text > otherwise would have

RE: [PATCH 1/2] x86/traps: call cond_local_irq_disable before returning from exc_general_protection and math_error

2021-04-09 Thread Thomas Tai
> -Original Message- > From: Alexandre CHARTRE > Sent: April 9, 2021 5:06 AM > To: Thomas Tai ; t...@linutronix.de; > mi...@redhat.com; b...@alien8.de; x...@kernel.org > Cc: sean.j.christopher...@intel.com; l...@amacapital.net; > jar...@kernel.org; b...@suse.de; jet...@fortanix.com;

Re: [PATCH v2 1/2] MAINTAINERS: add regressions mailing list

2021-04-09 Thread Greg KH
On Fri, Apr 09, 2021 at 01:47:23PM +0200, Thorsten Leemhuis wrote: > Add the newly created regression mailing list finally created after it > already had been agreed on during the maintainers summit 2017 (see > https://lwn.net/Articles/738216/ ). The topic was recently discussed > again, where an

[PATCH] net: thunderx: Fix unintentional sign extension issue

2021-04-09 Thread Colin King
From: Colin Ian King The shifting of the u8 integers rq->caching by 26 bits to the left will be promoted to a 32 bit signed int and then sign-extended to a u64. In the event that rq->caching is greater than 0x1f then all then all the upper 32 bits of the u64 end up as also being set because of

Re: static_branch/jump_label vs branch merging

2021-04-09 Thread Segher Boessenkool
On Thu, Apr 08, 2021 at 06:52:18PM +0200, Peter Zijlstra wrote: > Is there *any* way in which we can have the compiler recognise that the > asm_goto only depends on its arguments and have it merge the branches > itself? > > I do realize that asm-goto being volatile this is a fairly huge ask, but

Re: [PATCH v5 0/4] KVM: cpuid: fix KVM_GET_EMULATED_CPUID implementation

2021-04-09 Thread Borislav Petkov
On Fri, Apr 09, 2021 at 02:54:19PM +0200, Emanuele Giuseppe Esposito wrote: > This series aims to clarify the behavior of the KVM_GET_EMULATED_CPUID > ioctl, and fix a corner case where -E2BIG is returned when > the nent field of struct kvm_cpuid2 is matching the amount of > emulated entries that

Re: static_branch/jump_label vs branch merging

2021-04-09 Thread Peter Zijlstra
On Fri, Apr 09, 2021 at 02:03:46PM +0200, Peter Zijlstra wrote: > On Fri, Apr 09, 2021 at 07:55:42AM -0400, David Malcolm wrote: > > Sorry if this is a dumb question, but does the function attribute: > > __attribute__ ((pure)) > > help here? It's meant to allow multiple calls to a predicate

Re: [PATCH v7 3/8] pwm: pca9685: Improve runtime PM behavior

2021-04-09 Thread Thierry Reding
On Tue, Apr 06, 2021 at 06:41:35PM +0200, Clemens Gruber wrote: > The chip does not come out of POR in active state but in sleep state. > To be sure (in case the bootloader woke it up) we force it to sleep in > probe. > > On kernels without CONFIG_PM, we wake the chip in .probe and put it to >

Re: [PATCH v7] RISC-V: enable XIP

2021-04-09 Thread Alex Ghiti
Le 4/9/21 à 8:07 AM, David Hildenbrand a écrit : On 09.04.21 13:39, Alex Ghiti wrote: Hi David, Le 4/9/21 à 4:23 AM, David Hildenbrand a écrit : On 09.04.21 09:14, Alex Ghiti wrote: Le 4/9/21 à 2:51 AM, Alexandre Ghiti a écrit : From: Vitaly Wool Introduce XIP (eXecute In Place) support

[PATCH] clk: vc5: fix output disabling when enabling a FOD

2021-04-09 Thread Luca Ceresoli
On 5P49V6965, when an output is enabled we enable the corresponding FOD. When this happens for the first time, and specifically when writing register VC5_OUT_DIV_CONTROL in vc5_clk_out_prepare(), all other outputs are stopped for a short time and then restarted. According to Renesas support this

Re: [PATCH] watchdog: mtk: support pre-timeout when the bark irq is available

2021-04-09 Thread Guenter Roeck
On 4/9/21 2:55 AM, Wang Qing wrote: > Use the bark interrupt as the pretimeout notifier if available. > > By default, the pretimeout notification shall occur one second earlier > than the timeout. > > Signed-off-by: Wang Qing > --- > drivers/watchdog/mtk_wdt.c | 47 >

Re: [PATCH v1 1/2] iommu/tegra-smmu: Defer attachment of display clients

2021-04-09 Thread Dmitry Osipenko
08.04.2021 17:07, Dmitry Osipenko пишет: >> Whatever happened to the idea of creating identity mappings based on the >> obscure tegra_fb_mem (or whatever it was called) command-line option? Is >> that command-line not universally passed to the kernel from bootloaders >> that initialize display? >

[PATCH v5 4/4] selftests: KVM: extend get_cpuid_test to include KVM_GET_EMULATED_CPUID

2021-04-09 Thread Emanuele Giuseppe Esposito
Extend the get_cpuid_test.c selftest to include the KVM_GET_EMULATED_CPUID ioctl. Since the behavior and functionality is similar to KVM_GET_SUPPORTED_CPUID, we only check additionally: 1) checks for corner case in the nent field of the struct kvm_cpuid2. 2) sets and gets it as cpuid from the

[PATCH v5 1/4] KVM: x86: Fix a spurious -E2BIG in KVM_GET_EMULATED_CPUID

2021-04-09 Thread Emanuele Giuseppe Esposito
When retrieving emulated CPUID entries, check for an insufficient array size if and only if KVM is actually inserting an entry. If userspace has a priori knowledge of the exact array size, KVM_GET_EMULATED_CPUID will incorrectly fail due to effectively requiring an extra, unused entry.

[PATCH v5 3/4] selftests: add kvm_get_emulated_cpuid to processor.h

2021-04-09 Thread Emanuele Giuseppe Esposito
As the similar kvm_get_supported_cpuid(), kvm_get_emulated_cpuid allocates and gets a struct kvm_cpuid2 filled with emulated features. Signed-off-by: Emanuele Giuseppe Esposito --- .../selftests/kvm/include/x86_64/processor.h | 1 + .../selftests/kvm/lib/x86_64/processor.c | 33

[PATCH v5 2/4] Documentation: KVM: update KVM_GET_EMULATED_CPUID ioctl description

2021-04-09 Thread Emanuele Giuseppe Esposito
KVM_GET_EMULATED_CPUID returns -E2BIG if the nent field of struct kvm_cpuid2 is smaller than the actual entries, while it adjusts nent if the provided amount is bigger than the actual amount. Update documentation accordingly. ENOMEM is just returned if the allocation fails, like all other calls.

[PATCH v5 0/4] KVM: cpuid: fix KVM_GET_EMULATED_CPUID implementation

2021-04-09 Thread Emanuele Giuseppe Esposito
This series aims to clarify the behavior of the KVM_GET_EMULATED_CPUID ioctl, and fix a corner case where -E2BIG is returned when the nent field of struct kvm_cpuid2 is matching the amount of emulated entries that kvm returns. Patch 1 proposes the nent field fix to cpuid.c, patch 2 updates the

[PATCH -next] drm/i915/display: remove redundant NULL check

2021-04-09 Thread Qiheng Lin
Fix the following coccicheck warning: drivers/gpu/drm/i915/display/intel_psr.c:1530:29-31: WARNING !A || A && B is equivalent to !A || B Signed-off-by: Qiheng Lin --- drivers/gpu/drm/i915/display/intel_psr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [v2] ceph: support getting ceph.dir.rsnaps vxattr

2021-04-09 Thread Jeff Layton
On Fri, 2020-08-28 at 09:28 +0800, Yanhu Cao wrote: > It's easy to know how many snapshots have been created. > > Link: https://tracker.ceph.com/issues/47168 > Signed-off-by: Yanhu Cao > --- > fs/ceph/inode.c | 1 + > fs/ceph/mds_client.c | 9 - > fs/ceph/mds_client.h | 1 + >

Re: [PATCH] mm/memory_hotplug: Make unpopulated zones PCP structures unreachable during hot remove

2021-04-09 Thread Michal Hocko
On Fri 09-04-21 14:42:58, Michal Hocko wrote: > On Fri 09-04-21 13:09:57, Mel Gorman wrote: > > zone_pcp_reset allegedly protects against a race with drain_pages > > using local_irq_save but this is bogus. local_irq_save only operates > > on the local CPU. If memory hotplug is running on CPU A and

[PATCH v3 3/8] dt-bindings:iio:adc: update motorola,cpcap-adc.yaml reference

2021-04-09 Thread Mauro Carvalho Chehab
Changeset 1ca9d1b1342d ("dt-bindings:iio:adc:motorola,cpcap-adc yaml conversion") renamed: Documentation/devicetree/bindings/iio/adc/cpcap-adc.txt to: Documentation/devicetree/bindings/iio/adc/motorola,cpcap-adc.yaml. Update its cross-reference accordingly. Fixes: 1ca9d1b1342d

[PATCH v3 5/8] docs: vcpu-requests.rst: fix reference for atomic ops

2021-04-09 Thread Mauro Carvalho Chehab
Changeset f0400a77ebdc ("atomic: Delete obsolete documentation") got rid of atomic_ops.rst, pointing that this was superseded by Documentation/atomic_*.txt. Update its reference accordingly. Fixes: f0400a77ebdc ("atomic: Delete obsolete documentation") Signed-off-by: Mauro Carvalho Chehab ---

[PATCH v3 2/8] dt-bindings: fix references for iio-bindings.txt

2021-04-09 Thread Mauro Carvalho Chehab
The iio-bindings.txt was converted into two files and merged at the dt-schema git tree at: https://github.com/devicetree-org/dt-schema Yet, some documents still refer to the old file. Fix their references, in order to point to the right URL. Fixes: dba91f82d580

[PATCH v3 4/8] docs: update sysfs-platform_profile.rst reference

2021-04-09 Thread Mauro Carvalho Chehab
The file name: Documentation/ABI/testing/sysfs-platform_profile.rst should be, instead: Documentation/userspace-api/sysfs-platform_profile.rst. Update its cross-reference accordingly. Fixes: a2ff95e018f1 ("ACPI: platform: Add platform profile support") Fixes: 8e0cbf356377 ("Documentation: Add

[PATCH v3 0/8] Fix broken documentation file references

2021-04-09 Thread Mauro Carvalho Chehab
: - Dropped patches already applied at next-20210409 and changes that would cause conflicts there; - Added received acks. v2: - Dropped patches that were already applied, Most of those will be following via Jonathan Cameron's iio tree; - Dropped patches that don't apply on the top

[PATCH v3 7/8] docs: translations/zh_CN: fix a typo at 8.Conclusion.rst

2021-04-09 Thread Mauro Carvalho Chehab
transaltions -> translations Acked-by: Wu XiangCheng Signed-off-by: Mauro Carvalho Chehab --- Documentation/translations/zh_CN/process/8.Conclusion.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/translations/zh_CN/process/8.Conclusion.rst

[PATCH v3 6/8] docs: replace transation references for reporting-bugs.rst

2021-04-09 Thread Mauro Carvalho Chehab
Changeset d2ce285378b0 ("docs: make reporting-issues.rst official and delete reporting-bugs.rst") dropped reporting-bugs.rst, in favor of reporting-issues.rst, but translations still need to be updated, in order to point to the new file. Fixes: d2ce285378b0 ("docs: make reporting-issues.rst

[PATCH v3 1/8] dt-bindings: don't use ../dir for doc references

2021-04-09 Thread Mauro Carvalho Chehab
As documents have been renamed and moved around, their references will break, but this will be unnoticed, as the script which checks for it won't handle "../" references. So, replace them by the full patch. Signed-off-by: Mauro Carvalho Chehab --- .../input/touchscreen/resistive-adc-touch.txt

[PATCH v3 8/8] docs: sched-bwc.rst: fix a typo on a doc name

2021-04-09 Thread Mauro Carvalho Chehab
cgroupv2.rst -> cgroup-v2.rst Signed-off-by: Mauro Carvalho Chehab --- Documentation/scheduler/sched-bwc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/scheduler/sched-bwc.rst b/Documentation/scheduler/sched-bwc.rst index 845eee659199..1fc73555f5c4 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:109:37: warning: unused variable 'amdgpu_rap_debugfs_ops'

2021-04-09 Thread kernel test robot
://people.freedesktop.org/~agd5f/linux into drm-next date: 7 months ago config: arm64-randconfig-r035-20210409 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6) reproduce (this is a W=1 build): wget https

Re: [PATCH v7] RISC-V: enable XIP

2021-04-09 Thread David Hildenbrand
Also, will that memory properly be exposed in the resource tree as System RAM (e.g., /proc/iomem) ? Otherwise some things (/proc/kcore) won't work as expected - the kernel won't be included in a dump. Do we really need a XIP kernel to included in kdump? And does not it sound weird to expose

[PATCH v2] staging: rtl8712: fix wrong function output

2021-04-09 Thread Sergei Krainov
Return NULL from r8712_find_network() if no matched wlan_network was found. Code with a bug: while (plist != phead) { pnetwork = container_of(plist, struct wlan_network, list); plist = plist->next; if (!memcmp(addr, pnetwork->network.MacAddress, ETH_ALEN))

Re: [PATCH 2/2] iommu/sva: Remove mm parameter from SVA bind API

2021-04-09 Thread Lu Baolu
Hi, On 2021/4/9 1:08, Jacob Pan wrote: /** * iommu_sva_alloc_pasid - Allocate a PASID for the mm - * @mm: the mm * @min: minimum PASID value (inclusive) * @max: maximum PASID value (inclusive) * - * Try to allocate a PASID for this mm, or take a reference to the existing one - *

Re: [PATCH] x86/efi: Do not release sub-1MB memory regions when the crashkernel option is specified

2021-04-09 Thread Baoquan He
On 04/07/21 at 10:03pm, Lianbo Jiang wrote: > Some sub-1MB memory regions may be reserved by EFI boot services, and the > memory regions will be released later in the efi_free_boot_services(). > > Currently, always reserve all sub-1MB memory regions when the crashkernel > option is specified, but

Re: [RFC net-next 1/1] seg6: add counters support for SRv6 Behaviors

2021-04-09 Thread Andrea Mayer
On Wed, 7 Apr 2021 13:24:04 -0700 Jakub Kicinski wrote: > On Wed, 7 Apr 2021 20:03:32 +0200 Andrea Mayer wrote: > > This patch provides counters for SRv6 Behaviors as defined in [1], section > > 6. For each SRv6 Behavior instance, the counters defined in [1] are: > > > > - the total number of

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