RE: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-08 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Thursday, January 7, 2021 2:42 PM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com; Gage Eads > > Subject: Re: [PATCH v8 04/20] dlb: add device ioctl layer a

RE: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-08 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Thursday, January 7, 2021 2:51 PM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com; Gage Eads > > Subject: Re: [PATCH v8 04/20] dlb: add device ioctl layer a

[PATCH v1 6/7] perf cs-etm: Add helper cs_etm__get_pid_fmt()

2021-01-08 Thread Leo Yan
This patch adds helper function cs_etm__get_pid_fmt(), by passing parameter "traceID", it returns the corresponding PID format. Signed-off-by: Leo Yan --- tools/perf/util/cs-etm.c | 18 ++ tools/perf/util/cs-etm.h | 1 + 2 files changed, 19 insertions(+) diff --git a/tools/perf

[PATCH v1 5/7] perf cs-etm: Fixup PID_FMT when it is zero

2021-01-08 Thread Leo Yan
If the metadata item CS_ETM_PID_FMT/CS_ETMV4_PID_FMT is zero, this means the perf data file is recorded with old version tool and the tool has not extended to support the item. For this case, this patch fixes up PID_FMT entry to set the value as BIT(ETM_OPT_CTXTID), this info will be delivered to

[PATCH v1 3/7] perf cs-etm: Calculate per CPU metadata array size

2021-01-08 Thread Leo Yan
The metadata array can be extended over time and the tool, if using the predefined macro (like CS_ETMV4_PRIV_MAX for ETMv4) as metadata array size to copy data, it can cause compatible issue within different versions of perf tool. E.g. we recorded a data file with an old version tool, afterwards i

[PATCH v1 4/7] perf cs-etm: Add PID format into metadata

2021-01-08 Thread Leo Yan
It's possible for CoreSight to trace PID in either CONTEXTIDR_EL1 or CONTEXTIDR_EL2, the PID format info is used to distinguish the PID is traced in which register. This patch saves PID format into the metadata when record. Signed-off-by: Leo Yan --- tools/perf/arch/arm/util/cs-etm.c | 21 +

[PATCH v1 7/7] perf cs-etm: Detect pid in VMID for kernel running at EL2

2021-01-08 Thread Leo Yan
From: Suzuki K Poulose The pid of the task could be traced as VMID when the kernel is running at EL2. Teach the decoder to look for vmid when the context_id is invalid but we have a valid VMID. Cc: Mike Leach Cc: Mathieu Poirier Cc: Al Grant Co-developed-by: Leo Yan Signed-off-by: Suzuki K P

[PATCH v1 2/7] perf cs_etm: Use pid tracing explicitly instead of contextid

2021-01-08 Thread Leo Yan
From: Suzuki K Poulose If the kernel is running at EL2, the pid of the task is exposed via VMID instead of the CONTEXTID. Add support for this in the perf tool. By default the perf tool requests contextid and timestamp for task bound events. Instead of hard coding contextid, switch to "pid" conf

[PATCH v1 0/7] coresight: etm-perf: Fix pid tracing with VHE

2021-01-08 Thread Leo Yan
This patch series is a following up for the previous version which was delivered by Suzuki [1]. Below gives the background info for why we need this patch series, directly quotes the description in the cover letter of the previous version: "With the Virtualization Host Extensions, the kernel can

[PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-08 Thread Leo Yan
From: Suzuki K Poulose When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the process. Thus we should trace the VMID with VMIDOPT set to trace CONTEXTIDR_EL2 instead of CONTEXTIDR_EL1. Given that we have an existing config

Re: [PATCH 0/3] arm64: kasan: support CONFIG_KASAN_VMALLOC

2021-01-08 Thread Lecopzer Chen
Hi Andrey, > > On Sun, Jan 3, 2021 at 6:12 PM Lecopzer Chen wrote: > > > > Linux supports KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 > > ("kasan: support backing vmalloc space with real shadow memory") > > > > Acroding to how x86 ported it [1], they early allocated p4d and pgd, > > but in ar

Re: [PATCH 3/3] arm64: Kconfig: support CONFIG_KASAN_VMALLOC

2021-01-08 Thread Lecopzer Chen
Hi Andrey, > On Sun, Jan 3, 2021 at 6:13 PM Lecopzer Chen wrote: > > > > Now I have no device to test for HW_TAG, so keep it not selected > > until someone can test this. > > > > Signed-off-by: Lecopzer Chen > > --- > > arch/arm64/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff

Re: Re: [PATCH] media: v4l2: Fix memleak in videobuf_read_one

2021-01-08 Thread dinghao . liu
> On 05/01/2021 08:59, Dinghao Liu wrote: > > When videobuf_waiton() fails, we should execute clean > > functions to prevent memleak. It's the same when > > __videobuf_copy_to_user() fails. > > > > Fixes: 7a7d9a89d0307 ("V4L/DVB (6251): Replace video-buf to a more generic > > approach") > > Signe

[PATCH] venus: pm_helpers: Control core power domain manually

2021-01-08 Thread Stanimir Varbanov
Presently we use device_link to control core power domain. But this leads to issues because the genpd doesn't guarantee synchronous on/off for supplier devices. Switch to manually control by pmruntime calls. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 1

Re: BUG: unable to handle kernel NULL pointer dereference in __lookup_slow

2021-01-08 Thread syzbot
syzbot suspects this issue was fixed by commit: commit d24396c5290ba8ab04ba505176874c4e04a2d53c Author: Rustam Kovhaev Date: Sun Nov 1 14:09:58 2020 + reiserfs: add check for an invalid ih_entry_count bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=111480e750 start co

[PATCH] maintainers: update my email address

2021-01-08 Thread Darrick J. Wong
From: Darrick J. Wong Change my email contact ahead of a likely painful eleven-month migration to a certain cobalt enteprisey groupware cloud product that will totally break my workflow. Some day I may get used to having to email being sequestered behind both claret and cerulean oath2+sms 2fa la

RE: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-08 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Thursday, January 7, 2021 2:41 PM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com; Gage Eads > > Subject: Re: [PATCH v8 04/20] dlb: add device ioctl layer and

RE: [PATCH v8 01/20] dlb: add skeleton for DLB driver

2021-01-08 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > Sent: Thursday, January 7, 2021 2:36 PM > To: Chen, Mike Ximing > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Williams, Dan J > ; pierre-louis.boss...@linux.intel.com; Gage Eads > > Subject: Re: [PATCH v8 01/20] dlb: add skeleton for DLB dri

Re: Old platforms: bring out your dead

2021-01-08 Thread Willy Tarreau
On Fri, Jan 08, 2021 at 11:55:06PM +0100, Arnd Bergmann wrote: > * 80486SX/DX: 80386 CPUs were dropped in 2012, and there are > indications that 486 have no users either on recent kernels. > There is still the Vortex86 family of SoCs, and the oldest of those were > 486SX-class, but all the mo

Re: False positive "do_IRQ: #.55 No irq handler for vector" messages on AMD ryzen based laptops

2021-01-08 Thread Christopher William Snowhill
Replying to https://lkml.org/lkml/2019/2/19/516 from yes, 2019. My MSI B450 Tomahawk is exhibiting this bug now that I've updated the firmware to the latest beta BIOS with AGESA 1.1.0.0 patch D.

Re: [PATCH] staging: mt7621-dts: remove obsolete switch node

2021-01-08 Thread DENG Qingfang
On Sat, Jan 9, 2021 at 2:25 AM Andrew Lunn wrote: > > On Fri, Jan 08, 2021 at 10:51:55AM +0800, DENG Qingfang wrote: > > This was for OpenWrt's swconfig driver, which never made it upstream, > > and was also superseded by MT7530 DSA driver. > > What about > Documentation/devicetree/bindings/net/me

Re: [PATCH 3/3] regulator: mt6323: Add OF match table

2021-01-08 Thread kernel test robot
Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on regulator/for-next] [also build test WARNING on v5.11-rc2 next-20210108] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as doc

[rcu:dev.2021.01.06a] BUILD SUCCESS 23400a5e2d5edbb74d6299b83c67920f2fe8413d

2021-01-08 Thread kernel test robot
defconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210108 i386 randconfig-a002-20210108 i386

[PATCH net-next] net: marvell: prestera: Correct typo

2021-01-08 Thread Florian Fainelli
The function was incorrectly named with a trailing 'r' at the end of prestera. Signed-off-by: Florian Fainelli --- Jakub, David, This patch is on top of Vladimir's series: [PATCH v4 net-next 00/11] Get rid of the switchdev transactional model .../net/ethernet/marvell/prestera/prestera_switchde

