Re: [PATCH] xfs: set inode size after creating symlink

2021-01-21 Thread Darrick J. Wong
On Thu, Jan 21, 2021 at 09:19:12AM -0600, Jeffrey Mitchell wrote: > When XFS creates a new symlink, it writes its size to disk but not to the > VFS inode. This causes i_size_read() to return 0 for that symlink until > it is re-read from disk, for example when the system is rebooted. > > I found th

Re: [PATCH 1/6] tty: implement write_iter

2021-01-21 Thread Linus Torvalds
On Thu, Jan 21, 2021 at 9:57 AM Greg Kroah-Hartman wrote: > > Incremental patches please as these are already in my public branches > and I would have to revert them and add new ones but that's messy, so > fixes on top is fine. Ok. And since I think you put that first tty_write conversion patch i

Re: Splicing to/from a tty

2021-01-21 Thread Linus Torvalds
On Thu, Jan 21, 2021 at 9:03 AM Robert Karszniewicz wrote: > > I confirm that the 4 patches, as well as the 4+2 patches, fix the regression I > noticed with cat failing on sendfile() to ttymxc0. Thanks. Now we just need to find somebody with HDLC use cases and we'll actually have this series prop

Re: [PATCH v1 2/2] iommu: add Unisoc iommu basic driver

2021-01-21 Thread kernel test robot
Hi Chunyan, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on v5.11-rc4 next-20210121] [cannot apply to iommu/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH v17 08/26] x86/mm: Introduce _PAGE_COW

