[PATCH v4 3/3] mmc: host: sdhci-sprd: Add software queue support

2019-10-22 Thread Baolin Wang
Add software queue support to improve the performance. Signed-off-by: Baolin Wang --- drivers/mmc/host/Kconfig |1 + drivers/mmc/host/sdhci-sprd.c | 26 ++ 2 files changed, 27 insertions(+) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig

[PATCH v4 3/4] perf/x86/intel: implement LBR callstacks context synchronization

2019-10-22 Thread Alexey Budankov
Implement intel_pmu_lbr_sync_task_ctx() method updating counters of the events that requested LBR callstack data on a sample. The counter can be zero for the case when task context belongs to a thread that has just come from a block on a futex and the context contains saved (lbr_stack_state ==

[PATCH v4 4/4] perf/core,x86: synchronize PMU task contexts on optimized context switches

2019-10-22 Thread Alexey Budankov
Install Intel specific PMU task context synchronization adapter and extend optimized context switch path with PMU specific task context synchronization to fix LBR callstack virtualization on context switches. Signed-off-by: Alexey Budankov --- arch/x86/events/intel/core.c | 7 +++

Re: [PATCH 2/4] Bluetooth: hci_qca: Don't vote for specific voltage

2019-10-22 Thread Balakrishna Godavarthi
Hi Matthias, Bjorn andresson, On 2019-10-21 12:07, Harish Bandi wrote: + Bala On 2019-10-18 23:52, Matthias Kaehlcke wrote: On Thu, Oct 17, 2019 at 10:24:02PM -0700, Bjorn Andersson wrote: Devices with specific voltage requirements should not request voltage from the driver, but instead rely

Re: [PATCH v4 4/5] net: dsa: add support for Atheros AR9331 TAG format

2019-10-22 Thread Randy Dunlap
On 10/21/19 10:57 PM, Oleksij Rempel wrote: > Add support for tag format used in Atheros AR9331 build-in switch. built-in > > Signed-off-by: Oleksij Rempel > --- > include/net/dsa.h| 2 + > net/dsa/Kconfig | 6 +++ >

Re: [PATCH v4 5/5] net: dsa: add support for Atheros AR9331 build-in switch

2019-10-22 Thread Randy Dunlap
On 10/21/19 10:57 PM, Oleksij Rempel wrote: > Provide basic support for Atheros AR9331 build-in switch. So far it built-in > works as port multiplexer without any hardware offloading support. > > Signed-off-by: Oleksij Rempel > --- > diff --git

Re: [PATCH] usb: gadget: udc: Fix assignment of 0/1 to bool variables

2019-10-22 Thread Felipe Balbi
Hi, Michal Simek writes: >> @@ -1952,9 +1952,9 @@ static void xudc_nonctrl_ep_handler(struct xusb_udc >> *udc, u8 epnum, >> ep = >ep[epnum]; >> /* Process the End point interrupts.*/ >> if (intrstatus & (XUSB_STATUS_EP0_BUFF1_COMP_MASK << epnum)) >> -

Re: [PATCH] xfrm : lock input tasklet skb queue

2019-10-22 Thread Herbert Xu
On Mon, Oct 21, 2019 at 09:31:13AM -0700, Tom Rix wrote: > When preempt rt is full, softirq and interrupts run in kthreads. So it > is possible for the tasklet to sleep and for its queue to get modified > while it sleeps. This is ridiculous. The network stack is full of assumptions like this.

Re: [PATCH v2 02/13] arm64: dts: sc7180: Add minimal dts/dtsi files for SC7180 soc

2019-10-22 Thread Rajendra Nayak
Hi Matthias, thanks for the review On 10/22/2019 5:38 AM, Matthias Kaehlcke wrote: Hi Rajendra, I don't have all the hardware documentation for a full review, but find a few comments inline. [].. +#include "sc7180.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. SC7180 IDP"; +

Re: [PATCH v5 0/9] Enable Sub-page Write Protection Support

2019-10-22 Thread Yang Weijiang
On Fri, Oct 11, 2019 at 09:11:54AM -0700, Jim Mattson wrote: > On Fri, Oct 11, 2019 at 12:48 AM Yang Weijiang > wrote: > > > > On Thu, Oct 10, 2019 at 02:42:51PM -0700, Jim Mattson wrote: > > > On Tue, Sep 17, 2019 at 1:52 AM Yang Weijiang > > > wrote: > > > > > > > > EPT-Based Sub-Page write

Re: [PATCH 1/6] arm64: dts: rockchip: Fix rk3399-roc-pc pwm2 pin

2019-10-22 Thread djw
Sorry for the late reply, been stung by the mismatch use of ATF and U-Boot. If you're using U-Boot version before v2019.10, make sure to use the ATF version before this commit: commit 0aad563c74807195cc7fe2208d17e2d889157f1e (HEAD, tag: blacksheep, refs/bisect/bad) Author: Kever Yang

Re: [PATCH v2] ACPI / processor_idle: use ndelay instead of io port access for wait

2019-10-22 Thread Yin Fengwei
On 2019/10/18 下午6:12, Rafael J. Wysocki wrote: On Wednesday, October 16, 2019 7:56:17 AM CEST Yin, Fengwei wrote: Hi David, On 10/15/2019 7:48 PM, David Laight wrote: From: Yin Fengwei Sent: 15 October 2019 09:04 In function acpi_idle_do_entry(), an ioport access is used for dummy wait to

[PATCH v2 2/2] habanalabs: handle large memory on MMU

2019-10-22 Thread Omer Shpigelman
This patch changes the allocation of the host memory pages array to use vmalloc if needed. This in order to support mapping of large memory chunks. Signed-off-by: Omer Shpigelman --- drivers/misc/habanalabs/memory.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git

[PATCH v2 1/2] habanalabs: support kernel memory mapping

2019-10-22 Thread Omer Shpigelman
In contrary to user memory, kernel memory is already pinned and has no vm_area structure. Therefore we need a new code path to map this memory. This is a pre-requisite patch for upstreaming future ASIC support Signed-off-by: Omer Shpigelman --- Changes in v2: - use a boolean parameter to

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-22 Thread Zhu Lingshan
On 10/22/2019 9:32 AM, Jason Wang wrote: On 2019/10/22 上午12:31, Simon Horman wrote: On Mon, Oct 21, 2019 at 05:55:33PM +0800, Zhu, Lingshan wrote: On 10/16/2019 5:53 PM, Simon Horman wrote: Hi Zhu, thanks for your patch. On Wed, Oct 16, 2019 at 09:10:40AM +0800, Zhu Lingshan wrote: ...

Re: [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups

2019-10-22 Thread David Hildenbrand
On 21.10.19 19:23, David Hildenbrand wrote: Two cleanups that popped up while working on (and discussing) virtio-mem: https://lkml.org/lkml/2019/9/19/463 Tested with DIMMs on x86. As discussed with michal in v1, I'll soon look into removing the use of PG_reserved during memory onlining

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-22 Thread Zhu Lingshan
On 10/21/2019 6:19 PM, Jason Wang wrote: On 2019/10/21 下午5:53, Zhu, Lingshan wrote: On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization,

Re: [PATCH] drm/amdgpu: Fix memory leak in amdgpu_fence_emit

2019-10-22 Thread Koenig, Christian
Am 21.10.19 um 20:09 schrieb Navid Emamdoost: > In the impelementation of amdgpu_fence_emit() if dma_fence_wait() fails > and returns an errno, before returning the allocated memory for fence > should be released. > > Fixes: 3d2aca8c8620 ("drm/amdgpu: fix old fence check in amdgpu_fence_emit") >

Re: [PATCH v2 07/11] omap: remove old hsmmc.[ch] and in Makefile

2019-10-22 Thread Ulf Hansson
- Trimmed cc-list (could be a good idea for next submission as well) On Mon, 21 Oct 2019 at 19:11, Tony Lindgren wrote: > > * H. Nikolaus Schaller [191021 17:08]: > > > > > Am 21.10.2019 um 16:30 schrieb Tony Lindgren : > > > > > > * H. Nikolaus Schaller [191019 18:43]: > > >> ---

Re: [PATCH] hugetlbfs: add O_TMPFILE support

2019-10-22 Thread Piotr Sarna
On 10/21/19 7:17 PM, Mike Kravetz wrote: On 10/15/19 4:37 PM, Mike Kravetz wrote: On 10/15/19 3:50 AM, Michal Hocko wrote: On Tue 15-10-19 11:01:12, Piotr Sarna wrote: With hugetlbfs, a common pattern for mapping anonymous huge pages is to create a temporary file first. Really? I though

Re: [PATCH V7] mm/debug: Add tests validating architecture page table helpers

2019-10-22 Thread Christophe Leroy
On 10/21/2019 02:42 AM, Anshuman Khandual wrote: This adds tests which will validate architecture page table helpers and other accessors in their compliance with expected generic MM semantics. This will help various architectures in validating changes to existing page table helpers or

[PATCH] clk: Fix memory leak in clk_unregister()

2019-10-22 Thread Kishon Vijay Abraham I
Memory allocated in alloc_clk() for 'struct clk' and 'const char *con_id' while invoking clk_register() is never freed in clk_unregister(), resulting in kmemleak showing the following backtrace. backtrace: [<546f5dd0>] kmem_cache_alloc+0x18c/0x270 [<73a32862>]

[PATCH v2] scsi: lpfc: Honor module parameter lpfc_use_adisc

2019-10-22 Thread Daniel Wagner
The initial lpfc_desc_set_adisc implementation dea3101e0a5c ("lpfc: add Emulex FC driver version 8.0.28") enabled ADISC if cfg_use_adisc && RSCN_MODE && FCP_2_DEVICE In commit 92d7f7b0cde3 ("[SCSI] lpfc: NPIV: add NPIV support on top of SLI-3") this changed to (cfg_use_adisc &&

Re: [PATCH V8 4/6] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-10-22 Thread kgunda
On 2019-10-21 15:49, Daniel Thompson wrote: On Fri, Oct 18, 2019 at 06:03:27PM +0530, Kiran Gunda wrote: WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-22 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please

Re: [PATCH v2] fs/dax: Fix pmd vs pte conflict detection

2019-10-22 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes ThumshirnSUSE Labs Filesystems jthumsh...@suse.de+49 911 74053 689 SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nürnberg Germany (HRB 36809, AG Nürnberg)

adv748x: missing parens

2019-10-22 Thread Dmitry Vyukov
val - 1 : 0); #define sdp_clrset(s, r, m, v) sdp_write(s, r, (sdp_read(s, r) & ~m) | v) This is on linux-next commit a722f75b2923b4fd44c17e7255e822ac48fe85f0 Date: Tue Oct 22 16:17:17 2019 +1100 Add linux-next specific files for 20191022 It seems sdp_clrset needs some more parens.

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-22 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please

Re: [PATCH] drm/v3d: Fix memory leak in v3d_submit_cl_ioctl

2019-10-22 Thread Markus Elfring
> … >> +++ b/drivers/gpu/drm/v3d/v3d_gem.c >> @@ -557,13 +557,16 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void *data, > … >> if (ret) { >> v3d_job_put(>base); >> +kfree(bin); > … > > Can it be helpful to move the added function call

Re: linux-next: build warning after merge of the mmc tree

2019-10-22 Thread Ulf Hansson
On Tue, 22 Oct 2019 at 02:47, Stephen Rothwell wrote: > > Hi all, > > After merging the mmc tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > drivers/mmc/core/block.c: In function '__mmc_blk_ioctl_cmd': > drivers/mmc/core/block.c:500:6: warning: unused variable

Re: [PATCH] dt-bindings: usb: dwc3: Move Amlogic G12A DWC3 Glue Bindings to YAML schemas

2019-10-22 Thread Felipe Balbi
Hi, Neil Armstrong writes: > Now that we have the DT validation in place, let's convert the device tree > bindings for the Amlogic G12A DWC3 Glue Bindings over to a YAML schemas, > the AXG and GXL glue bindings will be converted later. > > Signed-off-by: Neil Armstrong Is this a thing now?

Re: [PATCH v2 2/2] usb: cdns3: Add TI specific wrapper driver

2019-10-22 Thread Roger Quadros
Hi Peter, On 22/10/2019 05:21, Peter Chen wrote: On 19-10-21 16:13:05, Roger Quadros wrote: The J721e platform comes with 2 Cadence USB3 controller instances. This driver supports the TI specific wrapper on this platform. Signed-off-by: Roger Quadros Signed-off-by: Sekhar Nori ---

[PATCH] perf: Fix AUX output stopping

2019-10-22 Thread Alexander Shishkin
Commit 8a58ddae2379 ("perf/core: Fix exclusive events' grouping") allows CAP_EXCLUSIVE events to be grouped with other events. Since all of those also happen to be AUX events (which is not the case the other way around, because arch/s390), this changes the rules for stopping the output: the

Re: linux-next: Tree for Oct 18 (objtool)

2019-10-22 Thread Peter Zijlstra
On Mon, Oct 21, 2019 at 09:36:53PM +0200, Christian Brauner wrote: > Ok, so I take it you route that patch somehwere through tip? > I'm happy with the ubsan fix: Yeah, I'll go make a real patch with Changelog of it and stick it in tip. > Acked-by: Christian Brauner Thanks!

Re: [PATCH] ARM: davinci: dm365-evm: Add Fixed regulators needed for tlv320aic3101

2019-10-22 Thread Peter Ujfalusi
On 21/10/2019 13.40, Peter Ujfalusi wrote: > > > On 17/10/2019 16.49, Sekhar Nori wrote: >> On 17/10/19 4:39 PM, Sekhar Nori wrote: >>> On 30/08/19 3:52 PM, Peter Ujfalusi wrote: The codec driver needs correct regulators in order to probe. Both VCC_3V3 and VCC_1V8 is always on fixed

Re: [Patch 19/19] dt-bindings: media: cal: convert binding to yaml

2019-10-22 Thread Sakari Ailus
Hi Benoit, Thanks for the patch. On Fri, Oct 18, 2019 at 10:34:37AM -0500, Benoit Parrot wrote: > Convert ti-cal.txt to ti,cal.yaml. > > Signed-off-by: Benoit Parrot > --- > .../devicetree/bindings/media/ti,cal.yaml | 186 ++ > .../devicetree/bindings/media/ti-cal.txt

Re: [RFC PATCH v2 10/16] mm,hwpoison: Rework soft offline for free pages

2019-10-22 Thread Oscar Salvador
On Mon, Oct 21, 2019 at 05:41:58PM +0200, Michal Hocko wrote: > On Mon 21-10-19 14:58:49, Oscar Salvador wrote: > > Nothing prevents the page to be allocated in the meantime. > > We would just bail out and return -EBUSY to userspace. > > Since we do not do __anything__ to the page until we are

Re: [PATCH 1/2] rtc: cros-ec: remove superfluous error message

2019-10-22 Thread Enric Balletbo i Serra
Hi Alexandre, On 16/10/19 22:14, Alexandre Belloni wrote: > The RTC core now has error messages in case of registration failure, there > is no need to have other messages in the drivers. > > Signed-off-by: Alexandre Belloni That makes totally sense for me. Reviewed-by: Enric Balletbo i Serra

Re: [PATCH 2/2] rtc: cros-ec: let the core handle rtc range

2019-10-22 Thread Enric Balletbo i Serra
Hi Alexandre, On 16/10/19 22:14, Alexandre Belloni wrote: > Let the rtc core check the date/time against the RTC range. > > Signed-off-by: Alexandre Belloni Tested on few devices just to make sure nothing is broken, the change looks good to me and works as expected. Reviewed-by: Enric

[PATCH v4] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-10-22 Thread Jinke Fan
When using following operations: date -s "21190910 19:20:00" hwclock -w to change date from 2019 to 2119 for test, it will fail on Hygon Dhyana and AMD Zen CPUs, while the same operations run ok on Intel i7 platform. MC146818 driver use function mc146818_set_time() to set register

[PATCH 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-10-22 Thread Ran Wang
Some user might want to go through all registered wakeup sources and doing things accordingly. For example, SoC PM driver might need to do HW programming to prevent powering down specific IP which wakeup source depending on. So add this API to help walk through all registered wakeup source objects

[PATCH 3/3] soc: fsl: add RCPM driver

2019-10-22 Thread Ran Wang
The NXP's QorIQ Processors based on ARM Core have RCPM module (Run Control and Power Management), which performs system level tasks associated with power management such as wakeup source control. This driver depends on PM wakeup source framework which help to collect wake information.

[PATCH 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-10-22 Thread Ran Wang
By default, QorIQ SoC's RCPM register block is Big Endian. But there are some exceptions, such as LS1088A and LS2088A, are Little Endian. So add this optional property to help identify them. Actually LS2021A and other Layerscapes won't totally follow Chassis 2.1, so separate them from powerpc

Re: [RFC PATCH v2 11/16] mm,hwpoison: Rework soft offline for in-use pages

2019-10-22 Thread Oscar Salvador
On Mon, Oct 21, 2019 at 04:06:19PM +0200, Michal Hocko wrote: > On Mon 21-10-19 15:48:48, Oscar Salvador wrote: > > We can only perform actions on LRU/Movable pages or hugetlb pages. > > What would prevent other pages mapped via page tables to be handled as > well? What kind of pages? I mean, I

Re: [RFC PATCH v2 15/16] mm/hwpoison-inject: Rip off duplicated checks

2019-10-22 Thread Oscar Salvador
On Mon, Oct 21, 2019 at 11:40:39AM +0200, David Hildenbrand wrote: > I explored somewhere already why this code was added: > > > commit 31d3d3484f9bd263925ecaa341500ac2df3a5d9b > Author: Wu Fengguang > Date: Wed Dec 16 12:19:59 2009 +0100 > > HWPOISON: limit hwpoison injector to known

Re: [RFC PATCH v2 10/16] mm,hwpoison: Rework soft offline for free pages

2019-10-22 Thread Oscar Salvador
On Mon, Oct 21, 2019 at 07:45:33AM +, Naoya Horiguchi wrote: > > +extern bool take_page_off_buddy(struct page *page); > > + > > +static void page_handle_poison(struct page *page) > > hwpoison is a separate idea from page poisoning, so maybe I think > it's better to be named like

Re: [PATCH v2 2/9] perf evsel: Avoid close(-1)

2019-10-22 Thread Jiri Olsa
On Sun, Oct 20, 2019 at 10:51:55AM -0700, Andi Kleen wrote: > From: Andi Kleen > > In some weak fallback cases close can be called a lot with -1. Check > for this case and avoid calling close then. > > This is mainly to shut up valgrind which complains about this case. > > Signed-off-by: Andi

Re: [PATCH 17/16] mm,hwpoison: introduce MF_MSG_UNSPLIT_THP

2019-10-22 Thread Oscar Salvador
On Mon, Oct 21, 2019 at 06:51:09PM +0900, Naoya Horiguchi wrote: > Here's the one. So Oscar, If you like, could you append this to > your tree in the next spin (with your credit or signed-off-by)? Sure, I will add it. Thanks > > Thanks, > Naoya Horiguchi > --- > From

Re: linux-next: Tree for Oct 18 (objtool)

2019-10-22 Thread Christian Brauner
On Tue, Oct 22, 2019 at 09:40:34AM +0200, Peter Zijlstra wrote: > On Mon, Oct 21, 2019 at 09:36:53PM +0200, Christian Brauner wrote: > > Ok, so I take it you route that patch somehwere through tip? > > I'm happy with the ubsan fix: > > Yeah, I'll go make a real patch with Changelog of it and

Re: [PATCH v2 1/9] perf evsel: Always preserve errno while cleaning up perf_event_open failures

2019-10-22 Thread Jiri Olsa
On Sun, Oct 20, 2019 at 10:51:54AM -0700, Andi Kleen wrote: > From: Andi Kleen > > In some cases when perf_event_open fails, it may do some closes to clean > up. In special cases these closes can fail too, which overwrites the > errno of the perf_event_open, which is then incorrectly reported. >

Re: Optimize perf stat for large number of events/cpus v2

2019-10-22 Thread Jiri Olsa
On Sun, Oct 20, 2019 at 10:51:53AM -0700, Andi Kleen wrote: > [The earlier v1 version had a lot of conflicts against some > recent libperf changes in tip/perf/core. Resolve that and > also fix some minor issues.] > > This patch kit optimizes perf stat for a large number of events > on systems

Re: [PATCH 1/7] debugfs: Add debugfs_create_xul() for hexadecimal unsigned long

2019-10-22 Thread Geert Uytterhoeven
Hi Joe, On Mon, Oct 21, 2019 at 5:37 PM Joe Perches wrote: > On Mon, 2019-10-21 at 16:37 +0200, Geert Uytterhoeven wrote: > > The existing debugfs_create_ulong() function supports objects of > > type "unsigned long", which are 32-bit or 64-bit depending on the > > platform, in decimal form. To

[PATCH v3 0/5] perf report: Support sorting all blocks by cycles

2019-10-22 Thread Jin Yao
It would be useful to support sorting for all blocks by the sampled cycles percent per block. This is useful to concentrate on the globally hottest blocks. This patch series implements a new sort option "total_cycles" which sorts all blocks by 'Sampled Cycles%'. The 'Sampled Cycles%' is block

[PATCH v3 1/5] perf util: Cleanup and refactor block info functions

2019-10-22 Thread Jin Yao
We have already implemented some block-info related functions. Now it's time to do some cleanup, refactoring and move the functions and structures to new block-info.h/block-info.c. v3: --- 1. Rename the patch title 2. Rename from block.h/block.c to block-info.h/block-info.c 3. Move more

[PATCH v3 4/5] perf report: Support --percent-limit for total_cycles

2019-10-22 Thread Jin Yao
We have already supported the 'total_cycles' option in previous patch. It's also useful to show entries only above a threshold percent. This patch enables '--percent-limit' for not showing entries under that percent. For example, perf report -s total_cycles --stdio --percent-limit 1 # To

[PATCH v3 5/5] perf report: Sort by sampled cycles percent per block for tui

2019-10-22 Thread Jin Yao
Previous patch has implemented a new sort option "total_cycles". But there was only stdio mode supported. This patch supports the tui mode and support '--percent-limit'. For example, perf record -b ./div perf report -s total_cycles --percent-limit 1 # Samples: 2753248 of event 'cycles'

Re: [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups

2019-10-22 Thread Michal Hocko
On Tue 22-10-19 08:52:28, David Hildenbrand wrote: > On 21.10.19 19:23, David Hildenbrand wrote: > > Two cleanups that popped up while working on (and discussing) virtio-mem: > > https://lkml.org/lkml/2019/9/19/463 > > > > Tested with DIMMs on x86. > > > > As discussed with michal in v1, I'll

[PATCH v3 2/5] perf util: Count the total cycles of all samples

2019-10-22 Thread Jin Yao
We can get the per sample cycles by hist__account_cycles(). It's also useful to know the total cycles of all samples in order to get the cycles coverage for a single program block in further. For example, coverage = per block sampled cycles / total sampled cycles This patch creates a new

[PATCH v3 3/5] perf report: Sort by sampled cycles percent per block for stdio

2019-10-22 Thread Jin Yao
It would be useful to support sorting for all blocks by the sampled cycles percent per block. This is useful to concentrate on the globally hottest blocks. This patch implements a new sort option "total_cycles" which sorts all blocks by 'Sampled Cycles%'. The 'Sampled Cycles%' is the percent:

[PATCH v5] perf record: Add support for limit perf output file size

2019-10-22 Thread jsun4
The patch adds a new option to limit the output file size, then based on it, we can create a wrapper of the perf command that uses the option to avoid exhausting the disk space by the unconscious user. In order to make the perf.data parsable, we just limit the sample data size, since the

[PATCH v3 4/6] KVM: x86/vPMU: Introduce a new kvm_pmu_ops->msr_idx_to_pmc callback

2019-10-22 Thread Like Xu
Introduce a new callback msr_idx_to_pmc that returns a struct kvm_pmc*, and change kvm_pmu_is_valid_msr to return ".msr_idx_to_pmc(vcpu, msr) || .is_valid_msr(vcpu, msr)" and AMD just returns false from .is_valid_msr. Suggested-by: Paolo Bonzini Signed-off-by: Like Xu --- arch/x86/kvm/pmu.c

[PATCH v3 6/6] KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC

2019-10-22 Thread Like Xu
Currently, a host perf_event is created for a vPMC functionality emulation. It’s unpredictable to determine if a disabled perf_event will be reused. If they are disabled and are not reused for a considerable period of time, those obsolete perf_events would increase host context switch overhead

[PATCH v3 3/6] KVM: x86/vPMU: Rename pmu_ops callbacks from msr_idx to rdpmc_idx

2019-10-22 Thread Like Xu
The leagcy pmu_ops->msr_idx_to_pmc is only called in kvm_pmu_rdpmc, so this name is restrictedly limited to rdpmc_idx which could be indexed exactly to a kvm_pmc. Let's restrict its semantic by renaming the existing msr_idx_to_pmc to rdpmc_idx_to_pmc, and is_valid_msr_idx to is_valid_rdpmc_idx

[PATCH v3 0/6] KVM: x86/vPMU: Efficiency optimization by reusing last created perf_event

2019-10-22 Thread Like Xu
This patch series is going to improve vPMU Efficiency for guest which is mainly measured by guest NMI handler latency in such as basic perf usages [1][2] with hardware PMU. It's not a passthrough solution but based on the legacy vPMU implementation. With this optimization, the average latency of

[PATCH v3 1/6] perf/core: Provide a kernel-internal interface to recalibrate event period

2019-10-22 Thread Like Xu
Currently, perf_event_period() is used by user tools via ioctl. Based on naming convention, exporting perf_event_period() for kernel users (such as KVM) who may recalibrate the event period for their assigned counter according to their requirements. The perf_event_period() is an external

[PATCH v3 2/6] perf/core: Provide a kernel-internal interface to pause perf_event

2019-10-22 Thread Like Xu
Exporting perf_event_pause() as an external accessor for kernel users (such as KVM) who may do both disable perf_event and read count with just one time to hold perf_event_ctx_lock. Also the value could be reset optionally. Suggested-by: Peter Zijlstra Signed-off-by: Like Xu ---

[PATCH v3 5/6] KVM: x86/vPMU: Reuse perf_event to avoid unnecessary pmc_reprogram_counter

2019-10-22 Thread Like Xu
The perf_event_create_kernel_counter() in the pmc_reprogram_counter() is a heavyweight and high-frequency operation, especially when host disables the watchdog (maximum 2100 ns) which leads to an unacceptable latency of the guest NMI handler. It limits the use of vPMUs in the guest. When a

Re: [PATCH v4 1/2] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC

2019-10-22 Thread Shenhar, Talel
Thanks Rob, On 10/11/2019 4:29 PM, Rob Herring wrote: On Thu, Oct 10, 2019 at 02:54:13PM +0300, Talel Shenhar wrote: Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding. Signed-off-by: Talel Shenhar --- .../bindings/edac/amazon,al-mc-edac.yaml | 50

Re: [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups

2019-10-22 Thread David Hildenbrand
On 22.10.19 10:08, Michal Hocko wrote: On Tue 22-10-19 08:52:28, David Hildenbrand wrote: On 21.10.19 19:23, David Hildenbrand wrote: Two cleanups that popped up while working on (and discussing) virtio-mem: https://lkml.org/lkml/2019/9/19/463 Tested with DIMMs on x86. As discussed with

Re: [PATCH] driver:st1633: fixed multitouch incorrect coordinates

2019-10-22 Thread Martin Kepplinger
On 21.10.19 19:13, Dmitry Torokhov wrote: > On Mon, Oct 21, 2019 at 09:10:23AM +0200, Martin Kepplinger wrote: >> On 20.10.19 10:29, Dixit Parmar wrote: >>> Any review comments for this? >>> Or it should be merged? >>> >>> Thanks. >> >> My comment and tag is there. This fixes multitouch and should

[PATCH] arch: microblaze: support for reserved-memory entries in DT

2019-10-22 Thread Alvaro Gamez Machado
Signed-off-by: Alvaro Gamez Machado --- arch/microblaze/mm/init.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index a015a951c8b7..928c5c2816e4 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -17,6 +17,8

Re: [PATCH v1 1/2] mm/page_alloc.c: Don't set pages PageReserved() when offlining

2019-10-22 Thread Michal Hocko
On Mon 21-10-19 17:54:35, David Hildenbrand wrote: > On 21.10.19 17:47, Michal Hocko wrote: > > On Mon 21-10-19 17:39:36, David Hildenbrand wrote: > > > On 21.10.19 16:43, Michal Hocko wrote: > > [...] > > > > We still set PageReserved before onlining pages and that one should be > > > > good to

Re: [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups

2019-10-22 Thread Michal Hocko
On Tue 22-10-19 10:15:07, David Hildenbrand wrote: > On 22.10.19 10:08, Michal Hocko wrote: > > On Tue 22-10-19 08:52:28, David Hildenbrand wrote: > > > On 21.10.19 19:23, David Hildenbrand wrote: > > > > Two cleanups that popped up while working on (and discussing) > > > > virtio-mem: > > > >

Re: [PATCH v1 1/2] mm/page_alloc.c: Don't set pages PageReserved() when offlining

2019-10-22 Thread David Hildenbrand
On 22.10.19 10:20, Michal Hocko wrote: On Mon 21-10-19 17:54:35, David Hildenbrand wrote: On 21.10.19 17:47, Michal Hocko wrote: On Mon 21-10-19 17:39:36, David Hildenbrand wrote: On 21.10.19 16:43, Michal Hocko wrote: [...] We still set PageReserved before onlining pages and that one

Re: [PATCH] cpufreq: imx-cpufreq-dt: Correct i.MX8MN's default speed grade value

2019-10-22 Thread Viresh Kumar
On 22-10-19, 12:39, Anson Huang wrote: > i.MX8MN has different speed grade definition compared to > i.MX8MQ/i.MX8MM, when fuses are NOT written, the default > speed_grade should be set to minimum available OPP defined > in DT which is 1.2GHz, the corresponding speed_grade value > should be 0xb. >

Re: [PATCH v2] cgroup, blkcg: prevent dirty inodes to pin dying memory cgroups

2019-10-22 Thread Jan Kara
On Mon 21-10-19 23:49:04, Roman Gushchin wrote: > On Wed, Oct 16, 2019 at 11:18:40AM +0200, Jan Kara wrote: > > On Tue 15-10-19 21:40:45, Roman Gushchin wrote: > > > On Tue, Oct 15, 2019 at 11:09:33AM +0200, Jan Kara wrote: > > > > On Thu 10-10-19 16:40:36, Roman Gushchin wrote: > > > > > > > > >

Re: [RFC PATCH v2 10/16] mm,hwpoison: Rework soft offline for free pages

2019-10-22 Thread Michal Hocko
On Tue 22-10-19 09:46:20, Oscar Salvador wrote: [...] > So, opposite to hard-offline, in soft-offline we do not fiddle with pages > unless we are sure the page is not reachable anymore by any means. I have to say I do not follow. Is there any _real_ reason for soft-offline to behave differenttly

Re: [PATCH v2] rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot

2019-10-22 Thread Kalle Valo
Chris Chiu wrote: > The RTL8723BU has problems connecting to AP after each warm reboot. > Sometimes it returns no scan result, and in most cases, it fails > the authentication for unknown reason. However, it works totally > fine after cold reboot. > > Compare the value of register SYS_CR and

Re: [PATCH] clocksource/drivers: Fix memory leak in ttc_setup_clockevent

2019-10-22 Thread Markus Elfring
> In the impelementation of ttc_setup_clockevent() the allocated memory > for ttcce should be released if clk_notifier_register() fails. * Please avoid the copying of typos from previous change descriptions. * Under which circumstances will an “imperative mood” matter for you here?

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-22 Thread Miroslav Benes
On Fri, 18 Oct 2019, Jessica Yu wrote: > +++ Miroslav Benes [16/10/19 15:29 +0200]: > >On Wed, 16 Oct 2019, Miroslav Benes wrote: > > > >> On Wed, 16 Oct 2019, Peter Zijlstra wrote: > >> > >> > On Tue, Oct 15, 2019 at 06:27:05PM -0400, Steven Rostedt wrote: > >> > > >> > > (7) Seventh session,

Re: [RFC PATCH v2 11/16] mm,hwpoison: Rework soft offline for in-use pages

2019-10-22 Thread Michal Hocko
On Tue 22-10-19 09:56:27, Oscar Salvador wrote: > On Mon, Oct 21, 2019 at 04:06:19PM +0200, Michal Hocko wrote: > > On Mon 21-10-19 15:48:48, Oscar Salvador wrote: > > > We can only perform actions on LRU/Movable pages or hugetlb pages. > > > > What would prevent other pages mapped via page

Re: [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups

2019-10-22 Thread David Hildenbrand
On 22.10.19 10:21, Michal Hocko wrote: > On Tue 22-10-19 10:15:07, David Hildenbrand wrote: >> On 22.10.19 10:08, Michal Hocko wrote: >>> On Tue 22-10-19 08:52:28, David Hildenbrand wrote: On 21.10.19 19:23, David Hildenbrand wrote: > Two cleanups that popped up while working on (and

Re: [PATCH v2 03/18] platform: cros_ec: Add cros_ec_sensor_hub driver

2019-10-22 Thread Enric Balletbo i Serra
Hi Gwendal, Complementing the Jonathan's review, few bits more. On 21/10/19 17:59, Jonathan Cameron wrote: > On Sun, 20 Oct 2019 22:53:48 -0700 > Gwendal Grignou wrote: > >> Similar to HID sensor stack, the new driver sits between cros_ec_dev >> and the iio device drivers: >> >> EC based iio

Re: [RFC PATCH v2 10/16] mm,hwpoison: Rework soft offline for free pages

2019-10-22 Thread Oscar Salvador
On Tue, Oct 22, 2019 at 10:26:11AM +0200, Michal Hocko wrote: > On Tue 22-10-19 09:46:20, Oscar Salvador wrote: > [...] > > So, opposite to hard-offline, in soft-offline we do not fiddle with pages > > unless we are sure the page is not reachable anymore by any means. > > I have to say I do not

[PATCH V2] cpufreq: imx-cpufreq-dt: Correct i.MX8MN's default speed grade value

2019-10-22 Thread Anson Huang
i.MX8MN has different speed grade definition compared to i.MX8MQ/i.MX8MM, when fuses are NOT written, the default speed_grade should be set to minimum available OPP defined in DT which is 1.2GHz, the corresponding speed_grade value should be 0xb. Fixes: 5b8010ba70d5 ("cpufreq: imx-cpufreq-dt: Add

Re: [PATCH v2 2/2] ARM: dts: at91: add a dts and dtsi file for kizbox2 based boards

2019-10-22 Thread Alexandre Belloni
On 21/10/2019 14:58:04+0200, Kamel Bouhara wrote: > There are several boards available depending on the PCB > (3 antennas support and several revison). Add a dtsi file to share > common binding between all kizbox2 boards. This patch also add support > for the kizbox2-2 variant. > > Signed-off-by:

RE: [PATCH] cpufreq: imx-cpufreq-dt: Correct i.MX8MN's default speed grade value

2019-10-22 Thread Anson Huang
Hi, Viresh > On 22-10-19, 12:39, Anson Huang wrote: > > i.MX8MN has different speed grade definition compared to > > i.MX8MQ/i.MX8MM, when fuses are NOT written, the default speed_grade > > should be set to minimum available OPP defined in DT which is 1.2GHz, > > the corresponding speed_grade

[PATCH v7 9/9] backlight: gpio: pull gpio_backlight_initial_power_state() into probe

2019-10-22 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The probe function in the gpio-backlight driver is quite short. If we pull gpio_backlight_initial_power_state() into probe we can drop two more fields from struct gpio_backlight and shrink the driver code. Signed-off-by: Bartosz Golaszewski Acked-by: Daniel Thompson

[PATCH v7 8/9] backlight: gpio: use a helper variable for >dev

2019-10-22 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Instead of dereferencing pdev each time, use a helper variable for the associated device pointer. Signed-off-by: Bartosz Golaszewski Reviewed-by: Linus Walleij Reviewed-by: Daniel Thompson Reviewed-by: Andy Shevchenko --- drivers/video/backlight/gpio_backlight.c |

[PATCH v7 3/9] backlight: gpio: explicitly set the direction of the GPIO

2019-10-22 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The GPIO backlight driver currently requests the line 'as is', without acively setting its direction. This can lead to problems: if the line is in input mode by default, we won't be able to drive it later when updating the status and also reading its initial value

[PATCH v7 7/9] backlight: gpio: remove unused fields from platform data

2019-10-22 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Remove the platform data fields that nobody uses. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Reviewed-by: Linus Walleij Reviewed-by: Daniel Thompson --- include/linux/platform_data/gpio_backlight.h | 3 --- 1 file changed, 3 deletions(-) diff

[PATCH v7 2/9] backlight: gpio: remove stray newline

2019-10-22 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Remove a double newline from the driver. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Reviewed-by: Daniel Thompson --- drivers/video/backlight/gpio_backlight.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH] reset: Fix memory leak in reset_control_array_put()

2019-10-22 Thread Kishon Vijay Abraham I
Memory allocated for 'struct reset_control_array' in of_reset_control_array_get() is never freed in reset_control_array_put() resulting in kmemleak showing the following backtrace. backtrace: [] __kmalloc+0x1b0/0x2b0 []

Re: [PATCH v2] ath10k: Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe

2019-10-22 Thread Kalle Valo
Guenter Roeck wrote: > The `ar_usb` field of `ath10k_usb_pipe_usb_pipe` objects > are initialized to point to the containing `ath10k_usb` object > according to endpoint descriptors read from the device side, as shown > below in `ath10k_usb_setup_pipe_resources`: > > for (i = 0; i <

Re: [PATCH v2 0/2] mm: Memory offlining + page isolation cleanups

2019-10-22 Thread David Hildenbrand
On 22.10.19 10:32, David Hildenbrand wrote: On 22.10.19 10:21, Michal Hocko wrote: On Tue 22-10-19 10:15:07, David Hildenbrand wrote: On 22.10.19 10:08, Michal Hocko wrote: On Tue 22-10-19 08:52:28, David Hildenbrand wrote: On 21.10.19 19:23, David Hildenbrand wrote: Two cleanups that

Re: [PATCH V2] cpufreq: imx-cpufreq-dt: Correct i.MX8MN's default speed grade value

2019-10-22 Thread Viresh Kumar
On 22-10-19, 16:33, Anson Huang wrote: > i.MX8MN has different speed grade definition compared to > i.MX8MQ/i.MX8MM, when fuses are NOT written, the default > speed_grade should be set to minimum available OPP defined > in DT which is 1.2GHz, the corresponding speed_grade value > should be 0xb. >

Re: [RFC 0/6] mmc: Add clock scaling support for mmc driver

2019-10-22 Thread Ulf Hansson
On Mon, 21 Oct 2019 at 16:30, Ram Prakash Gupta wrote: > > This change adds the use of devfreq based clock scaling to MMC. > This applicable for eMMC and SDCard. > For some workloads, such as video playback, it isn't necessary > for these cards to run at high speed. Running at lower > frequency,

Re: [RFC,3/3] drm/komeda: Allow non-component drm_bridge only endpoints

2019-10-22 Thread Daniel Vetter
On Thu, Oct 17, 2019 at 12:41:37PM +0100, Russell King - ARM Linux admin wrote: > On Thu, Oct 17, 2019 at 10:48:12AM +, Brian Starkey wrote: > > On Thu, Oct 17, 2019 at 10:21:03AM +, james qian wang (Arm Technology > > China) wrote: > > > On Thu, Oct 17, 2019 at 08:20:56AM +, Brian

Re: [PATCH] RFC: cpu-topology: declare parse_acpi_topology in

2019-10-22 Thread Ben Dooks
On 21/10/2019 17:52, Sudeep Holla wrote: On Mon, Oct 21, 2019 at 05:25:30PM +0100, Ben Dooks (Codethink) wrote: The parse_acpi_topology() is not declared anywhere which causes the following sparse warning: drivers/base/arch_topology.c:522:19: warning: symbol 'parse_acpi_topology' was not

Re: [PATCH] dt-bindings: mma8452: Re-word 'interrupt-names' description

2019-10-22 Thread Martin Kepplinger
On 22.10.19 05:56, Andrey Smirnov wrote: > Current wording in the binding documentation doesn't make it 100% > clear that only one of "INT1" and "INT2" will ever be used by the > driver and that specifying both has no advantages. Re-word it to make > this aspect a bit more explicit. > >

  1   2   3   4   5   6   7   8   9   >