Re: [PATCH 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs

2021-01-08 Thread Can Guo
On 2021-01-09 12:45, Can Guo wrote: On 2021-01-08 19:29, Bean Huo wrote: On Wed, 2021-01-06 at 09:20 +0800, Can Guo wrote: Hi Bean, On 2021-01-06 02:38, Bean Huo wrote: > On Tue, 2021-01-05 at 09:07 +0800, Can Guo wrote: > > On 2021-01-05 04:05, Bean Huo wrote: > > > On Sat, 2021-01-02 at 05:5

Re: [PATCH 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs

2021-01-08 Thread Can Guo
On 2021-01-08 19:29, Bean Huo wrote: On Wed, 2021-01-06 at 09:20 +0800, Can Guo wrote: Hi Bean, On 2021-01-06 02:38, Bean Huo wrote: > On Tue, 2021-01-05 at 09:07 +0800, Can Guo wrote: > > On 2021-01-05 04:05, Bean Huo wrote: > > > On Sat, 2021-01-02 at 05:59 -0800, Can Guo wrote: > > > > + * @

Re: [PATCH v5 9/9] bus: mhi: core: Do not clear channel context more than once

2021-01-08 Thread Hemant Kumar
On 1/8/21 12:54 PM, Bhaumik Bhatt wrote: When clearing the channel context, calling mhi_free_coherent() more than once can result in kernel warnings such as "trying to free invalid coherent area". Prevent extra work by adding a check to skip calling mhi_deinit_chan_ctxt() if the client driver

[PATCH] Revert "tcp: simplify window probe aborting on USER_TIMEOUT"

2021-01-08 Thread Enke Chen
From: Enke Chen This reverts commit 9721e709fa68ef9b860c322b474cfbd1f8285b0f. With the commit 9721e709fa68 ("tcp: simplify window probe aborting on USER_TIMEOUT"), the TCP session does not terminate with TCP_USER_TIMEOUT when data remain untransmitted due to zero window. The number of unanswere

Re: [PATCH] mm/hugetlb: Fix potential double free in hugetlb_register_node() error path

2021-01-08 Thread Muchun Song
On Thu, Jan 7, 2021 at 8:36 PM Miaohe Lin wrote: > > In hugetlb_sysfs_add_hstate(), we would do kobject_put() on hstate_kobjs > when failed to create sysfs group but forget to set hstate_kobjs to NULL. > Then in hugetlb_register_node() error path, we may free it again via > hugetlb_unregister_node

Re: [External] Re: [PATCH v2 6/6] mm: hugetlb: remove VM_BUG_ON_PAGE from page_huge_active

2021-01-08 Thread Muchun Song
On Sat, Jan 9, 2021 at 6:24 AM Mike Kravetz wrote: > > On 1/6/21 12:47 AM, Muchun Song wrote: > > The page_huge_active() can be called from scan_movable_pages() which > > do not hold a reference count to the HugeTLB page. So when we call > > page_huge_active() from scan_movable_pages(), the HugeTL

Re: [PATCH v4 1/1] PCI/ERR: don't clobber status after reset_link()

2021-01-08 Thread Kuppuswamy, Sathyanarayanan
On 1/8/21 2:30 PM, Bjorn Helgaas wrote: Can we push this forward now? There are several pending patches in this area from Keith and Sathyanarayanan; I haven't gotten to them yet, so not sure whether they help address any of this. Following two patches should also address the same issue. My

[rcu:rcu/test] BUILD SUCCESS 2ced10737a8b96d41e0c9d9e43d42b545552649c

2021-01-08 Thread kernel test robot
onfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20210108 x86_64

[PATCH] ASoC: soc-pcm: return correct -ERRNO in failure path

2021-01-08 Thread Souptick Joarder
Kernel test robot throws below error -> sound/soc/soc-pcm.c:2523 dpcm_run_update_startup() error: uninitialized symbol 'ret'. Initializing ret = 0 and returning correct -ERRNO in failure path. Reported-by: kernel test robot Signed-off-by: Souptick Joarder --- sound/soc/soc-pcm.c | 3 ++- 1 fi

Re: [PATCH] dma-buf: cma_heap: Fix memory leak in CMA heap

2021-01-08 Thread Sumit Semwal
Hi John, On Fri, 8 Jan 2021 at 01:56, John Stultz wrote: > > Bing Song noticed the CMA heap was leaking memory due to a flub > I made in commit a5d2d29e24be ("dma-buf: heaps: Move heap-helper > logic into the cma_heap implementation"), and provided this fix > which ensures the pagelist is also fr

Re: [PATCH V7 01/13] dt-bindings: soc: Add dvfsrc driver bindings

2021-01-08 Thread Rob Herring
On Fri, 08 Jan 2021 15:48:03 +0800, Henry Chen wrote: > Document the binding for enabling dvfsrc on MediaTek SoC. > > Signed-off-by: Henry Chen > --- > .../devicetree/bindings/soc/mediatek/dvfsrc.yaml | 67 > ++ > 1 file changed, 67 insertions(+) > create mode 100644 Docu

Re: [PATCH] mmc: sdhci-iproc: Add ACPI bindings for the rpi4

2021-01-08 Thread Jeremy Linton
Hi, On 1/8/21 7:10 PM, kernel test robot wrote: Hi Jeremy, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.11-rc2 next-20210108] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH net v3] net: fix use-after-free when UDP GRO with shared fraglist

2021-01-08 Thread Jakub Kicinski
On Fri, 8 Jan 2021 11:18:39 +0100 Daniel Borkmann wrote: > On 1/8/21 3:28 AM, Dongseok Yi wrote: > > skbs in fraglist could be shared by a BPF filter loaded at TC. If TC > > writes, it will call skb_ensure_writable -> pskb_expand_head to create > > a private linear section for the head_skb. And the

RE: [PATCH v2] ACPI: scan: Fix a Hyper-V Linux VM panic caused by buffer overflow

2021-01-08 Thread Dexuan Cui
> From: Dexuan Cui > Sent: Thursday, January 7, 2021 11:24 PM > ... > Linux VM on Hyper-V crashes with the latest mainline: > ... > > Changes in v2: > strlcpy -> kstrdup_const. Thanks Rafael J. Wysocki! > Change commit log accordingly. Hi Rafael, Len, and all, Can you please take a look