2021-01-21 Thread Borislav Petkov
On Tue, Dec 29, 2020 at 01:30:35PM -0800, Yu-cheng Yu wrote: > @@ -182,6 +182,12 @@ static inline int pud_young(pud_t pud) > > static inline int pte_write(pte_t pte) > { > + /* > + * If _PAGE_DIRTY is set, the PTE must either have _PAGE_RW or be > + * a shadow stack PTE, which is

Re: [PATCH 2/9] hugetlb/userfaultfd: Forbid huge pmd sharing when uffd enabled

2021-01-21 Thread Peter Xu
On Fri, Jan 15, 2021 at 11:04:44AM -0800, Axel Rasmussen wrote: [...] > @@ -947,4 +948,15 @@ static inline __init void hugetlb_cma_check(void) > } > #endif > > +static inline bool want_pmd_share(struct vm_area_struct *vma) > +{ > +#ifdef CONFIG_ARCH_WANT_HUGE_PMD_SHARE > + if (uffd_disabl

[PATCH v1 09/13] ARM: tegra: acer-a500: Rename avdd to vdda of touchscreen node

2021-01-21 Thread Dmitry Osipenko
Rename avdd supply to vdda of the touchscreen node. The old supply name was incorrect. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/ar

[PATCH v1 10/13] ARM: tegra: nexus7: Specify all CPU cores as cooling devices

2021-01-21 Thread Dmitry Osipenko
If CPU0 is unplugged the cooling device can not rebind to CPU1. And if CPU0 is plugged in again, the cooling device may fail to initialize. If the CPUs are mapped with the physical CPU0 to Linux numbering CPU1, the cooling device mapping will fail. Hence specify all CPU cores as a cooling devices

Re: [PATCH v6 0/2] Documentation: livepatch: Document reliable stacktrace and minor cleanup

2021-01-21 Thread Jonathan Corbet
On Wed, 20 Jan 2021 16:47:12 + Mark Brown wrote: > This series adds a document, mainly written by Mark Rutland, which makes > explicit the requirements for implementing reliable stacktrace in order > to aid architectures adding this feature. It also updates the other > livepatching documents

Re: [PATCH 6/9] userfaultfd: disable huge PMD sharing for MINOR registered VMAs

2021-01-21 Thread Peter Xu
On Fri, Jan 15, 2021 at 11:04:48AM -0800, Axel Rasmussen wrote: > As the comment says: for the MINOR fault use case, although the page > might be present and populated in the other (non-UFFD-registered) half > of the shared mapping, it may be out of date, and we explicitly want > userspace to get a

ERROR: modpost: "cpm_setbrg" undefined!

2021-01-21 Thread kernel test robot
: powerpc64-randconfig-r025-20210121 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 22b68440e1647e16b5ee24b924986207173c02d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

Re: [PATCH] ACPICA: fix -Wfallthrough

2021-01-21 Thread Rafael J. Wysocki
On Thu, Jan 21, 2021 at 11:08 AM Jon Hunter wrote: > > > On 11/11/2020 02:11, Nick Desaulniers wrote: > > The "fallthrough" pseudo-keyword was added as a portable way to denote > > intentional fallthrough. This code seemed to be using a mix of > > fallthrough comments that GCC recognizes, and some

Re: [PATCH bpf-next v3 0/2] BPF docs fixups

2021-01-21 Thread Jonathan Corbet
On Wed, 20 Jan 2021 13:39:44 + Brendan Jackman wrote: > Difference from v2->v3 [1]: > > * Just fixed a commite message, rebased, and added Lukas' review tag - thanks >Lukas! > > Difference from v1->v2 [1]: > > * Split into 2 patches > > * Avoided unnecessary ': ::' in .rst source >

Re: rcu-torture: Internal error: Oops: 96000006

2021-01-21 Thread Paul E. McKenney
On Thu, Jan 21, 2021 at 10:37:21PM +0530, Naresh Kamboju wrote: > While running rcu-torture test on qemu_arm64 and arm64 Juno-r2 device > the following kernel crash noticed. This started happening from Linux next > next-20210111 tag to next-20210121. > > metadata: > git bran

Re: [RFC PATCH 7/7] irqchip/apple-aic: add SMP support to the Apple AIC driver.

2021-01-21 Thread Rob Herring
On Thu, Jan 21, 2021 at 12:09 PM Mohamed Mediouni wrote: > > > > > On 21 Jan 2021, at 18:37, Rob Herring wrote: > > > > On Thu, Jan 21, 2021 at 10:43 AM Mohamed Mediouni > > wrote: > >>> On 21 Jan 2021, at 17:40, Rob Herring wrote: > >>> On Thu, Jan 21, 2021 at 6:52 AM Mohamed Mediouni > >>> w

Re: [PATCH 0/1] mm: Optimizing hugepage zeroing in arm64

2021-01-21 Thread Robin Murphy
On 2021-01-21 17:46, Will Deacon wrote: On Thu, Jan 21, 2021 at 10:21:50PM +0530, Prathu Baronia wrote: This patch removes the unnecessary kmap calls in the hugepage zeroing path and improves the timing by 62%. I had proposed a similar change in Apr-May'20 timeframe in memory.c where I proposed

Re: [PATCH] ACPICA: fix -Wfallthrough

2021-01-21 Thread Nick Desaulniers
On Thu, Jan 21, 2021 at 11:03 AM Rafael J. Wysocki wrote: > > On Thu, Jan 21, 2021 at 11:08 AM Jon Hunter wrote: > > > > > > On 11/11/2020 02:11, Nick Desaulniers wrote: > > > The "fallthrough" pseudo-keyword was added as a portable way to denote > > > intentional fallthrough. This code seemed to

Re: [RESEND PATCH v6 4/6] arm64: defconfig: Enable Tegra audio graph card driver

2021-01-21 Thread Thierry Reding
On Tue, Jan 19, 2021 at 02:58:14PM +0530, Sameer Pujar wrote: > This commit enables Tegra audio graph card driver which is based on > the generic audio-graph card driver. This is intended to be used > on platforms based on Tegra210 and later chips. > > Signed-off-by: Sameer Pujar > Reviewed-by: J

[PATCH] scsi: ufs: Cleanup WB buffer flush toggle implementation

2021-01-21 Thread Bean Huo
From: Bean Huo Delete ufshcd_wb_buf_flush_enable() and ufshcd_wb_buf_flush_disable(), move the implementation into ufshcd_wb_toggle_flush(). Reviewed-by: Stanley Chu Reviewed-by: Can Guo Signed-off-by: Bean Huo --- Changelog: 1. Rebased the patch onto 5.12/scsi-staging, since existing

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2021-01-21 Thread Steven Rostedt
On Thu, 21 Jan 2021 17:30:40 +0300 Denis Efremov wrote: > Hi, > > This patch (CVE-2020-27825) was tagged with > Fixes: b23d7a5f4a07a ("ring-buffer: speed up buffer resets by avoiding > synchronize_rcu for each CPU") > > I'm not an expert here but it seems like b23d7a5f4a07a only refactored > r

Re: [PATCH v6 00/16] Fix several bad kernel-doc markups

2021-01-21 Thread Jonathan Corbet
On Thu, 14 Jan 2021 09:04:36 +0100 Mauro Carvalho Chehab wrote: > 1) 10 remaining fixup patches from the series I sent back on Dec, 1st: > >parport: fix a kernel-doc markup >rapidio: fix kernel-doc a markup >fs: fix kernel-doc markups >pstore/zone: fix a kernel-doc markup >f

Re: [RFC][PATCH 00/25] Network fs helper library & fscache kiocb API

2021-01-21 Thread J. Bruce Fields
On Thu, Jan 21, 2021 at 06:55:13PM +, David Howells wrote: > J. Bruce Fields wrote: > > > > Fixing this requires a much bigger overhaul of cachefiles than this > > > patchset > > > performs. > > > > That sounds like "sometimes you may get file corruption and there's > > nothing you can do a

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-21 Thread Rafael J. Wysocki
On Thu, Jan 21, 2021 at 6:23 PM Nicolas Pitre wrote: > > The clock API splits its interface into sleepable ant atomic contexts: > > - clk_prepare/clk_unprepare for stuff that might sleep > > - clk_enable_clk_disable for anything that may be done in atomic context > > The code handling runtime PM f

Re: [PATCH v4] driver core: Fix device link device name collision

2021-01-21 Thread Greg Kroah-Hartman
On Thu, Jan 21, 2021 at 08:01:24PM +0100, Michael Walle wrote: > Hi, > > Am 2021-01-10 18:54, schrieb Saravana Kannan: > > The device link device's name was of the form: > > -- > > > > This can cause name collision as reported here [1] as device names are > > not globally unique. Since device nam

Re: [PATCH 0/9] userfaultfd: add minor fault handling

2021-01-21 Thread Peter Xu
On Fri, Jan 15, 2021 at 11:04:42AM -0800, Axel Rasmussen wrote: > UFFDIO_COPY and UFFDIO_ZEROPAGE cannot be used to resolve minor faults. > Without > modifications, the existing codepath assumes a new page needs to be allocated. > This is okay, since userspace must have a second non-UFFD-registere

[PATCH v4] soc/tegra: Add devm_tegra_core_dev_init_opp_table()

2021-01-21 Thread Dmitry Osipenko
Add common helper which initializes OPP table for Tegra SoC core devices. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Tested-by: Matt Merhar Signed-off-by: Dmitry Osipenko --- Changelog: v4: - Fixed inconsistency of "params" argument naming. I renamed "cfg" to "params" in v3, but

[PATCH 2/2] iio:adc:ti-ads124s08: Fix packet read from the ADC

2021-01-21 Thread Dan Murphy
Fix the spi_transfer array in the reading of the data from the ADC. Fixes: ("e717f8c6dfec iio: adc: Add the TI ads124s08 ADC code") Signed-off-by: Dan Murphy --- drivers/iio/adc/ti-ads124s08.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iio/adc/ti-ads124s08.c b

[PATCH 1/2] iio:adc:ti-ads124s08: Fix start stop conversion command

2021-01-21 Thread Dan Murphy
Fix start and stop conversion commands. The proper command is not be sent. Fixes: ("e717f8c6dfec iio: adc: Add the TI ads124s08 ADC code") Signed-off-by: Dan Murphy --- drivers/iio/adc/ti-ads124s08.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ti-ads1

Re: [RESEND PATCH v6 6/6] arm64: tegra: Audio graph sound card for Jetson Nano and TX1

2021-01-21 Thread Thierry Reding
On Tue, Jan 19, 2021 at 02:58:16PM +0530, Sameer Pujar wrote: > Enable support for audio-graph based sound card on Jetson-Nano and > Jetson-TX1. Depending on the platform, required I/O interfaces are > enabled. > > * Jetson-Nano: Enable I2S3, I2S4, DMIC1 and DMIC2. > * Jetson-TX1: Enable all I2S

[PATCH v3] soc/tegra: Add devm_tegra_core_dev_init_opp_table()

2021-01-21 Thread Dmitry Osipenko
Add common helper which initializes OPP table for Tegra SoC core devices. Tested-by: Peter Geis # Ouya T30 Tested-by: Dmitry Osipenko # A500 T20 and Nexus7 T30 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 [tested on some other non-upstreamed-yet T20/30/

[PATCH v8 1/8] drivers: thermal: tsens: Add VER_0 tsens version

2021-01-21 Thread Ansuel Smith
VER_0 is used to describe device based on tsens version before v0.1. These device are devices based on msm8960 for example apq8064 or ipq806x. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 171 +-- drivers/thermal/qcom/tsens.h | 4 +- 2 files ch

[PATCH v2 1/2] of: property: Add fw_devlink support for "gpio" and "gpios" binding

2021-01-21 Thread Saravana Kannan
To provide backward compatibility for boards that use deprecated DT bindings, we need to add fw_devlink support for "gpio" and "gpios". We also need to ignore these properties on nodes with "gpio-hog" property because their gpio[s] are all supplied by the parent node. Cc: linux-tegra Cc: Linus W

[PATCH v8 4/8] drivers: thermal: tsens: Use init_common for msm8960

2021-01-21 Thread Ansuel Smith
Use init_common and drop custom init for msm8960. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 52 +-- 1 file changed, 1 insertion(+), 51 deletions(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index 3f4

[PATCH v2 2/2] of: property: Add fw_devlink support for interrupts

2021-01-21 Thread Saravana Kannan
This allows fw_devlink to create device links between consumers of an interrupt and the supplier of the interrupt. Cc: Marc Zyngier Cc: Kevin Hilman Cc: Greg Kroah-Hartman Reviewed-by: Rob Herring Reviewed-by: Thierry Reding Reviewed-by: Linus Walleij Signed-off-by: Saravana Kannan --- dri

[PATCH v8 6/8] drivers: thermal: tsens: Use get_temp_common for msm8960

2021-01-21 Thread Ansuel Smith
Rework calibrate function to use common function. Derive the offset from a missing hardcoded slope table and the data from the nvmem calib efuses. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 56 +-- 1 file changed, 15 insertions(+), 41 deletion

[PATCH v8 3/8] drivers: thermal: tsens: Convert msm8960 to reg_field

2021-01-21 Thread Ansuel Smith
Convert msm9860 driver to reg_field to use the init_common function. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 80 ++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tse

[PATCH v8 5/8] drivers: thermal: tsens: Fix bug in sensor enable for msm8960

2021-01-21 Thread Ansuel Smith
It's present a hardware bug in tsens VER_0 where if sensors upper to id 6 are enabled selectively, underfined results are expected. Fix this by enabling all the remaining sensor in one step. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 19 +-- 1 file change

[PATCH v8 2/8] drivers: thermal: tsens: Don't hardcode sensor slope

2021-01-21 Thread Ansuel Smith
Function compute_intercept_slope hardcode the sensor slope to SLOPE_DEFAULT. Change this and use the default value only if a slope is not defined. This is needed for tsens VER_0 that has a hardcoded slope table. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 ++- 1 file changed

[PATCH] ACPI/IORT: Do not blindly trust DMA masks from firmware

2021-01-21 Thread Moritz Fischer
Address issue observed on real world system with suboptimal IORT table where DMA masks of PCI devices would get set to 0 as result. iort_dma_setup() would query the root complex' IORT entry for a DMA mask, and use that over the one the device has been configured with earlier. Ideally we want to u

Re: [PATCH] AFS: Documentation: fix a few typos in afs.rst

2021-01-21 Thread Jonathan Corbet
On Sun, 17 Jan 2021 13:33:51 -0800 Randy Dunlap wrote: > Fix typos (punctuation, grammar, spelling) in afs.rst. > > Signed-off-by: Randy Dunlap > Cc: David Howells > Cc: linux-...@lists.infradead.org > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > --- > Documentation/filesystems/afs.

Re: [PATCH 1/3] kvfree_rcu: Allocate a page for a single argument

2021-01-21 Thread Uladzislau Rezki
On Thu, Jan 21, 2021 at 07:07:40AM -0800, Paul E. McKenney wrote: > On Thu, Jan 21, 2021 at 02:35:10PM +0100, Uladzislau Rezki wrote: > > On Wed, Jan 20, 2021 at 01:54:03PM -0800, Paul E. McKenney wrote: > > > On Wed, Jan 20, 2021 at 08:57:57PM +0100, Sebastian Andrzej Siewior wrote: > > [ . . . ]

Re: [RESEND PATCH v6 5/6] arm64: tegra: Audio graph header for Tegra210

2021-01-21 Thread Thierry Reding
On Tue, Jan 19, 2021 at 02:58:15PM +0530, Sameer Pujar wrote: > Expose a header which describes DT bindings required to use audio-graph > based sound card. All Tegra210 based platforms can include this header > and add platform specific information. Currently, from SoC point of view, > all links ar

Re: [RFC][PATCH 00/25] Network fs helper library & fscache kiocb API

2021-01-21 Thread David Howells
J. Bruce Fields wrote: > > Fixing this requires a much bigger overhaul of cachefiles than this patchset > > performs. > > That sounds like "sometimes you may get file corruption and there's > nothing you can do about it". But I know people actually use fscache, > so it must be reliable at least

Re: [PATCH] xfs: set inode size after creating symlink

2021-01-21 Thread Jeffrey Mitchell
On Thu, Jan 21, 2021 at 10:41:37AM -0800, Darrick J. Wong wrote: > Do directories have the same problem? Yes, I just checked in a VM. While ecryptfs does call vfs_getattr(), it only uses the "blocks" value to supplement the data from an identical generic_fillattr() call to what ecryptfs_getattr_li

Re: [PATCH 19/24] kvm: x86/mmu: Protect tdp_mmu_pages with a lock

2021-01-21 Thread Sean Christopherson
On Tue, Jan 12, 2021, Ben Gardon wrote: > Add a lock to protect the data structures that track the page table > memory used by the TDP MMU. In order to handle multiple TDP MMU > operations in parallel, pages of PT memory must be added and removed > without the exclusive protection of the MMU lock.

[PATCH v8 8/8] dt-bindings: thermal: tsens: Document ipq8064 bindings

2021-01-21 Thread Ansuel Smith
Document the use of bindings used for msm8960 tsens based devices. msm8960 use the same gcc regs and is set as a child of the qcom gcc. Signed-off-by: Ansuel Smith --- .../bindings/thermal/qcom-tsens.yaml | 75 --- 1 file changed, 65 insertions(+), 10 deletions(-) diff

[PATCH v8 0/8] Add support for ipq8064 tsens

2021-01-21 Thread Ansuel Smith
This patchset convert msm8960 to reg_filed, use int_common instead of a custom function and fix wrong tsens get_temp function for msm8960. Ipq8064 SoCs tsens driver is based on 8960 tsens driver. Ipq8064 needs to be registered as a gcc child as the tsens regs on this platform are shared with the c

Re: [PATCH] arm64: dts: stingray: remove sata

2021-01-21 Thread Florian Fainelli
On 1/20/2021 10:51 AM, Scott Branden wrote: > Remove sata from stingray as it is unsupported. > > Signed-off-by: Scott Branden Applied to devicetree-arm64/next with a slightly reworded subject and commit message along with Ray's acked-by tag: https://github.com/Broadcom/stblinux/commit/14283

Re: [PATCH v4 8/8] mm: Mark anonymous struct field of 'struct vm_fault' as 'const'

2021-01-21 Thread Nick Desaulniers
On Thu, Jan 21, 2021 at 5:11 AM Will Deacon wrote: > > On Wed, Jan 20, 2021 at 11:02:06AM -0800, Linus Torvalds wrote: > > On Wed, Jan 20, 2021 at 10:27 AM Nick Desaulniers > > wrote: > > > > > > Is there a difference between: [ const unnamed struct and individual > > > const members ] > > > > S

[git pull] habanalabs fixes for 5.11-rc5

2021-01-21 Thread Oded Gabbay
Hi Greg, This pull request contains three important bug fixes for 5.11-rc5. One of the fixes prevent a possible host machine crash, another one prevents random card reset and the third adds a missing backward compatibility to a uapi. More details are in the tag. Thanks, Oded The following change

Re: 5.11-rc4+git: Shortest NUMA path spans too many nodes

2021-01-21 Thread Dietmar Eggemann
On 21/01/2021 19:21, Valentin Schneider wrote: > On 21/01/21 19:39, Meelis Roos wrote: >>> Could you paste the output of the below? >>> >>>$ cat /sys/devices/system/node/node*/distance >> >> 10 12 12 14 14 14 14 16 >> 12 10 14 12 14 14 12 14 >> 12 14 10 14 12 12 14 14 >> 14 12 14 10 12 12 14 14

[PATCH v8 7/8] drivers: thermal: tsens: Add support for ipq8064-tsens

2021-01-21 Thread Ansuel Smith
Add support for tsens present in ipq806x SoCs based on generic msm8960 tsens driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index dd9b41157894..586b90962605 10

Re: hwmon: (nct6683) Support ASRock boards.

2021-01-21 Thread Guenter Roeck
On Tue, Jan 19, 2021 at 02:12:41PM +0900, Blaž Hrastnik wrote: > Tested with ASRock X570 Phantom Gaming-ITX/TB3. It also appears > on other ASRock boards. > > Signed-off-by: Blaž Hrastnik Applied. Thanks, Guenter

Re: [PATCH] hwmon: abx500: style: Simplify bool comparison

2021-01-21 Thread Guenter Roeck
On Mon, Jan 11, 2021 at 05:52:09PM +0800, YANG LI wrote: > Fix the following coccicheck warning: > ./drivers/hwmon/abx500.c:84:8-26: WARNING: Comparison to bool > > Signed-off-by: YANG LI > Reported-by: Abaci Robot This driver will be removed in v5.11. Guenter > --- > drivers/hwmon/abx500.c |

Re: [RFC PATCH 00/17] objtool: add base support for arm64

2021-01-21 Thread Josh Poimboeuf
Ard, Sorry, I was late to the party, attempting to reply to the entire thread at once. Also, adding the live-patching ML. I agree with a lot of your concerns. Reverse engineering the control flow of the compiled binary is kind of ridiculous. I was always surprised that it works. I still am!

Re: [PATCH 16/24] Documentation/hwmon/ina2xx.rst: update ti,ina2xx.yaml reference

2021-01-21 Thread Guenter Roeck
On Wed, Jan 13, 2021 at 11:59:17AM +0100, Mauro Carvalho Chehab wrote: > Changeset 94f1ab944565 ("dt-bindings: hwmon: convert TI INA2xx bindings to > dt-schema") > renamed: Documentation/devicetree/bindings/hwmon/ina2xx.txt > to: Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml. > > Update

Re: [PATCH v4] driver core: Fix device link device name collision

2021-01-21 Thread Michael Walle
Hi, Am 2021-01-10 18:54, schrieb Saravana Kannan: The device link device's name was of the form: -- This can cause name collision as reported here [1] as device names are not globally unique. Since device names have to be unique within the bus/class, add the bus/class name as a prefix to the de

Re: [PATCH] rcu: Release per-cpu krcp page cache when CPU going offline

2021-01-21 Thread Paul E. McKenney
On Thu, Jan 21, 2021 at 02:49:49PM +0800, qiang.zh...@windriver.com wrote: > From: Zqiang > > If CPUs go offline, the corresponding krcp's page cache can > not be use util the CPU come back online, or maybe the CPU > will never go online again, this commit therefore free krcp's > page cache when

[GIT PULL] ACPI fix for v5.11-rc5

2021-01-21 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-5.11-rc5 with top-most commit 78a18fec5258c8df9435399a1ea022d73d3eceb9 ACPI: scan: Make acpi_bus_get_device() clear return pointer on error on top of commit 19c329f6808995b142b3966301

Re: [PATCH] arm64: tegra: Enable Jetson-Xavier J512 USB host

2021-01-21 Thread Thierry Reding
On Tue, Jan 19, 2021 at 10:23:49AM +0800, JC Kuo wrote: > This commit enables USB host mode at J512 type-C port of Jetson-Xavier. > > Signed-off-by: JC Kuo > --- > .../arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 8 +++ > .../boot/dts/nvidia/tegra194-p2972-.dts | 24 +--

Re: [PATCH v4 1/4] mm: cma: introduce gfp flag in cma_alloc instead of no_warn

2021-01-21 Thread Minchan Kim
On Thu, Jan 21, 2021 at 09:54:59AM -0800, Minchan Kim wrote: > The upcoming patch will introduce __GFP_NORETRY semantic > in alloc_contig_range which is a failfast mode of the API. > Instead of adding a additional parameter for gfp, replace > no_warn with gfp flag. > > To keep old behaviors, it fo

Re: [PATCH 5/9] userfaultfd: add minor fault registration mode

2021-01-21 Thread Peter Xu
Hi, Axel, On Fri, Jan 15, 2021 at 11:04:47AM -0800, Axel Rasmussen wrote: > diff --git a/include/linux/userfaultfd_k.h b/include/linux/userfaultfd_k.h > index c63ccdae3eab..7aa1461e1a8b 100644 > --- a/include/linux/userfaultfd_k.h > +++ b/include/linux/userfaultfd_k.h > @@ -71,6 +71,11 @@ static i

[PATCH] NFC: fix resource leak when target index is invalid

2021-01-21 Thread Pan Bian
Goto to the label put_dev instead of the label error to fix potential resource leak on path that the target index is invalid. Fixes: c4fbb6515a4d ("NFC: The core part should generate the target index") Signed-off-by: Pan Bian --- net/nfc/rawsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH] drm: drm_modes: Fix signed-integer-overflow UBSAN warning

