[PATCH v12 01/15] tools/libperf: avoid internal moving of fdarray fds

2020-07-16 Thread Alexey Budankov
Avoid moving of fds by fdarray__filter() so fds indices returned by fdarray__add() can be used for access and processing of objects at struct pollfd *entries. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/lib/api/fd/array.c | 11 +-- tools/perf

[GIT PULL] sound fixes for 5.8-rc6

2020-07-16 Thread Takashi Iwai
Linus, please pull sound fixes for v5.8-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.8-rc6 The topmost commit is 5734e509d5d515c187f642937ef2de1e58d7715d sound fixes for 5.8-rc6 No surp

Re: [PATCH 2/2] ALSA: hda: Add support for Loongson 7A1000 controller

2020-07-16 Thread Takashi Iwai
On Fri, 17 Jul 2020 04:51:32 +0200, Kaige Li wrote: > > Add the new PCI ID 0x0014 0x7a07 to support Loongson 7A1000 controller. > > Signed-off-by: Kaige Li Applied this one. Thanks. Takashi

Re: [PATCH 1/2] ALSA: hda/realtek: Fix headset mic on Loongson platform

2020-07-16 Thread Takashi Iwai
On Fri, 17 Jul 2020 04:51:31 +0200, Kaige Li wrote: > > Add pin quirks to enable use of the headset mic on Loongson platform. > > Signed-off-by: Kaige Li > @@ -7654,6 +7663,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { > SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_FI

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

2020-07-16 Thread Lee Jones
On Fri, 17 Jul 2020, Stephen Rothwell wrote: > Hi all, > > After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > drivers/mfd/kempld-core.c: In function 'kempld_register_cells_generic': > drivers/mfd/kempld-core.c:105:13: error: assignment of read-only

Re: linux-next: manual merge of the tip tree with the crypto tree

2020-07-16 Thread Stephen Rothwell
Hi Herbert, On Fri, 17 Jul 2020 16:44:01 +1000 Herbert Xu wrote: > > On Fri, Jul 17, 2020 at 08:27:27AM +0200, Uros Bizjak wrote: > > > > I will prepare a v2 that leaves needed part of inst.h. > > Your patch has already been applied. So please make it an > incremental patch. Thank you both.

drivers/net/wireless/cisco/airo.c:2420:43: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-07-16 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 07a56bb875afbe39dabbf6ba7b83783d166863db commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 4 weeks ago config: openrisc-randconfig-s032-20200717 (attac

Re: [PATCH v4 12/15] mm,hwpoison: Rework soft offline for in-use pages

2020-07-16 Thread 堀口 直也
On Thu, Jul 16, 2020 at 02:38:06PM +0200, Oscar Salvador wrote: > This patch changes the way we set and handle in-use poisoned pages. > Until now, poisoned pages were released to the buddy allocator, trusting > that the checks that take place prior to deliver the page to its end > user would act as

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

2020-07-16 Thread Takashi Iwai
On Fri, 17 Jul 2020 08:50:30 +0200, Christoph Hellwig wrote: > > On Fri, Jul 17, 2020 at 08:34:47AM +0200, Takashi Iwai wrote: > > On Fri, 17 Jul 2020 07:33:24 +0200, > > Christoph Hellwig wrote: > > > > > > On Fri, Jul 17, 2020 at 01:01:12PM +1000, Stephen Rothwell wrote: > > > > Hi all, > > > >

Re: Re: [PATCH v18 06/14] mm/damon: Implement callbacks for the virtual memory address spaces

2020-07-16 Thread SeongJae Park
On Thu, 16 Jul 2020 17:46:54 -0700 Shakeel Butt wrote: > On Mon, Jul 13, 2020 at 1:44 AM SeongJae Park wrote: > > > > From: SeongJae Park > > > > This commit introduces a reference implementation of the address space > > specific low level primitives for the virtual address space, so that > > u

linux-next: manual merge of the dmaengine tree with the wireless-drivers-next and Linus' trees

2020-07-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the dmaengine tree got a conflict in: MAINTAINERS between commit: 5625f965d764 ("wilc1000: move wilc driver out of staging") from the wireless-drivers-next tree, commit: 6e701c299469 ("MAINTAINERS: merge entries for felix and ocelot drivers") from Li

Re: [RFC PATCH v1 1/2] Bluetooth: queue ACL packets if no handle is found

2020-07-16 Thread Marcel Holtmann
Hi Alain, > >>> There is a possibility that an ACL packet is received before we > >>> receive the HCI connect event for the corresponding handle. If this > >>> happens, we discard the ACL packet. > >>> > >>> Rather than just ignoring them, this patch provides a queue for > >>> incoming ACL packet

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

2020-07-16 Thread Christoph Hellwig
On Fri, Jul 17, 2020 at 08:34:47AM +0200, Takashi Iwai wrote: > On Fri, 17 Jul 2020 07:33:24 +0200, > Christoph Hellwig wrote: > > > > On Fri, Jul 17, 2020 at 01:01:12PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > After merging the sound tree, today's linux-next build (x86_64 > > > a

[PATCH v4 0/2] Add new PHY APIs to framework to get/set PHY attributes

2020-07-16 Thread Swapnil Jakhade
This patch series adds a new pair of PHY APIs that can be used to get/set all the PHY attributes. It also adds a new PHY attribute max_link_rate. It includes following patches: 1. v4-0001-phy-Add-new-PHY-attribute-max_link_rate-and-APIs-.patch This patch adds max_link_rate as a new PHY attribute

[PATCH v4 2/2] phy: cadence-torrent: Use kernel PHY API to set PHY attributes

2020-07-16 Thread Swapnil Jakhade
Use generic PHY framework function phy_set_attrs() to set number of lanes and maximum link rate supported by PHY. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/d

[PATCH v4 1/2] phy: Add new PHY attribute max_link_rate and APIs to get/set PHY attributes

2020-07-16 Thread Swapnil Jakhade
Add new PHY attribute max_link_rate to struct phy_attrs. Add a pair of PHY APIs to get/set all the PHY attributes. Use phy_get_attrs() to get attribute values and phy_set_attrs() to set attribute values. Signed-off-by: Yuti Amonkar Signed-off-by: Swapnil Jakhade --- include/linux/phy/phy.h | 26

[PATCH v12 00/15] perf: support enable and disable commands in stat and record modes

2020-07-16 Thread Alexey Budankov
Changes in v12: - fixed fdarray sanity test (36) failure - due to usage of uninitialized memory after realloc() of priv data; added explicit memset(0) for newly allocated part - captured and mentioned acquired Acked-by tags v11: https://lore.kernel.org/lkml/037d737f-0ada-a9f0-9686-f7521ca6f.

Re: linux-next: manual merge of the tip tree with the crypto tree

2020-07-16 Thread Herbert Xu
On Fri, Jul 17, 2020 at 08:27:27AM +0200, Uros Bizjak wrote: > > I will prepare a v2 that leaves needed part of inst.h. Your patch has already been applied. So please make it an incremental patch. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gond

Re: [PATCH] crypto: xts: use memmove to avoid overlapped memory copy

2020-07-16 Thread Herbert Xu
On Fri, Jul 17, 2020 at 08:59:54AM +0300, Ard Biesheuvel wrote: > > Or change it to b[1] = b[0] (assuming the compiler allows struct > assignment in that way). This will always copy XTS_BLOCK_SIZE bytes, > but we have sufficient space, and it is probably more efficient too > in most cases. Sounds

Re: [PATCH][next] i2c: mv64xxx: Use fallthrough pseudo-keyword

2020-07-16 Thread Gregory CLEMENT
"Gustavo A. R. Silva" writes: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. > > [1] > https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > Signed-off-by

Re: [PATCH V4 0/7] Tegra XUSB charger detect support

2020-07-16 Thread Vinod Koul
On 16-07-20, 14:48, Thierry Reding wrote: > Hi Kishon, Vinod, > > did you have any further comments on this series or is it good to go > into v5.9? I dont have this series in my inbox, can you please rebase and resend -- ~Vinod

Re: [PATCH 1/2] irqchip: imx-intmux: add system PM support

2020-07-16 Thread kernel test robot
Hi Joakim, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/irq/core] [also build test ERROR on linux/master linus/master v5.8-rc5 next-20200716] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH v9 1/2] phy: qualcomm: add qcom ipq806x dwc usb phy driver

