Re: Re: [PATCH v4 0/2] Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-15 Thread Joe Perches
On Mon, 2020-06-15 at 08:46 +0200, SeongJae Park wrote: > So, I agree this patch is imperfect for many cases, but better than nothing. Not necessarily. Having people strain for unusual equivalents to generally well known terms is not good. blacklist/whitelist is well understood. Would you do th

Re: [PATCH 0/5] ARM: dts: s5pv210: Improvements for Aries boards

2020-06-15 Thread Krzysztof Kozlowski
On Sat, Jun 13, 2020 at 11:44:22AM -0700, Jonathan Bakker wrote: > A couple of new drivers have now been added, so we can add support for > them in the device tree for Aries. These are the accelerometer (bma023) > and the light/proximity sensor (gp2a). > > Additionally, the fuelgauge definition w

Re: [patch for-5.8 4/4] dma-direct: add missing set_memory_decrypted() for coherent mapping

2020-06-15 Thread Christoph Hellwig
On Thu, Jun 11, 2020 at 12:20:32PM -0700, David Rientjes wrote: > When a coherent mapping is created in dma_direct_alloc_pages(), it needs > to be decrypted if the device requires unencrypted DMA before returning. > > Fixes: 3acac065508f ("dma-mapping: merge the generic remapping helpers > into dm

Re: [PATCH] i2c: busses: Fix a reference count leak.

2020-06-15 Thread Wolfram Sang
On Mon, Jun 15, 2020 at 06:31:28AM +, Aisheng Dong wrote: > > From: Andy Duan > > Sent: Monday, June 15, 2020 10:49 AM > > > > From: wu000...@umn.edu Sent: Sunday, June 14, > > 2020 6:12 AM > > > From: Qiushi Wu > > > > > > pm_runtime_get_sync() increments the runtime PM usage counter even >

Re: [PATCH] [v3] i2c: imx-lpi2c: Fix runtime PM imbalance on error

2020-06-15 Thread Wolfram Sang
On Mon, Jun 15, 2020 at 06:33:40AM +, Aisheng Dong wrote: > > From: Wolfram Sang > > Sent: Sunday, June 14, 2020 5:12 PM > > > > On Mon, Jun 01, 2020 at 02:16:40PM +0800, Dinghao Liu wrote: > > > pm_runtime_get_sync() increments the runtime PM usage counter even the > > > call returns an erro

Re: drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-15 Thread Greg Ungerer
On 13/6/20 2:35 am, Luc Van Oostenryck wrote: On Sat, Jun 13, 2020 at 01:33:16AM +1000, Greg Ungerer wrote: arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32 This one I am not sure about yet. Still investigating. swab32(__raw_readl(addr)) ? Keepi

Re: [PATCH 2/2] spi: spi-fsl-dspi: Initialize completion before possible interrupt

2020-06-15 Thread Krzysztof Kozlowski
On Sun, Jun 14, 2020 at 06:34:33PM +0300, Vladimir Oltean wrote: > On Sun, 14 Jun 2020 at 18:12, Krzysztof Kozlowski wrote: > > > > On Sun, Jun 14, 2020 at 04:43:28PM +0300, Vladimir Oltean wrote: > > > On Sun, 14 Jun 2020 at 16:39, Vladimir Oltean wrote: > > > > > > > > On Sun, 14 Jun 2020 at 14

Re: [v3 PATCH] iov_iter: Move unnecessary inclusion of crypto/hash.h

2020-06-15 Thread Christoph Hellwig
On Fri, Jun 12, 2020 at 04:57:37PM +1000, Herbert Xu wrote: > The header file linux/uio.h includes crypto/hash.h which pulls in > most of the Crypto API. Since linux/uio.h is used throughout the > kernel this means that every tiny bit of change to the Crypto API > causes the entire kernel to get r

Re: fastpath_t? __no_kcsan? Both?

2020-06-15 Thread Paolo Bonzini
On 15/06/20 06:20, Paul E. McKenney wrote: > > I get the following conflict when rebasing 39a8c47635b0 ("kvm/svm: > Disable KCSAN for svm_vcpu_run()") onto v5.8-rc1: > > <<< 6c410247efb2d3907b508a2448ab9ab1c86d938c > static fastpath_t svm_vcpu_run(struct kvm_vcpu *vcpu) > === > static __n

RE: [PATCH v2 2/2] scsi: ufs: Add trace event for UIC commands

2020-06-15 Thread Avri Altman
> /* Write UIC Cmd */ > ufshcd_writel(hba, uic_cmd->command & COMMAND_OPCODE_MASK, > REG_UIC_COMMAND); > @@ -4825,11 +4847,15 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct > ufs_hba *hba, u32 intr_status) > ufshcd_get_uic_cmd_result(

Re: [LKP] Re: [gup] 17839856fd: stress-ng.vm-splice.ops_per_sec 2158.6% improvement

2020-06-15 Thread Feng Tang
Hi Linus, On Fri, Jun 12, 2020 at 08:07:32AM +0800, Philip Li wrote: > On Thu, Jun 11, 2020 at 01:24:09PM -0700, Linus Torvalds wrote: > > > > IOW, rather than the above "just run all fo the lkp scripts", > > something like how to run the actual individual test would be good. > > > > IOW how do

Re: [PATCH] Documentation: remove SH-5 index entries

2020-06-15 Thread Geert Uytterhoeven
On Mon, Jun 15, 2020 at 4:59 AM Randy Dunlap wrote: > From: Randy Dunlap > > Remove SH-5 documentation index entries following the removal > of SH-5 source code. > > Error: Cannot open file ../arch/sh/mm/tlb-sh5.c > Error: Cannot open file ../arch/sh/mm/tlb-sh5.c > Error: Cannot open file ../arch

Re: [PATCH 1/2] spi: spi-fsl-dspi: Fix external abort on interrupt in exit paths

2020-06-15 Thread Krzysztof Kozlowski
On Sun, Jun 14, 2020 at 06:48:04PM +0300, Vladimir Oltean wrote: > On Sun, 14 Jun 2020 at 13:57, Krzysztof Kozlowski wrote: > > > > If interrupt comes late, during probe error path or device remove (could > > be triggered with CONFIG_DEBUG_SHIRQ), the interrupt handler > > dspi_interrupt() will ac

Re: [PATCH 04/21] mm: free_area_init: use maximal zone PFNs rather than zone sizes

2020-06-15 Thread Greg Ungerer
Hi Mike, On 15/6/20 4:22 pm, Mike Rapoport wrote: On Mon, Jun 15, 2020 at 01:53:42PM +1000, Greg Ungerer wrote: From: Mike Rapoport Currently, architectures that use free_area_init() to initialize memory map and node and zone structures need to calculate zone and hole sizes. We can use free_a

[RFC PATCH v2 0/5] scsi: ufs: Add Host Performance Booster Support

2020-06-15 Thread Daejun Park
NAND flash memory-based storage devices use Flash Translation Layer (FTL) to translate logical addresses of I/O requests to corresponding flash memory addresses. Mobile storage devices typically have RAM with constrained size, thus lack in memory to keep the whole mapping table. Therefore, mapping

Re: [PATCH v1 RFC 1/2] spi: introduce fallback to pio

2020-06-15 Thread Vinod Koul
On 14-06-20, 13:04, Robin Gong wrote: > On 2020/06/12 22:16 Mark Brown wrote: > > On Fri, Jun 12, 2020 at 01:48:41PM +, Robin Gong wrote: > > > On 2020/06/12 18:14 Mark Brown wrote: > > > > > > Please look at the formatting of your e-mails - they're really hard > > > > to read. The line le

Re: [PATCH 2/2] mtd: rawnand: brcmnand: Ecc error handling on EDU transfers

2020-06-15 Thread Miquel Raynal
Hi Kamal, Kamal Dasu wrote on Fri, 12 Jun 2020 12:34:22 -0400: > On Fri, Jun 12, 2020 at 3:07 AM Miquel Raynal > wrote: > > > > Hi Kamal, > > > > Kamal Dasu wrote on Thu, 11 Jun 2020 12:04:29 > > -0400: > > > > > On Thu, Jun 11, 2020 at 3:27 AM Miquel Raynal > > > wrote: > > > > > > > >

Re: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES

2020-06-15 Thread Lu Baolu
Hi Koba Ko, On 2020/6/15 11:19, Koba Ko wrote: hi All, I have a machine and there's only intel gpu. the secureboot and vt-d is enabled in BIOS. On the Ubuntu desktop, I do s2idle first and restart the machine. The machine can't restart successfully, so I need to press the power button to shutdo

Re: [PATCH] ata: fix AHCI_SHT() macro definition

2020-06-15 Thread Christoph Hellwig
On Fri, Jun 12, 2020 at 02:09:31PM +0200, Bartlomiej Zolnierkiewicz wrote: > Fix AHCI_SHT() macro definition to not reinitialize .can_queue and > .sdev_attrs fields. > > This removes gcc warnings from W=1 builds such as: I think these warnings arg bogus, at least when used with cases like libata

Re: [Patch] mtd: set master partition panic write flag

2020-06-15 Thread Miquel Raynal
Hi Kamal, Kamal Dasu wrote on Sat, 13 Jun 2020 02:49:31 -0400: > Can you please accept this if there are no objections. > > Kamal > > > On May 4, 2020, at 7:54 PM, Kamal Dasu wrote: > > > > Check and set master panic write flag so that low level drivers > > can use it to take required actio

[PATCH v3 0/2] scsi: ufs: Add trace event for UIC commands and cleanup UIC struct

2020-06-15 Thread Stanley Chu
Hi, This series adds trace event for UIC commands and do a small cleanup in struct uic_command. v2 -> v3: - Refactor "complete" event hooks in ufshcd_uic_cmd_compl() (Avri Altman) v1 -> v2: - Rename "uic_send" to "send" and "uic_complete" to "complete" - Move "send" trace before UIC comman

[PATCH v3 1/2] scsi: ufs: Remove unused field in struct uic_command

2020-06-15 Thread Stanley Chu
Remove unused field "cmd_active" and "result" in struct ufs_command. Signed-off-by: Stanley Chu Reviewed-by: Alim Akhtar --- drivers/scsi/ufs/ufshcd.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index bf97d616e597..7fa35c78342b 10

[PATCH v3 2/2] scsi: ufs: Add trace event for UIC commands

2020-06-15 Thread Stanley Chu
Use the ftrace infrastructure to conditionally trace UFS UIC command events. New trace event "ufshcd_uic_command" is created, which samples the following UFS UIC command data: - Device name - Optional identification string - UIC command opcode - UIC command argument1 - UIC command argument2 - UIC

[PATCH] regmap: convert all regmap_update_bits() and co. macros to static inlines

2020-06-15 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's no reason to have these as macros. Let's convert them all to static inlines for better readability and stronger typing. Suggested-by: Mark Brown Signed-off-by: Bartosz Golaszewski --- include/linux/regmap.h | 222 +++-- 1 f

[RFC PATCH v2 1/5] scsi: ufs: Add UFS feature related parameter

2020-06-15 Thread Daejun Park
This is a patch for parameters to be used for UFS features layer and HPB module. Signed-off-by: Daejun Park --- drivers/scsi/ufs/ufs.h | 12 1 file changed, 12 insertions(+) diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index c70845d41449..f3efa3424fc0 100644 --- a/d

Re: [RFC] io_uring: add restrictions to support untrusted applications and guests

2020-06-15 Thread Stefano Garzarella
On Sun, Jun 14, 2020 at 09:52:30AM -0600, Jens Axboe wrote: > On 6/9/20 8:24 AM, Stefano Garzarella wrote: > > Hi Jens, > > Stefan and I have a proposal to share with io_uring community. > > Before implementing it we would like to discuss it to receive feedbacks and > > to see if it could be accept

RE: [PATCH v2 2/2] scsi: ufs: Add trace event for UIC commands

2020-06-15 Thread Stanley Chu
Hi Avri, On Mon, 2020-06-15 at 07:13 +, Avri Altman wrote: > > /* Write UIC Cmd */ > > ufshcd_writel(hba, uic_cmd->command & COMMAND_OPCODE_MASK, > > REG_UIC_COMMAND); > > @@ -4825,11 +4847,15 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct > > ufs_hba *

Re: [PATCH] mtd: rawnand: gpmi: fix reference count leak due to pm_runtime_get_sync

2020-06-15 Thread Miquel Raynal
Hi Aditya, Aditya Pakki wrote on Sat, 13 Jun 2020 22:43:00 -0500: > On calling pm_runtime_get_sync() the reference count of the device > is incremented. In case of failure, decrement the > reference count before returning the error. > > Signed-off-by: Aditya Pakki Missing Fixes/Stable tags he

[PATCH] regmap: remove stray space

2020-06-15 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There are two spaces between arguments in regmap_fields_update_bits_base() so remove one. Signed-off-by: Bartosz Golaszewski --- Hi Mark, I noticed this while writing the previous patch, so I guess we can fix it. Bart drivers/base/regmap/regmap.c | 2 +- 1 file cha

Re: [External] Re: [PATCH 3/3] mm/slub: Fix release all resources used by a slab cache

2020-06-15 Thread Joonsoo Kim
2020년 6월 15일 (월) 오후 3:41, Muchun Song 님이 작성: > > On Mon, Jun 15, 2020 at 2:23 PM Joonsoo Kim wrote: > > > > 2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > > > > > The function of __kmem_cache_shutdown() is that release all resources > > > used by the slab cache, while currently it stop release r

[PATCH v2 1/4] io-wq: reorder cancellation pending -> running

2020-06-15 Thread Pavel Begunkov
Go all over all pending lists and cancel works there, and only then try to match running requests. No functional changes here, just a preparation for bulk cancellation. Signed-off-by: Pavel Begunkov --- fs/io-wq.c | 54 -- 1 file changed, 32 in

Re: [PATCH] x86/speculation: Merge one test in spectre_v2_user_select_mitigation()

2020-06-15 Thread Anthony Steinhauser
Thanks, Borislav.

Re: [PATCH] erofs: Eliminate usage of uninitialized_var() macro

2020-06-15 Thread Gao Xiang
Hi Jason, On Mon, Jun 15, 2020 at 12:01:41PM +0800, Jason Yan wrote: > This is an effort to eliminate the uninitialized_var() macro[1]. > > The use of this macro is the wrong solution because it forces off ANY > analysis by the compiler for a given variable. It even masks "unused > variable" warn

[PATCH v2 3/4] io_uring: cancel all task's requests on exit

2020-06-15 Thread Pavel Begunkov
If a process is going away, io_uring_flush() will cancel only 1 request with a matching pid. Cancel all of them Signed-off-by: Pavel Begunkov --- fs/io-wq.c| 14 -- fs/io-wq.h| 1 - fs/io_uring.c | 14 -- 3 files changed, 12 insertions(+), 17 deletions(-) diff -

[PATCH v2 0/4][RESEND] cancel all reqs of an exiting task

2020-06-15 Thread Pavel Begunkov
io_uring_flush() { ... if (fatal_signal_pending(current) || (current->flags & PF_EXITING)) io_wq_cancel_pid(ctx->io_wq, task_pid_vnr(current)); } This cancels only the first matched request. The pathset is mainly about fixing that. [1,2] are preps, [3/4] is the fix.

Re:Re: [PATCH] drivers\block: Use kobj_to_dev() API

2020-06-15 Thread 王擎
Subject: Re: [PATCH] drivers\block: Use kobj_to_dev() API>On Fri, Jun 12, 2020 at 03:10:56PM +0800, Wang Qing wrote: >> Use kobj_to_dev() API instead of container_of(). >> >> Signed-off-by: Wang Qing >> --- >> drivers/block/virtio_blk.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v3 5/9] usb: xhci-pci: Add support for reset controllers