2021-01-21 Thread AngeloGioacchino Del Regno
During a UBSAN run on ARM64 MSM8998, kernel built with GCC 7.5.0, a signed integer overflow was shown. To solve this warning split the multiplication by assigning the mode clock first to the "num" variable and then multiply: this way was chosen because no explicit casting is required. Solves the f

[PATCH 2/2] Documentation: arm: marvell: Add link to public Armada 37xx Hardware Spec

2021-01-21 Thread Pali Rohár
Signed-off-by: Pali Rohár --- Documentation/arm/marvell.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/arm/marvell.rst b/Documentation/arm/marvell.rst index 16ab2eb085b8..b16e6f7e8dbe 100644 --- a/Documentation/arm/marvell.rst +++ b/Documentation/arm/marvell.rst @@ -185,

[PATCH 1/2] Documentation: arm: Fix marvell file name

2021-01-21 Thread Pali Rohár
Signed-off-by: Pali Rohár --- Documentation/arm/index.rst | 2 +- Documentation/arm/{marvel.rst => marvell.rst} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename Documentation/arm/{marvel.rst => marvell.rst} (100%) diff --git a/Documentation/arm/index.rst b/Documentat

Re: [PATCH] hwmon: (applesmc) Assign boolean values to a bool variable

2021-01-21 Thread Guenter Roeck
On Wed, Jan 20, 2021 at 02:41:10PM +0800, Jiapeng Zhong wrote: > Fix the following coccicheck warnings: > > ./drivers/hwmon/applesmc.c:568:6-23: WARNING: Assignment of > 0/1 to bool variable. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Zhong Applied. Thanks, Guenter

