Re: [PATCH net] net/packet: Fix a comment about hard_header_len and headroom allocation

2020-09-08 Thread Xie He
On Tue, Sep 8, 2020 at 1:56 AM Willem de Bruijn wrote: > > > > > /* > > > > Assumptions: > > > > - - if device has no dev->hard_header routine, it adds and removes ll > > > > header > > > > - inside itself. In this case ll header is invisible outside of > > > > device, > > > > - b

Re: [PATCH v5 00/21] kprobes: Unify kretprobe trampoline handlers and make kretprobe lockless

2020-09-08 Thread peterz
On Tue, Sep 08, 2020 at 11:15:14AM +, eddy...@trendmicro.com wrote: > > From: pet...@infradead.org > > > > I'm now trying and failing to reproduce I can't seem to make it use > > int3 today. It seems to want to use ftrace or refuses everything. I'm > > probably doing it wrong. > > > > You

Re: [PATCH] video: fbdev: radeon: Fix memleak in radeonfb_pci_register

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/25/20 9:47 AM, Mathieu Malaterre wrote: > On Tue, Aug 25, 2020 at 9:27 AM Dinghao Liu wrote: >> >> When radeon_kick_out_firmware_fb() fails, info should be >> freed just like the subsequent error paths. >> >> Fixes: 069ee21a82344 ("fbdev: Fix loading of module radeonfb on PowerMac") >> Sign

Re: [PATCH RFC 0/7] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-09-08 Thread Allan W. Nielsen
Hi, On 08.09.2020 11:04, Henrik Bjoernlund - M31679 wrote: On Sun, 2020-09-06 at 20:21 +0200, Horatiu Vultur wrote: The 09/04/2020 15:44, Stephen Hemminger wrote: > On Fri, 4 Sep 2020 09:15:20 + Henrik Bjoernlund > wrote: Hi, I also had the same initial thought - this really doesn't seem

Re: [PATCH] fbdev: remove mbx framebuffer driver

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/30/20 1:55 PM, Mike Rapoport wrote: > From: Mike Rapoport > > The only in-tree user for mbx driver for Intel 2700G graphics chip was > cm-x270 platform. Since this platform was removed by the commit > 9d3239147d6d ("ARM: pxa: remove Compulab pxa2xx boards") there is no > point to keep the

Re: [PATCH RFC 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-08 Thread Vlastimil Babka
On 9/7/20 3:40 PM, Marco Elver wrote: > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > low-overhead sampling-based memory safety error detector of heap > use-after-free, invalid-free, and out-of-bounds access errors. This > series enables KFENCE for the x86 and arm64 ar

Re: [PATCH 5/7] cpufreq: qcom-hw: Use regmap for accessing hardware registers

2020-09-08 Thread Amit Kucheria
On Tue, Sep 8, 2020 at 4:48 PM Viresh Kumar wrote: > > On 08-09-20, 16:41, Manivannan Sadhasivam wrote: > > On 0908, Viresh Kumar wrote: > > > On 08-09-20, 13:27, Manivannan Sadhasivam wrote: > > > > Use regmap for accessing cpufreq registers in hardware. > > > > > > Why ? Please mention why a cha

Re: Question about dev_validate_header used in af_packet.c

2020-09-08 Thread Willem de Bruijn
On Tue, Sep 8, 2020 at 1:04 PM Xie He wrote: > > On Tue, Sep 8, 2020 at 1:41 AM Willem de Bruijn > wrote: > > > > The intent is to bypass such validation to be able to test device > > drivers. Note that removing that may cause someone's test to start > > failing. > > > > > So there's no point in

Re: [PATCH RFC 07/10] kfence, kmemleak: make KFENCE compatible with KMEMLEAK

2020-09-08 Thread Catalin Marinas
On Mon, Sep 07, 2020 at 03:40:52PM +0200, Marco Elver wrote: > From: Alexander Potapenko > > Add compatibility with KMEMLEAK, by making KMEMLEAK aware of the KFENCE > memory pool. This allows building debug kernels with both enabled, which > also helped in debugging KFENCE. > > Co-developed-by:

Re: [PATCH 1/2] arm64/mm: Change THP helpers to comply with generic MM semantics

2020-09-08 Thread Catalin Marinas
On Tue, Sep 08, 2020 at 03:48:08PM +0530, Anshuman Khandual wrote: > On 09/03/2020 10:26 PM, Catalin Marinas wrote: > > On Mon, Aug 17, 2020 at 02:49:43PM +0530, Anshuman Khandual wrote: > >> pmd_present() and pmd_trans_huge() are expected to behave in the following > >> manner during various phase

Re: [PATCH] dmaengine: Kconfig: Update description for RCAR_DMAC config

2020-09-08 Thread Lad, Prabhakar
Hi Geert, Thank you for the review. On Tue, Sep 8, 2020 at 12:22 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Tue, Sep 8, 2020 at 1:06 PM Lad Prabhakar > wrote: > > rcar-dmac driver is used on Renesas R-Car Gen2 and Gen3 devices > > update the same to reflect the description for RCAR_D

Re: 5.9-rc4: modpost undefined symbols + relocation in read-only section `.head.text'

2020-09-08 Thread Meelis Roos
Replying to myself: This is 5.9-rc4 git on a specific amd64 machine with Debian unstable and custom kernel config. 5.8 compiled and worked fine, I have seen something like this with different 5.9-git commits. I made sure my binutils and gcc-10 are up to date in Debian unstable and retried wit

Re: [RFC PATCH v3 1/1] mmap_lock: add tracepoints around mmap_lock acquisition

2020-09-08 Thread Yafang Shao
On Fri, Jun 19, 2020 at 6:43 AM Axel Rasmussen wrote: > > The goal is to be able to collect a latency histogram for contended > mmap_lock acquisitions. This will be used to diagnose slowness observed > in production workloads, as well as to measure the effect of upcoming > mmap_lock optimizations

Re: [PATCH v2 2/5] seqlock: Use unique prefix for seqcount_t property accessors

2020-09-08 Thread peterz
On Fri, Sep 04, 2020 at 05:32:28PM +0200, Ahmed S. Darwish wrote: > static __always_inline seqcount_t * \ > -__seqcount_##lockname##_ptr(seqcount_##lockname##_t *s) > \ > +__seqprop_seqcount_##lockname##_ptr(seqcount_##lockname##_t *s)

Re: [PATCH v2] dwc3-of-simple: add support for Hikey 970

2020-09-08 Thread Felipe Balbi
Hi, Mauro Carvalho Chehab writes: >> Mauro Carvalho Chehab writes: >> > This binding driver is needed for Hikey 970 to work, >> > as otherwise a Serror is produced: >> >> you mentioned Serror doesn't happen anymore... >> >> > [1.837458] SError Interrupt on CPU0, code 0xbf02 -- S

Re: [PATCH v2 4/5] seqlock: seqcount_LOCKNAME_t: Introduce PREEMPT_RT support

2020-09-08 Thread peterz
On Fri, Sep 04, 2020 at 05:32:30PM +0200, Ahmed S. Darwish wrote: > @@ -406,13 +443,20 @@ static inline int read_seqcount_t_retry(const > seqcount_t *s, unsigned start) > return __read_seqcount_t_retry(s, start); > } > > +/* > + * Enforce non-preemptibility for all seqcount_LOCKNAME_t wri

Re: [PATCH v1 0/2] video: fbdev: radeonfb: PCI PM framework upgrade and fix-ups.

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 9/7/20 9:02 AM, Vaibhav Gupta wrote: > Linux Kernel Mentee: Remove Legacy Power Management. > > The original goal of the patch series is to upgrade the power management > framework of radeonfb fbdev driver. This has been done by upgrading .suspend() > and .resume() callbacks. > > The upgrad

Re: [PATCH] video: fbdev: remove set but not used 'ulBestVCO'

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/27/20 3:00 PM, Jason Yan wrote: > This addresses the following gcc warning with "make W=1": > > drivers/video/fbdev/kyro/STG4000InitDevice.c: In function > ‘ProgramClock’: > drivers/video/fbdev/kyro/STG4000InitDevice.c:123:6: warning: variable > ‘ulBestVCO’ set but not used [-Wunused-but-se

Re: [PATCH] video: fbdev: remove set but not used 'ulCoreClock'

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/27/20 3:00 PM, Jason Yan wrote: > This addresses the following gcc warning with "make W=1": > > drivers/video/fbdev/kyro/STG4000InitDevice.c: In function > ‘SetCoreClockPLL’: > drivers/video/fbdev/kyro/STG4000InitDevice.c:247:6: warning: variable > ‘ulCoreClock’ set but not used [-Wunused-b

Re: [PATCH v2] lib/fonts: add font 6x8 for OLED display

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/20/20 10:42 AM, Greg Kroah-Hartman wrote: > On Thu, Aug 20, 2020 at 10:21:37AM +0200, Sascha Hauer wrote: >> From: Sven Schneider >> >> This font is derived from lib/fonts/font_6x10.c and is useful for small >> OLED displays >> >> Signed-off-by: Sven Schneider >> Signed-off-by: Sascha Hau

Re: [PATCH] docs: fb: Correcting the location of FRAMEBUFFER_CONSOLE option.

2020-09-08 Thread Bartlomiej Zolnierkiewicz
[ added linux-fbdev ML to Cc: ] On 8/24/20 4:51 PM, Bilal Wasim wrote: > fbcon doc mentions FRAMEBUFFER_CONSOLE option to be under > Device Drivers->Graphics Support->Frame buffer Devices-> > Console display driver support->Framebuffer Console Support, > while its under Device Drivers->Graphics

Re: [PATCH 22/29] video: fbdev: Avoid comma separated statements

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/25/20 6:56 AM, Joe Perches wrote: > Use semicolons and braces. > > Signed-off-by: Joe Perches Applied to drm-misc-next tree, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > drivers/video/fbdev/tgafb.c | 12 > 1 fi

Re: [PATCH] video: fbdev: replace spurious snprintf() with sprintf()

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/24/20 7:44 PM, Alex Dewar wrote: > par->vgapass is a u8, so if we are assuming that buf is at least > PAGE_SIZE then the extra checking is pointless. > > Signed-off-by: Alex Dewar Applied to drm-misc-next tree, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Pola

Re: [PATCH] coccinelle: api: fix kobj_to_dev.cocci warnings

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/26/20 10:54 PM, Julia Lawall wrote: > From: kernel test robot > > Use kobj_to_dev() instead of container_of() > > Generated by: scripts/coccinelle/api/kobj_to_dev.cocci > > Fixes: a2fc3718bc22 ("coccinelle: api: add kobj_to_dev.cocci script") > CC: Denis Efremov > Signed-off-by: kernel

Re: [PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-09-08 Thread Bartlomiej Zolnierkiewicz
Hi, On 8/10/20 11:21 AM, kernel test robot wrote: > From: kernel test robot > > drivers/video/fbdev/core/fbcon.c:3509:8-16: WARNING: use scnprintf or sprintf > drivers/video/fbdev/core/fbcon.c:3484:8-16: WARNING: use scnprintf or sprintf > > > From Documentation/filesystems/sysfs.txt: > s

Re: [PATCH] video: fbdev: sis: fix null ptr dereference

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/5/20 4:52 PM, t...@redhat.com wrote: > From: Tom Rix > > Clang static analysis reports this representative error > > init.c:2501:18: warning: Array access (from variable 'queuedata') results > in a null pointer dereference > templ |= ((queuedata[i] & 0xc0) << 3); > > This is the

Re: [PATCH v4 1/1] drm: allow limiting the scatter list size.

2020-09-08 Thread Daniel Vetter
On Tue, Sep 08, 2020 at 12:02:53PM +0200, Gerd Hoffmann wrote: > > > > The comments I've found suggest very much not ... Or is that all very > > > > old stuff only that no one cares about anymore? > > > > > > I think these days it is possible to override dma_ops per device, which > > > in turn all

Re: [PATCH] video: fbdev: fix setting of pixclock because a pass-by-value error

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 7/23/20 7:02 PM, Colin King wrote: > From: Colin Ian King > > The pixclock is being set locally because it is being passed as a > pass-by-value argument rather than pass-by-reference, so the computed > pixclock is never being set in var->pixclock. Fix this by passing > by reference. > > [Th

Re: [PATCH v4] video: fbdev: ssd1307fb: Added support to Column offset

2020-09-08 Thread Bartlomiej Zolnierkiewicz
[ added dri-devel ML to Cc: ] On 7/27/20 10:40 PM, Rob Herring wrote: > On Fri, 24 Jul 2020 17:22:18 -0300, Rodrigo Alencar wrote: >> This patch provides support for displays like VGM128064B0W10, >> which requires a column offset of 2, i.e., its segments starts >> in SEG2 and ends in SEG129. >>

Re: [PATCH 1/3] drm/qxl: use drmm_mode_config_init

2020-09-08 Thread Daniel Vetter
On Tue, Sep 08, 2020 at 11:39:10AM +0200, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann Btw going all in on devm_drm_dev_alloc and managed functions might be good cleanup for virtio. Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/qxl/qxl_display.c | 5 +++-- > 1 file changed, 3 inse

Re: [PATCH 5/7] cpufreq: qcom-hw: Use regmap for accessing hardware registers

2020-09-08 Thread Viresh Kumar
On 08-09-20, 16:41, Manivannan Sadhasivam wrote: > On 0908, Viresh Kumar wrote: > > On 08-09-20, 13:27, Manivannan Sadhasivam wrote: > > > Use regmap for accessing cpufreq registers in hardware. > > > > Why ? Please mention why a change is required in the log. > > > > Only because it is recommen

Re: [PATCH v4 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-09-08 Thread Viresh Kumar
On 08-09-20, 19:10, Hector Yuan wrote: > OK, I will define the corresponding exit function. Also please add remove() corresponding to probe(). -- viresh

[PATCH v1 1/2] x86/cpu: replace two-condition switch-case with if statement

2020-09-08 Thread Tony W Wang-oc
Use if-case instead two-condition switch-case. Signed-off-by: Tony W Wang-oc --- arch/x86/kernel/cpu/centaur.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/arch/x86/kernel/cpu/centaur.c b/arch/x86/kernel/cpu/centaur.c index c5cf336..5f811586 100644

My Dear in the lord

2020-09-08 Thread Mrs. Mina A, Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited t

Re: [PATCH 2/7] arm64: dts: qcom: sm8250: Add cpufreq hw node

2020-09-08 Thread Viresh Kumar
On 08-09-20, 13:27, Manivannan Sadhasivam wrote: > From: Bjorn Andersson > > Add cpufreq HW device node to scale 4-Silver/3-Gold/1-Gold+ cores > on SM8250 SoCs. > > Signed-off-by: Bjorn Andersson > Signed-off-by: Manivannan Sadhasivam > --- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 22

Re: [PATCH 5/7] cpufreq: qcom-hw: Use regmap for accessing hardware registers

2020-09-08 Thread Manivannan Sadhasivam
On 0908, Viresh Kumar wrote: > On 08-09-20, 13:27, Manivannan Sadhasivam wrote: > > Use regmap for accessing cpufreq registers in hardware. > > Why ? Please mention why a change is required in the log. > Only because it is recommended to use regmap for abstracting the hw access. Moreover it hand

[PATCH] scsi: hpsa: fix memory leak in hpsa_init_one

2020-09-08 Thread Keita Suzuki
When hpsa_scsi_add_host fails, h->lastlogicals is leaked since it lacks free in the error handler. Fix this by adding free when hpsa_scsi_add_host fails. Signed-off-by: Keita Suzuki --- drivers/scsi/hpsa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.

Re: Question about dev_validate_header used in af_packet.c

2020-09-08 Thread Xie He
On Tue, Sep 8, 2020 at 4:53 AM Willem de Bruijn wrote: > > On Tue, Sep 8, 2020 at 1:04 PM Xie He wrote: > > > > I was recently looking at some drivers, and I felt that if af_packet.c > > could help me filter out the invalid RAW frames, I didn't need to > > check the validity of the frames myself

Re: [PATCH v2] Improve perf option help information in perf.txt

2020-09-08 Thread Namhyung Kim
On Tue, Sep 8, 2020 at 8:16 PM Zejiang Tang wrote: > > Perf could use many options, such as:-vv, --exec-path, > --html-path, -p, --paginate,--no-pager, --debugfs-dir, > --buildid-dir, --list-cmds, --list-opts. Add these options > in perf.txt. > > Signed-off-by: Zejiang Tang > --- > tools/perf/Do

Re: [PATCH RFC 6/7] bridge: cfm: Netlink Notifications.

2020-09-08 Thread Nikolay Aleksandrov
On Fri, 2020-09-04 at 09:15 +, Henrik Bjoernlund wrote: > This is the implementation of Netlink notifications out of CFM. > > Notifications are initiated whenever a state change happens in CFM. > [snip] > @@ -445,6 +458,7 @@ static int br_cfm_frame_rx(struct net_bridge_port *port, > struct s

Re: [PATCH net-next v3 3/3] net: dp83869: Add speed optimization feature

2020-09-08 Thread Dan Murphy
Jakub On 9/5/20 1:38 PM, Jakub Kicinski wrote: On Thu, 3 Sep 2020 06:42:59 -0500 Dan Murphy wrote: +static int dp83869_set_downshift(struct phy_device *phydev, u8 cnt) +{ + int val, count; + + if (cnt > DP83869_DOWNSHIFT_8_COUNT) + return -E2BIG; ERANGE This is not

Re: [PATCH 1/3] device: property: add helpers to count items in string arrays

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 08, 2020 at 02:58:11PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Instead of doing the following: > > count = device_property_read_string_array(dev, propname, NULL, 0); > > Let's provide inline helpers with hardcoded arguments for counting > strings in pro

Re: [PATCH 6/7] cpufreq: qcom-hw: Add cpufreq support for SM8250 SoC

2020-09-08 Thread Amit Kucheria
On Tue, Sep 8, 2020 at 1:27 PM Manivannan Sadhasivam wrote: > > SM8250 SoC uses EPSS block for carrying out the cpufreq duties. Hence, add > support for it in the driver with relevant of_match data. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Amit Kucheria > --- > drivers/cpufreq/q

[PATCH v2 0/2] PCI: Add new Unisoc PCIe driver

2020-09-08 Thread Hongtao Wu
From: Billows Wu This series adds PCIe controller driver for Unisoc SoCs. This controller is based on DesignWare PCIe IP. Changes from v1: 1) Test this patch on top of Rob Herring's 40 part series of DWC clean-ups: https://lore.kernel.org/linux-pci/20200821035420.380495-1-r...@kernel.org/ 2)

Re: [RFC PATCH v2 1/3] mm/gup: fix gup_fast with dynamic page table folding

2020-09-08 Thread Christophe Leroy
Le 08/09/2020 à 14:09, Christian Borntraeger a écrit : On 08.09.20 07:06, Christophe Leroy wrote: Le 07/09/2020 à 20:00, Gerald Schaefer a écrit : From: Alexander Gordeev Commit 1a42010cdc26 ("s390/mm: convert to the generic get_user_pages_fast code") introduced a subtle but severe bug

[PATCH] mm/vmscan: fix infinite loop in drop_slab_node

2020-09-08 Thread zangchunxin
From: Chunxin Zang On our server, there are about 10k memcg in one machine. They use memory very frequently. When I tigger drop caches,the process will infinite loop in drop_slab_node. There are two reasons: 1.We have too many memcgs, even though one object freed in one memcg, the sum of object

Re: [PATCH 00/10] dt-bindings: Convert SP805 to Json-schema (and fix users)

2020-09-08 Thread Sudeep Holla
On Fri, 28 Aug 2020 14:05:52 +0100, Andre Przywara wrote: > This is an attempt to convert the SP805 watchdog DT binding to yaml. > This is done in the first patch, the remaining nine fix some DT users. > > I couldn't test any of those DT files on actual machines, but tried > to make the changes in

Re: [PATCH RFC 5/7] bridge: cfm: Netlink Interface.

2020-09-08 Thread Nikolay Aleksandrov
On Fri, 2020-09-04 at 09:15 +, Henrik Bjoernlund wrote: > This is the implementation of CFM netlink configuration > and status information interface. > > Add new nested netlink attributes. These attributes are used by the > user space to create/delete/configure CFM instances and get status. >

Re: linux-next: build warnings in Linus' tree

2020-09-08 Thread Josh Poimboeuf
On Tue, Sep 08, 2020 at 09:11:02AM +1000, Stephen Rothwell wrote: > Hi all, > > Building Linus' tree, today's linux-next build (x86_64 allmodconfig) > produced these warnings: > > arch/x86/kernel/cpu/mce/core.o: warning: objtool: mce_panic()+0x2a3: > unreachable instruction > net/core/skbuff.o:

Re: [PATCH 11/19] gdrom: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
On Wed, Sep 02, 2020 at 11:00:05PM +0100, antlists wrote: > On 02/09/2020 15:12, Christoph Hellwig wrote: >> The GD-ROM driver does not have a ->revalidate_disk method, so it can > ^^ (sic) No, this really is the GD-ROM and not the CD-ROM driver!

Re: [PATCH] SELinux: Measure state and hash of policy using IMA

2020-09-08 Thread Ondrej Mosnacek
On Tue, Sep 8, 2020 at 2:37 PM Stephen Smalley wrote: > On Mon, Sep 7, 2020 at 5:39 PM Lakshmi Ramasubramanian > wrote: > > diff --git a/security/selinux/measure.c b/security/selinux/measure.c > > new file mode 100644 > > index ..caf9107937d9 > > --- /dev/null > > +++ b/security/seli

Re: [PATCH v2 3/4] soundwire: qcom: add support for mmio soundwire master devices

2020-09-08 Thread Pierre-Louis Bossart
@@ -764,8 +786,11 @@ static int qcom_swrm_probe(struct platform_device *pdev) if (!ctrl->regmap) return -EINVAL; } else { - /* Only WCD based SoundWire controller is supported */ - return -ENOTSUPP; + ct

