[PATCH] Staging: Ralink: ralink-gdma: Fixed codestyle issue and warnings

2020-09-06 Thread Naveen Panwar
Fixed checkpatch warnings two warnings still exits about DT compatible strings appers undocumented. Fixed the other codestyle errors, and some warnings about use of volatile and un-necessary out of memory errors. Signed-off-by: Naveen Panwar --- drivers/staging/ralink-gdma/ralink-gdma.c | 29 +++

Re: [Linux-kernel-mentees] [PATCH v1 1/2] video: fbdev: aty: radeon_pm: remove redundant CONFIG_PM container

2020-09-06 Thread Vaibhav Gupta
On Mon, Sep 07, 2020 at 08:48:10AM +0200, Greg KH wrote: > On Mon, Sep 07, 2020 at 12:03:47PM +0530, Vaibhav Gupta wrote: > > > > Why did you send empty emails out? > > greg k-h I was trying to re-ping the patches. Guess it went empty. I will send patches again. Vaibhav

Re: [PATCH] /dev/zero: also implement ->read

2020-09-06 Thread Rasmus Villemoes
On 07/09/2020 08.20, Christoph Hellwig wrote: > On Mon, Sep 07, 2020 at 12:34:37AM +0200, Rasmus Villemoes wrote: >> On 03/09/2020 17.59, Christoph Hellwig wrote: > >>> +static ssize_t read_zero(struct file *file, char __user *buf, >>> +size_t count, loff_t *ppos) >>> +{ >>> +

Re: [PATCH v7] binder: transaction latency tracking for user build

2020-09-06 Thread Frankie Chang
On Thu, 2020-09-03 at 18:21 +0200, Greg Kroah-Hartman wrote: > On Tue, Aug 04, 2020 at 09:59:09PM +0800, Frankie Chang wrote: > > > > Frankie.Chang (3): > > binder: move structs from core file to header file > > binder: add trace at free transaction. > > binder: add transaction latency trace

Re: [PATCH v4 4/7] power: supply: max17040: Support compatible devices

2020-09-06 Thread kernel test robot
Hi Iskren, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on b36c969764ab12faebb74711c942fa3e6eaf1e96] url: https://github.com/0day-ci/linux/commits/Iskren-Chernev/power-supply-max17040-support-compatible-devices/20200907-112145 base:b36c969764ab12faebb74

Re: [Linux-kernel-mentees] [PATCH v1 1/2] video: fbdev: aty: radeon_pm: remove redundant CONFIG_PM container

2020-09-06 Thread Greg KH
On Mon, Sep 07, 2020 at 12:03:47PM +0530, Vaibhav Gupta wrote: > Why did you send empty emails out? greg k-h

Re: [PATCH 2/2] xfs: don't update mtime on COW faults

2020-09-06 Thread Christoph Hellwig
> +static bool > +xfs_is_write_fault( > + struct vm_fault *vmf) > +{ > + return vmf->flags & FAULT_FLAG_WRITE && vmf->vma->vm_flags & VM_SHARED; > +} This function does not look xfs specific at all. Why isn't it it in fs.h? While we're at it the name sounds rather generic, and th

Re: [Linux-kernel-mentees] [PATCH v1 0/2] video: fbdev: radeonfb: PCI PM framework upgrade and fix-ups.

