Re: [PATCH 06/19] perf ftrace: add support for trace option sleep-time

2020-05-30 Thread Namhyung Kim
On Thu, May 21, 2020 at 6:01 AM Arnaldo Carvalho de Melo wrote: > > Em Sun, May 10, 2020 at 11:06:15PM +0800, Changbin Du escreveu: > > This adds an option '--nosleep-time' which allow us only to measure > > on-CPU time. This option is function_graph tracer only. > > This seems, for now, very

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-05-30 Thread Gabriel Krisman Bertazi
Kees Cook writes: > On Sat, May 30, 2020 at 01:59:53AM -0400, Gabriel Krisman Bertazi wrote: >> Modern Windows applications are executing system call instructions >> directly from the application's code without going through the WinAPI. >> This breaks Wine emulation, because it doesn't have a

Re: [PATCH v6 4/6] clocksource/drivers/timer-riscv: Use per-CPU timer interrupt

2020-05-30 Thread Anup Patel
On Sat, May 30, 2020 at 5:11 PM Marc Zyngier wrote: > > On 2020-05-30 11:07, Anup Patel wrote: > > Instead of directly calling RISC-V timer interrupt handler from > > RISC-V local interrupt conntroller driver, this patch implements > > RISC-V timer interrupt as a per-CPU interrupt using per-CPU

Re: [PATCH 03/19] perf ftrace: select function/function_graph tracer automatically

2020-05-30 Thread Namhyung Kim
Hello, On Mon, May 11, 2020 at 12:07 AM Changbin Du wrote: > > The '-g/-G' options have already implied function_graph tracer should be > used instead of function tracer. So the extra option '--tracer' can be > killed. > > This patch changes the behavior as below: > - By default, function

Re: [PATCH v6 3/6] irqchip: RISC-V per-HART local interrupt controller driver

2020-05-30 Thread Anup Patel
On Sat, May 30, 2020 at 5:31 PM Marc Zyngier wrote: > > On 2020-05-30 11:07, Anup Patel wrote: > > The RISC-V per-HART local interrupt controller manages software > > interrupts, timer interrupts, external interrupts (which are routed > > via the platform level interrupt controller) and other

fs/exfat/nls.c:531:22: warning: Variable 'p_uniname->name_len' is reassigned a value before the old one has been used. [redundantAssignment]

2020-05-30 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ffeb595d84811dde16a28b33d8a7cf26d51d51b3 commit: b9d1e2e6265f5dc25e9f5dbfbde3e53d8a4958ac exfat: add Kconfig and Makefile date: 3 months ago compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 If you fix the issue,

[GIT] Networking

2020-05-30 Thread David Miller
Another week, another set of bug fixes: 1) Fix pskb_pull length in __xfrm_transport_prep(), from Xin Long. 2) Fix double xfrm_state put in esp{4,6}_gro_receive(), also from Xin Long. 3) Re-arm discovery timer properly in mac80211 mesh code, from Linus Lüssing. 4) Prevent buffer

Re: [PATCH RFT] ravb: Mask PHY mode to avoid inserting delays twice

2020-05-30 Thread David Miller
From: Geert Uytterhoeven Date: Fri, 29 May 2020 14:25:40 +0200 > Until recently, the Micrel KSZ9031 PHY driver ignored any PHY mode > ("RGMII-*ID") settings, but used the hardware defaults, augmented by > explicit configuration of individual skew values using the "*-skew-ps" > DT properties.

Re: [PATCH] net: qrtr: Allocate workqueue before kernel_bind

2020-05-30 Thread David Miller
From: Chris Lew Date: Thu, 28 May 2020 16:05:26 -0700 > A null pointer dereference in qrtr_ns_data_ready() is seen if a client > opens a qrtr socket before qrtr_ns_init() can bind to the control port. > When the control port is bound, the ENETRESET error will be broadcasted > and clients will

Stable backport request for linux-4.4.y

2020-05-30 Thread chenxb_99091
From: Xuebing Chen In linux-4.4.y,the provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1 << drm_plane_index(plane). There is an error setting of plane_mask in pan_display_atomic() function. Please backport the following patch to the 4.4.y

Re: [GIT PULL] sh: remove sh5 support

2020-05-30 Thread Rob Landley
On 5/30/20 3:08 AM, John Paul Adrian Glaubitz wrote: > On 5/29/20 7:53 PM, Rich Felker wrote: >> Frustratingly, I _still_ don't have an official tree on kernel.org for >> the purpose of being the canonical place for linux-next to pull from, >> due to policies around pgp keys and nobody following

[PATCH] [v2] i2c: imx-lpi2c: Fix runtime PM imbalance on error

2020-05-30 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- Changelog: v2: - Use pm_runtime_put_noidle() instead of

sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'