[PATCH net-next] bnx2x: Fix some kernel-doc warnings

2020-09-08 Thread Wang Hai
Fixes the following W=1 kernel build warning(s): drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:4238: warning: Excess function parameter 'netdev' description in 'bnx2x_setup_tc' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:4238: warning: Excess function parameter 'tc' description in 'bnx2x_s

Re: [PATCH] Rescan the entire target on transport reset when LUN is 0

2020-09-08 Thread Paolo Bonzini
On 28/08/20 14:21, Matej Genci wrote: > VirtIO 1.0 spec says > The removed and rescan events ... when sent for LUN 0, they MAY > apply to the entire target so the driver can ask the initiator > to rescan the target to detect this. > > This change introduces the behaviour described abov

Re: [PATCH 3/3] gpiolib: unexport devprop_gpiochip_set_names()

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 08, 2020 at 02:58:13PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Now that devprop_gpiochip_set_names() is only used in a single place > inside drivers/gpio/gpiolib.c, there's no need anymore for it to be > exported or to even live in its own source file. Pull t

Re: [PATCH] ASoC: tlv320adcx140: Add support for master mode

2020-09-08 Thread Dan Murphy
Camel On 9/8/20 4:18 AM, Camel Guo wrote: From: Camel Guo Add setup of bclk-to-ws ratio and sample rate when in master mode, as well as MCLK input pin setup. The patches you submitted need to go on the sound/for-next branch as it does not apply cleanly. https://git.kernel.org/pub/scm/linu