2020-07-16 Thread Vinod Koul
On 16-07-20, 13:55, Ansuel Smith wrote: > +static int qcom_ipq806x_usb_ss_phy_init(struct phy *phy) > +{ > + struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); > + int ret; > + u32 data; > + > + ret = clk_prepare_enable(phy_dwc3->xo_clk); > + if (ret) > + return ret;

Re: [PATCH -next] drm/komeda: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-16 Thread james qian wang (Arm Technology China)
On Thu, Jul 16, 2020 at 05:03:33PM +0800, Qinglang Miao wrote: > From: Liu Shixin > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Liu Shixin > --- > drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 13 + > 1 file changed, 1 insertion(+), 12 deletions(-

[PATCH v1 14/15] scsi: mvumi: use generic power management

2020-07-16 Thread Vaibhav Gupta
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. This driver makes use of PCI helper func

[PATCH v1 15/15] scsi: pmcraid: use generic power management

2020-07-16 Thread Vaibhav Gupta
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. This driver makes use of PCI helper func

[PATCH v1 12/15] scsi: 3w-9xxx: use generic power management

2020-07-16 Thread Vaibhav Gupta
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. This driver makes use of PCI helper func

Re: [PATCH v2] phy: renesas: rcar-gen3-usb2: fix SError happen if DEBUG_SHIRQ is enabled

2020-07-16 Thread Vinod Koul
hello Yoshihiro, On 13-07-20, 21:11, Yoshihiro Shimoda wrote: Please consider revising patch subject. It tell me you are fixing an error but it doesnt tell me what this patch is about :) Perhpas :move irq registration to init" maybe a better title which describes the changes this patch brings in