Re: [git pull] habanalabs fixes for 5.11-rc5

2021-01-21 Thread Greg KH
On Thu, Jan 21, 2021 at 09:25:14PM +0200, Oded Gabbay wrote: > Hi Greg, > > This pull request contains three important bug fixes for 5.11-rc5. > One of the fixes prevent a possible host machine crash, another > one prevents random card reset and the third adds a missing > backward compatibility to

Re: [PATCH v4 1/4] mm: cma: introduce gfp flag in cma_alloc instead of no_warn

2021-01-21 Thread David Hildenbrand
On 21.01.21 18:54, Minchan Kim wrote: > The upcoming patch will introduce __GFP_NORETRY semantic > in alloc_contig_range which is a failfast mode of the API. > Instead of adding a additional parameter for gfp, replace > no_warn with gfp flag. > > To keep old behaviors, it follows the rule below. >

Re: [PATCH v2 1/2] ASoC: Intel: Skylake: skl-topology: Fix OOPs ib skl_tplg_complete

2021-01-21 Thread Mark Brown
On Thu, 21 Jan 2021 18:16:43 +0100, Ricardo Ribalda wrote: > If dobj->control is not initialized we end up in an OOPs during > skl_tplg_complete: > > [ 26.553358] BUG: kernel NULL pointer dereference, address: > 0078 > [ 26.561151] #PF: supervisor read access in kernel mode > [ 2