Re: [PATCH 1/2] usb: ohci: Add per-port overcurrent quirk

2020-09-08 Thread st...@rowland.harvard.edu
On Mon, Sep 07, 2020 at 10:28:26PM +, Hamish Martin wrote: > On Mon, 2020-09-07 at 10:59 -0400, st...@rowland.harvard.edu wrote: > > On Mon, Sep 07, 2020 at 01:50:10AM +, Hamish Martin wrote: > > > Hi Alan, > > > > > > Thanks for your quick feedback. My replies are inline below. > > > > >

RE: [RFC PATCH] x86/mce: Make mce_rdmsrl() do a plain RDMSR only

2020-09-08 Thread Luck, Tony
> Ok, so I think this is what Andy meant last night and PeterZ just > suggested it too: > > We do a: > >_ASM_EXTABLE_HANDLE(1b, 2b, ex_handler_panic) > > which panics straight in the #GP handler and avoids the IRET. We can even get a nice diagnostic message since the handler has access to

Re: [v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-09-08 Thread Crystal Guo
On Thu, 2020-09-03 at 07:29 +0800, Suman Anna wrote: > Hi Crystal, > > On 8/16/20 10:03 PM, Crystal Guo wrote: > > add infracfg_rst node which is for MT8192 platform > > > > Signed-off-by: Crystal Guo > > I understand you are posting these together for complete reference, but driver > subsystem

Re: linux-next: Tree for Sep 8 (sched/topology.c)

2020-09-08 Thread Vincent Guittot
Adding Valentin as this seems related to the patch "sched/topology: Move sd_flag_debug out of linux/sched/topology.h" On Tue, 8 Sep 2020 at 16:48, Randy Dunlap wrote: > > On 9/8/20 3:56 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20200903: > > > > on i386: > > ld: kernel/sched/

[PATCH] cgroup: Remove unnecessary call to strstrip()

2020-09-08 Thread Hao Lee
The string buf will be stripped in cgroup_procs_write_start() before it is converted to int, so remove this unnecessary call to strstrip(). Signed-off-by: Hao Lee --- kernel/cgroup/cgroup.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index

Re: [PATCH] gpiolib: switch to simpler IDA interface

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 08, 2020 at 03:12:25PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We don't need to specify any ranges when allocating IDs so we can switch > to ida_alloc() and ida_free() instead of the ida_simple_ counterparts. > > ida_simple_get(ida, 0, 0, gfp) is equivalent

Re: [PATCH 1/7] soundwire: bus: use property to set interrupt masks

2020-09-08 Thread Pierre-Louis Bossart
On 9/8/20 9:33 AM, Mark Brown wrote: On Tue, Sep 08, 2020 at 02:28:48PM +0200, Jaroslav Kysela wrote: Dne 08. 09. 20 v 14:11 Mark Brown napsal(a): I don't have this patch and since I seem to get copied on quite a lot of soundwire only serieses I just delete them unread mostly. We now try

Re: [PATCH v5 2/3] dt-bindings: media: imx274: Add optional input clock and supplies

2020-09-08 Thread Jacopo Mondi
Hi Sakari, Sowjanya, On Tue, Sep 08, 2020 at 12:33:41PM +0300, Sakari Ailus wrote: > On Thu, Sep 03, 2020 at 09:40:57AM -0700, Sowjanya Komatineni wrote: > > > > On 9/3/20 9:35 AM, Jacopo Mondi wrote: > > > Hi Sowjanya, > > > > > > On Thu, Sep 03, 2020 at 09:05:27AM -0700, Sowjanya Komatineni wrot

[PATCH 06/19] swim: simplify media change handling

2020-09-08 Thread Christoph Hellwig
floppy_revalidate mostly duplicates work already done in floppy_open despite only beeing called from floppy_open. Remove the function and just clear the ->ejected flag directly under the right condition. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/block/swim.c

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-08 Thread David Hildenbrand
On 08.09.20 16:41, Rik van Riel wrote: > On Tue, 2020-09-08 at 16:35 +0200, Michal Hocko wrote: > >> A global knob is insufficient. 1G pages will become a very precious >> resource as it requires a pre-allocation (reservation). So it really >> has >> to be an opt-in and the question is whether the

Re: [PATCH v2 10/11] lockdep: Only trace IRQ edges

2020-09-08 Thread Guenter Roeck
On 9/8/20 7:22 AM, pet...@infradead.org wrote: > On Wed, Sep 02, 2020 at 06:48:30AM -0700, Guenter Roeck wrote: >> On 9/2/20 2:12 AM, pet...@infradead.org wrote: >>> On Wed, Sep 02, 2020 at 11:09:35AM +0200, pet...@infradead.org wrote: On Tue, Sep 01, 2020 at 09:21:37PM -0700, Guenter Roeck wr

Re: [PATCH v4 6/6] io_uring: add support for zone-append

2020-09-08 Thread h...@infradead.org
On Mon, Sep 07, 2020 at 12:31:42PM +0530, Kanchan Joshi wrote: > But there are use-cases which benefit from supporting zone-append on > raw block-dev path. > Certain user-space log-structured/cow FS/DB will use the device that > way. Aerospike is one example. > Pass-through is synchronous, and we l

Re: [PATCH v6 3/3] io_uring: allow disabling rings during the creation

2020-09-08 Thread Stefano Garzarella
On Tue, Sep 08, 2020 at 07:57:08AM -0600, Jens Axboe wrote: > On 9/8/20 7:44 AM, Stefano Garzarella wrote: > > Hi Jens, > > > > On Thu, Aug 27, 2020 at 04:58:31PM +0200, Stefano Garzarella wrote: > >> This patch adds a new IORING_SETUP_R_DISABLED flag to start the > >> rings disabled, allowing the

Re: [PATCH RESEND] fs: Move @f_count to different cacheline with @f_mode

2020-09-08 Thread Jan Kara
On Wed 24-06-20 16:32:28, Shaokun Zhang wrote: > get_file_rcu_many, which is called by __fget_files, has used > atomic_try_cmpxchg now and it can reduce the access number of the global > variable to improve the performance of atomic instruction compared with > atomic_cmpxchg. > > __fget_files doe

[PATCH V4 0/2] vfio: optimized for hugetlbf pages when dma map/unmap

2020-09-08 Thread Ming Mao
This series deletes the for loop in dma_map/unmap for hugetlb pages. In the original process, the for loop could spend much time to check all normal pages.If we use hugetlb pages, it is not necessary to do this. Changes from v3 - add a new API unpin_user_hugetlb_pages_dirty_lock() - use the new AP

[PATCH V4 1/2] vfio dma_map/unmap: optimized for hugetlbfs pages

2020-09-08 Thread Ming Mao
In the original process of dma_map/unmap pages for VFIO-devices, to make sure the pages are contiguous, we have to check them one by one. As a result, dma_map/unmap could spend a long time. Using the hugetlb pages, we can avoid this problem. All pages in hugetlb pages are contiguous.And the hugetlb

[PATCH 5.8 001/186] hwmon: (pmbus/isl68137) remove READ_TEMPERATURE_1 telemetry for RAA228228

2020-09-08 Thread Greg Kroah-Hartman
From: Grant Peltier [ Upstream commit 51fb91ed5a6fa855a74731610cd5435d83d6e17f ] Per the RAA228228 datasheet, READ_TEMPERATURE_1 is not a supported PMBus command. Signed-off-by: Grant Peltier Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/pmbus/isl68137.c | 7

[PATCH 5.8 002/186] HID: quirks: Always poll three more Lenovo PixArt mice

2020-09-08 Thread Greg Kroah-Hartman
From: Sebastian Parschauer [ Upstream commit 627a49975bdc3220f360a8237603a6344ee6a588 ] The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. One Lenovo PixArt mouse is already fixed. Got two references for 17ef:602e and three references f

[PATCH 5.8 020/186] hv_utils: return error if host timesysnc update is stale

2020-09-08 Thread Greg Kroah-Hartman
From: Vineeth Pillai [ Upstream commit 90b125f4cd2697f949f5877df723a0b710693dd0 ] If for any reason, host timesync messages were not processed by the guest, hv_ptp_gettime() returns a stale value and the caller (clock_gettime, PTP ioctl etc) has no means to know this now. Return an error so that

[PATCH 5.8 007/186] drm/msm: add shutdown support for display platform_driver

2020-09-08 Thread Greg Kroah-Hartman
From: Krishna Manikandan [ Upstream commit 9d5cbf5fe46e350715389d89d0c350d83289a102 ] Define shutdown callback for display drm driver, so as to disable all the CRTCS when shutdown notification is received by the driver. This change will turn off the timing engine so that no display transactions

Re: [PATCH 24/35] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-09-08 Thread Andrey Konovalov
On Tue, Sep 8, 2020 at 4:02 PM Andrey Konovalov wrote: > > On Thu, Aug 27, 2020 at 2:16 PM Catalin Marinas > wrote: > > > > On Thu, Aug 27, 2020 at 11:56:49AM +0100, Vincenzo Frascino wrote: > > > On 8/27/20 11:38 AM, Catalin Marinas wrote: > > > > On Fri, Aug 14, 2020 at 07:27:06PM +0200, Andre

[PATCH] dt-bindings: power: Correct interrupt flags in examples

2020-09-08 Thread Krzysztof Kozlowski
GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. These are simple defines so they could be used in DTS but they will not have the same meaning: 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE 2. GPIO_ACTIVE_LOW = 1 = IRQ_TYPE_EDGE_RISING Correct the interrupt flags, assuming the aut

[PATCH 5.8 008/186] hwmon: (applesmc) check status earlier.

2020-09-08 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit cecf7560f00a8419396a2ed0f6e5d245ccb4feac ] clang static analysis reports this representative problem applesmc.c:758:10: warning: 1st function call argument is an uninitialized value left = be16_to_cpu(*(__be16 *)(buffer + 6)) >> 2; ^~

