Re: [PATCH 2/2] PCI: vmd: Enable ASPM for mobile platforms

2020-10-09 Thread Ian Kumlien
On Thu, Oct 8, 2020 at 6:19 AM Kai-Heng Feng wrote: > > > > > On Oct 7, 2020, at 21:30, Bjorn Helgaas wrote: > > > > On Wed, Oct 07, 2020 at 12:26:19PM +0800, Kai-Heng Feng wrote: > >>> On Oct 6, 2020, at 03:19, Bjorn Helgaas wrote: > >>> On Tue, Oct 06, 2020 at 02:40:32AM +0800, Kai-Heng Feng w

Re: [PATCH][next] amd/amdgpu_ctx: Use struct_size() helper and kmalloc()

2020-10-09 Thread Gustavo A. R. Silva
On Fri, Oct 09, 2020 at 04:29:55PM +0200, Christian König wrote: > > > > - entity = kcalloc(1, offsetof(typeof(*entity), > > > > fences[amdgpu_sched_jobs]), > > > > + entity = kmalloc(struct_size(entity, fences, amdgpu_sched_jobs), > > > NAK. You could use kzalloc() here, but kmalloc w

Re: [PATCH v2 14/17] resource: Move devmem revoke code to resource framework

2020-10-09 Thread Jason Gunthorpe
On Fri, Oct 09, 2020 at 04:24:45PM +0200, Daniel Vetter wrote: > On Fri, Oct 9, 2020 at 2:31 PM Jason Gunthorpe wrote: > > > > On Fri, Oct 09, 2020 at 09:59:31AM +0200, Daniel Vetter wrote: > > > > > +struct address_space *iomem_get_mapping(void) > > > +{ > > > + return iomem_inode->i_mapping;

[PATCH v2 02/16] mm: Inline wait_on_page_read into its one caller

2020-10-09 Thread Matthew Wilcox (Oracle)
Having this code inline helps the function read more easily. Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 95b68ec1f22c..0ef06d515532 100644 --- a/mm/filemap.c ++

[PATCH v2 06/16] cifs: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The cifs readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/cifs/file.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index be46fab4c9

[PATCH v2 07/16] cramfs: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The cramfs readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/cramfs/inode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 91

[PATCH v2 03/16] 9p: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The 9p readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Dominique Martinet --- fs/9p/vfs_addr.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/9p/vfs_addr.c b/fs

[PATCH v2 00/16] Allow readpage to return a locked page

2020-10-09 Thread Matthew Wilcox (Oracle)
Linus recently made the page lock more fair. That means that the old pattern where we returned from ->readpage with the page unlocked and then attempted to re-lock it will send us to the back of the queue for this page's lock. A further benefit is that a synchronous readpage implementation allows

Re: [PATCH v3 1/2] dt-bindings: interconnect: Add bindings for Qualcomm SDM660 NoC

2020-10-09 Thread Rob Herring
On Thu, 08 Oct 2020 22:45:14 +0200, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Add the bindings for the Qualcomm SDM660-class NoC, valid for > SDM630, SDM636, SDM660 and SDA variants. > > Signed-off-by: AngeloGioacchino Del Regno > --- > .../bindings/interconnect/qcom,sdm6

[PATCH v2 09/16] fuse: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The fuse readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/fuse/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 6611ef3269a8..7aa5626bc582 10064

[PATCH v2 13/16] udf: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The udf inline data readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara --- fs/udf/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/udf/file.c b/fs/ud

[PATCH v2 15/16] iomap: Inline iomap_iop_set_range_uptodate into its one caller

2020-10-09 Thread Matthew Wilcox (Oracle)
iomap_set_range_uptodate() is the only caller of iomap_iop_set_range_uptodate() and it makes future patches easier to have it inline. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/f

[PATCH v2 10/16] hostfs: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The hostfs readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Richard Weinberger --- fs/hostfs/hostfs_kern.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/hostfs/hostfs_kern.c b/fs/

[PATCH v2 14/16] vboxsf: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The vboxsf inline data readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/vboxsf/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/vboxsf/file.c b/fs/vboxsf/file.c index c4ab5996d97a

[PATCH v2 12/16] ubifs: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The ubifs readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Richard Weinberger --- fs/ubifs/file.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/fs/ubi

[PATCH v2 11/16] jffs2: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The jffs2 readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Richard Weinberger --- fs/jffs2/file.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/jffs2/file.c b/

[PATCH v2 16/16] iomap: Make readpage synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
A synchronous readpage lets us report the actual errno instead of ineffectively setting PageError. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 74 -- 1 file changed, 42 insertions(+), 32 deletions(-) diff --git a/fs/iomap/buffered-

[PATCH v2 01/16] mm: Add AOP_UPDATED_PAGE return value

2020-10-09 Thread Matthew Wilcox (Oracle)
Allow synchronous ->readpage implementations to execute more efficiently by skipping the re-locking of the page. Signed-off-by: Matthew Wilcox (Oracle) --- Documentation/filesystems/locking.rst | 7 --- Documentation/filesystems/vfs.rst | 21 ++--- include/linux/fs.h

[PATCH v2 08/16] ecryptfs: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The ecryptfs readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/ecryptfs/mmap.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fs/ecryptfs/mmap.c b/fs/ecryptfs/mma

Re: [PATCH] btrfs: ref-verify: Fix memleak in add_extent_data_ref

2020-10-09 Thread Josef Bacik
On 8/27/20 3:43 AM, Dinghao Liu wrote: When lookup_root_entry() fails, ref should be freed just like when insert_ref_entry() fails. Signed-off-by: Dinghao Liu Reviewed-by: Josef Bacik Thanks, Josef

[PATCH v2 04/16] afs: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The afs readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/afs/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/afs/file.c b/fs/afs/file.c index 371d1488cc54..4aa2ad

[PATCH v2 05/16] ceph: Tell the VFS that readpage was synchronous

2020-10-09 Thread Matthew Wilcox (Oracle)
The ceph readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jeff Layton --- fs/ceph/addr.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/ceph/addr.c b/fs/c

Re: [PATCH][next] amd/amdgpu_ctx: Use struct_size() helper and kmalloc()

2020-10-09 Thread Christian König
Am 09.10.20 um 15:54 schrieb Gustavo A. R. Silva: On Fri, Oct 09, 2020 at 09:08:51AM +0200, Christian König wrote: Am 08.10.20 um 16:34 schrieb Gustavo A. R. Silva: Make use of the new struct_size() helper instead of the offsetof() idiom. Also, use kmalloc() instead of kcalloc(). Signed-off-by

Re: [PATCHSET v4] Add support for TIF_NOTIFY_SIGNAL

2020-10-09 Thread Oleg Nesterov
On 10/08, Jens Axboe wrote: > > Changes since v3: > > - Drop not needed io_uring change > - Drop syscall restart split, handle TIF_NOTIFY_SIGNAL from the arch > signal handling, using task_sigpending() to see if we need to care > about real signals. > - Fix a few over-zelaous task_sigpending()

Re: [PATCH] perf/x86/intel/uncore: Fix for iio mapping on Skylake Server

2020-10-09 Thread Meyer, Kyle
Hello Alexander, Do you plan on supporting multiple segment platforms? Thanks, Kyle Meyer From: alexander.anto...@linux.intel.com Sent: Monday, September 28, 2020 5:21 AM To: pet...@infradead.org; linux-kernel@vger.kernel.org; x...@kernel.org Cc: alexand

Re: drivers/power/supply/mp2629_charger.c:522:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

2020-10-09 Thread Andy Shevchenko
On Fri, Oct 9, 2020 at 4:23 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 549738f15da0e5a00275977623be199fbbf7df50 > commit: 3bc6d790c39dfc4539c36525e6bcb617abbae467 power: supply: Add support > for mps mp2629 batter

Re: PHY reset question

2020-10-09 Thread Bruno Thomsen
Hi Fabio and Oleksij Den ons. 7. okt. 2020 kl. 11.50 skrev Fabio Estevam : > > Hi Oleksij, > > On Tue, Oct 6, 2020 at 5:05 AM Oleksij Rempel wrote: > > > > Hello PHY experts, > > > > Short version: > > what is the proper way to handle the PHY reset before identifying PHY? > > > > Long version: >

Re: [PATCH v4 1/5] platform: Add Surface platform directory

2020-10-09 Thread Andy Shevchenko
On Fri, Oct 9, 2020 at 5:11 PM Maximilian Luz wrote: > > It may make sense to split the Microsoft Surface hardware platform > drivers out to a separate subdirectory, since some of it may be shared > between ARM and x86 in the future (regarding devices like the Surface > Pro X). > > Further, newer

Re: [PATCH v4 2/5] platform/surface: Move Surface 3 WMI driver to platform/surface

2020-10-09 Thread Andy Shevchenko
On Fri, Oct 9, 2020 at 5:11 PM Maximilian Luz wrote: > > Move the Surface 3 WMI driver from platform/x86 to the newly created > platform/surface directory. Reviewed-by: Andy Shevchenko > Signed-off-by: Maximilian Luz > --- > drivers/platform/surface/Kconfig | 16 ++

Re: [PATCH v3 2/2] thermal: power allocator: change how estimation code is called

2020-10-09 Thread Ionela Voinescu
On Friday 09 Oct 2020 at 14:58:50 (+0100), Lukasz Luba wrote: > The sustainable power value might come from the Device Tree or can be > estimated in run time. There is no need to estimate every time when the > governor is called and temperature is high. Instead, store the estimated > value and make

Re: [PATCH v2 14/17] resource: Move devmem revoke code to resource framework

2020-10-09 Thread Daniel Vetter
On Fri, Oct 9, 2020 at 2:31 PM Jason Gunthorpe wrote: > > On Fri, Oct 09, 2020 at 09:59:31AM +0200, Daniel Vetter wrote: > > > +struct address_space *iomem_get_mapping(void) > > +{ > > + return iomem_inode->i_mapping; > > This should pair an acquire with the release below > > > + /* > > +

[PATCH v8 04/10] fs/ntfs3: Add file operations and implementation

2020-10-09 Thread Konstantin Komarov
This adds file operations and implementation Signed-off-by: Konstantin Komarov --- fs/ntfs3/dir.c | 608 fs/ntfs3/file.c| 1154 ++ fs/ntfs3/frecord.c | 2335 fs/ntfs3/namei.c | 576 +++ fs/ntfs3/rec

[PATCH v8 07/10] fs/ntfs3: Add NTFS journal

2020-10-09 Thread Konstantin Komarov
This adds NTFS journal Signed-off-by: Konstantin Komarov --- fs/ntfs3/fslog.c | 5222 ++ 1 file changed, 5222 insertions(+) create mode 100644 fs/ntfs3/fslog.c diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c new file mode 100644 index ..

[PATCH v8 05/10] fs/ntfs3: Add attrib operations

2020-10-09 Thread Konstantin Komarov
This adds attrib operations Signed-off-by: Konstantin Komarov --- fs/ntfs3/attrib.c | 1325 +++ fs/ntfs3/attrlist.c | 462 +++ fs/ntfs3/xattr.c| 1060 ++ 3 files changed, 2847 insertions(+) create mode 10

[PATCH v8 10/10] fs/ntfs3: Add MAINTAINERS

2020-10-09 Thread Konstantin Komarov
This adds MAINTAINERS Signed-off-by: Konstantin Komarov --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a54806ebf02..e7c9536c311b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12382,6 +12382,13 @@ T: git git://git.kernel.org/pub/s

[PATCH v8 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2020-10-09 Thread Konstantin Komarov
This adds Kconfig, Makefile and doc Signed-off-by: Konstantin Komarov --- Documentation/filesystems/ntfs3.rst | 107 fs/ntfs3/Kconfig| 23 ++ fs/ntfs3/Makefile | 11 +++ 3 files changed, 141 insertions(+) create mode 10064

[PATCH v8 03/10] fs/ntfs3: Add bitmap

2020-10-09 Thread Konstantin Komarov
This adds bitmap Signed-off-by: Konstantin Komarov --- fs/ntfs3/bitfunc.c | 137 fs/ntfs3/bitmap.c | 1508 2 files changed, 1645 insertions(+) create mode 100644 fs/ntfs3/bitfunc.c create mode 100644 fs/ntfs3/bitmap.c diff --git a/fs/ntfs3/b

[PATCH v8 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2020-10-09 Thread Konstantin Komarov
This adds NTFS3 in fs/Kconfig and fs/Makefile Signed-off-by: Konstantin Komarov --- fs/Kconfig | 1 + fs/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/Kconfig b/fs/Kconfig index aa4c12282301..eae96d55ab67 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -145,6 +145,7 @@ menu "DOS

[PATCH v8 00/10] NTFS read-write driver GPL implementation by Paragon Software

2020-10-09 Thread Konstantin Komarov
This patch adds NTFS Read-Write driver to fs/ntfs3. Having decades of expertise in commercial file systems development and huge test coverage, we at Paragon Software GmbH want to make our contribution to the Open Source Community by providing implementation of NTFS Read-Write driver for the Linux

[PATCH v8 06/10] fs/ntfs3: Add compression

2020-10-09 Thread Konstantin Komarov
This adds compression Signed-off-by: Konstantin Komarov --- fs/ntfs3/lznt.c | 452 1 file changed, 452 insertions(+) create mode 100644 fs/ntfs3/lznt.c diff --git a/fs/ntfs3/lznt.c b/fs/ntfs3/lznt.c new file mode 100644 index ..c9bde

[PATCH v8 01/10] fs/ntfs3: Add headers and misc files

2020-10-09 Thread Konstantin Komarov
This adds headers and misc files Signed-off-by: Konstantin Komarov --- fs/ntfs3/debug.h | 62 +++ fs/ntfs3/ntfs.h| 1295 fs/ntfs3/ntfs_fs.h | 984 + fs/ntfs3/upcase.c | 78 +++ 4 files changed, 2419 insertio

Re: [PATCH V6 RESEND] HID: ASUS: Add support for ASUS N-Key keyboard

2020-10-09 Thread Hans de Goede
Hi, On 9/23/20 11:56 PM, Luke D Jones wrote: The ASUS N-Key keyboard uses the productId of 0x1866 and is used in almost all modern ASUS gaming laptops with slight changes to the firmware. This patch enables: Fn+key hotkeys, keyboard backlight brightness control, and notify asus-wmi to toggle "fa

Re: WARNING in hif_usb_send/usb_submit_urb

2020-10-09 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:6c8cf369 usb: typec: Add QCOM PMIC typec detection driver git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=14ea791b90 k

Re: [PATCH v2 17/17] drm/i915: Properly request PCI BARs

2020-10-09 Thread Daniel Vetter
On Fri, Oct 9, 2020 at 12:42 PM Ville Syrjälä wrote: > > On Fri, Oct 09, 2020 at 12:01:39PM +0200, Daniel Vetter wrote: > > On Fri, Oct 9, 2020 at 11:47 AM Ville Syrjälä > > wrote: > > > > > > On Fri, Oct 09, 2020 at 09:59:34AM +0200, Daniel Vetter wrote: > > > > When trying to test my CONFIG_IO_

Re: [PATCH 6/7] btrfs: Promote to unsigned long long before shifting

2020-10-09 Thread Josef Bacik
On 10/4/20 2:04 PM, Matthew Wilcox (Oracle) wrote: On 32-bit systems, this shift will overflow for files larger than 4GB. Cc: sta...@vger.kernel.org Fixes: 53b381b3abeb ("Btrfs: RAID5 and RAID6") Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Josef Bacik Thanks, Josef

Re: [PATCH 5/7] btrfs: Promote to unsigned long long before shifting

2020-10-09 Thread Josef Bacik
On 10/4/20 2:04 PM, Matthew Wilcox (Oracle) wrote: On 32-bit systems, this shift will overflow for files larger than 4GB. Cc: sta...@vger.kernel.org Fixes: df480633b891 ("btrfs: extent-tree: Switch to new delalloc space reserve and release") Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by

Re: [PATCH] page-flags: Remove unused __[Set|Clear]PagePrivate

2020-10-09 Thread David Hildenbrand
On 09.10.20 15:59, Miaohe Lin wrote: > They are unused anymore. -EINVAL, sentence does not make sense :) "They are not used anymore." "They are unused ." Reviewed-by: David Hildenbrand > > Signed-off-by: Miaohe Lin > --- > include/linux/page-flags.h | 3 +-- > 1 file changed, 1 insertion(+)

[GIT PULL] arm64 updates for 5.10

2020-10-09 Thread Will Deacon
Hi Linus, Please pull the following arm64 updates for 5.10. There's quite a lot of code here, but much of it is due to the addition of a new PMU driver as well as some arm64-specific selftests which is an area where we've traditionally been lagging a bit. In terms of exciting features, this inclu

Re: [PATCH v2] MIPS: replace add_memory_region with memblock

2020-10-09 Thread Serge Semin
On Fri, Oct 09, 2020 at 02:07:52PM +0200, Thomas Bogendoerfer wrote: > On Thu, Oct 08, 2020 at 06:20:06PM +0300, Serge Semin wrote: > > > Signed-off-by: Thomas Bogendoerfer > > > --- > > > Changes in v2: > > > fixed missing memblock include in fw/sni/sniprom.c > > > tested on cobalt, IP22, IP2

Re: drmfb console switching problems/questions

2020-10-09 Thread stsp
09.10.2020 16:31, Thomas Zimmermann пишет: I can't say for sure. IIRC SDL2 can use DRM directly. Yes, that was a great hint indeed, thanks. It didn't work for me in the past (a year ago or so), so I added SDL1 support. But now I re-tried, and it indeed works! And, as far as I can tell, the hangi

[PATCH v4] ASoC: dt-bindings: stm32: convert sai to json-schema

2020-10-09 Thread Olivier Moysan
Convert the STM32 SAI bindings to DT schema format using json-schema. Signed-off-by: Olivier Moysan --- Changes in v2: - use pattern for compatible of child nodes - rework dmas and clocks properties - add "additionalProperties" Changes in v3: - move clocks properties for st,stm32h7-sai compatibl

[PATCH v4 5/5] platform/surface: Move Surface Pro 3 Button driver to platform/surface

2020-10-09 Thread Maximilian Luz
Move the Surface Pro 3 Button driver from platform/x86 to the newly created platform/surface directory. Signed-off-by: Maximilian Luz Reviewed-by: Andy Shevchenko Acked-by: Chen Yu --- MAINTAINERS| 2 +- drivers/platform/surface/Kconfig

[PATCH v4 0/5] platform/surface: Create a platform subdirectory for Microsoft Surface devices

2020-10-09 Thread Maximilian Luz
As has come up in the discussion around [RFC PATCH] Add support for Microsoft Surface System Aggregator Module it may make sense to add a Microsoft Surface specific platform subdirectory. Andy has suggested drivers/platform/surface for that. This series follows said suggestion and creates that

[PATCH v4 1/5] platform: Add Surface platform directory

2020-10-09 Thread Maximilian Luz
It may make sense to split the Microsoft Surface hardware platform drivers out to a separate subdirectory, since some of it may be shared between ARM and x86 in the future (regarding devices like the Surface Pro X). Further, newer Surface devices will require additional platform drivers for fundam

[PATCH v4 3/5] platform/surface: Move Surface 3 Button driver to platform/surface

2020-10-09 Thread Maximilian Luz
Move the Surface 3 Button driver from platform/x86 to the newly created platform/surface directory. Signed-off-by: Maximilian Luz Reviewed-by: Andy Shevchenko --- drivers/platform/surface/Kconfig| 6 ++ drivers/platform/surface/Makefile | 1 + drivers/p

Re: [PATCH 0/6] KVM: x86: KVM_SET_SREGS.CR4 bug fixes and cleanup

2020-10-09 Thread stsp
09.10.2020 07:04, Sean Christopherson пишет: Hmm. But at least it was lying similarly on AMD and Intel CPUs. :) So I was able to reproduce the problems myself. Do you mean, any AMD tests are now useless, and we need to proceed with Intel tests only? For anything VMXE related, yes. What would b

[PATCH v4 2/5] platform/surface: Move Surface 3 WMI driver to platform/surface

2020-10-09 Thread Maximilian Luz
Move the Surface 3 WMI driver from platform/x86 to the newly created platform/surface directory. Signed-off-by: Maximilian Luz --- drivers/platform/surface/Kconfig | 16 drivers/platform/surface/Makefile| 2 ++ drivers/platform/{x86 => surface}/s

Re: [PATCH] page-flags: Remove unused __[Set|Clear]PagePrivate

2020-10-09 Thread Matthew Wilcox
On Fri, Oct 09, 2020 at 09:59:14AM -0400, Miaohe Lin wrote: > They are unused anymore. > > Signed-off-by: Miaohe Lin Reviewed-by: Matthew Wilcox (Oracle)

[PATCH v4 4/5] platform/surface: Move Surface 3 Power OpRegion driver to platform/surface

2020-10-09 Thread Maximilian Luz
Move the Surface 3 Power operation region driver from platform/x86 to the newly created platform/surface directory. Signed-off-by: Maximilian Luz Reviewed-by: Andy Shevchenko --- drivers/platform/surface/Kconfig | 7 +++ drivers/platform/surface/Makefile |

Re: [PATCH 2/5] dt-bindings: panel: add documentation for oneplus6 panel

2020-10-09 Thread Rob Herring
On Wed, Oct 07, 2020 at 05:49:14PM +, Caleb Connolly wrote: > Document the OnePlus 6/T common panel driver, example from > arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi > > Signed-off-by: Caleb Connolly > --- > .../display/panel/panel-oneplus6.yaml | 73 +++ > 1

Re: [PATCH stable-5.4 6/6] btrfs: allow btrfs_truncate_block() to fallback to nocow for data space reservation

2020-10-09 Thread Greg KH
On Thu, Oct 08, 2020 at 06:59:54PM +0800, Anand Jain wrote: > From: Qu Wenruo > > commit 6d4572a9d71d5fc2affee0258d8582d39859188c upstream. > > [BUG] > When the data space is exhausted, even if the inode has NOCOW attribute, > we will still refuse to truncate unaligned range due to ENOSPC. > >

Re: [PATCH V6 RESEND] HID: ASUS: Add support for ASUS N-Key keyboard

2020-10-09 Thread Andy Shevchenko
On Fri, Oct 09, 2020 at 03:37:20PM +0200, Hans de Goede wrote: > On 10/9/20 3:14 PM, Andy Shevchenko wrote: > > On Fri, Oct 09, 2020 at 11:38:55AM +0200, Jiri Kosina wrote: > > > On Thu, 24 Sep 2020, Luke D Jones wrote: > > > > > > > The ASUS N-Key keyboard uses the productId of 0x1866 and is used

Re: [PATCH 2/5] dt-bindings: panel: add documentation for oneplus6 panel

2020-10-09 Thread Rob Herring
On Wed, 07 Oct 2020 17:49:14 +, Caleb Connolly wrote: > Document the OnePlus 6/T common panel driver, example from > arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi > > Signed-off-by: Caleb Connolly > --- > .../display/panel/panel-oneplus6.yaml | 73 +++ > 1 file

Re: [PATCH v2 2/2] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-10-09 Thread Rob Herring
On Fri, Oct 09, 2020 at 12:10:03PM +0100, Nicola Mazzucato wrote: > Hi Viresh, I'm glad it helped. > > Please find below my reply. > > On 10/9/20 6:39 AM, Viresh Kumar wrote: > > On 08-10-20, 17:00, Nicola Mazzucato wrote: > >> On 10/8/20 4:03 PM, Ionela Voinescu wrote: > >>> Hi Viresh, > >>> > >

Re: [PATCH v3 00/23] Use asm-generic for mmu_context no-op functions

2020-10-09 Thread Arnd Bergmann
On Wed, Sep 9, 2020 at 1:27 PM Arnd Bergmann wrote: > > On Wed, 2 Sep 2020 00:15:16 +1000, Nicholas Piggin wrote: > > It would be nice to be able to modify mmu_context functions or add a > > hook without updating all architectures, many of which will be no-ops. > > > > The motivation for this seri

[PATCH] page-flags: Remove unused __[Set|Clear]PagePrivate

2020-10-09 Thread Miaohe Lin
They are unused anymore. Signed-off-by: Miaohe Lin --- include/linux/page-flags.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 4f6ba9379112..50cbf5e931bc 100644 --- a/include/linux/page-flags.h +++ b/include/l

Re: [tip: locking/core] lockdep: Fix lockdep recursion

2020-10-09 Thread Paul E. McKenney
g up secondary CPUs ... > [8.163075][T1] x86: Booting SMP configuration: > [8.167843][T1] node #0, CPUs: #1 > [4.002695][T0] > [4.002695][T0] = > [4.002695][T0] WARNING: suspicious RCU usage > [

[PATCH v3 2/2] thermal: power allocator: change how estimation code is called

2020-10-09 Thread Lukasz Luba
The sustainable power value might come from the Device Tree or can be estimated in run time. There is no need to estimate every time when the governor is called and temperature is high. Instead, store the estimated value and make it available via standard sysfs interface so it can be checked from t

[PATCH v3 1/2] thermal: power allocator: change the 'k_i' coefficient estimation

2020-10-09 Thread Lukasz Luba
Intelligent Power Allocation (IPA) is built around the PID controller concept. The initialization code tries to setup the environment based on the information available in DT or estimate the value based on minimum power reported by each of the cooling device. The estimation will have an impact on t

[PATCH v3 0/2] Improve the estimations in Intelligent Power Allocation

2020-10-09 Thread Lukasz Luba
Hi all, The Intelligent Power Allocation (IPA) estimates the needed coefficients for internal algorithm. It can also estimate the sustainable power value when the DT has not provided one. Fix the 'k_i' coefficient which might be to big related to the other values, when the sustainable power is in

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

2020-10-09 Thread Enric Balletbo i Serra
Hi, On 9/10/20 14:50, Matthias Brugger wrote: > > > On 06/10/2020 08:53, Weiyi Lu wrote: >> On Fri, 2020-09-25 at 16:04 +0200, Matthias Brugger wrote: >>> >>> On 25/09/2020 12:06, Weiyi Lu wrote: On Thu, 2020-09-10 at 19:28 +0200, Enric Balletbo i Serra wrote: > Dear all, > > Th

Re: arm-smmu 5000000.iommu: Cannot accommodate DMA offset for IOMMU page tables

2020-10-09 Thread Naresh Kamboju
> > introduce DMA range map, supplanting dma_pfn_offset", so it only existed > > > in > > > the dma-mapping/for-next branch anyway. > FYI, The reported problem still exists on 5.9.0-rc8-next-20201009. [1.843814] Driver must set ecc.strength when using h

Re: [PATCH v2 2/4] time: make getboottime64 aware of time namespace

2020-10-09 Thread J. Bruce Fields
On Fri, Oct 09, 2020 at 03:28:15PM +0200, Christian Brauner wrote: > On Thu, Oct 08, 2020 at 07:39:42AM +0200, Michael Weiß wrote: > > getboottime64() provides the time stamp of system boot. In case of > > time namespaces, Huh, I didn't know there were time namespaces. > > the offset to the boot

Re: arm-smmu 5000000.iommu: Cannot accommodate DMA offset for IOMMU page tables

2020-10-09 Thread Naresh Kamboju
On Thu, 24 Sep 2020 at 15:26, Joerg Roedel wrote: > > On Thu, Sep 24, 2020 at 10:36:47AM +0100, Robin Murphy wrote: > > Yes, the issue was introduced by one of the changes in "dma-mapping: > > introduce DMA range map, supplanting dma_pfn_offset", so it only existed in > > the dma-mapping/for-next

Re: [PATCH v1 1/2] ASoC: qcom: dt-bindings: Modify sc7180 machine bindings

2020-10-09 Thread Mark Brown
On Mon, Sep 28, 2020 at 02:37:43PM +0800, Ajye Huang wrote: > Add compatible "qcom,sc7180-sndcard-rt5682-m98357-2mic" > for 2mic case. This doesn't apply against current code, please check and resend. signature.asc Description: PGP signature

[PATCH] mm: memcontrol: eliminate redundant check in __mem_cgroup_insert_exceeded()

2020-10-09 Thread Miaohe Lin
The mz->usage_in_excess >= mz_node->usage_in_excess check is exactly the else case of mz->usage_in_excess < mz_node->usage_in_excess. So we could replace else if (mz->usage_in_excess >= mz_node->usage_in_excess) with else equally. Signed-off-by: Miaohe Lin --- mm/memcontrol.c | 2 +- 1 file chan

Re: [PATCH][next] amd/amdgpu_ctx: Use struct_size() helper and kmalloc()

2020-10-09 Thread Gustavo A. R. Silva
On Fri, Oct 09, 2020 at 09:08:51AM +0200, Christian König wrote: > Am 08.10.20 um 16:34 schrieb Gustavo A. R. Silva: > > Make use of the new struct_size() helper instead of the offsetof() idiom. > > Also, use kmalloc() instead of kcalloc(). > > > > Signed-off-by: Gustavo A. R. Silva > > --- > >

Greetings My Dear,

2020-10-09 Thread Elisabeth John
Greetings My Dear, I sent this mail praying it will found you in a good condition of health, since I myself are in a very critical health condition in which I sleep every night without knowing if I may be alive to see the next day. I am Mrs.Elisabeth John a widow suffering from long time illn

[PATCH] mm/swapfile.c: Use helper function swap_count() in add_swap_count_continuation()

2020-10-09 Thread Miaohe Lin
Commit 570a335b8e22 ("swap_info: swap count continuations") introduced the func add_swap_count_continuation() but forgot to use the helper function swap_count() introduced by commit 355cfa73ddff ("mm: modify swap_map and add SWAP_HAS_CACHE flag"). Signed-off-by: Miaohe Lin --- mm/swapfile.c | 2

Re: [tip: locking/core] lockdep: Fix lockdep recursion

2020-10-09 Thread Qian Cai
4.002695][T0] = [4.002695][ T0] WARNING: suspicious RCU usage [4.002695][T0] 5.9.0-rc8-next-20201009 #2 Not tainted [4.002695][T0] - [4.002695][T0] kernel/locking/lockdep.c:3497 RCU-list traversed in non-rea

Re: [PATCH v3 11/18] dmaengine: idxd: ims setup for the vdcm

2020-10-09 Thread Raj, Ashok
On Fri, Oct 09, 2020 at 10:12:18AM -0300, Jason Gunthorpe wrote: > On Fri, Oct 09, 2020 at 06:02:09AM -0700, Raj, Ashok wrote: > > On Fri, Oct 09, 2020 at 09:49:45AM -0300, Jason Gunthorpe wrote: > > > On Fri, Oct 09, 2020 at 05:43:07AM -0700, Raj, Ashok wrote: > > > > On Fri, Oct 09, 2020 at 08:57

Re: [PATCH V6 RESEND] HID: ASUS: Add support for ASUS N-Key keyboard

2020-10-09 Thread Hans de Goede
Hi, On 10/9/20 3:14 PM, Andy Shevchenko wrote: On Fri, Oct 09, 2020 at 11:38:55AM +0200, Jiri Kosina wrote: On Thu, 24 Sep 2020, Luke D Jones wrote: The ASUS N-Key keyboard uses the productId of 0x1866 and is used in almost all modern ASUS gaming laptops with slight changes to the firmware. T

drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c:543:54: sparse: got unsigned char COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile README arch block certs crypto drivers fs

2020-10-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d3d45f8220d60a0b2cf8fb2be4e6ffd9008e commit: a425b6e1c69ba907b72b737a4d44f8cfbc43ce3c hinic: add mailbox function support date: 5 months ago :: branch date: 6 hours ago :: commit date: 5 months

Re: [PATCH 1/4] of/fdt: Update zone_dma_bits when running in bcm2711

2020-10-09 Thread Nicolas Saenz Julienne
On Fri, 2020-10-09 at 11:13 +0200, Ard Biesheuvel wrote: > On Fri, 9 Oct 2020 at 10:36, Nicolas Saenz Julienne > wrote: > > On Fri, 2020-10-09 at 09:37 +0200, Ard Biesheuvel wrote: > > > On Fri, 9 Oct 2020 at 09:11, Christoph Hellwig wrote: > > > > On Thu, Oct 08, 2020 at 12:05:25PM +0200, Nicola

Re: drmfb console switching problems/questions

2020-10-09 Thread Thomas Zimmermann
Hi Am 09.10.20 um 15:19 schrieb stsp: > 09.10.2020 15:58, Thomas Zimmermann пишет: >> Hi >> >> Am 09.10.20 um 14:16 schrieb stsp: >>> 09.10.2020 14:59, Thomas Zimmermann пишет: Fbdev exposes the video ram (or a shadow buffer of it) to all applications. Only one can draw at the same time.

Re: [PATCH v2 1/2] thermal: power allocator: change the 'k_i' coefficient estimation

2020-10-09 Thread Lukasz Luba
On 10/9/20 2:05 PM, Ionela Voinescu wrote: On Thursday 08 Oct 2020 at 18:04:25 (+0100), Lukasz Luba wrote: Intelligent Power Allocation (IPA) is built around the PID controller concept. The initialization code tries to setup the environment based on the information available in DT or estimate

[PATCH] mm/swap_state: Skip meaningless swap cache readahead when ra_info.win == 0

2020-10-09 Thread Miaohe Lin
swap_ra_info() may leave ra_info untouched in non_swap_entry() case as page table lock is not held. In this case, we have ra_info.nr_pte == 0 and it is meaningless to continue with swap cache readahead. Skip such ops by init ra_info.win = 1. Signed-off-by: Miaohe Lin --- mm/swap_state.c | 2 +-

[PATCH v1] dt-bindings: can: flexcan: convert fsl,*flexcan bindings to yaml

2020-10-09 Thread Oleksij Rempel
In order to automate the verification of DT nodes convert fsl-flexcan.txt to fsl,flexcan.yaml Signed-off-by: Oleksij Rempel --- .../bindings/net/can/fsl,flexcan.yaml | 137 ++ .../bindings/net/can/fsl-flexcan.txt | 57 2 files changed, 137 insertions(+)

Re: [PATCH V9 1/4] perf/core: Add PERF_SAMPLE_DATA_PAGE_SIZE

2020-10-09 Thread Michael Ellerman
Peter Zijlstra writes: > On Thu, Oct 01, 2020 at 06:57:46AM -0700, kan.li...@linux.intel.com wrote: >> +/* >> + * Return the MMU page size of a given virtual address >> + */ >> +static u64 __perf_get_page_size(struct mm_struct *mm, unsigned long addr) >> +{ >> +pgd_t *pgd; >> +p4d_t *p4d;

Re: [PATCH v2 2/4] time: make getboottime64 aware of time namespace

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 07:39:42AM +0200, Michael Weiß wrote: > getboottime64() provides the time stamp of system boot. In case of > time namespaces, the offset to the boot time stamp was not applied > earlier. However, getboottime64 is used e.g., in /proc/stat to print > the system boot time to us

Re: [PATCH v2] drm/fourcc: Add AXBXGXRX106106106106 format

2020-10-09 Thread Brian Starkey
Hi Matteo, +Joe to Cc On Thu, Oct 08, 2020 at 03:33:50PM +0100, Matteo Franchin wrote: > Add ABGR format with 10-bit components packed in 64-bit per pixel. > This format can be used to handle > VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16 on little-endian > architectures. > > Signed-off-by: Matte

Re: [PATCH] mm: Fix a race during split THP

2020-10-09 Thread Matthew Wilcox
On Fri, Oct 09, 2020 at 03:36:47PM +0800, Huang, Ying wrote: > + if (PageSwapCache(head)) { > + swp_entry_t entry = { .val = page_private(head) }; > + > + split_swap_cluster(entry); > + } ... > - if (PageSwapCache(head)) { > - swp_entr

Re: drmfb console switching problems/questions

2020-10-09 Thread stsp
09.10.2020 15:58, Thomas Zimmermann пишет: Hi Am 09.10.20 um 14:16 schrieb stsp: 09.10.2020 14:59, Thomas Zimmermann пишет: Fbdev exposes the video ram (or a shadow buffer of it) to all applications. Only one can draw at the same time. It's a limitation of the design. To fix this, your applica

drivers/power/supply/mp2629_charger.c:522:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

2020-10-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 549738f15da0e5a00275977623be199fbbf7df50 commit: 3bc6d790c39dfc4539c36525e6bcb617abbae467 power: supply: Add support for mps mp2629 battery charger date: 4 months ago :: branch date: 12 hours ago :

Re: [PATCH 05/13] m68k: coldfire: use legacy_timer_tick()

2020-10-09 Thread Arnd Bergmann
On Fri, Oct 9, 2020 at 2:53 PM Greg Ungerer wrote: > > Hi Arnd, > > On 9/10/20 1:46 am, Arnd Bergmann wrote: > > Replace the indirect function calls in the timer code > > with direct calls to the newly added legacy_timer_tick() > > helper for those that have not yet been converted to > > generic c

Re: [PATCH] mm: Fix a race during split THP

2020-10-09 Thread Kirill A. Shutemov
On Fri, Oct 09, 2020 at 03:36:47PM +0800, Huang, Ying wrote: > From: Huang Ying > > It is reported that the following bug is triggered if the HDD is used as swap > device, > > [ 5758.157556] BUG: kernel NULL pointer dereference, address: 0007 > [ 5758.165331] #PF: supervisor write ac

Re: [RFC PATCH v2 0/5] allow overriding default preempt mode from command line

2020-10-09 Thread Peter Zijlstra
On Fri, Oct 09, 2020 at 03:03:44PM +0200, Michal Hocko wrote: > On Fri 09-10-20 14:50:56, Peter Zijlstra wrote: > > > > Can you please not thread the new series onto the old one? That's some > > seriously annoying behaviour that I see more and more... It makes me > > loose whole patch-sets. > > S

Re: [PATCH v2 0/4] time namespace aware system boot time

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 07:39:40AM +0200, Michael Weiß wrote: > Time namespaces make it possible to virtualize time inside of > containers, e.g., it is feasible to reset the uptime of a container > to zero by setting the time namespace offset for boottime to the > negated current value of the CLOCK

Re: LTS couple perf test and perf top fixes

2020-10-09 Thread gre...@linuxfoundation.org
On Fri, Oct 09, 2020 at 11:28:09AM +, Rantala, Tommi T. (Nokia - FI/Espoo) wrote: > Hi Greg, Sasha, > > Can you pick this to 5.4: > > commit dbd660e6b2884b864d2642d930a163d3bcebe4be > Author: Tommi Rantala > Date: Thu Apr 23 14:53:40 2020 +0300 > > perf test session topology: Fix dat

Performance regressions in "boot_time" tests in Linux 5.8 Kernel

2020-10-09 Thread Rahul Gopakumar
As part of VMware's performance regression testing for Linux Kernel upstream releases, we identified boot time increase when comparing Linux 5.8 kernel against Linux 5.7 kernel. Increase in boot time is noticeable on VM with a **large amount of memory**.   In our test cases, it's noticeable with me

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