Re: [PATCH v2] mm: memcg: link page counters to root if use_hierarchy is false

2020-10-29 Thread Michal Koutný
Hi. On Mon, Oct 26, 2020 at 04:13:26PM -0700, Roman Gushchin wrote: > Please note, that in the non-hierarchical mode all objcgs are always > reparented to the root memory cgroup, even if the hierarchy has more > than 1 level. This patch doesn't change it. > > The patch also doesn't affect how

Re: [PATCH] mtd: spi-nor: intel-spi: Split intel-spi reading from writing

2020-10-29 Thread Daniel Gutson
On Thu, Oct 29, 2020 at 2:40 AM Greg Kroah-Hartman wrote: > > On Wed, Oct 28, 2020 at 06:43:59PM -0300, Daniel Gutson wrote: > > This patch separates the writing part of the intel-spi drivers > > so the 'dangerous' part can be set/unset independently. > > This way, the kernel can be configured to

Re: [PATCH v2 0/2] fs, close_range: add flag CLOSE_RANGE_CLOEXEC

2020-10-29 Thread Christian Brauner
On Mon, Oct 19, 2020 at 12:26:52PM +0200, Giuseppe Scrivano wrote: > When the new flag is used, close_range will set the close-on-exec bit > for the file descriptors instead of close()-ing them. > > It is useful for e.g. container runtimes that want to minimize the > number of syscalls used after

[PATCH] builddeb: Consolidate consecutive chmod calls into one

2020-10-29 Thread Sven Joachim
No need to call chmod three times when it can do everything at once. Signed-off-by: Sven Joachim --- scripts/package/builddeb | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 91a502bb97e8..6a100c449579 100755

Re: [PATCH v3 0/4] Clarify abstract scale usage for power values in Energy Model, EAS and IPA

2020-10-29 Thread Doug Anderson
Hi, On Thu, Oct 29, 2020 at 5:37 AM Lukasz Luba wrote: > > On 10/20/20 1:15 AM, Doug Anderson wrote: > > Hi, > > > > On Mon, Oct 19, 2020 at 7:06 AM Lukasz Luba wrote: > >> > >> Hi all, > >> > >> The Energy Model supports power values expressed in an abstract scale. > >> This has an impact on

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-10-29 Thread Rob Herring
On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: > Power operation mode may depends on hardware design, so, add the optional > property power-opmode for usb-c connector to select the power operation > mode capability. > > Signed-off-by: Amelie Delaunay > --- >

Re: False positive from checkscript: git git://...

2020-10-29 Thread Joe Perches
On Thu, 2020-10-29 at 16:11 +0100, Jean Delvare wrote: > On Thu, 29 Oct 2020 07:55:25 -0700, Joe Perches wrote: > > On Thu, 2020-10-29 at 14:32 +0100, Jean Delvare wrote: > > > WARNING: Possible repeated word: 'git' > > > #20: FILE: MAINTAINERS:5289: > > > +T: git > > >

Re: [PATCH][next] sched/debug: fix memory corruption caused by multiple small reads of flags

2020-10-29 Thread Valentin Schneider
On 29/10/20 15:29, Valentin Schneider wrote: >> @@ -269,17 +269,17 @@ static int sd_ctl_doflags(struct ctl_table *table, int >> write, >> return 0; >> } >> >> -tmp = kcalloc(data_size + 1, sizeof(*tmp), GFP_KERNEL); > [...] >> -tmp += *ppos; > [...] >> -

Hello.

2020-10-29 Thread Henrita Pieres
Hello. I am Mrs. Henrita Pieres 64 years old located in France.but baser in Burkina Faso. Let me trust and believe you can handle this project...I have been diagnosed with Esophageal cancer. i want to invest in humanitarian & Charity in your country with sum of $4.5 Million. Reply me for more

Re: [PATCH v3 45/56] iio: fix a kernel-doc markup

2020-10-29 Thread Jonathan Cameron
On Fri, 23 Oct 2020 18:33:32 +0200 Mauro Carvalho Chehab wrote: > A function has a different name between their prototype > and its kernel-doc markup. > > Signed-off-by: Mauro Carvalho Chehab Applied to the togreg branch of iio.git. Thanks, Jonathan > --- > include/linux/iio/trigger.h | 2

[RESEND PATCH v2 2/2] MAINTAINERS: Add linux-mips mailing list to JZ47xx entries

2020-10-29 Thread Krzysztof Kozlowski
The entries for JZ47xx SoCs and its drivers lacked MIPS mailing list. Only MTD NAND driver pointed linux-mtd. Add linux-mips so the relevant patches will get attention of MIPS developers. Signed-off-by: Krzysztof Kozlowski Acked-by: Paul Cercueil --- Changes since v1: 1. Do not update DMA

Re: [PATCH] regmap: provide regmap_assign_bits()

2020-10-29 Thread Bartosz Golaszewski
On Thu, Oct 29, 2020 at 4:18 PM Mark Brown wrote: > > On Mon, Oct 26, 2020 at 04:10:15PM +0100, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Add another bits helper to regmap API: this one sets given bits if value > > is true and clears them if it's false. > > What's the use

[RESEND PATCH v2 1/2] MAINTAINERS: Remove JZ4780 DMA driver entry

2020-10-29 Thread Krzysztof Kozlowski
The entry for MIPS Ingenic JZ4780 DMA driver is not up to date anymore. Zubair Lutfullah Kakakhel's email bounces and no maintenance is provided. Suggested-by: Paul Cercueil Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- MAINTAINERS | 5 - 1 file changed, 5

Re: [PATCH v3 00/26] coresight: Support for ETM system instructions