Re: [PATCH] ASoC: qcom: Fix number of HDMI RDMA channels on sc7180

2021-01-21 Thread Mark Brown
On Fri, 15 Jan 2021 12:33:29 -0800, Stephen Boyd wrote: > Suspending/resuming with an HDMI dongle attached leads to crashes from > an audio regmap. > > Unable to handle kernel paging request at virtual address ffc018068000 > Mem abort info: >ESR = 0x9647 >EC = 0x25: DABT (current

Re: [PATCH] regmap: Assign boolean values to a bool variable

2021-01-21 Thread Mark Brown
On Thu, 21 Jan 2021 15:59:21 +0800, Jiapeng Zhong wrote: > Fix the following coccicheck warnings: > > ./drivers/base/regmap/regcache.c:71:3-18: WARNING: Assignment of > 0/1 to bool variable. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1]

Re: [PATCH v3 2/2] irqchip: Add support for Realtek RTL838x/RTL839x interrupt controller

2021-01-21 Thread Marc Zyngier
On Wed, 20 Jan 2021 10:10:18 +, Bert Vermeulen wrote: > > Signed-off-by: Bert Vermeulen Please write a decent commit message. > --- > drivers/irqchip/Makefile | 1 + > drivers/irqchip/irq-realtek-rtl.c | 180 ++ > 2 files changed, 181 insertions(+) >