[PATCH 5.4 063/129] xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt files

2020-09-08 Thread Greg Kroah-Hartman
From: Darrick J. Wong [ Upstream commit d0c20d38af135b2b4b90aa59df7878ef0c8fbef4 ] The realtime flag only applies to the data fork, so don't use the realtime block number checks on the attr fork of a realtime file. Fixes: 30b0984d9117 ("xfs: refactor bmap record validation") Signed-off-by: Darr

Re: linux-next: Tree for Sep 8 (sched/topology.c)

2020-09-08 Thread Valentin Schneider
On 08/09/20 16:03, Vincent Guittot wrote: > Adding Valentin as this seems related to the patch "sched/topology: > Move sd_flag_debug out of linux/sched/topology.h" > Thanks! > > On Tue, 8 Sep 2020 at 16:48, Randy Dunlap wrote: >> >> On 9/8/20 3:56 AM, Stephen Rothwell wrote: >> > Hi all, >> >

[PATCH 5.4 070/129] iommu/amd: Restore IRTE.RemapEn bit after programming IRTE

2020-09-08 Thread Greg Kroah-Hartman
From: Suravee Suthikulpanit [ Upstream commit 26e495f341075c09023ba16dee9a7f37a021e745 ] Currently, the RemapEn (valid) bit is accidentally cleared when programming IRTE w/ guestMode=0. It should be restored to the prior state. Fixes: b9fc6b56f478 ("iommu/amd: Implements irq_set_vcpu_affinity()

[PATCH 5.4 069/129] thermal: qcom-spmi-temp-alarm: Dont suppress negative temp

2020-09-08 Thread Greg Kroah-Hartman
From: Veera Vegivada [ Upstream commit 0ffdab6f2dea9e23ec33230de24e492ff0b186d9 ] Currently driver is suppressing the negative temperature readings from the vadc. Consumers of the thermal zones need to read the negative temperature too. Don't suppress the readings. Fixes: c610afaa21d3c6e ("ther

[PATCH 5.4 068/129] thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430

2020-09-08 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 30d24faba0532d6972df79a1bf060601994b5873 ] We can sometimes get bogus thermal shutdowns on omap4430 at least with droid4 running idle with a battery charger connected: thermal thermal_zone0: critical temperature reached (143 C), shutting down Dumping out t