2020-10-29 Thread Suzuki K Poulose
On 10/29/20 7:53 AM, Mike Leach wrote: Hi Suzuki, On Wed, 28 Oct 2020 at 22:10, Suzuki K Poulose wrote: CoreSight ETMv4.4 obsoletes memory mapped access to ETM and mandates the system instructions for registers. This also implies that they may not be on the amba bus. Right now all the

[PATCH v2] inotify: Increase default inotify.max_user_watches limit to 1048576

2020-10-29 Thread Waiman Long
The default value of inotify.max_user_watches sysctl parameter was set to 8192 since the introduction of the inotify feature in 2005 by commit 0eeca28300df ("[PATCH] inotify"). Today this value is just too small for many modern usage. As a result, users have to explicitly set it to a larger value

Re: [PATCH 4/5] iio: adc: xilinx: use devres for irq handling

2020-10-29 Thread Jonathan Cameron
On Mon, 26 Oct 2020 14:36:08 +0100 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Further simplify the remove() callback and error paths in probe() by > using the managed variant of request_irq() as well as using a devm action > for cancelling the delayed work at driver detach. >

Re: [PATCH] regmap: provide regmap_assign_bits()

2020-10-29 Thread Mark Brown
On Thu, Oct 29, 2020 at 04:44:16PM +0100, Bartosz Golaszewski wrote: > On Thu, Oct 29, 2020 at 4:18 PM Mark Brown wrote: > > On Mon, Oct 26, 2020 at 04:10:15PM +0100, Bartosz Golaszewski wrote: > > > Add another bits helper to regmap API: this one sets given bits if value > > > is true and

[RESEND PATCH] KEYS: asymmetric: Fix kerneldoc

2020-10-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): crypto/asymmetric_keys/asymmetric_type.c:160: warning: Function parameter or member 'kid1' not described in 'asymmetric_key_id_same' crypto/asymmetric_keys/asymmetric_type.c:160: warning: Function parameter or member 'kid2' not described in

Re: [PATCH v2] mm: memcg/slab: Fix return child memcg objcg for root memcg

2020-10-29 Thread Shakeel Butt
On Tue, Oct 27, 2020 at 8:50 PM Muchun Song wrote: > > Consider the following memcg hierarchy. > > root >/\ > A B > > If we get the objcg of memcg A failed, Please fix the above statement. > the get_obj_cgroup_from_current > can

Re: [PATCH v5 1/1] arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile

2020-10-29 Thread Matthias Brugger
On 27/10/2020 11:26, Seiya Wang wrote: Add basic chip support for Mediatek MT8192 Signed-off-by: Seiya Wang Pushed to v5.10-next/dts64 Thanks! --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 29 ++

Re: [PATCH v9 1/3] dt-bindings: Add vendor prefix for Novatek Microelectronics Corp.

2020-10-29 Thread Rob Herring
On Wed, 28 Oct 2020 23:13:00 +0100, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Add prefix for Novatek Microelectronics Corp. > > Signed-off-by: AngeloGioacchino Del Regno > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2

Re: False positive from checkscript: git git://...

2020-10-29 Thread Dwaipayan Ray
On Thu, Oct 29, 2020 at 9:11 PM Joe Perches wrote: > > On Thu, 2020-10-29 at 16:11 +0100, Jean Delvare wrote: > > On Thu, 29 Oct 2020 07:55:25 -0700, Joe Perches wrote: > > > On Thu, 2020-10-29 at 14:32 +0100, Jean Delvare wrote: > > > > WARNING: Possible repeated word: 'git' > > > > #20: FILE:

Re: [PATCH v3 1/1] sched/uclamp: add SCHED_FLAG_UTIL_CLAMP_RESET flag to reset uclamp

2020-10-29 Thread Dietmar Eggemann
On 29/10/2020 14:06, Qais Yousef wrote: > On 10/29/20 21:02, Yun Hsiang wrote: >> Hi Qais, >> >> On Thu, Oct 29, 2020 at 11:08:18AM +, Qais Yousef wrote: >>> Hi Yun >>> >>> Sorry for chipping in late. >>> >>> On 10/25/20 15:36, Yun Hsiang wrote: [...] #define SCHED_FLAG_UTIL_CLAMP

[PATCH 18/18] block: switch gendisk lookup to a simple xarray

2020-10-29 Thread Christoph Hellwig
Now that bdev_map is only used for finding gendisks, we can use a simple xarray instead of the regions tracking structure for it. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Reviewed-by: Greg Kroah-Hartman --- block/genhd.c | 208

Re: [PATCH] regmap: provide regmap_assign_bits()

2020-10-29 Thread Bartosz Golaszewski
On Thu, Oct 29, 2020 at 4:48 PM Mark Brown wrote: > > On Thu, Oct 29, 2020 at 04:44:16PM +0100, Bartosz Golaszewski wrote: > > On Thu, Oct 29, 2020 at 4:18 PM Mark Brown wrote: > > > On Mon, Oct 26, 2020 at 04:10:15PM +0100, Bartosz Golaszewski wrote: > > > > > Add another bits helper to regmap

Re: [PATCH v2] mm: memcg/slab: Fix use after free in obj_cgroup_charge

2020-10-29 Thread Shakeel Butt
On Tue, Oct 27, 2020 at 8:51 PM Muchun Song wrote: > > The rcu_read_lock/unlock only can guarantee that the memcg will > not be freed, but it cannot guarantee the success of css_get to > memcg. > > If the whole process of a cgroup offlining is completed between > reading a objcg->memcg pointer