[PATCH] kvm: x86: Mark __kvm_vcpu_halt() as static

2021-01-08 Thread Souptick Joarder
Kernel test robot throws below warning -> >> arch/x86/kvm/x86.c:7979:5: warning: no previous prototype for >> '__kvm_vcpu_halt' [-Wmissing-prototypes] 7979 | int __kvm_vcpu_halt(struct kvm_vcpu *vcpu, int state, int reason) | ^~~ Marking __kvm_vcpu_halt() as static as

[rcu:dev.2021.01.04b] BUILD SUCCESS 27d9a16d9727531fbc4d01025e7c6f5712c7a859

2021-01-08 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a006-20210108 x86_64 randconfig-a005

Re: [RFC 2/2] clk: vc5: Add support for optional load capacitance

2021-01-08 Thread Adam Ford
On Fri, Jan 8, 2021 at 4:49 PM Luca Ceresoli wrote: > > Hi Adam, > > On 06/01/21 18:39, Adam Ford wrote: > > There are two registers which can set the load capacitance for > > XTAL1 and XTAL2. These are optional registers when using an > > external crystal. Parse the device tree and set the > > c

Re: [RFC PATCH v2] pinctrl: add helper to expose pinctrl state in debugfs

2021-01-08 Thread Drew Fustini
On Sat, Jan 09, 2021 at 02:22:07AM +0100, Linus Walleij wrote: > Hi Drew, > > sorry for belated review. The approach is so uncommon so it had me > confused. > > On Thu, Dec 24, 2020 at 9:36 PM Drew Fustini wrote: > > > > > I used the compatible string "pinctrl,state-helper" but would appreciate

Re: [PATCH 0/2] page_count can't be used to decide when wp_page_copy

2021-01-08 Thread Andrea Arcangeli
Hello Jason, On Fri, Jan 08, 2021 at 08:42:55PM -0400, Jason Gunthorpe wrote: > There is already a patch series floating about to do exactly that for > FOLL_LONGTERM pins based on the existing code in GUP for CMA migration Sounds great. > The ship sailed on this a decade ago, it is completely in

Re: [RFC 1/2] dt-bindings: clk: versaclock5: Add load capacitance properties

2021-01-08 Thread Adam Ford
On Fri, Jan 8, 2021 at 4:49 PM Luca Ceresoli wrote: > > Hi Adam, > > On 06/01/21 18:38, Adam Ford wrote: > > There are two registers which can set the load capacitance for > > XTAL1 and XTAL2. These are optional registers when using an > > external crystal. Update the bindings to support them. >

Re: ipmi_msghandler.c question

