Re: [PATCH v2] exfat: integrates dir-entry getting and validation

2020-07-29 Thread Tetsuhiro Kohada
On 2020/07/15 10:22, Tetsuhiro Kohada wrote: Add validation for num, bh and type on getting dir-entry. ('file' and 'stream-ext' dir-entries are pre-validated to ensure success) Renamed exfat_get_dentry_cached() to exfat_get_validated_dentry() due to a change in functionality. Integrate

[PATCH v1 0/3] net: ethernet: use generic power management

2020-07-29 Thread Vaibhav Gupta
Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to upgrade power management in net ethernet drivers. This has been done by upgrading .suspend() and .resume() callbacks. The upgrade makes sure that the involvement of PCI Core does not change the order of

Re: linux-next: build failure after merge of the char-misc tree

2020-07-29 Thread Oded Gabbay
Great, thanks! Oded On Tue, Jul 28, 2020 at 8:19 PM Greg KH wrote: > > On Tue, Jul 28, 2020 at 07:17:05PM +0200, Greg KH wrote: > > On Tue, Jul 28, 2020 at 06:23:59PM +1000, Stephen Rothwell wrote: > > > Hi Greg, > > > > > > On Tue, 28 Jul 2020 09:53:36 +0200 Greg KH wrote: > > > > > > > > On

Re: [PATCH v2 1/5] dt-bindings: ARM: Mediatek: Document bindings for MT8192

2020-07-29 Thread Enric Balletbo Serra
Hi Weiyu, Thanks for the patch, some comments below. I am not sure what maintainers think but your patches, in general, are really big and I'm wondering if wouldn't be better split by functionalities. Will make your series much longer but easy to review in my opinion. Anyway, I'm going to comment

Re: [PATCH net-nex 2/2] net: mvneta: Don't speed down the PHY when changing mtu