Re: [PATCH v5] mfd: intel-m10-bmc: add Intel MAX 10 BMC chip support for Intel FPGA PAC

2020-09-08 Thread Lee Jones
On Mon, 07 Sep 2020, Xu Yilun wrote: > This patch implements the basic functions of the BMC chip for some Intel > FPGA PCIe Acceleration Cards (PAC). The BMC is implemented using the > Intel MAX 10 CPLD. > > This BMC chip is connected to the FPGA by a SPI bus. To provide direct > register access

[PATCH] nvmem: switch to simpler IDA interface

2020-09-08 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We don't need to specify any ranges when allocating IDs so we can switch to ida_alloc() and ida_free() instead of the ida_simple_ counterparts. ida_simple_get(ida, 0, 0, gfp) is equivalent to ida_alloc_range(ida, 0, UINT_MAX, gfp) which is equivalent to ida_alloc(ida, g

[PATCH v3 0/6] Add VP9 codec levels

2020-09-08 Thread Stanimir Varbanov
Hello, This new v3 now contains the implementation for VP9 profile and levels in the Venus driver as has been requested by Nicolas at [1]. Comments are welcome! regards, Stan [1] https://patchwork.kernel.org/patch/11717307/ Stanimir Varbanov (6): v4l2-ctrl: Add VP9 codec levels venus: hfi_

