Re: [PATCH net-next v3 1/3] net: dp83869: Add ability to advertise Fiber connection

2020-09-10 Thread Dan Murphy
Hello On 9/7/20 9:29 AM, Andrew Lunn wrote: On Sat, Sep 05, 2020 at 11:17:55AM -0700, Jakub Kicinski wrote: On Thu, 3 Sep 2020 06:42:57 -0500 Dan Murphy wrote: Add the ability to advertise the Fiber connection if the strap or the op-mode is configured for 100Base-FX. Auto negotiation is not

[PATCH v3 7/8] MAINTAINERS: Add Krzysztof Kozlowski to Samsung S3FWRN5 and remove Robert

2020-09-10 Thread Krzysztof Kozlowski
Robert Bałdyga's email does not work (bounces) since 2016 so remove it. Additionally there are no review/ack/tested tags from Krzysztof Opasiak so it looks like the driver is not supported. As a maintainer of Samsung ARM/ARM64 SoC, I can take care about this driver and provide some review.

[PATCH v3 8/8] arm64: dts: exynos: Use newer S3FWRN5 GPIO properties in Exynos5433 TM2

2020-09-10 Thread Krzysztof Kozlowski
Since "s3fwrn5" is not a valid vendor prefix, use new GPIO properties instead of the deprecated. Signed-off-by: Krzysztof Kozlowski Tested-by: Marek Szyprowski --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] mm/slab.h: Fix duplicate include file kmemleak.h

2020-09-10 Thread Matthew Wilcox
On Thu, Sep 10, 2020 at 04:13:56PM +, Pintu Kumar wrote: > As I was browsing through this code, I found that linux/kmemleak.h > was declared twice. > > When I run ./scripts/checkincludes.pl it reported the same: > mm/slab.h: linux/kmemleak.h is included more than once. Already reported

[PATCH v3 6/8] nfc: s3fwrn5: Constify s3fwrn5_fw_info when not modified

2020-09-10 Thread Krzysztof Kozlowski
Two functions accept pointer to struct s3fwrn5_fw_info but do not modify the contents. Make them const so the code is a little bit safer. Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/s3fwrn5/firmware.c | 4 ++-- drivers/nfc/s3fwrn5/firmware.h | 2 +- 2 files changed, 3 insertions(+), 3

Re: [PATCH] vfs: add fchmodat2 syscall

2020-09-10 Thread Greg KH
On Thu, Sep 10, 2020 at 10:23:37AM -0400, Rich Felker wrote: > POSIX defines fchmodat as having a 4th argument, flags, that can be > AT_SYMLINK_NOFOLLOW. Support for changing the access mode of symbolic > links is optional (EOPNOTSUPP allowed if not supported), but this flag > is important even on

Re: [PATCH] mm: workingset: ignore slab memory size when calculating shadows pressure

2020-09-10 Thread Johannes Weiner
On Wed, Sep 09, 2020 at 09:55:20AM -0700, Roman Gushchin wrote: > On Wed, Sep 09, 2020 at 10:55:34AM -0400, Johannes Weiner wrote: > > On Thu, Sep 03, 2020 at 04:00:55PM -0700, Roman Gushchin wrote: > > > In the memcg case count_shadow_nodes() sums the number of pages in lru > > > lists and the

Re: platform/x86: asus-wmi: SW_TABLET_MODE is always 1 on some devices

2020-09-10 Thread Hans de Goede
Hi, On 9/4/20 7:17 PM, Samuel Čavoj wrote: Hi, On 04.09.2020 12:06, Hans de Goede wrote: Hi, On 9/4/20 11:45 AM, Samuel Čavoj wrote: Hello! On 02.09.2020 14:52, Samuel Čavoj wrote: Hello, On 02.09.2020 13:52, Hans de Goede wrote: But I would rather try to figure out a better way. Can

Re: [PATCH] scsi: clear UAC before sending SG_IO

2020-09-10 Thread Douglas Gilbert
On 2020-09-10 6:15 a.m., Randall Huang wrote: Make sure UAC is clear before sending SG_IO. Signed-off-by: Randall Huang This patch just looks wrong. Imagine if every LLD front loaded some LLD specific code before each invocation of ioctl(SG_IO). Is UAC Unit Attention Condition? If so the

Re: [PATCH v3 0/3] iio: gyro: adxrs290: Add triggered buffer & debugfs support

2020-09-10 Thread Jonathan Cameron
On Thu, 10 Sep 2020 17:59:57 +0530 Nishant Malpani wrote: > Introduce DATA_RDY trigger for triggered buffer setup; this enables continuous > data capture. Additionally, add support for direct register access using the > debugfs > iio interface. > > The device-tree bindings documentation

[PATCH net-next] net: mvpp2: Initialize link in mvpp2_isr_handle_{xlg,gmac_internal}

2020-09-10 Thread Nathan Chancellor
Clang warns (trimmed for brevity): drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:3073:7: warning: variable 'link' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (val & MVPP22_XLG_STATUS_LINK_UP)

Re: [PATCH] V2: Currently, DRM get the capability of the mst hub only from DP_DPCD_REV and get the slower speed even the mst hub can run in the faster speed.

2020-09-10 Thread Lyude Paul
The commit message should be shorter and follow the format other commits for drm usually do, in this case something like: drm/dp_mst: Retrieve extended DPCD caps for topology manager On Thu, 2020-09-10 at 14:36 +0800, Koba Ko wrote: > As per DP-1.3, First check

