Re: [PATCH -next] crc:Fix build errors

2020-07-27 Thread Lyude Paul
Hi, I actually already sent a patch for this: https://patchwork.freedesktop.org/patch/378202/ I'm guessing it hasn't gotten picked up upstream yet? On Mon, 2020-07-27 at 12:00 +0800, Peng Wu wrote: > If CONFIG_DRM_NOUVEAU=y,the following errors > are seen while building crc.h. > > In file

[PATCH v3] media: atomisp-mt9m114: replace fixed function names

2020-07-27 Thread Juan Antonio Aldea-Armenteros
There are a couple of debug messages using hardcoded function names instead of the preferred __func__ magic constant. Replace them: WARNING: Prefer using '"%s...", __func__' to using 'misensor_rmw_reg', this function's name, in a string 215: FILE: ./media/atomisp/i2c/atomisp-mt9m114.c:215: +

Re: [PATCH v4 1/3] dt-bindings: usb: dwc2: add optional usb-role-switch property

2020-07-27 Thread Martin Blumenstingl
Hello Amelie, thank you for adding this patch! On Mon, Jul 27, 2020 at 11:23 AM Amelie Delaunay wrote: > > This patch documents the usb-role-switch property in dwc2 bindings, now > that usb-role-switch support is available in dwc2 driver. > > Signed-off-by: Amelie Delaunay please add my:

Re: [PATCH v2 2/3] sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entry