[RFC PATCH 1/1] Softirq:avoid large sched delay from the pending softirqs

2020-07-16 Thread qianjun . kernel
From: jun qian When get the pending softirqs, it need to process all the pending softirqs in the while loop. If the processing time of each pending softirq is need more than 2 msec in this loop, or one of the softirq will running a long time, according to the original code logic, it will process

[PATCH] partitions/efi: Replace HTTP links with HTTPS ones

2020-07-16 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH v1 11/15] scsi: hpsa: use generic power management

2020-07-16 Thread Vaibhav Gupta
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. Change function parameter in both .suspe

[PATCH v1 13/15] scsi: 3w-sas: use generic power management

2020-07-16 Thread Vaibhav Gupta
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. This driver makes use of PCI helper func

[PATCH v1 06/15] scsi: esas2r: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM, drivers themselves were responsible for managing the device's power states and takes care of register states. After upgrading to the generic structure, PCI core will take care of required tasks and drivers should do only device-specific operations. The driver was calling pci_save/

[PATCH v1 08/15] scsi: mpt3sas_scsih: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM, drivers themselves were responsible for managing the device's power states and takes care of register states. After upgrading to the generic structure, PCI core will take care of required tasks and drivers should do only device-specific operations. The driver was calling pci_save/

[PATCH v1 09/15] scsi: lpfc: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM, drivers themselves were responsible for managing the device's power states and takes care of register states. After upgrading to the generic structure, PCI core will take care of required tasks and drivers should do only device-specific operations. The driver was calling pci_save/

[PATCH v1 10/15] scsi: pm_8001: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM, drivers themselves were responsible for managing the device's power states and takes care of register states. After upgrading to the generic structure, PCI core will take care of required tasks and drivers should do only device-specific operations. The driver was calling pci_save/

[PATCH v1 07/15] scsi: hisi_sas_v3_hw: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM, drivers themselves were responsible for managing the device's power states and takes care of register states. After upgrading to the generic structure, PCI core will take care of required tasks and drivers should do only device-specific operations. The driver was calling pci_save/

[PATCH v1 00/15] scsi: use generic power management

2020-07-16 Thread Vaibhav Gupta
Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to upgrade power management in scsi drivers. This has been done by upgrading .suspend() and .resume() callbacks. The upgrade makes sure that the involvement of PCI Core does not change the order of operations

[PATCH v1 05/15] scsi: arcmsr: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM hooks, it was the responsibility of a driver to manage PCI states and also the device's power state. The generic approach is to let the PCI core handle the work. PCI core passes "struct device*" as an argument to the .suspend() and .resume() callbacks. Driver was also using PCI hel

[PATCH v1 01/15] scsi: megaraid_sas: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM hooks, it was the responsibility of a driver to manage PCI states and also the device's power state. The generic approach is to let the PCI core handle the work. PCI core passes "struct device*" as an argument to the .suspend() and .resume() callbacks. As the .suspend() work with "s

[PATCH v1 02/15] scsi: aacraid: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM hooks, it was the responsibility of a driver to manage PCI states and also the device's power state. The generic approach is to let the PCI core handle the work. PCI core passes "struct device*" as an argument to the .suspend() and .resume() callbacks. Driver was using PCI helper f

[PATCH v1 04/15] scsi: aic79xx: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM hooks, it was the responsibility of a driver to manage PCI states and also the device's power state. The generic approach is to let the PCI core handle the work. PCI core passes "struct device*" as an argument to the .suspend() and .resume() callbacks. Driver was using PCI helper f

[PATCH v1 03/15] scsi: aic7xxx: use generic power management

2020-07-16 Thread Vaibhav Gupta
With legacy PM hooks, it was the responsibility of a driver to manage PCI states and also the device's power state. The generic approach is to let the PCI core handle the work. PCI core passes "struct device*" as an argument to the .suspend() and .resume() callbacks. Driver was using PCI helper f

arch/mips/ralink/bootrom.c:17:22: sparse: sparse: incorrect type in argument 2 (different address spaces)