2021-01-08 Thread Corey Minyard
On Fri, Jan 08, 2021 at 11:37:04PM +, Asmaa Mnebhi wrote: > Hi Corey, > > I have a question for you related to the following function in > ipmi_msghandler.c > > static void __get_guid(struct ipmi_smi *intf) > { > int rv; > struct bmc_device *bmc = intf->bmc; > > bmc->dyn_g

[rcu:dev.2021.01.06b] BUILD SUCCESS 1f4548c8c38751b4e54ce84b7773444b8a88c1d3

2021-01-08 Thread kernel test robot
powerpc allnoconfig i386 randconfig-a006-20210108 x86_64 randconfig-a004-20210108 x86_64 randconfig-a006-20210108 x86_64 randconfig-a001-20210108 x86_64 randconfig-a002-20210108 x86_64

Re: [PATCH] drm/amdkfd: Fix out-of-bounds read in kdf_create_vcrat_image_cpu()

2021-01-08 Thread Jeremy Cline
On Fri, Jan 08, 2021 at 06:46:17PM -0500, Felix Kuehling wrote: > Am 2021-01-08 um 11:31 a.m. schrieb Jeremy Cline: > > KASAN reported a slab-out-of-bounds read of size 1 in > > kdf_create_vcrat_image_cpu(). > > > > This occurs when, for example, when on an x86_64 with a single NUMA node > > becaus

Re: [PATCH] mm/memcontrol: fix warning in mem_cgroup_page_lruvec()

2021-01-08 Thread Hugh Dickins
On Thu, 7 Jan 2021, Vlastimil Babka wrote: > On 1/4/21 6:03 AM, Hugh Dickins wrote: > > Boot a CONFIG_MEMCG=y kernel with "cgroup_disabled=memory" and you are > > met by a series of warnings from the VM_WARN_ON_ONCE_PAGE(!memcg, page) > > recently added to the inline mem_cgroup_page_lruvec(). > >

Re: [PATCH 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-01-08 Thread Suren Baghdasaryan
On Fri, Jan 8, 2021 at 5:02 PM David Rientjes wrote: > > On Fri, 8 Jan 2021, Suren Baghdasaryan wrote: > > > > > @@ -1197,12 +1197,22 @@ SYSCALL_DEFINE5(process_madvise, int, pidfd, > > > > const struct iovec __user *, vec, > > > > goto release_task; > > > > } > > > > > > > >

[PATCH] perf/core: Mark perf_pmu_snapshot_aux() as static

2021-01-08 Thread Souptick Joarder
Kernel test robot throws below warning -> kernel/events/core.c:6535:6: warning: no previous prototype for 'perf_pmu_snapshot_aux' [-Wmissing-prototypes] 6535 | long perf_pmu_snapshot_aux(struct perf_buffer *rb, | ^ Marking perf_pmu_snapshot_aux() as static as

[PATCH 3/3] regulator: mt6323: Add OF match table

2021-01-08 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6323 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH 2/3] regulator: mt6358: Add OF match table

2021-01-08 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6358 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH 1/3] regulator: mt6360: Add OF match table

2021-01-08 Thread matthias . bgg
From: Matthias Brugger Binding documentation mentions that a compatible is required for the MT6360 device node, but the driver doesn't provide a OF match table. Signed-off-by: Matthias Brugger --- drivers/regulator/mt6360-regulator.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/

Re: [PATCH v5 00/15] Add functionality to ipu3-cio2 driver allowing software_node connections to sensors on platforms designed for Windows

2021-01-08 Thread Laurent Pinchart
Hi Greg, On Thu, Jan 07, 2021 at 01:28:23PM +, Daniel Scally wrote: > > Hello all > > v4: > https://lore.kernel.org/linux-media/20210103231235.792999-1-djrsca...@gmail.com/T/#m11b7cb977e1b73fba1e625c3d6a189e2943a7783 > v3: > https://lore.kernel.org/linux-media/20201224010907.263125-1-djrsca.

[RFC PATCH 5/8] entry: Explicitly flush pending rcuog wakeup before last rescheduling points

2021-01-08 Thread Frederic Weisbecker
Following the idle loop model, cleanly check for pending rcuog wakeup before the last rescheduling point on resuming to user mode. This way we can avoid to do it from rcu_user_enter() with the last resort self-IPI hack that enforces rescheduling. Signed-off-by: Frederic Weisbecker Cc: Peter Zijls

[RFC PATCH 7/8] entry: Report local wake up on resched blind zone while resuming to user

2021-01-08 Thread Frederic Weisbecker
The last rescheduling opportunity while resuming to user is in exit_to_user_mode_loop(). This means that any wake up performed on the local runqueue after this point is going to have its rescheduling silently ignored. Perform sanity checks to report these situations. Signed-off-by: Frederic Weisb

[RFC PATCH 8/8] timer: Report ignored local enqueue in nohz mode

2021-01-08 Thread Frederic Weisbecker
Enqueuing a local timer after the tick has been stopped will result in the timer being ignored until the next random interrupt. Perform sanity checks to report these situations. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Paul E. McKenney Cc:

[RFC PATCH 6/8] sched: Report local wake up on resched blind zone within idle loop

2021-01-08 Thread Frederic Weisbecker
The idle loop has several need_resched() checks that make sure we don't miss a rescheduling request. This means that any wake up performed on the local runqueue after the last generic need_resched() check is going to have its rescheduling silently ignored. This has happened in the past with rcu kth

Re: [PATCH v5 07/15] device property: Define format macros for ports and endpoints

2021-01-08 Thread Laurent Pinchart
Hi Rafael, Could you please let us know with an Acked-by if this patch can be merged through the linux-media tree for v5.12 ? The cover letter contains additional details (in a nutshell, this is a cross-tree series and we would like to avoid topic branches). On Thu, Jan 07, 2021 at 01:28:30PM +00

[RFC PATCH 4/8] rcu/nocb: Trigger self-IPI on late deferred wake up before user resume

2021-01-08 Thread Frederic Weisbecker
Entering RCU idle mode may cause a deferred wake up of an RCU NOCB_GP kthread (rcuog) to be serviced. Unfortunately the call to rcu_user_enter() is already past the last rescheduling opportunity before we resume to userspace or to guest mode. We may escape there with the woken task ignored. The u

[RFC PATCH 1/8] rcu: Remove superfluous rdp fetch

2021-01-08 Thread Frederic Weisbecker
Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc: Rafael J. Wysocki Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar --- kernel/rcu/tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 40e5e3dd253e..fef90c467670 100644 --- a/ker

[RFC PATCH 3/8] rcu/nocb: Perform deferred wake up before last idle's need_resched() check

2021-01-08 Thread Frederic Weisbecker
Entering RCU idle mode may cause a deferred wake up of an RCU NOCB_GP kthread (rcuog) to be serviced. Usually a local wake up happening while running the idle task is handled in one of the need_resched() checks carefully placed within the idle loop that can break to the scheduler. Unfortunately t

[RFC PATCH 2/8] rcu: Pull deferred rcuog wake up to rcu_eqs_enter() callers

2021-01-08 Thread Frederic Weisbecker
Deferred wakeup of rcuog kthreads upon RCU idle mode entry is going to be handled differently whether initiated by idle, user or guest. Prepare with pulling that control up to rcu_eqs_enter() callers. Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc: Rafael J. Wysocki Cc: Peter Zijlst

[RFC PATCH 0/8] rcu/sched: Fix ignored rescheduling after rcu_eqs_enter() v3

2021-01-08 Thread Frederic Weisbecker
(This was [PATCH 0/4] sched/idle: Fix missing need_resched() checks after rcu_idle_enter() v2) I initially followed Peterz review but eventually I tried a different approach. Instead of handling the late wake up from rcu_idle_enter(), I've split the delayed rcuog wake up and moved it right before

Re: kernel BUG at mm/page-writeback.c:LINE!

2021-01-08 Thread Linus Torvalds
On Tue, Jan 5, 2021 at 11:53 AM Linus Torvalds wrote: > > I took your "way to go" statement as an ack, and made it all be commit > c2407cf7d22d ("mm: make wait_on_page_writeback() wait for multiple > pending writebacks"). Oh, and Michael Larabel (of phoronix) reports that that one-liner does some

Re: [PATCH v5 09/15] lib/test_printf.c: Use helper function to unwind array of software_nodes

2021-01-08 Thread Laurent Pinchart
Hi Peter, Steven and Sergey, Could you please let us know if you're fine with this patch getting merged in v5.12 through the linux-media tree ? The cover letter contains additional details (in a nutshell, this is a cross-tree series and we would like to avoid topic branches if possible). On Thu,

Re: [PATCH v5 13/15] ACPI / bus: Add acpi_dev_get_next_match_dev() and helper macro

2021-01-08 Thread Laurent Pinchart
Hi Rafael, Could you please review this patch, and let us know (see question in the cover letter) if it can be merged through the linux-media tree for v5.12 ? On Thu, Jan 07, 2021 at 01:28:36PM +, Daniel Scally wrote: > To ensure we handle situations in which multiple sensors of the same > mo

[PATCH 0/5] Optimize iommu_map_sg() performance

2021-01-08 Thread Isaac J. Manjarres
The iommu_map_sg() code currently iterates through the given scatter-gather list, and in the worst case, invokes iommu_map() for each element in the scatter-gather list, which calls into the IOMMU driver through an indirect call. For an IOMMU driver that uses a format supported by the io-pgtable co

[PATCH 5/5] iommu/arm-smmu: Hook up map_sg()

2021-01-08 Thread Isaac J. Manjarres
Now that everything is in place for iommu_map_sg() to defer mapping a scatter-gather list to the io-pgtable layer, implement the map_sg() callback in the SMMU driver, so that iommu_map_sg() can invoke it with the entire scatter-gather list that will be mapped. Signed-off-by: Isaac J. Manjarres --

[PATCH 3/5] iommu/io-pgtable-arm-v7s: Hook up map_sg()

2021-01-08 Thread Isaac J. Manjarres
Implement the map_sg io-pgtable op for the ARMv7s io-pgtable code, so that IOMMU drivers can call it when they need to map a scatter-gather list. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/io-pgtable-arm-v7s.c | 90 ++ 1 file changed, 90 insertions(+)

[PATCH 4/5] iommu: Introduce map_sg() as an IOMMU op for IOMMU drivers

2021-01-08 Thread Isaac J. Manjarres
Add support for IOMMU drivers to have their own map_sg() callbacks. This completes the path for having iommu_map_sg() invoke an IOMMU driver's map_sg() callback, which can then invoke the io-pgtable map_sg() callback with the entire scatter-gather list, so that it can be processed entirely in the i

[PATCH 2/5] iommu/io-pgtable-arm: Hook up map_sg()

2021-01-08 Thread Isaac J. Manjarres
Implement the map_sg io-pgtable op for the ARM LPAE io-pgtable code, so that IOMMU drivers can call it when they need to map a scatter-gather list. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/io-pgtable-arm.c | 86 ++ drivers/iommu/iommu.c

[PATCH 1/5] iommu/io-pgtable: Introduce map_sg() as a page table op

2021-01-08 Thread Isaac J. Manjarres
While mapping a scatter-gather list, iommu_map_sg() calls into the IOMMU driver through an indirect call, which can call into the io-pgtable code through another indirect call. This sequence of going through the IOMMU core code, the IOMMU driver, and finally the io-pgtable code, occurs for every e

Re: [PATCH v2] proc_sysctl: fix oops caused by incorrect command parameters.

2021-01-08 Thread Andrew Morton
On Fri, 8 Jan 2021 21:10:25 +0100 Michal Hocko wrote: > > > Why would that matter? A missing value is clearly a error path and it > > > should be reported. > > > > This test is in the correct place. I think it's just a question of the > > return values. > > I was probably not clear. The test fo

Re: [PATCH v1 16/17] arm64: dts: sdm845-db845c: Add CAMSS ISP node

2021-01-08 Thread Laurent Pinchart
Hi Rob, Thank you for the patch. The subject line doesn't match the patch. On Fri, Jan 08, 2021 at 01:04:28PM +0100, Robert Foss wrote: > Add regulators and camss DT node. > > Signed-off-by: Robert Foss > --- > arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 12 > 1 file changed, 12

Re: [PATCH v1 12/17] media: dt-bindings: media: qcom,camss: Add bindings for SDM845 camss

2021-01-08 Thread Laurent Pinchart
Hi Rob, Thank you for the patch. On Fri, Jan 08, 2021 at 01:04:24PM +0100, Robert Foss wrote: > Add bindings for qcom,sdm845-camss in order to support the camera > subsystem on SDM845. > > Signed-off-by: Robert Foss > --- > .../devicetree/bindings/media/qcom,camss.txt | 51 +++

[PATCH v4 1/2] dt-bindings: input: Create macros for cros-ec keymap

2021-01-08 Thread Philip Chen
In Chrome OS, the keyboard matrix can be split to two groups: The keymap for the top row keys can be customized based on OEM preference, while the keymap for the other keys is generic/fixed across boards. This patch creates marcos for the keymaps of these two groups, making it easier to reuse the

Covid-19 Relief F und

2021-01-08 Thread Relief Center
We know that this message may come to you as a surprise,You have been chosen to receive Covid-19 Relief Fund. Reply toMr. Rei Hoffman, for the release of the fund and further direction immediately via this Email: mec...@xcontrol.it Thanks, Jeff Lean

Re: [GIT PULL] Documentation fixes

2021-01-08 Thread pr-tracker-bot
The pull request you sent on Fri, 8 Jan 2021 10:31:20 -0700: > git://git.lwn.net/linux.git tags/docs-5.11-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/50dbd96e4f31e28fc2fcc80abaabab4fb277227c Thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/

Re: [RFC PATCH v2] pinctrl: add helper to expose pinctrl state in debugfs

2021-01-08 Thread Linus Walleij
Hi Drew, sorry for belated review. The approach is so uncommon so it had me confused. On Thu, Dec 24, 2020 at 9:36 PM Drew Fustini wrote: > > > I used the compatible string "pinctrl,state-helper" but would appreciate > > > advice on how to best name this. Should I create a new vendor prefix? >

[PATCH v4 2/2] ARM: dts: cros-ec-keyboard: Use keymap marcos

2021-01-08 Thread Philip Chen
The common cros-ec keymap has been defined as macros. This patch uses the macros to simply linux,keymap in cros-ec-keyboard.dtsi file. This patch also creates an alias for keyboard-controller to make it easier to override the keymap in board-specific dts later. Signed-off-by: Philip Chen --- Ch

Re: [GIT PULL] KUnit update for Linux 5.11-rc3

2021-01-08 Thread pr-tracker-bot
The pull request you sent on Fri, 8 Jan 2021 11:57:56 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-kunit-fixes-5.11-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/263da3330f6c0e4af603ec62f291e43eb3001f7b Than

Re: [GIT PULL] Kselftest fixes for Linux 5.11-rc3

2021-01-08 Thread pr-tracker-bot
The pull request you sent on Fri, 8 Jan 2021 11:14:39 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-next-5.11-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8f3d8491d03594823a7f7d71d5063e1bcd03c75c Thank you!

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-08 Thread Peter Zijlstra
On Thu, Jan 07, 2021 at 06:47:57AM -0800, Paul E. McKenney wrote: > > I don't really see the use of the ranges thing, CPU enumeration just > > isn't sane like that. Also, I should really add that randomization pass > > to the CPU enumeration :-) > > Please don't!!! Why not, the BIOS more or less