Re: [PATCH 1/2] dt-bindings: regulator: qcom-rpmh: Add pmc8180 and pmc8180c

2021-01-21 Thread Mark Brown
On Wed, 20 Jan 2021 14:49:00 -0800, Bjorn Andersson wrote: > Add RPMH regulator compatibles for two of the PMIC variants used on the > SC8180x platform. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/2] dt-bindings: regulator: qcom-rpmh:

Re: [PATCH] regulator: remove ab3100 driver

2021-01-21 Thread Mark Brown
On Wed, 20 Jan 2021 16:12:24 +0100, Arnd Bergmann wrote: > The ST-Ericsson U300 platform is getting removed, so this driver is no > longer needed. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: remove ab3100 driver co

Re: [PATCH] regulator: s5m8767: Drop regulators OF node reference

2021-01-21 Thread Mark Brown
On Thu, 21 Jan 2021 16:59:14 +0100, Krzysztof Kozlowski wrote: > The device node reference obtained with of_get_child_by_name() should be > dropped on error paths. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: s5m8767: Dro

[PATCH v5 0/3] Driver for Core Power Reduction v3, v4 and Hardened

2021-01-21 Thread AngeloGioacchino Del Regno
** ** NOTE: To "view the full picture", please look at the following ** patch series: ** https://patchwork.kernel.org/project/linux-arm-msm/list/?series=413355 ** This is a subset of that series. ** Changes in v5: - Fixed getting OPP table when not yet installed by the cal