2020-07-16 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 07a56bb875afbe39dabbf6ba7b83783d166863db commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 4 weeks ago config: mips-randconfig-s031-20200717 (attached

Re: [PATCH] exfat: change exfat_set_vol_flags() return type void.

2020-07-16 Thread Tetsuhiro Kohada
On 2020/07/15 22:50, youngjun wrote: exfat_set_vol_flags() always return 0. So, change function return type as void. On the contrary, I think it should be fixed to return an appropriate error. @@ -114,7 +113,7 @@ int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flag)

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

2020-07-16 Thread Takashi Iwai
On Fri, 17 Jul 2020 07:33:24 +0200, Christoph Hellwig wrote: > > On Fri, Jul 17, 2020 at 01:01:12PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > After merging the sound tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > No, the sound commit needs to be reverted.

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-16 Thread Arnd Bergmann
On Fri, Jul 17, 2020 at 1:41 AM Atish Patra wrote: > > From: Anup Patel > > Currently, RISC-V reserves 1MB of fixmap memory for device tree. However, > it maps only single PMD (2MB) space for fixmap which leaves only < 1MB space > left for other kernel features such as early ioremap which require

[PATCH v2 4/8] spi: lantiq: Add support to acknowledge interrupt

2020-07-16 Thread Dilip Kota
On newer chipsets interrupt need to be acknowledged as they use different interrupt controller which does not acknowledge the interrupts automatically. Signed-off-by: Dilip Kota --- drivers/spi/spi-lantiq-ssc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/spi/spi-la

[PATCH v2 2/8] spi: lantiq: Add SMP support

2020-07-16 Thread Dilip Kota
Existing driver supports only single core SoC. New multicore platforms uses the same driver/IP so SMP support is required. This patch adds multicore support in the driver. Signed-off-by: Dilip Kota --- drivers/spi/spi-lantiq-ssc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/driver

[PATCH v2 1/8] spi: lantiq: fix: Rx overflow error in full duplex mode

2020-07-16 Thread Dilip Kota
In full duplex mode, rx overflow error is observed. To overcome the error, wait until the complete data got received and proceed further. Fixes: 17f84b793c01 ("spi: lantiq-ssc: add support for Lantiq SSC SPI controller") Signed-off-by: Dilip Kota --- drivers/spi/spi-lantiq-ssc.c | 10 ++

[PATCH v2 7/8] dt-bindings: spi: Add support to Lightning Mountain SoC

2020-07-16 Thread Dilip Kota
Add support to SPI controller on Intel Atom based Lightning Mountain SoC which reuses the Lantiq SPI controller IP. Signed-off-by: Dilip Kota Reviewed-by: Rob Herring --- .../devicetree/bindings/spi/spi-lantiq-ssc.txt | 21 +++-- 1 file changed, 19 insertions(+), 2 deletion

[PATCH v2 3/8] spi: lantiq: Move interrupt control register offesets to SoC specific data structure

2020-07-16 Thread Dilip Kota
Address of Interrupt control registers are different on new chipsets. So move them to SoC specific data structure. Signed-off-by: Dilip Kota --- drivers/spi/spi-lantiq-ssc.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-lantiq-ssc.c b/d

[PATCH v2 6/8] spi: lantiq: Move interrupt configuration to SoC specific data structure

2020-07-16 Thread Dilip Kota
Moving interrupt configuration to SoC specific data structure helps to add support for newer SoCs on which SPI controller with lesser interrupt lines compared to existing chipsets. Signed-off-by: Dilip Kota --- drivers/spi/spi-lantiq-ssc.c | 64 +++- 1 fil

[PATCH v2 8/8] spi: lantiq: Add support to Lightning Mountain SoC

2020-07-16 Thread Dilip Kota
Add support to SPI controller on Intel Atom based Lightning Mountain SoC which reuses Lantiq SPI controller IP. Signed-off-by: Dilip Kota --- drivers/spi/Kconfig | 4 ++-- drivers/spi/spi-lantiq-ssc.c | 40 2 files changed, 42 insertions(+), 2 d

[PATCH v2 5/8] spi: lantiq: Add fifo size bit mask in SoC specific data structure

2020-07-16 Thread Dilip Kota
On newer chipsets, SPI controller has fifos of larger size. So add the fifo size bit mask entry in SoC specific data structure. Signed-off-by: Dilip Kota --- drivers/spi/spi-lantiq-ssc.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/spi/spi-lant

Re: [PATCH] [PATCH] Firmware security information in SYSFS

2020-07-16 Thread Greg Kroah-Hartman
On Thu, Jul 16, 2020 at 07:36:27PM -0300, Daniel Gutson wrote: > +What:/sys/kernel/firmware-security/bioswe Ick, I stopped reading right here. No, this is not where this belongs. We already have /sys/firmware/, right? And firmware-specific subdirectories below that. We also hav