2020-06-15 Thread Mathias Nyman
On 12.6.2020 20.13, Nicolas Saenz Julienne wrote: > Some atypical users of xhci-pci might need to manually reset their xHCI > controller before starting the HCD setup. Check if a reset controller > device is available to the PCI bus and trigger a reset. > > Signed-off-by: Nicolas Saenz Julienne

[PATCH v2 4/4] io_uring: batch cancel in io_uring_cancel_files()

2020-06-15 Thread Pavel Begunkov
Instead of waiting for each request one by one, first try to cancel all of them in a batched manner, and then go over inflight_list/etc to reap leftovers. Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 13 + 1 file changed, 13 insertions(+) diff --git a/fs/io_uring.c b/fs/io_urin

[PATCH v2 2/4] io-wq: add an option to cancel all matched reqs

2020-06-15 Thread Pavel Begunkov
This adds support for cancelling all io-wq works matching a predicate. It isn't used yet, so no change in observable behaviour. Signed-off-by: Pavel Begunkov --- fs/io-wq.c| 60 +-- fs/io-wq.h| 2 +- fs/io_uring.c | 2 +- 3 files changed,

Re: [LKP] [sched/fair] 070f5e860e: reaim.jobs_per_min -10.5% regression

2020-06-15 Thread Xing Zhengjun
On 6/12/2020 7:06 PM, Hillf Danton wrote: On Fri, 12 Jun 2020 14:36:49 +0800 Xing Zhengjun wrote: Hi Vincent, We test the regression still existed in v5.7, do you have time to look at it? Thanks. ===

