Re: [PATCH v2] mm: cma: support sysfs

2021-02-09 Thread Greg KH
On Tue, Feb 09, 2021 at 07:55:59AM -0800, Minchan Kim wrote: > On Tue, Feb 09, 2021 at 07:56:30AM +0100, Greg KH wrote: > > On Mon, Feb 08, 2021 at 10:34:51PM -0800, John Hubbard wrote: > > > On 2/8/21 10:27 PM, John Hubbard wrote: > > > > On 2/8/21 10:13 PM, Greg KH wrote: > > > > > On Mon, Feb 08

Re: [PATCH] IOCTL support for dell-wmi-sysman driver

2021-02-09 Thread kernel test robot
s documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Prasanth-KSR/IOCTL-support-for-dell-wmi-sysman-driver/20210209-223343 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 61556703b610a104de324e4f061dc6cf7b218b

Re: [PATCH v6 1/3] lib/vsprintf: Add support for printing V4L2 and DRM fourccs

2021-02-09 Thread Sakari Ailus
Hi Andy, On Tue, Feb 09, 2021 at 11:58:40AM +0200, Andy Shevchenko wrote: > On Tue, Feb 09, 2021 at 11:20:32AM +0200, Sakari Ailus wrote: > > On Mon, Feb 08, 2021 at 10:43:30PM +0200, Andy Shevchenko wrote: > > > On Mon, Feb 8, 2021 at 10:11 PM Sakari Ailus > > > wrote: > > ... > > > > > +

Re: [PATCH net-next 5/7] net: marvell: prestera: add LAG support

2021-02-09 Thread Jakub Kicinski
On Tue, 09 Feb 2021 12:56:55 +0100 Tobias Waldekranz wrote: > > I ask myself that question pretty much every day. Sadly I have no clear > > answer. > > Thank you for your candid answer, really appreciate it. I do not envy > you one bit, making those decisions must be extremely hard. > > > Silic

Re: [PATCH] printk: avoid prb_first_valid_seq() where possible

2021-02-09 Thread Petr Mladek
On Fri 2021-02-05 15:23:28, John Ogness wrote: > If message sizes average larger than expected (more than 32 > characters), the data_ring will wrap before the desc_ring. Once the > data_ring wraps, it will start invalidating descriptors. These > invalid descriptors hang around until they are eventu

Re: [RFC][PATCH v6 1/7] drm: Add a sharable drm page-pool implementation