[PATCH 04/22] net: simplify cBPF setsockopt compat handling

2020-07-16 Thread Christoph Hellwig
Add a helper that copies either a native or compat bpf_fprog from userspace after verifying the length, and remove the compat setsockopt handlers that now aren't required. Signed-off-by: Christoph Hellwig --- include/linux/filter.h | 4 ++-- include/net/compat.h | 1 - net/compat.c

[PATCH 02/22] net: streamline __sys_setsockopt

2020-07-16 Thread Christoph Hellwig
Return early when sockfd_lookup_light fails to reduce a level of indentation for most of the function body. Signed-off-by: Christoph Hellwig --- net/socket.c | 57 +--- 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/net/socket.c b/

Re: linux-next: manual merge of the tip tree with the crypto tree

2020-07-16 Thread Uros Bizjak
On Fri, Jul 17, 2020 at 6:47 AM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the tip tree got a conflict in: > > arch/x86/include/asm/inst.h > > between commit: > > d7866e503bdc ("crypto: x86 - Remove include/asm/inst.h") > > from the crypto tree and commit: > > eaad98

[PATCH 05/22] net: remove compat_sock_common_{get,set}sockopt

2020-07-16 Thread Christoph Hellwig
Add the compat handling to sock_common_{get,set}sockopt instead, keyed of in_compat_syscall(). This allow to remove the now unused ->compat_{get,set}sockopt methods from struct proto_ops. Signed-off-by: Christoph Hellwig --- include/linux/net.h | 6 -- include/net/sock.h | 4 --

[PATCH 09/22] netfilter/ip6_tables: clean up compat {get,set}sockopt handling

2020-07-16 Thread Christoph Hellwig
Merge the native and compat {get,set}sockopt handlers using in_compat_syscall(). Signed-off-by: Christoph Hellwig --- net/ipv6/netfilter/ip6_tables.c | 87 - 1 file changed, 21 insertions(+), 66 deletions(-) diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6

sockopt cleanups

2020-07-16 Thread Christoph Hellwig
Hi Dave, this series cleans up various lose ends in the sockopt code, most importantly removing the compat_{get,set}sockopt infrastructure in favor of just using in_compat_syscall() in the few places that care. Diffstat: arch/arm64/include/asm/unistd32.h |4 arch/mips/kerne

[PATCH 01/22] net/atm: remove the atmdev_ops {get,set}sockopt methods

2020-07-16 Thread Christoph Hellwig
All implementations of these two methods are dummies that always return -EINVAL. Signed-off-by: Christoph Hellwig --- drivers/atm/eni.c| 17 - drivers/atm/firestream.c | 2 -- drivers/atm/fore200e.c | 27 --- drivers/atm/horizon.c| 40 --

[PATCH 08/22] netfilter/ip_tables: clean up compat {get,set}sockopt handling

2020-07-16 Thread Christoph Hellwig
Merge the native and compat {get,set}sockopt handlers using in_compat_syscall(). Signed-off-by: Christoph Hellwig --- net/ipv4/netfilter/ip_tables.c | 86 +- 1 file changed, 21 insertions(+), 65 deletions(-) diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/

[PATCH 10/22] netfilter/ebtables: clean up compat {get,set}sockopt handling

2020-07-16 Thread Christoph Hellwig
Merge the native and compat {get,set}sockopt handlers using in_compat_syscall(). Note that this required moving a fair amout of code around to be done sanely. Signed-off-by: Christoph Hellwig --- net/bridge/netfilter/ebtables.c | 214 +++- 1 file changed, 98 insertio

[PATCH 13/22] netfilter: split nf_sockopt

2020-07-16 Thread Christoph Hellwig
Split nf_sockopt into a getsockopt and setsockopt side as they share very little code. Signed-off-by: Christoph Hellwig --- net/netfilter/nf_sockopt.c | 30 +- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/net/netfilter/nf_sockopt.c b/net/netfilter/n

[PATCH 11/22] netfilter: remove the compat_{get,set} methods

2020-07-16 Thread Christoph Hellwig
All instances handle compat sockopts via in_compat_syscall() now, so remove the compat_{get,set} methods as well as the compat_nf_{get,set}sockopt wrappers. Signed-off-by: Christoph Hellwig --- include/linux/netfilter.h | 14 - net/ipv4/ip_sockglue.c | 5 ++--- net/ipv6/ipv6_so

[PATCH 14/22] net/ipv4: factor out MCAST_MSFILTER getsockopt helpers

2020-07-16 Thread Christoph Hellwig
Factor out one helper each for getting the native and compat version of the MCAST_MSFILTER option. Signed-off-by: Christoph Hellwig --- net/ipv4/ip_sockglue.c | 131 ++--- 1 file changed, 70 insertions(+), 61 deletions(-) diff --git a/net/ipv4/ip_sockglue.c b

