Re: [PATCH] drm/fb-helper: only unmap if buffer not null

2021-03-01 Thread Tong Zhang
Hi Tomas, I think the issue could be possibly caused by the following, Please correct me if I'm wrong. drm_fb_helper_single_fb_probe() can fail with "Cannot find any crtc or sizes" which will cause fb_helper->funcs->fb_probe not being called, thus fb_helper->buffer remains NULL -- Since there

Re: [PATCH] PATCH Documentation translations:translate sound/hd-audio/controls to chinese

2021-03-01 Thread huangjianghui
On Mon, Mar 01, 2021 at 02:16:36PM -0700, Jonathan Corbet wrote: > > So you have sent me two versions of this in the last 24 hours with no > indication of what has changed or why I should prefer one over the > other. Always include that information (under the "---" line) when you > send updated

Re: Question about the "EXPERIMENTAL" tag for dax in XFS

2021-03-01 Thread Darrick J. Wong
On Mon, Mar 01, 2021 at 12:55:53PM -0800, Dan Williams wrote: > On Sun, Feb 28, 2021 at 2:39 PM Dave Chinner wrote: > > > > On Sat, Feb 27, 2021 at 03:40:24PM -0800, Dan Williams wrote: > > > On Sat, Feb 27, 2021 at 2:36 PM Dave Chinner wrote: > > > > On Fri, Feb 26, 2021 at 02:41:34PM -0800,

Re: [x86, build] 6dafca9780: WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code

2021-03-01 Thread Sami Tolvanen
On Mon, Mar 1, 2021 at 6:47 PM Steven Rostedt wrote: > > On Mon, 1 Mar 2021 18:40:32 -0800 > Sami Tolvanen wrote: > > > On Mon, Mar 01, 2021 at 08:15:26PM -0500, Steven Rostedt wrote: > > > On Mon, 1 Mar 2021 16:03:51 -0800 > > > Sami Tolvanen wrote: > > > > > > > > > ret =

[PATCH v9 2/2] ufs: sysfs: Resume the proper scsi device

2021-03-01 Thread Asutosh Das
Resumes the actual scsi device the unit descriptor of which is being accessed instead of the hba alone. Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufs-sysfs.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/ufs/ufs-sysfs.c

[PATCH v9 1/2] scsi: ufs: Enable power management for wlun

2021-03-01 Thread Asutosh Das
During runtime-suspend of ufs host, the scsi devices are already suspended and so are the queues associated with them. But the ufs host sends SSU to wlun during its runtime-suspend. During the process blk_queue_enter checks if the queue is not in suspended state. If so, it waits for the queue to

Re: [External] Re: [PATCH 2/5] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page

2021-03-01 Thread Muchun Song
On Tue, Mar 2, 2021 at 2:11 AM Shakeel Butt wrote: > > On Sun, Feb 28, 2021 at 10:25 PM Muchun Song wrote: > > > > We want to reuse the obj_cgroup APIs to reparent the kmem pages when > > the memcg offlined. If we do this, we should store an object cgroup > > pointer to page->memcg_data for the

Re: [PATCH V8 3/4] of: unittest: Create overlay_common.dtsi and testcases_common.dtsi

2021-03-01 Thread Frank Rowand
Hi Viresh, I commented on this patch in v7 after you had created v8. You acknowledged that comment and said that it will be corrected. -Frank On 2/12/21 5:18 AM, Viresh Kumar wrote: > In order to build-test the same unit-test files using fdtoverlay tool, > move the device nodes from the

[RESEND][PATCH v2 1/2] dma-buf: dma-heap: Provide accessor to get heap name

2021-03-01 Thread John Stultz
It can be useful to access the name for the heap, so provide an accessor to do so. Cc: Daniel Vetter Cc: Sumit Semwal Cc: Liam Mark Cc: Chris Goldsworthy Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: Ørjan Eide Cc:

[RESEND][PATCH v2 2/2] dma-buf: heaps: Fix the name used when exporting dmabufs to be the actual heap name

2021-03-01 Thread John Stultz
By default dma_buf_export() sets the exporter name to be KBUILD_MODNAME. Unfortunately this may not be identical to the string used as the heap name (ie: "system" vs "system_heap"). This can cause some minor confusion with tooling, and there is the future potential where multiple heap types may

Re: [PATCH V8 0/4] dt: Add fdtoverlay rule and statically build unittest

2021-03-01 Thread Frank Rowand
Hi Viresh, On 3/1/21 12:56 AM, Viresh Kumar wrote: > On 12-02-21, 16:48, Viresh Kumar wrote: >> Hi, >> >> This patchset adds a generic rule for applying overlays using fdtoverlay >> tool and then updates unittests to get built statically using the same. >> >> V7->V8: >> - Patch 1 is new. >> -

Re: Why do kprobes and uprobes singlestep?

2021-03-01 Thread Andy Lutomirski
On Mon, Mar 1, 2021 at 6:22 PM Masami Hiramatsu wrote: > > Hi Oleg and Andy, > > On Mon, 1 Mar 2021 17:51:31 +0100 > Oleg Nesterov wrote: > > > Hi Andy, > > > > sorry for delay. > > > > On 02/23, Andy Lutomirski wrote: > > > > > > A while back, I let myself be convinced that kprobes genuinely

[PATCH v2] can: c_can: move runtime PM enable/disable to c_can_platform