[PATCH v3 1/2] dt-bindings: input: Create macros for cros-ec keymap

2021-01-08 Thread Philip Chen
In Chrome OS, the keyboard matrix can be split to two groups: The keymap for the top row keys can be customized based on OEM preference, while the keymap for the other keys is generic/fixed across boards. This patch creates marcos for the keymaps of these two groups, making it easier to reuse the

Re: [PATCH] mmc: sdhci-iproc: Add ACPI bindings for the rpi4

2021-01-08 Thread kernel test robot
Hi Jeremy, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.11-rc2 next-20210108] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--bas

[PATCH v3 2/2] ARM: dts: cros-ec-keyboard: Use keymap marcos

2021-01-08 Thread Philip Chen
The common cros-ec keymap has been defined as macros. This patch uses the macros to simply linux,keymap in cros-ec-keyboard.dtsi file. This patch also creates an alias for keyboard-controller to make it easier to override the keymap in board-specific dts later. Signed-off-by: Philip Chen --- Ch

[rcu:dev.2021.01.05a] BUILD SUCCESS 9affdc6963f87b92130cc76a2728e49aaf4beab8

2021-01-08 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20210108 x86_64 randconfig-a006-20210108 x86_64

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-08 Thread Peter Zijlstra
On Wed, Jan 06, 2021 at 01:16:50PM -0800, Yury Norov wrote: > On Wed, Jan 6, 2021 at 1:50 AM Peter Zijlstra wrote: > > Aside from the comments Yury made, on how all this is better in > > bitmap_parselist(), how about doing s/last/N/ here? For me something > > like: "4-N" reads much saner than "4-