[PATCH 17/22] net/ipv4: remove compat_ip_{get,set}sockopt

2020-07-16 Thread Christoph Hellwig
Handle the few cases that need special treatment in-line using in_compat_syscall(). Signed-off-by: Christoph Hellwig --- include/net/ip.h | 4 - net/dccp/ipv4.c| 4 - net/ipv4/ip_sockglue.c | 214 - net/ipv4/raw.c | 22 - net

[PATCH 15/22] net/ipv4: factor out MCAST_MSFILTER setsockopt helpers

2020-07-16 Thread Christoph Hellwig
Factor out one helper each for setting the native and compat version of the MCAST_MSFILTER option. Signed-off-by: Christoph Hellwig --- net/ipv4/ip_sockglue.c | 162 ++--- 1 file changed, 86 insertions(+), 76 deletions(-) diff --git a/net/ipv4/ip_sockglue.c b

[PATCH 07/22] netfilter/arp_tables: clean up compat {get,set}sockopt handling

2020-07-16 Thread Christoph Hellwig
Merge the native and compat {get,set}sockopt handlers using in_compat_syscall(). Signed-off-by: Christoph Hellwig --- net/ipv4/netfilter/arp_tables.c | 85 - 1 file changed, 21 insertions(+), 64 deletions(-) diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4

[PATCH 22/22] net: make ->{get,set}sockopt in proto_ops optional

2020-07-16 Thread Christoph Hellwig
Just check for a NULL method instead of wiring up sock_no_{get,set}sockopt. Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 1 - crypto/algif_aead.c | 4 crypto/algif_hash.c | 4 crypto/algif_rng.c | 2 -- crypto/algif_skcipher.c | 4

[PATCH 20/22] net/ipv6: factor out mcast join/leave setsockopt helpers

2020-07-16 Thread Christoph Hellwig
Factor out one helper each for setting the native and compat version of the MCAST_MSFILTER option. Signed-off-by: Christoph Hellwig --- net/ipv6/ipv6_sockglue.c | 103 --- 1 file changed, 53 insertions(+), 50 deletions(-) diff --git a/net/ipv6/ipv6_sockglue.c

[PATCH 06/22] net: remove compat_sys_{get,set}sockopt

2020-07-16 Thread Christoph Hellwig
Now that the ->compat_{get,set}sockopt proto_ops methods are gone there is no good reason left to keep the compat syscalls separate. This fixes the odd use of unsigned int for the compat_setsockopt optlen and the missing sock_use_custom_sol_socket. It would also easily allow running the eBPF hook

[PATCH 21/22] net/ipv6: remove compat_ipv6_{get,set}sockopt

2020-07-16 Thread Christoph Hellwig
Handle the few cases that need special treatment in-line using in_compat_syscall(). This also removes all the now unused compat_{get,set}sockopt methods. Signed-off-by: Christoph Hellwig --- include/net/inet_connection_sock.h | 13 -- include/net/ipv6.h | 4 - include/net/sct

[PATCH 18/22] net/ipv6: factor out MCAST_MSFILTER getsockopt helpers

2020-07-16 Thread Christoph Hellwig
Factor out one helper each for getting the native and compat version of the MCAST_MSFILTER option. Signed-off-by: Christoph Hellwig --- net/ipv6/ipv6_sockglue.c | 139 +-- 1 file changed, 74 insertions(+), 65 deletions(-) diff --git a/net/ipv6/ipv6_sockglue.c

[PATCH 19/22] net/ipv6: factor out MCAST_MSFILTER setsockopt helpers

2020-07-16 Thread Christoph Hellwig
Factor out one helper each for setting the native and compat version of the MCAST_MSFILTER option. Signed-off-by: Christoph Hellwig --- net/ipv6/ipv6_sockglue.c | 159 --- 1 file changed, 83 insertions(+), 76 deletions(-) diff --git a/net/ipv6/ipv6_sockglue.c

[PATCH 16/22] net/ipv4: factor out mcast join/leave setsockopt helpers

2020-07-16 Thread Christoph Hellwig
Factor out one helper each for setting the native and compat version of the MCAST_MSFILTER option. Signed-off-by: Christoph Hellwig --- net/ipv4/ip_sockglue.c | 109 + 1 file changed, 56 insertions(+), 53 deletions(-) diff --git a/net/ipv4/ip_sockglue.c b

[PATCH 12/22] netfilter: remove the compat argument to xt_copy_counters_from_user

2020-07-16 Thread Christoph Hellwig
Lift the in_compat_syscall() from the callers instead. Signed-off-by: Christoph Hellwig --- include/linux/netfilter/x_tables.h | 2 +- net/ipv4/netfilter/arp_tables.c| 3 +-- net/ipv4/netfilter/ip_tables.c | 3 +-- net/ipv6/netfilter/ip6_tables.c| 3 +-- net/netfilter/x_tables.c