2021-03-01 Thread Tong Zhang
Currently doing modprobe c_can_pci will make kernel complain "Unbalanced pm_runtime_enable!", this is caused by pm_runtime_enable() called before pm is initialized. This fix is similar to 227619c3ff7c, move those pm_enable/disable code to c_can_platform. Signed-off-by: Tong Zhang ---

Re: [PATCH] can: c_can: move runtime PM enable/disable to c_can_platform

2021-03-01 Thread Tong Zhang
On Mon, Mar 1, 2021 at 2:49 PM Marc Kleine-Budde wrote: > > On 28.02.2021 23:15:48, Tong Zhang wrote: > > Currently doing modprobe c_can_pci will make kernel complain > > "Unbalanced pm_runtime_enable!", this is caused by pm_runtime_enable() > > called before pm is initialized in

[PATCH] clocksource: don't run watchdog forever

2021-03-01 Thread Feng Tang
clocksource watchdog runs every 500ms, which creates some OS noise. As the clocksource wreckage (especially for those that has per-cpu reading hook) usually happens shortly after CPU is brought up or after system resumes from sleep state, so add a time limit for clocksource watchdog to only run

Re: [PATCH v2 1/4] KVM: vmx/pmu: Add MSR_ARCH_LBR_DEPTH emulation for Arch LBR