[PATCH v9 2/2] PCI/ERR: Split the fatal and non-fatal error recovery handling

2021-01-08 Thread Kuppuswamy Sathyanarayanan
Commit bdb5ac85777d ("PCI/ERR: Handle fatal error recovery") merged fatal and non-fatal error recovery paths, and also made recovery code depend on hotplug handler for "remove affected device + rescan" support. But this change also complicated the error recovery path and which in turn led to the fo

[PATCH v9 1/2] PCI/ERR: Call pci_bus_reset() before calling ->slot_reset() callback

2021-01-08 Thread Kuppuswamy Sathyanarayanan
Currently if report_error_detected() or report_mmio_enabled() functions requests PCI_ERS_RESULT_NEED_RESET, current pcie_do_recovery() implementation does not do the requested explicit device reset, but instead just calls the report_slot_reset() on all affected devices. Notifying about the reset vi

Re: [PATCH 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-01-08 Thread David Rientjes
On Fri, 8 Jan 2021, Suren Baghdasaryan wrote: > > > @@ -1197,12 +1197,22 @@ SYSCALL_DEFINE5(process_madvise, int, pidfd, > > > const struct iovec __user *, vec, > > > goto release_task; > > > } > > > > > > - mm = mm_access(task, PTRACE_MODE_ATTACH_FSCREDS); > > > + /*

Re: [RFC PATCH v2] selinux: security: Move selinux_state to a separate page

2021-01-08 Thread Nick Desaulniers
Via: https://lore.kernel.org/lkml/1610099389-28329-1-git-send-email-pna...@codeaurora.org/ > diff --git a/include/linux/init.h b/include/linux/init.h > index 7b53cb3..617adcf 100644 > --- a/include/linux/init.h > +++ b/include/linux/init.h > @@ -300,6 +300,10 @@ void __init parse_early_options(cha

[PATCH v2 2/3] hv_netvsc: Wait for completion on request SWITCH_DATA_PATH

2021-01-08 Thread Long Li
From: Long Li The completion indicates if NVSP_MSG4_TYPE_SWITCH_DATA_PATH has been processed by the VSP. The traffic is steered to VF or synthetic after we receive this completion. Signed-off-by: Long Li Reported-by: kernel test robot --- Change from v1: Fixed warnings from kernel test robot.

[PATCH v2 3/3] hv_netvsc: Process NETDEV_GOING_DOWN on VF hot remove

2021-01-08 Thread Long Li
From: Long Li On VF hot remove, NETDEV_GOING_DOWN is sent to notify the VF is about to go down. At this time, the VF is still sending/receiving traffic and we request the VSP to switch datapath. On completion, the datapath is switched to synthetic and we can proceed with VF hot remove. Signed-o

[PATCH v2 1/3] hv_netvsc: Check VF datapath when sending traffic to VF

2021-01-08 Thread Long Li
From: Long Li The driver needs to check if the datapath has been switched to VF before sending traffic to VF. Signed-off-by: Long Li Reviewed-by: Haiyang Zhang --- drivers/net/hyperv/netvsc_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/hyperv/netvsc_d

[PATCH v2 0/3] hv_netvsc: Prevent packet loss during VF add/remove

2021-01-08 Thread Long Li
From: Long Li This patch set fixes issues with packet loss on VF add/remove. Long Li (3): hv_netvsc: Check VF datapath when sending traffic to VF hv_netvsc: Wait for completion on request SWITCH_DATA_PATH hv_netvsc: Process NETDEV_GOING_DOWN on VF hot remove drivers/net/hyperv/netvsc.c

[PATCH 12/13] KVM: SVM: Remove an unnecessary prototype declaration of sev_flush_asids()

2021-01-08 Thread Sean Christopherson
Remove the forward declaration of sev_flush_asids(), which is only a few lines above the function itself. No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/svm/sev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev

[PATCH 11/13] KVM: SVM: Drop redundant svm_sev_enabled() helper

2021-01-08 Thread Sean Christopherson
Replace calls to svm_sev_enabled() with direct checks on sev_enabled, or in the case of svm_mem_enc_op, simply drop the call to svm_sev_enabled(). This effectively replaces checks against a valid max_sev_asid with checks against sev_enabled. sev_enabled is forced off by sev_hardware_setup() if max

[PATCH 10/13] KVM: SVM: Move SEV VMCB tracking allocation to sev.c

2021-01-08 Thread Sean Christopherson
Move the allocation of the SEV VMCB array to sev.c to help pave the way toward encapsulating SEV enabling wholly within sev.c. No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/svm/sev.c | 13 + arch/x86/kvm/svm/svm.c | 17 - arch/x86

  1   2   3   4   5   6   7   8   9   10   >