[PATCH v2 3/3] misc: fastrpc: add ioctl for attaching to sensors pd

2020-09-08 Thread Jonathan Marek
Initializing sensors requires attaching to pd 2. Add an ioctl for that. This corresponds to FASTRPC_INIT_ATTACH_SENSORS in the downstream driver. Signed-off-by: Jonathan Marek --- drivers/misc/fastrpc.c | 9 ++--- include/uapi/misc/fastrpc.h | 1 + 2 files changed, 7 insertions(+), 3 d

Re: [PATCH v6 27/35] i2c: tegra: Factor out register polling into separate function

2020-09-08 Thread Dmitry Osipenko
08.09.2020 11:51, Andy Shevchenko пишет: > On Tue, Sep 8, 2020 at 5:12 AM Dmitry Osipenko wrote: >> >> Factor out register polling into a separate function in order to remove >> boilerplate code and make code cleaner. > > I'm wondering if you can make it before the patch that touches one of > the

Re: [PATCH RFC 09/10] kfence, Documentation: add KFENCE documentation

2020-09-08 Thread Dave Hansen
On 9/7/20 6:40 AM, Marco Elver wrote: > +The most important parameter is KFENCE's sample interval, which can be set > via > +the kernel boot parameter ``kfence.sample_interval`` in milliseconds. The > +sample interval determines the frequency with which heap allocations will be > +guarded by KFENC