2021-03-01 Thread Like Xu
On 2021/3/2 6:34, Sean Christopherson wrote: On Wed, Feb 03, 2021, Like Xu wrote: @@ -348,10 +352,26 @@ static bool intel_pmu_handle_lbr_msrs_access(struct kvm_vcpu *vcpu, return true; } +/* + * Check if the requested depth values is supported + * based on the bits [0:7] of the

Re: [PATCH] dma-buf: heaps: Set VM_PFNMAP in mmap for system and cma heaps

2021-03-01 Thread John Stultz
On Sat, Feb 27, 2021 at 1:44 AM Christoph Hellwig wrote: > > On Fri, Feb 26, 2021 at 08:36:55AM +0100, Daniel Vetter wrote: > > Also given that both deal with struct page there's a ton of divergence > > between these two that doesn't make much sense. Maybe could even share > > the code fully,

[PATCH] x86/tsc: mark tsc reliable for qualified platforms

2021-03-01 Thread Feng Tang
There are cases that tsc clocksource are wrongly judged as unstable by clocksource watchdogs like hpet, acpi_pm or 'refined-jiffies'. While there is hardly a general reliable way to check the validity of a watchdog, and to protect the innocent tsc, Thomas Gleixner proposed [1]: "I'm inclined to

Re: [External] Re: [PATCH 0/5] Use obj_cgroup APIs to change kmem pages

2021-03-01 Thread Muchun Song
On Tue, Mar 2, 2021 at 9:12 AM Roman Gushchin wrote: > > Hi Muchun! > > On Mon, Mar 01, 2021 at 02:22:22PM +0800, Muchun Song wrote: > > Since Roman series "The new cgroup slab memory controller" applied. All > > slab objects are changed via the new APIs of obj_cgroup. This new APIs > > introduce

Re: [PATCH 5/7] printk: Make %pS and friends print module build ID

2021-03-01 Thread Steven Rostedt
On Mon, 1 Mar 2021 09:47:47 -0800 Stephen Boyd wrote: > The %pS printk format (among some others) is used to print kernel > addresses symbolically. When the kernel prints an address inside of a > module, the kernel prints the addresses' symbol name along with the > module's name that contains

Re: [x86, build] 6dafca9780: WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code

2021-03-01 Thread Steven Rostedt
On Mon, 1 Mar 2021 18:40:32 -0800 Sami Tolvanen wrote: > On Mon, Mar 01, 2021 at 08:15:26PM -0500, Steven Rostedt wrote: > > On Mon, 1 Mar 2021 16:03:51 -0800 > > Sami Tolvanen wrote: > > > > > > > ret = ftrace_verify_code(rec->ip, old); > > > > + > > > > + if

RE: [PATCH] exfat: fix erroneous discard when clear cluster bit

2021-03-01 Thread Sungjong Seo
> Subject: [PATCH] exfat: fix erroneous discard when clear cluster bit > > If mounted with discard option, exFAT issues discard command when clear > cluster bit to remove file. But the input parameter of cluster-to-sector > calculation is abnormally adds reserved cluster size which is 2, leading

Re: Question about the "EXPERIMENTAL" tag for dax in XFS

2021-03-01 Thread Dave Chinner
On Mon, Mar 01, 2021 at 04:32:36PM -0800, Dan Williams wrote: > On Mon, Mar 1, 2021 at 2:47 PM Dave Chinner wrote: > > Now we have the filesytem people providing a mechanism for the pmem > > devices to tell the filesystems about physical device failures so > > they can handle such failures

Re: [x86, build] 6dafca9780: WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code

2021-03-01 Thread Sami Tolvanen
On Mon, Mar 01, 2021 at 08:15:26PM -0500, Steven Rostedt wrote: > On Mon, 1 Mar 2021 16:03:51 -0800 > Sami Tolvanen wrote: > > > > > ret = ftrace_verify_code(rec->ip, old); > > > + > > > + if (__is_defined(CC_USING_NOP_MCOUNT) && ret && old_nop) { > > > +

Re: [PATCH 1/2] MIPS: Remove KVM_GUEST support

2021-03-01 Thread Jiaxun Yang
在 2021/3/1 下午11:29, Thomas Bogendoerfer 写道: KVM_GUEST is broken and unmaintained, so let's remove it. Signed-off-by: Thomas Bogendoerfer Reviewed-by: Jiaxun Yang I'll prepare a patch for KVM side removal. Thanks. - Jiaxun

[PATCH] x86/sgx: Fix a resource leak in sgx_init()

2021-03-01 Thread Jarkko Sakkinen
If sgx_page_cache_init() fails in the middle, a trivial return statement causes unused memory and virtual address space reserved for the EPC section, not freed. Fix this by using the same rollback, as when sgx_page_reclaimer_init() fails. Cc: sta...@vger.kernel.org # 5.11 Fixes: e7e0545299d8

[tip:master] BUILD SUCCESS 87246c319da5db38d74d239c3cffce49942dd5a8

2021-03-01 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210301 i386 randconfig-a003-20210301 i386 randconfig-a002-20210301 i386 randconfig

Re: [PATCH 4.19 000/247] 4.19.178-rc1 review

2021-03-01 Thread Hanjun Guo
On 2021/3/2 0:10, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.178 release. There are 247 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[PATCH] perf diff: Don't crash on freeing errno-session

2021-03-01 Thread Dmitry Safonov
__cmd_diff() sets result of perf_session__new() to d->session. In case of failure, it's errno and perf-diff may crash with: failed to open perf.data: Permission denied Failed to open perf.data Segmentation fault (core dumped) >From the coredump: 0 0x5569a62b5955 in auxtrace__free

[tip:locking/core] BUILD SUCCESS 6bf3195fdbab92b57f3167101a0b651b93dbeae7

2021-03-01 Thread kernel test robot
powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210301 i386 randconfig-a003-20210301 i386 randconfig-a002-20210301 i386

Invitation to Bid

2021-03-01 Thread pfizer
Good Day Sir/Ms, We are please to invite you or your company to quote the following item listed below: Product/Model No: AU829L Altitude and Level Control Valves MPodel No: AU829L Qty. 30 units Compulsory, Kindly send your quotation to: E-mail:bour...@aol.com for immediate approval. Kind

RE: [PATCH net v4 1/1] can: can_skb_set_owner(): fix ref counting if socket was closed before setting skb ownership

2021-03-01 Thread Joakim Zhang
> -Original Message- > From: Joakim Zhang > Sent: 2021年3月1日 18:57 > To: Oleksij Rempel ; m...@pengutronix.de; David S. > Miller ; Jakub Kicinski ; Oliver > Hartkopp ; Robin van der Gracht > > Cc: Andre Naujoks ; Eric Dumazet > ; ker...@pengutronix.de; linux-...@vger.kernel.org; >

Re: Why do kprobes and uprobes singlestep?

2021-03-01 Thread Masami Hiramatsu
Hi Oleg and Andy, On Mon, 1 Mar 2021 17:51:31 +0100 Oleg Nesterov wrote: > Hi Andy, > > sorry for delay. > > On 02/23, Andy Lutomirski wrote: > > > > A while back, I let myself be convinced that kprobes genuinely need to > > single-step the kernel on occasion, and I decided that this sucked

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-01 Thread Jie Deng
On 2021/3/1 19:54, Viresh Kumar wrote: On 01-03-21, 14:41, Jie Deng wrote: +/** + * struct virtio_i2c_req - the virtio I2C request structure + * @out_hdr: the OUT header of the virtio I2C message + * @write_buf: contains one I2C segment being written to the device + * @read_buf: contains one

[PATCH] powercap: Add Hygon Fam18h RAPL support

2021-03-01 Thread Pu Wen
Enable Hygon Fam18h RAPL support for the power capping framework. Signed-off-by: Pu Wen --- drivers/powercap/intel_rapl_common.c | 1 + drivers/powercap/intel_rapl_msr.c| 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/powercap/intel_rapl_common.c

Re: [RFC PATCH 3/5] ASoC: audio-graph-card: Add bindings for sysclk and pll

2021-03-01 Thread Rob Herring
On Thu, Feb 25, 2021 at 12:06 PM Sameer Pujar wrote: > > ASoC core provides callbacks snd_soc_dai_set_sysclk() and > snd_soc_dai_set_pll() for system clock (sysclk) and pll configurations > respectively. Add bindings for flexible sysclk or pll configurations > which can be driven from CPU/Codec

Re: [PATCH v1 5/7] net: ipa: Add support for IPA on MSM8998

2021-03-01 Thread Alex Elder
On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > MSM8998 features IPA v3.1 (GSI v1.0): add the required configuration > data for it. > > Signed-off-by: AngeloGioacchino Del Regno > As of today, I have not looked at this file in detail. You probably see that the intent is to have this

Re: [PATCH v1 6/7] dt-bindings: net: qcom-ipa: Document qcom,sc7180-ipa compatible

2021-03-01 Thread Alex Elder
On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > The driver supports SC7180, but the binding was not documented. > Just add it. I hadn't noticed that! I'm trying to get through reviewing your series today and this will take another hour or so to go validate to my satisfaction. Would you

Re: [PATCH v1 7/7] dt-bindings: net: qcom-ipa: Document qcom,msm8998-ipa compatible

2021-03-01 Thread Alex Elder
On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > MSM8998 support has been added: document the new compatible. > > Signed-off-by: AngeloGioacchino Del Regno > With the previous patch in place, this becomes almost automatic. But I don't want to claim support for a platform until things

Re: [PATCH v1 0/7] Add support for IPA v3.1, GSI v1.0, MSM8998 IPA

2021-03-01 Thread Alex Elder
On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > Hey all! > > This time around I thought that it would be nice to get some modem > action going on. We have it, it's working (ish), so just.. why not. > > This series adds support for IPA v3.1 (featuring GSI v1.0) and also > takes account

Re: [PATCH v1 3/7] net: ipa: gsi: Avoid some writes during irq setup for older IPA

2021-03-01 Thread Alex Elder
On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > On some IPA versions (v3.1 and older), writing to registers > GSI_INTER_EE_SRC_CH_IRQ_OFFSET and GSI_INTER_EE_SRC_EV_CH_IRQ_OFFSET > will generate a fault and the SoC will lockup. > > Avoid clearing CH and EV_CH interrupts on GSI probe to

Re: [PATCH v1 4/7] net: ipa: gsi: Use right masks for GSI v1.0 channels hw param

2021-03-01 Thread Alex Elder
On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > In GSI v1.0 the register GSI_HW_PARAM_2_OFFSET has different layout > so the number of channels and events per EE are, of course, laid out > in 8 bits each (0-7, 8-15 respectively). > > Signed-off-by: AngeloGioacchino Del Regno > > --- >

Re: linux-next: build failure after merge of the powerpc-fixes tree

2021-03-01 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > After merging the powerpc-fixes tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/net/ethernet/ibm/ibmvnic.c:5399:13: error: conflicting types for > 'ibmvnic_remove' > 5399 | static void ibmvnic_remove(struct vio_dev

Re: [RFC PATCH] powercap: Add Hygon Fam18h RAPL support

2021-03-01 Thread Wen Pu
On 2021/3/1 22:20, Rafael J. Wysocki wrote: > On Mon, Mar 1, 2021 at 3:18 AM Wen Pu wrote: >> >> On 2021/2/28 23:42, Srinivas Pandruvada wrote: >>> On Thu, 2021-02-25 at 21:01 +0800, Pu Wen wrote: Enable Hygon Fam18h RAPL support for the power capping framework. >>> If this patch is

Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-01 Thread Namhyung Kim
On Tue, Mar 2, 2021 at 4:19 AM Jiri Olsa wrote: > > On Tue, Mar 02, 2021 at 01:24:02AM +0800, Changbin Du wrote: > > This does follow two changes: > > 1) Select appropriate unit between K/M/G. > > 2) Use 'cpu-sec' instead of 'sec' to state this is not the wall-time. > > > > $ sudo ./perf stat

Re: [PATCH v1 2/7] net: ipa: endpoint: Don't read unexistant register on IPAv3.1

2021-03-01 Thread Alex Elder
On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > On IPAv3.1 there is no such FLAVOR_0 register so it is impossible > to read tx/rx channel masks and we have to rely on the correctness > on the provided configuration. This works, and is simple. I think I would rather populate the

Re: [PATCH v1 1/7] net: ipa: Add support for IPA v3.1 with GSI v1.0

2021-03-01 Thread Alex Elder
On 2/11/21 11:50 AM, AngeloGioacchino Del Regno wrote: > In preparation for adding support for the MSM8998 SoC's IPA, > add the necessary bits for IPA version 3.1 featuring GSI 1.0, > found on at least MSM8998. > > Signed-off-by: AngeloGioacchino Del Regno > Overall, this looks good. As I

[PATCH] x86/cpu/hygon: Set __max_die_per_package on Hygon

2021-03-01 Thread Pu Wen
Set the maximum DIE per package variable on Hygon using the nodes_per_socket value in order to do per-DIE manipulations by driver such as powercap. Signed-off-by: Pu Wen --- arch/x86/kernel/cpu/hygon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] mm/memcg: set memcg when split pages

2021-03-01 Thread Zi Yan
On 1 Mar 2021, at 20:34, Zhou Guanghui wrote: > When split page, the memory cgroup info recorded in first page is > not copied to tail pages. In this case, when the tail pages are > freed, the uncharge operation is not performed. As a result, the > usage of this memcg keeps increasing, and the

Re: [PATCH v3] ath10k: skip the wait for completion to recovery in shutdown path

2021-03-01 Thread Abhishek Kumar
This patch seems to address the comments on v2. Overall this patch LGTM. Reviewed-by: Abhishek Kumar On Tue, Feb 23, 2021 at 6:29 AM Youghandhar Chintala wrote: > > Currently in the shutdown callback we wait for recovery to complete > before freeing up the resources. This results in additional

Re: [PATCH 04/11] perf test: Fix cpu and thread map leaks in sw_clock_freq test

2021-03-01 Thread Namhyung Kim
Hi Jiri, On Tue, Mar 2, 2021 at 2:24 AM Jiri Olsa wrote: > > On Mon, Mar 01, 2021 at 11:04:02PM +0900, Namhyung Kim wrote: > > The evlist has the maps with its own refcounts so we don't need to set > > the pointers to NULL. Otherwise following error was reported by Asan. > > > > Also change the

drivers/soc/samsung/s3c-pm-debug.c:30:2: warning: function 's3c_pm_dbg' might be a candidate for 'gnu_printf' format attribute

2021-03-01 Thread kernel test robot
Hi Arnd, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7a7fd0de4a9804299793e564a555a49c1fc924cb commit: 17132da70eb766785b9b4677bacce18cc11ea442 ARM: samsung: move pm check code to drivers/soc date: 6 months

Re: [PATCH 01/13] rcu/nocb: Fix potential missed nocb_timer rearm

2021-03-01 Thread Paul E. McKenney
On Wed, Feb 24, 2021 at 11:06:06PM +0100, Frederic Weisbecker wrote: > On Wed, Feb 24, 2021 at 10:37:09AM -0800, Paul E. McKenney wrote: > > On Tue, Feb 23, 2021 at 01:09:59AM +0100, Frederic Weisbecker wrote: > > > Two situations can cause a missed nocb timer rearm: > > > > > > 1) rdp(CPU A)

RE: [PATCH v2 10/10] clocksource/drivers/hyper-v: Move handling of STIMER0 interrupts

2021-03-01 Thread Michael Kelley
From: Daniel Lezcano Sent: Monday, March 1, 2021 10:45 AM > > On 01/03/2021 02:15, Michael Kelley wrote: > > STIMER0 interrupts are most naturally modeled as per-cpu IRQs. But > > because x86/x64 doesn't have per-cpu IRQs, the core STIMER0 interrupt > > handling machinery is done in code under

RE: [PATCH v2 08/10] clocksource/drivers/hyper-v: Handle sched_clock differences inline

2021-03-01 Thread Michael Kelley
From: Daniel Lezcano Sent: Monday, March 1, 2021 6:25 AM > > On 01/03/2021 02:15, Michael Kelley wrote: > > While the Hyper-V Reference TSC code is architecture neutral, the > > pv_ops.time.sched_clock() function is implemented for x86/x64, but not > > for ARM64. Current code calls a utility

Re: [PATCH] e1000e: use proper #include guard name in hw.h

2021-03-01 Thread Nguyen, Anthony L
On Sat, 2021-02-27 at 10:58 +0100, Greg Kroah-Hartman wrote: > The include guard for the e1000e and e1000 hw.h files are the same, > so > add the proper "E" term to the hw.h file for the e1000e driver. There's a patch in process that addresses this issue [1]. > This resolves some static analyzer

Re: [PATCH v4 05/14] drm/bridge: imx: Add i.MX8qm/qxp pixel combiner support

2021-03-01 Thread Liu Ying
On Mon, 2021-03-01 at 11:56 +0100, Robert Foss wrote: > On Mon, 1 Mar 2021 at 10:07, Liu Ying wrote: > > Hi Robert, > > > > On Fri, 2021-02-26 at 14:07 +0100, Robert Foss wrote: > > > Hey Liu, > > > > > > With the below nit straightened out, feel free to add my r-b. > > > > > > Reviewed-by:

Re: Why do kprobes and uprobes singlestep?

2021-03-01 Thread Andy Lutomirski
On Mon, Mar 1, 2021 at 8:51 AM Oleg Nesterov wrote: > > Hi Andy, > > sorry for delay. > > On 02/23, Andy Lutomirski wrote: > > > > A while back, I let myself be convinced that kprobes genuinely need to > > single-step the kernel on occasion, and I decided that this sucked but > > I could live

Re: 5.12-rc1 regression: freezing iou-mgr/wrk failed

2021-03-01 Thread Jens Axboe
On 3/1/21 6:25 PM, Jens Axboe wrote: > On 3/1/21 6:11 PM, Jens Axboe wrote: >> On 3/1/21 5:57 PM, Alex Xu (Hello71) wrote: >>> Hi, >>> >>> On Linux 5.12-rc1, I am unable to suspend to RAM. The system freezes for >>> about 40 seconds and then continues operation. The following messages >>> are

[PATCH] mm/memcg: set memcg when split pages

2021-03-01 Thread Zhou Guanghui
When split page, the memory cgroup info recorded in first page is not copied to tail pages. In this case, when the tail pages are freed, the uncharge operation is not performed. As a result, the usage of this memcg keeps increasing, and the OOM may occur. So, the copying of first page's memory

RE: [PATCH v2 07/10] clocksource/drivers/hyper-v: Handle vDSO differences inline

2021-03-01 Thread Michael Kelley
From: Daniel Lezcano Sent: Monday, March 1, 2021 4:22 AM > > On 01/03/2021 02:15, Michael Kelley wrote: > > While the driver for the Hyper-V Reference TSC and STIMERs is architecture > > neutral, vDSO is implemented for x86/x64, but not for ARM64. Current code > > calls into utility functions

Re: 5.12-rc1 regression: freezing iou-mgr/wrk failed

2021-03-01 Thread Jens Axboe
On 3/1/21 6:11 PM, Jens Axboe wrote: > On 3/1/21 5:57 PM, Alex Xu (Hello71) wrote: >> Hi, >> >> On Linux 5.12-rc1, I am unable to suspend to RAM. The system freezes for >> about 40 seconds and then continues operation. The following messages >> are printed to the kernel log: >> >> [ 240.650300]

Re: [PATCH 5/5] mm: memcontrol: use object cgroup for remote memory cgroup charging

2021-03-01 Thread Roman Gushchin
On Mon, Mar 01, 2021 at 02:22:27PM +0800, Muchun Song wrote: > We spent a lot of energy to make slab accounting do not hold a refcount > to memory cgroup, so the dying cgroup can be freed as soon as possible > on cgroup offlined. > > But some users of remote memory cgroup charging (e.g. bpf and

Re: [PATCH 4.4.y] arm: kprobes: Allow to handle reentered kprobe on single-stepping

2021-03-01 Thread Shaobo Huang
On March 1, 2021 at 11:30 AM, Greg KH wrote: > On Mon, Feb 27, 2021 at 05:17:01PM +0800, huangshaobo wrote: > > From: Masami Hiramatsu > > > > commit f3fbd7ec62dec1528fb8044034e2885f2b257941 upstream > > > > This is arm port of commit 6a5022a56ac3 ("kprobes/x86: Allow to handle > > reentered

Re: [PATCH] mm, kasan: don't poison boot memory

2021-03-01 Thread George Kennedy
On 3/1/2021 9:29 AM, George Kennedy wrote: On 2/28/2021 1:08 PM, Mike Rapoport wrote: On Fri, Feb 26, 2021 at 11:16:06AM -0500, George Kennedy wrote: On 2/26/2021 6:17 AM, Mike Rapoport wrote: Hi George, On Thu, Feb 25, 2021 at 08:19:18PM -0500, George Kennedy wrote: Not sure if it's

[PATCH] gpio: omap: Honor "aliases" node

2021-03-01 Thread Alexander Sverdlin
Currently the naming of the GPIO chips depends on their order in the DT, but also on the kernel version (I've noticed the change from v5.10.x to v5.11). Honor the persistent enumeration in the "aliases" node like other GPIO drivers do. Signed-off-by: Alexander Sverdlin --- Yes, I noticed

Re: [PATCH v8 2/2] counter: add IRQ or GPIO based counter

2021-03-01 Thread William Breathitt Gray
On Mon, Mar 01, 2021 at 09:04:01AM +0100, Oleksij Rempel wrote: > Add simple IRQ or GPIO base counter. This device is used to measure > rotation speed of some agricultural devices, so no high frequency on the > counter pin is expected. > > The maximal measurement frequency depends on the CPU and

[PATCH] iwlwifi: fix ARCH=i386 compilation warnings

2021-03-01 Thread Pierre-Louis Bossart
An unsigned long variable should rely on '%lu' format strings, not '%zd' Fixes: a1a6a4cf49ece ("iwlwifi: pnvm: implement reading PNVM from UEFI") Signed-off-by: Pierre-Louis Bossart --- warnings found with v5.12-rc1 and next-20210301 drivers/net/wireless/intel/iwlwifi/fw/pnvm.c |

Re: [PATCH 4/5] mm: memcontrol: move remote memcg charging APIs to CONFIG_MEMCG_KMEM

2021-03-01 Thread Roman Gushchin
On Mon, Mar 01, 2021 at 02:22:26PM +0800, Muchun Song wrote: > The remote memcg charing APIs is a mechanism to charge kernel memory > to a given memcg. So we can move the infrastructure to the scope of > the CONFIG_MEMCG_KMEM. This is not a good idea, because there is nothing kmem-specific in the

Re: [x86, build] 6dafca9780: WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code

2021-03-01 Thread Steven Rostedt
On Mon, 1 Mar 2021 16:03:51 -0800 Sami Tolvanen wrote: > > > ret = ftrace_verify_code(rec->ip, old); > > + > > + if (__is_defined(CC_USING_NOP_MCOUNT) && ret && old_nop) { > > + /* Compiler could have put in P6_NOP5 */ > > +