2021-02-09 Thread Christian König
Am 09.02.21 um 18:33 schrieb Suren Baghdasaryan: On Tue, Feb 9, 2021 at 4:57 AM Christian König wrote: Am 09.02.21 um 13:11 schrieb Christian König: [SNIP] +void drm_page_pool_add(struct drm_page_pool *pool, struct page *page) +{ + spin_lock(&pool->lock); + list_add_tail(&page->lru

[v7 PATCH 07/12] mm: vmscan: use a new flag to indicate shrinker is registered

2021-02-09 Thread Yang Shi
Currently registered shrinker is indicated by non-NULL shrinker->nr_deferred. This approach is fine with nr_deferred at the shrinker level, but the following patches will move MEMCG_AWARE shrinkers' nr_deferred to memcg level, so their shrinker->nr_deferred would always be NULL. This would prevent

[v7 PATCH 0/12] Make shrinker's nr_deferred memcg aware

2021-02-09 Thread Yang Shi
Changelog v6 --> v7: * Expanded shrinker_info in a batch of BITS_PER_LONG per Kirill. * Added patch 06/12 to introduce a helper for dereferencing shrinker_info per Kirill. * Renamed set_nr_deferred_memcg to add_nr_deferred_memcg per Kirill. * Collected Acked-by from Kirill.

[v7 PATCH 02/12] mm: vmscan: consolidate shrinker_maps handling code

2021-02-09 Thread Yang Shi
The shrinker map management is not purely memcg specific, it is at the intersection between memory cgroup and shrinkers. It's allocation and assignment of a structure, and the only memcg bit is the map is being stored in a memcg structure. So move the shrinker_maps handling code into vmscan.c

[v7 PATCH 01/12] mm: vmscan: use nid from shrink_control for tracepoint

2021-02-09 Thread Yang Shi
The tracepoint's nid should show what node the shrink happens on, the start tracepoint uses nid from shrinkctl, but the nid might be set to 0 before end tracepoint if the shrinker is not NUMA aware, so the traceing log may show the shrink happens on one node but end up on the other node. It see

[v7 PATCH 03/12] mm: vmscan: use shrinker_rwsem to protect shrinker_maps allocation

2021-02-09 Thread Yang Shi
Since memcg_shrinker_map_size just can be changed under holding shrinker_rwsem exclusively, the read side can be protected by holding read lock, so it sounds superfluous to have a dedicated mutex. Kirill Tkhai suggested use write lock since: * We want the assignment to shrinker_maps is visible

[v7 PATCH 04/12] mm: vmscan: remove memcg_shrinker_map_size

2021-02-09 Thread Yang Shi
Both memcg_shrinker_map_size and shrinker_nr_max is maintained, but actually the map size can be calculated via shrinker_nr_max, so it seems unnecessary to keep both. Remove memcg_shrinker_map_size since shrinker_nr_max is also used by iterating the bit map. Acked-by: Kirill Tkhai Signed-off-by

[v7 PATCH 05/12] mm: memcontrol: rename shrinker_map to shrinker_info

2021-02-09 Thread Yang Shi
The following patch is going to add nr_deferred into shrinker_map, the change will make shrinker_map not only include map anymore, so rename it to "memcg_shrinker_info". And this should make the patch adding nr_deferred cleaner and readable and make review easier. Also remove the "memcg_" prefix

[v7 PATCH 06/12] mm: vmscan: add shrinker_info_protected() helper

2021-02-09 Thread Yang Shi
The shrinker_info is dereferenced in a couple of places via rcu_dereference_protected with different calling conventions, for example, using mem_cgroup_nodeinfo helper or dereferencing memcg->nodeinfo[nid]->shrinker_info. And the later patch will add more dereference places. So extract the dere

[v7 PATCH 08/12] mm: vmscan: add per memcg shrinker nr_deferred

2021-02-09 Thread Yang Shi
Currently the number of deferred objects are per shrinker, but some slabs, for example, vfs inode/dentry cache are per memcg, this would result in poor isolation among memcgs. The deferred objects typically are generated by __GFP_NOFS allocations, one memcg with excessive __GFP_NOFS allocations

[v7 PATCH 09/12] mm: vmscan: use per memcg nr_deferred of shrinker

2021-02-09 Thread Yang Shi
Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's nr_deferred will be used in the following cases: 1. Non memcg aware shrinkers 2. !CONFIG_MEMCG 3. memcg is disabled by boot parameter Signed-off-by: Yang Shi --- mm/vmscan.c | 78 +

[v7 PATCH 12/12] mm: vmscan: shrink deferred objects proportional to priority

2021-02-09 Thread Yang Shi
The number of deferred objects might get windup to an absurd number, and it results in clamp of slab objects. It is undesirable for sustaining workingset. So shrink deferred objects proportional to priority and cap nr_deferred to twice of cache items. The idea is borrowed from Dave Chinner's pat

[v7 PATCH 10/12] mm: vmscan: don't need allocate shrinker->nr_deferred for memcg aware shrinkers

2021-02-09 Thread Yang Shi
Now nr_deferred is available on per memcg level for memcg aware shrinkers, so don't need allocate shrinker->nr_deferred for such shrinkers anymore. The prealloc_memcg_shrinker() would return -ENOSYS if !CONFIG_MEMCG or memcg is disabled by kernel command line, then shrinker's SHRINKER_MEMCG_AWAR

Re: [PATCH v4 4/5] mm: Use is_cow_mapping() across tree where proper

2021-02-09 Thread Jason Gunthorpe
On Mon, Feb 08, 2021 at 10:02:28PM -0500, Peter Xu wrote: > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 71ccec5c3817..620700f05ff4 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -3733,15 +3733,13 @@ int copy_hugetlb_page_range(struct mm_struct *dst, > struct mm_struct *src, > pte

[v7 PATCH 11/12] mm: memcontrol: reparent nr_deferred when memcg offline

2021-02-09 Thread Yang Shi
Now shrinker's nr_deferred is per memcg for memcg aware shrinkers, add to parent's corresponding nr_deferred when memcg offline. Acked-by: Vlastimil Babka Acked-by: Kirill Tkhai Signed-off-by: Yang Shi --- include/linux/memcontrol.h | 1 + mm/memcontrol.c| 1 + mm/vmscan.c

Re: [fuse-devel] [PATCH 0/8] MUSE: Userspace backed MTD v3

2021-02-09 Thread Luca Risolia
On 09/02/21 17:50, Richard Weinberger wrote: Well, I think having a generic mmap() for CUSE is hard to achieve. Hard or not it did work for what I can tell you. I was not the original author but I certainly contributed with testing that patch. Just to be clear, by "not considered" I meant bot

Re: [PATCH RFC 2/2] dt: pci: kirin-pcie.txt: convert it to yaml

2021-02-09 Thread Rob Herring
On Tue, Feb 02, 2021 at 10:45:37AM +0100, Mauro Carvalho Chehab wrote: > Em Tue, 26 Jan 2021 09:49:18 -0600 > Rob Herring escreveu: > > > On Tue, Jan 26, 2021 at 1:35 AM Mauro Carvalho Chehab > > wrote: > > > > > > Convert the file into a JSON description at the yaml format. > > > > > > Signed-o

Re: [PATCH 0/4] btrfs: Convert kmaps to core page calls

2021-02-09 Thread Ira Weiny
On Tue, Feb 09, 2021 at 04:11:23PM +0100, David Sterba wrote: > On Fri, Feb 05, 2021 at 03:23:00PM -0800, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > There are many places where kmap//kunmap patterns occur. We lift > > these various patterns to core common functions and use them in th

Re: [PATCH] kprobes: Warn if the kprobe is reregistered

2021-02-09 Thread Steven Rostedt
On Wed, 3 Feb 2021 23:59:27 +0900 Masami Hiramatsu wrote: > Warn if the kprobe is reregistered, since there must be > a software bug (actively used resource must not be re-registered) > and caller must be fixed. > > Signed-off-by: Masami Hiramatsu > --- Applied. Thanks Masami! -- Steve

Re: WARNING: suspicious RCU usage (5.11.0-rc7+ #1812 Tainted: G)

2021-02-09 Thread Rafael J. Wysocki
On Tue, Feb 9, 2021 at 12:57 PM Kalle Valo wrote: > > + ath10k list > > Peter Zijlstra writes: > > > On Mon, Feb 08, 2021 at 08:04:27PM +0100, Rafael J. Wysocki wrote: > >> Hi Peter & Paul, > >> > >> The traces below are present in the boot dmesg log on my Dell XPS13 9360. > >> > >> I haven't had

Re: [PATCH] staging: gdm724x: Fix DMA from stack

2021-02-09 Thread Greg KH
On Tue, Feb 09, 2021 at 08:24:15PM +0530, ameynarkhed...@gmail.com wrote: > From: Amey Narkhede > > Stack allocated buffers cannot be used for DMA > on all architectures so allocate usbdev buffer > using kmalloc(). > > Signed-off-by: Amey Narkhede > --- > drivers/staging/gdm724x/gdm_usb.c | 6

Re: [PATCH] arm64: dts: ti: Add support for Siemens IOT2050 boards

2021-02-09 Thread Jan Kiszka
oids? > So, many of my comments below are just first pass parse of that log -> I > usually do recommend building with W=2 and dtbs_check (with yamlint etc) > to make sure things are a bit sane. Will be good to have additional > eyes. > > On 11:21-20210209, Jan Kiszka wrote:

Re: [PATCH v4 3/5] mm: Introduce page_needs_cow_for_dma() for deciding whether cow

2021-02-09 Thread Jason Gunthorpe
On Mon, Feb 08, 2021 at 10:02:27PM -0500, Peter Xu wrote: > We've got quite a few places (pte, pmd, pud) that explicitly checked against > whether we should break the cow right now during fork(). It's easier to > provide a helper, especially before we work the same thing on hugetlbfs. > > Since w

Re: [RFC][PATCH v6 3/7] drm: ttm_pool: Rework ttm_pool_free_page to allow us to use it as a function pointer

2021-02-09 Thread John Stultz
On Tue, Feb 9, 2021 at 4:14 AM Christian König wrote: > Am 05.02.21 um 20:47 schrieb John Stultz: > > On Fri, Feb 5, 2021 at 12:28 AM Christian König > > wrote: > >> Adding this to all pages would increase the memory footprint drastically. > > Yea, that's a good point! Hrm... bummer. I'll have t

Re: [PATCH V3 11/14] coresight: sink: Add TRBE driver

2021-02-09 Thread Mathieu Poirier
On Fri, Feb 05, 2021 at 10:53:30AM -0700, Mathieu Poirier wrote: > On Wed, Jan 27, 2021 at 02:25:35PM +0530, Anshuman Khandual wrote: > > Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is > > accessible via the system registers. The TRBE supports different addressing > > mode

Re: [PATCH 2/6] sched/fair: remove unused parameter of update_nohz_stats

2021-02-09 Thread Vincent Guittot
On Tue, 9 Feb 2021 at 14:45, Dietmar Eggemann wrote: > > On 05/02/2021 12:48, Vincent Guittot wrote: > > idle load balance is the only user of update_nohz_stats and doesn't use > > force parameter. Remove it > > Wasn't the 'force=true' from ilb eclipsing the jiffy resolution rate > limiting '!time

Re: [RFC PATCH 2/2] KVM: selftests: Add a test for kvm page table code

2021-02-09 Thread Ben Gardon
On Mon, Feb 8, 2021 at 11:22 PM wangyanan (Y) wrote: > > Hi Ben, > > On 2021/2/9 4:29, Ben Gardon wrote: > > On Mon, Feb 8, 2021 at 1:08 AM Yanan Wang wrote: > >> This test serves as a performance tester and a bug reproducer for > >> kvm page table code (GPA->HPA mappings), so it gives guidance f

Re: [PATCH v2 net-next 03/11] net: bridge: don't print in br_switchdev_set_port_flag

2021-02-09 Thread Vladimir Oltean
On Tue, Feb 09, 2021 at 05:19:28PM +0200, Vladimir Oltean wrote: > From: Vladimir Oltean > > Currently br_switchdev_set_port_flag has two options for error handling > and neither is good: > - The driver returns -EOPNOTSUPP in PRE_BRIDGE_FLAGS if it doesn't > support offloading that flag, and thi

Re: [PATCH v2] mm: cma: Print region name on failure

2021-02-09 Thread Randy Dunlap
On 2/9/21 6:24 AM, Georgi Djakov wrote: > From: Patrick Daly > > Print the name of the CMA region for convenience. This is useful > information to have when cma_alloc() fails. > > Signed-off-by: Patrick Daly > Signed-off-by: Georgi Djakov Reviewed-by: Randy Dunlap Thanks. > --- > v2: > *

Re: [RFC PATCH 1/2] KVM: selftests: Add a macro to get string of vm_mem_backing_src_type

2021-02-09 Thread Sean Christopherson
On Tue, Feb 09, 2021, Ben Gardon wrote: > On Tue, Feb 9, 2021 at 3:21 AM wangyanan (Y) wrote: > > > > > > On 2021/2/9 2:13, Ben Gardon wrote: > > > On Mon, Feb 8, 2021 at 1:08 AM Yanan Wang wrote: > > >> Add a macro to get string of the backing source memory type, so that > > >> application can a

Re: [PATCH] dmaengine: qcom: bam_dma: Add LOCK and UNLOCK flag bit support

2021-02-09 Thread Bjorn Andersson
On Mon 01 Feb 09:50 CST 2021, mda...@codeaurora.org wrote: > On 2021-02-01 12:13, Vinod Koul wrote: > > On 01-02-21, 11:52, mda...@codeaurora.org wrote: > > > On 2021-02-01 11:35, Vinod Koul wrote: > > > > On 27-01-21, 23:56, mda...@codeaurora.org wrote: > > > > > > > The actual LOCK/UNLOCK fla

Re: [PATCH 4.14 00/30] 4.14.221-rc1 review

2021-02-09 Thread Naresh Kamboju
On Mon, 8 Feb 2021 at 20:38, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.221 release. > There are 30 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. > > Res

Re: [PATCH net-next 5/7] net: marvell: prestera: add LAG support

2021-02-09 Thread Jakub Kicinski
On Tue, 9 Feb 2021 14:58:26 +0100 Andrew Lunn wrote: > > At the same time some FW is necessary. Certain chip functions, are > > best driven by a micro-controller running a tight control loop. > > For a smart NIC, i could agree. But a switch? The data path is in > hardware. The driver is all ab

Re: [RFC][PATCH v6 1/7] drm: Add a sharable drm page-pool implementation

2021-02-09 Thread Suren Baghdasaryan
On Tue, Feb 9, 2021 at 4:57 AM Christian König wrote: > > Am 09.02.21 um 13:11 schrieb Christian König: > > [SNIP] > +void drm_page_pool_add(struct drm_page_pool *pool, struct page *page) > +{ > + spin_lock(&pool->lock); > + list_add_tail(&page->lru, &pool->items); > >>

Re: [PATCH v12 7/7] kasan: don't run tests in async mode

2021-02-09 Thread Vincenzo Frascino
Hi Andrey, On 2/9/21 5:26 PM, Andrey Konovalov wrote: > On Tue, Feb 9, 2021 at 6:07 PM Catalin Marinas > wrote: >> >> On Tue, Feb 09, 2021 at 04:02:25PM +0100, Andrey Konovalov wrote: >>> On Tue, Feb 9, 2021 at 1:16 PM Vincenzo Frascino >>> wrote: On 2/9/21 12:02 PM, Catalin Marinas wrote:

Re: [PATCH v12 6/7] arm64: mte: Save/Restore TFSR_EL1 during suspend

2021-02-09 Thread Catalin Marinas
On Tue, Feb 09, 2021 at 02:33:28PM +, Lorenzo Pieralisi wrote: > On Tue, Feb 09, 2021 at 11:55:33AM +, Catalin Marinas wrote: > > On Mon, Feb 08, 2021 at 04:56:16PM +, Vincenzo Frascino wrote: > > > When MTE async mode is enabled TFSR_EL1 contains the accumulative > > > asynchronous tag

Re: [PATCH] Drivers: staging: most: sound: Fixed styling issue.

2021-02-09 Thread Greg KH
On Tue, Feb 09, 2021 at 06:36:19PM +0530, Mukul Mehar wrote: > This patch fixes a warning, of the line ending with a '(', > generated by checkpatch.pl. > > Signed-off-by: Mukul Mehar > --- > drivers/staging/most/sound/sound.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) >

Re: [PATCH v12 7/7] kasan: don't run tests in async mode

2021-02-09 Thread Andrey Konovalov
On Tue, Feb 9, 2021 at 6:07 PM Catalin Marinas wrote: > > On Tue, Feb 09, 2021 at 04:02:25PM +0100, Andrey Konovalov wrote: > > On Tue, Feb 9, 2021 at 1:16 PM Vincenzo Frascino > > wrote: > > > On 2/9/21 12:02 PM, Catalin Marinas wrote: > > > > On Mon, Feb 08, 2021 at 04:56:17PM +, Vincenzo F

Re: [PATCH v2] checkpatch: do not apply "initialise globals to 0" check to BPF progs

2021-02-09 Thread Joe Perches
On Tue, 2021-02-09 at 09:00 -0800, Song Liu wrote: > BPF programs explicitly initialise global variables to 0 to make sure > clang (v10 or older) do not put the variables in the common section. > Skip "initialise globals to 0" check for BPF programs to elimiate error > messages like: > > ERROR

Re: [PATCH v2 1/2] kunit: support failure from dynamic analysis tools

2021-02-09 Thread Alan Maguire
On Fri, 5 Feb 2021, Daniel Latypov wrote: > From: Uriel Guajardo > > Add a kunit_fail_current_test() function to fail the currently running > test, if any, with an error message. > > This is largely intended for dynamic analysis tools like UBSAN and for > fakes. > E.g. say I had a fake ops stru

Re: [RESEND v4 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-09 Thread Krzysztof Wilczyński
Hi Gustavo, [...] > > The code in question would be (exceprt from the patch): > > > > [...] > > +static int dw_xdata_pcie_probe(struct pci_dev *pdev, > > + const struct pci_device_id *pid) > > +{ > > + const struct dw_xdata_pcie_data *pdata = (void *)pid->driver_data; >

Re: [RFC PATCH 5/6] sched/fair: trigger the update of blocked load on newly idle cpu

2021-02-09 Thread Valentin Schneider
On 09/02/21 14:57, Vincent Guittot wrote: > On Tue, 9 Feb 2021 at 14:09, Valentin Schneider > wrote: >> On 05/02/21 12:48, Vincent Guittot wrote: >> > @@ -261,6 +261,12 @@ static void cpuidle_idle_call(void) >> > static void do_idle(void) >> > { >> > int cpu = smp_processor_id(); >> > + >>

[PATCH v2] Documentation/admin-guide: kernel-parameters: Update nohlt section

2021-02-09 Thread Florian Fainelli
Update the documentation regarding "nohlt" and indicate that it is not only for bugs, but can be useful to disable the architecture specific sleep instructions. ARM, ARM64, SuperH and Microblaze all use CONFIG_GENERIC_IDLE_POLL_SETUP which takes care of honoring the "hlt"/"nohlt" parameters. Acked

[PATCH v1] doc: h264/hevc: Clarify _START_CODE_NONE meaning

2021-02-09 Thread Nicolas Dufresne
As some hardware have a knob to enable or disable emulation prevention bytes removal, driver writers ended up wondering what exactly the START_CODE_NONE modes meant in this regards. This patch clarify what is expected with a reference to the specification. Reported-by: John Cox Signed-off-by: Nic

Re: [PATCH] staging: rtl8723bs: fix block comments alignment

2021-02-09 Thread Greg Kroah-Hartman
On Tue, Feb 09, 2021 at 09:50:50PM +0530, karthek wrote: > On Sun, Feb 07, 2021 at 04:26:40PM +0100, Greg Kroah-Hartman wrote: > > On Sun, Feb 07, 2021 at 08:54:49PM +0530, karthek wrote: > > > On Sun, Feb 07, 2021 at 04:21:29PM +0100, Greg Kroah-Hartman wrote: > > > > On Sun, Feb 07, 2021 at 08:49

Re: [PATCH] staging: gdm724x: Fix DMA from stack

2021-02-09 Thread kernel test robot
Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/ameynarkhede03-gmail-com/staging-gdm724x-Fix-DMA-from-stack/20210209-225530 base: https://git.kernel.org/pub/scm/linux/kernel/git

Re: [RFC PATCH 1/2] KVM: selftests: Add a macro to get string of vm_mem_backing_src_type

2021-02-09 Thread Ben Gardon
On Tue, Feb 9, 2021 at 3:21 AM wangyanan (Y) wrote: > > > On 2021/2/9 2:13, Ben Gardon wrote: > > On Mon, Feb 8, 2021 at 1:08 AM Yanan Wang wrote: > >> Add a macro to get string of the backing source memory type, so that > >> application can add choices for source types in the help() function, >

RE: [PATCH v5 20/22] powerpc/syscall: Avoid storing 'current' in another pointer

2021-02-09 Thread David Laight
From: Christophe Leroy > Sent: 09 February 2021 17:04 > > Le 09/02/2021 à 15:31, David Laight a écrit : > > From: Segher Boessenkool > >> Sent: 09 February 2021 13:51 > >> > >> On Tue, Feb 09, 2021 at 12:36:20PM +1000, Nicholas Piggin wrote: > >>> What if you did this? > >> > >>> +static inline s

[PATCH 4/4] hwmon: (occ) Print response status in first poll error message

2021-02-09 Thread Eddie James
In order to better debug problems starting up the driver, print the response status from the OCC in the error logged when the first poll command fails. Signed-off-by: Eddie James --- drivers/hwmon/occ/common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon

[PATCH 3/4] hwmon: (occ) Start sequence number at one

2021-02-09 Thread Eddie James
Initialize the sequence number at one, rather than zero, in order to prevent false matches with the zero-initialized OCC SRAM buffer before the OCC is fully initialized. Signed-off-by: Eddie James --- drivers/hwmon/occ/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwmon/

[PATCH 2/4] fsi: occ: Log error for checksum failure

2021-02-09 Thread Eddie James
Log an error if the response checksum doesn't match the calculated checksum. Signed-off-by: Eddie James --- drivers/fsi/fsi-occ.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c index cb05b6dacc9d..524460995465 100644 -

[PATCH 0/4] occ: fsi and hwmon: Fixes for polling un-initialized OCC

2021-02-09 Thread Eddie James
In the event that the OCC is not initialized when the driver sends a poll command, the driver may receive an invalid response. This isn't an error condition unless there is no valid response before the timeout expires. So change the starting sequence number and check for the un-initialized OCC stat

Re: [GIT PULL 2/3] ARM: dts: samsung: DTS for v5.12

2021-02-09 Thread Bjorn Andersson
On Tue 09 Feb 08:27 CST 2021, Rob Herring wrote: > On Mon, Feb 8, 2021 at 5:10 PM Alexandre Belloni > wrote: > > > > On 08/02/2021 23:14:02+0100, Arnd Bergmann wrote: > > > On Mon, Feb 8, 2021 at 10:35 PM Alexandre Belloni > > > wrote: > > > > On 08/02/2021 20:52:37+0100, Arnd Bergmann wrote: >

[PATCH 1/4] fsi: occ: Don't accept response from un-initialized OCC

2021-02-09 Thread Eddie James
If the OCC is not initialized and responds as such, the driver should continue waiting for a valid response until the timeout expires. Signed-off-by: Eddie James --- drivers/fsi/fsi-occ.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c index 10ca

Re: [PATCH BUGFIX/IMPROVEMENT 2/6] block, bfq: put reqs of waker and woken in dispatch list

2021-02-09 Thread Paolo Valente
> Il giorno 5 feb 2021, alle ore 11:16, Paolo Valente > ha scritto: > > > >> Il giorno 3 feb 2021, alle ore 12:43, Jan Kara ha scritto: >> >> On Thu 28-01-21 18:54:05, Paolo Valente wrote: >>> >>> Il giorno 26 gen 2021, alle ore 17:18, Jens Axboe ha scritto: On 1/

Re: [PATCH v2 2/3] dt-bindings: pinctrl: qcom: Add sc8180x binding

2021-02-09 Thread Rob Herring
On Mon, 25 Jan 2021 20:26:49 -0800, Bjorn Andersson wrote: > Add binding for the TLMM block in the Qualcomm SC8180X platform. > > Signed-off-by: Bjorn Andersson > --- > .../pinctrl/qcom,sc8180x-pinctrl.yaml | 152 ++ > 1 file changed, 152 insertions(+) > create mode 1006

Re: [PATCH v12 7/7] kasan: don't run tests in async mode

2021-02-09 Thread Catalin Marinas
On Tue, Feb 09, 2021 at 04:02:25PM +0100, Andrey Konovalov wrote: > On Tue, Feb 9, 2021 at 1:16 PM Vincenzo Frascino > wrote: > > On 2/9/21 12:02 PM, Catalin Marinas wrote: > > > On Mon, Feb 08, 2021 at 04:56:17PM +, Vincenzo Frascino wrote: > > >> diff --git a/lib/test_kasan.c b/lib/test_kasa

Re: [PATCH v2 1/3] dt-bindings: pinctrl: qcom: Define common TLMM binding

2021-02-09 Thread Rob Herring
On Mon, 25 Jan 2021 20:26:48 -0800, Bjorn Andersson wrote: > Several properties are shared between all TLMM bindings. By providing a > common binding to define these properties each platform's binding can be > reduced to just listing which of these properties should be checked for > - or further sp

Re: [PATCH v5 20/22] powerpc/syscall: Avoid storing 'current' in another pointer

2021-02-09 Thread Christophe Leroy
Le 09/02/2021 à 15:31, David Laight a écrit : From: Segher Boessenkool Sent: 09 February 2021 13:51 On Tue, Feb 09, 2021 at 12:36:20PM +1000, Nicholas Piggin wrote: What if you did this? +static inline struct task_struct *get_current(void) +{ + register struct task_struct *task asm

Re: add a new dma_alloc_noncontiguous API v2

2021-02-09 Thread Christoph Hellwig
On Tue, Feb 09, 2021 at 03:46:13PM +0100, Ricardo Ribalda wrote: > Hi Christoph > > I have tested it in both arm and x86, since there are not significant > changes with the previous version I did not do a performance test. I'll take this as a Tested-by.

Re: [PATCH mm] arm64: kasan: fix MTE symbols exports

2021-02-09 Thread Catalin Marinas
On Tue, Feb 09, 2021 at 04:32:30PM +0100, Andrey Konovalov wrote: > diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c > index a66c2806fc4d..788ef0c3a25e 100644 > --- a/arch/arm64/kernel/mte.c > +++ b/arch/arm64/kernel/mte.c > @@ -113,13 +113,17 @@ void mte_enable_kernel(void) > s

[PATCH v2] checkpatch: do not apply "initialise globals to 0" check to BPF progs

2021-02-09 Thread Song Liu
BPF programs explicitly initialise global variables to 0 to make sure clang (v10 or older) do not put the variables in the common section. Skip "initialise globals to 0" check for BPF programs to elimiate error messages like: ERROR: do not initialise globals to 0 #19: FILE: samples/bpf/tra

Re: [PATCH] staging: bcm2835-audio: Replace unsafe strcpy() with strscpy()

2021-02-09 Thread Nicolas Saenz Julienne
On Fri, 2021-02-05 at 08:25 +0100, Juerg Haefliger wrote: > Replace strcpy() with strscpy() in bcm2835-audio/bcm2835.c to prevent the > following when loading snd-bcm2835: > > [ 58.480634] [ cut here ] > [ 58.485321] kernel BUG at lib/string.c:1149! > [ 58.489650] Int

Re: [PATCH v10 7/7] at24: Support probing while off

2021-02-09 Thread Rafael J. Wysocki
On Tue, Feb 9, 2021 at 5:54 PM Sakari Ailus wrote: > > On Tue, Feb 09, 2021 at 05:42:45PM +0100, Rafael J. Wysocki wrote: > > On Tue, Feb 9, 2021 at 5:23 PM Sakari Ailus > > wrote: > > > > > > Hi Bartosz, Rafael, > > > > > > On Tue, Feb 09, 2021 at 04:49:37PM +0100, Bartosz Golaszewski wrote: > >

Re: [GIT PULL] x86/urgent for v5.11-rc7

2021-02-09 Thread Andy Lutomirski
> On Feb 9, 2021, at 8:45 AM, Alexei Starovoitov > wrote: > > On Tue, Feb 9, 2021 at 6:49 AM Steven Rostedt wrote: >> >>> On Tue, 9 Feb 2021 09:32:34 +0100 (CET) >>> Miroslav Benes wrote: >>> >>> powerpc has this >>> >>> static inline unsigned long klp_get_ftrace_location(unsigned long

Re: [PATCH v10 7/7] at24: Support probing while off

2021-02-09 Thread Sakari Ailus
On Tue, Feb 09, 2021 at 05:42:45PM +0100, Rafael J. Wysocki wrote: > On Tue, Feb 9, 2021 at 5:23 PM Sakari Ailus > wrote: > > > > Hi Bartosz, Rafael, > > > > On Tue, Feb 09, 2021 at 04:49:37PM +0100, Bartosz Golaszewski wrote: > > > On Mon, Feb 8, 2021 at 5:54 PM Rafael J. Wysocki > > > wrote: >

Re: [PATCH] fs/jfs: fix potential integer overflow on shift of a int

2021-02-09 Thread Dave Kleikamp
On 2/5/21 11:11 AM, Colin King wrote: From: Colin Ian King The left shift of int 32 bit integer constant 1 is evaluated using 32 bit arithmetic and then assigned to a signed 64 bit integer. In the case where l2nb is 32 or more this can lead to an overflow. Avoid this by shifting using the BIT_

Re: [RFC/PATCH v2 09/16] soc: bcm: bcm2835-power: Add support for BCM2711's Argon ASB

2021-02-09 Thread Nicolas Saenz Julienne
Hi Phil, On Tue, 2021-02-09 at 16:38 +, Phil Elwell wrote: > Nicolas, > > > > Please don't refer to this block as ARGON - it is the IP of Raspberry > > > Pi Trading and it's name is RPiVid. > > > > OK, sorry for that. I, again, mixed both ASB names. I'll rename the Argon > > ASB > > to RPiVi

Re: [fuse-devel] [PATCH 0/8] MUSE: Userspace backed MTD v3

2021-02-09 Thread Richard Weinberger
- Ursprüngliche Mail - > On 09/02/21 17:29, Richard Weinberger wrote: >> The mmap() call itself. Of course you need to touch code. >> Maybe just cuse_lowlevel.c, maybe kernel too. > > A patch had been submitted some years ago, more than once, asking for > inclusion in the kernel, but facts

Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver

2021-02-09 Thread Aleksander Morgado
Hey, > On Tue, 9 Feb 2021 10:20:30 +0100 Aleksander Morgado wrote: > > This may be a stupid suggestion, but would the integration look less a > > backdoor if it would have been named "mhi_wwan" and it exposed already > > all the AT+DIAG+QMI+MBIM+NMEA possible channels as chardevs, not just > > QMI

Re: [patch] preempt: select PREEMPT_DYNAMIC under PREEMPTION instead of PREEMPT

2021-02-09 Thread Mike Galbraith
On Tue, 2021-02-09 at 17:19 +0100, Peter Zijlstra wrote: > On Tue, Feb 09, 2021 at 05:13:15PM +0100, Peter Zijlstra wrote: > > On Tue, Feb 09, 2021 at 05:05:14PM +0100, Mike Galbraith wrote: > > > > > ld: init/main.o: in function `trace_initcall_start': > > > /backup/usr/local/src/kernel/linux-tip-

Re: [PATCH] checkpatch: do not apply "initialise globals to 0" check to BPF progs

2021-02-09 Thread Song Liu
> On Feb 8, 2021, at 10:29 PM, Joe Perches wrote: > > On Mon, 2021-02-08 at 15:40 -0800, Song Liu wrote: >> BPF programs explicitly initialise global variables to 0 to make sure >> clang (v10 or older) do not put the variables in the common section. >> Skip "initialise globals to 0" check for

Re: [GIT PULL] x86/urgent for v5.11-rc7

2021-02-09 Thread Alexei Starovoitov
On Tue, Feb 9, 2021 at 6:49 AM Steven Rostedt wrote: > > On Tue, 9 Feb 2021 09:32:34 +0100 (CET) > Miroslav Benes wrote: > > > powerpc has this > > > > static inline unsigned long klp_get_ftrace_location(unsigned long faddr) > > { > > /* > > * Live patch works only with -mprofile

Re: Re: Conflict with Mickaël Salaün's blacklist patches [was [PATCH v5 0/4] Add EFI_CERT_X509_GUID support for dbx/mokx entries]

2021-02-09 Thread David Howells
Mickaël Salaün wrote: > The only commit causing issues is commit f78e50c8f750 ("certs: Factor > out the blacklist hash creation"). I think my last patch fix the issue, > and I'm testing with the UEFI DBX, but I don't understand why this > change would have an impact. In the meantime you can push

Re: [PATCH v4 resend 00/13] MFD/extcon/ASoC: Rework arizona codec jack-detect support

2021-02-09 Thread Lee Jones
On Tue, 09 Feb 2021, Hans de Goede wrote: > Hi, > > On 2/9/21 4:45 PM, Lee Jones wrote: > > On Tue, 09 Feb 2021, Hans de Goede wrote: > > > >> Hi, > >> > >> On 2/9/21 3:14 PM, Lee Jones wrote: > >>> On Mon, 08 Feb 2021, Hans de Goede wrote: > >>> > Hi Mark, Lee, > > On 2/4/21 12:2

Re: [PATCH v5 1/2] drivers/misc: sysgenid: add system generation id driver

2021-02-09 Thread Catangiu, Adrian Costin
On 09/02/2021, 16:53, "Michael S. Tsirkin" wrote: On Mon, Feb 01, 2021 at 07:24:53PM +0200, Adrian Catangiu wrote: > - Background and problem > > The System Generation ID feature is required in virtualized or > containerized environments by applications that work with local co

Re: [PATCH v10 7/7] at24: Support probing while off

2021-02-09 Thread Rafael J. Wysocki
On Tue, Feb 9, 2021 at 5:23 PM Sakari Ailus wrote: > > Hi Bartosz, Rafael, > > On Tue, Feb 09, 2021 at 04:49:37PM +0100, Bartosz Golaszewski wrote: > > On Mon, Feb 8, 2021 at 5:54 PM Rafael J. Wysocki wrote: > > > > > > On Mon, Feb 8, 2021 at 5:44 PM Bartosz Golaszewski > > > wrote: > > > > > >

Re: [PATCH v2 2/3] objtool,x86: Additionally decode: mov %rsp, (%reg)

2021-02-09 Thread Peter Zijlstra
On Tue, Feb 09, 2021 at 10:32:55AM -0600, Josh Poimboeuf wrote: > On Tue, Feb 09, 2021 at 10:16:02AM +0100, Peter Zijlstra wrote: > > Where we already decode: mov %rsp, %reg, also decode mov %rsp, (%reg). > > > > Nothing should match for this new stack-op. > > > > Signed-off-by: Peter Zijlstra (I

Re: [fuse-devel] [PATCH 0/8] MUSE: Userspace backed MTD v3

2021-02-09 Thread Luca Risolia
On 09/02/21 17:29, Richard Weinberger wrote: The mmap() call itself. Of course you need to touch code. Maybe just cuse_lowlevel.c, maybe kernel too. A patch had been submitted some years ago, more than once, asking for inclusion in the kernel, but facts are that at that time nobody in the

[PATCH net-next 9/9] net: phy: icplus: add MDI/MDIX support for IP101A/G

2021-02-09 Thread Michael Walle
Implement the operations to set desired mode and retrieve the current mode. This feature was tested with an IP101G. Signed-off-by: Michael Walle --- drivers/net/phy/icplus.c | 91 1 file changed, 91 insertions(+) diff --git a/drivers/net/phy/icplus.c b/

[PATCH net-next 7/9] net: phy: icplus: select page before writing control register

2021-02-09 Thread Michael Walle
Registers >= 16 are paged. Be sure to set the page. It seems this was working for now, because the default is correct for the registers used in the driver at the moment. But this will also assume, nobody will change the page select register before linux is started. The page select register is _not_

[PATCH net-next 8/9] net: phy: icplus: add PHY counter for IP101G

2021-02-09 Thread Michael Walle
The IP101G provides three counters: RX packets, CRC errors and symbol errors. The error counters can be configured to clear automatically on read. Unfortunately, this isn't true for the RX packet counter. Because of this and because the RX packet counter is more likely to overflow, than the error c

[PATCH net-next 6/9] net: phy: icplus: don't set APS_EN bit on IP101G

2021-02-09 Thread Michael Walle
This bit is reserved as 'always-write-1'. While this is not a particular error, because we are only setting it, guard it by checking the model to prevent errors in the future. Signed-off-by: Michael Walle --- drivers/net/phy/icplus.c | 15 ++- 1 file changed, 10 insertions(+), 5 dele

[PATCH net-next 5/9] net: phy: icplus: add IP101A/IP101G model detection

2021-02-09 Thread Michael Walle
Unfortunately, the IP101A and IP101G share the same PHY identifier. While most of the functions are somewhat backwards compatible, there is for example the APS_EN bit on the IP101A but on the IP101G this bit reserved. Also, the IP101G has many more functionalities. Deduce the model by accessing th

[PATCH net-next 3/9] net: phy: icplus: drop address operator for functions

2021-02-09 Thread Michael Walle
Don't sometimes use the address operator and sometimes not. Drop it and make the code look uniform. Signed-off-by: Michael Walle --- drivers/net/phy/icplus.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c index a

[PATCH net-next 4/9] net: phy: icplus: use the .soft_reset() of the phy-core

2021-02-09 Thread Michael Walle
The PHY core already resets the PHY before .config_init() if a .soft_reset() op is registered. Drop the open-coded ip1xx_reset(). Signed-off-by: Michael Walle --- drivers/net/phy/icplus.c | 32 ++-- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/driver

[PATCH net-next 1/9] net: phy: icplus: use PHY_ID_MATCH_MODEL() macro

2021-02-09 Thread Michael Walle
Simpify the initializations of the structures. There is no functional change. Signed-off-by: Michael Walle --- drivers/net/phy/icplus.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c index b632947cbcdf.

[PATCH net-next 2/9] net: phy: icplus: use PHY_ID_MATCH_EXACT() for IP101A/G

2021-02-09 Thread Michael Walle
According to the datasheet of the IP101A/G there is no revision field and MII_PHYSID2 always reads as 0x0c54. Use PHY_ID_MATCH_EXACT() then. Signed-off-by: Michael Walle --- drivers/net/phy/icplus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/icplus.c

[PATCH net-next 0/9] net: phy: icplus: cleanups and new features

2021-02-09 Thread Michael Walle
Cleanup the PHY drivers for IPplus devices and add PHY counters and MDIX support for the IP101A/G. Patch 5 adds a model detection based on the behavior of the PHY. Unfortunately, the IP101A shares the PHY ID with the IP101G. But the latter provides more features. Try to detect the newer model by a

Re: [PATCH] dmaengine: qcom: bam_dma: Add LOCK and UNLOCK flag bit support

2021-02-09 Thread mdalam
On 2021-02-01 21:20, mda...@codeaurora.org wrote: On 2021-02-01 12:13, Vinod Koul wrote: On 01-02-21, 11:52, mda...@codeaurora.org wrote: On 2021-02-01 11:35, Vinod Koul wrote: > On 27-01-21, 23:56, mda...@codeaurora.org wrote: > > The actual LOCK/UNLOCK flag should be set on hardware comm

[PATCH net-next] net: phy: introduce phydev->port

2021-02-09 Thread Michael Walle
At the moment, PORT_MII is reported in the ethtool ops. This is odd because it is an interface between the MAC and the PHY and no external port. Some network card drivers will overwrite the port to twisted pair or fiber, though. Even worse, the MDI/MDIX setting is only used by ethtool if the port i

Re: [RFC/PATCH v2 09/16] soc: bcm: bcm2835-power: Add support for BCM2711's Argon ASB

2021-02-09 Thread Phil Elwell
Nicolas, On Tue, 9 Feb 2021 at 14:00, Nicolas Saenz Julienne wrote: > > On Tue, 2021-02-09 at 13:19 +, Phil Elwell wrote: > > Hi Nicolas, > > > > On Tue, 9 Feb 2021 at 13:00, Nicolas Saenz Julienne > > wrote: > > > > > > In BCM2711 the new ARGON ASB took over V3D. The old ASB is still prese

Re: [PATCH 1/2] dt-bindings: display: bridge: Add documentation for LT8912

2021-02-09 Thread Rob Herring
On Sun, Jan 24, 2021 at 04:08:34PM +0100, Adrien Grassein wrote: > Lontium LT8912 is a DSI to HDMI bridge. > > Signed-off-by: Adrien Grassein > --- > .../display/bridge/lontium,lt8912.yaml| 92 +++ > MAINTAINERS | 5 + > 2 files changed,

Re: [PATCH v4 resend 00/13] MFD/extcon/ASoC: Rework arizona codec jack-detect support

2021-02-09 Thread Hans de Goede
Hi, On 2/9/21 4:45 PM, Lee Jones wrote: > On Tue, 09 Feb 2021, Hans de Goede wrote: > >> Hi, >> >> On 2/9/21 3:14 PM, Lee Jones wrote: >>> On Mon, 08 Feb 2021, Hans de Goede wrote: >>> Hi Mark, Lee, On 2/4/21 12:24 PM, Hans de Goede wrote: > Hi all, > > Here is v4 of my

[PATCH v3 7/8] mm: memcontrol: consolidate lruvec stat flushing

2021-02-09 Thread Johannes Weiner
There are two functions to flush the per-cpu data of an lruvec into the rest of the cgroup tree: when the cgroup is being freed, and when a CPU disappears during hotplug. The difference is whether all CPUs or just one is being collected, but the rest of the flushing code is the same. Merge them int

<    3   4   5   6   7   8   9   10   11   12   >