Re: [RFC PATCH v9 0/3] Add introspect_access(2) (was O_MAYEXEC)

2020-09-10 Thread Mickaël Salaün
On 10/09/2020 19:21, Mickaël Salaün wrote: > > On 10/09/2020 19:04, Matthew Wilcox wrote: >> On Thu, Sep 10, 2020 at 06:46:09PM +0200, Mickaël Salaün wrote: >>> This ninth patch series rework the previous AT_INTERPRETED and O_MAYEXEC >>> series with a new syscall: introspect_access(2) . Access

Re: [PATCH v2 00/28] Add support for Clang LTO

2020-09-10 Thread Nick Desaulniers
Hey Ian, It was nice to meet you at Linux plumbers. You might want to take a look at this series. It implements builds of the Linux kernel with LTO. It would be good to get eyes on it and help review it from folks working on this from the GCC angle. The series has some configs that split where

Re: [PATCH] fsync.2: ERRORS: add EIO and ENOSPC

2020-09-10 Thread Jeff Layton
On Thu, 2020-09-10 at 09:04 +1000, NeilBrown wrote: > On Tue, Sep 08 2020, Jeff Layton wrote: > > > On Tue, 2020-09-08 at 13:27 +0200, Jan Kara wrote: > > > Added Jeff to CC since he has written the code... > > > > > > On Mon 07-09-20 09:11:06, Michael Kerrisk (man-pages) wrote: > > > >

Re: [PATCH v2 0/3] Expose recovery/coredump configuration from sysfs

2020-09-10 Thread Mathieu Poirier
On Wed, Sep 09, 2020 at 05:27:46PM +, risha...@codeaurora.org wrote: > On 2020-09-04 15:02, Mathieu Poirier wrote: > > On Thu, Sep 03, 2020 at 06:59:44PM -0500, Bjorn Andersson wrote: > > > On Tue 01 Sep 17:05 CDT 2020, Mathieu Poirier wrote: > > > > > > > Hi Rishabh, > > > > > > > > On Thu,

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

2020-09-10 Thread Linus Torvalds
On Thu, Sep 10, 2020 at 2:40 AM Alexander Gordeev wrote: > > It is only gup_fast case that exposes the issue. It hits because > pointers to stack copies are passed to gup_pXd_range iterators, not > pointers to real page tables itself. Can we possibly change fast-gup to not do the stack copies?

[PATCH 07/15] habanalabs/gaudi: allow user to get MAC addresses in INFO IOCTL

2020-09-10 Thread Oded Gabbay
From: Omer Shpigelman The user needs this information when working in a distributed environment with master/slave configuration. All the slaves get their MAC addresses from the driver and send them to the master. Signed-off-by: Omer Shpigelman Reviewed-by: Oded Gabbay Signed-off-by: Oded

[PATCH 06/15] habanalabs/gaudi: add NIC PHY code

2020-09-10 Thread Oded Gabbay
From: Omer Shpigelman Configure the NIC PHY (physical layer). The PHY is configured with the correct polarity and Tx taps depending on the card type. After the initial configuration, the PHY flow contains the following: - Auto-negotiation (if enabled) - PHY F/W tuning - Physical Coding Sublayer

Re: [PATCH RFC 01/10] mm: add Kernel Electric-Fence infrastructure

2020-09-10 Thread Marco Elver
On Thu, 10 Sep 2020 at 19:11, Dmitry Vyukov wrote: > > On Thu, Sep 10, 2020 at 6:19 PM Alexander Potapenko wrote: > > > > On Thu, Sep 10, 2020 at 5:43 PM Dmitry Vyukov wrote: > > > > > > > > + /* Calculate address for this allocation. */ > > > > + if (right) > > > > +

Re: [RFC PATCH v9 0/3] Add introspect_access(2) (was O_MAYEXEC)

2020-09-10 Thread Mickaël Salaün
On 10/09/2020 19:04, Matthew Wilcox wrote: > On Thu, Sep 10, 2020 at 06:46:09PM +0200, Mickaël Salaün wrote: >> This ninth patch series rework the previous AT_INTERPRETED and O_MAYEXEC >> series with a new syscall: introspect_access(2) . Access check are now >> only possible on a file

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

2020-09-10 Thread Dan Murphy
Jakub On 9/8/20 12:47 PM, Jakub Kicinski wrote: On Tue, 8 Sep 2020 09:07:22 -0500 Dan Murphy wrote: 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; + +

Re: [PATCH v2 3/3] arm64: stacktrace: Convert to ARCH_STACKWALK

