Re: [PATCH] sched/fair: don't assign runtime for throttled cfs_rq

2019-08-19 Thread Valentin Schneider
On 16/08/2019 18:19, Valentin Schneider wrote: [...] > Yeah it's probably pretty stupid. IIRC throttled cfs_rq means frozen > rq_clock, so any subsequent call to update_curr() on a throttled cfs_rq > should lead to an early bailout anyway due to delta_exec <= 0. > Did some more tracing, seems

Re: [PATCH 07/22] arm64: dts: qcom: pm8150: Add pon and rtc nodes

2019-08-19 Thread Vinod Koul
On 14-08-19, 10:03, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-14 05:49:57) > > PM8150 PMIC contains pon and rtc devices so add nodes for these. > > > > Signed-off-by: Vinod Koul > > --- > > Squash this with the other patch? OK > > > @@ -12,6 +13,25 @@ > >

Re: [PATCH 06/22] arm64: dts: qcom: pm8150: Add Base DTS file

2019-08-19 Thread Vinod Koul
On 14-08-19, 10:03, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-14 05:49:56) > > Add base DTS file for pm8150 along with GPIOs > > > > Signed-off-by: Vinod Koul > > --- > > arch/arm64/boot/dts/qcom/pm8150.dtsi | 41 > > 1 file changed, 41 insertions(+) > >