2020-07-29 Thread Jisheng Zhang
Hi David, On Tue, 28 Jul 2020 17:52:02 -0700 (PDT) David Miller wrote: > > > > @@ -3651,7 +3651,8 @@ static void mvneta_stop_dev(struct mvneta_port *pp) > > > > set_bit(__MVNETA_DOWN, >state); > > > > - if (device_may_wakeup(>dev->dev)) > > + if (device_may_wakeup(>dev->dev) && >

Re: Kernel panic - not syncing: IO-APIC + timer doesn't work!

2020-07-29 Thread Thomas Gleixner
Scott, Scott Branden writes: > On 2020-07-28 1:22 a.m., Thomas Gleixner wrote: >> Scott Branden writes: >>> Bios now updated to latest.  Same kernel panic issue.  Log below. >>> >>> I think it is related to power cycling quickly. >>> Should APIC work if PC power cycled in a few seconds or is

[PATCH net-next v2] net: mvneta: fix comment about phylink_speed_down

2020-07-29 Thread Jisheng Zhang
mvneta has switched to phylink, so the comment should look like "We may have called phylink_speed_down before". Signed-off-by: Jisheng Zhang --- Since v1: - drop patch2 which tries to avoid link flapping when changing mtu I need more time on the change mtu refactoring.

Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting

2020-07-29 Thread Vladimir Oltean
On Wed, Jul 29, 2020 at 10:40:29AM +0200, Kurt Kanzenbach wrote: > Hi Alison, > > On Wed Jul 29 2020, Alison Wang wrote: > > In the current arm64 defconfig, CONFIG_IRQ_TIME_ACCOUNTING is enabled as > > default. According to my tests on NXP's LayerScape and i.MX platforms, > > the system hangs

Re: [Linux-kernel-mentees] [PATCH] block/floppy: Prevent kernel-infoleak in raw_cmd_copyout()

2020-07-29 Thread Peilin Ye
On Wed, Jul 29, 2020 at 12:18:42PM +0300, Denis Efremov wrote: > > > On 7/28/20 5:19 PM, Peilin Ye wrote: > > raw_cmd_copyout() is potentially copying uninitialized kernel stack memory > > since it is initializing `cmd` by assignment, which may cause the compiler > > to leave uninitialized holes

[tip:master] BUILD SUCCESS 4733c2b49742380fa501009f4ee9b8d2ee44c66a

2020-07-29 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master branch HEAD: 4733c2b49742380fa501009f4ee9b8d2ee44c66a Merge branch 'WIP.x86/entry' elapsed time: 1203m configs tested: 51 configs skipped: 2 The following configs have been built successfully. More configs may be

Re: general protection fault in vsock_poll

2020-07-29 Thread Stefano Garzarella
On Wed, Jul 29, 2020 at 01:59:05AM -0700, syzbot wrote: > syzbot has bisected this issue to: > > commit 408624af4c89989117bb2c6517bd50b7708a2fcd > Author: Stefano Garzarella > Date: Tue Dec 10 10:43:06 2019 + > > vsock: use local transport when it is loaded > > bisection log:

Re: Minor RST rant

2020-07-29 Thread peterz
On Tue, Jul 28, 2020 at 11:28:28AM -0400, Steven Rostedt wrote: > Sometimes I do look at the html output on kernel.org, and it is nicely > organized. The future of developers will probably prefer that format > over plain text whether we like it or not, so I encourage that we The future is doomed.

Re: [RFC PATCH 0/6] decrease unnecessary gap due to pmem kmem alignment

2020-07-29 Thread David Hildenbrand
On 29.07.20 11:31, Mike Rapoport wrote: > Hi Justin, > > On Wed, Jul 29, 2020 at 08:27:58AM +, Justin He wrote: >> Hi David Without this series, if qemu creates a 4G bytes nvdimm device, we can >>> only use 2G bytes for dax pmem(kmem) in the worst case. e.g.

[PATCH] gpio: sprd: Clear interrupt when setting the type as edge

2020-07-29 Thread Chunyan Zhang
From: Taiping Lai The raw interrupt status of GPIO maybe set before the interrupt is enabled, which would trigger the interrupt event once enabled it from user side. This is the case for edge interrupts only. Adding a clear operation when setting interrupt type can avoid that. Fixes:

Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Alexander Graf
On 29.07.20 11:22, Vitaly Kuznetsov wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. Alexander Graf writes: On 29.07.20 10:23, Vitaly Kuznetsov wrote: Jim

Re: [PATCH] virtio_balloon: fix up endian-ness for free cmd id

2020-07-29 Thread Jason Wang
On 2020/7/28 上午12:03, Michael S. Tsirkin wrote: free cmd id is read using virtio endian, spec says all fields in balloon are LE. Fix it up. Fixes: 86a559787e6f ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT") Cc: sta...@vger.kernel.org Signed-off-by: Michael S. Tsirkin ---

答复: [PATCH v3] drm/hisilicon: Fixed the warning: Assignment of 0/1 to bool variable

2020-07-29 Thread tiantao (H)
Hi Thomas: Thank you very much . Best -邮件原件- 发件人: Thomas Zimmermann [mailto:tzimmerm...@suse.de] 发送时间: 2020年7月29日 16:35 收件人: tiantao (H) ; airl...@linux.ie; dan...@ffwll.ch; kra...@redhat.com; alexander.deuc...@amd.com; t...@linutronix.de; dri-de...@lists.freedesktop.org;

Re: [PATCH v2 5/5] clk: mediatek: Add MT8192 clock support

2020-07-29 Thread Enric Balletbo Serra
Hi Weiyi, Thank you for your patch. Some few comment below, I'll focus on clk-mt8192-mm file, but I think can apply to other files too. [snip] > diff --git a/drivers/clk/mediatek/clk-mt8192-mm.c > b/drivers/clk/mediatek/clk-mt8192-mm.c > new file mode 100644 > index 000..02eef24 > ---

Re: [RFC PATCH 0/6] decrease unnecessary gap due to pmem kmem alignment

2020-07-29 Thread Mike Rapoport
Hi Justin, On Wed, Jul 29, 2020 at 08:27:58AM +, Justin He wrote: > Hi David > > > > > > Without this series, if qemu creates a 4G bytes nvdimm device, we can > > only > > > use 2G bytes for dax pmem(kmem) in the worst case. > > > e.g. > > > 24000-33fdf : Persistent Memory > > > We

Re: [PATCH] media: i2c: tvp5150: Fix horizontal crop stop boundry

2020-07-29 Thread Marco Felsch
Hi, On 20-06-25 13:05, Hans Verkuil wrote: > On 17/09/2019 09:14, Robin van der Gracht wrote: > > The value for AVID stop is relative to the width of the active video area, > > not the maximum register value. Zero means equal and a negative value means > > we're cropping on the right side. > >

arch/x86/boot/compressed/../string.c:43:5: warning: no previous prototype for 'bcmp'

2020-07-29 Thread kernel test robot
date: 12 months ago config: x86_64-randconfig-r032-20200729 (attached as .config) compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 reproduce (this is a W=1 build): git checkout b059f801a937d164e03b33c1848bb3dca67c0b04 # save the attached .config to linux build tree make W=1 ARCH

Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Vitaly Kuznetsov
Alexander Graf writes: > On 29.07.20 10:23, Vitaly Kuznetsov wrote: >> >> >> >> Jim Mattson writes: >> >>> On Tue, Jul 28, 2020 at 5:41 AM Alexander Graf wrote: >> >> ... >> While it does feel a bit overengineered, it would solve the problem that we're turning in-KVM

drivers/clk/mmp/clk-pxa168.c:68:13: warning: no previous prototype for 'pxa168_clk_init'

2020-07-29 Thread kernel test robot
: 11 months ago config: arm-randconfig-r012-20200729 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

[PATCH 1/1] Input: atmel_mxt_ts: split large i2c transfers into blocks

2020-07-29 Thread Jiada Wang
From: Jiada wang Some I2C controllers constrain maximum transferred data in an I2C transaction by set max_[read|write]_len of i2c_adapter_quirk. Large i2c transfer transaction beyond this limitation may fail to complete, cause I2C controller driver aborts the transaction and returns failure.

Re: [PATCH v1 1/2] scsi: ufs: Introduce device quirk "DELAY_AFTER_LPM"

2020-07-29 Thread Can Guo
On 2020-07-29 13:18, Stanley Chu wrote: Some UFS devices require delay after VCC power rail is turned-off. Introduce a device quirk "DELAY_AFTER_LPM" to add 5ms delays after VCC power-off during suspend flow. Signed-off-by: Andy Teng Signed-off-by: Peter Wang Signed-off-by: Stanley Chu ---

[PATCH 19/19] perf metric: Rename group_list to metric_list

2020-07-29 Thread Jiri Olsa
Following the previous change that rename egroup to metric, there's no reason to call the list 'group_list' anymore, renaming it to metric_list. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc:

[PATCH 13/19] perf metric: Add cache_miss_cycles to metric parse test

2020-07-29 Thread Jiri Olsa
Adding test that compute metric with other metrics in it. cache_miss_cycles = metric:dcache_miss_cpi + metric:icache_miss_cycles Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc: Namhyung Kim

[PATCH 16/19] perf metric: Make compute_single function more precise

2020-07-29 Thread Jiri Olsa
So far compute_single function relies on the fact, that there's only single metric defined within evlist in all tests. In following patch we will add test for metric group, so we need to be able to compute metric by given name. Adding the name argument to compute_single and iterating evlist and

[PATCH 15/19] perf metric: Add recursion check when processing nested metrics

2020-07-29 Thread Jiri Olsa
Keeping the stack of nested metrics via 'struct expr_id' objects and checking if we are in recursion via already processed metric. The stack is implemented as static array within the struct egroup with 100 entries, which should be enough nesting depth for any metric we have or plan to have at the

[PATCH 18/19] perf metric: Rename struct egroup to metric

2020-07-29 Thread Jiri Olsa
Renaming struct egroup to metric, because it seems to make more sense. Plus renaming all the variables that hold egroup to appropriate names. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc:

[PATCH 17/19] perf metric: Add metric group test

2020-07-29 Thread Jiri Olsa
Adding test for metric group plus compute_metric_group function to get metrics values within the group. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc: Namhyung Kim Cc: Paul Clarke Cc: Peter

[PATCH 14/19] perf metric: Add DCache_L2 to metric parse test

2020-07-29 Thread Jiri Olsa
Adding test that compute DCache_L2 metrics with other related metrics in it. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc: Namhyung Kim Cc: Paul Clarke Cc: Peter Zijlstra Cc: Stephane

Re: [PATCH v2 00/14] sx9310 iio driver updates

2020-07-29 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 16:05:06) > The first patch resends the DT binding for the driver that was merged in > v5.8-rc1 with a small change to update for proper regulators. The second > through the eleventh patch fixes several issues dropped from v8 to v9 > when the initial patch was