2020-09-10 Thread Mark Brown
On Wed, Sep 02, 2020 at 07:50:27PM +0100, Mark Rutland wrote: > On Wed, Sep 02, 2020 at 11:32:13AM +0200, Miroslav Benes wrote: > > > - start_backtrace(, > > > - (unsigned long)__builtin_frame_address(0), > > > - (unsigned

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-09-10 Thread Bjorn Helgaas
On Thu, Sep 10, 2020 at 04:33:39PM +, Derrick, Jonathan wrote: > On Wed, 2020-09-09 at 20:55 -0500, Bjorn Helgaas wrote: > > On Fri, Aug 21, 2020 at 08:32:20PM +0800, Kai-Heng Feng wrote: > > > New Intel laptops with VMD cannot reach deeper power saving state, > > > renders very short battery

Re: [PATCH net-next v3 2/3] net: phy: dp83869: support Wake on LAN

2020-09-10 Thread Dan Murphy
Jakub Thanks for the review On 9/5/20 1:34 PM, Jakub Kicinski wrote: On Thu, 3 Sep 2020 06:42:58 -0500 Dan Murphy wrote: This adds WoL support on TI DP83869 for magic, magic secure, unicast and broadcast. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83869.c | 128

[PATCH v3] x86/uaccess: Use pointer masking to limit uaccess speculation

2020-09-10 Thread Josh Poimboeuf
The x86 uaccess code uses barrier_nospec() in various places to prevent speculative dereferencing of user-controlled pointers (which might be combined with further gadgets or CPU bugs to leak data). There are some issues with the current implementation: - The barrier_nospec() in copy_from_user()

[PATCH 07/12] soc: mediatek: pm-domains: Add extra sram control

2020-09-10 Thread Enric Balletbo i Serra
From: Matthias Brugger For some power domains like vpu_core on MT8183 whose sram need to do clock and internal isolation while power on/off sram. We add a cap "MTK_SCPD_SRAM_ISO" to judge if we need to do the extra sram isolation control or not. Signed-off-by: Weiyi Lu Signed-off-by: Matthias

[PATCH 06/12] soc: mediatek: pm-domains: Add SMI block as bus protection block

2020-09-10 Thread Enric Balletbo i Serra
From: Matthias Brugger Apart from the infracfg block, the SMI block is used to enable the bus protection for some power domains. Add support for this block. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- drivers/soc/mediatek/mtk-pm-domains.c | 64

Re: [PATCH] powercap: make documentation reflect code

2020-09-10 Thread Rafael J. Wysocki
On Thu, Sep 10, 2020 at 12:28 PM Amit Kucheria wrote: > > Fix up documentation of the struct members to reflect reality. Also > fixup a stray whitespace. > > Signed-off-by: Amit Kucheria > --- > include/linux/powercap.h | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-) > >

[PATCH 08/12] soc: mediatek: pm-domains: Add subsystem clocks

2020-09-10 Thread Enric Balletbo i Serra
From: Matthias Brugger For the bus protection operations, some subsystem clocks need to be enabled before releasing the protection. This patch identifies the subsystem clocks by it's name. Suggested-by: Weiyi Lu [Adapted the patch to the mtk-pm-domains driver] Signed-off-by: Matthias Brugger

[PATCH 09/12] soc: mediatek: pm-domains: Allow bus protection to ignore clear ack

2020-09-10 Thread Enric Balletbo i Serra
From: Matthias Brugger In some cases the hardware does not create an acknowledgment of the bus protection clearing. Add a flag to the bus protection indicating that a clear event will be ignored. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra ---

[PATCH 10/12] dt-bindings: power: Add MT8183 power domains

2020-09-10 Thread Enric Balletbo i Serra
Add power domains dt-bindings for MT8183. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- .../power/mediatek,power-controller.yaml | 2 ++ include/dt-bindings/power/mt8183-power.h | 26 +++ 2 files changed, 28 insertions(+) create mode

[PATCH 12/12] arm64: dts: mediatek: Add mt8183 power domains controller

2020-09-10 Thread Enric Balletbo i Serra
From: Matthias Brugger Add power domains controller node for SoC mt8183 Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 160 +++ 1 file changed, 160 insertions(+) diff --git

[PATCH 01/12] dt-bindings: power: Add bindings for the Mediatek SCPSYS power domains controller

2020-09-10 Thread Enric Balletbo i Serra
The System Control Processor System (SCPSYS) has several power management related tasks in the system. Add the bindings to define the power domains for the SCPSYS power controller. Co-developed-by: Matthias Brugger Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- Dear

[PATCH 11/12] soc: mediatek: pm-domains: Add support for mt8183

2020-09-10 Thread Enric Balletbo i Serra
From: Matthias Brugger Add the needed board data to support mt8183 SoC. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- drivers/soc/mediatek/mtk-pm-domains.c | 162 ++ include/linux/soc/mediatek/infracfg.h | 28 + 2 files changed, 190

[PATCH 04/12] soc: mediatek: pm-domains: Add bus protection protocol

2020-09-10 Thread Enric Balletbo i Serra
From: Matthias Brugger Bus protection will need to update more then one register in infracfg. Add support for several operations. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- drivers/soc/mediatek/mtk-pm-domains.c | 44 +++ 1 file changed,

[PATCH 05/12] soc: mediatek: pm_domains: Make bus protection generic

2020-09-10 Thread Enric Balletbo i Serra
From: Matthias Brugger Bus protection is not exclusively done by calling the infracfg misc driver. Make the calls for setting and clearing the bus protection generic so that we can use other blocks for it as well. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra ---

[PATCH 02/12] soc: mediatek: Add MediaTek SCPSYS power domains

2020-09-10 Thread Enric Balletbo i Serra
The System Control Processor System (SCPSYS) has several power management related tasks in the system. This driver implements support to handle the different power domains supported in order to meet high performance and low power requirements. Co-developed-by: Matthias Brugger Signed-off-by:

[PATCH 03/12] arm64: dts: mediatek: Add mt8173 power domain controller

2020-09-10 Thread Enric Balletbo i Serra
Add power domain controller node for SoC mt8173. Signed-off-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 78 +--- 1 file changed, 69 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH 00/12] soc: mediatek: pm-domains: Add new driver for SCPSYS power domains controller