2020-05-30 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ffeb595d84811dde16a28b33d8a7cf26d51d51b3 commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver date: 3 months ago config: x86_64-randconfig-r033-20200531 (attached as

Re: [PATCH] irqchip/gic-v3-its: Don't try to move a disabled irq

2020-05-30 Thread kbuild test robot
Hi Ali, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on linux/master v5.7-rc7] [cannot apply to tip/irq/core arm-jcooper/irqchip/for-next next-20200529] [if your patch is applied to the wrong git tree, please drop us a

Re: 答复: [PATCH][v5] KVM: X86: support APERF/MPERF registers

2020-05-30 Thread Xiaoyao Li
On 5/31/2020 10:08 AM, Li,Rongqing wrote: -邮件原件- 发件人: Xiaoyao Li [mailto:xiaoyao...@intel.com] 发送时间: 2020年5月30日 18:40 收件人: Li,Rongqing ; linux-kernel@vger.kernel.org; k...@vger.kernel.org; x...@kernel.org; h...@zytor.com; b...@alien8.de; mi...@redhat.com; t...@linutronix.de;

drivers/soundwire/intel_init.c:192:7: warning: no previous prototype for function 'sdw_intel_init'

2020-05-30 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ffeb595d84811dde16a28b33d8a7cf26d51d51b3 commit: f98f690fb03c2a8d21dfa31aa1042480cf6f7f9b soundwire: intel: update interfaces between ASoC and SoundWire date: 6 months ago config:

答复: [PATCH][v5] KVM: X86: support APERF/MPERF registers

2020-05-30 Thread Li,Rongqing
> -邮件原件- > 发件人: Xiaoyao Li [mailto:xiaoyao...@intel.com] > 发送时间: 2020年5月30日 18:40 > 收件人: Li,Rongqing ; linux-kernel@vger.kernel.org; > k...@vger.kernel.org; x...@kernel.org; h...@zytor.com; b...@alien8.de; > mi...@redhat.com; t...@linutronix.de; jmatt...@google.com; >

Re: [PATCHSET v5 0/12] Add support for async buffered reads

2020-05-30 Thread Jens Axboe
On 5/30/20 12:57 PM, Sedat Dilek wrote: > Here are the numbers with your patchset: > > # cat systemd-analyze-time_5.7.0-rc7-4-amd64-clang_2nd-try.txt > Startup finished in 7.229s (kernel) + 1min 18.304s (userspace) = 1min 25.534s > graphical.target reached after 1min 18.286s in userspace Can you

Re: [RFC PATCH v4 05/13] riscv: Add new csr defines related to vector extension

2020-05-30 Thread Guo Ren
Hi Greentime, Why remove vxrm and xstat ? > Appendix B: Calling Convention > In the RISC-V psABI, the vector registers v0-v31 are all caller-saved. The > vstart, vl, and vtype CSRs are also caller-saved. > The vxrm and vxsat fields have thread storage duration. As spec 0.9 mentioned above,

Re: [PATCH] perf: Make perf able to build with latest libbfd

2020-05-30 Thread Marek Vasut
Hi, since commit 0ada120c883d ("perf: Make perf able to build with latest libbfd") is in master, can it be backported to stable as well? I keep hitting this with too new binutils on Linux 5.4.y and I have to keep cherry-picking this commit to fix it. Thanks

[PATCH] drivers: usb: core: driver: fixed 80 line character length issue

2020-05-30 Thread Lokesh Chebrolu
From: lokeshch007 Fixed a coding style issue Signed-off-by: Lokesh Chebrolu --- drivers/usb/core/driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index f81606c..83c3287 100644 --- a/drivers/usb/core/driver.c

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-30 Thread Syed Nayyar Waris
On Sat, May 30, 2020 at 2:50 PM Andy Shevchenko wrote: > > On Sat, May 30, 2020 at 11:45 AM Syed Nayyar Waris > wrote: > > On Sat, May 30, 2020 at 3:49 AM Andy Shevchenko > > wrote: > > ... > > > I am still investigating more on this. Let me know if you have any > > suggestions. > > As far as

[git pull] a couple of sparc ptrace fixes

2020-05-30 Thread Al Viro
The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-davem for you to fetch changes up to

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-05-30 Thread Andy Lutomirski
> On May 30, 2020, at 5:26 PM, Gabriel Krisman Bertazi > wrote: > > Andy Lutomirski writes: > On May 29, 2020, at 11:00 PM, Gabriel Krisman Bertazi wrote: >>> >>> Modern Windows applications are executing system call instructions >>> directly from the application's code

Re: [RFC PATCH v4 07/13] riscv: Add has_vector/riscv_vsize to save vector features.

2020-05-30 Thread Guo Ren
Reviewed-by: Guo Ren On Tue, May 26, 2020 at 3:03 PM Greentime Hu wrote: > > From: Guo Ren > > This patch is used to detect vector support status of CPU and use > riscv_vsize to save the size of all the vector registers. It assumes > all harts has the same capabilities in SMP system. > >

Re: [PATCH net-next v3] hinic: add set_channels ethtool_ops support

2020-05-30 Thread David Miller
From: Luo bin Date: Fri, 29 May 2020 18:11:50 + > add support to change TX/RX queue number with ethtool -L ethx combined > > Signed-off-by: Luo bin Luo, I am not applying any of your patches until you fix the time on your computer. This causes a lot of issues and slows down my workflow

Re: [PATCH v3] virtio_vsock: Fix race condition in virtio_transport_recv_pkt

2020-05-30 Thread David Miller
From: Jia He Date: Sat, 30 May 2020 09:38:28 +0800 > When client on the host tries to connect(SOCK_STREAM, O_NONBLOCK) to the > server on the guest, there will be a panic on a ThunderX2 (armv8a server): ... > The race condition is as follows: > Task1Task2 > =

Re: [PATCH net-next 0/6] net: hns3: adds some cleanups for -next

2020-05-30 Thread David Miller
From: Huazhong Tan Date: Sat, 30 May 2020 09:08:26 +0800 > There are some cleanups for the HNS3 ethernet driver, fix an > incorrect print format, an incorrect comment and some coding > style issues, also remove some unused codes and macros. Series applied, thanks.

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-05-30 Thread Gabriel Krisman Bertazi
Andy Lutomirski writes: >> On May 29, 2020, at 11:00 PM, Gabriel Krisman Bertazi >> wrote: >> >> Modern Windows applications are executing system call instructions >> directly from the application's code without going through the WinAPI. >> This breaks Wine emulation, because it doesn't have

Re: [PATCH stable-4.19.y] net: phy: reschedule state machine if AN has not completed in PHY_AN state

2020-05-30 Thread Russell King - ARM Linux admin
On Sun, May 31, 2020 at 12:43:15AM +0300, Vladimir Oltean wrote: > From: Vladimir Oltean > > In kernel 4.19 (and probably earlier too) there are issues surrounding > the PHY_AN state. > > For example, if a PHY is in PHY_AN state and AN has not finished, then > what is supposed to happen is that

Re: [RFC PATCH v5 2/6] interconnect: Add generic interconnect driver for Exynos SoCs

2020-05-30 Thread Chanwoo Choi
Hi Sylwester, On Sat, May 30, 2020 at 1:34 AM Sylwester Nawrocki wrote: > > This patch adds a generic interconnect driver for Exynos SoCs in order > to provide interconnect functionality for each "samsung,exynos-bus" > compatible device. > > The SoC topology is a graph (or more specifically, a

[PATCH v3 3/4] pinctrl: bcm2835: Match BCM7211 compatible string

2020-05-30 Thread Florian Fainelli
The BCM7211 SoC uses the same pinconf_ops as the ones defined for the BCM2711 SoC, match the compatible string and use the correct set of options. Signed-off-by: Florian Fainelli --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v3 0/4] pinctrl: bcm2835: Add support for wake-up interrupts

2020-05-30 Thread Florian Fainelli
Hi Linus, This patch series updates the bcm2835 pinctrl driver to support the BCM7211 SoC which is quite similar to 2711 (Raspberry Pi 4) except that it also supports wake-up interrupts. Thanks! Changes in v3: - added Rob's Acked-by for the binding patches (#1 and #2) - correct check on the

[PATCH v3 4/4] pinctrl: bcm2835: Add support for wake-up interrupts

2020-05-30 Thread Florian Fainelli
Leverage the IRQCHIP_MASK_ON_SUSPEND flag in order to avoid having to specifically treat the GPIO interrupts during suspend and resume, and simply implement an irq_set_wake() callback that is responsible for enabling the parent wake-up interrupt as a wake-up interrupt. To avoid allocating

[PATCH v3 1/4] dt-bindings: pinctrl: Document 7211 compatible for brcm,bcm2835-gpio.txt

2020-05-30 Thread Florian Fainelli
Document the brcm,bcm7211-gpio compatible string in the brcm,bcm2835-gpio.txt document. Acked-by: Rob Herring Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 2/4] dt-bindings: pinctrl: Document optional BCM7211 wake-up interrupts