[PATCH 02/19] perf metric: Add expr__add_id function

2020-07-29 Thread Jiri Olsa
Add the expr__add_id() function to data for ID with zero value, which is used when scanning the expression for IDs. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc: Namhyung Kim Cc: Paul

[PATCH 11/19] perf metric: Compute referenced metrics

2020-07-29 Thread Jiri Olsa
Adding computation (expr__parse call) of referenced metric at the point when it needs to be resolved during the parent metric computation. Once the inner metric is computed, the result is stored and used if there's another usage of that metric. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain

[PATCH 01/19] perf metric: Fix memory leak in expr__add_id function

2020-07-29 Thread Jiri Olsa
Arnaldo found that we don't release value data in case the hashmap__set fails. Releasing it in case of an error. Reported-by: Arnaldo Carvalho de Melo Signed-off-by: Jiri Olsa Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Kajol Jain Cc: Michael Petlan Cc:

[PATCH 10/19] perf metric: Add referenced metrics to hash data

2020-07-29 Thread Jiri Olsa
Adding referenced metrics to the parsing context so they can be resolved during the metric processing. Adding expr__add_ref function to store referenced metrics into parse context. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen

[PATCH 12/19] perf metric: Add events for the current list

2020-07-29 Thread Jiri Olsa
There's no need to iterate the whole list of groups, when adding new events. The currently created groups are the ones we want to add. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc: Namhyung