mm lock issue while booting Linux on 5.8-rc1 for RISC-V

2020-06-15 Thread Atish Patra
Hi, I encountered the following issue while booting 5.8-rc1 on Qemu for RV64. I added additional dump_stack and observed that it's happening in bpf free path. It happens always if CONFIG_DEBUG_VM is enabled. VM_BUG_ON_MM is compiled away without that. ---

Re: [PATCH 00/12] Add cpufreq and cci devfreq for mt8183, and SVS support

2020-06-15 Thread Viresh Kumar
On 20-05-20, 11:42, Andrew-sh.Cheng wrote: > - Resend depending patches of Sravana Kannan base on kernel-5.7 Saravana's patches were never accepted and I suggested him this which he never tested I believe. https://lore.kernel.org/lkml/20191125112812.26jk5hsdwqfnofc2@vireshk-i7/ There is no

RE: [PATCH v3 0/2] scsi: ufs: Add trace event for UIC commands and cleanup UIC struct

2020-06-15 Thread Avri Altman
Looks good to me. Thanks, Avri > > > Hi, > This series adds trace event for UIC commands and do a small cleanup in > struct uic_command. > > v2 -> v3: > - Refactor "complete" event hooks in ufshcd_uic_cmd_compl() (Avri Altman) > > v1 -> v2: > - Rename "uic_send" to "send" and "uic_complete