2020-05-30 Thread Florian Fainelli
BCM7211 supports wake-up interrupts in the form of optional interrupt lines, one per bank, plus the "all banks" interrupt line. Acked-by: Rob Herring Signed-off-by: Florian Fainelli --- .../devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt | 4 +++- 1 file changed, 3 insertions(+), 1

Re: [RFC PATCH v5 5/6] ARM: dts: exynos: Add interconnects to Exynos4412 mixer

2020-05-30 Thread Chanwoo Choi
Hi Sylwester, On Sat, May 30, 2020 at 1:33 AM Sylwester Nawrocki wrote: > > From: Artur Świgoń > > This patch adds an 'interconnects' property to Exynos4412 DTS in order to > declare the interconnect path used by the mixer. Please note that the > 'interconnect-names' property is not needed when

Re: [RFC PATCH v5 4/6] ARM: dts: exynos: Add interconnect properties to Exynos4412 bus nodes

2020-05-30 Thread Chanwoo Choi
Hi Sylwester, On Sat, May 30, 2020 at 1:33 AM Sylwester Nawrocki wrote: > > This patch adds the following properties for Exynos4412 interconnect > bus nodes: > - samsung,interconnect-parent: to declare connections between >nodes in order to guarantee PM QoS requirements between nodes; > -

