Re: [PATCH v3 1/3] ARM: tegra: Add device-tree for Ouya

2020-10-05 Thread Dmitry Osipenko
04.10.2020 16:31, Peter Geis пишет: > The Ouya was the sole device produced by Ouya Inc in 2013. > It was a game console originally running Android 5 on top of Linux 3.1.10. > > This patch adds the device tree supporting the Ouya. > It has been tested on the original variant with Samsung ram. >

[PATCH v3] regmap: irq: Add support to clear ack registers

2020-10-05 Thread Laxminath Kasam
For particular codec HWs have requirement to toggle interrupt clear register twice 0->1->0. To accommodate it, need to add one more field (clear_ack) in the regmap_irq struct and update regmap-irq driver to support it. Signed-off-by: Laxminath Kasam --- Changes from v2: Updated commit text ---

Re: [Freedreno] [PATCH 08/14] drm/msm: Remove obj->gpu

2020-10-05 Thread Jordan Crouse
On Sun, Oct 04, 2020 at 12:21:40PM -0700, Rob Clark wrote: > From: Rob Clark > > It cannot be atomically updated with obj->active_count, and the only > purpose is a useless WARN_ON() (which becomes a buggy WARN_ON() once > retire_submits() is not serialized with incoming submits via >

Re: [Freedreno] [PATCH 07/14] drm/msm: Refcount submits

2020-10-05 Thread Jordan Crouse
On Sun, Oct 04, 2020 at 12:21:39PM -0700, Rob Clark wrote: > From: Rob Clark > > Before we remove dev->struct_mutex from the retire path, we have to deal > with the situation of a submit retiring before the submit ioctl returns. > > To deal with this, ring->submits will hold a reference to the

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2020-10-05 Thread Steven Rostedt
On Mon, 5 Oct 2020 10:25:15 -0400 Steven Rostedt wrote: > On Mon, 5 Oct 2020 10:09:34 +0530 > Gaurav Kohli wrote: > > > Hi Steven, > > > > please let us know, if below looks good to you or need modifications. > > Strange, I don't have your original email in my inbox. I do have it in my >

Re: [PATCH RESEND] drm/bridge: tc358764: restore connector support

2020-10-05 Thread Andrzej Hajda
W dniu 04.10.2020 o 21:14, Sam Ravnborg pisze: > Hi Marek. > > On Wed, Sep 30, 2020 at 01:40:42PM +0200, Marek Szyprowski wrote: >> This patch restores DRM connector registration in the TC358764 bridge >> driver and restores usage of the old drm_panel_* API, thus allows dynamic >> panel

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2020-10-05 Thread Steven Rostedt
On Mon, 5 Oct 2020 10:09:34 +0530 Gaurav Kohli wrote: > Hi Steven, > > please let us know, if below looks good to you or need modifications. Strange, I don't have your original email in my inbox. I do have it in my LKML folder, but that's way too big for me to read. I checked my server logs. I

Re: [PATCH] objtool: avoid ../ headers includes and name clashes

2020-10-05 Thread Josh Poimboeuf
On Sun, Oct 04, 2020 at 03:05:42PM +0200, Vasily Gorbik wrote: > Doesn't this make it instantly obvious where are these files come from? > > #include > #include Indeed, this is a lot better! If I'm not mistaken, this conflicts with your other series. Would you mind rebasing this on top of

Re: Litmus test for question from Al Viro

2020-10-05 Thread Alan Stern
On Mon, Oct 05, 2020 at 07:03:53AM -0700, Paul E. McKenney wrote: > Updated as suggested by Will, like this? > > Thanx, Paul > > > > commit

Re: [Freedreno] [PATCH 06/14] drm/msm: Protect ring->submits with it's own lock

2020-10-05 Thread Jordan Crouse
On Sun, Oct 04, 2020 at 12:21:38PM -0700, Rob Clark wrote: > From: Rob Clark > > One less place to rely on dev->struct_mutex. > Reviewed-by: Jordan Crouse > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/msm_gem_submit.c | 2 ++ > drivers/gpu/drm/msm/msm_gpu.c| 37

Re: Litmus test for question from Al Viro

2020-10-05 Thread Alan Stern
On Mon, Oct 05, 2020 at 10:12:48AM +0100, Will Deacon wrote: > On Mon, Oct 05, 2020 at 09:20:03AM +0100, Will Deacon wrote: > > On Sun, Oct 04, 2020 at 10:38:46PM -0400, Alan Stern wrote: > > > Considering the bug in herd7 pointed out by Akira, we should rewrite P1 > > > as: > > > > > > P1(int

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-05 Thread Thierry Reding
On Mon, Oct 05, 2020 at 04:28:53PM +0300, Dmitry Osipenko wrote: > 05.10.2020 14:15, Thierry Reding пишет: > > On Mon, Oct 05, 2020 at 01:36:55PM +0300, Dmitry Osipenko wrote: > >> 05.10.2020 12:53, Thierry Reding пишет: > >>> On Fri, Oct 02, 2020 at 05:50:08PM +0300, Dmitry Osipenko wrote: >

Re: [PATCH 05/14] drm/msm: Document and rename preempt_lock

2020-10-05 Thread Jordan Crouse
On Sun, Oct 04, 2020 at 12:21:37PM -0700, Rob Clark wrote: > From: Rob Clark > > Before adding another lock, give ring->lock a more descriptive name. Reviewed-by: Jordan Crouse > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 4 ++-- >

Re: [PATCH 9/9] mm, page_alloc: optionally disable pcplists during page isolation

2020-10-05 Thread Vlastimil Babka
On 10/5/20 4:05 PM, Michal Hocko wrote: > On Fri 25-09-20 13:10:05, Vlastimil Babka wrote: >> On 9/25/20 12:54 PM, David Hildenbrand wrote: >> >> Hmm that temporary write lock would still block new callers until previous >> finish with the downgraded-to-read lock. >> >> But I guess something like

Re: [PATCH] regulator: Make constraint debug processing conditional on DEBUG

2020-10-05 Thread Mark Brown
On Mon, Oct 05, 2020 at 03:15:46PM +0200, Geert Uytterhoeven wrote: > Fixes: 194dbaefa0da24bb ("regulator: Lower priority of constraint logging") This is an optimization rather than a bug fix. signature.asc Description: PGP signature

Re: [PATCH v3 1/3] ARM: tegra: Add device-tree for Ouya

2020-10-05 Thread Peter Geis
On Mon, Oct 5, 2020 at 10:02 AM Dmitry Osipenko wrote: > > 04.10.2020 16:31, Peter Geis пишет: > > + thermal-zones { > > + cpu_thermal: cpu-thermal { > > + polling-delay = <5000>; > > + polling-delay-passive = <5000>; > > + > > +

RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Barnabás Pőcze
Hi 2020. október 5., hétfő 14:58 keltezéssel, Limonciello, Mario írta: > > On modern systems CPU/GPU/... performance is often dynamically configurable > > in the form of e.g. variable clock-speeds and TPD. The performance is often > > automatically adjusted to the load by some

Re: [Freedreno] [PATCH 04/14] drm/msm: Add priv->mm_lock to protect active/inactive lists

2020-10-05 Thread Jordan Crouse
On Sun, Oct 04, 2020 at 12:21:36PM -0700, Rob Clark wrote: > From: Rob Clark > > Rather than relying on the big dev->struct_mutex hammer, introduce a > more specific lock for protecting the bo lists. Most excellent. Reviewed-by: Jordan Crouse > Signed-off-by: Rob Clark > --- >

Re: Litmus test for question from Al Viro

2020-10-05 Thread Alan Stern
On Mon, Oct 05, 2020 at 09:20:03AM +0100, Will Deacon wrote: > On Sun, Oct 04, 2020 at 10:38:46PM -0400, Alan Stern wrote: > > Considering the bug in herd7 pointed out by Akira, we should rewrite P1 as: > > > > P1(int *x, int *y) > > { > > int r2; > > > > r = READ_ONCE(*y); > > (r2?)

Re: [Freedreno] [PATCH 03/14] drm/msm: Move update_fences()

2020-10-05 Thread Jordan Crouse
On Sun, Oct 04, 2020 at 12:21:35PM -0700, Rob Clark wrote: > From: Rob Clark > > Small cleanup, update_fences() is used in the hangcheck path, but also > in the normal retire path. Reviewed-by: Jordan Crouse > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/msm_gpu.c | 28

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-05 Thread Daniel Vetter
On Mon, Oct 05, 2020 at 03:15:24PM +0300, Ville Syrjälä wrote: > On Fri, Oct 02, 2020 at 10:55:52AM -0700, Rob Clark wrote: > > On Fri, Oct 2, 2020 at 4:05 AM Ville Syrjälä > > wrote: > > > > > > On Fri, Oct 02, 2020 at 01:52:56PM +0300, Ville Syrjälä wrote: > > > > On Thu, Oct 01, 2020 at

Re: [Freedreno] [PATCH 02/14] drm/msm: Drop chatty trace

2020-10-05 Thread Jordan Crouse
On Sun, Oct 04, 2020 at 12:21:34PM -0700, Rob Clark wrote: > From: Rob Clark > > It is somewhat redundant with the gpu tracepoints, and anyways not too > useful to justify spamming the log when debug traces are enabled. Reviewed-by: Jordan Crouse > Signed-off-by: Rob Clark > --- >

Re: [RFC] Status of orinoco_usb

2020-10-05 Thread Kalle Valo
Greg Kroah-Hartman writes: > On Fri, Oct 02, 2020 at 01:53:58PM +0200, Sebastian Andrzej Siewior wrote: >> On 2020-10-02 13:37:25 [+0200], Greg Kroah-Hartman wrote: >> > > Is it possible to end up here in softirq context or is this a relic? >> > >> > I think it's a relic of where USB host

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-10-05 Thread Uladzislau Rezki
On Fri, Oct 02, 2020 at 09:06:24AM +0100, Mel Gorman wrote: > On Thu, Oct 01, 2020 at 09:26:26PM +0200, Uladzislau Rezki wrote: > > > > > > No, I meant going back to idea of new gfp flag, but adjust the > > > implementation in > > > the allocator (different from what you posted in previous

Re: [PATCH] mm: optionally disable brk()

2020-10-05 Thread Jonathan Corbet
On Mon, 5 Oct 2020 11:11:35 +0300 Topi Miettinen wrote: > The point is not to shrink the kernel (it will shrink by one small > function) or get rid of complexity. The point is to disable an inferior > interface. Memory returned by mmap() is at a random location but with > brk() it is located

Re: [PATCH V3 1/2] bindings: media: gpio-ir-receiver: add linux,autosuspend-period property

2020-10-05 Thread Sean Young
On Mon, Oct 05, 2020 at 08:36:39AM -0500, Rob Herring wrote: > On Sat, Oct 3, 2020 at 3:46 AM Sean Young wrote: > > > > On Tue, Sep 29, 2020 at 10:52:01AM -0500, Rob Herring wrote: > > > On Wed, Sep 23, 2020 at 03:08:06AM +0800, Joakim Zhang wrote: > > > > Add linux,autosuspend-period property

Re: [Cluster-devel] [PATCH] gfs2: gfs2_read_sb: put gfs2_assert inside the loop

2020-10-05 Thread Fox Chen
On Mon, Oct 5, 2020 at 9:23 PM Andrew Price wrote: > > On 03/10/2020 07:31, Fox Chen wrote: > > for (x = 2;; x++) { > > ... > > gfs2_assert(sdp, x <= GFS2_MAX_META_HEIGHT); <--- after > > ... > > if (d != sdp->sd_heightsize[x - 1] || m) > >

Re: linux-next: Fixes tag needs some work in the rcu tree

2020-10-05 Thread Paul E. McKenney
On Mon, Oct 05, 2020 at 10:53:15PM +1100, Stephen Rothwell wrote: > Hi all, > > n commit > > fe0d06f03320 ("srcu: Avoid escaped section names") > > Fixes tag > > Fixes: commit fe15b50cdeee ("srcu: Allocate per-CPU data for DEFINE_SRCU() > in modules") > > has these problem(s): > > -

Re: [PATCH] drm: bridge: dw-hdmi: Constify dw_hdmi_i2s_ops

2020-10-05 Thread Daniel Vetter
On Sun, Oct 04, 2020 at 10:06:53PM +0200, Rikard Falkeborn wrote: > The only usage of dw_hdmi_i2s_ops is to assign its address to the ops > field in the hdmi_codec_pdata struct, which is a const pointer. Make it > const to allow the compiler to put it in read-only memory. > > Signed-off-by:

Re: [PATCH] ASoC: tlv320adcx140: Fix a typo in a comment

2020-10-05 Thread Mark Brown
On Fri, Oct 02, 2020 at 09:28:01PM +0200, Christophe JAILLET wrote: > It is likely that this header file is about the TLV320ADCX140. (0 and 4 > swapped) > While at it fix a missing "H" in a comment related to the include guard. This doesn't apply against current code, please check and resend.

Re: [PATCH] Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"

2020-10-05 Thread Daniel Vetter
On Mon, Oct 05, 2020 at 11:01:50PM +1100, Stephen Rothwell wrote: > Hi Paul, > > On Sun, 04 Oct 2020 22:11:23 +0200 Paul Cercueil wrote: > > > > Pushed to drm-misc-next with the changelog fix, thanks. > > > > Stephen: > > Now it should build fine again. Could you remove the BROKEN flag? > >

Re: [PATCH 9/9] mm, page_alloc: optionally disable pcplists during page isolation

2020-10-05 Thread Michal Hocko
On Fri 25-09-20 13:10:05, Vlastimil Babka wrote: > On 9/25/20 12:54 PM, David Hildenbrand wrote: > >>> --- a/mm/page_isolation.c > >>> +++ b/mm/page_isolation.c > >>> @@ -15,6 +15,22 @@ > >>> #define CREATE_TRACE_POINTS > >>> #include > >>> > >>> +void zone_pcplist_disable(struct zone *zone)

Re: KASAN: null-ptr-deref Write in event_handler

2020-10-05 Thread Andrey Konovalov
On Mon, Oct 5, 2020 at 3:59 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:d3d45f82 Merge tag 'pinctrl-v5.9-2' of git://git.kernel.or.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15781d8f90 > kernel config:

Re: [PATCH 8/9] mm, page_alloc: drain all pcplists during memory offline

2020-10-05 Thread Michal Hocko
On Fri 25-09-20 12:46:27, David Hildenbrand wrote: > On 22.09.20 16:37, Vlastimil Babka wrote: [...] > > +/* > > + * Spill all the per-cpu pages from all CPUs back into the buddy allocator. > > + * > > + * When zone parameter is non-NULL, spill just the single zone's pages. > > + * > > + * Note

Re: [RFC PATCH v4 4/4] objtool: fix x86 orc generation on big endian cross compiles

2020-10-05 Thread Josh Poimboeuf
On Sun, Oct 04, 2020 at 04:30:54PM +0200, Vasily Gorbik wrote: > @@ -77,8 +78,9 @@ static int get_alt_entry(struct elf *elf, struct > special_entry *entry, > if (entry->feature) { > unsigned short feature; > > - feature = *(unsigned short *)(sec->data->d_buf +

Re: [PATCH v2 1/4] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter

2020-10-05 Thread Rob Herring
On Sat, Oct 03, 2020 at 12:09:55PM +0200, Krzysztof Kozlowski wrote: > On Fri, 2 Oct 2020 at 21:22, Łukasz Stelmach wrote: > > > > Add bindings for AX88796C SPI Ethernet Adapter. > > > > Signed-off-by: Łukasz Stelmach > > --- > > .../bindings/net/asix,ax88796c-spi.yaml | 76

Re: Litmus test for question from Al Viro

2020-10-05 Thread Paul E. McKenney
On Sun, Oct 04, 2020 at 10:38:46PM -0400, Alan Stern wrote: > On Sun, Oct 04, 2020 at 04:31:46PM -0700, Paul E. McKenney wrote: > > Nice simple example! How about like this? > > > > Thanx, Paul > > > >

Re: [PATCH v2] regmap: irq: Add support to clear ack registers

2020-10-05 Thread b_lkasam
On 2020-10-05 18:11, Greg KH wrote: On Mon, Oct 05, 2020 at 05:55:27PM +0530, b_lka...@codeaurora.org wrote: That goes below the --- line, as the documentation says, right? And this whole thing was attached, twice, why? Can't you use 'git send-email'? Sure, will fix it and send via git

[PATCH] gpio: pca953x: Survive spurious interrupts

2020-10-05 Thread Marc Zyngier
The pca953x driver never checks the result of irq_find_mapping(), which returns 0 when no mapping is found. When a spurious interrupt is delivered (which can happen under obscure circumstances), the kernel explodes as it still tries to handle the error code as a real interrupt. Handle this

Re: [PATCH v3 1/3] ARM: tegra: Add device-tree for Ouya

2020-10-05 Thread Dmitry Osipenko
04.10.2020 16:31, Peter Geis пишет: > + thermal-zones { > + cpu_thermal: cpu-thermal { > + polling-delay = <5000>; > + polling-delay-passive = <5000>; > + > + thermal-sensors = <_temp 1>; > + > + trips

Re: RFC: backport of commit a32c1c61212d

2020-10-05 Thread Greg Kroah-Hartman
On Tue, Sep 01, 2020 at 10:09:37AM -0700, Doug Berger wrote: > On 9/1/2020 9:36 AM, Florian Fainelli wrote: > > > > > > On 9/1/2020 9:06 AM, Doug Berger wrote: > >> On 9/1/2020 7:00 AM, Greg Kroah-Hartman wrote: > > > > [snip] > > > >> [snip] > >> > >> My best guess at this point is to submit

Re: [PATCH 13/14] drm/msm: Drop struct_mutex in shrinker path

2020-10-05 Thread Daniel Vetter
On Mon, Oct 05, 2020 at 05:24:19PM +0800, Hillf Danton wrote: > > On Sun, 4 Oct 2020 12:21:45 > > From: Rob Clark > > > > Now that the inactive_list is protected by mm_lock, and everything > > else on per-obj basis is protected by obj->lock, we no longer depend > > on struct_mutex. > > > >

Re: Litmus test for question from Al Viro

2020-10-05 Thread Paul E. McKenney
On Mon, Oct 05, 2020 at 10:12:48AM +0100, Will Deacon wrote: > On Mon, Oct 05, 2020 at 09:20:03AM +0100, Will Deacon wrote: > > On Sun, Oct 04, 2020 at 10:38:46PM -0400, Alan Stern wrote: > > > On Sun, Oct 04, 2020 at 04:31:46PM -0700, Paul E. McKenney wrote: > > > > Nice simple example! How

Re: [PATCH v2 1/4] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter

2020-10-05 Thread Krzysztof Kozlowski
On Fri, 2 Oct 2020 at 21:22, Łukasz Stelmach wrote: > > Add bindings for AX88796C SPI Ethernet Adapter. > > Signed-off-by: Łukasz Stelmach > --- > .../bindings/net/asix,ax88796c-spi.yaml | 76 +++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > 2 files changed,

Re: [PATCH v2 1/4] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter

2020-10-05 Thread Rob Herring
On Fri, 02 Oct 2020 21:22:07 +0200, Łukasz Stelmach wrote: > Add bindings for AX88796C SPI Ethernet Adapter. > > Signed-off-by: Łukasz Stelmach > --- > .../bindings/net/asix,ax88796c-spi.yaml | 76 +++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > 2 files

Re: Litmus test for question from Al Viro

2020-10-05 Thread Paul E. McKenney
On Mon, Oct 05, 2020 at 08:36:51AM +, David Laight wrote: > From: Paul E. McKenney > > Sent: 05 October 2020 00:32 > ... > > manual/kernel: Add a litmus test with a hidden dependency > > > > This commit adds a litmus test that has a data dependency that can be > > hidden by

KASAN: null-ptr-deref Write in event_handler

2020-10-05 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d3d45f82 Merge tag 'pinctrl-v5.9-2' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15781d8f90 kernel config: https://syzkaller.appspot.com/x/.config?x=89ab6a0c48f30b49

Re: [PATCH v2 3/3] dt-bindings: thermal: update sustainable-power with abstract scale

2020-10-05 Thread Rob Herring
On Fri, 02 Oct 2020 12:44:26 +0100, Lukasz Luba wrote: > Update the documentation for the binding 'sustainable-power' and allow > to provide values in an abstract scale. It is required when the cooling > devices use an abstract scale for their power values. > > Signed-off-by: Lukasz Luba > --- >

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-10-05 Thread Uladzislau Rezki
On Fri, Oct 02, 2020 at 09:11:23AM +0200, Michal Hocko wrote: > On Thu 01-10-20 21:26:26, Uladzislau Rezki wrote: > > > > > > No, I meant going back to idea of new gfp flag, but adjust the > > > implementation in > > > the allocator (different from what you posted in previous version) so > > >

[GIT PULL] platform-drivers-x86 for 5.9-2

2020-10-05 Thread Andy Shevchenko
Hi Linus, I know that this is not the right time for the PR of such size, but we kinda have a force major situation. As you know Darren have been not having time to fulfil maintainer's responsibilities for some time already and now I have to step down as a maintainer as well. I will concentrate

Re: [PATCH] leds: lm3697: Fix out-of-bound access

2020-10-05 Thread ultracoolguy
I agree with you. Attached patch with changes. Oct 5, 2020, 12:13 by ka...@blackhole.sk: > On Sat, 3 Oct 2020 15:02:51 +0200 (CEST) > ultracool...@tutanota.com wrote: > >> From 0dfd5ab647ccbc585c543d702b44d20f0e3fe436 Mon Sep 17 00:00:00 2001 >> From: Ultracoolguy >> Date: Fri, 2 Oct 2020

Re: [PATCH 7/9] mm, page_alloc: move draining pcplists to page isolation users

2020-10-05 Thread Michal Hocko
On Tue 22-09-20 16:37:10, Vlastimil Babka wrote: > Currently, pcplists are drained during set_migratetype_isolate() which means > once per pageblock processed start_isolate_page_range(). This is somewhat > wasteful. Moreover, the callers might need different guarantees, and the > draining is

Re: [PATCH 07/14] drm/msm: Refcount submits

2020-10-05 Thread Daniel Vetter
On Sun, Oct 04, 2020 at 12:21:39PM -0700, Rob Clark wrote: > From: Rob Clark > > Before we remove dev->struct_mutex from the retire path, we have to deal > with the situation of a submit retiring before the submit ioctl returns. > > To deal with this, ring->submits will hold a reference to the

Re: [PATCH v6 2/7] dt-bindings: leds: Convert pwm to yaml

2020-10-05 Thread Rob Herring
On Thu, 01 Oct 2020 01:46:32 +0200, Alexander Dahl wrote: > The example was adapted in the following ways: > > - make use of the now supported 'function' and 'color' properties > - remove pwm nodes, those are documented elsewhere > - tweake node names to be matched by new dtschema rules > >

Re: PCI: Race condition in pci_create_sysfs_dev_files

2020-10-05 Thread Bjorn Helgaas
On Mon, Oct 05, 2020 at 10:20:18AM +0200, Pali Rohár wrote: > PING? Sorry, I guess nobody has had the right combination of time, interest, and knowledge to work on this. I'll try to take a look this week. > On Wednesday 09 September 2020 13:28:50 Pali Rohár wrote: > > Hello! I'm adding more

Re: [PATCH] drm/gma500: fix double free of gma_connector

2020-10-05 Thread Daniel Vetter
On Sat, Oct 03, 2020 at 12:39:28PM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis reports this problem: > > cdv_intel_dp.c:2101:2: warning: Attempt to free released memory > kfree(gma_connector); > ^~~~ > > In cdv_intel_dp_init() when

Re: [PATCH v2 3/5] vfio-pci/zdev: define the vfio_zdev header

2020-10-05 Thread Matthew Rosato
On 10/2/20 5:44 PM, Alex Williamson wrote: On Fri, 2 Oct 2020 16:00:42 -0400 Matthew Rosato wrote: We define a new device region in vfio.h to be able to get the ZPCI CLP information by reading this region from userspace. We create a new file, vfio_zdev.h to define the structure of the new

Re: [PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Andrea Righi
On Mon, Oct 05, 2020 at 12:25:55PM +0100, Chris Down wrote: > Andrea Righi writes: > > This feature has been successfully used to improve hibernation time of > > cloud computing instances. > > > > Certain cloud providers allow to run "spot instances": low-priority > > instances that run when

Re: [PATCH v6 2/7] dt-bindings: leds: Convert pwm to yaml

2020-10-05 Thread Rob Herring
On Thu, 01 Oct 2020 01:46:32 +0200, Alexander Dahl wrote: > The example was adapted in the following ways: > > - make use of the now supported 'function' and 'color' properties > - remove pwm nodes, those are documented elsewhere > - tweake node names to be matched by new dtschema rules > >

Re: [PATCH 1/2] dt-bindings: drm/bridge: ti-sn65dsi86: Replace #pwm-cells

2020-10-05 Thread Rob Herring
On Wed, 30 Sep 2020 17:35:31 -0500, Bjorn Andersson wrote: > While the signal on GPIO4 to drive the backlight controller indeed is > pulse width modulated its purpose is specifically to control the > brightness of a backlight. > > Drop the #pwm-cells and instead expose a new property to configure

Re: [PATCH] leds: lm3697: Fix out-of-bound access

2020-10-05 Thread Pavel Machek
Hi! > > if (ret) > > dev_err(>client->dev, "Cannot write OUTPUT config\n"); > > > > - for (i = 0; i < LM3697_MAX_CONTROL_BANKS; i++) { > > + for (i = 0; i < priv->num_leds; i++) { > > Ultracoolguy is correct that this for cycle should not iterate > LM3697_MAX_CONTROL_BANKS.

Re: WARNING in get_signal

2020-10-05 Thread Oleg Nesterov
On 10/02, Eric W. Biederman wrote: > > syzbot writes: > > > Hello, > > > > syzbot found the following issue on: > > So this is: > > static void do_jobctl_trap(void) > { > struct signal_struct *signal = current->signal; > int signr = current->jobctl & JOBCTL_STOP_SIGMASK; > > if

Re: [RFC PATCH 0/4] x86: Improve Minimum Alternate Stack Size

2020-10-05 Thread Dave Martin
On Tue, Sep 29, 2020 at 01:57:42PM -0700, Chang S. Bae wrote: > During signal entry, the kernel pushes data onto the normal userspace > stack. On x86, the data pushed onto the user stack includes XSAVE state, > which has grown over time as new features and larger registers have been > added to the

Re: [PATCH v3 7/7] dma-buf: system_heap: Add a system-uncached heap re-using the system heap

2020-10-05 Thread Christoph Hellwig
How is this going to deal with VIVT caches?

האם קיבלת את ההודעה הקודמת שלי?

2020-10-05 Thread james duke
-- Best wish

Re: [PATCH] [PATCH] of_reserved_mem: Increase the number of reserved regions

2020-10-05 Thread Rob Herring
On Sun, Oct 4, 2020 at 12:50 AM Phil Chang wrote: > > Certain SoCs need to support large amount of reserved memory > regions, especially to follow the GKI rules from Google. > In MTK new SoC requires more than 68 regions of reserved memory > for each IP's usage, such as load firmware to specific

Re: [RFC PATCH 1/4] x86/signal: Introduce helpers to get the maximum signal frame size

2020-10-05 Thread Dave Martin
On Tue, Sep 29, 2020 at 01:57:43PM -0700, Chang S. Bae wrote: > Signal frames do not have a fixed format and can vary in size when a number > of things change: support XSAVE features, 32 vs. 64-bit apps. Add the code > to support a runtime method for userspace to dynamically discover how large > a

Re: [PATCH 1/2] pwm: sysfs: Set class on pwm devices

2020-10-05 Thread Lars Poeschel
On Fri, Oct 02, 2020 at 03:35:12PM +0200, Greg Kroah-Hartman wrote: > On Fri, Oct 02, 2020 at 03:08:44PM +0200, Lars Poeschel wrote: > > On Fri, Oct 02, 2020 at 02:46:16PM +0200, Greg Kroah-Hartman wrote: > > > On Fri, Oct 02, 2020 at 02:30:47PM +0200, poesc...@lemonage.de wrote: > > > > From:

Re: [PATCH V2 3/4] misc: vop: simply return the saved dma address instead of virt_to_phys

2020-10-05 Thread Christoph Hellwig
On Wed, Sep 30, 2020 at 07:30:21AM +, Sherry Sun wrote: > There may be some misunderstandings here. > For ->get_dp_dma callback, it is used to get the device page dma address, > which is allocated by MIC layer instead of vop layer. > For Intel mic, it still use kzalloc and dma_map_single

RE: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Limonciello, Mario
> On modern systems CPU/GPU/... performance is often dynamically configurable > in the form of e.g. variable clock-speeds and TPD. The performance is often > automatically adjusted to the load by some automatic-mechanism (which may > very well live outside the kernel). > > These auto

[PATCH] arm/arm64: xen: Fix to convert percpu address to gfn correctly

2020-10-05 Thread Masami Hiramatsu
Use per_cpu_ptr_to_phys() instead of virt_to_phys() for per-cpu address conversion. In xen_starting_cpu(), per-cpu xen_vcpu_info address is converted to gfn by virt_to_gfn() macro. However, since the virt_to_gfn(v) assumes the given virtual address is in contiguous kernel memory area, it can not

Re: [PATCH] mm: swapfile: avoid split_swap_cluster() NULL pointer dereference

2020-10-05 Thread Rafael Aquini
On Thu, Oct 01, 2020 at 10:31:57AM -0400, Rafael Aquini wrote: > On Fri, Sep 25, 2020 at 11:21:58AM +0800, Huang, Ying wrote: > > Rafael Aquini writes: > > >> Or, can you help to run the test with a debug kernel based on upstream > > >> kernel. I can provide some debug patch. > > >> > > > > > >

Re: [PATCH V3 1/2] bindings: media: gpio-ir-receiver: add linux,autosuspend-period property

2020-10-05 Thread Rob Herring
On Sat, Oct 3, 2020 at 3:46 AM Sean Young wrote: > > On Tue, Sep 29, 2020 at 10:52:01AM -0500, Rob Herring wrote: > > On Wed, Sep 23, 2020 at 03:08:06AM +0800, Joakim Zhang wrote: > > > Add linux,autosuspend-period property for gpio ir receiver. Some cpuidle > > > systems wake from idle may take

Re: [PATCH RESEND] hv: clocksource: Add notrace attribute to read_hv_sched_clock_*() functions

2020-10-05 Thread Mohammed Gamal
On Mon, 2020-10-05 at 13:47 +0200, Mohammed Gamal wrote: > When selecting function_graph tracer with the command: > # echo function_graph > /sys/kernel/debug/tracing/current_tracer > > The kernel crashes with the following stack trace: > > [69703.122389] BUG: stack guard page was hit at

Re: [PATCH v6 03/14] ASoC: sun4i-i2s: Change get_sr() and get_wss() to be more explicit

2020-10-05 Thread Clément Péron
Hi Maxime, On Mon, 5 Oct 2020 at 14:14, Maxime Ripard wrote: > > On Sat, Oct 03, 2020 at 04:19:39PM +0200, Clément Péron wrote: > > We are actually using a complex formula to just return a bunch of > > simple values. Also this formula is wrong for sun4i when calling > > get_wss() the function

[PATCH v2] arm64: dts: marvell: espressobin: Update link to V7 schematic

2020-10-05 Thread Pali Rohár
Up-to-date version of V7 schematic is on new URL linked from official tech-spec webpage http://espressobin.net/tech-spec/ Signed-off-by: Pali Rohár --- Changes in V2: * Added commit description --- arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts | 2 +-

[PATCH] arm64: tegra: Fix GIC400 missing GICH/GICV register regions

2020-10-05 Thread Marc Zyngier
GIC400 has full support for virtualization, and yet the tegra186 DT doesn't expose the GICH/GICV regions (despite exposing the maintenance interrupt that only makes sense for virtualization). Add the missing regions, based on the hunch that the HW doesn't use the CPU build-in interfaces, but

[PATCH v4] net: usb: rtl8150: set random MAC address when set_ethernet_addr() fails

2020-10-05 Thread Anant Thazhemadam
When get_registers() fails in set_ethernet_addr(),the uninitialized value of node_id gets copied over as the address. So, check the return value of get_registers(). If get_registers() executed successfully (i.e., it returns sizeof(node_id)), copy over the MAC address using ether_addr_copy()

Greetings friend..

2020-10-05 Thread Dawuda Usman
Dear Friend, I am Mr. Dawuda Usman working with the department of Audit and accounting manager here in the Bank, There is this fund that was kept in my custody years ago,please I need your assistance for the transferring of this fund to your bank account for both of us benefit for life time

Re: [PATCH 6/9] mm, page_alloc: cache pageset high and batch in struct zone

2020-10-05 Thread Michal Hocko
On Tue 22-09-20 16:37:09, Vlastimil Babka wrote: > All per-cpu pagesets for a zone use the same high and batch values, that are > duplicated there just for performance (locality) reasons. This patch adds the > same variables also to struct zone as a shared copy. > > This will be useful later for

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-05 Thread Dmitry Osipenko
05.10.2020 14:15, Thierry Reding пишет: > On Mon, Oct 05, 2020 at 01:36:55PM +0300, Dmitry Osipenko wrote: >> 05.10.2020 12:53, Thierry Reding пишет: >>> On Fri, Oct 02, 2020 at 05:50:08PM +0300, Dmitry Osipenko wrote: 02.10.2020 17:22, Dmitry Osipenko пишет: >> static int

Re: [PATCH V3 0/5] cpufreq: Record stats with fast-switching

2020-10-05 Thread Rafael J. Wysocki
On Mon, Oct 5, 2020 at 9:56 AM Viresh Kumar wrote: > > Hi, > > We disabled recording cpufreq stats when fast switching was introduced > to the cpufreq core as the cpufreq stats required to take a spinlock and > that can't be allowed (for performance reasons) on scheduler's hot path. > > Here is

Re: [PATCH 5/9] mm, page_alloc: make per_cpu_pageset accessible only after init

2020-10-05 Thread Michal Hocko
On Tue 22-09-20 16:37:08, Vlastimil Babka wrote: > setup_zone_pageset() replaces the boot_pageset by allocating and initializing > a > proper percpu one. Currently it assigns zone->pageset with the newly allocated > one before initializing it. That's currently not an issue, because the zone >

Re: [Cluster-devel] [PATCH] gfs2: gfs2_read_sb: put gfs2_assert inside the loop

2020-10-05 Thread Andrew Price
On 03/10/2020 07:31, Fox Chen wrote: for (x = 2;; x++) { ... gfs2_assert(sdp, x <= GFS2_MAX_META_HEIGHT); <--- after ... if (d != sdp->sd_heightsize[x - 1] || m) break; sdp->sd_heightsize[x] = space; } sdp->sd_max_height = x

Re: [PATCH v6 02/14] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-05 Thread Clément Péron
Hi Maxime, On Mon, 5 Oct 2020 at 14:13, Maxime Ripard wrote: > > On Sat, Oct 03, 2020 at 04:19:38PM +0200, Clément Péron wrote: > > As slots and slot_width can be set manually using set_tdm(). > > These values are then kept in sun4i_i2s struct. > > So we need to check if these values are setted

Re: [PATCH 4/9] mm, page_alloc: simplify pageset_update()

2020-10-05 Thread Michal Hocko
On Tue 22-09-20 16:37:07, Vlastimil Babka wrote: > pageset_update() attempts to update pcplist's high and batch values in a way > that readers don't observe batch > high. It uses smp_wmb() to order the > updates > in a way to achieve this. However, without proper pairing read barriers in >

Re: [stable 4.19] [PANIC]: tracing: Centralize preemptirq tracepoints and unify their usage

2020-10-05 Thread Greg Kroah-Hartman
On Fri, Sep 25, 2020 at 11:30:49AM -0400, Steven Rostedt wrote: > On Fri, 25 Sep 2020 17:12:45 +0200 > Greg Kroah-Hartman wrote: > > > > Specifically, commits: > > > > > > a0d14b8909de55139b8702fe0c7e80b69763dcfb ("x86/mm, tracing: Fix CR2 > > > corruption") > > >

Re: [PATCH 20/25] ASoC: sun8i-codec: Protect the clock rate while streams are open

2020-10-05 Thread Chen-Yu Tsai
On Mon, Oct 5, 2020 at 8:01 PM Maxime Ripard wrote: > > On Wed, Sep 30, 2020 at 09:11:43PM -0500, Samuel Holland wrote: > > The codec's clock input is shared among all AIFs, and shared with other > > audio-related hardware in the SoC, including I2S and SPDIF controllers. > > To ensure sample

[PATCH] regulator: Make constraint debug processing conditional on DEBUG

2020-10-05 Thread Geert Uytterhoeven
If debugging is disabled, print_constraints() does not print the actual constraints, but still performs some processing and string formatting, only to throw away the result later. Fix this by moving all constraint debug processing to a separate function, and replacing it by a dummy when debugging

[Question] rtc wake behavior and sysfs

2020-10-05 Thread Peter Geis
Good Morning, While testing suspend to ram on the Ouya, I encountered an interesting issue with the rtc-tps65910 driver. Attempting to use rtc-wake on the default configuration returned: rtcwake: /dev/rtc0 not enabled for wakeup events This is due to: eb5eba4ef722 drivers/rtc/rtc-tps65910.c:

Re: [PATCH 1/2] mmap locking API: Order lock of nascent mm outside lock of live mm

2020-10-05 Thread Jason Gunthorpe
On Mon, Oct 05, 2020 at 03:30:43AM +0200, Jann Horn wrote: > But another place where lockdep asserts should be added is find_vma(); > there are currently several architectures that sometimes improperly > call that with no lock held: Yes, I've seen several cases of this mis-use in drivers too

Re: [PATCH] arm64: dts: marvell: espressobin: De-duplicate eMMC definitions

2020-10-05 Thread Gregory CLEMENT
Hi Pali, > On Sunday 27 September 2020 08:40:41 Andre Heider wrote: >> On 25/09/2020 10:50, Pali Rohár wrote: >> > eMMC definitions in files armada-3720-espressobin-emmc.dts and >> > armada-3720-espressobin-v7-emmc.dts is same. So move it into common >> > armada-3720-espressobin.dtsi file with

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class

2020-10-05 Thread Benjamin Berg
Hi, seems reasonable to me. Quite simple, but likely good enough as we are sticking to only use well known names. Just found a small typo. Benjamin On Sat, 2020-10-03 at 15:19 +0200, Hans de Goede wrote: > On modern systems CPU/GPU/... performance is often dynamically configurable > in the

[PATCH] docs: hwmon: (ltc2945): update datasheet link

2020-10-05 Thread Alexandru Ardelean
Old one isn't working anymore. Update to the latest datasheet link. Signed-off-by: Alexandru Ardelean --- Documentation/hwmon/ltc2945.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/hwmon/ltc2945.rst b/Documentation/hwmon/ltc2945.rst index

Re: [PATCH] net: phy: marvell: Use phy_read_paged() instead of open coding it

2020-10-05 Thread David Miller
From: Jisheng Zhang Date: Mon, 5 Oct 2020 17:19:50 +0800 > Convert m88e1318_get_wol() to use the well implemented phy_read_paged() > instead of open coding it. > > Signed-off-by: Jisheng Zhang Applied, thanks!

Re: [PATCH 3/3] soc/tegra: pmc: Don't create fake interrupt hierarchy levels

2020-10-05 Thread Marc Zyngier
On 2020-10-05 12:33, Thierry Reding wrote: On Mon, Oct 05, 2020 at 12:14:43PM +0100, Marc Zyngier wrote: The Tegra PMC driver does ungodly things with the interrupt hierarchy, repeatedly corrupting it by pulling hwirq numbers out of thin air, overriding existing IRQ mappings and changing the

Re: [PATCH v2 5/5] media: mt9p031: Fix corrupted frame after restarting stream

2020-10-05 Thread Laurent Pinchart
Hi Stefan, On Mon, Oct 05, 2020 at 11:28:21AM +0200, Stefan Riedmüller wrote: > On 02.10.20 02:05, Laurent Pinchart wrote: > > On Wed, Sep 30, 2020 at 12:51:33PM +0200, Stefan Riedmueller wrote: > >> From: Dirk Bender > >> > >> To prevent corrupted frames after starting and stopping the sensor

Re: [RFC 0/3] iommu: Reserved regions for IOVAs beyond dma_mask and iommu aperture

2020-10-05 Thread Christoph Hellwig
On Mon, Oct 05, 2020 at 11:44:10AM +0100, Lorenzo Pieralisi wrote: > > I see that there are both OF and ACPI hooks in pci_dma_configure() and > > both modify dev->dma_mask, which is what pci-sysfs is exposing here, > > but I'm not convinced this even does what it's intended to do. The > > driver

[PATCH V2] scsi: ufs: Add DeepSleep feature

2020-10-05 Thread Adrian Hunter
DeepSleep is a UFS v3.1 feature that achieves the lowest power consumption of the device, apart from power off. In DeepSleep mode, no commands are accepted, and the only way to exit is using a hardware reset or power cycle. This patch assumes that if a power cycle was an option, then power off

Re: [net-next v2 10/11] bridge: switchdev: cfm: switchdev interface implementation

2020-10-05 Thread Allan W. Nielsen
Hi Jiri On 01.10.2020 14:49, Jiri Pirko wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe Thu, Oct 01, 2020 at 12:30:18PM CEST, henrik.bjoernl...@microchip.com wrote: This is the definition of the CFM switchdev interface. The interface consist

<    5   6   7   8   9   10   11   12   13   14   >