Clean up cut-here even harder (was Re: [PATCH 1/3] powerpc: don't use __WARN() for WARN_ON())

2019-08-19 Thread Kees Cook
On Mon, Aug 19, 2019 at 09:28:03AM -0700, Kees Cook wrote: > On Mon, Aug 19, 2019 at 01:06:28PM +, Christophe Leroy wrote: > > __WARN() used to just call __WARN_TAINT(TAINT_WARN) > > > > But a call to printk() has been added in the commit identified below > > to print a " cut here "

[PATCH net-next v2 1/4] net: mdio: add support for passing a PTP system timestamp to the mii_bus driver

2019-08-19 Thread Hubert Feurstein
From: Hubert Feurstein In order to improve the synchronisation precision of phc2sys (from the linuxptp project) for devices like switches which are attached to the MDIO bus, it is necessary the get the system timestamps as close as possible to the access which causes the PTP timestamp register

[PATCH net-next v2 2/4] net: mdio: add PTP offset compensation to mdiobus_write_sts

2019-08-19 Thread Hubert Feurstein
From: Hubert Feurstein The slow MDIO access introduces quite a big offset (~13us) to the PTP system time synchronisation. With this patch the driver has the possibility to set the correct offset which can then be compensated. Signed-off-by: Hubert Feurstein --- drivers/net/phy/mdio_bus.c | 12

[PATCH net-next v2 3/4] net: dsa: mv88e6xxx: extend PTP gettime function to read system clock

2019-08-19 Thread Hubert Feurstein
From: Hubert Feurstein This adds support for the PTP_SYS_OFFSET_EXTENDED ioctl. Signed-off-by: Hubert Feurstein --- drivers/net/dsa/mv88e6xxx/chip.h | 2 ++ drivers/net/dsa/mv88e6xxx/ptp.c | 11 +++ drivers/net/dsa/mv88e6xxx/smi.c | 3 ++- 3 files changed, 11 insertions(+), 5

[PATCH net-next v2 4/4] net: fec: add support for PTP system timestamping for MDIO devices

2019-08-19 Thread Hubert Feurstein
From: Hubert Feurstein In order to improve the synchronisation precision of phc2sys (from the linuxptp project) for devices like switches which are attached to the MDIO bus, it is necessary the get the system timestamps as close as possible to the access which causes the PTP timestamp register

[PATCH net-next v2 0/4] Improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-19 Thread Hubert Feurstein
With this patchset the phc2sys synchronisation precision improved to +/-555ns on an IMX6DL with an MV88E6220 switch attached. This patchset takes into account the comments from the following discussions: - https://lkml.org/lkml/2019/8/2/1364 - https://lkml.org/lkml/2019/8/5/169 Patch 01 adds the

Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Bernard Metzler
--- Bernard Metzler, PhD Tech. Leader High Performance I/O, Principal Research Staff IBM Zurich Research Laboratory Saeumerstrasse 4 CH-8803 Rueschlikon, Switzerland +41 44 724 8605 -"Geert Uytterhoeven" wrote: - >To: "Joe Perches" >From: "Geert Uytterhoeven" >Date: 08/19/2019

[PATCH v4 2/2] arm64: dts: imx: Add i.mx8mq nitrogen8m basic dts support

2019-08-19 Thread Dafna Hirschfeld
From: Gary Bisson Add basic dts support for i.MX8MQ NITROGEN8M. Signed-off-by: Gary Bisson Signed-off-by: Troy Kisky [Dafna: porting vendor's code to mainline] Signed-off-by: Dafna Hirschfeld --- arch/arm64/boot/dts/freescale/Makefile| 1 +

[PATCH] mm/kasan: Fix false positive invalid-free reports with CONFIG_KASAN_SW_TAGS=y

2019-08-19 Thread Andrey Ryabinin
The code like this: ptr = kmalloc(size, GFP_KERNEL); page = virt_to_page(ptr); offset = offset_in_page(ptr); kfree(page_address(page) + offset); may produce false-positive invalid-free reports on the kernel with CONFIG_KASAN_SW_TAGS=y. In the example above we

[PATCH v4 0/2] add imx8mq nitrogen support - changes since v3

2019-08-19 Thread Dafna Hirschfeld
change log: patch 1: no changes patch 2: - gpio-key,wakeup -> source-wakeup - newline between property list and child nodes. - settting pinctrl nodes names to: "pinctrl_xxx: xxxgrp {" Gary Bisson (2): dt-bindings: arm: imx: add imx8mq nitrogen support arm64: dts: imx: Add i.mx8mq nitrogen8m

[PATCH v4 1/2] dt-bindings: arm: imx: add imx8mq nitrogen support

2019-08-19 Thread Dafna Hirschfeld
From: Gary Bisson The Nitrogen8M is an ARM based single board computer (SBC) designed to leverage the full capabilities of NXP’s i.MX8M Quad processor. Signed-off-by: Gary Bisson Signed-off-by: Troy Kisky [Dafna: porting vendor's code to mainline] Signed-off-by: Dafna Hirschfeld ---

Re: [PATCH] ACPI/PCI: Remove surplus parentheses from a return statement

2019-08-19 Thread Andrew Murray
On Mon, Aug 19, 2019 at 03:53:24PM +0200, Krzysztof Wilczynski wrote: > Remove unnecessary parentheses enclosing the value in a return > statement in the drivers/acpi/pci_link.c. > > Signed-off-by: Krzysztof Wilczynski > --- > drivers/acpi/pci_link.c | 4 ++-- > 1 file changed, 2 insertions(+),

Re: [PATCHv2] lib/test_kasan: add roundtrip tests

2019-08-19 Thread Andrey Ryabinin
On 8/19/19 7:14 PM, Mark Rutland wrote: > In several places we need to be able to operate on pointers which have > gone via a roundtrip: > > virt -> {phys,page} -> virt > > With KASAN_SW_TAGS, we can't preserve the tag for SLUB objects, and the > {phys,page} -> virt conversion will use

Re: [PATCH v12 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-08-19 Thread houlong wei
On Mon, 2019-08-19 at 10:53 +0800, Bibby Hsieh wrote: > GCE cannot know the register base address, this function > can help cmdq client to get the cmdq_client_reg structure. > > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 29 ++ >

[PATCH v2] mtd: spi-nor: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In spi_nor_parse_4bait(), 'dwords' is allocated through kmalloc(). However, it is not deallocated in the following execution if spi_nor_read_sfdp() fails, leading to a memory leak. To fix this issue, free 'dwords' before returning the error. Fixes: 816873eaeec6 ("mtd: spi-nor: parse SFDP 4-byte

Re: [PATCH v2] PM / wakeup: Register wakeup class kobj after device is added

2019-08-19 Thread Stephen Boyd
Quoting Tri Vo (2019-08-19 10:04:56) > On Mon, Aug 19, 2019 at 8:06 AM Stephen Boyd wrote: > > > > The device_set_wakeup_enable() function can be called on a device that > > hasn't been registered with device_add() yet. This allows the device to > > be in a state where wakeup is enabled for it

Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Geert Uytterhoeven
Hi Joe, On Mon, Aug 19, 2019 at 6:56 PM Joe Perches wrote: > On Mon, 2019-08-19 at 12:05 +0200, Geert Uytterhoeven wrote: > > When compiling on 32-bit: > > > > drivers/infiniband/sw/siw/siw_cq.c:76:20: warning: cast to pointer from > > integer of different size [-Wint-to-pointer-cast] > >

Re: [PATCH net-next 2/3] net: dsa: mv88e6xxx: extend PTP gettime function to read system clock

2019-08-19 Thread Hubert Feurstein
Hi Andrew, Am Mo., 19. Aug. 2019 um 15:27 Uhr schrieb Andrew Lunn : > > > @@ -45,7 +45,8 @@ static int mv88e6xxx_smi_direct_write(struct > > mv88e6xxx_chip *chip, > > { > > int ret; > > > > - ret = mdiobus_write_nested(chip->bus, dev, reg, data); > > + ret =

[PATCH net-next 0/1] net: fec: add C45 MDIO read/write support

2019-08-19 Thread Marco Hartmann
As of yet, the Fast Ethernet Controller (FEC) driver only supports Clause 22 conform MDIO transactions. IEEE 802.3ae Clause 45 defines a modified MDIO protocol that uses a two staged access model in order to increase the address space. This patch adds support for Clause 45 conform MDIO read and

[PATCH net-next 1/1] fec: add C45 MDIO read/write support

2019-08-19 Thread Marco Hartmann
IEEE 802.3ae clause 45 defines a modified MDIO protocol that uses a two staged access model in order to increase the address space. This patch adds support for C45 MDIO read and write accesses, which are used whenever the MII_ADDR_C45 flag in the regnum argument is set. In case it is not set, C22

Re: [PATCH 03/22] arm64: dts: qcom: sm8150: add tlmm node

2019-08-19 Thread Vinod Koul
On 14-08-19, 10:01, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-14 05:49:53) > > Signed-off-by: Vinod Koul > > --- > > Add some commit text? Or just squash with the first patch? Not sure why > it's a different commit. > > > arch/arm64/boot/dts/qcom/sm8150.dtsi | 15 +++ > > 1

Re: [PATCH v4 4/6] tpm: tpm_tis_spi: Export functionality to other drivers

2019-08-19 Thread Stephen Boyd
Quoting Jarkko Sakkinen (2019-08-19 09:40:05) > On Mon, Aug 12, 2019 at 03:36:20PM -0700, Stephen Boyd wrote: > > Export a new function, tpm_tis_spi_init(), and the associated > > read/write/transfer APIs so that we can create variant drivers based on > > the core functionality of this TPM SPI

Re: [PATCH][next] soc: samsung: exynos-chipid: fix memory leak

2019-08-19 Thread Krzysztof Kozlowski
On Fri, Aug 16, 2019 at 11:21:51PM +0100, Colin King wrote: > From: Colin Ian King > > Currently when the call to product_id_to_soc_id fails there > is a memory leak of soc_dev_attr->revision and soc_dev_attr > on the error return path. Fix this by adding a common error > return path that frees

Re: [PATCH v4 3/6] tpm: tpm_tis_spi: Add a pre-transfer callback

2019-08-19 Thread Stephen Boyd
Quoting Jarkko Sakkinen (2019-08-19 09:35:05) > On Mon, Aug 12, 2019 at 03:36:19PM -0700, Stephen Boyd wrote: > > Cr50 firmware has a requirement to wait for the TPM to wakeup before > > sending commands over the SPI bus. Otherwise, the firmware could be in > > deep sleep and not respond. Add a

Re: [RFC/RFT v4 3/5] KEYS: trusted: create trusted keys subsystem

2019-08-19 Thread Jarkko Sakkinen
On Mon, Aug 19, 2019 at 08:04:58PM +0300, Jarkko Sakkinen wrote: > On Tue, Aug 13, 2019 at 01:23:02PM +0530, Sumit Garg wrote: > > Move existing code to trusted keys subsystem. Also, rename files with > > "tpm" as suffix which provides the underlying implementation. > > > > Suggested-by: Jarkko

Re: [PATCH v4 2/6] tpm: tpm_tis_spi: Introduce a flow control callback

2019-08-19 Thread Stephen Boyd
Quoting Jarkko Sakkinen (2019-08-19 09:32:40) > On Mon, Aug 12, 2019 at 03:36:18PM -0700, Stephen Boyd wrote: > > Cr50 firmware has a different flow control protocol than the one used by > > this TPM PTP SPI driver. Introduce a flow control callback so we can > > override the standard sequence

Re: [PATCH AUTOSEL 4.4 01/14] xtensa: fix build for cores with coprocessors

2019-08-19 Thread Max Filippov
On Mon, Aug 19, 2019 at 9:53 AM Ben Hutchings wrote: > > On Tue, 2019-08-06 at 17:37 -0400, Sasha Levin wrote: > > From: Max Filippov > > > > [ Upstream commit e3cacb73e626d885b8cf24103fed0ae26518e3c4 ] > > > > Assembly entry/return abstraction change didn't add asmmacro.h include > > statement

Re: [PATCH v2] PM / wakeup: Register wakeup class kobj after device is added

2019-08-19 Thread Tri Vo
On Mon, Aug 19, 2019 at 8:06 AM Stephen Boyd wrote: > > The device_set_wakeup_enable() function can be called on a device that > hasn't been registered with device_add() yet. This allows the device to > be in a state where wakeup is enabled for it but the device isn't > published to userspace in

[PATCH] Revert "Bluetooth: btusb: driver to enable the usb-wakeup feature"

2019-08-19 Thread Mario Limonciello
This reverts commit a0085f2510e8976614ad8f766b209448b385492f. This commit has caused regressions in notebooks that support suspend to idle such as the XPS 9360, XPS 9370 and XPS 9380. These notebooks will wakeup from suspend to idle from an unsolicited advertising packet from an unpaired BLE

Re: [PATCH] mtd: spi-nor: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
On Mon, Aug 19, 2019 at 2:03 AM wrote: > > > > On 08/18/2019 08:39 PM, Wenwen Wang wrote: > > In spi_nor_parse_4bait(), 'dwords' is allocated through kmalloc(). However, > > it is not deallocated in the following execution if spi_nor_read_sfdp() > > fails, leading to a memory leak. To fix this

Re: [PATCH v12 09/12] soc: mediatek: cmdq: define the instruction struct

2019-08-19 Thread houlong wei
On Mon, 2019-08-19 at 10:53 +0800, Bibby Hsieh wrote: > Define an instruction structure for gce driver to append command. > This structure can make the client's code more readability. > > Signed-off-by: Bibby Hsieh > Reviewed-by: CK Hu > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 105

Re: [PATCH] tpm/tpm_ftpm_tee: trivial checkpatch fixes

2019-08-19 Thread Jarkko Sakkinen
On Fri, Aug 16, 2019 at 12:02:01AM +0300, Jarkko Sakkinen wrote: > On Tue, Aug 13, 2019 at 09:05:59AM -0400, Sasha Levin wrote: > > Fixes a few checkpatch warnings (and ignores some), mostly around > > spaces/tabs and documentation. > > > > Signed-off-by: Sasha Levin > > Thank you! > > I'll

Enabling UBSAN breaks KCOV in clang (8.0.*) on arm64

2019-08-19 Thread Mark Rutland
Hi, I found that when I enable both KCOV and UBSAN on arm64, clang fails to emit any __sanitizer_cov_trace_*() calls in the resulting binary, rendering KCOV useless. For example, when building v5.3-rc3's arch/arm64/kernel/setup.o: * With defconfig + CONFIG KCOV: clang

Re: [PATCH] kbuild: enable unused-function warnings for W= build with Clang

2019-08-19 Thread Masahiro Yamada
Hi Nathan, On Tue, Aug 20, 2019 at 1:09 AM Nathan Chancellor wrote: > > On Mon, Aug 19, 2019 at 07:51:38PM +0900, Masahiro Yamada wrote: > > GCC and Clang have different policy for -Wunused-function; GCC does > > not report unused-function warnings at all for the functions marked > > as 'static

[PATCH] staging: rtl8723bs: core: Remove unneeded declaration WFD_OUI

2019-08-19 Thread Hariprasad Kelam
Remove unneeded declaration "extern unsigned char WFD_OUI" Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_ap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c index 02f5478..6d18d23

Re: [PATCH -next] drm/panfrost: Fix missing unlock on error in panfrost_mmu_map_fault_addr()

2019-08-19 Thread Rob Herring
On Tue, Aug 13, 2019 at 11:44 PM Wei Yongjun wrote: > > Add the missing unlock before return from function > panfrost_mmu_map_fault_addr() > in the error handling case. > > Fixes: 187d2929206e ("drm/panfrost: Add support for GPU heap allocations") > Signed-off-by: Wei Yongjun > --- >

Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Joe Perches
On Mon, 2019-08-19 at 12:05 +0200, Geert Uytterhoeven wrote: > When compiling on 32-bit: > > drivers/infiniband/sw/siw/siw_cq.c:76:20: warning: cast to pointer from > integer of different size [-Wint-to-pointer-cast] > drivers/infiniband/sw/siw/siw_qp.c:952:28: warning: cast from pointer

Re: [PATCH AUTOSEL 4.4 01/14] xtensa: fix build for cores with coprocessors

2019-08-19 Thread Ben Hutchings
On Tue, 2019-08-06 at 17:37 -0400, Sasha Levin wrote: > From: Max Filippov > > [ Upstream commit e3cacb73e626d885b8cf24103fed0ae26518e3c4 ] > > Assembly entry/return abstraction change didn't add asmmacro.h include > statement to coprocessor.S, resulting in references to undefined macros >

Re: [PATCH 4/4] arm64: implement KPROBES_ON_FTRACE

2019-08-19 Thread Naveen N. Rao
Jisheng Zhang wrote: This patch implements KPROBES_ON_FTRACE for arm64. ~ # mount -t debugfs debugfs /sys/kernel/debug/ ~ # cd /sys/kernel/debug/ /sys/kernel/debug # echo 'p _do_fork' > tracing/kprobe_events before the patch: /sys/kernel/debug # cat kprobes/list ff801009ff7c k

Re: [PATCH v3 3/4] perf: Use CAP_SYSLOG with kptr_restrict checks

2019-08-19 Thread Mathieu Poirier
On Thu, 15 Aug 2019 at 15:42, Arnaldo Carvalho de Melo wrote: > > Em Thu, Aug 15, 2019 at 02:16:48PM -0600, Mathieu Poirier escreveu: > > On Wed, 14 Aug 2019 at 14:02, Lubashev, Igor wrote: > > > > > > > On Wed, August 14, 2019 at 2:52 PM Arnaldo Carvalho de Melo > > > > wrote: > > > > Em Wed,

Re: [PATCH] auxdisplay: ht16k33: Make ht16k33_fb_fix and ht16k33_fb_var constant

2019-08-19 Thread Miguel Ojeda
On Mon, Aug 19, 2019 at 9:51 AM Nishka Dasgupta wrote: > > The static structures ht16k33_fb_fix and ht16k33_fb_var, of types > fb_fix_screeninfo and fb_var_screeninfo respectively, are not used > except to be copied into other variables. Hence make both of them > constant to prevent unintended

Re: [PATCH v9 20/22] soc/tegra: pmc: Configure deep sleep control settings

2019-08-19 Thread Dmitry Osipenko
16.08.2019 22:42, Sowjanya Komatineni пишет: > Tegra210 and prior Tegra chips have deep sleep entry and wakeup related > timings which are platform specific that should be configured before > entering into deep sleep. > > Below are the timing specific configurations for deep sleep entry and >

Re: [PATCH v9 15/22] clk: tegra210: Add suspend and resume support

2019-08-19 Thread Dmitry Osipenko
16.08.2019 22:42, Sowjanya Komatineni пишет: > This patch adds support for clk: tegra210: suspend-resume. > > All the CAR controller settings are lost on suspend when core > power goes off. > > This patch has implementation for saving and restoring all PLLs > and clocks context during system

Re: [PATCH] keys: Fix description size

2019-08-19 Thread Linus Torvalds
On Mon, Aug 19, 2019 at 8:02 AM David Howells wrote: > > This can be fixed by simply increasing the size of desc_len in struct > keyring_index_key to a u16. Thanks, applied. Linus

Re: [PATCH -rcu dev 1/3] rcu/tree: tick_dep_set/clear_cpu should accept bits instead of masks

2019-08-19 Thread Paul E. McKenney
On Mon, Aug 19, 2019 at 06:32:27PM +0200, Frederic Weisbecker wrote: > On Mon, Aug 19, 2019 at 07:46:32AM -0700, Paul E. McKenney wrote: > > On Mon, Aug 19, 2019 at 02:38:38PM +0200, Frederic Weisbecker wrote: > > > On Thu, Aug 15, 2019 at 10:53:09PM -0400, Joel Fernandes (Google) wrote: > > > >

Re: [PATCH 1/4] kprobes: adjust kprobe addr for KPROBES_ON_FTRACE

2019-08-19 Thread Naveen N. Rao
Jisheng Zhang wrote: For KPROBES_ON_FTRACE case, we need to adjust the kprobe's addr correspondingly. Signed-off-by: Jisheng Zhang --- kernel/kprobes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 9873fc627d61..f8400753a8a9 100644 ---

Re: [PATCH v4 4/6] tpm: tpm_tis_spi: Export functionality to other drivers

2019-08-19 Thread Jarkko Sakkinen
On Mon, Aug 12, 2019 at 03:36:20PM -0700, Stephen Boyd wrote: > Export a new function, tpm_tis_spi_init(), and the associated > read/write/transfer APIs so that we can create variant drivers based on > the core functionality of this TPM SPI driver. Variant drivers can wrap > the tpm_tis_spi_phy

[PATCH v2 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SC7180

2019-08-19 Thread Taniya Das
Add support for the global clock controller found on SC7180 based devices. This should allow most non-multimedia device drivers to probe and control their clocks. Signed-off-by: Taniya Das --- drivers/clk/qcom/Kconfig | 10 +- drivers/clk/qcom/Makefile |1 +

[PATCH v2 2/3] dt-bindings: clk: qcom: Add YAML schemas for the GCC clock bindings

2019-08-19 Thread Taniya Das
The GCC clock provider have a bunch of generic properties that are needed in a device tree. Add a YAML schemas for those. Also update the compatible for SC7180 along with example for clocks & clock-names. Signed-off-by: Taniya Das --- .../devicetree/bindings/clock/qcom,gcc.yaml | 141

[PATCH v2 1/3] clk: qcom: rcg: update the DFS macro for RCG

2019-08-19 Thread Taniya Das
Update the init data name for each of the dynamic frequency switch controlled clock associated with the RCG clock name, so that it can be generated as per the hardware plan. Thus update the macro accordingly. Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-rcg.h| 2 +-

[PATCH v2 0/3] Add Global Clock controller (GCC) driver for SC7180

2019-08-19 Thread Taniya Das
[v2] * Update the DFS macro for RCG to reflect the hw init similar to clock name. * Update the Documentation binding of GCC to YAML schemas. * Add comments for CRITICAL clocks, remove PLL forward declarations and unwanted comments/prints. [v1] * Add driver support for Global Clock

Re: [PATCH] powerpc/vdso32: Add support for CLOCK_{REALTIME/MONOTONIC}_COARSE

2019-08-19 Thread Nathan Lynch
Hi, Christophe Leroy writes: > Benchmark from vdsotest: I assume you also ran the verification/correctness parts of vdsotest...? :-)

[PATCH v3 0/1] aacraid: Host adapter Adaptec 6405 constantly resets under high io load

2019-08-19 Thread Konstantin Khorenko
Problem description: A node with Adaptec 6405 controller, latest BIOS V5.3-0[19204] A lot of disks attached to the controller. Simple test: running mkfs.ext4 on many disks on the same controller in parallel (mkfs is not important here, any serious io load triggers controller

[PATCH v3 1/1] scsi: aacraid: resurrect correct arc ctrl checks for Series-6

2019-08-19 Thread Konstantin Khorenko
The patch introduces another wrapper similar to aac_is_src() which avoids checking for Series 6 devices. Use this new wrapper in order to revert original arc ctrl checks for Series-6 controllers which were occasionally changed by commit 395e5df79a95 ("scsi: aacraid: Remove reference to Series-9")

Re: [PATCH v4 3/6] tpm: tpm_tis_spi: Add a pre-transfer callback

2019-08-19 Thread Jarkko Sakkinen
On Mon, Aug 12, 2019 at 03:36:19PM -0700, Stephen Boyd wrote: > Cr50 firmware has a requirement to wait for the TPM to wakeup before > sending commands over the SPI bus. Otherwise, the firmware could be in > deep sleep and not respond. Add a hook to tpm_tis_spi_transfer() before > we start a SPI

Re: Re: Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Jason Gunthorpe
On Mon, Aug 19, 2019 at 04:29:11PM +, Bernard Metzler wrote: > > >To: "Bernard Metzler" > >From: "Jason Gunthorpe" > >Date: 08/19/2019 06:05PM > >Cc: "Geert Uytterhoeven" , "Doug Ledford" > >, linux-r...@vger.kernel.org, > >linux-kernel@vger.kernel.org > >Subject: [EXTERNAL] Re: Re: Re: Re:

[PATCH v5 15/17] mfd: ioc3: Add driver for SGI IOC3 chip

2019-08-19 Thread Thomas Bogendoerfer
SGI IOC3 chip has integrated ethernet, keyboard and mouse interface. It also supports connecting a SuperIO chip for serial and parallel interfaces. IOC3 is used inside various SGI systemboards and add-on cards with different equipped external interfaces. Support for ethernet and serial interfaces

[PATCH v5 05/17] MIPS: PCI: use information from 1-wire PROM for IOC3 detection

2019-08-19 Thread Thomas Bogendoerfer
IOC3 chips in SGI system are conntected to a bridge ASIC, which has a 1-wire prom attached with part number information. This changeset uses this information to create PCI subsystem information, which the MFD driver uses for further platform device setup. Signed-off-by: Thomas Bogendoerfer ---

Re: [PATCH v4 2/6] tpm: tpm_tis_spi: Introduce a flow control callback

2019-08-19 Thread Jarkko Sakkinen
On Mon, Aug 12, 2019 at 03:36:18PM -0700, Stephen Boyd wrote: > Cr50 firmware has a different flow control protocol than the one used by > this TPM PTP SPI driver. Introduce a flow control callback so we can > override the standard sequence with the custom one that Cr50 uses. > > Cc: Andrey

Re: [PATCH -rcu dev 1/3] rcu/tree: tick_dep_set/clear_cpu should accept bits instead of masks

2019-08-19 Thread Frederic Weisbecker
On Mon, Aug 19, 2019 at 07:46:32AM -0700, Paul E. McKenney wrote: > On Mon, Aug 19, 2019 at 02:38:38PM +0200, Frederic Weisbecker wrote: > > On Thu, Aug 15, 2019 at 10:53:09PM -0400, Joel Fernandes (Google) wrote: > > > This commit fixes the issue. > > > > > > Signed-off-by: Joel Fernandes

Re: [PATCH] ata: ahci: Lookup PCS register offset based on PCI device ID

2019-08-19 Thread Stephen Douthit
On 8/14/19 1:17 PM, Dan Williams wrote: >> Can you get someone from the controller design team to give us a clear >> answer on a revision where this PCS change happened? >> >> It would be nice if we could just check PCI_REVISION_ID or something >> similar. > > I don't think such a reliable

RE: [PATCH v3 0/8] thunderbolt: Intel Ice Lake support

2019-08-19 Thread Mario.Limonciello
> -Original Message- > From: Mika Westerberg > Sent: Monday, August 19, 2019 6:22 AM > To: linux-kernel@vger.kernel.org > Cc: Andreas Noever; Michael Jamet; Yehezkel Bernat; Rafael J. Wysocki; Len > Brown; Lukas Wunner; Limonciello, Mario; Anthony Wong; Rajmohan Mani; > Raanan Avargil;

Re: Re: Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Bernard Metzler
-"Jason Gunthorpe" wrote: - >To: "Bernard Metzler" >From: "Jason Gunthorpe" >Date: 08/19/2019 06:05PM >Cc: "Geert Uytterhoeven" , "Doug Ledford" >, linux-r...@vger.kernel.org, >linux-kernel@vger.kernel.org >Subject: [EXTERNAL] Re: Re: Re: Re: [PATCH] RDMA/siw: Fix compiler >warnings on

pull-request: wireless-drivers-next 2019-08-19

2019-08-19 Thread Kalle Valo
Hi Dave, here's a pull request to net-next for v5.4, more info below. Please let me know if there are any problems. Kalle The following changes since commit 3e3bb69589e482e0783f28d4cd1d8e56fda0bcbb: tc-testing: added tdc tests for [b|p]fifo qdisc (2019-07-23 14:08:15 -0700) are available in

Re: [PATCH 1/3] powerpc: don't use __WARN() for WARN_ON()

2019-08-19 Thread Kees Cook
On Mon, Aug 19, 2019 at 01:06:28PM +, Christophe Leroy wrote: > __WARN() used to just call __WARN_TAINT(TAINT_WARN) > > But a call to printk() has been added in the commit identified below > to print a " cut here " line. > > This change only applies to warnings using __WARN(), which

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-19 Thread Joel Fernandes
On Mon, Aug 19, 2019 at 08:41:43AM -0700, Paul E. McKenney wrote: > On Mon, Aug 19, 2019 at 07:33:14AM -0700, Paul E. McKenney wrote: > > On Mon, Aug 19, 2019 at 05:57:57AM -0700, Paul E. McKenney wrote: > > > On Sun, Aug 18, 2019 at 07:29:27PM -0700, Paul E. McKenney wrote: > > > > On Sun, Aug

Re: [PATCH 3/3] firmware: add mutex fw_lock_fallback for race condition

2019-08-19 Thread Scott Branden
Hi Luis, Thanks for the review. I did not think this patch would be the final solution either as indicated in the original cover letter and code comment. Some comments inline. On 2019-08-18 10:39 p.m., Luis Chamberlain wrote: On Thu, Aug 15, 2019 at 05:09:45PM -0700, Scott Branden wrote:

Re: [PATCH -rcu dev 3/3] RFC: rcu/tree: Read dynticks_nmi_nesting in advance

2019-08-19 Thread Paul E. McKenney
On Mon, Aug 19, 2019 at 11:46:36AM -0400, Joel Fernandes wrote: > On Mon, Aug 19, 2019 at 07:41:08AM -0700, Paul E. McKenney wrote: > > On Mon, Aug 19, 2019 at 10:22:08AM -0400, Joel Fernandes wrote: > > > On Mon, Aug 19, 2019 at 02:59:08PM +0200, Frederic Weisbecker wrote: > > > > On Fri, Aug 16,

Re: [PATCH v3 1/4] PCI: pciehp: Add pciehp_set_indicators() to jointly set LED indicators

2019-08-19 Thread Denis Efremov
Hi, On 8/19/19 7:06 PM, Denis Efremov wrote: > + switch (pwr) { > + case PCI_EXP_SLTCTL_PWR_IND_ON: > + case PCI_EXP_SLTCTL_PWR_IND_BLINK: > + case PCI_EXP_SLTCTL_PWR_IND_OFF: > + cmd |= pwr; > + mask |=

Re: [PATCH v3 5/8] dt-bindings: PCI: Add Amazon's Annapurna Labs PCIe host bridge binding

2019-08-19 Thread Chocron, Jonathan
On Tue, 2019-08-13 at 14:46 -0600, Rob Herring wrote: > On Tue, Aug 13, 2019 at 10:49 AM Chocron, Jonathan > wrote: > > > > On Tue, 2019-08-13 at 09:30 -0600, Rob Herring wrote: > > > On Tue, Jul 23, 2019 at 12:27:08PM +0300, Jonathan Chocron wrote: > > > > Document Amazon's Annapurna Labs PCIe

[PATCHv2] lib/test_kasan: add roundtrip tests

2019-08-19 Thread Mark Rutland
In several places we need to be able to operate on pointers which have gone via a roundtrip: virt -> {phys,page} -> virt With KASAN_SW_TAGS, we can't preserve the tag for SLUB objects, and the {phys,page} -> virt conversion will use KASAN_TAG_KERNEL. This patch adds tests to ensure that

[PATCH] bpfilter/verifier: add include guard to tnum.h

2019-08-19 Thread Masahiro Yamada
Add a header include guard just in case. Signed-off-by: Masahiro Yamada --- include/linux/tnum.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/tnum.h b/include/linux/tnum.h index c7dc2b5902c0..c17af77f3fae 100644 --- a/include/linux/tnum.h +++ b/include/linux/tnum.h

Re: [PATCH] kbuild: enable unused-function warnings for W= build with Clang

2019-08-19 Thread Kees Cook
On Mon, Aug 19, 2019 at 07:51:38PM +0900, Masahiro Yamada wrote: > GCC and Clang have different policy for -Wunused-function; GCC does > not report unused-function warnings at all for the functions marked > as 'static inline'. Clang does report unused-function warnings if they > are defined in

Re: [PATCH] erofs: move erofs out of staging

2019-08-19 Thread Darrick J. Wong
On Mon, Aug 19, 2019 at 04:14:11AM +0800, Gao Xiang wrote: > Hi all, > > On Mon, Aug 19, 2019 at 02:16:55AM +0800, Gao Xiang wrote: > > Hi Hch, > > > > On Sun, Aug 18, 2019 at 10:47:02AM -0700, Christoph Hellwig wrote: > > > On Sun, Aug 18, 2019 at 10:29:38AM -0700, Eric Biggers wrote: > > > >

Re: [PATCH] kbuild: enable unused-function warnings for W= build with Clang

2019-08-19 Thread Nathan Chancellor
On Mon, Aug 19, 2019 at 07:51:38PM +0900, Masahiro Yamada wrote: > GCC and Clang have different policy for -Wunused-function; GCC does > not report unused-function warnings at all for the functions marked > as 'static inline'. Clang does report unused-function warnings if they > are defined in

[PATCH v3 0/4] Simplify PCIe hotplug indicator control

2019-08-19 Thread Denis Efremov
PCIe defines two optional hotplug indicators: a Power indicator and an Attention indicator. Both are controlled by the same register, and each can be on, off or blinking. The current interfaces (pciehp_green_led_{on,off,blink}() and pciehp_set_attention_status()) are non-uniform and require two

[PATCH v3 2/4] PCI: pciehp: Switch LED indicators with a single write

2019-08-19 Thread Denis Efremov
This patch replaces all consecutive switches of power and attention indicators with pciehp_set_indicators() call. Thus, performing only single write to a register. Reviewed-by: Kuppuswamy Sathyanarayanan Reviewed-by: Lukas Wunner Signed-off-by: Denis Efremov ---

[PATCH v3 4/4] PCI: pciehp: Remove pciehp_green_led_{on,off,blink}()

2019-08-19 Thread Denis Efremov
Remove pciehp_green_led_{on,off,blink}() and use pciehp_set_indicators() instead, since the code is mostly the same. Signed-off-by: Denis Efremov --- drivers/pci/hotplug/pciehp.h | 3 --- drivers/pci/hotplug/pciehp_ctrl.c | 12 --- drivers/pci/hotplug/pciehp_hpc.c | 36

[PATCH v3 3/4] PCI: pciehp: Remove pciehp_set_attention_status()

2019-08-19 Thread Denis Efremov
Remove pciehp_set_attention_status() and use pciehp_set_indicators() instead, since the code is mostly the same. Signed-off-by: Denis Efremov --- drivers/pci/hotplug/pciehp.h | 1 - drivers/pci/hotplug/pciehp_core.c | 7 ++- drivers/pci/hotplug/pciehp_hpc.c | 25

[PATCH v3 1/4] PCI: pciehp: Add pciehp_set_indicators() to jointly set LED indicators

2019-08-19 Thread Denis Efremov
Add pciehp_set_indicators() to set power and attention indicators with a single register write. Thus, avoiding waiting twice for Command Complete. Signed-off-by: Denis Efremov --- drivers/pci/hotplug/pciehp.h | 1 + drivers/pci/hotplug/pciehp_hpc.c | 29 +

Re: [PATCH v1 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-08-19 Thread Andy Shevchenko
On Mon, Aug 19, 2019 at 11:44:16AM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Adds support for eMMC PHY on Intel's Lightning Mountain SoC. Adds -> Add. > +/* eMMC phy register definitions */ > +#define EMMC_PHYCTRL0_REG0xa8 > +#define DR_TY_MASK

Re: Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Jason Gunthorpe
On Mon, Aug 19, 2019 at 03:54:56PM +, Bernard Metzler wrote: > Absolutely. But these addresses are conveyed through the > API as unsigned 64 during post_send(), and land in the siw > send queue as is. During send queue processing, these addresses > must be interpreted according to its context

Re: [PATCH v4 3/9] nvmem: core: add nvmem_device_find

2019-08-19 Thread Srinivas Kandagatla
On 16/08/2019 15:09, Thomas Bogendoerfer wrote: On Wed, Aug 14, 2019 at 01:52:49PM +0100, Srinivas Kandagatla wrote: On 14/08/2019 12:46, Thomas Bogendoerfer wrote: On Tue, 13 Aug 2019 10:40:34 +0100 Srinivas Kandagatla wrote: On 09/08/2019 11:32, Thomas Bogendoerfer wrote:

Re: [PATCH] arm64: kasan: fix phys_to_virt() false positive on tag-based kasan

2019-08-19 Thread Mark Rutland
On Mon, Aug 19, 2019 at 05:37:36PM +0200, Andrey Konovalov wrote: > On Mon, Aug 19, 2019 at 5:03 PM Mark Rutland wrote: > > > > On Mon, Aug 19, 2019 at 04:05:22PM +0200, Andrey Konovalov wrote: > > > On Mon, Aug 19, 2019 at 3:34 PM Will Deacon wrote: > > > > > > > > On Mon, Aug 19, 2019 at

Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules

2019-08-19 Thread Joe Lawrence
On 8/19/19 3:31 AM, Miroslav Benes wrote: On Mon, 19 Aug 2019, Masahiro Yamada wrote: I can review this series from the build system point of view, but I am not familiar enough with live-patching itself. Some possibilities: [1] Merge this series thru the live-patch tree after the

Re: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-19 Thread Thomas Gleixner
On Mon, 19 Aug 2019, Arul Jeniston wrote: > hi Tglx, > > But for the above scenario: > > > > ktime_get() > > do { > > seq = read_seqcount_begin(_core.seq); > > base = tk->tkr_mono.base; > > nsecs = timekeeping_get_ns(>tkr_mono); > > > >

Re: [PATCH 1/2] PTP: introduce new versions of IOCTLs

2019-08-19 Thread Joe Perches
On Mon, 2019-08-19 at 08:43 -0700, Richard Cochran wrote: > On Sun, Aug 18, 2019 at 03:07:18PM -0700, Joe Perches wrote: > > Also the original patch deletes 2 case entries for > > PTP_PIN_GETFUNC and PTP_PIN_SETFUNC and converts them to > > PTP_PIN_GETFUNC2 and PTP_PIN_SETFUNC2 but still uses

Re: [PATCH net-next] netdevsim: Fix build error without CONFIG_INET

2019-08-19 Thread Ido Schimmel
On Mon, Aug 19, 2019 at 08:08:25PM +0800, YueHaibing wrote: > If CONFIG_INET is not set, building fails: > > drivers/net/netdevsim/dev.o: In function `nsim_dev_trap_report_work': > dev.c:(.text+0x67b): undefined reference to `ip_send_check' > > Add CONFIG_INET Kconfig dependency to fix this. >

Re: [PATCH v2] nvme: allow 64-bit results in passthru commands

2019-08-19 Thread James Smart
On 8/19/2019 7:49 AM, Keith Busch wrote: On Mon, Aug 19, 2019 at 12:06:23AM -0700, Marta Rybczynska wrote: - On 16 Aug, 2019, at 15:16, Christoph Hellwig h...@lst.de wrote: Sorry for not replying to the earlier version, and thanks for doing this work. I wonder if instead of using our

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-08-19 Thread Jon Hunter
On 08/08/2019 13:38, Vinod Koul wrote: > On 02-08-19, 09:51, Jon Hunter wrote: >> >> On 31/07/2019 16:16, Vinod Koul wrote: >>> On 31-07-19, 10:48, Jon Hunter wrote: On 29/07/2019 07:10, Vinod Koul wrote: > On 23-07-19, 11:24, Sameer Pujar wrote: >> >> On 7/19/2019 10:34

Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules

2019-08-19 Thread Joe Lawrence
On 8/18/19 11:50 PM, Masahiro Yamada wrote: Hi Joe, On Sat, Aug 17, 2019 at 4:01 AM Joe Lawrence wrote: I didn't realize that we're supposed to be able to still build external modules after "make clean". If that's the case, then one might want to build an external klp-module after doing

Re: Re: Re: Re: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-19 Thread Bernard Metzler
-"Jason Gunthorpe" wrote: - >To: "Bernard Metzler" >From: "Jason Gunthorpe" >Date: 08/19/2019 05:07PM >Cc: "Geert Uytterhoeven" , "Doug Ledford" >, linux-r...@vger.kernel.org, >linux-kernel@vger.kernel.org >Subject: [EXTERNAL] Re: Re: Re: [PATCH] RDMA/siw: Fix compiler >warnings on

Re: [PATCH v7 02/11] media: uapi: h264: Rename pixel format

2019-08-19 Thread Hans Verkuil
On 8/19/19 2:41 PM, Paul Kocialkowski wrote: > Hi, > > On Fri 16 Aug 19, 13:01, Ezequiel Garcia wrote: >> The V4L2_PIX_FMT_H264_SLICE_RAW name was originally suggested >> because the pixel format would represent H264 slices without any >> start code. >> >> However, as we will now introduce a

[patch 00/44] posix-cpu-timers: Cleanup and consolidation

2019-08-19 Thread Thomas Gleixner
Folks! While working on splitting the posix CPU timer expiry out into task context, I took a deeper look at that code. It contains quite some duplicated code and the abuse of struct task_cputime along with the defines to rename the struct members just made my eyes bleed. The following series

[patch 01/44] posix-timers: Cleanup forward declarations and includes

2019-08-19 Thread Thomas Gleixner
- Rename struct siginfo to kernel_siginfo - Add a forward declaration for task_struct and remove sched.h include - Remove timex.h include as it is not needed Signed-off-by: Thomas Gleixner --- include/linux/posix-timers.h |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---

[patch 13/44] posix-cpu-timers: Sample directly in timer check

2019-08-19 Thread Thomas Gleixner
The thread group accounting is active, otherwise the expiry function would not be running. Sample the thread group time directly. Signed-off-by: Thomas Gleixner --- kernel/time/posix-cpu-timers.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) ---

[patch 08/44] posix-cpu-timers: Provide task validation functions

2019-08-19 Thread Thomas Gleixner
The code contains three slightly different copies of validating whether a given clock resolves to a valid task and whether the current caller has permissions to access it. Create central functions. Replace check_clock() as a first step and rename it to something sensible. Signed-off-by: Thomas

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