Re: [RFC PATCH v5 1/6] dt-bindings: exynos-bus: Add documentation for interconnect properties

2020-05-30 Thread Chanwoo Choi
Hi Sylwester, On Sat, May 30, 2020 at 1:32 AM Sylwester Nawrocki wrote: > > Add documentation for new optional properties in the exynos bus nodes: > samsung,interconnect-parent, #interconnect-cells. > These properties allow to specify the SoC interconnect structure which > then allows the

Re: [RFC PATCH v5 3/6] PM / devfreq: exynos-bus: Add registration of interconnect child device

2020-05-30 Thread Chanwoo Choi
Hi Sylwester, On Sat, May 30, 2020 at 1:33 AM Sylwester Nawrocki wrote: > > This patch adds registration of a child platform device for the exynos > interconnect driver. It is assumed that the interconnect provider will > only be needed when #interconnect-cells property is present in the bus >

Re: [PATCH 09/12] x86/xen: save and restore steal clock

2020-05-30 Thread Boris Ostrovsky
On 5/19/20 7:28 PM, Anchal Agarwal wrote: > From: Munehisa Kamata > > Save steal clock values of all present CPUs in the system core ops > suspend callbacks. Also, restore a boot CPU's steal clock in the system > core resume callback. For non-boot CPUs, restore after they're brought > up, because

Re: [PATCH 08/12] xen/time: introduce xen_{save,restore}_steal_clock

2020-05-30 Thread Boris Ostrovsky
On 5/19/20 7:28 PM, Anchal Agarwal wrote: > From: Munehisa Kamata > > Currently, steal time accounting code in scheduler expects steal clock > callback to provide monotonically increasing value. If the accounting > code receives a smaller value than previous one, it uses a negative > value to

Re: [PATCH v2 4/4] pinctrl: bcm2835: Add support for wake-up interrupts