[PATCHv4 00/19] perf metric: Add support to reuse metric

2020-07-29 Thread Jiri Olsa
hi, this patchset is adding the support to reused metric in another metric. For example, to define IPC by using CPI with change like: { "BriefDescription": "Instructions Per Cycle (per Logical Processor)", -"MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD", +

[PATCH 06/19] perf metric: Add add_metric function

2020-07-29 Thread Jiri Olsa
Decouple metric adding logging into add_metric function, so it can be used from other places in following changes. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc: Namhyung Kim Cc: Paul Clarke

[PATCH 03/19] perf metric: Change expr__get_id to return struct expr_id_data

2020-07-29 Thread Jiri Olsa
Changing expr__get_id to use and return struct expr_id_data pointer as value for the ID. This way we can access data other than value for given ID in following changes. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry

[PATCH 04/19] perf metric: Add expr__del_id function

2020-07-29 Thread Jiri Olsa
Adding expr__del_id function to remove ID from hashmap. It will save us few lines in following changes. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc: Namhyung Kim Cc: Paul Clarke Cc:

[PATCH 08/19] perf metric: Collect referenced metrics in struct metric_ref_node

2020-07-29 Thread Jiri Olsa
Collecting referenced metrics in struct metric_ref_node object, so we can process them later on. The change will parse nested metric names out of expression and 'resolve' them. All referenced metrics are dissolved into one context, meaning all nested metrics events and added to the parent

[PATCH 09/19] perf metric: Collect referenced metrics in struct metric_expr

2020-07-29 Thread Jiri Olsa
Add referenced metrics into struct metric_expr object, so they are accessible when computing the metric. Storing just name and expression itself, so the metric can be resolved and computed. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi

[PATCH 07/19] perf metric: Rename __metricgroup__add_metric to __add_metric

2020-07-29 Thread Jiri Olsa
Renaming __metricgroup__add_metric to __add_metric to fit in the current function names. Signed-off-by: Jiri Olsa Reviewed-by: Kajol Jain Acked-by: Ian Rogers Cc: Alexander Shishkin Cc: Andi Kleen Cc: John Garry Cc: Michael Petlan Cc: Namhyung Kim Cc: Paul Clarke Cc: Peter Zijlstra Cc:

[PATCH 05/19] perf metric: Add macros for iterating map events

2020-07-29 Thread Jiri Olsa
Adding following macros to iterate events and metric: map_for_each_event(__pe, __idx, __map) - iterates over all pmu_events_map events map_for_each_metric(__pe, __idx, __map, __metric) - iterates over all metrics that match __metric argument and use it in metricgroup__add_metric

Re: [Linux-kernel-mentees] [PATCH] block/floppy: Prevent kernel-infoleak in raw_cmd_copyout()

2020-07-29 Thread Denis Efremov
On 7/28/20 5:19 PM, Peilin Ye wrote: > raw_cmd_copyout() is potentially copying uninitialized kernel stack memory > since it is initializing `cmd` by assignment, which may cause the compiler > to leave uninitialized holes in this structure. Fix it by using memcpy() > instead. > > Cc:

[PATCH -next] scsi: Remove unneeded cast from memory allocation

2020-07-29 Thread Li Heng
Remove casting the values returned by memory allocation function. Coccinelle emits WARNING: ./drivers/message/fusion/mptctl.c:2596:14-31: WARNING: casting value returned by memory allocation function to (SCSIDevicePage0_t *) is useless. ./drivers/message/fusion/mptctl.c:2660:15-32: WARNING:

[PATCH -next] scsi: Remove unneeded cast from memory allocation

2020-07-29 Thread Li Heng
Remove casting the values returned by memory allocation function. Coccinelle emits WARNING: ./drivers/message/fusion/mptfc.c:766:17-30: WARNING: casting value returned by memory allocation function to (FCPortPage0_t *) is useless. ./drivers/message/fusion/mptfc.c:907:17-30: WARNING: casting

Re: [PATCH v2 2/7] cpufreq: set invariance scale factor on transition end

2020-07-29 Thread Ionela Voinescu
On Monday 27 Jul 2020 at 15:52:41 (+0200), Rafael J. Wysocki wrote: > On Wed, Jul 22, 2020 at 11:38 AM Ionela Voinescu > wrote: > > > > While the move of the invariance setter calls (arch_set_freq_scale()) > > from cpufreq drivers to cpufreq core maintained the previous > > functionality for

Re: [PATCH v2 1/9] dt-bindings: arm: mstar: Add binding details for mstar,pmsleep

2020-07-29 Thread Daniel Palmer
Hi Rob, On Wed, 29 Jul 2020 at 04:18, Rob Herring wrote: > > +properties: > > + compatible: > > +oneOf: > > + - items: > > + - enum: > > + - mstar,pmsleep > > Needs to be SoC specific. Random collections of bits are never > 'standard' from one SoC to the next. I

Re: [PATCH 2/6] arch: x86: Wrap TIF_IA32 checks

2020-07-29 Thread peterz
On Tue, Jul 28, 2020 at 08:43:27PM -0700, Andy Lutomirski wrote: > On Tue, Jul 28, 2020 at 1:22 PM Gabriel Krisman Bertazi > > diff --git a/arch/x86/events/intel/ds.c b/arch/x86/events/intel/ds.c > > index dc43cc124e09..27d1cc1f3d05 100644 > > --- a/arch/x86/events/intel/ds.c > > +++

Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Alexander Graf
On 29.07.20 10:23, Vitaly Kuznetsov wrote: Jim Mattson writes: On Tue, Jul 28, 2020 at 5:41 AM Alexander Graf wrote: ... While it does feel a bit overengineered, it would solve the problem that we're turning in-KVM handled MSRs into an ABI. It seems unlikely that userspace is

Re: [Linux-kernel-mentees] [PATCH] block/floppy: Prevent kernel-infoleak in raw_cmd_copyout()

2020-07-29 Thread Denis Efremov
Hi, On 7/28/20 5:19 PM, Peilin Ye wrote: > raw_cmd_copyout() is potentially copying uninitialized kernel stack memory > since it is initializing `cmd` by assignment, which may cause the compiler > to leave uninitialized holes in this structure. Fix it by using memcpy() > instead. > > Cc:

Re: [PATCH 1/4] drivers/perf: Add support for ARMv8.3-SPE

2020-07-29 Thread Suzuki K Poulose
On 07/24/2020 10:16 AM, Wei Li wrote: Armv8.3 extends the SPE by adding: - Alignment field in the Events packet, and filtering on this event using PMSEVFR_EL1. - Support for the Scalable Vector Extension (SVE). The main additions for SVE are: - Recording the vector length for SVE operations

Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Alexander Graf
On 28.07.20 19:13, Jim Mattson wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. On Tue, Jul 28, 2020 at 5:41 AM Alexander Graf wrote: On 28.07.20 10:15,

Re: [PATCH v2 1/7] cpufreq: move invariance setter calls in cpufreq core

2020-07-29 Thread Ionela Voinescu
Hi Rafael, On Monday 27 Jul 2020 at 15:48:39 (+0200), Rafael J. Wysocki wrote: > On Wed, Jul 22, 2020 at 11:38 AM Ionela Voinescu > wrote: [..] > > target() > > === > > This has been flagged as deprecated since: > > > > commit 9c0ebcf78fde ("cpufreq: Implement light weight ->target_index()

Re: [PATCH 1/6] arch: x86: Don't use TIF flags for mm context

2020-07-29 Thread peterz
On Tue, Jul 28, 2020 at 04:22:24PM -0400, Gabriel Krisman Bertazi wrote: > diff --git a/arch/x86/include/asm/thread_info.h > b/arch/x86/include/asm/thread_info.h > index 267701ae3d86..934aa15b20f2 100644 > --- a/arch/x86/include/asm/thread_info.h > +++ b/arch/x86/include/asm/thread_info.h > @@

Re: [PATCH 4.19 00/86] 4.19.135-rc3 review

2020-07-29 Thread Greg Kroah-Hartman
On Wed, Jul 29, 2020 at 09:57:36AM +0100, Jon Hunter wrote: > > On 28/07/2020 16:51, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.135 release. > > There are 86 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [Linux-kernel-mentees] [PATCH] drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()

2020-07-29 Thread Daniel Vetter
On Wed, Jul 29, 2020 at 10:11 AM Christian König wrote: > > Am 28.07.20 um 21:29 schrieb Peilin Ye: > > Compiler leaves a 4-byte hole near the end of `dev_info`, causing > > amdgpu_info_ioctl() to copy uninitialized kernel stack memory to userspace > > when `size` is greater than 356. > > > > In

Re: general protection fault in vsock_poll

2020-07-29 Thread syzbot
syzbot has bisected this issue to: commit 408624af4c89989117bb2c6517bd50b7708a2fcd Author: Stefano Garzarella Date: Tue Dec 10 10:43:06 2019 + vsock: use local transport when it is loaded bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17e6489b10 start commit:

[PATCH -next] 9p: Remove unneeded cast from memory allocation

2020-07-29 Thread Li Heng
Remove casting the values returned by memory allocation function. Coccinelle emits WARNING: ./fs/9p/vfs_inode.c:226:12-29: WARNING: casting value returned by memory allocation function to (struct v9fs_inode *) is useless. Signed-off-by: Li Heng --- fs/9p/vfs_inode.c | 3 +-- 1 file changed,

Re: [PATCH 4.19 00/86] 4.19.135-rc3 review

2020-07-29 Thread Jon Hunter
On 28/07/2020 16:51, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.135 release. > There are 86 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

Linux 5.7.11

2020-07-29 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.7.11 kernel. All users of the 5.7 kernel series must upgrade. The updated 5.7.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.7.y and can be browsed at the normal kernel.org git web browser:

x86/i8259: Use printk_deferred() to prevent deadlock

2020-07-29 Thread Thomas Gleixner
0day reported a possible circular locking dependency: Chain exists of: _desc_lock_class --> console_owner --> _lock_key Possible unsafe locking scenario: CPU0CPU1 lock(_lock_key);

Linux 5.4.54

2020-07-29 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.4.54 kernel. All users of the 5.4 kernel series must upgrade. The updated 5.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.19.135

2020-07-29 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 1e195471eb91..1253143f3f6f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 134 +SUBLEVEL = 135 EXTRAVERSION = NAME = "People's Front" @@ -485,7 +485,7 @@ ifeq

Linux 4.19.135

2020-07-29 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.19.135 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web

Re: Linux 4.14.190

2020-07-29 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 01c1860b1316..4e5f6615fd98 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 189 +SUBLEVEL = 190 EXTRAVERSION = NAME = Petit Gorille @@ -482,7 +482,7 @@ ifeq

Linux 4.14.190

2020-07-29 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.14.190 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web

Re: [PATCH v2 9/9] mfd: mt6360: Merge different sub-devices i2c read/write

2020-07-29 Thread Gene Chen
Lee Jones 於 2020年7月27日 週一 下午8:43寫道: > > On Fri, 17 Jul 2020, Gene Chen wrote: > > > From: Gene Chen > > > > Remove unuse register definition. > > This should not be in here. > > > Merge different sub-devices i2c read/write function into one regmap, > > "I2C", "functions", "Regmap". > ACK > >

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-29 Thread peterz
On Tue, Jul 28, 2020 at 08:02:32PM -0700, Sean Christopherson wrote: > Maybe it's just me, but it'd be nice to break this into multiple patches > so that the SLD refactoring is separate from the introduction of BLD. As > is, I find it hard to review as I can't easily distinguish refactoring from

RE: [EXT] Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting

2020-07-29 Thread Alison Wang
Hi, Kurt, > On Wed Jul 29 2020, Alison Wang wrote: > > In the current arm64 defconfig, CONFIG_IRQ_TIME_ACCOUNTING is enabled > > as default. According to my tests on NXP's LayerScape and i.MX > > platforms, the system hangs when running the command "stress-ng > > --hrtimers 1" with

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-29 Thread peterz
On Fri, Jul 17, 2020 at 02:35:00PM -0700, Fenghua Yu wrote: > #DB for bus lock detect fixes all issues in #AC for split lock detect: > 1) It's architectural ... just need to look at one CPUID bit to know it >exists > 2) The IA32_DEBUGCTL MSR, which reports bus lock in #DB, is per-thread. >

[PATCH v2 5/5] clk: mediatek: Add MT8192 clock support

2020-07-29 Thread Weiyi Lu
Add MT8192 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 146 ++ drivers/clk/mediatek/Makefile | 24 + drivers/clk/mediatek/clk-mt8192-aud.c

[RFC 1/1] pmem: Add cond_resched() in bio_for_each_segment loop in pmem_make_request

2020-07-29 Thread Ritesh Harjani
For systems which do not have CONFIG_PREEMPT set and if there is a heavy multi-threaded load/store operation happening on pmem + sometimes along with device latencies, softlockup warnings like this could trigger. This was seen on Power where pagesize is 64K. To avoid softlockup, this patch adds a

[PATCH v2 2/5] clk: mediatek: Add dt-bindings for MT8192 clocks

2020-07-29 Thread Weiyi Lu
Add MT8192 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Weiyi Lu --- include/dt-bindings/clock/mt8192-clk.h | 593 + 1 file changed, 593 insertions(+) create mode 100644

[PATCH v2 4/5] clk: mediatek: Add configurable enable control to mtk_pll_data

2020-07-29 Thread Weiyi Lu
In all MediaTek PLL design, bit0 of CON0 register is always the enable bit. However, there's a special case of usbpll on MT8192. The enable bit of usbpll is moved to bit2 of other register. Add configurable en_reg and pll_en_bit for enable control or default 0 where pll data are static variables.

[PATCH v2 0/5] Mediatek MT8192 clock support

2020-07-29 Thread Weiyi Lu
This series is based on v5.8-rc1 changes since v1: - fix asymmetrical control of PLL - have en_mask used as divider enable mask on all MediaTek SoC Weiyi Lu (5): dt-bindings: ARM: Mediatek: Document bindings for MT8192 clk: mediatek: Add dt-bindings for MT8192 clocks clk: mediatek: Fix

Re: [RFC PATCH 0/6] decrease unnecessary gap due to pmem kmem alignment

2020-07-29 Thread David Hildenbrand
On 29.07.20 10:27, Justin He wrote: > Hi David > >> -Original Message- >> From: David Hildenbrand >> Sent: Wednesday, July 29, 2020 2:37 PM >> To: Justin He >> Cc: Dan Williams ; Vishal Verma >> ; Mike Rapoport ; David >> Hildenbrand ; Catalin Marinas ; >> Will Deacon ; Greg

[PATCH v2 3/5] clk: mediatek: Fix asymmetrical PLL enable and disable control

2020-07-29 Thread Weiyi Lu
The en_mask actually is a combination of divider enable mask and pll enable bit(bit0). Before this patch, we enabled both divider mask and bit0 in prepare(), but only cleared the bit0 in unprepare(). Now, setting the enable register(CON0) in 2 steps: first divider mask, then bit0 during prepare(),

[PATCH v2 1/5] dt-bindings: ARM: Mediatek: Document bindings for MT8192

2020-07-29 Thread Weiyi Lu
This patch adds the binding documentation for apmixedsys, audsys, camsys-raw, camsys, imgsys, imp_iic_wrap, infracfg, ipesys, mdpsys, mfgcfg, mmsys, msdc, pericfg, scp-adsp, topckgen, vdecsys-soc, vdecsys and vencsys for Mediatek MT8192. Signed-off-by: Weiyi Lu ---

Re: BTF_KIND_FWD enums

2020-07-29 Thread Giuliano Procida
Hi. On Wed, 29 Jul 2020 at 08:09, Yonghong Song wrote: > > > > On 7/28/20 1:56 PM, Giuliano Procida wrote: > > Hi. > > > > Re: > > https://github.com/torvalds/linux/commit/9d5f9f701b1891466fb3dbb1806ad97716f95cc3 > > > > Both GCC and LLVM support forward-declared (a.k.a. incomplete) enums > >

INFO: rcu detected stall in smp_call_function

2020-07-29 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:6ba1b005 Merge tag 'asm-generic-fixes-5.8' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14da552290 kernel config: https://syzkaller.appspot.com/x/.config?x=812bbfcb6ae2cd60

Re: (EXT) Re: (EXT) Re: Consistent block device references for root= cmdline

2020-07-29 Thread Matthias Schiffer
On Tue, 2020-07-07 at 16:14 +0200, Ulf Hansson wrote: > On Thu, 11 Jun 2020 at 13:20, Matthias Schiffer > wrote: > > > > On Wed, 2020-06-10 at 16:52 +0200, Ulf Hansson wrote: > > > On Wed, 10 Jun 2020 at 15:15, Matthias Schiffer > > > wrote: > > > > > > > > Hello all, > > > > > > > > there

Re: [PATCH v2] scsi: ufs: Fix possible infinite loop in ufshcd_hold

2020-07-29 Thread Can Guo
Hi Stanley, On 2020-07-29 10:40, Stanley Chu wrote: In ufshcd_suspend(), after clk-gating is suspended and link is set as Hibern8 state, ufshcd_hold() is still possibly invoked before ufshcd_suspend() returns. For example, MediaTek's suspend vops may issue UIC commands which would call

Re: [PATCH v2 10/14] iio: sx9310: Simplify error return handling

2020-07-29 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 16:05:16) > Checks for non-zero return values to signal error conditions. > > Signed-off-by: Daniel Campello > Reviewed-by: Andy Shevchenko > --- Reviewed-by: Stephen Boyd The mutex_lock, unlock, wait, lock, check wait, unlock sequence can be improved in

Re: [PATCH v2 03/14] iio: sx9310: Fix irq handling

2020-07-29 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 16:05:09) > Fixes enable/disable irq handling at various points. The driver needs to > only enable/disable irqs if there is an actual irq handler installed. > > Signed-off-by: Daniel Campello > --- > > Changes in v2: > - Reordered error handling on

Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting

2020-07-29 Thread Kurt Kanzenbach
Hi Alison, On Wed Jul 29 2020, Alison Wang wrote: > In the current arm64 defconfig, CONFIG_IRQ_TIME_ACCOUNTING is enabled as > default. According to my tests on NXP's LayerScape and i.MX platforms, > the system hangs when running the command "stress-ng --hrtimers 1" with >

Re: [PATCH] thermal: core: Add thermal zone enable/disable notification

2020-07-29 Thread Daniel Lezcano
On 29/07/2020 07:36, Amit Kucheria wrote: > On Tue, Jul 28, 2020 at 4:40 AM Daniel Lezcano > wrote: >> >> Now the calls to enable/disable a thermal zone are centralized in a >> call to a function, we can add in these the corresponding netlink >> notifications. >> >> Signed-off-by: Daniel Lezcano

Re: [PATCH v2] arm: dts: imx7: add QSPI

2020-07-29 Thread Marco Felsch
Added Rob and Frank. Maybe they can explain us this behaviour. On 20-07-29 09:58, Marco Felsch wrote: > Hi Matthias, > > On 20-07-29 09:14, Matthias Schiffer wrote: > > On Wed, 2020-07-29 at 09:11 +0200, Matthias Schiffer wrote: > > > In preparation for an update of the TQ-Systems TQMa7x/MBa7x