Re: possible deadlock in sk_clone_lock

2021-03-01 Thread Mike Kravetz
On 3/1/21 9:23 AM, Michal Hocko wrote: > On Mon 01-03-21 08:39:22, Shakeel Butt wrote: >> On Mon, Mar 1, 2021 at 7:57 AM Michal Hocko wrote: > [...] >>> Then how come this can ever be a problem? in_task() should exclude soft >>> irq context unless I am mistaken. >>> >> >> If I take the following

Re: [PATCH v8 1/2] dt-bindings: counter: add interrupt-counter binding

2021-03-01 Thread William Breathitt Gray
On Mon, Mar 01, 2021 at 09:04:00AM +0100, Oleksij Rempel wrote: > Add binding for the interrupt counter node > > Signed-off-by: Oleksij Rempel > Reviewed-by: Linus Walleij Acked-by: William Breathitt Gray > --- > .../bindings/counter/interrupt-counter.yaml | 62 +++ > 1

Re: [PATCH 0/5] Use obj_cgroup APIs to change kmem pages

2021-03-01 Thread Roman Gushchin
Hi Muchun! On Mon, Mar 01, 2021 at 02:22:22PM +0800, Muchun Song wrote: > Since Roman series "The new cgroup slab memory controller" applied. All > slab objects are changed via the new APIs of obj_cgroup. This new APIs > introduce a struct obj_cgroup instead of using struct mem_cgroup directly >