2020-09-10 Thread Enric Balletbo i Serra
Dear all, This is a new driver with the aim to deprecate the mtk-scpsys driver. The problem with that driver is that, in order to support more Mediatek SoCs you need to add some logic to handle properly the power-up sequence of newer Mediatek SoCs, doesn't handle parent-child power domains and

Re: remove the last set_fs() in common code, and remove it for x86 and powerpc v3

2020-09-10 Thread Segher Boessenkool
On Thu, Sep 10, 2020 at 03:31:53PM +, David Laight wrote: > > > asm volatile ("" : "+r" (eax)); > > > // So here eax must contain the value set by the "x" instructions. > > > > No, the register eax will contain the value of the eax variable. In the > > asm; it might well be there

Re: [PATCH V4] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine

2020-09-10 Thread Radosław Biernacki
Thank you Pierre. Sending V6. czw., 10 wrz 2020 o 17:58 Pierre-Louis Bossart napisał(a): > > almost there, only couple of typos below. The comments are really good now! > > > +static int skylake_nau8825_trigger(struct snd_pcm_substream *substream, > > int cmd) > > { > > struct

[PATCH V6] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine

2020-09-10 Thread Radoslaw Biernacki
Since 256xFS clocks cannot be generated by SKL, the NAU8825 is configured to re-generate its system clock from the BCLK using the FLL. The link is configured to use a 48kHz frame rate, and 24 bits in 25-bit slot. The SSP configuration is extracted from NHLT settings and not dynamically changed.

Re: [PATCH] PM: : fix @em_pd kernel-doc warning

2020-09-10 Thread Rafael J. Wysocki
On Mon, Sep 7, 2020 at 5:43 AM Randy Dunlap wrote: > > From: Randy Dunlap > > Fix kernel-doc warning in : > > ../include/linux/device.h:613: warning: Function parameter or member 'em_pd' > not described in 'device' > > Fixes: 1bc138c62295 ("PM / EM: add support for other devices than CPUs in >

Re: [PATCH] mm/doc: add usage description for migrate_vma_*()

2020-09-10 Thread Jason Gunthorpe
On Thu, Sep 10, 2020 at 10:56:57AM -0600, Jonathan Corbet wrote: > On Wed, 9 Sep 2020 14:29:56 -0700 > Ralph Campbell wrote: > > > The migrate_vma_setup(), migrate_vma_pages(), and migrate_vma_finalize() > > API usage by device drivers is not well documented. > > Add a description for how device

Re: [PATCH 1/2] kconfig: qconf: use delete[] instead of delete to free array (again)

2020-09-10 Thread Nick Desaulniers
On Tue, Sep 8, 2020 at 3:17 PM Masahiro Yamada wrote: > > Commit c9b09a9249e6 ("kconfig: qconf: use delete[] instead of delete > to free array") fixed two lines, but there is one more. > (cppcheck does not report it for some reason...) > > This was detected by Clang. > > "make HOSTCXX=clang++

Re: [PATCH v11 08/11] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-09-10 Thread Rob Herring
On Mon, Aug 24, 2020 at 03:30:21PM -0400, Jim Quinlan wrote: > The Raspberry Pi (RPI) is currently the only chip using this driver > (pcie-brcmstb.c). There, only one memory controller is used, without an > extension region, and the SCB0 viewport size is set to the size of the > first and only

Re: [PATCH] hwmon: pmbus: max20730: adjust the vout reading given voltage divider

2020-09-10 Thread Chu Lin
The same patch got sent twice. Please, discard this one. Thanks, Chu On Thu, Sep 10, 2020 at 10:09 AM Chu Lin wrote: > > Problem: > We use voltage dividers so that the voltage presented at the voltage > sense pins is confusing. We might need to convert these readings to more > meaningful

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

2020-09-10 Thread Jason Gunthorpe
On Thu, Sep 10, 2020 at 07:07:57PM +0200, Gerald Schaefer wrote: > I might have lost track a bit. Are we still talking about possible > functional impacts of either our current pagetable walking with s390 > (apart from gup_fast), or the proposed generic change (for s390, or > others?)? I'm

[PATCH] iommu/amd: Fix potential @entry null deref

2020-09-10 Thread Joao Martins
After commit 26e495f34107 ("iommu/amd: Restore IRTE.RemapEn bit after programming IRTE"), smatch warns: drivers/iommu/amd/iommu.c:3870 amd_iommu_deactivate_guest_mode() warn: variable dereferenced before check 'entry' (see line 3867) Fix this by moving the @valid assignment to

[PATCH] drm/vc4: Fix bitwise OR versus ternary operator in vc4_plane_mode_set

2020-09-10 Thread Nathan Chancellor
Clang warns: drivers/gpu/drm/vc4/vc4_plane.c:901:27: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] fb->format->has_alpha ? ~ ^

Re: [PATCH 06/14] block: lift setting the readahead size into the block layer

2020-09-10 Thread Mike Snitzer
On Thu, Sep 10 2020 at 5:28am -0400, Christoph Hellwig wrote: > On Wed, Sep 02, 2020 at 12:20:07PM -0400, Mike Snitzer wrote: > > On Wed, Sep 02 2020 at 11:11am -0400, > > Christoph Hellwig wrote: > > > > > On Wed, Aug 26, 2020 at 06:07:38PM -0400, Mike Snitzer wrote: > > > > On Sun, Jul 26

Re: [PATCH] memcg: introduce per-memcg reclaim interface

2020-09-10 Thread SeongJae Park
> On Wed, Sep 9, 2020 at 11:37 PM SeongJae Park wrote: > > > > On 2020-09-09T14:57:52-07:00 Shakeel Butt wrote: > > > > > Introduce an memcg interface to trigger memory reclaim on a memory cgroup. > > > > > > Use cases: > > > -- > > > > > > 1) Per-memcg uswapd: > > > > > > Usually