2020-09-06 Thread Greg KH
On Mon, Sep 07, 2020 at 12:01:53PM +0530, Vaibhav Gupta wrote: > Please review this patch-series. I see no patch here :(

Re: [PATCH v2 03/10] mm/memory_hotplug: simplify page offlining

2020-09-06 Thread Michal Hocko
On Fri 04-09-20 12:21:34, Andrew Morton wrote: > On Fri, 4 Sep 2020 07:47:45 +0200 David Hildenbrand wrote: [...] > @@ -1589,9 +1567,7 @@ int __ref offline_pages(unsigned long st > reason = "failure to dissolve huge pages"; > goto failed_removal_isolated

[PATCH v9 4/5] perf/tools: Pass pmu_event structure as a parameter for arch_get_runtimeparam

2020-09-06 Thread Kajol Jain
This patch adds passing of pmu_event as a parameter in function 'arch_get_runtimeparam' which can be used to get details like if the event is percore/perchip. Signed-off-by: Kajol Jain Acked-by: Ian Rogers --- tools/perf/arch/powerpc/util/header.c | 7 +-- tools/perf/util/metricgroup.c

[PATCH v9 5/5] perf/tools/pmu_events/powerpc: Add hv_24x7 core level metric events

2020-09-06 Thread Kajol Jain
This patch adds hv_24x7 core level events in nest_metric.json file and also add PerChip/PerCore field in metric events. Result: power9 platform: command:# ./perf stat --metric-only -M PowerBUS_Frequency -C 0 -I 1000 1.706011.92.0 2.00

[PATCH v9 2/5] perf/jevents: Add new structure to pass json fields.

2020-09-06 Thread Kajol Jain
This patch adds new structure called 'json_event' inside jevents.c file to improve the callback prototype inside jevent files. Initially, whenever user want to add new field, they need to update in all function callback which make it more and more complex with increased number of parmeters. With th

[PATCH v9 1/5] perf/jevents: Remove jevents.h file

2020-09-06 Thread Kajol Jain
This patch removes jevents.h and makes json_events function static. Signed-off-by: Kajol Jain Reviewed-by: John Garry --- tools/perf/pmu-events/jevents.c | 3 +-- tools/perf/pmu-events/jevents.h | 23 --- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644

[PATCH v9 3/5] perf jevents: Add support for parsing perchip/percore events

2020-09-06 Thread Kajol Jain
Initially, every time we want to add new terms like chip, core thread etc, we need to create corrsponding fields in pmu_events and event struct. This patch adds an enum called 'aggr_mode_class' which store all these aggregation like perchip/percore. It also adds new field 'aggr_mode' to capture the

[PATCH v9 0/5] powerpc/perf: Add json file support for hv_24x7 core level events

2020-09-06 Thread Kajol Jain
Patchset enhance current runtime parameter support. It introduces new fields like "PerChip" and "PerCore" similar to the field "PerPkg" which is used to specify perpkg events. The "PerCore" and "PerChip" specifies whether its core or chip events. Based on which we can decide which runtime paramete

Re: [PATCH v8 3/5] perf jevents: Add support for parsing perchip/percore events

2020-09-06 Thread kajoljain
On 9/6/20 6:25 PM, Jiri Olsa wrote: > On Sun, Sep 06, 2020 at 04:50:02PM +0530, Kajol Jain wrote: > > SNIP > >> typedef int (*func)(void *data, struct json_event *je); >> >> int eprintf(int level, int var, const char *fmt, ...) >> @@ -355,6 +368,8 @@ static int print_events_table_entry(voi

Re: [PATCH v2 1/2] drm: allow limiting the scatter list size.

2020-09-06 Thread Gerd Hoffmann
> > + /** > > +* @max_segment: > > +* > > +* Max size for scatter list segments. When unset the default > > +* (SCATTERLIST_MAX_SEGMENT) is used. > > +*/ > > + size_t max_segment; > > Is there no better place for this then "at the bottom"? drm_device is a > huge structure,

[PATCH v2] net: wireless: wlcore: fix support for IGTK key

2020-09-06 Thread Mauro Carvalho Chehab
Changeset 2b7aadd3b9e1 ("wlcore: Adding suppoprt for IGTK key in wlcore driver") added support for AEC CMAC cipher suite. However, this only works with the very newest firmware version (8.9.0.0.83). Such firmware weren't even pushed to linux-firmware git tree yet: https://git.ti.com/cgit/

Re: [PATCH v2 4/5] perf record: Don't clear event's period if set by a term

2020-09-06 Thread Adrian Hunter
On 4/09/20 8:43 am, Ian Rogers wrote: > On Tue, Aug 4, 2020 at 8:50 AM Ian Rogers wrote: >> On Tue, Aug 4, 2020 at 7:49 AM Adrian Hunter wrote: >>> On 4/08/20 4:33 pm, Ian Rogers wrote: On Tue, Aug 4, 2020 at 3:08 AM Adrian Hunter wrote: > On 28/07/20 11:57 am, Ian Rogers wrote: >

Re: [PATCH v1 2/2] fbdev: radeonfb:use generic power management

2020-09-06 Thread Vaibhav Gupta

Re: [PATCH v1 1/2] video: fbdev: aty: radeon_pm: remove redundant CONFIG_PM container

2020-09-06 Thread Vaibhav Gupta

Re: [PATCH] crypto: sa2ul - Select CRYPTO_AUTHENC

2020-09-06 Thread J, KEERTHY
On 9/7/2020 11:52 AM, Herbert Xu wrote: Resend with new subject. Thanks Herbert. Reviewed-by: Keerthy ---8<--- The sa2ul driver uses crypto_authenc_extractkeys and therefore must select CRYPTO_AUTHENC. Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver") Reported-by: kernel test

[PATCH v3 1/2] drm: allow limiting the scatter list size.

2020-09-06 Thread Gerd Hoffmann
Add max_segment argument to drm_prime_pages_to_sg(). When set pass it through to the __sg_alloc_table_from_pages() call, otherwise use SCATTERLIST_MAX_SEGMENT. Also add max_segment field to drm driver and pass it to drm_prime_pages_to_sg() calls in drivers and helpers. v2: place max_segment in d

Re: [PATCH v1 0/2] video: fbdev: radeonfb: PCI PM framework upgrade and fix-ups.

2020-09-06 Thread Vaibhav Gupta
Please review this patch-series. Thank you Vaibhav Gupta

[PATCH v3 2/2] drm/virtio: set max_segment

2020-09-06 Thread Gerd Hoffmann
When initializing call virtio_max_dma_size() to figure the scatter list limit. Needed to make virtio-gpu work properly with SEV. v2: place max_segment in drm driver not gem object. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_kms.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH net] can: j1939: j1939_sk_bind(): return failure if netdev is down

2020-09-06 Thread Zhang Changzhong
When a netdev down event occurs after a successful call to j1939_sk_bind(), j1939_netdev_notify() can handle it correctly. But if the netdev already in down state before calling j1939_sk_bind(), j1939_sk_release() will stay in wait_event_interruptible() blocked forever. Because in this case, j1939

RE: [RESEND][PATCH v3] x86/apic/flat64: Add back the early_param("apic", parse_apic)

2020-09-06 Thread Dexuan Cui
> From: Thomas Gleixner > Sent: Friday, July 17, 2020 6:03 AM > [...] Hi, I'm very sorry for this extremely late reply -- I was sidetracked by something else and I just had a chance to revisit the issue. Thank you tglx for the comments and suggestions, which I think are reasonable. I realized th

[PATCH] crypto: sun4i-ss - Fix SHA1 hash on A33-variant with BE CPU

2020-09-06 Thread Herbert Xu
On Sun, Sep 06, 2020 at 04:52:24PM +0800, kernel test robot wrote: > > >> drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c:483:35: sparse: sparse: > >> incorrect type in assignment (different base types) @@ expected > >> unsigned int [assigned] [usertype] v @@ got restricted __le32 > >>

[PATCH] crypto: sa2ul - Select CRYPTO_AUTHENC

2020-09-06 Thread Herbert Xu
Resend with new subject. ---8<--- The sa2ul driver uses crypto_authenc_extractkeys and therefore must select CRYPTO_AUTHENC. Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver") Reported-by: kernel test robot Signed-off-by: Herbert Xu diff --git a/drivers/crypto/Kconfig b/drivers/crypto/

Re: [PATCH v3] usb: dwc3: Stop active transfers before halting the controller

2020-09-06 Thread Felipe Balbi
Hi, Wesley Cheng writes: > diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c > index 59f2e8c31bd1..456aa87e8778 100644 > --- a/drivers/usb/dwc3/ep0.c > +++ b/drivers/usb/dwc3/ep0.c > @@ -197,7 +197,7 @@ int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct > usb_request *request, >

Re: [PATCH] /dev/zero: also implement ->read

2020-09-06 Thread Christoph Hellwig
On Mon, Sep 07, 2020 at 12:34:37AM +0200, Rasmus Villemoes wrote: > On 03/09/2020 17.59, Christoph Hellwig wrote: > > Christophe reported a major speedup due to avoiding the iov_iter > > overhead, so just add this trivial function. Note that /dev/zero > > already implements both an iter and non-it

Re: [PATCH] RISC-V: Allow drivers to provide custom read_cycles64 for M-mode kernel

2020-09-06 Thread Christoph Hellwig
On Sat, Sep 05, 2020 at 11:05:48AM +0530, Anup Patel wrote: > Your patch will also break if the SOC specific timer has a 32bit > free-running counter > unlike the 64bit free-running counter found on CLINT. > > I guess it's better to let the SOC timer driver provide the > method/function to read th

Re: [PATCH v7 3/3] fpga: dfl: add support for N3000 Nios private feature

2020-09-06 Thread Xu Yilun
On Fri, Sep 04, 2020 at 05:45:12PM -0700, Moritz Fischer wrote: > Hi Xu, > > On Wed, Aug 19, 2020 at 03:45:21PM +0800, Xu Yilun wrote: > > This patch adds support for the Nios handshake private feature on Intel > > PAC (Programmable Acceleration Card) N3000. > > > > The Nios is the embedded proce

drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:78:62: sparse: sparse: Using plain integer as NULL pointer

2020-09-06 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f4d51dffc6c01a9e94650d95ce0104964f8ae822 commit: a66cbdd6573db8515735d37793c22605432c346d mt76: mt7615: introduce mt7663s support date: 7 weeks ago config: ia64-randconfig-s032-20200907 (attached as .confi

RE: [PATCH v3 00/16] arm/arm64: Turning IPIs into normal interrupts

2020-09-06 Thread hasegawa-hit...@fujitsu.com
Hi Marc. I am interested in this feature. I have confirmed this patch works fine on Fujitsu FX1000. Thanks for creating it. I look forward to the day when this patch is merged. We plan to post a patch that implements IPI for CPU stop Interrupt (for crash dump) with pseudo NMI. Tested-by: Hitomi

Re: [PATCH] cpufreq,cppc: fix issue when hotplugging out policy->cpu

2020-09-06 Thread Viresh Kumar
On 04-09-20, 10:43, Ionela Voinescu wrote: > Do you know why it was designed this way in the first place? No. > I assumed it was designed like this (per-cpu cppc_cpudata structures) to > allow for the future addition of support for the HW_ALL CPPC coordination > type. In that case you can still h

Re: [PATCH v2 2/3] soc: sifive: Add SiFive specific Cadence DDR controller driver

2020-09-06 Thread Christoph Hellwig
On Mon, Sep 07, 2020 at 11:17:58AM +0530, Yash Shah wrote: > Add a driver to manage the Cadence DDR controller present on SiFive SoCs > At present the driver manages the EDAC feature of the DDR controller. > Additional features may be added to the driver in future to control > other aspects of the

Re: [PATCH v3 12/14] dt-bindings: mtd: gpmi-nand: Fix matching of clocks on different SoCs

2020-09-06 Thread Krzysztof Kozlowski
On Fri, Sep 04, 2020 at 04:36:39PM -0600, Rob Herring wrote: > On Fri, Sep 4, 2020 at 9:25 AM Krzysztof Kozlowski wrote: > > > > Driver requires different amount of clocks for different SoCs. Describe > > these requirements properly to fix dtbs_check warnings like: > > > > arch/arm64/boot/dts

Re: [PATCH 14/20] usb/phy: mxs-usb: Use pm_ptr() macro

2020-09-06 Thread Felipe Balbi
Paul Cercueil writes: > Use the newly introduced pm_ptr() macro, and mark the suspend/resume > functions __maybe_unused. These functions can then be moved outside the > CONFIG_PM_SUSPEND block, and the compiler can then process them and > detect build failures independently of the config. If unus

[tip: core/build] arm/boot: Warn on orphan section placement

2020-09-06 Thread tip-bot2 for Kees Cook
The following commit has been merged into the core/build branch of tip: Commit-ID: 4409d2f8dfe7d5088567d4ba00133f876ee586c7 Gitweb: https://git.kernel.org/tip/4409d2f8dfe7d5088567d4ba00133f876ee586c7 Author:Kees Cook AuthorDate:Tue, 01 Sep 2020 19:53:45 -07:00 Committer:

[tip: core/build] arm64/build: Warn on orphan section placement

2020-09-06 Thread tip-bot2 for Kees Cook
The following commit has been merged into the core/build branch of tip: Commit-ID: b3e5d80d0c48c0cc7bce56473672f4e6e1210910 Gitweb: https://git.kernel.org/tip/b3e5d80d0c48c0cc7bce56473672f4e6e1210910 Author:Kees Cook AuthorDate:Tue, 01 Sep 2020 19:53:43 -07:00 Committer:

[tip: core/build] x86/build: Warn on orphan section placement

2020-09-06 Thread tip-bot2 for Kees Cook
The following commit has been merged into the core/build branch of tip: Commit-ID: 83109d5d5fba7abf362f5a443c9f4c4ea10bbc8d Gitweb: https://git.kernel.org/tip/83109d5d5fba7abf362f5a443c9f4c4ea10bbc8d Author:Kees Cook AuthorDate:Tue, 01 Sep 2020 19:53:46 -07:00 Committer:

[tip: core/build] arm/build: Warn on orphan section placement

2020-09-06 Thread tip-bot2 for Kees Cook
The following commit has been merged into the core/build branch of tip: Commit-ID: 5a17850e251a55bba6d65aefbfeacfa9888cd2cd Gitweb: https://git.kernel.org/tip/5a17850e251a55bba6d65aefbfeacfa9888cd2cd Author:Kees Cook AuthorDate:Tue, 01 Sep 2020 19:53:44 -07:00 Committer:

[tip: core/build] x86/boot/compressed: Warn on orphan section placement

2020-09-06 Thread tip-bot2 for Kees Cook
The following commit has been merged into the core/build branch of tip: Commit-ID: 6e0bf0e0e55000742a53c5f3b58f8669e0091a11 Gitweb: https://git.kernel.org/tip/6e0bf0e0e55000742a53c5f3b58f8669e0091a11 Author:Kees Cook AuthorDate:Tue, 01 Sep 2020 19:53:47 -07:00 Committer:

Re: remove set_fs for riscv

2020-09-06 Thread Christoph Hellwig
On Mon, Sep 07, 2020 at 12:14:59AM +0200, Arnd Bergmann wrote: > I've had a first pass at this now, see > > https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=arm-kill-set_fs > > There are a couple of things in there that ended up uglier than I was > hoping for, and it's c

[PATCH 7/8] riscv: implement __get_kernel_nofault and __put_user_nofault

2020-09-06 Thread Christoph Hellwig
Implement the non-faulting kernel access helpers directly instead of abusing the uaccess routines under set_fs(KERNEL_DS). Signed-off-by: Christoph Hellwig --- arch/riscv/include/asm/uaccess.h | 20 1 file changed, 20 insertions(+) diff --git a/arch/riscv/include/asm/uacces

[PATCH 3/8] asm-generic: add nommu implementations of __{get,put}_kernel_nofault

2020-09-06 Thread Christoph Hellwig
Add native implementations of __{get,put}_kernel_nofault using {get,put}_unaligned, just like the {get,put}_user implementations. Signed-off-by: Christoph Hellwig --- include/asm-generic/uaccess.h | 16 1 file changed, 16 insertions(+) diff --git a/include/asm-generic/uaccess.h

[PATCH 5/8] riscv: use memcpy based uaccess for nommu again

2020-09-06 Thread Christoph Hellwig
This reverts commit adccfb1a805ea84d2db38eb53032533279bdaa97. Now that the generic uaccess by mempcy code handles unaligned addresses the generic code can be used for all RISC-V CPUs. Signed-off-by: Christoph Hellwig --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/uaccess.h

[PATCH 8/8] riscv: remove address space overrides using set_fs()

2020-09-06 Thread Christoph Hellwig
Stop providing the possibility to override the address space using set_fs() now that there is no need for that any more. Signed-off-by: Christoph Hellwig --- arch/riscv/Kconfig | 1 - arch/riscv/include/asm/thread_info.h | 6 -- arch/riscv/include/asm/uaccess.h | 27 +

remove set_fs for riscv v2

2020-09-06 Thread Christoph Hellwig
Hi all, this series converts riscv to the new set_fs less world and is on top of this branch: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/log/?h=base.set_fs The first four patches are general improvements and enablement for all nommu ports, and might make sense to merge thr

[PATCH 6/8] riscv: refactor __get_user and __put_user

2020-09-06 Thread Christoph Hellwig
Add new __get_user_nocheck and __put_user_nocheck that switch on the size and call the actual inline assembly helpers, and move the uaccess enable / disable into the actual __get_user and __put_user. This prepares for natively implementing __get_kernel_nofault and __put_kernel_nofault. Also don't

[PATCH 4/8] asm-generic: make the set_fs implementation optional

2020-09-06 Thread Christoph Hellwig
Put all the set_fs related code under CONFIG_SET_FS so that asm-generic/uaccess.h can be used for set_fs-less builds. Signed-off-by: Christoph Hellwig --- include/asm-generic/uaccess.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uacce

[PATCH 1/8] uaccess: provide a generic TASK_SIZE_MAX definition

2020-09-06 Thread Christoph Hellwig
Define TASK_SIZE_MAX as TASK_SIZE if not otherwise defined. Signed-off-by: Christoph Hellwig --- include/linux/uaccess.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index 70073c802b48ed..d0e43761c708d8 100644 --- a/include/linux/uacce

[PATCH 2/8] asm-generic: improve the nommu {get,put}_user handling

2020-09-06 Thread Christoph Hellwig
Instead of reusing raw_{copy,to}_from_user implement separate handlers using {get,put}_unaligned. This ensures unaligned access is handled correctly, and avoid the need for the small constant size optimization in raw_{copy,to}_from_user. Signed-off-by: Christoph Hellwig --- include/asm-generic/

Re: [PATCH v2 2/3] soc: sifive: Add SiFive specific Cadence DDR controller driver

2020-09-06 Thread Randy Dunlap
On 9/6/20 10:47 PM, Yash Shah wrote: > diff --git a/drivers/soc/sifive/Kconfig b/drivers/soc/sifive/Kconfig > index 58cf8c4..f41d8fe 100644 > --- a/drivers/soc/sifive/Kconfig > +++ b/drivers/soc/sifive/Kconfig > @@ -7,4 +7,10 @@ config SIFIVE_L2 > help > Support for the L2 cache contr

[PATCH v2 1/3] dt-bindings: riscv: Add DT documentation for DDR Controller in SiFive SoCs

2020-09-06 Thread Yash Shah
Add device tree bindings for SiFive FU540 DDR controller driver Signed-off-by: Yash Shah Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt --- .../devicetree/bindings/riscv/sifive-ddr.yaml | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/d

[PATCH v2 0/3] SiFive DDR controller and EDAC support

2020-09-06 Thread Yash Shah
The series add supports for SiFive DDR controller driver. This driver is use to manage the Cadence DDR controller present in SiFive SoCs. Currently it manages only the EDAC feature of the DDR controller. The series also adds Memory controller EDAC support for SiFive platform. It register for notifi

[PATCH v2 3/3] EDAC/sifive: Add EDAC support for Memory Controller in SiFive SoCs

2020-09-06 Thread Yash Shah
Add Memory controller EDAC support to the SiFive platform EDAC driver. It registers for ECC notifier events from the memory controller. Signed-off-by: Yash Shah Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt --- drivers/edac/Kconfig | 2 +- drivers/edac/sifive_edac.c | 119 ++

[PATCH v2 2/3] soc: sifive: Add SiFive specific Cadence DDR controller driver

2020-09-06 Thread Yash Shah
Add a driver to manage the Cadence DDR controller present on SiFive SoCs At present the driver manages the EDAC feature of the DDR controller. Additional features may be added to the driver in future to control other aspects of the DDR controller. Signed-off-by: Yash Shah Reviewed-by: Palmer Dabb

Re: [PATCH V2] sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output

2020-09-06 Thread Greg Kroah-Hartman
On Sun, Sep 06, 2020 at 10:24:20AM -0700, Joe Perches wrote: > On Sat, 2020-08-29 at 16:48 -0700, Joe Perches wrote: > > Output defects can exist in sysfs content using sprintf and snprintf. > > > > sprintf does not know the PAGE_SIZE maximum of the temporary buffer > > used for outputting sysfs c

Re: [Linux-kernel-mentees] [PATCH] block : Fix use-after-free Read in delete_partition

2020-09-06 Thread Greg Kroah-Hartman
On Mon, Sep 07, 2020 at 01:41:56AM +0530, Anant Thazhemadam wrote: > A use-after-free read of the kobject member being casted out to the > device structure containing it seems to be potentially possible > due to unsafe casting using container_of (since an edge case such > as when the ptr being cast

[PATCH 5/7] dt-bindings: pci: layerscape-pci: Update the description of SCFG property

2020-09-06 Thread Zhiqiang Hou
From: Hou Zhiqiang Update the description of the second entry of 'fsl,pcie-scfg' property, as the LS1043A PCIe controller also has some control registers in SCFG block, while it has 3 controllers. Signed-off-by: Hou Zhiqiang --- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 2 +-

[PATCH 6/7] dts: arm64: ls1043a: Add SCFG phandle for PCIe nodes

2020-09-06 Thread Zhiqiang Hou
From: Hou Zhiqiang The LS1043A PCIe controller has some control registers in SCFG block, so add the SCFG phandle for each PCIe controller DT node. Signed-off-by: Hou Zhiqiang --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/bo

[PATCH 7/7] PCI: layerscape: Add power management support

2020-09-06 Thread Zhiqiang Hou
From: Hou Zhiqiang Add PME_Turn_Off/PME_TO_Ack handshake sequence, and finally put the PCIe controller into D3 state after the L2/L3 ready state transition process completion. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pci-layerscape.c | 384 ++- drivers/pci/co

[PATCH 1/7] PCI: dwc: Fix a bug of the case dw_pci->ops is NULL

2020-09-06 Thread Zhiqiang Hou
From: Hou Zhiqiang The dw_pci->ops may be a NULL, and fix it by adding one more check. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pcie-designware.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/d

[PATCH 4/7] arm64: dts: layerscape: Add big-endian property for PCIe nodes

2020-09-06 Thread Zhiqiang Hou
From: Hou Zhiqiang Add the big-endian property for LS1012A, LS1043A and LS1046A PCIe devicetree nodes. Signed-off-by: Hou Zhiqiang --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 + arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++ arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi |

[PATCH 3/7] dt-bindings: pci: layerscape-pci: Add a optional property big-endian

2020-09-06 Thread Zhiqiang Hou
From: Hou Zhiqiang This property is to indicate the endianness when accessing the PEX_LUT and PF register block, so if these registers are implemented in big-endian, specify this property. Signed-off-by: Hou Zhiqiang --- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 4 1 file

[PATCH 2/7] PCI: layerscape: Change to use the DWC common link-up check function

2020-09-06 Thread Zhiqiang Hou
From: Hou Zhiqiang The current Layerscape PCIe driver directly uses the physical layer LTSSM code to check the link-up state, which treats the > L0 states as link-up. This is not correct, since there is not explicit map between link-up state and LTSSM. So this patch changes to use the DWC common

[PATCH 0/7] PCI: layerscape: Add power management support

2020-09-06 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch series is to add PCIe power management support for NXP Layerscape platfroms. Hou Zhiqiang (7): PCI: dwc: Fix a bug of the case dw_pci->ops is NULL PCI: layerscape: Change to use the DWC common link-up check function dt-bindings: pci: layerscape-pci: Add a opti

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

2020-09-06 Thread Jason Wang
On 2020/9/4 下午9:21, Jie Deng wrote: On 2020/9/4 12:06, Jason Wang wrote: diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 293e7a0..70c8e30 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -21,6 +21,17 @@ config I2C_ALI1535     This dr

Re: sa2ul.c:undefined reference to `crypto_authenc_extractkeys'

2020-09-06 Thread Herbert Xu
On Mon, Sep 07, 2020 at 11:12:53AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: f4d51dffc6c01a9e94650d95ce0104964f8ae822 > commit: d2c8ac187fc922e73930a1b2f6a211e27f595d01 crypto: sa2ul - Add AEAD > algorithm suppo

Re: [PATCH] /dev/zero: also implement ->read

2020-09-06 Thread Christophe Leroy
Le 06/09/2020 à 22:52, David Laight a écrit : From: Christophe Leroy Sent: 06 September 2020 19:36 Hi, Le 06/09/2020 à 20:21, Pavel Machek a écrit : Hi! Christophe reported a major speedup due to avoiding the iov_iter overhead, so just add this trivial function. Note that /dev/zero alrea

[PATCH v3 2/2] dt-bindings: leds: Convert pwm to yaml

2020-09-06 Thread Alexander Dahl
The example was adapted slightly to make use of the 'function' and 'color' properties. Suggested-by: Jacek Anaszewski Signed-off-by: Alexander Dahl Acked-by: Jacek Anaszewski --- Notes: v2 -> v3: * change license identifier to recommended one * added Acked-by .../devicetree/b

[PATCH v3 0/2] leds: pwm: Make automatic labels work

2020-09-06 Thread Alexander Dahl
Hei hei, for leds-gpio you can use the properties 'function' and 'color' in the devicetree node and omit 'label', the label is constructed automatically. This is a common feature supposed to be working for all LED drivers. However it did not yet work for the 'leds-pwm' driver. This series fixes

[PATCH v3 1/2] leds: pwm: Allow automatic labels for DT based devices

2020-09-06 Thread Alexander Dahl
If LEDs are configured through device tree and the property 'label' is omitted, the label is supposed to be generated from the properties 'function' and 'color' if present. While this works fine for e.g. the 'leds-gpio' driver, it did not for 'leds-pwm'. The reason is, you get this label naming m

Re: [GIT PULL] xen: branch for v5.9-rc4

2020-09-06 Thread Jürgen Groß
On 06.09.20 19:01, Linus Torvalds wrote: On Sat, Sep 5, 2020 at 9:44 PM Juergen Gross wrote: It contains a small series for fixing a problem with Xen PVH guests when running as backends (e.g. as dom0). Mapping other guests' memory now is working via ZONE_DEVICE, thus not requiring to abuse the

[PATCH v5 3/7] perf util: Compare two streams

2020-09-06 Thread Jin Yao
Stream is the branch history which is aggregated by the branch records from perf samples. Now we support the callchain as stream. If the callchain entries of one stream are fully matched with the callchain entries of another stream, we think two streams are matched. For example, cycles: 1, hi

[PATCH v5 7/7] perf diff: Support hot streams comparison

2020-09-06 Thread Jin Yao
This patch enables perf-diff with "--stream" option. "--stream": Enable hot streams comparison Now let's see examples. perf record -b ... Generate perf.data.old with branch data perf record -b ... Generate perf.data with branch data perf diff --stream [ Matched hot streams ] hot chai

[PATCH v5 1/7] perf util: Create streams

2020-09-06 Thread Jin Yao
We define the stream is the branch history which is aggregated by the branch records from perf samples. For example, the callchains aggregated from the branch records are considered as streams. By browsing the hot stream, we can understand the hot code path. Now we only support the callchain for s

[PATCH v5 6/7] perf util: Report hot streams

2020-09-06 Thread Jin Yao
We show the streams separately. They are divided into different sections. 1. "Matched hot streams" 2. "Hot streams in old perf data only" 3. "Hot streams in new perf data only". For each stream, we report the cycles and hot percent (hits%). For example, cycles: 2, hits: 4.08% --

[PATCH v5 5/7] perf util: Calculate the sum of total streams hits

2020-09-06 Thread Jin Yao
We have used callchain_node->hit to measure the hot level of one stream. This patch calculates the sum of hits of total streams. Thus in next patch, we can use following formula to report hot percent for one stream. hot percent = callchain_node->hit / sum of total hits Signed-off-by: Jin Yao --

[PATCH v5 0/7] perf: Stream comparison

2020-09-06 Thread Jin Yao
Sometimes, a small change in a hot function reducing the cycles of this function, but the overall workload doesn't get faster. It is interesting where the cycles are moved to. What it would like is to diff before/after streams. The stream is the branch history which is aggregated by the branch rec

[PATCH v5 4/7] perf util: Link stream pair

2020-09-06 Thread Jin Yao
In previous patch, we have created an evsel_streams for one event, and top N hottest streams will be saved in a stream array in evsel_streams. This patch compares total streams among two evsel_streams. Once two streams are fully matched, they will be linked as a pair. From the pair, we can know w

[PATCH v5 2/7] perf util: Get the evsel_streams by evsel_idx

2020-09-06 Thread Jin Yao
In previous patch, we have created evsel_streams array This patch returns the specified evsel_streams according to the evsel_idx. Signed-off-by: Jin Yao --- v5: - Rebase to perf/core v4: - Rename the patch from 'perf util: Return per-event callchain streams' to 'perf util: Get the

[PATCH] ASoC: rt5682: Have global name clock option for parent clk

2020-09-06 Thread Akshu Agrawal
When adding parent clk(mclk) to wclk, this adds fallback option for the case where global clk name is used. Signed-off-by: Akshu Agrawal --- sound/soc/codecs/rt5682.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 93ebf0279b62..269

[PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-09-06 Thread Po-Hsu Lin
The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh needs the fou module to work. Otherwise it will fail with: $ ip netns exec "$testns" ip fou add port ipproto 47 RTNETLINK answers: No such file or directory Error talking to the kernel Add the CONFIG_NET_FOU into the c

Re: [PATCH v9 0/2] phy: Add USB PHY support on Intel LGM SoC

2020-09-06 Thread Ramuthevar, Vadivel MuruganX
Hi Kishon, Vinod, Kindly, can you please merge it if there's no further comments. Rob given Reviewed-by tag to USB-PHY dt_schema YAML patch. Philipp Zabel given Reviewed-by tag to USB-PHY driver patch. Please consider and do the needful. Regards Vadivel On 28/8/2020 10:23 am, Ramutheva

[PATCH 5/9] perf metric: Release expr_parse_ctx after testing

2020-09-06 Thread Namhyung Kim
The test_generic_metric() missed to release entries in the pctx. Asan reported following leak (and more): Direct leak of 128 byte(s) in 1 object(s) allocated from: #0 0x7f4c9396980e in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10780e) #1 0x55f7e748cc14 in hashmap_grow (/home/namhyung

[PATCH 6/9] perf metric: Free metric when it failed to resolve

2020-09-06 Thread Namhyung Kim
The metricgroup__add_metric() can find multiple match for a metric group and it's possible to fail. Also it can fail in the middle like in resolve_metric() even for single metric. In those cases, the intermediate list and ids will be leaked like: Direct leak of 3 byte(s) in 1 object(s) allocat

[PATCH 9/9] perf test: Free formats for perf pmu parse test

2020-09-06 Thread Namhyung Kim
The following leaks were detected by ASAN: Indirect leak of 360 byte(s) in 9 object(s) allocated from: #0 0x7fecc305180e in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10780e) #1 0x560578f6dce5 in perf_pmu__new_format util/pmu.c:1333 #2 0x560578f752fc in perf_pmu_parse util/pmu.y:59

[PATCH 1/9] perf evlist: Fix cpu/thread map leak

2020-09-06 Thread Namhyung Kim
Asan reported leak of cpu and thread maps as they have one more refcount than released. I found that after setting evlist maps it should release it's refcount. It seems to be broken from the beginning so I chose the original commit as the culprit. But not sure how it's applied to stable trees si

[PATCH 3/9] perf parse-event: Fix memory leak in evsel->unit

2020-09-06 Thread Namhyung Kim
The evsel->unit borrows a pointer of pmu event or alias instead of owns a string. But tool event (duration_time) passes a result of strdup() caused a leak. It was found by ASAN during metric test: Direct leak of 210 byte(s) in 70 object(s) allocated from: #0 0x7fe366fca0b5 in strdup (/lib/

Re: [PATCH v3 1/3] dt-bindings: iommu: Add binding for MediaTek MT8167 IOMMU

2020-09-06 Thread Yong Wu
On Sun, 2020-09-06 at 17:19 +0200, Fabien Parent wrote: > This commit adds IOMMU binding documentation and larb port definitions > for the MT8167 SoC. > > Signed-off-by: Fabien Parent > Acked-by: Rob Herring > --- > > V3: Added mt8167-larb-port.h file for iommu port definitions > V2: no change

[PATCH 7/9] perf metric: Do not free metric when failed to resolve

2020-09-06 Thread Namhyung Kim
It's dangerous to free the original metric when it's called from resolve_metric() as it's already in the metric_list and might have other resources too. Instead, it'd better let them bail out and be released properly at the later stage. So add a check when it's called from metricgroup__add_metric

[PATCH 4/9] perf test: Fix memory leaks in parse-metric test

2020-09-06 Thread Namhyung Kim
It didn't release resources when there's an error so the test_recursion_fail() will leak some memory. Fixes: 0a507af9c681a ("perf tests: Add parse metric test for ipc metric") Signed-off-by: Namhyung Kim --- tools/perf/tests/parse-metric.c | 14 +- 1 file changed, 9 insertions(+), 5

[PATCHSET 0/9] perf tools: Fix various memory leaks

2020-09-06 Thread Namhyung Kim
Hello, I've found and fixed a bunch of memory leaks during perf pmu and metric tests with address sanitizer. Before this, the tests were mostly failed due to the leaks since ASAN makes it return non-zero. Now I'm seeing no error with ASAN like below: $ ./perf test pmu metric 9: Parse perf

[PATCH 8/9] perf test: Free aliases for PMU event map aliases test

2020-09-06 Thread Namhyung Kim
The aliases were never released causing the following leaks: Indirect leak of 1224 byte(s) in 9 object(s) allocated from: #0 0x7feefb830628 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x107628) #1 0x56332c8f1b62 in __perf_pmu__new_alias util/pmu.c:322 #2 0x56332c8f401f in pmu_add_c

[PATCH 2/9] perf parse-event: Fix cpu map leaks

2020-09-06 Thread Namhyung Kim
Like evlist cpu map, evsel's cpu map should have proper refcount by releasing the original count after creation. This fixes the following ASAN report: Direct leak of 840 byte(s) in 70 object(s) allocated from: #0 0x7fe36703f628 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x107628) #1

Re: [PATCH v3 3/3] iommu/mediatek: add support for MT8167

2020-09-06 Thread Yong Wu
On Sun, 2020-09-06 at 17:19 +0200, Fabien Parent wrote: > Add support for the IOMMU on MT8167 > > Signed-off-by: Fabien Parent > --- > > V3: > * use LEGACY_IVRP_PADDR flag instead of using a platform data member > V2: > * removed if based on m4u_plat, and using instead the new >

[PATCH] PM: : fix @em_pd kernel-doc warning

2020-09-06 Thread Randy Dunlap
From: Randy Dunlap Fix kernel-doc warning in : ../include/linux/device.h:613: warning: Function parameter or member 'em_pd' not described in 'device' Fixes: 1bc138c62295 ("PM / EM: add support for other devices than CPUs in Energy Model") Signed-off-by: Randy Dunlap Cc: Lukasz Luba Cc: Rafa

  1   2   3   4   >