[PATCH 03/22] net: streamline __sys_getsockopt

2020-07-16 Thread Christoph Hellwig
Return early when sockfd_lookup_light fails to reduce a level of indentation for most of the function body. Signed-off-by: Christoph Hellwig --- net/socket.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/net/socket.c b/net/socket.c index 49

[PATCH] net: cxgb3: add missed destroy_workqueue in cxgb3 probe failure

2020-07-16 Thread Wang Hai
The driver forgets to call destroy_workqueue when cxgb3 probe fails. Add the missed calls to fix it. Fixes: 4d22de3e6cc4 ("Add support for the latest 1G/10G Chelsio adapter, T3.") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 1 + 1 file c

[PATCH] net: cxgb3: add missed destroy_workqueue in nci_register_device

2020-07-16 Thread Wang Hai
When nfc_register_device fails in nci_register_device, destroy_workqueue() shouled be called to destroy ndev->tx_wq. Fixes: 3c1c0f5dc80b ("NFC: NCI: Fix nci_register_device init sequence") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- net/nfc/nci/core.c | 5 - 1 file changed, 4 insert

Re: [PATCH 2/2] usb: typec: intel_pmc_mux: Check the port status before connect

2020-07-16 Thread Greg Kroah-Hartman
On Fri, Jul 17, 2020 at 06:04:51AM +, Mani, Rajmohan wrote: > Hi Greg, > > > -Original Message- > > From: Greg Kroah-Hartman > > Sent: Thursday, July 16, 2020 12:05 AM > > To: Mani, Rajmohan > > Cc: Darren Hart ; Andy Shevchenko > > ; Mika Westerberg > > ; Dmitry Torokhov > > ; Lee J

net: decnet: TODO Items

2020-07-16 Thread Suraj Upadhyay

Re: [PATCH 1/2] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-07-16 Thread Greg Kroah-Hartman
On Fri, Jul 17, 2020 at 06:03:55AM +, Mani, Rajmohan wrote: > Hi Greg, > > Thanks for the reviews. > > > -Original Message- > > From: Greg Kroah-Hartman > > Sent: Thursday, July 16, 2020 12:10 AM > > To: Mani, Rajmohan > > Cc: Darren Hart ; Andy Shevchenko > > ; Mika Westerberg > >

Re: [PATCH v6 2/2] clocksource: Ingenic: Add support for the Ingenic X1000 OST.