[PATCH v2] qedr: fix resource leak in qedr_create_qp

2020-09-10 Thread Keita Suzuki
When xa_insert() fails, the acquired resource in qedr_create_qp should also be freed. However, current implementation does not handle the error. Fix this by adding a new goto label that calls qedr_free_qp_resources. Fixes: 1212767e23bb ("qedr: Add wrapping generic structure for qpidr and adjust

Re: [PATCH RFC 01/10] mm: add Kernel Electric-Fence infrastructure

2020-09-10 Thread Dmitry Vyukov
On Thu, Sep 10, 2020 at 6:19 PM Alexander Potapenko wrote: > > On Thu, Sep 10, 2020 at 5:43 PM Dmitry Vyukov wrote: > > > > > + /* Calculate address for this allocation. */ > > > + if (right) > > > + meta->addr += PAGE_SIZE - size; > > > + meta->addr =

Re: [PATCH 2/2] watchdog: sp5100_tco: Enable watchdog on Family 17h devices if disabled

2020-09-10 Thread Jan Kiszka
On 10.09.20 18:31, Guenter Roeck wrote: > On Family 17h (Ryzen) devices, the WatchdogTmrEn bit of PmDecodeEn not only > enables watchdog memory decoding at 0xfeb0, it also enables the > watchdog hardware itself. Use this information to enable the watchdog if > it is not already enabled. > >

Re: [PATCH v2 v4.14.y 0/3] vfio: Fix for CVE-2020-12888

2020-09-10 Thread Greg KH
On Wed, Sep 09, 2020 at 12:24:23AM +0530, Ajay Kaher wrote: > CVE-2020-12888 Kernel: vfio: access to disabled MMIO space of some > devices may lead to DoS scenario > > The VFIO modules allow users (guest VMs) to enable or disable access to the > devices' MMIO memory address spaces. If a user

Re: [PATCH v2 9/9] iommu/vt-d: Store guest PASID during bind

2020-09-10 Thread Jacob Pan
On Tue, 1 Sep 2020 19:08:44 +0200 Auger Eric wrote: > Hi Jacob, > On 8/22/20 6:35 AM, Jacob Pan wrote: > > IOASID core maintains the guest-host mapping in the form of SPID and > > IOASID. This patch assigns the guest PASID (if valid) as SPID while > > binding guest page table with a host PASID.

Re: [PATCHSET 0/4] perf stat: Add --multiply-cgroup option

2020-09-10 Thread Ian Rogers
On Thu, Sep 10, 2020 at 8:57 AM Andi Kleen wrote: > > On Tue, Sep 08, 2020 at 01:42:24PM +0900, Namhyung Kim wrote: > > When we profile cgroup events with perf stat, it's very annoying to > > specify events and cgroups on the command line as it requires the > > mapping between events and cgroups.

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

2020-09-10 Thread Gerald Schaefer
On Thu, 10 Sep 2020 12:10:26 -0300 Jason Gunthorpe wrote: > On Thu, Sep 10, 2020 at 03:28:03PM +0200, Gerald Schaefer wrote: > > On Thu, 10 Sep 2020 10:02:33 -0300 > > Jason Gunthorpe wrote: > > > > > On Thu, Sep 10, 2020 at 11:39:25AM +0200, Alexander Gordeev wrote: > > > > > > > As

[PATCH] hwmon: pmbus: max20730: adjust the vout reading given voltage divider

2020-09-10 Thread Chu Lin
Problem: We use voltage dividers so that the voltage presented at the voltage sense pins is confusing. We might need to convert these readings to more meaningful readings given the voltage divider. Solution: Read the voltage divider resistance from dts and convert the voltage reading to a more

[PATCH] hwmon: pmbus: max20730: adjust the vout reading given voltage divider

2020-09-10 Thread Chu Lin
Problem: We use voltage dividers so that the voltage presented at the voltage sense pins is confusing. We might need to convert these readings to more meaningful readings given the voltage divider. Solution: Read the voltage divider resistance from dts and convert the voltage reading to a more

Re: [PATCH] scsi: clear UAC before sending SG_IO

2020-09-10 Thread kernel test robot
Hi Randall, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on scsi/for-next v5.9-rc4 next-20200910] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH 27/29] ath9k: ar5008_initvals: Move ar5416Bank{0,1,2,3,7} to where they are used

2020-09-10 Thread Lee Jones
On Thu, 10 Sep 2020, Kalle Valo wrote: > Lee Jones wrote: > > > Fixes the following W=1 kernel build warning(s): > > > > drivers/net/wireless/ath/ath9k/ar5008_initvals.h:627:18: warning: > > ‘ar5416Bank7’ defined but not used [-Wunused-const-variable=] > > 627 | static const u32

RE: [PATCH v3 01/19] dlb2: add skeleton for DLB 2.0 driver

2020-09-10 Thread Eads, Gage
> -Original Message- > From: Greg KH > Sent: Thursday, September 10, 2020 11:32 AM > To: Eads, Gage > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Karlsson, Magnus > ; Topel, Bjorn > Subject: Re: [PATCH v3 01/19] dlb2: add skeleton for DLB 2.0 driver > > On Thu, Sep 10, 2020 at