2020-07-27 Thread Dietmar Eggemann
. >> + >> + This requires the architecture to implement >> + arch_set_thermal_pressure() and arch_get_thermal_pressure(). >> >> config BSD_PROCESS_ACCT >> bool "BSD Process Accounting" >> -- > > On arm64 linux-next (20

Re: [PATCH v2] ata: use generic power management

2020-07-27 Thread Jens Axboe
On 7/27/20 11:40 AM, Vaibhav Gupta wrote: > The patch is compile-tested only. Please test and verify actual functionality, if you're serious about potentially getting this into the kernel. -- Jens Axboe

Re: [PATCH] Re: PROBLEM: cryptsetup fails to unlock drive in 5.8-rc6 (regression)

2020-07-27 Thread Nick Bowler
On 2020-07-27, Al Viro wrote: > On Mon, Jul 27, 2020 at 05:05:54PM +0100, Al Viro wrote: >> On Thu, Jul 23, 2020 at 11:51:01AM -0400, Nick Bowler wrote: >> > After installing Linux 5.8-rc6, it seems cryptsetup can no longer >> > open LUKS volumes. Regardless of the entered passphrase (correct >>

Re: [PATCH] interconnect: Add bulk API helpers

2020-07-27 Thread Bjorn Andersson
On Thu 28 May 09:25 PDT 2020, Georgi Djakov wrote: > diff --git a/drivers/interconnect/bulk.c b/drivers/interconnect/bulk.c > new file mode 100644 > index ..9bd418594665 > --- /dev/null > +++ b/drivers/interconnect/bulk.c > @@ -0,0 +1,119 @@ > +// SPDX-License-Identifier: GPL-2.0 > + >

Re: [PATCH v2] ata: use generic power management

2020-07-27 Thread Vaibhav Gupta
The patch is compile-tested only. Thanks Vaibhav Gupta

[PATCH][next] binfmt_elf: fix unsigned regset0_size compared to less than zero

2020-07-27 Thread Colin King
From: Colin Ian King Variable regset0_size is an unsigned int and it is being checked for an error by checking if it is less than zero, and hence this check is always going to be false. Fix this by making the variable regset0_size signed. Addresses-Coverity: ("Unsigned compared against 0")

[PATCH v2] ata: use generic power management

2020-07-27 Thread Vaibhav Gupta
use generic power management Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct

Re: [PATCH] smack: fix slab-out-of-bounds by checking for overflow

2020-07-27 Thread Casey Schaufler
On 7/25/2020 5:58 AM, B K Karthik wrote: > add a barrier to smk_set_cipso() to check for overflow Thank you for your patch. Dan Carpenter has already submitted an identical patch. > > == > BUG: KASAN: slab-out-of-bounds in

Re: [PATCH] i2c: iproc: fix race between client unreg and isr

2020-07-27 Thread Dhananjay Phadke
Ray Jui wrote: >>> I think the following sequence needs to be implemented to make this >>> safe, i.e., after 'synchronize_irq', no further slave interrupt will be >>> fired. >>> >>> In 'bcm_iproc_i2c_unreg_slave': >>> >>> 1. Set an atomic variable 'unreg_slave' (I'm bad in names so please come

[PATCH v3] usb: dwc2: Add missing cleanups when usb_add_gadget_udc() fails

2020-07-27 Thread Martin Blumenstingl
Call dwc2_debugfs_exit() and dwc2_hcd_remove() (if the HCD was enabled earlier) when usb_add_gadget_udc() has failed. This ensures that the debugfs entries created by dwc2_debugfs_init() as well as the HCD are cleaned up in the error path. Fixes: 207324a321a866 ("usb: dwc2: Postponed gadget

WARNING: ODEBUG bug in delete_node

2020-07-27 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e9a523ff Add linux-next specific files for 20200727 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17ad910890 kernel config: https://syzkaller.appspot.com/x/.config?x=2cbc23e6202df3d0 dashboard

Re: [PATCH for-5.8 v2] usb: dwc2: Add missing cleanups when usb_add_gadget_udc() fails

2020-07-27 Thread Martin Blumenstingl
Hello Minas, On Sun, Jul 26, 2020 at 12:04 PM Minas Harutyunyan wrote: [...] > Kernel test robot found issue: > >> warning: unused label 'error_debugfs' [-Wunused-label] > error_debugfs: > ^~ > 1 warning generated. > > So, 'error_debugfs:' label should be under

[PATCH v3] spi: spi-topcliff-pch: drop call to wakeup-disable

2020-07-27 Thread Vaibhav Gupta
Before generic upgrade, both .suspend() and .resume() were invoking pci_enable_wake(pci_dev, PCI_D3hot, 0). Hence, disabling wakeup in both states. (Normal trend is .suspend() enables and .resume() disables the wakeup.) This was ambiguous and may be buggy. Instead of replicating the legacy

Re: [PATCH] net: dev: Add API to check net_dev readiness

2020-07-27 Thread David Miller
From: Andrew Lunn Date: Sun, 26 Jul 2020 21:45:28 +0200 > I also have to wonder why a network device driver is being probed the > subsys_initcall. This makes me wonder how this interface could even be useful. The only way to fix the problem is to change when the device is probed, which would

Re: [PATCH 5.7 233/244] RISC-V: Acquire mmap lock before invoking walk_page_range

2020-07-27 Thread Atish Patra
On Thu, 2020-07-23 at 13:46 +0900, Stafford Horne wrote: > On Wed, Jul 22, 2020 at 03:11:35PM +, Atish Patra wrote: > > On Wed, 2020-07-22 at 14:48 +0200, Greg KH wrote: > > > On Tue, Jul 21, 2020 at 03:50:35PM -0700, Palmer Dabbelt wrote: > > > > On Mon, 20 Jul 2020 12:14:03 PDT (-0700), Greg

Re: [PATCH] MAINTAINERS: Fix email typo and correct name of Tianshu

2020-07-27 Thread Bjorn Helgaas
On Mon, Jul 27, 2020 at 04:20:39AM +, Qiu, Tian Shu wrote: > Reviewed-by: Tianshu Qiu This doesn't really make sense. The patch already contains your Signed-off-by, which means you participated in its development (see Documentation/process/submitting-patches.rst), and I don't think it makes

Re: [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over

2020-07-27 Thread Russell King - ARM Linux admin
On Mon, Jul 27, 2020 at 06:16:32PM +0200, Alexandre Belloni wrote: > On 27/07/2020 17:55:50+0200, Jon Nettleton wrote: > > > So, can we please have that discussion, it is pertinent to this patch. > > > > > > > Thinking about this some more, I believe whether or not an IOCTL > > interface is in

Re: [PATCH v10 4/5] arm64: kdump: fix kdump broken with ZONE_DMA reintroduced

2020-07-27 Thread Catalin Marinas
On Fri, Jul 03, 2020 at 11:58:15AM +0800, Chen Zhou wrote: > commit 1a8e1cef7603 ("arm64: use both ZONE_DMA and ZONE_DMA32") > broken the arm64 kdump. If the memory reserved for crash dump kernel > falled in ZONE_DMA32, the devices in crash dump kernel need to use > ZONE_DMA will alloc fail. > >

Re: [PATCH v17 03/21] mm/compaction: correct the comments of compact_defer_shift

2020-07-27 Thread Alexander Duyck
On Sat, Jul 25, 2020 at 6:00 AM Alex Shi wrote: > > There is no compact_defer_limit. It should be compact_defer_shift in > use. and add compact_order_failed explanation. > > Signed-off-by: Alex Shi > Cc: Andrew Morton > Cc: linux...@kvack.org > Cc: linux-kernel@vger.kernel.org > --- >

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-27 Thread Arnd Bergmann
On Mon, Jul 27, 2020 at 7:03 PM Krzysztof Kozlowski wrote: > On Mon, Jul 27, 2020 at 09:55:54AM +0200, Arnd Bergmann wrote: > > > > The way we do it on Arm, the machine Kconfig identifiers stay around > > even for multiplatform targets (which now make up basically actively > > maintained

Re: linux-next: Tree for Jul 27 (kernel/bpf/syscall.o)

2020-07-27 Thread Randy Dunlap
On 7/27/20 6:23 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200724: > on i386: when CONFIG_XPS is not set/enabled: ld: kernel/bpf/syscall.o: in function `__do_sys_bpf': syscall.c:(.text+0x4482): undefined reference to `bpf_xdp_link_attach' -- ~Randy Reported-by: Randy Dunlap

[PATCH v2] media: atomisp-mt9m114: replace fixed function names

2020-07-27 Thread Juan Antonio Aldea-Armenteros
There are a couple of debug messages using hardcoded function names instead of the preferred __func__ magic constant. Replace them: WARNING: Prefer using '"%s...", __func__' to using 'misensor_rmw_reg', this function's name, in a string 215: FILE: ./media/atomisp/i2c/atomisp-mt9m114.c:215: +

Re: [PATCH v3 2/3] ltc2471: ltc2461/ltc2463 compatible strings

2020-07-27 Thread Jonathan Cameron
On Mon, 27 Jul 2020 16:58:33 +0300 Darius Berghe wrote: > Add compatible strings for these devices in the existing ltc2471 > driver. > > Signed-off-by: Darius Berghe Hi Darius, A few additional minor comments from me. > --- > drivers/iio/adc/ltc2471.c | 16 > 1 file

Re: [PATCH v2 4/7] arch, mm: wire up memfd_secret system call were relevant

2020-07-27 Thread Arnd Bergmann
On Mon, Jul 27, 2020 at 6:30 PM Mike Rapoport wrote: > > From: Mike Rapoport > > Wire up memfd_secret system call on architectures that define > ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. > > Signed-off-by: Mike Rapoport > Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann

Re: [PATCH v3 3/3] ltc2471 driver yaml

2020-07-27 Thread Jonathan Cameron
On Mon, 27 Jul 2020 16:58:34 +0300 Darius Berghe wrote: > Add dt binding documentation for ltc2471 driver. This covers all supported > devices. > > Signed-off-by: Darius Berghe +CC Mike given the doc lists him as maintainer. > --- > .../bindings/iio/adc/adi,ltc2471.yaml | 49

Re: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-07-27 Thread Rafael J. Wysocki
On Wednesday, July 22, 2020 1:14:42 AM CEST Francisco Jerez wrote: > > --==-=-= > Content-Type: multipart/mixed; boundary="=-=-=" > > --=-=-= > Content-Type: text/plain; charset=utf-8 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > Srinivas Pandruvada writes: >

Re: [Freedreno] [PATCH v10 06/13] iommu/arm-smmu-qcom: Get and set the pagetable config for split pagetables

2020-07-27 Thread Rob Clark
On Mon, Jul 27, 2020 at 8:03 AM Jordan Crouse wrote: > > On Sun, Jul 26, 2020 at 10:03:07AM -0700, Rob Clark wrote: > > On Mon, Jul 20, 2020 at 8:41 AM Jordan Crouse > > wrote: > > > > > > The Adreno GPU has the capability to manage its own pagetables and switch > > > them dynamically from the

Re: [RFC PATCH 7/9] PCI/AER: Add RCEC AER handling

2020-07-27 Thread Jonathan Cameron
On Mon, 27 Jul 2020 08:19:39 -0700 Sean V Kelley wrote: > On 27 Jul 2020, at 5:22, Jonathan Cameron wrote: > > > On Fri, 24 Jul 2020 10:22:21 -0700 > > Sean V Kelley wrote: > > > >> The Root Complex Event Collectors(RCEC) appear as peers to Root Ports > >> and also have the AER capability.

Re: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-07-27 Thread Rafael J. Wysocki
On Tuesday, July 21, 2020 1:20:14 AM CEST Francisco Jerez wrote: [cut] > > > > However, in the active mode the only updater of hwp_req_cached is > > intel_pstate_hwp_set() and this patch doesn't introduce any > > differences in behavior in that case. > > > > intel_pstate_hwp_set() is the only

Re: [PATCH 4.19 42/86] scripts/gdb: fix lx-symbols gdb.error while loading modules

2020-07-27 Thread Greg Kroah-Hartman
On Mon, Jul 27, 2020 at 03:26:42PM +0100, Kieran Bingham wrote: > Hi Greg, Sasha, > > On 27/07/2020 15:04, Greg Kroah-Hartman wrote: > > From: Stefano Garzarella > > > > [ Upstream commit 7359608a271ce81803de148befefd309baf88c76 ] > > > > Commit ed66f991bb19 ("module: Refactor section attr

Re: [PATCH] net: tipc: fix general protection fault in tipc_conn_delete_sub

2020-07-27 Thread Greg KH
On Mon, Jul 27, 2020 at 07:46:05PM +0530, B K Karthik wrote: > On Mon, Jul 27, 2020 at 6:53 PM Greg KH wrote: > > > > On Mon, Jul 27, 2020 at 06:40:57PM +0530, B K Karthik wrote: > > > fix a general protection fault in tipc_conn_delete_sub > > > by checking for the existance of con->server. > > >

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-27 Thread Paul Cercueil
Le lun. 27 juil. 2020 à 19:03, Krzysztof Kozlowski a écrit : On Mon, Jul 27, 2020 at 09:55:54AM +0200, Arnd Bergmann wrote: On Sun, Jul 26, 2020 at 6:20 PM Paul Cercueil wrote: > Le dim. 26 juil. 2020 à 18:15, Krzysztof Kozlowski a écrit : > > On Sun, Jul 26, 2020 at 06:12:27PM

Re: [RESEND RFC PATCH v1] arm64: kvm: flush tlbs by range in unmap_stage2_range function

2020-07-27 Thread Marc Zyngier
Zhenyu, On 2020-07-27 15:51, Zhenyu Ye wrote: Hi Marc, On 2020/7/26 1:40, Marc Zyngier wrote: On 2020-07-24 14:43, Zhenyu Ye wrote: Now in unmap_stage2_range(), we flush tlbs one by one just after the corresponding pages cleared.  However, this may cause some performance problems when the

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-27 Thread Eric W. Biederman
Anthony Yznaga writes: > This patchset adds support for preserving an anonymous memory range across > exec(3) using a new madvise MADV_DOEXEC argument. The primary benefit for > sharing memory in this manner, as opposed to re-attaching to a named shared > memory segment, is to ensure it is

Re: [PATCH v2 7/7] mm: secretmem: add ability to reserve memory at boot

2020-07-27 Thread Mike Rapoport
Oops, something went wrong with the rebase, this should have been squashed into the previous patch... On Mon, Jul 27, 2020 at 07:29:35PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > Taking pages out from the direct map and bringing them back may create > undesired fragmentation and

Re: [PATCH 4/7] net/mlx5: drop unnecessary list_empty

2020-07-27 Thread David Miller
From: Julia Lawall Date: Sun, 26 Jul 2020 12:58:29 +0200 > list_for_each_entry is able to handle an empty list. > The only effect of avoiding the loop is not initializing the > index variable. > Drop list_empty tests in cases where these variables are not > used. > > Note that

Re: [PATCH 2/7] sfc: drop unnecessary list_empty

2020-07-27 Thread David Miller
From: Julia Lawall Date: Sun, 26 Jul 2020 12:58:27 +0200 > list_for_each_safe is able to handle an empty list. > The only effect of avoiding the loop is not initializing the > index variable. > Drop list_empty tests in cases where these variables are not > used. > > The semantic patch that

[PATCH v11 0/2] ADD interconnect support for Qualcomm DWC3 driver

2020-07-27 Thread Sandeep Maheswaram
This path series aims to add interconnect support in dwc3-qcom driver on SDM845 and SC7180 SoCs. Changes from v10 -> v11 > Made the error handling symmetrical in enable and disable cases. > Removed empty line in interconnect-init function. Changes from v9 -> v10 > Removed cooments for

[RFC PATCH 5/5] mm: introduce MADV_DOEXEC

2020-07-27 Thread Anthony Yznaga
madvise MADV_DOEXEC preserves a memory range across exec. Initially only supported for non-executable, non-stack, anonymous memory. MADV_DONTEXEC reverts the effect of a previous MADV_DOXEXEC call and undoes the preservation of the range. After a successful exec call, the behavior of all ranges

[PATCH v11 1/2] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-07-27 Thread Sandeep Maheswaram
Add interconnect support in dwc3-qcom driver to vote for bus bandwidth. This requires for two different paths - from USB to DDR. The other is from APPS to USB. Signed-off-by: Sandeep Maheswaram Signed-off-by: Chandana Kishori Chiluveru --- drivers/usb/dwc3/dwc3-qcom.c | 120

[PATCH v11 2/2] arm64: dts: qcom: sc7180: Add maximum speed property for DWC3 USB node

2020-07-27 Thread Sandeep Maheswaram
Adding maximum speed property for DWC3 USB node which can be used for setting interconnect bandwidth. Signed-off-by: Sandeep Maheswaram Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

Re: linux-next: Tree for Jul 27 (drivers/usb/dwc2/drd.c)

2020-07-27 Thread Randy Dunlap
On 7/27/20 6:23 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200724: > on i386: CONFIG_USB_DWC2=y CONFIG_USB_DWC2_HOST=y # # Gadget/Dual-role mode requires USB Gadget support to be enabled # # CONFIG_USB_DWC2_PERIPHERAL is not set # CONFIG_USB_DWC2_DUAL_ROLE is not set #

Re: [PATCH 3/6] drm/bridge: Add SPI DBI host driver

2020-07-27 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Mon, Jul 27, 2020 at 06:46:10PM +0200, Paul Cercueil wrote: > This driver will register a DBI host driver for panels connected over > SPI. > > DBI types c1 and c3 are supported. C1 is a SPI protocol with 9 bits per > word, with the data/command information

Re: [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over

2020-07-27 Thread Jon Nettleton
On Mon, Jul 27, 2020 at 6:16 PM Alexandre Belloni wrote: > > On 27/07/2020 17:55:50+0200, Jon Nettleton wrote: > > > So, can we please have that discussion, it is pertinent to this patch. > > > > > > > Thinking about this some more, I believe whether or not an IOCTL > > interface is in the works

INFO: task hung in switchdev_deferred_process_work (2)

2020-07-27 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d15be546 Merge tag 'media/v5.8-3' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16ea7c6490 kernel config: https://syzkaller.appspot.com/x/.config?x=f87a5e4232fdb267

[PATCH v2] usb: common: usb-conn-gpio: Register charger

2020-07-27 Thread Paul Cercueil
Register a power supply charger, whose online state depends on whether the USB role is set to device or not. This is useful when the USB role is the only way to know if the device is charging from USB. The API is the standard power supply charger API, you get a /sys/class/power_supply/xxx/online

[RFC PATCH 3/5] mm: introduce VM_EXEC_KEEP

2020-07-27 Thread Anthony Yznaga
A vma with the VM_EXEC_KEEP flag is preserved across exec. For anonymous vmas only. For safety, overlap with fixed address VMAs created in the new mm during exec (e.g. the stack and elf load segments) is not permitted and will cause the exec to fail. (We are studying how to guarantee there are

[RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-27 Thread Anthony Yznaga
This patchset adds support for preserving an anonymous memory range across exec(3) using a new madvise MADV_DOEXEC argument. The primary benefit for sharing memory in this manner, as opposed to re-attaching to a named shared memory segment, is to ensure it is mapped at the same virtual address in

[RFC PATCH 1/5] elf: reintroduce using MAP_FIXED_NOREPLACE for elf executable mappings

2020-07-27 Thread Anthony Yznaga
Commit b212921b13bd ("elf: don't use MAP_FIXED_NOREPLACE for elf executable mappings") reverted back to using MAP_FIXED to map elf load segments because it was found that the load segments in some binaries overlap and can cause MAP_FIXED_NOREPLACE to fail. The original intent of

[RFC PATCH 4/5] exec, elf: require opt-in for accepting preserved mem

2020-07-27 Thread Anthony Yznaga
Don't copy preserved VMAs to the binary being exec'd unless the binary has a "preserved-mem-ok" ELF note. Signed-off-by: Anthony Yznaga --- fs/binfmt_elf.c | 84 + fs/exec.c | 17 +- include/linux/binfmts.h | 7 -

Re: [PATCH v3 2/2] mtd: rawnand: ingenic: Limit MTD_NAND_JZ4780 to architecture only

2020-07-27 Thread Krzysztof Kozlowski
On Mon, Jul 27, 2020 at 09:55:54AM +0200, Arnd Bergmann wrote: > On Sun, Jul 26, 2020 at 6:20 PM Paul Cercueil wrote: > > Le dim. 26 juil. 2020 à 18:15, Krzysztof Kozlowski a > > écrit : > > > On Sun, Jul 26, 2020 at 06:12:27PM +0200, Paul Cercueil wrote: > > >> Le dim. 26 juil. 2020 à 18:06,

[RFC PATCH 2/5] mm: do not assume only the stack vma exists in setup_arg_pages()

2020-07-27 Thread Anthony Yznaga
In preparation for allowing vmas to be preserved across exec do not assume that there is no prev vma to pass to mprotect_fixup() in setup_arg_pages(). Also, setup_arg_pages() expands the initial stack of a process by 128k or to the stack size limit, whichever is smaller. expand_stack() assumes

Re: [PATCH 2/6] drm: dsi: Let host and device specify supported bus

2020-07-27 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Mon, Jul 27, 2020 at 06:46:09PM +0200, Paul Cercueil wrote: > The current MIPI DSI framework can very well be used to support MIPI DBI > panels. In order to add support for the various bus types supported by > DBI, the DRM panel drivers should specify the bus

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

2020-07-27 Thread Sekhar Nori
On 7/27/20 3:25 PM, Vinod Koul wrote: > Hi Sekhar, > > On 26-07-20, 01:24, Sekhar Nori wrote: >> Hi Vinod, >> >> On 7/17/20 12:20 PM, Swapnil Jakhade wrote: >>> 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

[PATCH -next] powerpc/powernv/sriov: Remove unused but set variable 'phb'

2020-07-27 Thread Wei Yongjun
Gcc report warning as follows: arch/powerpc/platforms/powernv/pci-sriov.c:602:25: warning: variable 'phb' set but not used [-Wunused-but-set-variable] 602 | struct pnv_phb*phb; | ^~~ This variable is not used, so this commit removing it. Reported-by:

Re: [PATCH] tools/memory-model: document the "one-time init" pattern

2020-07-27 Thread Matthew Wilcox
On Mon, Jul 27, 2020 at 12:31:49PM -0400, Alan Stern wrote: > On Mon, Jul 27, 2020 at 04:28:27PM +0100, Matthew Wilcox wrote: > > On Mon, Jul 27, 2020 at 11:17:46AM -0400, Alan Stern wrote: > > > Given a type "T", an object x of type pointer-to-T, and a function > > > "func" that takes various

Re: [PATCH] nilfs2: only call unlock_new_inode() if I_NEW

2020-07-27 Thread Ryusuke Konishi
Yeah, I sent this to Andrew a little while ago: https://lkml.org/lkml/2020/7/27/976 Thanks, Ryusuke Konishi On Tue, Jul 28, 2020 at 1:50 AM Eric Biggers wrote: > > On Sun, Jun 28, 2020 at 12:01:52AM -0700, Eric Biggers wrote: > > From: Eric Biggers > > > > unlock_new_inode() is only meant

Re: [PATCH] virtio_balloon: fix up endian-ness for free cmd id

2020-07-27 Thread David Hildenbrand
On 27.07.20 18:03, Michael S. Tsirkin wrote: > free cmd id is read using virtio endian, spec says all fields > in balloon are LE. Fix it up. > > Fixes: 86a559787e6f ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT") > Cc: sta...@vger.kernel.org > Signed-off-by: Michael S. Tsirkin > --- >

Re: [PATCH] reiserfs: only call unlock_new_inode() if I_NEW

2020-07-27 Thread Eric Biggers
On Sun, Jun 28, 2020 at 12:00:57AM -0700, Eric Biggers wrote: > From: Eric Biggers > > unlock_new_inode() is only meant to be called after a new inode has > already been inserted into the hash table. But reiserfs_new_inode() can > call it even before it has inserted the inode, triggering the

Re: [PATCH] nilfs2: only call unlock_new_inode() if I_NEW

2020-07-27 Thread Eric Biggers
On Sun, Jun 28, 2020 at 12:01:52AM -0700, Eric Biggers wrote: > From: Eric Biggers > > unlock_new_inode() is only meant to be called after a new inode has > already been inserted into the hash table. But nilfs_new_inode() can > call it even before it has inserted the inode, triggering the

Re: [PATCH v5 08/10] net: eth: altera: add support for ptp and timestamping

2020-07-27 Thread kernel test robot
Hi Joyce", Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] [also build test WARNING on net/master robh/for-next linus/master v5.8-rc7 next-20200727] [cannot apply to sparc-next/master] [If your patch is applied to the wrong git tree, k

RE: [PATCH] ACPI: actypes.h: drop a duplicated word

2020-07-27 Thread Kaneda, Erik
> -Original Message- > From: Rafael J. Wysocki > Sent: Monday, July 27, 2020 5:44 AM > To: Randy Dunlap ; Kaneda, Erik > > Cc: Linux Kernel Mailing List ; Rafael J. > Wysocki ; Len Brown ; ACPI Devel > Maling List ; Moore, Robert > > Subject: Re: [PATCH] ACPI: actypes.h: drop a

[ANNOUNCE] Git v2.28.0

2020-07-27 Thread Junio C Hamano
The latest feature release Git v2.28.0 is now available at the usual places. It is comprised of 317 non-merge commits since v2.27.0, contributed by 58 people, 13 of which are new faces. It is smaller than the releases in our recent past, mostly due to the development cycle was near the shorter

[PATCH 5/6] drm/tiny: Add TinyDRM for DSI/DBI panels

2020-07-27 Thread Paul Cercueil
The new API function mipi_dsi_maybe_register_tiny_driver() is supposed to be called by DSI/DBI panel drivers at the end of their probe. If it is detected that the panel is not connected to any controller, because it has no port #0 node in Device Tree that points back to it, then a TinyDRM driver

[PATCH 6/6] drm/panel: Add Ilitek ILI9341 DBI panel driver

2020-07-27 Thread Paul Cercueil
This driver is for the Ilitek ILI9341 based YX240QV29-T 2.4" 240x320 TFT LCD panel from Adafruit. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/panel/Kconfig| 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 345

[PATCH 3/6] drm/bridge: Add SPI DBI host driver

2020-07-27 Thread Paul Cercueil
This driver will register a DBI host driver for panels connected over SPI. DBI types c1 and c3 are supported. C1 is a SPI protocol with 9 bits per word, with the data/command information in the 9th (MSB) bit. C3 is a SPI protocol with 8 bits per word, with the data/command information carried by

[PATCH 0/6] DBI/DSI, panel drivers, and tinyDRM compat

2020-07-27 Thread Paul Cercueil
Hi, Here's a follow-up on the previous discussion about the current state of DSI/DBI panel drivers, TinyDRM, and the need of a cleanup. For the record, here is a small sum-up of the current situation: - the current MIPI DBI code (drivers/gpu/drm/drm_mipi_dbi.c) is lagging way behind the MIPI

[PATCH 1/6] dt-bindings: display: Document NewVision NV3052C DT node

2020-07-27 Thread Paul Cercueil
Add documentation for the Device Tree node for LCD panels based on the NewVision NV3052C controller. Signed-off-by: Paul Cercueil --- .../display/panel/newvision,nv3052c.yaml | 69 +++ 1 file changed, 69 insertions(+) create mode 100644

[PATCH 4/6] drm/panel: Add panel driver for NewVision NV3052C based LCDs

2020-07-27 Thread Paul Cercueil
This driver supports the NewVision NV3052C based LCDs. Right now, it only supports the LeadTek LTK035C5444T 2.4" 640x480 TFT LCD panel, which can be found in the Anbernic RG-350M handheld console. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/panel/Kconfig | 9 +

[PATCH 2/6] drm: dsi: Let host and device specify supported bus

2020-07-27 Thread Paul Cercueil
The current MIPI DSI framework can very well be used to support MIPI DBI panels. In order to add support for the various bus types supported by DBI, the DRM panel drivers should specify the bus type they will use, and the DSI host drivers should specify the bus types they are compatible with. The

Re: divide error in fbcon_switch

2020-07-27 Thread syzbot
syzbot suspects this issue was fixed by commit: commit ce684552a266cb1c7cc2f7e623f38567adec6653 Author: Tetsuo Handa Date: Sun Jul 12 11:10:12 2020 + vt: Reject zero-sized screen buffer size. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=155549c490 start commit:

Re: [PATCH v12 0/4] Prepare for upcoming Casefolding/Encryption patches

2020-07-27 Thread Eric Biggers
On Mon, Jul 20, 2020 at 10:09:51AM -0700, Eric Biggers wrote: > On Wed, Jul 08, 2020 at 02:12:33AM -0700, Daniel Rosenberg wrote: > > This lays the ground work for enabling casefolding and encryption at the > > same time for ext4 and f2fs. A future set of patches will enable that > >

Wrong list

2020-07-27 Thread alexandru.tachici
Please disregard this patch. I used the wrong git send-email cmd.

Re: [PATCH] usb: endpoint : remove needless check before usb_free_coherent()

2020-07-27 Thread Takashi Iwai
On Mon, 27 Jul 2020 04:52:08 +0200, Xu Wang wrote: > > usb_free_coherent() is safe with NULL addr and this check is > not required. > > Signed-off-by: Xu Wang Thanks, applied. Takashi

Re: [PATCH 5.7 024/179] dm mpath: pass IO start time to path selector

2020-07-27 Thread Gabriel Krisman Bertazi
Greg Kroah-Hartman writes: > From: Gabriel Krisman Bertazi > > [ Upstream commit 087615bf3acdafd0ba7c7c9ed5286e7b7c80fe1b ] > > The HST path selector needs this information to perform path > prediction. For request-based mpath, struct request's io_start_time_ns > is used, while for bio-based,

Re: [PATCH 5.4 024/138] dm mpath: pass IO start time to path selector

2020-07-27 Thread Gabriel Krisman Bertazi
Greg Kroah-Hartman writes: > From: Gabriel Krisman Bertazi > > [ Upstream commit 087615bf3acdafd0ba7c7c9ed5286e7b7c80fe1b ] > > The HST path selector needs this information to perform path > prediction. For request-based mpath, struct request's io_start_time_ns > is used, while for bio-based,

Re: [PATCH 2/6] rtlwifi: Remove unnecessary parenthese in rtl_dbg uses

2020-07-27 Thread Joe Perches
On Mon, 2020-07-27 at 11:25 -0500, Larry Finger wrote: > On 7/27/20 9:52 AM, Joe Perches wrote: > > On Mon, 2020-07-27 at 09:04 +, Pkshih wrote: > > > So, I think you would like to have parenthesis intentionally. > > > If so, > > > test1 ? : (test2 ? :) > > > would be better. > > > > > > > >

Re: [PATCH v1 2/2] Show /proc/self/net only for CAP_NET_ADMIN

2020-07-27 Thread Eric W. Biederman
Alexey Gladkov writes: > Show /proc/self/net only for CAP_NET_ADMIN if procfs is mounted with > subset=pid option in user namespace. This is done to avoid possible > information leakage. > > Signed-off-by: Alexey Gladkov > --- > fs/proc/proc_net.c | 6 ++ > 1 file changed, 6 insertions(+)

Re: [PATCH] tools/memory-model: document the "one-time init" pattern

2020-07-27 Thread Alan Stern
On Mon, Jul 27, 2020 at 04:28:27PM +0100, Matthew Wilcox wrote: > On Mon, Jul 27, 2020 at 11:17:46AM -0400, Alan Stern wrote: > > Given a type "T", an object x of type pointer-to-T, and a function > > "func" that takes various arguments and returns a pointer-to-T, the > > accepted API for calling

[PATCH v2 3/7] mm: introduce memfd_secret system call to create "secret" memory areas

2020-07-27 Thread Mike Rapoport
From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The user will create a file descriptor using the memfd_secret()

[PATCH v2 2/7] mmap: make mlock_future_check() global

2020-07-27 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport --- mm/internal.h | 3 +++ mm/mmap.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 9886db20d94f..af0a92f8f6bc

[PATCH v2 6/7] mm: secretmem: add ability to reserve memory at boot

2020-07-27 Thread Mike Rapoport
From: Mike Rapoport Taking pages out from the direct map and bringing them back may create undesired fragmentation and usage of the smaller pages in the direct mapping of the physical memory. This can be avoided if a significantly large area of the physical memory would be reserved for

[PATCH v2 4/7] arch, mm: wire up memfd_secret system call were relevant

2020-07-27 Thread Mike Rapoport
From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt --- arch/arm64/include/asm/unistd32.h | 2 ++ arch/arm64/include/uapi/asm/unistd.h | 1 +

[PATCH v2 5/7] mm: secretmem: use PMD-size pages to amortize direct map fragmentation

2020-07-27 Thread Mike Rapoport
From: Mike Rapoport Removing a PAGE_SIZE page from the direct map every time such page is allocated for a secret memory mapping will cause severe fragmentation of the direct map. This fragmentation can be reduced by using PMD-size pages as a pool for small pages for secret memory mappings. Add

[PATCH v2 7/7] mm: secretmem: add ability to reserve memory at boot

2020-07-27 Thread Mike Rapoport
From: Mike Rapoport Taking pages out from the direct map and bringing them back may create undesired fragmentation and usage of the smaller pages in the direct mapping of the physical memory. This can be avoided if a significantly large area of the physical memory would be reserved for

Re: [PATCH v3 09/19] fs/kernel_read_file: Switch buffer size arg to size_t

2020-07-27 Thread Mimi Zohar
On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > In preparation for further refactoring of kernel_read_file*(), rename > the "max_size" argument to the more accurate "buf_size", and correct > its type to size_t. Add kerndoc to explain the specifics of how the > arguments will be used. Note

Re: [PATCH v3 08/19] fs/kernel_read_file: Remove redundant size argument

2020-07-27 Thread Mimi Zohar
On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > In preparation for refactoring kernel_read_file*(), remove the redundant > "size" argument which is not needed: it can be included in the return > code, with callers adjusted. (VFS reads already cannot be larger than > INT_MAX.) > > Acked-by:

[PATCH v2 0/7] mm: introduce memfd_secret system call to create "secret" memory areas

2020-07-27 Thread Mike Rapoport
From: Mike Rapoport Hi, This is an implementation of "secret" mappings backed by a file descriptor. v2 changes: * Follow Michael's suggestion and name the new system call 'memfd_secret' * Add kernel-parameters documentation about the boot option * Fix i386-tinyconfig regression reported by

[PATCH v2 1/7] mm: add definition of PMD_PAGE_ORDER

2020-07-27 Thread Mike Rapoport
From: Mike Rapoport The definition of PMD_PAGE_ORDER denoting the number of base pages in the second-level leaf page is already used by DAX and maybe handy in other cases as well. Several architectures already have definition of PMD_ORDER as the size of second level page table, so to avoid

Re: [PATCH v3 10/19] fs/kernel_read_file: Add file_size output argument

2020-07-27 Thread Mimi Zohar
On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > In preparation for adding partial read support, add an optional output > argument to kernel_read_file*() that reports the file size so callers > can reason more easily about their reading progress. > > Acked-by: Scott Branden > Signed-off-by:

Re: [PATCH V4 0/3] Intel Platform Monitoring Technology

2020-07-27 Thread David E. Box
On Mon, 2020-07-27 at 13:23 +0300, Andy Shevchenko wrote: > On Fri, Jul 17, 2020 at 10:05 PM David E. Box > wrote: > > Intel Platform Monitoring Technology (PMT) is an architecture for > > enumerating and accessing hardware monitoring capabilities on a > > device. > > With customers increasingly

[PATCH] soc: qcom: socinfo: add soc id for IPQ6018

2020-07-27 Thread Kathiravan T
Add the SoC ID for IPQ6018 variant. Signed-off-by: Kathiravan T --- drivers/soc/qcom/socinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index d9c64a78e49c..b7972bdff027 100644 --- a/drivers/soc/qcom/socinfo.c +++

Re: [RFC PATCH 6/9] PCI: Add 'rcec' field to pci_dev for associated RCiEPs

2020-07-27 Thread Sean V Kelley
On 27 Jul 2020, at 9:11, Jonathan Cameron wrote: On Mon, 27 Jul 2020 12:23:58 +0100 Jonathan Cameron wrote: On Fri, 24 Jul 2020 10:22:20 -0700 Sean V Kelley wrote: From: Qiuxu Zhuo When attempting error recovery for an RCiEP associated with an RCEC device, there needs to be a way to

RE: [PATCH 4/4] x86/cpu: Use SERIALIZE in sync_core() when available

2020-07-27 Thread Luck, Tony
> For a really overenginered solution, but which might perform unnecessary > poorly on existing hardware: > > asm volatile("1: .byte 0xf, 0x1, 0xe8; 2:" >_ASM_EXTABLE(1b,2b)); You win the prize for the smallest code. Might need (the already large) comment to double in

Re: [PATCH 12/26] netfilter: switch nf_setsockopt to sockptr_t

2020-07-27 Thread Jason A. Donenfeld
> From cce2d2e1b43ecee5f4af7cf116808b74b330080f Mon Sep 17 00:00:00 2001 > From: Christoph Hellwig > Date: Mon, 27 Jul 2020 17:42:27 +0200 > Subject: net: remove sockptr_advance > > sockptr_advance never properly worked. Replace it with _offset variants > of copy_from_sockptr and

Re: PROBLEM: cryptsetup fails to unlock drive in 5.8-rc6 (regression)

2020-07-27 Thread Nick Bowler
On 2020-07-27, Al Viro wrote: > On Thu, Jul 23, 2020 at 11:51:01AM -0400, Nick Bowler wrote: >> Hi, >> >> After installing Linux 5.8-rc6, it seems cryptsetup can no longer >> open LUKS volumes. Regardless of the entered passphrase (correct >> or otherwise), the result is a very unhelpful

Re: [PATCH 2/6] rtlwifi: Remove unnecessary parenthese in rtl_dbg uses

2020-07-27 Thread Larry Finger
On 7/27/20 9:52 AM, Joe Perches wrote: On Mon, 2020-07-27 at 09:04 +, Pkshih wrote: So, I think you would like to have parenthesis intentionally. If so, test1 ? : (test2 ? :) would be better. If not, test1 ? : test2 ? : may be what you want (without any parenthesis). Use whatever style

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