Re: [PATCH] ethernet: fix potential memory leak in gemini_ethernet_port_probe()

2020-07-29 Thread Markus Elfring
> If some processes in gemini_ethernet_port_probe() fail, > free_netdev(dev) needs to be called to avoid a memory leak. Would you like to use an imperative wording for this change description?

Re: [PATCH v2 04/14] iio: sx9310: Remove acpi and of table macros

2020-07-29 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 16:05:10) > Avoids unused warnings due to acpi/of table macros. > > Reported-by: kbuild test robot > Signed-off-by: Daniel Campello > --- Reviewed-by: Stephen Boyd

RE: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-07-29 Thread David Laight
From: Madhavan T. Venkataraman > Sent: 28 July 2020 19:52 ... > trampfd faults are instruction faults that go through a different code path > than > the one that calls handle_mm_fault(). Perhaps, it is the handle_mm_fault() > that > is time consuming. Could you clarify? Given that the

Re: [PATCH kernel] panic: Dump registers on panic_on_warn

2020-07-29 Thread Greg Kroah-Hartman
On Wed, Jul 29, 2020 at 06:24:26PM +1000, Alexey Kardashevskiy wrote: > Ping? > > > On 30/06/2020 19:38, Alexey Kardashevskiy wrote: > > Currently we print stack and registers for ordinary warnings but > > we do not for panic_on_warn which looks as oversight - panic() > > will reboot the machine