Re: [RESEND PATCH v3] arm64: dts: mediatek: align GPIO hog names with dtschema

2020-10-29 Thread Matthias Brugger
On 02/10/2020 18:39, Krzysztof Kozlowski wrote: The convention for node names is to use hyphens, not underscores. dtschema for pca95xx expects GPIO hogs to end with 'hog' suffix. Signed-off-by: Krzysztof Kozlowski Pushed to v5.10-next/dts64 Thanks! ---

Re: [PATCH v2] mm: memcg/slab: Rename *_lruvec_slab_state to *_lruvec_kmem_state

2020-10-29 Thread Shakeel Butt
On Tue, Oct 27, 2020 at 8:51 PM Muchun Song wrote: > > The *_lruvec_slab_state is also suitable for pages allocated from buddy, > not just for the slab objects. But the function name seems to tell us that > only slab object is applicable. So we can rename the keyword of slab to > kmem. > >

Re: [f2fs-dev] [PATCH v5 2/2] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl

2020-10-29 Thread Eric Biggers
On Thu, Oct 29, 2020 at 03:29:17PM +0800, Chao Yu wrote: > > +static int f2fs_ioc_set_compress_option(struct file *filp, unsigned long > > arg) > > +{ > > + struct inode *inode = file_inode(filp); > > + struct f2fs_sb_info *sbi = F2FS_I_SB(inode); > > + struct f2fs_comp_option option; > > +

Re: [PATCH] x86/entry/64: Use TEST %reg,%reg instead of CMP $0,%reg

2020-10-29 Thread Arvind Sankar
On Thu, Oct 29, 2020 at 03:29:15PM +0100, Uros Bizjak wrote: > Use TEST %reg,%reg which sets the zero flag in the same way > as CMP $0,%reg, but the encoding uses one byte less. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: "H. Peter Anvin" > Signed-off-by: Uros Bizjak

Re: [PATCH 24/25] ASoC: wm8994: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Charles Keepax
On Thu, Oct 29, 2020 at 03:43:00PM +0800, Coiby Xu wrote: > SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. > > Signed-off-by: Coiby Xu > --- > sound/soc/codecs/wm8994.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/sound/soc/codecs/wm8994.c

Re: [RFC] wimax: move out to staging

2020-10-29 Thread Jakub Kicinski
On Wed, 28 Oct 2020 06:56:28 +0100 Greg Kroah-Hartman wrote: > On Tue, Oct 27, 2020 at 10:20:13PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > There are no known users of this driver as of October 2020, and it will > > be removed unless someone turns out to still need it in future

[PATCH v3] tracing: Fix out of bounds write in get_trace_buf

2020-10-29 Thread Qiujun Huang
The subscript should be nesting - 1, as nesting had self-added. Fixes: e2ace001176dc ("tracing: Choose static tp_printk buffer by explicit nesting count") Signed-off-by: Qiujun Huang --- v3: Modify the way of array reference instead. v2: Fix a typo in the title. --- kernel/trace/trace.c | 2 +-

Re: [RFC][PATCH 7/9] mm/vmscan: Consider anonymous pages without swap

2020-10-29 Thread Yang Shi
On Thu, Oct 29, 2020 at 7:33 AM Dave Hansen wrote: > > On 10/29/20 1:14 AM, Oscar Salvador wrote: > > With this patch, we will use always the atomic version > > get_nr_swap_pages from now on. Is that ok? I guess so, but it might > > warrant a mention in the changelog? > > I _think_ it's OK. But,

Re: [PATCH] dma-mapping: Fix 32-bit overflow with CONFIG_ARM_LPAE=n

2020-10-29 Thread Christoph Hellwig
On Tue, Oct 27, 2020 at 08:55:51AM +0100, Christoph Hellwig wrote: > Looks good: > > Reviewed-by: Christoph Hellwig > > Rob and Frank: do you want to take this through the OF tree, or should > I queue it up in the dma-mapping tree that caused the problem? I've picked this up in the dma-mapping

Re: [PATCH v5 5/6] dt-bindings: spi: Convert cadence-quadspi.txt to cadence-quadspi.yaml

2020-10-29 Thread Rob Herring
On Thu, Oct 29, 2020 at 02:20:13PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Convert the cadence-quadspi.txt documentation to cadence-quadspi.yaml > remove the cadence-quadspi.txt from Documentation/devicetree/bindings/spi/ > > Signed-off-by: Ramuthevar

[PATCH v2] x86/boot/64: Use TEST %reg,%reg instead of CMP $0,%reg

2020-10-29 Thread Uros Bizjak
Use TEST %reg,%reg which sets the zero flag in the same way as CMP $0,%reg, but the encoding uses one byte less. v2: Correct commit subject Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Reviewed-by: Andy Lutomirski Signed-off-by: Uros Bizjak ---

Re: [PATCH v2] mm: memcontrol: Simplify the mem_cgroup_page_lruvec

2020-10-29 Thread Shakeel Butt
On Thu, Oct 29, 2020 at 2:08 AM Michal Hocko wrote: > > On Wed 28-10-20 11:50:13, Muchun Song wrote: > [...] > > -struct lruvec *mem_cgroup_page_lruvec(struct page *page, struct > > pglist_data *pgdat) > > +static struct lruvec * > > +__mem_cgroup_node_lruvec(struct mem_cgroup *memcg, struct

Re: [PATCH] stop_machine: Mark functions as notrace

2020-10-29 Thread Guo Ren
On Thu, Oct 29, 2020 at 8:23 AM Atish Patra wrote: > > On Wed, Oct 28, 2020 at 8:44 AM Guo Ren wrote: > > > > Hi Zong & Atish, > > > > In our 2 harts c910 chip, we found: > > > > echo function > /sys/kernel/debug/tracing/current_tracer > > echo function_graph >

Re: [PATCH] power: supply: olpc_battery: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Hans de Goede
Hi, On 10/29/20 3:16 PM, Coiby Xu wrote: > On Thu, Oct 29, 2020 at 12:09:23PM +0100, Hans de Goede wrote: >> Hi, >> >> On 10/29/20 11:59 AM, Coiby Xu wrote: >>> Hi Hans, >>> >>> Thank you for reviewing this patch! >>> >>> On Thu, Oct 29, 2020 at 11:04:36AM +0100, Hans de Goede wrote: Hi,

Re: [RFC][PATCH v3 6/6] rcu/tree: Use irq_work_queue_remote()

2020-10-29 Thread Paul E. McKenney
On Thu, Oct 29, 2020 at 10:10:53AM +0100, Peter Zijlstra wrote: > On Wed, Oct 28, 2020 at 01:15:54PM -0700, Paul E. McKenney wrote: > > On Wed, Oct 28, 2020 at 09:02:43PM +0100, Peter Zijlstra wrote: > > > > Subject: rcu/tree: Use irq_work_queue_remote() > > > From: Peter Zijlstra > > > Date:

Re: [PATCH] stop_machine: Mark functions as notrace

2020-10-29 Thread Guo Ren
On Thu, Oct 29, 2020 at 10:34 AM Zong Li wrote: > > On Thu, Oct 29, 2020 at 8:23 AM Atish Patra wrote: > > > > On Wed, Oct 28, 2020 at 8:44 AM Guo Ren wrote: > > > > > > Hi Zong & Atish, > > > > > > In our 2 harts c910 chip, we found: > > > > > > echo function >

Re: [RFC][PATCH v3 6/6] rcu/tree: Use irq_work_queue_remote()

2020-10-29 Thread Paul E. McKenney
On Thu, Oct 29, 2020 at 10:15:34AM +0100, Peter Zijlstra wrote: > On Wed, Oct 28, 2020 at 01:15:54PM -0700, Paul E. McKenney wrote: > > On Wed, Oct 28, 2020 at 09:02:43PM +0100, Peter Zijlstra wrote: > > > -#ifdef CONFIG_IRQ_WORK > > > + raw_spin_lock_rcu_node(rnp); > > > > The caller of

binder: add transaction latency tracer

2020-10-29 Thread Frankie Chang
Change from v11: - rebase. Change from v10: - replace timespec64 with ktime_t. - fix build warning. Change from v9: - rename timestamp to ts in binder_internal.h for conciseness. - change timeval to timespec64 in binder_internal.h Change from v8: - change rtc_time_to_tm to

Re: [PATCH V9 0/5] Intel Platform Monitoring Technology

2020-10-29 Thread David E. Box
Hi Lee, On Thu, 2020-10-29 at 15:16 +, Lee Jones wrote: ... > > Changes from V8: > > - Rebase on 5.10-rc1 > > - Add missing changes in MFD patch from V7 that were > > accidentally > > dropped in V8 > > Which changes are those? > > Do I need to re-review? Should have

Re: [External] Re: [PATCH v2] mm: memcg/slab: Fix return child memcg objcg for root memcg

2020-10-29 Thread Muchun Song
On Thu, Oct 29, 2020 at 11:48 PM Shakeel Butt wrote: > > On Tue, Oct 27, 2020 at 8:50 PM Muchun Song wrote: > > > > Consider the following memcg hierarchy. > > > > root > >/\ > > A B > > > > If we get the objcg of memcg A failed,

[PATCH] libbpf hashmap: Fix undefined behavior in hash_bits

2020-10-29 Thread Ian Rogers
If bits is 0, the case when the map is empty, then the >> is the size of the register which is undefined behavior - on x86 it is the same as a shift by 0. Fix by handling the 0 case explicitly when running with address sanitizer. A variant of this patch was posted previously as:

Re: [PATCH 1/4] drm/bridge: ti-sn65dsi86: Combine register accesses in ti_sn_aux_transfer()

2020-10-29 Thread Doug Anderson
Hi, On Wed, Oct 28, 2020 at 6:11 PM Stephen Boyd wrote: > > These register reads and writes are sometimes directly next to each > other in the register address space. Let's use regmap bulk read/write > APIs to get the data with one transfer instead of multiple i2c > transfers. This helps cut

Re: [PATCH 3/4] drm/bridge: ti-sn65dsi86: Read EDID blob over DDC

2020-10-29 Thread Doug Anderson
Hi, On Wed, Oct 28, 2020 at 6:12 PM Stephen Boyd wrote: > > Use the DDC connection to read the EDID from the eDP panel instead of > relying on the panel to tell us the modes. > > Cc: Douglas Anderson > Cc: Laurent Pinchart > Cc: Jonas Karlman > Cc: Jernej Skrabec > Cc: Sean Paul >

Re: [PATCH 2/4] drm/bridge: ti-sn65dsi86: Make polling a busy loop

2020-10-29 Thread Doug Anderson
Hi, On Wed, Oct 28, 2020 at 6:12 PM Stephen Boyd wrote: > > There's no reason we need to wait here to poll a register over i2c. The > i2c bus is inherently slow and delays are practically part of the > protocol because we have to wait for the device to respond to any > request for a register.

Re: [PATCH v2 net 0/5] net: ipa: minor bug fixes

2020-10-29 Thread Jakub Kicinski
On Wed, 28 Oct 2020 14:41:43 -0500 Alex Elder wrote: > This series fixes several bugs. They are minor, in that the code > currently works on supported platforms even without these patches > applied, but they're bugs nevertheless and should be fixed. By which you mean "it seems to work just fine

Re: [PATCH 1/3] dt-bindings: watchdog: fsl-imx: document i.MX compatibles

2020-10-29 Thread Krzysztof Kozlowski
On Thu, Oct 29, 2020 at 10:35:09PM +0800, Shawn Guo wrote: > On Sat, Sep 26, 2020 at 06:23:00PM +0200, Krzysztof Kozlowski wrote: > > Document all ARMv5, ARMv6 and ARMv7 i.MX compatibles used in DTSes (even > > though driver binds only to fsl,imx21-wdt) to fix dtbs_check warnings > > like: > > >

Re: [PATCH v2] mm: memcontrol: Simplify the mem_cgroup_page_lruvec

2020-10-29 Thread Michal Hocko
On Thu 29-10-20 09:01:37, Shakeel Butt wrote: > On Thu, Oct 29, 2020 at 2:08 AM Michal Hocko wrote: > > > > On Wed 28-10-20 11:50:13, Muchun Song wrote: > > [...] > > > -struct lruvec *mem_cgroup_page_lruvec(struct page *page, struct > > > pglist_data *pgdat) > > > +static struct lruvec * > > >

Re: [RFC][PATCH v3 6/6] rcu/tree: Use irq_work_queue_remote()

2020-10-29 Thread Peter Zijlstra
On Thu, Oct 29, 2020 at 09:04:48AM -0700, Paul E. McKenney wrote: > On Thu, Oct 29, 2020 at 10:10:53AM +0100, Peter Zijlstra wrote: > > Dang, clearly TREE01 didn't actually hit any of this code :/ Is there > > another test I should be running? > > TREE01 is fine, but you have to tell rcutorture

Re: [PATCH v4 23/23] drm/msm: Don't implicit-sync if only a single ring

2020-10-29 Thread Daniel Vetter
On Mon, Oct 26, 2020 at 10:34 AM Daniel Vetter wrote: > > On Fri, Oct 23, 2020 at 08:49:14PM -0700, Rob Clark wrote: > > On Fri, Oct 23, 2020 at 11:20 AM Lucas Stach wrote: > > > > > > On Fr, 2020-10-23 at 09:51 -0700, Rob Clark wrote: > > > > From: Rob Clark > > > > > > > > If there is only a

Re: [PATCH v3 0/4] Clarify abstract scale usage for power values in Energy Model, EAS and IPA

2020-10-29 Thread Lukasz Luba
On 10/29/20 3:39 PM, Doug Anderson wrote: Hi, On Thu, Oct 29, 2020 at 5:37 AM Lukasz Luba wrote: On 10/20/20 1:15 AM, Doug Anderson wrote: Hi, On Mon, Oct 19, 2020 at 7:06 AM Lukasz Luba wrote: Hi all, The Energy Model supports power values expressed in an abstract scale. This has

[PATCH] microblaze: add support for TIF_NOTIFY_SIGNAL

2020-10-29 Thread Jens Axboe
Wire up TIF_NOTIFY_SIGNAL handling for microblaze. Cc: Michal Simek Signed-off-by: Jens Axboe --- 5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details: https://lore.kernel.org/io-uring/20201026203230.386348-1-ax...@kernel.dk/ As part of that work, I'm adding

[PATCH] nds32: add support for TIF_NOTIFY_SIGNAL

2020-10-29 Thread Jens Axboe
Wire up TIF_NOTIFY_SIGNAL handling for nds32. Cc: Nick Hu Cc: Greentime Hu Cc: Vincent Chen Signed-off-by: Jens Axboe --- 5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details: https://lore.kernel.org/io-uring/20201026203230.386348-1-ax...@kernel.dk/ As part of

[PATCH v3] sched/fair: prefer prev cpu in asymmetric wakeup path

2020-10-29 Thread Vincent Guittot
During fast wakeup path, scheduler always check whether local or prev cpus are good candidates for the task before looking for other cpus in the domain. With commit b7a331615d25 ("sched/fair: Add asymmetric CPU capacity wakeup scan") the heterogenous system gains a dedicated path but doesn't try

[PATCH] nios32: add support for TIF_NOTIFY_SIGNAL

2020-10-29 Thread Jens Axboe
Wire up TIF_NOTIFY_SIGNAL handling for nios32. Cc: Ley Foon Tan Signed-off-by: Jens Axboe --- 5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details: https://lore.kernel.org/io-uring/20201026203230.386348-1-ax...@kernel.dk/ As part of that work, I'm adding

Re: [External] Re: [PATCH v2] mm: memcg/slab: Fix return child memcg objcg for root memcg

2020-10-29 Thread Shakeel Butt
On Thu, Oct 29, 2020 at 9:09 AM Muchun Song wrote: > > On Thu, Oct 29, 2020 at 11:48 PM Shakeel Butt wrote: > > > > On Tue, Oct 27, 2020 at 8:50 PM Muchun Song > > wrote: > > > > > > Consider the following memcg hierarchy. > > > > > > root > > >/\ >

Re: [PATCH v3 3/4] nvmem: core: Add support for keepout regions

2020-10-29 Thread Evan Green
On Thu, Oct 29, 2020 at 5:08 AM Srinivas Kandagatla wrote: > > Thanks Evan for doing this, > > On 29/10/2020 00:28, Evan Green wrote: > > Introduce support into the nvmem core for arrays of register ranges > > that should not result in actual device access. For these regions a > > constant byte

[PATCH v2] x86/build: Fix vmlinux size check on 64-bit

2020-10-29 Thread Arvind Sankar
Commit b4e0409a36f4 ("x86: check vmlinux limits, 64-bit") added a check that the size of the 64-bit kernel is less than KERNEL_IMAGE_SIZE. The check uses (_end - _text), but this is not enough. The initial PMD used in startup_64() (level2_kernel_pgt) can only map upto KERNEL_IMAGE_SIZE from

[PATCH v2 1/4] mm: introduce debug_pagealloc_map_pages() helper

2020-10-29 Thread Mike Rapoport
From: Mike Rapoport When CONFIG_DEBUG_PAGEALLOC is enabled, it unmaps pages from the kernel direct mapping after free_pages(). The pages than need to be mapped back before they could be used. Theese mapping operations use __kernel_map_pages() guarded with with debug_pagealloc_enabled(). The

[PATCH v2 0/4] arch, mm: improve robustness of direct map manipulation

2020-10-29 Thread Mike Rapoport
From: Mike Rapoport Hi, During recent discussion about KVM protected memory, David raised a concern about usage of __kernel_map_pages() outside of DEBUG_PAGEALLOC scope [1]. Indeed, for architectures that define CONFIG_ARCH_HAS_SET_DIRECT_MAP it is possible that __kernel_map_pages() would

[PATCH v2 3/4] arch, mm: restore dependency of __kernel_map_pages() of DEBUG_PAGEALLOC

2020-10-29 Thread Mike Rapoport
From: Mike Rapoport The design of DEBUG_PAGEALLOC presumes that __kernel_map_pages() must never fail. With this assumption is wouldn't be safe to allow general usage of this function. Moreover, some architectures that implement __kernel_map_pages() have this function guarded by #ifdef

[PATCH v2 4/4] arch, mm: make kernel_page_present() always available

2020-10-29 Thread Mike Rapoport
From: Mike Rapoport For architectures that enable ARCH_HAS_SET_MEMORY having the ability to verify that a page is mapped in the kernel direct map can be useful regardless of hibernation. Add RISC-V implementation of kernel_page_present(), update its forward declarations and stubs to be a part

[PATCH v4] tracing: Fix out of bounds write in get_trace_buf

2020-10-29 Thread Qiujun Huang
The subscript should be nesting - 1, as nesting had self-added. Fixes: 3d9622c12c887 ("tracing: Add barrier to trace_printk() buffer nesting modification") Signed-off-by: Qiujun Huang --- v4: Find the right patch which cause the problem. v3: Modify the way of array reference instead. v2: Fix a

[PATCH v2 2/4] PM: hibernate: make direct map manipulations more explicit

2020-10-29 Thread Mike Rapoport
From: Mike Rapoport When DEBUG_PAGEALLOC or ARCH_HAS_SET_DIRECT_MAP is enabled a page may be not present in the direct map and has to be explicitly mapped before it could be copied. On arm64 it is possible that a page would be removed from the direct map using set_direct_map_invalid_noflush()

[PATCH v4] dt-bindings: mtd: gpmi-nand: Fix matching of clocks on different SoCs

2020-10-29 Thread Krzysztof Kozlowski
Driver requires different amount of clocks for different SoCs. Describe these requirements properly to fix dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dt.yaml: nand-controller@33002000: clock-names:1: 'gpmi_apb' was expected Signed-off-by: Krzysztof Kozlowski

Re: [PATCH v6 7/7] arm64: kgdb: Roundup cpus using IPI as NMI

2020-10-29 Thread Daniel Thompson
On Thu, Oct 29, 2020 at 08:26:27PM +0530, Sumit Garg wrote: > arm64 platforms with GICv3 or later supports pseudo NMIs which can be > leveraged to roundup CPUs which are stuck in hard lockup state with > interrupts disabled that wouldn't be possible with a normal IPI. > > So instead switch to

Re: [PATCH 00/18] Add Hantro regmap and VC8000 h264 decode support

2020-10-29 Thread Jonas Karlman
On 2020-10-29 13:38, Ezequiel Garcia wrote: > On Mon, 2020-10-12 at 23:39 +, Jonas Karlman wrote: >> Hi, >> >> On 2020-10-12 22:59, Adrian Ratiu wrote: >>> Dear all, >>> >>> This series introduces a regmap infrastructure for the Hantro driver >>> which is used to compensate for different

[PATCH v2 2/2] ARM: dts: freescale: align watchdog node name with dtschema

2020-10-29 Thread Krzysztof Kozlowski
The dtschema expects watchdog device node name to be "watchdog": arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dt.yaml: wdog@2ad: $nodename:0: 'wdog@2ad' does not match '^watchdog(@.*|-[0-9a-f])?$' Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch ---

[PATCH v2 1/2] dt-bindings: watchdog: fsl-imx: document NXP compatibles

2020-10-29 Thread Krzysztof Kozlowski
Document all ARMv5, ARMv6, ARMv7 and ARMv8 NXP (i.MX, Layerscape) compatibles used in DTSes (even though driver binds only to fsl,imx21-wdt) to fix dtbs_check warnings like: arch/arm/boot/dts/imx53-qsb.dt.yaml: gpio@53fe: compatible: ['fsl,imx53-gpio', 'fsl,imx35-gpio'] is not valid

Re: [PATCH 4/4] drm/bridge: ti-sn65dsi86: Update reply on aux failures

2020-10-29 Thread Doug Anderson
Hi, On Wed, Oct 28, 2020 at 6:12 PM Stephen Boyd wrote: > > We should be setting the drm_dp_aux_msg::reply field if a NACK or a > SHORT reply happens. I don't think you update the "reply" field for SHORT, right? You just return a different size? > Update the error bit handling logic in >

Re: [RFC] wimax: move out to staging

2020-10-29 Thread Arnd Bergmann
n Thu, Oct 29, 2020 at 4:56 PM Jakub Kicinski wrote: > On Wed, 28 Oct 2020 06:56:28 +0100 Greg Kroah-Hartman wrote: > > On Tue, Oct 27, 2020 at 10:20:13PM +0100, Arnd Bergmann wrote: > > > > Is this ok for me to take through the staging tree? If so, I need an > > ack from the networking

Re: [PATCH v4 11/19] sched/core: Make migrate disable and CPU hotplug cooperative

2020-10-29 Thread Valentin Schneider
On 23/10/20 11:12, Peter Zijlstra wrote: > @@ -7006,15 +7024,20 @@ static bool balance_push(struct rq *rq) >* Both the cpu-hotplug and stop task are in this case and are >* required to complete the hotplug process. >*/ > - if (is_per_cpu_kthread(push_task)) { > +

Re: [PATCH v4 14/19] sched, lockdep: Annotate ->pi_lock recursion

2020-10-29 Thread Valentin Schneider
On 23/10/20 11:12, Peter Zijlstra wrote: > @@ -2617,6 +2618,20 @@ void sched_set_stop_task(int cpu, struct > sched_setscheduler_nocheck(stop, SCHED_FIFO, ); > > stop->sched_class = _sched_class; > + > + /* > + * The PI code calls

Re: [PATCH 1/2] ASoC: qcom: dt-bindings: sm8250: update compatibles

2020-10-29 Thread Mark Brown
On Thu, 29 Oct 2020 10:15:49 +, Srinivas Kandagatla wrote: > Update compatible string as board compatible and device compatible > should not be same!. New compatible is now suffixed with -sndcard > to be inline with other Qualcomm Sound cards. > > This also fixes the warnings/error reported

[PATCH v1 3/4] powerpc/mm: remove linear mapping if __add_pages() fails in arch_add_memory()

2020-10-29 Thread David Hildenbrand
Let's revert what we did in case seomthing goes wrong and we return an error. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Rashmica Gupta Cc: Andrew Morton Cc: Mike Rapoport Cc: Michal Hocko Cc: Oscar Salvador Cc: Wei Yang Signed-off-by: David Hildenbrand ---

[PATCH v1 1/4] powerpc/mm: factor out creating/removing linear mapping

2020-10-29 Thread David Hildenbrand
We want to stop abusing memory hotplug infrastructure in memtrace code to perform allocations and remove the linear mapping. Instead we will use alloc_contig_pages() and remove the identity mapping manually. Let's factor out creating/removing the linear mapping into arch_create_linear_mapping() /

Re: [PATCH 00/18] Add Hantro regmap and VC8000 h264 decode support

2020-10-29 Thread Ezequiel Garcia
Hi Robin, On Thu, 2020-10-29 at 14:15 +, Robin Murphy wrote: > On 2020-10-29 13:07, Ezequiel Garcia wrote: > > Hello Adrian, > > > > On Mon, 2020-10-12 at 23:59 +0300, Adrian Ratiu wrote: > > > Dear all, > > > > > > This series introduces a regmap infrastructure for the Hantro driver > > >

[PATCH v1 4/4] powernv/memtrace: don't abuse memory hot(un)plug infrastructure for memory allocations

2020-10-29 Thread David Hildenbrand
Let's use alloc_contig_pages() for allocating memory and remove the linear mapping manually via arch_remove_linear_mapping(). Mark all pages PG_offline, such that they will definitely not get touched - e.g., when hibernating. When freeing memory, try to revert what we did. The original idea was

Re: [PATCH v4 19/19] sched: Comment affine_move_task()

2020-10-29 Thread Valentin Schneider
On 23/10/20 11:12, Peter Zijlstra wrote: > + * (1) In the cases covered above. There is one more where the completion is > + * signaled within affine_move_task() itself: when a subsequent affinity > request > + * cancels the need for an active migration. Consider: > + * > + * Initial

[PATCH v1 0/4] powernv/memtrace: don't abuse memory hot(un)plug infrastructure for memory allocations

2020-10-29 Thread David Hildenbrand
powernv/memtrace is the only in-kernel user that rips out random memory it never added (doesn't own) in order to allocate memory without a linear mapping. Let's stop abusing memory hot(un)plug infrastructure for that - use alloc_contig_pages() for allocating memory and remove the linear mapping

[PATCH v1 2/4] powerpc/mm: print warning in arch_remove_linear_mapping()

2020-10-29 Thread David Hildenbrand
Let's print a warning similar to in arch_add_linear_mapping() instead of WARN_ON_ONCE() and eventually crashing the kernel. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Rashmica Gupta Cc: Andrew Morton Cc: Mike Rapoport Cc: Michal Hocko Cc: Oscar Salvador Cc: Wei

Re: [PATCH v4 17/19] sched: Add migrate_disable() tracepoints

2020-10-29 Thread Valentin Schneider
On 23/10/20 11:12, Peter Zijlstra wrote: > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -1732,6 +1732,8 @@ void migrate_disable(void) > return; > } > > + trace_sched_migrate_disable_tp(p); > + > preempt_disable(); > this_rq()->nr_pinned++; >

[PATCH v2 3/4] perf: Fix event multiplexing for exclusive groups

2020-10-29 Thread Peter Zijlstra
Commit 9e6302056f80 ("perf: Use hrtimers for event multiplexing") placed the hrtimer (re)start call in the wrong place. Instead of capturing all scheduling failures, it only considered the PMU failure. The result is that groups using perf_event_attr::exclusive are no longer rotated. Fixes:

[PATCH v2 0/4] perf: Fix perf_event_attr::exclusive rotation

2020-10-29 Thread Peter Zijlstra
Hi, Andi recently added exclusive event group support to tools/perf: https://lkml.kernel.org/r/20201014144255.22699-1-a...@firstfloor.org and promptly found that they didn't work as specified. (sorry for the resend, I forgot LKML the first time)

[PATCH v2 1/4] perf: Simplify group_sched_out()

2020-10-29 Thread Peter Zijlstra
Since event_sched_out() clears cpuctx->exclusive upon removal of an exclusive event (and only group leaders can be exclusive), there is no point in group_sched_out() trying to do it too. It is impossible for cpuctx->exclusive to still be set here. Signed-off-by: Peter Zijlstra (Intel) ---

RE: [PATCH] [v2] x86: apic: avoid -Wshadow warning in header

2020-10-29 Thread David Laight
From: Arnd Bergmann > Sent: 29 October 2020 09:51 ... > I think ideally there would be no global variable, withall accesses > encapsulated in function calls, possibly using static_call() optimizations > if any of them are performance critical. There isn't really a massive difference between

Re: [PATCH] coresight: Fix uninitialised pointer bug in etm_setup_aux()

2020-10-29 Thread Mathieu Poirier
On Wed, Oct 28, 2020 at 05:43:01PM +, Mike Leach wrote: > Commit [bb1860efc817] changed the sink handling code introducing an > uninitialised pointer bug. This results in the default sink selection > failing. > > Prior to commit: > > static void etm_setup_aux(...) > > > struct

Re: [RFC] wimax: move out to staging

2020-10-29 Thread Jakub Kicinski
On Thu, 29 Oct 2020 17:26:09 +0100 Arnd Bergmann wrote: > n Thu, Oct 29, 2020 at 4:56 PM Jakub Kicinski wrote: > > On Wed, 28 Oct 2020 06:56:28 +0100 Greg Kroah-Hartman wrote: > > > On Tue, Oct 27, 2020 at 10:20:13PM +0100, Arnd Bergmann wrote: > > > > > > Is this ok for me to take through the

Re: [PATCH v2 2/4] PM: hibernate: make direct map manipulations more explicit

2020-10-29 Thread Rafael J. Wysocki
On Thu, Oct 29, 2020 at 5:19 PM Mike Rapoport wrote: > > From: Mike Rapoport > > When DEBUG_PAGEALLOC or ARCH_HAS_SET_DIRECT_MAP is enabled a page may be > not present in the direct map and has to be explicitly mapped before it > could be copied. > > On arm64 it is possible that a page would be

Re: [PATCH v2] net: usb: usbnet: update __usbnet_{read|write}_cmd() to use new API

2020-10-29 Thread Alan Stern
On Thu, Oct 29, 2020 at 08:46:59PM +0530, Anant Thazhemadam wrote: > I had a v2 prepared and ready but was told to wait for a week before sending > it in, > since usb_control_msg_{send|recv}() that were being used were not present in > the > networking tree at the time, and all the trees would

Re: [External] Re: [PATCH v2] mm: memcg/slab: Fix return child memcg objcg for root memcg

2020-10-29 Thread Muchun Song
On Fri, Oct 30, 2020 at 12:18 AM Shakeel Butt wrote: > > On Thu, Oct 29, 2020 at 9:09 AM Muchun Song wrote: > > > > On Thu, Oct 29, 2020 at 11:48 PM Shakeel Butt wrote: > > > > > > On Tue, Oct 27, 2020 at 8:50 PM Muchun Song > > > wrote: > > > > > > > > Consider the following memcg hierarchy.

[PATCH v2 2/4] perf: Simplify group_sched_in()

2020-10-29 Thread Peter Zijlstra
Collate the error paths. Code duplication only leads to divergence and extra bugs. Signed-off-by: Peter Zijlstra (Intel) --- kernel/events/core.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -2580,11 +2580,8 @@

[PATCH v2 4/4] perf: Tweak perf_event_attr::exclusive semantics

2020-10-29 Thread Peter Zijlstra
Currently perf_event_attr::exclusive can be used to ensure an event(group) is the sole group scheduled on the PMU. One consequence is that when you have a pinned event (say the watchdog) you can no longer have regular exclusive event(group)s. Inspired by the fact that !pinned events are

Re: [PATCH 2/2] arm64: dts: renesas: r8a77961: ulcb-kf: Initial device tree

2020-10-29 Thread Eugeniu Rosca
Hi Geert, On Thu, Oct 29, 2020 at 03:09:10PM +0100, Geert Uytterhoeven wrote: > On Thu, Oct 29, 2020 at 2:38 PM Eugeniu Rosca wrote: > > Create a dedicated DTB for M3-ES3.0 + ULCB + Kingfisher combo. > > Inspire from the pre-existing ULCB-KF device trees: > > > > $ ls -1

[PATCH] mtd: rawnand: stm32_fmc2: fix broken ECC

2020-10-29 Thread Christophe Kerello
Since commit d7157ff49a5b ("mtd: rawnand: Use the ECC framework user input parsing bits"), ECC are broken in FMC2 driver in case of nand-ecc-step-size and nand-ecc-strength are not set in the device tree. The default user configuration set in FMC2 driver is lost when rawnand_dt_init function is

<    9   10   11   12   13   14   15   16   17   >