Re: [PATCH v1] regulator: consumer: Add missing stubs to regulator/consumer.h

2021-01-21 Thread Mark Brown
On Wed, 20 Jan 2021 23:58:44 +0300, Dmitry Osipenko wrote: > Add missing stubs to regulator/consumer.h in order to fix COMPILE_TEST > of the kernel. In particular this should fix compile-testing of OPP core > because of a missing stub for regulator_sync_voltage(). Applied to https://git.kernel

Re: [PATCH] drivers: spi: spi-au1550: Add suffix "int" to all "unsigned"

2021-01-21 Thread Mark Brown
On Thu, 21 Jan 2021 15:52:36 +0100, corentin wrote: > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] drivers: spi: spi-au1550: Add suffix "int" to all "unsigned" commit: a783de290fc599606504b180c8f44f34cd201808 All being well this m

Re: [PATCH] regulator: s5m8767: Fix reference count leak

2021-01-21 Thread Mark Brown
On Wed, 20 Jan 2021 19:27:56 -0800, Pan Bian wrote: > Call of_node_put() to drop references of regulators_np and reg_np before > returning error code. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: s5m8767: Fix reference co

Re: [PATCH 1/1] spi: atmel: Put allocated master before return

2021-01-21 Thread Mark Brown
On Tue, 19 Jan 2021 21:00:25 -0800, Pan Bian wrote: > The allocated master is not released. Goto error handling label rather > than directly return. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: atmel: Put allocated master before retur

[PATCH v5 1/3] soc: qcom: Add support for Core Power Reduction v3, v4 and Hardened

2021-01-21 Thread AngeloGioacchino Del Regno
This commit introduces a new driver, based on the one for cpr v1, to enable support for the newer Qualcomm Core Power Reduction hardware, known downstream as CPR3, CPR4 and CPRh, and support for MSM8998 and SDM630 CPU power reduction. In these new versions of the hardware, support for various new

Re: [PATCH] spi: remove sirf prima/atlas driver

2021-01-21 Thread Mark Brown
On Wed, 20 Jan 2021 17:14:00 +0100, Arnd Bergmann wrote: > The CSR SiRF prima2/atlas platforms are getting removed, so this driver > is no longer needed. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: remove sirf prima/atlas driver

[PATCH v5 2/3] MAINTAINERS: Add entry for Qualcomm CPRv3/v4/Hardened driver

2021-01-21 Thread AngeloGioacchino Del Regno
Add maintainers entry for the Qualcomm CPR3/CPR4/CPRh driver. Signed-off-by: AngeloGioacchino Del Regno --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3f50d126dfcc..5c458052dbf4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14684,6 +14

[PATCH v5 3/3] dt-bindings: soc: qcom: cpr3: Add bindings for CPR3 driver

2021-01-21 Thread AngeloGioacchino Del Regno
Add the bindings for the CPR3 driver to the documentation. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/soc/qcom/qcom,cpr3.yaml | 241 ++ 1 file changed, 241 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,cpr3.yaml diff

Re: [PATCH v2] gpiolib: Bind gpio_device to a driver to enable fw_devlink=on by default