[PATCH 5.8 149/186] media: rc: do not access device via sysfs after rc_unregister_device()

2020-09-08 Thread Greg Kroah-Hartman
From: Sean Young commit a2e2d73fa28136598e84db9d021091f1b98cbb1a upstream. Device drivers do not expect to have change_protocol or wakeup re-programming to be accesed after rc_unregister_device(). This can cause the device driver to access deallocated resources. Cc: # 4.16+ Signed-off-by: Sean

[PATCH 5.8 015/186] habanalabs: set max power according to card type

2020-09-08 Thread Greg Kroah-Hartman
From: Oded Gabbay [ Upstream commit 58361aae4b0eed388680a89ac153d27177f40510 ] In Gaudi, the default max power setting is different between PCI and PMC cards. Therefore, the driver need to set the default after knowing what is the card type. The current code has a bug where it limits the maximu

[PATCH v3 6/6] venus: venc: Use helper to set profile and level

2020-09-08 Thread Stanimir Varbanov
We have a new helper to set profile and level use it instead. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 13 +- drivers/media/platform/qcom/venus/venc.c | 159 +- .../media/platform/qcom/venus/venc_ctrls.c| 14 +- 3 files chang

[PATCH 5.8 071/186] bnxt_en: Fix possible crash in bnxt_fw_reset_task().