[RFC PATCH v9 0/3] Add introspect_access(2) (was O_MAYEXEC)

2020-09-10 Thread Mickaël Salaün
Hi, This ninth patch series rework the previous AT_INTERPRETED and O_MAYEXEC series with a new syscall: introspect_access(2) . Access check are now only possible on a file descriptor, which enable to avoid possible race conditions in user space. For now, the only LSM hook triggered by

Re: [PATCH v2] selftests/lkdtm: Use "comm" instead of "diff" for dmesg

2020-09-10 Thread Greg Kroah-Hartman
On Wed, Sep 09, 2020 at 03:35:00PM -0600, Shuah Khan wrote: > On 9/9/20 3:17 PM, Kees Cook wrote: > > Instead of full GNU diff (which smaller boot environments may not have), > > use "comm" which is more available. > > > > Reported-by: Naresh Kamboju > > Cc: Shuah Khan > > Cc:

Re: [PATCH 1/6] dt-bindings: gpio: Convert bindings for NXP PCA953x family to dtschema

2020-09-10 Thread Krzysztof Kozlowski
On Sat, Aug 29, 2020 at 11:40:19AM +0200, Krzysztof Kozlowski wrote: > Convert the NXP PCA953x family of GPIO expanders bindings to device tree > schema. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/gpio/gpio-pca953x.txt | 90 >

[PATCH] dt-bindings: hwmon: max20730: adding device tree doc for max20730

2020-09-10 Thread Chu Lin
Testing: make dt_binding_check Signed-off-by: Chu Lin --- .../devicetree/bindings/hwmon/max20730.txt| 23 +++ MAINTAINERS | 1 + 2 files changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/max20730.txt

[PATCH] drm/vc4: Update type of reg parameter in vc4_hdmi_{read,write}