2021-01-21 Thread Saravana Kannan
On Thu, Jan 21, 2021 at 5:01 AM Linus Walleij wrote: > > On Sat, Jan 16, 2021 at 2:14 AM Saravana Kannan wrote: > > > There are multiple instances of GPIO devictree nodes of the form: > > > > foo { > > compatible = "acme,foo"; > > ... > > > > gpio0: gpio0@ { > >

Re: [PATCH 1/6] tty: implement write_iter

2021-01-21 Thread Greg Kroah-Hartman
On Thu, Jan 21, 2021 at 10:42:04AM -0800, Linus Torvalds wrote: > On Thu, Jan 21, 2021 at 9:57 AM Greg Kroah-Hartman > wrote: > > > > Incremental patches please as these are already in my public branches > > and I would have to revert them and add new ones but that's messy, so > > fixes on top is

"KMSAN: uninit-value in rt2500usb_bbp_read" and "KMSAN: uninit-value in rt2500usb_probe_hw" should be duplicate crash reports

2021-01-21 Thread 慕冬亮
Dear kernel developers, I found that on the syzbot dashboard, “KMSAN: uninit-value in rt2500usb_bbp_read” [1] and "KMSAN: uninit-value in rt2500usb_probe_hw" [2] should share the same root cause. ## Duplication The reasons for the above statement: 1) The PoCs are exactly the same with each other

Re: [PATCH] arch/Kconfig: update a broken file reference

2021-01-21 Thread Steven Rostedt
On Thu, 21 Jan 2021 11:44:58 -0700 Jonathan Corbet wrote: > On Tue, 19 Jan 2021 10:53:26 +0100 > Lukas Bulwahn wrote: > > > Commit adab66b71abf ("Revert: "ring-buffer: Remove > > HAVE_64BIT_ALIGNED_ACCESS"") > > added the config HAVE_64BIT_ALIGNED_ACCESS back into arch/Kconfig with this > > re

[PATCH kspp-next] kbuild: prevent CC_FLAGS_LTO self-bloating on recursive rebuilds

2021-01-21 Thread Alexander Lobakin
CC_FLAGS_LTO gets initialized only via +=, never with := or =. When building with CONFIG_TRIM_UNUSED_KSYMS, Kbuild may perform several kernel rebuilds to satisfy symbol dependencies. In this case, value of CC_FLAGS_LTO is concatenated each time, which triggers a full rebuild. Initialize it with :=

Re: [GIT PULL] sound fixes for 5.11-rc5

2021-01-21 Thread pr-tracker-bot
The pull request you sent on Thu, 21 Jan 2021 16:36:13 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-5.11-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/120fbdb84f339ca3c358e4ac3fb1ffe663669d28 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] ACPI fix for v5.11-rc5

2021-01-21 Thread pr-tracker-bot
The pull request you sent on Thu, 21 Jan 2021 20:05:54 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > acpi-5.11-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6a52f4cf863a53b8196286e2b95d3ef3bd8183ad Thank you! -- Deet-doot-dot, I

[PATCH] chtls: Fix potential resource leak

2021-01-21 Thread Pan Bian
The dst entry should be released if no neighbour is found. Goto label free_dst to fix the issue. Besides, the check of ndev against NULL is redundant. Signed-off-by: Pan Bian --- .../net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c| 7 +++ 1 file changed, 3 insertions(+), 4 deletions(

Re: [PATCH] lightnvm: fix memory leak when submit fails

2021-01-21 Thread Heiner Litz
there are a couple more, but again I would understand if those are deemed not important enough to keep it. device emulation of (non-ZNS) SSD block device die control: yes endurance groups would help but I am not aware of any vendor supporting it finer-grained control: 1000's of open blocks vs. a h

Re: [PATCH v2 bpf-next 3/4] libbpf: BTF dumper support for typed data

2021-01-21 Thread Andrii Nakryiko
On Wed, Jan 20, 2021 at 10:56 PM Andrii Nakryiko wrote: > > On Sun, Jan 17, 2021 at 2:22 PM Alan Maguire wrote: > > > > Add a BTF dumper for typed data, so that the user can dump a typed > > version of the data provided. > > > > The API is > > > > int btf_dump__emit_type_data(struct btf_dump *d,

Re: [GIT PULL] pin control fixes for the v5.11 kernel

2021-01-21 Thread pr-tracker-bot
The pull request you sent on Thu, 21 Jan 2021 09:52:07 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git > tags/pinctrl-v5.11-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/63858ac326561af6a1e583ad4314cc1be16852ad Thank you! -- Deet-

[PATCH v5 2/7] cpufreq: blacklist MSM8998 in cpufreq-dt-platdev

2021-01-21 Thread AngeloGioacchino Del Regno
Add the MSM8998 to the blacklist since the CPU scaling is handled out of this. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c inde

[PATCH v5 1/7] cpufreq: blacklist SDM630/636/660 in cpufreq-dt-platdev

2021-01-21 Thread AngeloGioacchino Del Regno
Add the SDM630, SDM636 and SDM660 to the blacklist since the CPU scaling is handled out of this. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/cpufreq-dt-platdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpuf

[PATCH v5 5/7] cpufreq: qcom-hw: Implement CPRh aware OSM programming

2021-01-21 Thread AngeloGioacchino Del Regno
On new SoCs (SDM845 onwards) the Operating State Manager (OSM) is being programmed in the bootloader and write-protected by the hypervisor, leaving to the OS read-only access to some of its registers (in order to read the Lookup Tables and also some status registers) and write access to the p-state

[PATCH v5 4/7] dt-bindings: cpufreq: cpufreq-qcom-hw: Convert to YAML bindings

2021-01-21 Thread AngeloGioacchino Del Regno
From: Manivannan Sadhasivam Convert Qualcomm cpufreq devicetree binding to YAML. Signed-off-by: Manivannan Sadhasivam Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/cpufreq/cpufreq-qcom-hw.txt | 172 --- .../bindings/cpufreq/cpufreq-qcom-hw.yaml | 204 +++

<    5   6   7   8   9   10   11   >