2020-09-08 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit b148bb238c02f0c7797efed026e9bba5892d2172 ] bnxt_fw_reset_task() is run from a delayed workqueue. The current code is not cancelling the workqueue in the driver's .remove() method and it can potentially crash if the device is removed with the workqueue still

[PATCH 0/5 REBASED to v5.9-rc4] Qlogic drivers: Convert to SPDX license identifiers

2020-09-08 Thread Lukas Bulwahn
Dear Igor, dear Thomas, dear Greg, this is the patchset: https://lore.kernel.org/linux-spdx/20190606205526.447558...@linutronix.de/ rebased to v5.9-rc4, hopefully ready to apply to the current spdx-tree. The rebase required manual work for adjusting the diff for MAINTAINERS on PATCH 2/5 and 5

[PATCH 5.8 069/186] bnxt_en: Fix ethtool -S statitics with XDP or TCs enabled.

2020-09-08 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit 7de651490c27ebc5edb5c7224c368bd0cd5b3862 ] We are returning the wrong count for ETH_SS_STATS in get_sset_count() when XDP or TCs are enabled. In a recent commit, we got rid of irrelevant counters when the ring is RX only or TX only, but we did not make the p

Re: [PATCH RFC 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-08 Thread Marco Elver
On Tue, Sep 08, 2020 at 05:36PM +0200, Vlastimil Babka wrote: > On 9/8/20 5:31 PM, Marco Elver wrote: > >> > >> How much memory overhead does this end up having? I know it depends on > >> the object size and so forth. But, could you give some real-world > >> examples of memory consumption? Also

[PATCH 5.8 054/186] netfilter: nf_tables: add NFTA_SET_USERDATA if not null

2020-09-08 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit 6f03bf43ee05b31d3822def2a80f11b3591c55b3 ] Kernel sends an empty NFTA_SET_USERDATA attribute with no value if userspace adds a set with no NFTA_SET_USERDATA attribute. Fixes: e6d8ecac9e68 ("netfilter: nf_tables: Add new attributes into nft_set to store

[PATCH 5.8 134/186] Revert "ALSA: hda: Add support for Loongson 7A1000 controller"

2020-09-08 Thread Greg Kroah-Hartman
From: Tiezhu Yang commit eed8f88b109aa927fbf0d0c80ff9f8d00444ca7f upstream. This reverts commit 61eee4a7fc40 ("ALSA: hda: Add support for Loongson 7A1000 controller") to fix the following error on the Loongson LS7A platform: rcu: INFO: rcu_preempt self-detected stall on CPU NMI backtrace for c

[PATCH 5.8 041/186] batman-adv: Fix own OGM check in aggregated OGMs

2020-09-08 Thread Greg Kroah-Hartman
From: Linus Lüssing [ Upstream commit d8bf0c01642275c7dca1e5d02c34e4199c200b1f ] The own OGM check is currently misplaced and can lead to the following issues: For one thing we might receive an aggregated OGM from a neighbor node which has our own OGM in the first place. We would then not only

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