2020-05-30 Thread Stefan Wahren
Hi Florian, Am 30.05.20 um 23:19 schrieb Florian Fainelli: > > On 5/30/2020 12:49 AM, Stefan Wahren wrote: >> Hi Florian, >> >> Am 29.05.20 um 21:15 schrieb Florian Fainelli: >>> } >>> >>> +static int bcm2835_gpio_irq_set_wake(struct irq_data *data, unsigned int >>> on) >>> +{ >>> + struct

Re: [PATCH 05/12] genirq: Shutdown irq chips in suspend/resume during hibernation

2020-05-30 Thread Boris Ostrovsky
On 5/19/20 7:26 PM, Anchal Agarwal wrote: > Many legacy device drivers do not implement power management (PM) > functions which means that interrupts requested by these drivers stay > in active state when the kernel is hibernated. > > This does not matter on bare metal and on most hypervisors

[PATCH 4/8] macintosh/adb-iop: Access current_req and adb_iop_state when inside lock

2020-05-30 Thread Finn Thain
Drop the redundant local_irq_save/restore() from adb_iop_start() because the caller has to do it anyway. This is the pattern used in via-macii. Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 13 + 1 file changed, 5

[PATCH 5/8] macintosh/adb-iop: Resolve static checker warnings

2020-05-30 Thread Finn Thain
drivers/macintosh/adb-iop.c:215:28: warning: Using plain integer as NULL pointer drivers/macintosh/adb-iop.c:170:5: warning: symbol 'adb_iop_probe' was not declared. Should it be static? drivers/macintosh/adb-iop.c:177:5: warning: symbol 'adb_iop_init' was not declared. Should it be static?

[PATCH 8/8] macintosh/adb-iop: Implement SRQ autopolling

2020-05-30 Thread Finn Thain
The adb_driver.autopoll method is needed during ADB bus scan and device address assignment. Implement this method so that the IOP's list of device addresses can be updated. When the list is empty, disable SRQ autopolling. Cc: Joshua Thompson Cc: Geert Uytterhoeven Tested-by: Stan Johnson

[PATCH 0/8] Mac ADB IOP driver fixes

2020-05-30 Thread Finn Thain
The adb-iop driver was never finished. Some deficiencies have become apparent over the years. For example, - Mouse and/or keyboard may stop working if used together - SRQ autopoll list cannot be changed - Some bugs were found by inspection This patch series contains fixes for the known bugs

[PATCH 3/8] macintosh/adb-iop: Adopt bus reset algorithm from via-macii driver

2020-05-30 Thread Finn Thain
This algorithm is slightly shorter and avoids the surprising adb_iop_start() call in adb_iop_poll(). Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git

[PATCH 1/8] macintosh/adb-iop: Remove dead and redundant code

2020-05-30 Thread Finn Thain
Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 29 - 1 file changed, 29 deletions(-) diff --git a/drivers/macintosh/adb-iop.c b/drivers/macintosh/adb-iop.c index fca31640e3ef..ce28ff40fb9c 100644 ---

[PATCH 6/8] macintosh/adb-iop: Implement idle -> sending state transition

2020-05-30 Thread Finn Thain
In the present algorithm, the 'idle' state transition does not take place until there's a bus timeout. Once idle, the driver does not automatically proceed with the next request. Change the algorithm so that queued ADB requests will be sent as soon as the driver becomes idle. This is to take

[PATCH 2/8] macintosh/adb-iop: Correct comment text

2020-05-30 Thread Finn Thain
This patch improves comment style and corrects some misunderstandings in the text. Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git

[PATCH 7/8] macintosh/adb-iop: Implement sending -> idle state transition

2020-05-30 Thread Finn Thain
On leaving the 'sending' state, proceed to the 'idle' state if no reply is expected. Drop redundant test for adb_iop_state == sending && current_req. Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c | 7 +++ 1 file changed, 3

[PATCH 2/4] m68k/mac: Fix IOP status/control register writes

2020-05-30 Thread Finn Thain
When writing values to the IOP status/control register make sure those values do not have any extraneous bits that will clear interrupt flags. To place the SCC IOP into bypass mode would be desirable but this is not achieved by writing IOP_DMAINACTIVE | IOP_RUN | IOP_AUTOINC | IOP_BYPASS to the

[PATCH 1/4] m68k/mac: Don't send IOP message until channel is idle

2020-05-30 Thread Finn Thain
In the following sequence of calls, iop_do_send() gets called when the "send" channel is not in the IOP_MSG_IDLE state: iop_ism_irq() iop_handle_send() (msg->handler)() iop_send_message() iop_do_send() Avoid this by testing the

[PATCH 4/4] m68k/mac: Improve IOP debug messages

2020-05-30 Thread Finn Thain
Always dump the full message and reply. Avoid printing partial lines as this output gets mixed up with the output from called functions. Don't output the state of idle channels. Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- arch/m68k/mac/iop.c | 38

[PATCH 3/4] m68k/mac: Don't send uninitialized data in IOP message reply

2020-05-30 Thread Finn Thain
Clear the message reply before calling iop_complete(). This code path is not normally executed but should that happen let's arrange for consistent behaviour from the IOP. Cc: Joshua Thompson Tested-by: Stan Johnson Signed-off-by: Finn Thain --- arch/m68k/mac/iop.c | 1 + 1 file changed, 1

[PATCH 0/4] Mac IOP driver fixes

2020-05-30 Thread Finn Thain
This patch series has several bug fixes for the IOP driver and some improvements to the debug level log messages. Geert, please consider pushing these fixes for v5.8, if not the whole series. Finn Thain (4): m68k/mac: Don't send IOP message until channel is idle m68k/mac: Fix IOP

Re: [PATCH] checkpatch/coding-style: Allow 100 column lines

2020-05-30 Thread Joe Perches
On Sat, 2020-05-30 at 16:14 -0600, Andreas Dilger wrote: > On May 29, 2020, at 5:12 PM, Joe Perches wrote: > > Change the maximum allowed line length to 100 from 80. > > What is the benefit/motivation for changing this? The vast majority > of files are wrapped at 80 columns, and if some files

Re: [PATCH 04/12] x86/xen: add system core suspend and resume callbacks

2020-05-30 Thread Boris Ostrovsky
On 5/19/20 7:26 PM, Anchal Agarwal wrote: > From: Munehisa Kamata > > Add Xen PVHVM specific system core callbacks for PM suspend and > hibernation support. The callbacks suspend and resume Xen > primitives,like shared_info, pvclock and grant table. Note that > Xen suspend can handle them in a

Re: [RFC PATCH] checkpatch: check for trivial sizeofs

2020-05-30 Thread Joe Perches
On Sun, 2020-05-31 at 00:21 +0300, Denis Efremov wrote: > sizeof(char) and its variations in most cases doesn't make code more clear. > It only makes code wordy. There are about 1000 of these uses in the kernel. Not sure I like this though as many/most of the uses seem _less_ readable with a 1

Re: [PATCH 03/12] x86/xen: Introduce new function to map HYPERVISOR_shared_info on Resume

2020-05-30 Thread Boris Ostrovsky
On 5/19/20 7:25 PM, Anchal Agarwal wrote: > Introduce a small function which re-uses shared page's PA allocated > during guest initialization time in reserve_shared_info() and not > allocate new page during resume flow. > It also does the mapping of shared_info_page by calling >

Re: [PATCH 02/12] xenbus: add freeze/thaw/restore callbacks support

2020-05-30 Thread Boris Ostrovsky
On 5/19/20 7:25 PM, Anchal Agarwal wrote: > > int xenbus_dev_resume(struct device *dev) > { > - int err; > + int err = 0; That's not necessary. > struct xenbus_driver *drv; > struct xenbus_device *xdev > = container_of(dev, struct xenbus_device, dev); > -

Re: [PATCH stable-4.19.y] net: phy: reschedule state machine if AN has not completed in PHY_AN state

2020-05-30 Thread Vladimir Oltean
Hi Heiner, On Sun, 31 May 2020 at 01:36, Heiner Kallweit wrote: > > On 30.05.2020 23:43, Vladimir Oltean wrote: > > From: Vladimir Oltean > > > > In kernel 4.19 (and probably earlier too) there are issues surrounding > > the PHY_AN state. > > > > For example, if a PHY is in PHY_AN state and AN

RE: [PATCH] x86/apic/flat64: Add back the early_param("apic", parse_apic)

2020-05-30 Thread Dexuan Cui
> From: Randy Dunlap > Sent: Friday, May 29, 2020 6:33 AM > Hi, > Looks like you will also need to update > Documentation/admin-guide/kernel-parameters.txt, where it says: > > For X86-32, this can also be used to specify an APIC > driver name. > -- >

[PATCH v2] x86/apic/flat64: Add back the early_param("apic", parse_apic)

2020-05-30 Thread Dexuan Cui
parse_apic() allows the user to try a different APIC driver than the default one that's automatically chosen. It works for X86-32, but doesn't work for X86-64 because it was removed in 2009 for X86-64 by commit 7b38725318f4 ("x86: remove subarchitecture support code"), whose changelog doesn't

Re: [PATCH stable-4.19.y] net: phy: reschedule state machine if AN has not completed in PHY_AN state

2020-05-30 Thread Heiner Kallweit
On 30.05.2020 23:43, Vladimir Oltean wrote: > From: Vladimir Oltean > > In kernel 4.19 (and probably earlier too) there are issues surrounding > the PHY_AN state. > > For example, if a PHY is in PHY_AN state and AN has not finished, then > what is supposed to happen is that the state machine

Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs"

2020-05-30 Thread Tri Vo
On Sat, May 30, 2020 at 11:52 AM Florian Fainelli wrote: > > > > On 5/29/2020 4:14 PM, Tri Vo wrote: > > On Fri, May 29, 2020 at 3:37 PM Florian Fainelli > > wrote: > >> > >> On 5/29/20 3:28 PM, Tri Vo wrote: > >>> On Fri, May 29, 2020 at 9:51 AM Rafael J. Wysocki > >>> wrote: > > On

Re: [PATCH 01/12] xen/manage: keep track of the on-going suspend mode

2020-05-30 Thread Boris Ostrovsky
On 5/19/20 7:24 PM, Anchal Agarwal wrote: > > +enum suspend_modes { > + NO_SUSPEND = 0, > + XEN_SUSPEND, > + PM_SUSPEND, > + PM_HIBERNATION, > +}; > + > +/* Protected by pm_mutex */ > +static enum suspend_modes suspend_mode = NO_SUSPEND; > + > +bool

Re: [PATCH] checkpatch/coding-style: Allow 100 column lines

2020-05-30 Thread Andreas Dilger
On May 29, 2020, at 5:12 PM, Joe Perches wrote: > > Change the maximum allowed line length to 100 from 80. What is the benefit/motivation for changing this? The vast majority of files are wrapped at 80 columns, and if some files start being wrapped at 100 columns they will either display

[PATCH v2 02/10] x86/percpu: Clean up percpu_to_op()

2020-05-30 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst Reviewed-by: Nick

[PATCH v2 08/10] x86/percpu: Clean up percpu_cmpxchg_op()

2020-05-30 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst Reviewed-by: Nick

[PATCH v2 10/10] x86/percpu: Remove unused PER_CPU() macro

2020-05-30 Thread Brian Gerst
Also remove now unused __percpu_mov_op. Signed-off-by: Brian Gerst --- arch/x86/include/asm/percpu.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index cf2b9c2a241e..a3c33b79fb86 100644 ---

[PATCH v2 07/10] x86/percpu: Clean up percpu_xchg_op()

2020-05-30 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst Reviewed-by: Nick

[PATCH v2 09/10] x86/percpu: Clean up percpu_stable_op()

2020-05-30 Thread Brian Gerst
Use __pcpu_size_call_return() to simplify this_cpu_read_stable(). Also remove __bad_percpu_size() which is now unused. Signed-off-by: Brian Gerst --- arch/x86/include/asm/percpu.h | 41 ++- 1 file changed, 12 insertions(+), 29 deletions(-) diff --git

[PATCH v2 05/10] x86/percpu: Remove "e" constraint from XADD

2020-05-30 Thread Brian Gerst
The "e" constraint represents a constant, but the XADD instruction doesn't accept immediate operands. Signed-off-by: Brian Gerst --- arch/x86/include/asm/percpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h

[PATCH v2 03/10] x86/percpu: Clean up percpu_from_op()

2020-05-30 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst Reviewed-by: Nick

[PATCH v2 00/10] x86: Clean up percpu operations

2020-05-30 Thread Brian Gerst
The core percpu operations already have a switch on the width of the data type, which resulted in an extra amount of dead code being generated with the x86 operations having another switch. This patch set rewrites the x86 ops to remove the switch. Additional cleanups are to use named assembly

[PATCH v2 04/10] x86/percpu: Clean up percpu_add_op()

2020-05-30 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst ---

[PATCH v2 06/10] x86/percpu: Clean up percpu_add_return_op()

2020-05-30 Thread Brian Gerst
The core percpu macros already have a switch on the data size, so the switch in the x86 code is redundant and produces more dead code. Also use appropriate types for the width of the instructions. This avoids errors when compiling with Clang. Signed-off-by: Brian Gerst ---

[PATCH v2 01/10] x86/percpu: Introduce size abstraction macros

2020-05-30 Thread Brian Gerst
In preparation for cleaning up the percpu operations, define macros for abstraction based on the width of the operation. Signed-off-by: Brian Gerst --- arch/x86/include/asm/percpu.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/x86/include/asm/percpu.h

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-05-30 Thread Andy Lutomirski
> On May 29, 2020, at 11:00 PM, Gabriel Krisman Bertazi > wrote: > > Modern Windows applications are executing system call instructions > directly from the application's code without going through the WinAPI. > This breaks Wine emulation, because it doesn't have a chance to > intercept and

Re: [PATCH] lib: make a test module with get_count_order/long

2020-05-30 Thread Andy Shevchenko
On Sun, May 31, 2020 at 12:23 AM Wei Yang wrote: > On Sat, May 30, 2020 at 01:25:31PM +0300, Andy Shevchenko wrote: > >On Sat, May 30, 2020 at 12:43:28AM +, Wei Yang wrote: > >> A test module to make sure get_count_order/long returns the correct result. > > > >> lib/Kconfig.debug

arch/mips/sgi-ip27/ip27-hubio.c:30:15: warning: no previous prototype for 'hub_pio_map'

2020-05-30 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 86852175b016f0c6873dcbc24b93d12b7b246612 commit: b78e9d63a3b6307b6b786e6ba189d3978b60ceb5 MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff date: 5 months ago config: mips-ip27_defconfig

Re: [PATCH] cifs: Standardize logging output

2020-05-30 Thread Steve French
tentatively merged into cifs-2.6.git for-next but had to clean it up to avoid merge conflicts. Minor followon patch (attached) to add the two remaining ones that Joe pointed out that. On Wed, Apr 15, 2020 at 12:46 AM Joe Perches via samba-technical wrote: > > Use pr_fmt to standardize all

[PATCH stable-4.19.y] net: phy: reschedule state machine if AN has not completed in PHY_AN state

2020-05-30 Thread Vladimir Oltean
From: Vladimir Oltean In kernel 4.19 (and probably earlier too) there are issues surrounding the PHY_AN state. For example, if a PHY is in PHY_AN state and AN has not finished, then what is supposed to happen is that the state machine gets rescheduled until it is, or until the link_timeout

[PATCH v2 3/4] iio: chemical: scd30: add serial interface driver

2020-05-30 Thread Tomasz Duszynski
Add serial interface driver for the SCD30 sensor. Signed-off-by: Tomasz Duszynski --- MAINTAINERS | 1 + drivers/iio/chemical/Kconfig| 11 ++ drivers/iio/chemical/Makefile | 1 + drivers/iio/chemical/scd30_serial.c | 266 4

[PATCH v2 1/4] iio: chemical: scd30: add core driver

2020-05-30 Thread Tomasz Duszynski
Add Sensirion SCD30 carbon dioxide core driver. Signed-off-by: Tomasz Duszynski --- Documentation/ABI/testing/sysfs-bus-iio-scd30 | 20 + MAINTAINERS | 6 + drivers/iio/chemical/Kconfig | 11 + drivers/iio/chemical/Makefile

[PATCH v2 2/4] iio: chemical: scd30: add I2C interface driver

2020-05-30 Thread Tomasz Duszynski
Add I2C interface driver for the SCD30 sensor. Signed-off-by: Tomasz Duszynski --- MAINTAINERS | 1 + drivers/iio/chemical/Kconfig | 11 +++ drivers/iio/chemical/Makefile| 1 + drivers/iio/chemical/scd30_i2c.c | 134 +++ 4 files

[PATCH v2 4/4] dt-bindings: iio: scd30: add device binding file

2020-05-30 Thread Tomasz Duszynski
Add SCD30 sensor binding file. Signed-off-by: Tomasz Duszynski --- .../iio/chemical/sensirion,scd30.yaml | 68 +++ MAINTAINERS | 1 + 2 files changed, 69 insertions(+) create mode 100644

[PATCH v2 0/4] Add support for SCD30 sensor

2020-05-30 Thread Tomasz Duszynski
Following series adds support for Sensirion SCD30 sensor module capable of measuring carbon dioxide, temperature and relative humidity. CO2 measurements base on NDIR principle while temperature and relative humidity are measured by the on board SHT31. As for sensor communication, both I2C and

Re: [PATCH] bitops: use the same mechanism for get_count_order[_long]

2020-05-30 Thread Wei Yang
Andrew, Would you mind picking up this one? The test module doesn't show any warning after this on applied. On Mon, May 25, 2020 at 09:59:58PM +, Wei Yang wrote: >These two functions share the same logic. > >Signed-off-by: Wei Yang >--- > include/linux/bitops.h | 8 +++- > 1 file

[RFC PATCH] checkpatch: check for trivial sizeofs

2020-05-30 Thread Denis Efremov
sizeof(char) and its variations in most cases doesn't make code more clear. It only makes code wordy. Signed-off-by: Denis Efremov --- scripts/checkpatch.pl | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index eac40f0abd56..9dd338b125d2

Re: [PATCH v2 4/4] pinctrl: bcm2835: Add support for wake-up interrupts

2020-05-30 Thread Florian Fainelli
On 5/30/2020 12:49 AM, Stefan Wahren wrote: > Hi Florian, > > Am 29.05.20 um 21:15 schrieb Florian Fainelli: >> Leverage the IRQCHIP_MASK_ON_SUSPEND flag in order to avoid having to >> specifically treat the GPIO interrupts during suspend and resume, and >> simply implement an irq_set_wake()

Re: [PATCH] lib: make a test module with get_count_order/long

2020-05-30 Thread Wei Yang
On Sat, May 30, 2020 at 01:25:31PM +0300, Andy Shevchenko wrote: >On Sat, May 30, 2020 at 12:43:28AM +, Wei Yang wrote: >> A test module to make sure get_count_order/long returns the correct result. > >> lib/Kconfig.debug | 13 ++ >> lib/Makefile |

[PATCH v2 net-next 3/3] selftests/bpf: Add test for SO_BINDTODEVICE opt of bpf_setsockopt

2020-05-30 Thread Ferenc Fejes
This test intended to verify if SO_BINDTODEVICE option works in bpf_setsockopt. Because we already in the SOL_SOCKET level in this connect bpf prog its safe to verify the sanity in the beginning of the connect_v4_prog by calling the bind_to_device test helper. The testing environment already

[PATCH v2 net-next 1/3] net: Make locking in sock_bindtoindex optional

2020-05-30 Thread Ferenc Fejes
The sock_bindtoindex intended for kernel wide usage however it will lock the socket regardless of the context. This modification relax this behavior optionally: locking the socket will be optional by calling the sock_bindtoindex with lock_sk = true. The modification applied to all users of the

[PATCH v2 net-next 0/3] Extending bpf_setsockopt with SO_BINDTODEVICE sockopt

2020-05-30 Thread Ferenc Fejes
This option makes it possible to programatically bind sockets to netdevices. With the help of this option sockets of VRF unaware applications could be distributed between multiple VRFs with an eBPF program. This lets the applications benefit from multiple possible routes. v2: - splitting up the

[PATCH v2 net-next 2/3] bpf: Allow SO_BINDTODEVICE opt in bpf_setsockopt

2020-05-30 Thread Ferenc Fejes
Extending the supported sockopts in bpf_setsockopt with SO_BINDTODEVICE. We call sock_bindtoindex with parameter lock_sk = false in this context because we already owning the socket. Signed-off-by: Ferenc Fejes --- net/core/filter.c | 27 ++- 1 file changed, 26

Re: [PATCH] cifs: remove redundant initialization of variable rc

2020-05-30 Thread Steve French
merged into cifs-2.6.git for-next On Wed, May 27, 2020 at 7:52 AM Colin King wrote: > > From: Colin Ian King > > The variable rc is being initialized with a value that is never read > and it is being updated later with a new value. The initialization is > redundant and can be removed. > >

  1   2   3   4   5   >