Re: 5.12-rc1 regression: freezing iou-mgr/wrk failed

2021-03-01 Thread Jens Axboe
On 3/1/21 5:57 PM, Alex Xu (Hello71) wrote: > Hi, > > On Linux 5.12-rc1, I am unable to suspend to RAM. The system freezes for > about 40 seconds and then continues operation. The following messages > are printed to the kernel log: > > [ 240.650300] PM: suspend entry (deep) > [ 240.650748]

linux-next: Tree for Mar 2

2021-03-01 Thread Stephen Rothwell
Hi all, Changes since 20210301: The powerpc-fixes tree gained a build failure for which I applied a patch. Non-merge commits (relative to Linus' tree): 745 769 files changed, 20792 insertions(+), 8201 deletions(-) I

[tip:x86/seves] BUILD SUCCESS bb8dc26937d51b3421b26d9d91cdad3484c34b7e

2021-03-01 Thread kernel test robot
allmodconfig powerpc allnoconfig i386 randconfig-a005-20210301 i386 randconfig-a003-20210301 i386 randconfig-a002-20210301 i386 randconfig-a004-20210301 i386 randconfig-a006-20210301 i386

[PATCH v9 9/9] certs: Add support for using elliptic curve keys for signing modules

2021-03-01 Thread yumeng
在 2021/3/1 21:11, Mimi Zohar 写道: On Sat, 2021-02-27 at 11:35 +0800, yumeng wrote: 在 2021/2/26 0:08, Stefan Berger 写道: From: Stefan Berger diff --git a/certs/Makefile b/certs/Makefile index 3fe6b73786fa..c487d7021c54 100644 --- a/certs/Makefile +++ b/certs/Makefile @@ -69,6 +69,18 @@

Re: [PATCH] Input: elan_i2c - Reduce the resume time for new dev ices

2021-03-01 Thread jingle.wu
HI Dmitry: So data->ops->initialize(client) essentially performs reset of the controller (we may want to rename it even) and as far as I understand you would want to avoid resetting the controller on newer devices, right? -> YES My question is how behavior of older devices differ from the new

Re: [PATCH] KVM: nSVM: Optimize L12 to L2 vmcb.save copies

2021-03-01 Thread Sean Christopherson
On Mon, Mar 01, 2021, Cathy Avery wrote: > kvm_set_rflags(>vcpu, vmcb12->save.rflags | X86_EFLAGS_FIXED); > svm_set_efer(>vcpu, vmcb12->save.efer); > svm_set_cr0(>vcpu, vmcb12->save.cr0); > svm_set_cr4(>vcpu, vmcb12->save.cr4); Why not utilize VMCB_CR? > -

Re: [PATCH v5 0/5] mm/hugetlb: Early cow on fork, and a few cleanups

2021-03-01 Thread Zhang, Wei
Yes, such user includes libfabric (https://ofiwg.github.io/libfabric/) . which uses hugetlb pages. On 3/1/21, 4:30 PM, "Jason Gunthorpe" wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and

5.12-rc1 regression: freezing iou-mgr/wrk failed

2021-03-01 Thread Alex Xu (Hello71)
Hi, On Linux 5.12-rc1, I am unable to suspend to RAM. The system freezes for about 40 seconds and then continues operation. The following messages are printed to the kernel log: [ 240.650300] PM: suspend entry (deep) [ 240.650748] Filesystems sync: 0.000 seconds [ 240.725605] Freezing user

Re: [PATCH 21/25] KVM: VMX: Add SGX ENCLS[ECREATE] handler to enforce CPUID restrictions

2021-03-01 Thread Kai Huang
On Mon, 1 Mar 2021 09:20:15 -0800 Sean Christopherson wrote: > On Mon, Mar 01, 2021, Kai Huang wrote: > > +static int handle_encls_ecreate(struct kvm_vcpu *vcpu) > > +{ > > + struct kvm_cpuid_entry2 *sgx_12_0, *sgx_12_1; > > + gva_t pageinfo_gva, secs_gva; > > + gva_t metadata_gva,

Re: [PATCH] w1: ds2708 and ds2781 use the new API kobj_to_dev()

2021-03-01 Thread tiantao (H)
Hi: 在 2021/3/1 21:09, Greg KH 写道: On Mon, Mar 01, 2021 at 08:58:55PM +0800, Tian Tao wrote: fix the below warnning: /drivers/w1/slaves/w1_ds2780.c:93:60-61: WARNING opportunity for kobj_to_dev() What creates that warning? This is reported by coccicheck. Signed-off-by: Tian Tao ---

Re: [PATCH v5 05/14] vfio/mdev: idxd: add basic mdev registration and helper functions

2021-03-01 Thread Jason Gunthorpe
On Mon, Mar 01, 2021 at 05:48:00PM -0700, Dave Jiang wrote: > > On 3/1/2021 5:29 PM, Jason Gunthorpe wrote: > > On Mon, Mar 01, 2021 at 05:23:47PM -0700, Dave Jiang wrote: > > > So after looking at the code in vfio_pci_intrs.c, I agree that the > > > set_irqs > > > code between VFIO_PCI and this

Re: [PATCH 19/25] KVM: VMX: Add basic handling of VM-Exit from SGX enclave

2021-03-01 Thread Kai Huang
On Mon, 1 Mar 2021 08:52:13 -0800 Sean Christopherson wrote: > On Mon, Mar 01, 2021, Kai Huang wrote: > > diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c > > index 50810d471462..df8e338267aa 100644 > > --- a/arch/x86/kvm/vmx/vmx.c > > +++ b/arch/x86/kvm/vmx/vmx.c > > @@ -1570,12

[PATCH] v4l-compliance: re-introduce NON_COHERENT and cache hints tests

2021-03-01 Thread Sergey Senozhatsky
This returns back non-coherent (previously known as NON_COHERENT) memory flag and buffer cache management hints testing (for VB2_MEMORY_MMAP buffers). Signed-off-by: Sergey Senozhatsky --- utils/common/cv4l-helpers.h | 8 +-- utils/common/v4l-helpers.h | 8 ++-

Re: [PATCH] v4l-compliance: re-introduce NON_COHERENT and cache hints tests

2021-03-01 Thread Sergey Senozhatsky
On (21/03/02 09:49), Sergey Senozhatsky wrote: > This returns back non-coherent (previously known as NON_COHERENT) ^^^ NON_CONSISTENT... > memory flag and buffer cache management hints

[PATCH 8/8] videobuf2: handle non-contiguous DMA allocations

2021-03-01 Thread Sergey Senozhatsky
This adds support for new noncontiguous DMA API, which requires allocators to have two execution branches: one for the current API, and one for the new one. Signed-off-by: Sergey Senozhatsky [hch: untested conversion to the ne API] Signed-off-by: Christoph Hellwig ---

Re: [PATCH v5 05/14] vfio/mdev: idxd: add basic mdev registration and helper functions

2021-03-01 Thread Dave Jiang
On 3/1/2021 5:29 PM, Jason Gunthorpe wrote: On Mon, Mar 01, 2021 at 05:23:47PM -0700, Dave Jiang wrote: So after looking at the code in vfio_pci_intrs.c, I agree that the set_irqs code between VFIO_PCI and this driver can be made in common. Given that Alex doesn't want a vfio_pci device

[PATCH 7/8] videobuf2: handle V4L2_FLAG_MEMORY_NON_COHERENT flag

2021-03-01 Thread Sergey Senozhatsky
This patch lets user-space to request a non-coherent memory allocation during CREATE_BUFS and REQBUFS ioctl calls. = CREATE_BUFS struct v4l2_create_buffers has seven 4-byte reserved areas, so reserved[0] is renamed to ->flags. The struct, thus, now has six reserved 4-byte regions. =

[PATCH 6/8] videobuf2: add queue memory coherency parameter

2021-03-01 Thread Sergey Senozhatsky
Preparations for future V4L2_FLAG_MEMORY_NON_COHERENT support. Extend vb2_core_reqbufs() parameters list to accept requests' ->flags, which will be used for memory coherency configuration. An attempt to allocate a buffer with coherency requirements which don't match queue's consistency model

[PATCH 4/8] videobuf2: move cache_hints handling to allocators

2021-03-01 Thread Sergey Senozhatsky
This moves cache hints handling from videobuf2 core down to allocators level, because allocators do the sync/flush caches eventually and may take better decisions. Besides, allocators already decide whether cache sync/flush should be done or can be skipped. This patch moves the scattered buffer

[PATCH 5/8] videobuf2: add V4L2_FLAG_MEMORY_NON_COHERENT flag

2021-03-01 Thread Sergey Senozhatsky
By setting or clearing V4L2_FLAG_MEMORY_NON_COHERENT flag user-space should be able to hint vb2 that either a non-coherent (if supported) or coherent memory should be used for the buffer allocation. The patch set also adds a corresponding capability flag: fill_buf_caps() reports

[PATCH 3/8] videobuf2: split buffer cache_hints initialisation

2021-03-01 Thread Sergey Senozhatsky
V4L2 is not the perfect place to manage vb2 buffer cache hints. It works for V4L2 users, but there are backends that use vb2 core and don't use V4L2. Factor buffer cache hints init and call it when we allocate vb2 buffer. Signed-off-by: Sergey Senozhatsky ---

[PATCH 2/8] videobuf2: inverse buffer cache_hints flags

2021-03-01 Thread Sergey Senozhatsky
It would be less error prone if the default cache hints value (we kzalloc() structs, so it's zeroed out by default) would be to "always sync/flush" caches. Inverse and rename cache hints flags. Signed-off-by: Sergey Senozhatsky --- .../media/common/videobuf2/videobuf2-core.c | 31

[PATCH 1/8] videobuf2: rework vb2_mem_ops API

2021-03-01 Thread Sergey Senozhatsky
With new DMA API we need an extension of videobuf2 API. Previously, videobuf2 core would set non-coherent DMA bit in vb2 queue dma_attr (if user-space would pass a corresponding memory hint); vb2 core then would pass the vb2 queue dma_attrs to the vb2 allocators. vb2 allocator would use queue's

[PATCH 0/8] videobuf2: support new noncontiguous DMA API

2021-03-01 Thread Sergey Senozhatsky
Hello, RFC The series adds support for new noncontiguous DMA API [0] and adds V4L2_FLAG_MEMORY_NON_COHERENT UAPI. This is similar to previous V4L2_FLAG_MEMORY_NON_CONSISTENT (which was renamed), but the patch set goes a bit further this time and also does some videobuf2 API

Re: [PATCH] c6x: Remove stale symlink 'scripts/dtc/include-prefixes/c6x'

2021-03-01 Thread Rob Herring
On Mon, Mar 1, 2021 at 6:14 PM Victor Erminpour wrote: > > Remove stale symlink 'scripts/dtc/include-prefixes/c6x' > > Signed-off-by: Victor Erminpour > --- > scripts/dtc/include-prefixes/c6x | 1 - > 1 file changed, 1 deletion(-) > delete mode 12 scripts/dtc/include-prefixes/c6x You are

Re: [PATCH 09/25] x86/sgx: Move ENCLS leaf definitions to sgx.h

2021-03-01 Thread Kai Huang
On Mon, 2021-03-01 at 08:25 -0800, Sean Christopherson wrote: > On Mon, Mar 01, 2021, Kai Huang wrote: > > And because they're architectural. > > Heh, this snarky sentence can be dropped, it was a lot more clever when these > were being moved to sgx_arch.h. Sure. Reasonable to me. > > >

Re: [PATCH 12/25] x86/sgx: Add helper to update SGX_LEPUBKEYHASHn MSRs

2021-03-01 Thread Kai Huang
On Mon, 2021-03-01 at 08:57 -0800, Sean Christopherson wrote: > On Mon, Mar 01, 2021, Kai Huang wrote: > > diff --git a/arch/x86/kernel/cpu/sgx/main.c b/arch/x86/kernel/cpu/sgx/main.c > > index 8c922e68274d..276220d0e4b5 100644 > > --- a/arch/x86/kernel/cpu/sgx/main.c > > +++

  1   2   3   4   5   6   7   8   9   10   >