2020-07-16 Thread Zhou Yanjie
Hi Daniel, 在 2020/7/17 下午12:20, Daniel Lezcano 写道: On 10/07/2020 19:02, 周琰杰 (Zhou Yanjie) wrote: X1000 and SoCs after X1000 (such as X1500 and X1830) had a separate OST, it no longer belongs to TCU. This driver will register both a clocksource and a sched_clock to the system. Tested-by: 周正 (Zh

[PATCH] drm/i915: Don't force IOSF_MBI

2020-07-16 Thread Jisheng Zhang
The i915 doesn't depend on IOSF_MBI, asm/iosf_mbi.h already defines isof_mbi_* APIs when ISOF_MBI is disabled. Don't force IOSF_MBI to allow disabling IOSF_MBI for non SoC platforms. Signed-off-by: Jisheng Zhang --- drivers/gpu/drm/i915/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a

Re: [PATCH][next] tty: Avoid the use of one-element arrays

2020-07-16 Thread Jiri Slaby
ues/79 > [2] https://github.com/KSPP/linux/issues/86 > > Tested-by: kernel test robot > Link: > https://github.com/GustavoARSilva/linux-hardening/blob/master/cii/0-day/tty-20200716.md > Signed-off-by: Gustavo A. R. Silva Acked-by: Jiri Slaby thanks, -- js suse labs

Re: [PATCH 2/2] Input: elan_i2c - Modify the IAP related functio n for page sizes 128, 512 bytes.

2020-07-16 Thread Dmitry Torokhov
On Thu, Jul 16, 2020 at 06:27:19PM -0700, Dmitry Torokhov wrote: > Hi Jingle, > > On Thu, Jul 16, 2020 at 02:15:23PM +0800, jingle.wu wrote: > > HI Dmitry: > > > > Just to confirm, the older devices (I assume that pattern 0 means older) > > have version command that is numerically higher than th

[PATCH] tools/power turbostat: call pread64 in kernel directly

2020-07-16 Thread Liwei Song
with 32-bit rootfs, the offset may out of range when set it to 0xc0010299, define it as "unsigned long long" type and call pread64 directly in kernel. Signed-off-by: Liwei Song --- tools/power/x86/turbostat/turbostat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tool

Re: [PATCH 0/2] Update CascadelakeX and SkylakeX events list

2020-07-16 Thread Jin, Yao
Hi, On 6/17/2020 3:38 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Jun 16, 2020 at 02:27:40PM +0800, Jin, Yao escreveu: On 6/16/2020 2:16 PM, Ian Rogers wrote: On Mon, Jun 15, 2020 at 6:00 PM Jin, Yao wrote: Can I get an ACK for this patchset? On 6/3/2020 10:18 AM, Jin Yao wrote: This patchs

Re: clean up address limit helpers v2

2020-07-16 Thread Christoph Hellwig
On Thu, Jul 16, 2020 at 04:49:24PM -0700, Andrew Morton wrote: > On Tue, 14 Jul 2020 12:54:59 +0200 Christoph Hellwig wrote: > > > Hi all, > > > > in preparation for eventually phasing out direct use of set_fs(), this > > series removes the segment_eq() arch helper that is only used to > > imple

[PATCH net-next] net: hyperv: Add attributes to show RX/TX indirection table

2020-07-16 Thread Chi Song
The network is observed with low performance, if TX indirection table is imbalance. But the table is in memory and set in runtime, it's hard to know. Add them to attributes can help on troubleshooting. --- drivers/net/hyperv/netvsc_drv.c | 46 + 1 file changed, 46

RE: [PATCH 2/2] usb: typec: intel_pmc_mux: Check the port status before connect

2020-07-16 Thread Mani, Rajmohan
Hi Greg, > -Original Message- > From: Greg Kroah-Hartman > Sent: Thursday, July 16, 2020 12:05 AM > To: Mani, Rajmohan > Cc: Darren Hart ; Andy Shevchenko > ; Mika Westerberg > ; Dmitry Torokhov > ; Lee Jones ; Ayman > Bagabas ; Masahiro Yamada > ; Joseph, Jithu ; Blaž > Hrastnik ; Srini

RE: [PATCH 1/2] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-07-16 Thread Mani, Rajmohan
Hi Greg, Thanks for the reviews. > -Original Message- > From: Greg Kroah-Hartman > Sent: Thursday, July 16, 2020 12:10 AM > To: Mani, Rajmohan > Cc: Darren Hart ; Andy Shevchenko > ; Mika Westerberg > ; Dmitry Torokhov > ; Lee Jones ; Ayman > Bagabas ; Masahiro Yamada > ; Joseph, Jithu

Re: [PATCH] crypto: xts: use memmove to avoid overlapped memory copy

2020-07-16 Thread Ard Biesheuvel
On Fri, 17 Jul 2020 at 08:21, Herbert Xu wrote: > > On Thu, Jul 16, 2020 at 06:56:30PM +0300, Ard Biesheuvel wrote: > > On Thu, 16 Jul 2020 at 18:29, Colin King wrote: > > > > > > From: Colin Ian King > > > > > > There is a memcpy that performs a potential overlapped memory copy > > > from sourc

Re: [PATCH v6 9/9] remoteproc: Properly handle firmware name when attaching

2020-07-16 Thread Bjorn Andersson
On Tue 14 Jul 12:50 PDT 2020, Mathieu Poirier wrote: > This patch prevents the firmware image name from being displayed when > the remoteproc core is attaching to a remote processor. This is needed > needed since there is no guarantee about the nature of the firmware > image that is loaded by the

Re: [PATCH v3] powerpc/pseries: detect secure and trusted boot state of the system.

2020-07-16 Thread Daniel Axtens
Michal Suchánek writes: > On Wed, Jul 15, 2020 at 07:52:01AM -0400, Nayna Jain wrote: >> The device-tree property to check secure and trusted boot state is >> different for guests(pseries) compared to baremetal(powernv). >> >> This patch updates the existing is_ppc_secureboot_enabled() and >> is

linux-next: build failure after merge of the kvm tree

2020-07-16 Thread Stephen Rothwell
Hi all, After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kernel/kvm.c: In function '__sysvec_kvm_asyncpf_interrupt': arch/x86/kernel/kvm.c:275:13: error: implicit declaration of function 'idtentry_enter_cond_rcu'; did you mean 'idtentry_enter_

Re: [PATCH v3 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-16 Thread Anup Patel
On Fri, Jul 17, 2020 at 10:58 AM Daniel Lezcano wrote: > > On 17/07/2020 07:21, Anup Patel wrote: > > On Fri, Jul 17, 2020 at 2:57 AM Daniel Lezcano > > wrote: > >> > >> > >> Hi Anup, > >> > >> > >> On 15/07/2020 09:15, Anup Patel wrote: > >>> The TIME CSR and SBI calls are not available in RISC-

  1   2   3   4   5   6   7   8   9   10   >