Re: [v2,2/3] dt-bindings: watchdog: add a new head file for toprgu reset-controllers

2020-07-29 Thread Crystal Guo
On Wed, 2020-07-29 at 16:15 +0800, Matthias Brugger wrote: > > On 29/07/2020 10:11, Crystal Guo wrote: > > On Wed, 2020-07-29 at 15:42 +0800, Matthias Brugger wrote: > >> Hi Crystal, > >> > >> On 29/07/2020 08:30, Crystal Guo wrote: > >>> merge all the reset numbers in one head file. > >>> > >>>

Re: [PATCH] iio: adc: ti-ads1015: fix conversion when CONFIG_PM is not set

2020-07-29 Thread Andy Shevchenko
On Wed, Jul 29, 2020 at 11:26:51AM +0300, Maxim Kochetkov wrote: > In case of CONFIG_PM is not set: > > static inline int __pm_runtime_suspend(struct device *dev, int rpmflags) > { > return -ENOSYS; > } > > and ads1015_read_raw failed at: > > ret =

Re: [PATCH v3] drm/hisilicon: Fixed the warning: Assignment of 0/1 to bool variable

2020-07-29 Thread Thomas Zimmermann
Am 28.07.20 um 14:55 schrieb Tian Tao: > fixed the following warning: > hibmc_drm_drv.c:296:1-18:WARNING: Assignment of 0/1 to bool variable. > hibmc_drm_drv.c:301:2-19: WARNING: Assignment of 0/1 to bool variable. > > v2: > using the pci_dev.msi_enabled instead of priv->msi_enabled. > > v3: >

Re: [PATCH v6 1/4] usb: typec: Add QCOM PMIC typec detection driver

2020-07-29 Thread Stephen Boyd
Quoting Wesley Cheng (2020-07-29 00:13:37) > diff --git a/drivers/usb/typec/Kconfig b/drivers/usb/typec/Kconfig > index 559dd06117e7..3e375f82849d 100644 > --- a/drivers/usb/typec/Kconfig > +++ b/drivers/usb/typec/Kconfig > @@ -73,6 +73,18 @@ config TYPEC_TPS6598X > If you choose to

[PATCH -next] drm/amd/powerplay: Remove unneeded cast from memory allocation

2020-07-29 Thread Li Heng
Remove casting the values returned by memory allocation function. Coccinelle emits WARNING: ./drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c:893:37-46: WARNING: casting value returned by memory allocation function to (PPTable_t *) is useless. Signed-off-by: Li Heng ---

<    6   7   8   9   10   11   12   13   >