2020-09-10 Thread Nathan Chancellor
Clang warns 100+ times in the vc4 driver along the lines of: drivers/gpu/drm/vc4/vc4_hdmi_phy.c:518:13: warning: implicit conversion from enumeration type 'enum vc4_hdmi_field' to different enumeration type 'enum vc4_hdmi_regs' [-Wenum-conversion] HDMI_WRITE(HDMI_TX_PHY_POWERDOWN_CTL,

Re: [RFC PATCH v9 0/3] Add introspect_access(2) (was O_MAYEXEC)

2020-09-10 Thread Matthew Wilcox
On Thu, Sep 10, 2020 at 06:46:09PM +0200, Mickaël Salaün wrote: > This ninth patch series rework the previous AT_INTERPRETED and O_MAYEXEC > series with a new syscall: introspect_access(2) . Access check are now > only possible on a file descriptor, which enable to avoid possible race >

Re: [PATCH 2/2] watchdog: sp5100_tco: Enable watchdog on Family 17h devices if disabled

2020-09-10 Thread Guenter Roeck
Hi Jan, On 9/10/20 9:34 AM, Jan Kiszka wrote: > On 10.09.20 18:31, Guenter Roeck wrote: >> On Family 17h (Ryzen) devices, the WatchdogTmrEn bit of PmDecodeEn not only >> enables watchdog memory decoding at 0xfeb0, it also enables the >> watchdog hardware itself. Use this information to enable

Re: [PATCH] ARM: zynq: Add Z-turn board V5

2020-09-10 Thread Michal Simek
On 09. 09. 20 17:06, agrive...@deutnet.info wrote: > From: Alexandre GRIVEAUX > > Adding Z-turn board V5 to resolve the change between: > > "Z-TURNBOARD_schematic.pdf" schematics state version 1 to 4 has Atheros AR8035 > "Z-Turn_Board_sch_V15_20160303.pdf" schematics state version 5 has

Re: [PATCH 1/3] Documentation/admin-guide: kernel-parameters: update CMA entries

2020-09-10 Thread Jonathan Corbet
On Wed, 9 Sep 2020 20:26:04 -0700 Randy Dunlap wrote: > Add qualifying build option legend [CMA] to kernel boot options > that requirce CMA support to be enabled for them to be usable. > > Also capitalize 'CMA' when it is used as an acronym. > > Signed-off-by: Randy Dunlap > Cc: Jonathan

[PATCH v3 1/2] dt-bindings: power: Add the bq256xx dt bindings

2020-09-10 Thread Ricardo Rivera-Matos
Add the bindings for the bq256xx series of battery charging ICs. Datasheets: - https://www.ti.com/lit/ds/symlink/bq25600.pdf - https://www.ti.com/lit/ds/symlink/bq25601.pdf - https://www.ti.com/lit/ds/symlink/bq25600d.pdf - https://www.ti.com/lit/ds/symlink/bq25601d.pdf -

Re: [PATCH] vfs: add fchmodat2 syscall

2020-09-10 Thread Rich Felker
On Thu, Sep 10, 2020 at 05:42:34PM +0100, Christoph Hellwig wrote: > On Thu, Sep 10, 2020 at 12:39:50PM -0400, Rich Felker wrote: > > On Thu, Sep 10, 2020 at 05:20:59PM +0100, Christoph Hellwig wrote: > > > On Thu, Sep 10, 2020 at 10:23:37AM -0400, Rich Felker wrote: > > > > userspace emulation

Re: MSI/MSIX for VFIO platform

2020-09-10 Thread Alex Williamson
On Thu, 10 Sep 2020 16:15:27 +0530 Vikas Gupta wrote: > Hi Alex/Cornelia, > > We are looking for MSI interrupts for platform devices in user-space > applications via event/poll mechanism using VFIO. > > Since there is no support for MSI/MSIX handling in VFIO-platform in kernel, > it may not

Re: [PATCH] doc:it_IT: align Italian documentation

2020-09-10 Thread Jonathan Corbet
On Thu, 10 Sep 2020 00:38:39 +0200 Federico Vaga wrote: > Translation for the following patches > > commit 68e4cd17e218 ("docs: deprecated.rst: Add zero-length and one-element > arrays") > commit 5429ef62bcf3 ("compiler/gcc: Raise minimum GCC version for kernel > builds to 4.8") > commit

Re: [PATCH v3 01/19] dlb2: add skeleton for DLB 2.0 driver

2020-09-10 Thread Greg KH
On Thu, Sep 10, 2020 at 04:52:37PM +, Eads, Gage wrote: > > > > -Original Message- > > From: Greg KH > > Sent: Thursday, September 10, 2020 11:32 AM > > To: Eads, Gage > > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Karlsson, Magnus > > ; Topel, Bjorn > > Subject: Re: [PATCH

Re: [PATCH] mm/doc: add usage description for migrate_vma_*()

2020-09-10 Thread Jonathan Corbet
On Wed, 9 Sep 2020 14:29:56 -0700 Ralph Campbell wrote: > The migrate_vma_setup(), migrate_vma_pages(), and migrate_vma_finalize() > API usage by device drivers is not well documented. > Add a description for how device drivers are expected to use it. > > Signed-off-by: Ralph Campbell > --- >

Re: [PATCH 01/30] .gitignore: docs: ignore sphinx_*/ directories

2020-09-10 Thread Jonathan Corbet
On Wed, 9 Sep 2020 16:10:32 +0200 Mauro Carvalho Chehab wrote: > The default way of building documentation is to use > Sphinx toolchain installed via pip, inside the > Kernel tree main directory. That's what's recommended by: > > scripts/sphinx-pre-install > > As it usually provides a

Re: [PATCH 2/2] watchdog: sp5100_tco: Enable watchdog on Family 17h devices if disabled

2020-09-10 Thread Jan Kiszka
On 10.09.20 18:53, Guenter Roeck wrote: > Hi Jan, > > On 9/10/20 9:34 AM, Jan Kiszka wrote: >> On 10.09.20 18:31, Guenter Roeck wrote: >>> On Family 17h (Ryzen) devices, the WatchdogTmrEn bit of PmDecodeEn not only >>> enables watchdog memory decoding at 0xfeb0, it also enables the >>>

Re: kernel BUG at /usr/src/kernel/lib/dynamic_debug.c:267!

2020-09-10 Thread Greg Kroah-Hartman
On Thu, Sep 10, 2020 at 08:23:23AM +1000, Stephen Rothwell wrote: > Hi Greg, > > On Wed, 9 Sep 2020 20:12:51 +0200 Greg Kroah-Hartman > wrote: > > > > I'll go revert both patches from my tree in the morning, which should > > clear these issues up. > > I have reverted them from linux-next

Re: [PATCH 4/6] ARM: dts: aspeed: Fix PCA95xx GPIO expander properties on Portwell

2020-09-10 Thread Krzysztof Kozlowski
On Sat, Aug 29, 2020 at 11:40:22AM +0200, Krzysztof Kozlowski wrote: > The PCA95xx GPIO expander requires GPIO controller properties to operate > properly. > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/boot/dts/aspeed-bmc-portwell-neptune.dts | 2 ++ > 1 file changed, 2 insertions(+)

[tip: x86/fpu] x86/fpu: Allow multiple bits in clearcpuid= parameter

2020-09-10 Thread tip-bot2 for Arvind Sankar
The following commit has been merged into the x86/fpu branch of tip: Commit-ID: 0a4bb5e5507a585532cc413125b921c8546fc39f Gitweb: https://git.kernel.org/tip/0a4bb5e5507a585532cc413125b921c8546fc39f Author:Arvind Sankar AuthorDate:Mon, 07 Sep 2020 17:39:19 -04:00 Committer:

Re: [PATCH 1/1] of: properties of reserved-memory nodes

2020-09-10 Thread Grant Likely
On 10/09/2020 17:20, Heinrich Schuchardt wrote: The reusable and the no-map property are mutually exclusive. Clarify this in the documentation. Signed-off-by: Heinrich Schuchardt Acked-by: Grant Likely --- .../devicetree/bindings/reserved-memory/reserved-memory.txt| 3 +++ 1

Re: [PATCH] vfs: add fchmodat2 syscall

2020-09-10 Thread Christoph Hellwig
On Thu, Sep 10, 2020 at 12:39:50PM -0400, Rich Felker wrote: > On Thu, Sep 10, 2020 at 05:20:59PM +0100, Christoph Hellwig wrote: > > On Thu, Sep 10, 2020 at 10:23:37AM -0400, Rich Felker wrote: > > > userspace emulation done in libc implementations. No change is made to > > > the underlying

Re: [PATCHv7 10/12] arm64: dts: layerscape: Add PCIe EP node for ls1088a

2020-09-10 Thread Rob Herring
On Tue, Aug 11, 2020 at 05:54:39PM +0800, Zhiqiang Hou wrote: > From: Xiaowei Bao > > Add PCIe EP node for ls1088a to support EP mode. > > Signed-off-by: Xiaowei Bao > Reviewed-by: Andrew Murray > Signed-off-by: Hou Zhiqiang > --- > V7: > - Rebase the patch without functionality change. >

Re: [PATCH 2/4] kbuild: remove cc-option test of -fno-merge-all-constants

2020-09-10 Thread Masahiro Yamada
On Fri, Sep 11, 2020 at 1:33 AM Nathan Chancellor wrote: > > On Thu, Sep 10, 2020 at 10:51:18PM +0900, Masahiro Yamada wrote: > > The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. > > > > Here is the godbolt: > > https://godbolt.org/z/8T4177 > > > > Signed-off-by: Masahiro

Re: [PATCH v11 04/11] PCI: brcmstb: Add suspend and resume pm_ops

2020-09-10 Thread Jim Quinlan
On Thu, Sep 10, 2020 at 11:56 AM Rob Herring wrote: > > On Mon, Aug 24, 2020 at 03:30:17PM -0400, Jim Quinlan wrote: > > From: Jim Quinlan > > > > Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend > > and resume. Now the PCIe driver may do so as well. > > > >

Re: [PATCH 00/30] docs: fix documentation build parsing errors

2020-09-10 Thread Jonathan Corbet
On Wed, 9 Sep 2020 16:10:31 +0200 Mauro Carvalho Chehab wrote: > Currently, there are several warnings/errors produced when building > the documentation with "make htmldocs". > > This series fixes almost all such errors. It is produced against > linux-next, branch next-20200909. > > Some of

Re: [PATCH 4/4] kbuild: remove cc-option test of -Werror=date-time

2020-09-10 Thread Nathan Chancellor
On Thu, Sep 10, 2020 at 10:51:20PM +0900, Masahiro Yamada wrote: > The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. > > Here is the godbolt: > https://godbolt.org/z/xvjcMa > > Signed-off-by: Masahiro Yamada Introduced in clang 3.5.0, see commit

Re: [PATCH 2/4] kbuild: remove cc-option test of -fno-merge-all-constants

2020-09-10 Thread Nathan Chancellor
On Thu, Sep 10, 2020 at 10:51:18PM +0900, Masahiro Yamada wrote: > The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. > > Here is the godbolt: > https://godbolt.org/z/8T4177 > > Signed-off-by: Masahiro Yamada For what it's worth, the commit that introduced this block is

Re: [PATCH] vfs: add fchmodat2 syscall

2020-09-10 Thread Rich Felker
On Thu, Sep 10, 2020 at 05:20:59PM +0100, Christoph Hellwig wrote: > On Thu, Sep 10, 2020 at 10:23:37AM -0400, Rich Felker wrote: > > userspace emulation done in libc implementations. No change is made to > > the underlying chmod_common(), so it's still possible to attempt > > changes via procfs,

[PATCH 1/2] watchdog: sp5100: Fix definition of EFCH_PM_DECODEEN3

2020-09-10 Thread Guenter Roeck
EFCH_PM_DECODEEN3 is supposed to access DECODEEN register bits 24..31, in other words the register at byte offset 3. Cc: Jan Kiszka Fixes: 887d2ec51e34b ("watchdog: sp5100_tco: Add support for recent FCH versions") Signed-off-by: Guenter Roeck --- drivers/watchdog/sp5100_tco.h | 2 +- 1 file

[PATCH 2/2] watchdog: sp5100_tco: Enable watchdog on Family 17h devices if disabled

2020-09-10 Thread Guenter Roeck
On Family 17h (Ryzen) devices, the WatchdogTmrEn bit of PmDecodeEn not only enables watchdog memory decoding at 0xfeb0, it also enables the watchdog hardware itself. Use this information to enable the watchdog if it is not already enabled. Cc: Jan Kiszka Signed-off-by: Guenter Roeck ---

[PATCHv1] gpu: ipu-v3: Add 8 pixel alignment fix

2020-09-10 Thread Sebastian Reichel
Some standard (but unusual) resolutions like 1366x768 do not work properly with i.MX6 SoCs, since the horizontal resolution needs to be aligned to 8 pixels (so 1360x768 or 1368x768 work). This patch allocates framebuffers allocated to 8 pixels. The extra time required to send the additional

Re: [PATCH 3/4] kbuild: remove cc-option test of -fno-stack-check

2020-09-10 Thread Nathan Chancellor
On Thu, Sep 10, 2020 at 10:51:19PM +0900, Masahiro Yamada wrote: > The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. > > Here is the godbolt: > https://godbolt.org/z/59cK6o > > Signed-off-by: Masahiro Yamada This flag is technically ignored by clang (see commit

Re: [PATCH] qedr: fix resource leak in qedr_create_qp

2020-09-10 Thread Keita Suzuki
Hi, Thank you for your comment. I will re-label the goto statements and post the patch as version 2. Thanks, Keita 2020年9月10日(木) 22:24 Markus Elfring : > > > Fix this by adding a new goto label that calls qedr_free_qp_resources. > > … > > +++ b/drivers/infiniband/hw/qedr/verbs.c > … > > @@

Re: [PATCH v3 06/17] virt: acrn: Introduce VM management interfaces

2020-09-10 Thread Greg Kroah-Hartman
On Thu, Sep 10, 2020 at 02:19:00PM +0800, Shuo A Liu wrote: > Hi Greg, > > On Wed 9.Sep'20 at 11:45:16 +0200, Greg Kroah-Hartman wrote: > > On Wed, Sep 09, 2020 at 05:08:25PM +0800, shuo.a@intel.com wrote: > > > From: Shuo Liu > > > > > > The VM management interfaces expose several VM

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