Re: [gup] 17839856fd: stress-ng.vm-splice.ops_per_sec 2158.6% improvement

2020-06-15 Thread Jann Horn
On Thu, Jun 11, 2020 at 10:24 PM Linus Torvalds wrote: > > On Wed, Jun 10, 2020 at 9:05 PM kernel test robot > wrote: > > > > FYI, we noticed a 2158.6% improvement of stress-ng.vm-splice.ops_per_sec > > due to commit: > > > > commit: 17839856fd588f4ab6b789f482ed3ffd7c403e1f ("gup: document and

[PATCH 2/2] io_uring: cancel by ->task not pid

2020-06-15 Thread Pavel Begunkov
For an exiting process it tries to cancel all its inflight requests. Use req->task to match such instead of work.pid. We always have req->task set, and it will be valid because we're matching only current exiting task. Also, remove work.pid and everything related, it's useless now Reported-by: Er

[PATCH 1/2] io_uring: lazy get task

2020-06-15 Thread Pavel Begunkov
There will be multiple places where req->task is used, so refcount-pin it lazily with introduced *io_{get,put}_req_task(). We need to always have valid ->task for cancellation reasons, but don't care about pinning it in some cases. That's why it sets req->task in io_req_init() and implements get/pu

[PATCH 0/2] don't use pid for request cancellation

2020-06-15 Thread Pavel Begunkov
Cancel requests of an extiting task based on ->task address. As reported by Eric W. Biederman, using pid for this purpose is not right. note: rebased on top of "cancel all" patches Pavel Begunkov (2): io_uring: lazy get task io_uring: cancel by ->task not pid fs/io-wq.h| 1 - fs/io_uri

Build regressions/improvements in v5.8-rc1

2020-06-15 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v5.8-rc1[1] compared to v5.7[2]. Summarized: - build errors: +4/-4 - build warnings: +66/-42 Note that there may be false regressions, as some logs are incomplete. Still, they're build errors/warnings. Happy fixing! ;-) Th

Re: arm64 iommu groups issue

2020-06-15 Thread John Garry
On 12/06/2020 15:30, Lorenzo Pieralisi wrote: On Mon, Feb 17, 2020 at 12:08:48PM +, John Garry wrote: Right, and even worse is that it relies on the port driver even existing at all. All this iommu group assignment should be taken outside device driver probe paths. However we could still

5.8-rc1: new warnings in ext4_mb_new_blocks?

2020-06-15 Thread Pavel Machek
Hi! Booting 5.8-rc1 on x220, I get scary warnings: [7.089941] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: errors=remount-ro [7.343231] BUG: using smp_processor_id() in preemptible [] code: systemd-tmpfile/2788 [7.344052] caller is debug_smp_processor_id+

RE: [PATCH] i2c: imx: Fix external abort on early interrupt

2020-06-15 Thread Aisheng Dong
> From: Wolfram Sang > Sent: Friday, June 12, 2020 9:00 PM > > On Fri, Jun 12, 2020 at 02:18:06PM +0200, Marc Kleine-Budde wrote: > > On 6/12/20 1:51 PM, Wolfram Sang wrote: > > > > > >> This basically kills the concept of devm for interrupts. Some other > > > > > > It only works when you can ens

Re: [PATCH 12/29] dt: update a reference for reneases pcar file renamed to yaml

2020-06-15 Thread Geert Uytterhoeven
Hi Mauro, On Mon, Jun 15, 2020 at 8:47 AM Mauro Carvalho Chehab wrote: > This file was renamed, but its reference at pfc-pinctl.txt is pfc-pinctrl.txt > still pointing to the old file. > > Fixes: 7f7d408e5a00 ("dt-bindings: gpio: rcar: Convert to json-schema") > Signed-off-by: Mauro Carvalho Ch

Re: [PATCH] proc: Use new_inode not new_inode_pseudo

2020-06-15 Thread Jan Kara
On Fri 12-06-20 14:15:51, Eric W. Biederman wrote: > > Recently syzbot reported that unmounting proc when there is an ongoing > inotify watch on the root directory of proc could result in a use > after free when the watch is removed after the unmount of proc > when the watcher exits. > > Commit 6

Re: Re: [PATCH v4 0/2] Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-15 Thread Pavel Machek
On Mon 2020-06-15 00:00:56, Joe Perches wrote: > On Mon, 2020-06-15 at 08:46 +0200, SeongJae Park wrote: > > So, I agree this patch is imperfect for many cases, but better than nothing. > > Not necessarily. > > Having people strain for unusual equivalents > to generally well known terms is not go

Re: [RFC][PATCH 3/3] objtool: Fix noinstr vs KCOV

2020-06-15 Thread Dmitry Vyukov
On Fri, Jun 12, 2020 at 4:37 PM Peter Zijlstra wrote: > > Since many compilers cannot disable KCOV with a function attribute, > help it to NOP out any __sanitizer_cov_*() calls injected in noinstr > code. > > This turns: > > 12: e8 00 00 00 00 callq 17 > 13: R_X86_64_P

drivers/video/fbdev/core/fbmem.c:803:39: sparse: sparse: incorrect type in argument 2 (different address spaces)

2020-06-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b3a9e3b9622ae10064826dccb4f7a52bd88c7407 commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 7 months ago config: nios2-randconfig-s032-20200615 (attached as .config

Re: [v3] i2c: imx-lpi2c: Fix runtime PM imbalance on error

2020-06-15 Thread Markus Elfring
> I started a seperate thread: > > https://lkml.org/lkml/2020/6/14/76 > > Still, on-going discussion if the proper fix is to remove the error check. I find that a bit of additional information can make such a link safer. RFC: a failing pm_runtime_get increases the refcnt? https://lore.kernel.org/

[tip: x86/urgent] x86/resctrl: Fix memory bandwidth counter width for AMD

2020-06-15 Thread tip-bot2 for Babu Moger
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 2c18bd525c47f882f033b0a813ecd09c93e1ecdf Gitweb: https://git.kernel.org/tip/2c18bd525c47f882f033b0a813ecd09c93e1ecdf Author:Babu Moger AuthorDate:Thu, 04 Jun 2020 14:45:16 -05:00 Committer:

Re: [PATCH 22/29] docs: it_IT: add two missing references

2020-06-15 Thread Federico Vaga
It is already fixed by https://lkml.org/lkml/2020/5/31/260 On Monday, June 15, 2020 8:47:01 AM CEST Mauro Carvalho Chehab wrote: > there are missing references causing Sphinx warnings: > > Documentation/translations/it_IT/process/submitting-patches.rst:384: > WARNING: undefined label: it_emai

Re: [PATCH] erofs: Eliminate usage of uninitialized_var() macro

2020-06-15 Thread Jason Yan
在 2020/6/15 15:25, Gao Xiang 写道: Hi Jason, On Mon, Jun 15, 2020 at 12:01:41PM +0800, Jason Yan wrote: This is an effort to eliminate the uninitialized_var() macro[1]. The use of this macro is the wrong solution because it forces off ANY analysis by the compiler for a given variable. It even

[RESEND PATCH] irqchip/irq-mtk-sysirq: replace spinlock with raw_spinlock

2020-06-15 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This driver may take a regular spinlock when a raw spinlock (irq_desc->lock) is already taken which results in the following lockdep splat: = [ BUG: Invalid wait context ] 5.7.0-rc7 #1 Not tainted - swapper/0/0 is

Re: Build regressions/improvements in v5.8-rc1

2020-06-15 Thread Geert Uytterhoeven
On Mon, Jun 15, 2020 at 9:39 AM Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v5.8-rc1[1] compared to v5.7[2]. > > Summarized: > - build errors: +4/-4 > - build warnings: +66/-42 > > Note that there may be false regressions, as some logs are

Re: [PATCH v6 2/8] mtd: rawnand: rockchip: NFC drivers for RK3308, RK2928 and others

2020-06-15 Thread Miquel Raynal
Hi Johan, Johan Jonker wrote on Sat, 13 Jun 2020 15:31:52 +0200: > Hi Yifeng, Miquel, > > Some more comments about swap(); > > On 6/9/20 9:40 AM, Yifeng Zhao wrote: > > [..] > > > +static int rk_nfc_ooblayout_free(struct mtd_info *mtd, int section, > > +struct mtd

Re: [PATCH 0/2] arm64: dts: ti: k3: add platforms chipid module nodes

2020-06-15 Thread Peter Ujfalusi
Hi Grygorii, On 13/06/2020 19.43, Grygorii Strashko wrote: > Hi Tero, > > Hence k3 platforms chipid module driver was merged, there is follow up series > to add corresponding DT chipid nodes. > > [1] https://lkml.org/lkml/2020/5/29/979 > > Grygorii Strashko (2): > arm64: dts: ti: k3-am65-wak

[PATCH v2] nvdimm: Avoid race between probe and reading device attributes

2020-06-15 Thread Richard Palethorpe
It is possible to cause a division error and use-after-free by querying the nmem device before the driver data is fully initialised in nvdimm_probe. E.g by doing (while true; do cat /sys/bus/nd/devices/nmem*/available_slots 2>&1 > /dev/null done) & while true; do for i in $(seq 0 4); d

[PATCH] nfsd: fix kernel crash when load nfsd in docker

2020-06-15 Thread Luo Xiaogang
We load nfsd module in the docker container, kernel crash as following. The 'current->nsproxy->net_ns->gen->ptr[nfsd_net_id]' is overflow in the nfsd_init_net. We should use the net_ns which is being init in the nfsd_init_net, not the 'current->nsproxy->net_ns'. [ 939.174448] Installing knfsd (

Re: [PATCH 14/29] dt: Fix broken references to renamed docs

2020-06-15 Thread Philipp Zabel
On Mon, 2020-06-15 at 08:46 +0200, Mauro Carvalho Chehab wrote: > Some files got renamed. Those were all fixed automatically by > > ./scripts/documentation-file-ref-check --fix > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt |

[PATCH 34/38] vt_ioctl: move vt_reldisp out of vt_ioctl

2020-06-15 Thread Jiri Slaby
It's too long to be inlined. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 88 ++- 1 file changed, 40 insertions(+), 48 deletions(-) diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index e8bcfcdbedbb..cdb7f0370ca9 100644 --- a/d

[PATCH 02/38] vt: introduce enum vc_intensity for intensity

2020-06-15 Thread Jiri Slaby
Introduce names (en enum) for 0, 1, and 2 constants. We now have VCI_HALF_BRIGHT, VCI_NORMAL, and VCI_BOLD instead. Apart from the cleanup, 1) the enum allows for better type checking, and 2) this saves some code. No more fiddling with bits is needed in assembly now. (OTOH, the structure is lar

[PATCH 36/38] vt_ioctl: move vt_io_fontreset out of vt_io_ioctl

2020-06-15 Thread Jiri Slaby
This also eliminates the ifdeffery by using if and __is_defined. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 44 +++ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index f671e

[PATCH 08/38] vt: use tty_insert_flip_string in respond_string

2020-06-15 Thread Jiri Slaby
Pass the length of a string to respond_string and use tty_insert_flip_string instead of a loop with tty_insert_flip_char. This simplifies the processing on the tty side. The added strlens are optimized during constant folding and propagation and the result are proper constants in assembly. Signed

[PATCH 26/38] vt: use newly defined CUR_* macros

2020-06-15 Thread Jiri Slaby
We defined macros for all the magic constants in the previous patch. So let us use the macro in the code now. No functional change intended. Signed-off-by: Jiri Slaby Cc: Thomas Winischhofer Cc: Bartlomiej Zolnierkiewicz Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: linux-...@vger.kernel.o

[PATCH 12/38] vt: separate unicode handling into vc_translate_unicode

2020-06-15 Thread Jiri Slaby
do_con_write is complicated enough. Extract unicode handling to a separate function. For do_con_write, 249 LOCs lowered to 183 lines. Use diff -w -b to see the difference is neligible -- mostly whitespace and use of 'return's instead of 'continue's. Signed-off-by: Jiri Slaby --- drivers/tty/vt/

[PATCH 31/38] vt_ioctl: move K* ioctls to a separate function

2020-06-15 Thread Jiri Slaby
We create a new vt_k_ioctl here and move there all the K* ioctls. This makes vt_ioctl significantly smaller. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 294 -- 1 file changed, 157 insertions(+), 137 deletions(-) diff --git a/drivers/tty/vt/vt_

[PATCH 29/38] vt_ioctl: eliminate ret & breaks in vt_ioctl

2020-06-15 Thread Jiri Slaby
This is still a leftover from BKL, when we locked it around vt_ioctl's code. We can return instead of breaks in the switch loop. And we can return in case of errors too. This allows for sifting of the code to the left in some cases. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 318 +

[PATCH 38/38] vt_ioctl: move perm checks level up

2020-06-15 Thread Jiri Slaby
Synchronize with others and check perm directly in vt_k_ioctl. We do not need to pass perm to do_fontx_ioctl and do_unimap_ioctl then. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers/tty/vt

[PATCH 04/38] vt: deduplicate setGx code

2020-06-15 Thread Jiri Slaby
The code for setting G0 and G1 is duplicated -- for each of them. Move the code to a separate function (vc_setGx) and distinguish the two cases by a parameter. Change if-else-if to switch which allows for slightly better optimization (decision tree). Signed-off-by: Jiri Slaby --- drivers/tty/vt

[PATCH 33/38] vt_ioctl: move vt_setactivate out of vt_ioctl

2020-06-15 Thread Jiri Slaby
It's too long to be inlined. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 74 +-- 1 file changed, 39 insertions(+), 35 deletions(-) diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index 978c33ad6619..e8bcfcdbedbb 100644 --- a/d

[PATCH 32/38] vt_ioctl: move io ioctls to a separate function

2020-06-15 Thread Jiri Slaby
We create a new vt_io_ioctl here and move there all the IO ioctls. This makes vt_ioctl significantly smaller. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 177 +- 1 file changed, 98 insertions(+), 79 deletions(-) diff --git a/drivers/tty/vt/vt_i

[PATCH 35/38] vt_ioctl: move vt_resizex out of vt_ioctl

2020-06-15 Thread Jiri Slaby
It's too long to be inlined. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 100 +- 1 file changed, 55 insertions(+), 45 deletions(-) diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index cdb7f0370ca9..f671e94a94a9 100644 --- a/d

[PATCH 01/38] vc: separate state

2020-06-15 Thread Jiri Slaby
There are two copies of some members of struct vc_data. This is because we need to save them and restore later. Move these memebers to a separate structure called vc_state. So now instead of members like: vc_x, vc_y and vc_saved_x, vc_saved_y we have state and saved_state (of type: struct vc_st

[PATCH 37/38] vt_ioctl: move vt_kdsetmode out of vt_k_ioctl

2020-06-15 Thread Jiri Slaby
It's too long to be inlined. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt_ioctl.c | 78 +-- 1 file changed, 43 insertions(+), 35 deletions(-) diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index ecf96f5e616d..224f2a564e13 100644 --- a/d

[PATCH 30/38] vt_ioctl: eliminate use of uival and ucval

2020-06-15 Thread Jiri Slaby
They were used for the first parameter of put_user. But put_user accepts constants in the parameter and also determines the type only by the second parameter. So we can safely drop these helpers and simplify the code a bit. Including the removal of set_int label. Signed-off-by: Jiri Slaby --- d

[PATCH] um: line, remove put_char

2020-06-15 Thread Jiri Slaby
um's put_char only calls write. And the tty layer/disciplines do the same if put_char is NULL. So we can safely remove this put_char wrapper. Signed-off-by: Jiri Slaby Cc: Jeff Dike Cc: Richard Weinberger Cc: Anton Ivanov --- arch/um/drivers/line.c | 5 - arch/um/drivers/line.h

[PATCH 24/38] vt: whitespace and paren cleanup in add_softcursor

2020-06-15 Thread Jiri Slaby
Format add_softcursor according to CodingStyle. Until now, it was a mess of letters. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index b1fdbf119755..f7d5a3c3845

[PATCH 27/38] vt: remove superfluous parens in invert_screen and build_attr

2020-06-15 Thread Jiri Slaby
There were too many parentheses in invert_screen, remove them and align the code in invert_screen a bit. No functional change intended. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/

[PATCH 21/38] vt: simplify vc_attr handling in vc_con_write_normal

2020-06-15 Thread Jiri Slaby
Invert the attribute on the only place, without the need of checking 'inverse'. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index d3cd256ba0fa..72ae8ede1ac9 100644 ---

[PATCH 28/38] vt: simplify noncolor attributes in build_attr

2020-06-15 Thread Jiri Slaby
All the attributes are bools, so do a simple shift instead of tests and constants as bool is either 0 or 1. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 3aff2e3cf5a6..

[PATCH 20/38] vc: simplify condition in vc_con_write_normal

2020-06-15 Thread Jiri Slaby
Convert (!(A && !B) || C) into (!A || B || C) to improve readability. No functional changes, as was just proven by objdump. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 893f7

[PATCH 23/38] vt: synchronize types and use min in csi_X

2020-06-15 Thread Jiri Slaby
All the types are unsinged ints -- even the vpar passed to the function. So unify them and use min() to compute count instead of explicit comparison. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/tty/vt/vt.c

[PATCH 17/38] vc: introduce struct vc_draw_region

2020-06-15 Thread Jiri Slaby
For passing of draw area among functions. This makes next patches simpler. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 44 +--- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 0f61dc36

[PATCH 19/38] vc: move normal char processing from do_con_write

2020-06-15 Thread Jiri Slaby
vc_con_write_normal now handles the complex normal characters processing. It is no longer a part of do_con_write. So this patch makes do_con_write pretty clean and obvious. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 198 1 file changed, 109 i

[PATCH 13/38] vt: rearrange vc_translate_unicode

2020-06-15 Thread Jiri Slaby
The code was too overcomplicated. Extract vc_sanitize_unicode to a separate function and flatten the code. I believe the code is straightforward now. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 121 +++- 1 file changed, 64 insertions(+), 57 deletio

[PATCH 22/38] vt: make tc write more obvious in vc_con_write_normal

2020-06-15 Thread Jiri Slaby
Nested ternary operators spread over 4 lines are really evil for reading. Turn the outer one to proper 'if'. Now, we see, there is a common path, so the code can be simplified. This way, the code is understandable now. Checked using symbolic execution (klee), that the old and new behaviors are the

Re: [External] Re: [PATCH 3/3] mm/slub: Fix release all resources used by a slab cache

2020-06-15 Thread Muchun Song
On Mon, Jun 15, 2020 at 3:25 PM Joonsoo Kim wrote: > > 2020년 6월 15일 (월) 오후 3:41, Muchun Song 님이 작성: > > > > On Mon, Jun 15, 2020 at 2:23 PM Joonsoo Kim wrote: > > > > > > 2020년 6월 14일 (일) 오후 9:39, Muchun Song 님이 작성: > > > > > > > > The function of __kmem_cache_shutdown() is that release all resou

[PATCH 09/38] vt: get rid of VT10.ID macros

2020-06-15 Thread Jiri Slaby
VT100ID is unused, but defined twice. Kill it. VT102ID is used only in respond_ID. Define there a variable with proper type and use that instead. Then drop both defines of VT102ID too. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 11 --- include/linux/console.h | 6 -- 2

[PATCH 03/38] vc: switch state to bool

2020-06-15 Thread Jiri Slaby
The code currently uses bitfields to store true-false values. Switch all of that to bools. Apart from the cleanup, it saves 20B of code as many shifts, ANDs, and ORs became simple movzb's. Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 32 - drive

[PATCH 07/38] vt: remove 25 years stale comment

2020-06-15 Thread Jiri Slaby
vc_cons was made global (non-static) in 1.3.38, almost 25 years ago. Remove a comment which says that it would be a disadvantage to do so :P. Signed-off-by: Jiri Slaby --- include/linux/console_struct.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/console_s

[PATCH 15/38] vt: move rescan_last_byte label earlier

2020-06-15 Thread Jiri Slaby
This removes duplicated initialization of variables (after reordering 'c' initialization). It will also allow for eliminating whole translation into a separate function in the next patch. Note that vc_state, vc_utf etc. are checked with every rescan now. But they are immutable for non-control cha

[PATCH 18/38] vc: extract detecting control characters from do_con_write

2020-06-15 Thread Jiri Slaby
Move the control characters detection to a separate function dubbed vc_is_control. It makes the 14 subexpressions a "bit" more readable. And also simplifies next patches. It moves also CTRL_ACTION and CTRL_ALWAYS to this new function, as they are used exclusively here. While at it, these are conve

  1   2   3   4   5   6   7   8   9   10   >