Re: Linux 4.19.125

2020-05-27 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 292c92c8369d..93c63bda7115 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 124 +SUBLEVEL = 125 EXTRAVERSION = NAME = "People's Front" diff --git

Re: [PATCH v5 07/11] i2c: designware: Discard Cherry Trail model flag

2020-05-27 Thread Serge Semin
On Wed, May 27, 2020 at 06:57:25PM +0300, Andy Shevchenko wrote: > On Wed, May 27, 2020 at 06:30:42PM +0300, Serge Semin wrote: > > A PM workaround activated by the flag MODEL_CHERRYTRAIL has been removed > > since commit 9cbeeca05049 ("i2c: designware: Remove Cherry Trail PMIC I2C > > bus

Linux 4.19.125

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

Re: [PATCH v5 06/11] i2c: designware: Add Baytrail sem config DW I2C platform dependency

2020-05-27 Thread Serge Semin
On Wed, May 27, 2020 at 06:55:33PM +0300, Andy Shevchenko wrote: > On Wed, May 27, 2020 at 06:30:41PM +0300, Serge Semin wrote: > > Currently Intel Baytrail I2C semaphore is a feature of the DW APB I2C > > platform driver. It's a bit confusing to see it's config in the menu at > > some separated

Re: [PATCH v5 11/11] i2c: designware: Add Baikal-T1 System I2C support

2020-05-27 Thread Andy Shevchenko
On Wed, May 27, 2020 at 06:30:46PM +0300, Serge Semin wrote: > Baikal-T1 System Controller is equipped with a dedicated I2C Controller > which functionality is based on the DW APB I2C IP-core, the only > difference in a way it' registers are accessed. There are three access > register provided in

Re: [PATCH v2] arm: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver

2020-05-27 Thread Tony Lindgren
* Tony Lindgren [200519 09:05]: > * Tomi Valkeinen [200519 15:55]: > > (Dropping DT from cc) > > > > On 19/05/2020 18:48, Tony Lindgren wrote: > > > > > > > Suspend/resume on am43xx-gpevm is broken right now in mainline and > > > > > the regression looks > > > > > like it is caused by the

[RFC PATCH] iommu/arm-smmu: Add module parameter to set msi iova address

2020-05-27 Thread Srinath Mannam
This patch gives the provision to change default value of MSI IOVA base to platform's suitable IOVA using module parameter. The present hardcoded MSI IOVA base may not be the accessible IOVA ranges of platform. Since commit aadad097cd46 ("iommu/dma: Reserve IOVA for PCIe inaccessible DMA

Linux 5.4.43

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

Re: [PATCH v3 002/105] reset: simple: Add reset callback

2020-05-27 Thread Philipp Zabel
Hi Maxime, On Wed, 2020-05-27 at 17:47 +0200, Maxime Ripard wrote: > The reset-simple code lacks a reset callback that is still pretty easy to > implement. The only real thing to consider is the delay needed for a device > to be reset, so let's expose that as part of the reset-simple driver data.

Re: [PATCH v5 08/11] i2c: designware: Convert driver to using regmap API

2020-05-27 Thread Andy Shevchenko
On Wed, May 27, 2020 at 06:30:43PM +0300, Serge Semin wrote: > Seeing the DW I2C driver is using flags-based accessors with two > conditional clauses it would be better to replace them with the regmap > API IO methods and to initialize the regmap object with read/write > callbacks specific to the

Re: [PATCH 04/12] mm: add support for async page locking

2020-05-27 Thread Johannes Weiner
On Tue, May 26, 2020 at 04:01:07PM -0600, Jens Axboe wrote: > On 5/26/20 3:59 PM, Johannes Weiner wrote: > > On Tue, May 26, 2020 at 01:51:15PM -0600, Jens Axboe wrote: > >> Normally waiting for a page to become unlocked, or locking the page, > >> requires waiting for IO to complete. Add support

Re: [PATCH] perf/x86/intel/uncore: Fix oops when counting IMC uncore events on some TGL

2020-05-27 Thread Liang, Kan
On 5/27/2020 11:17 AM, David Laight wrote: From: Liang, Kan Sent: 27 May 2020 16:01 On 5/27/2020 10:51 AM, David Laight wrote: From: Liang, Kan Sent: 27 May 2020 15:47 On 5/27/2020 8:59 AM, David Laight wrote: From: kan.li...@linux.intel.com Sent: 27 May 2020 13:31 From: Kan Liang

Linux 5.6.15

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

Re: [PATCH v4 12/19] mm: memcg/slab: use a single set of kmem_caches for all accounted allocations

2020-05-27 Thread Vlastimil Babka
On 5/26/20 11:42 PM, Roman Gushchin wrote: > @@ -549,17 +503,14 @@ static __always_inline int charge_slab_page(struct page > *page, > gfp_t gfp, int order, > struct kmem_cache *s) > { > -#ifdef CONFIG_MEMCG_KMEM

Re: [PATCH v4 06/11] i2c: designware: Add Baytrail sem config DW I2C platform dependency

2020-05-27 Thread Serge Semin
On Wed, May 27, 2020 at 06:46:32PM +0300, Andy Shevchenko wrote: > On Wed, May 27, 2020 at 05:24:06PM +0300, Serge Semin wrote: > > On Wed, May 27, 2020 at 04:42:20PM +0300, Andy Shevchenko wrote: > > > On Wed, May 27, 2020 at 03:01:06PM +0300, Serge Semin wrote: > > > > Currently Intel Baytrail

Re: [PATCH] ASoC: amd: rt5682: fix soundwire dependencies

2020-05-27 Thread Arnd Bergmann
On Wed, May 27, 2020 at 3:47 PM Mark Brown wrote: > > On Wed, May 27, 2020 at 03:41:26PM +0200, Arnd Bergmann wrote: > > > Maybe the SND_SOC_RT5682 driver itself can be reworked so that > > the common part depends on neither soundwire nor i2c and the two > > bus specific options can be loadable

Re: [PATCH v2] PM: hibernate: restrict writes to the resume device

2020-05-27 Thread Rafael J. Wysocki
On Tue, May 26, 2020 at 6:19 PM Darrick J. Wong wrote: > > On Mon, May 25, 2020 at 12:52:17PM +0200, Rafael J. Wysocki wrote: > > On Tue, May 19, 2020 at 8:14 PM Domenico Andreoli > > wrote: > > > > > > From: Domenico Andreoli > > > > > > Hibernation via snapshot device requires write

Re: [PATCH] coresight: Use devm_kcalloc() in coresight_alloc_conns()

2020-05-27 Thread Mathieu Poirier
On Mon, 25 May 2020 at 23:53, Xu Wang wrote: > > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". > > Signed-off-by: Xu Wang > --- >

Re: [PATCH] capabilities: Introduce CAP_RESTORE

2020-05-27 Thread Casey Schaufler
On 5/27/2020 6:48 AM, Adrian Reber wrote: > On Mon, May 25, 2020 at 11:55:20AM -0700, Casey Schaufler wrote: >> On 5/25/2020 1:05 AM, Adrian Reber wrote: >>> On Fri, May 22, 2020 at 09:40:37AM -0700, Casey Schaufler wrote: On 5/21/2020 10:53 PM, Adrian Reber wrote: > This enables CRIU to

[PATCH v3 010/105] dt-bindings: display: vc4: Document BCM2711 VC5

2020-05-27 Thread Maxime Ripard
The BCM2711 comes with a new VideoCore. Add a compatible for it. Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/brcm,bcm2835-vc4.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

Re: Linux 4.4.225

2020-05-27 Thread Greg Kroah-Hartman
diff --git a/Documentation/networking/l2tp.txt b/Documentation/networking/l2tp.txt index 4650a00ed012..9bc271cdc9a8 100644 --- a/Documentation/networking/l2tp.txt +++ b/Documentation/networking/l2tp.txt @@ -177,10 +177,10 @@ setsockopt on the PPPoX socket to set a debug mask. The following

Linux 4.4.225

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

Re: [PATCH] ACPI: GED: use correct trigger type field in _Exx / _Lxx handling

2020-05-27 Thread Rafael J. Wysocki
On Wed, May 27, 2020 at 1:37 PM Ard Biesheuvel wrote: > > Commit ea6f3af4c5e63f69 ("ACPI: GED: add support for _Exx / _Lxx handler > methods") added a reference to the 'triggering' field of either the > normal or the extended ACPI IRQ resource struct, but inadvertently used > the wrong pointer in

Re: [RFC][PATCH 4/7] smp: Optimize send_call_function_single_ipi()

2020-05-27 Thread Paul E. McKenney
On Wed, May 27, 2020 at 12:15:13PM +0200, Peter Zijlstra wrote: > On Wed, May 27, 2020 at 11:56:45AM +0200, Peter Zijlstra wrote: > > > This is rcu_is_cpu_rrupt_from_idle()'s lockdep_assert_in_irq() tripping > > up (it's comment is obviously a bit antiquated). > > > > Now, if I read that code

Re: [PATCH v5 07/11] i2c: designware: Discard Cherry Trail model flag

2020-05-27 Thread Andy Shevchenko
On Wed, May 27, 2020 at 06:30:42PM +0300, Serge Semin wrote: > A PM workaround activated by the flag MODEL_CHERRYTRAIL has been removed > since commit 9cbeeca05049 ("i2c: designware: Remove Cherry Trail PMIC I2C > bus pm_disabled workaround"), but the flag most likely by mistake has been > left in

[PATCH v3 018/105] drm/vc4: plane: Move additional planes creation to driver

2020-05-27 Thread Maxime Ripard
So far the plane creation was done when each CRTC was bound, and those planes were only tied to the CRTC that was registering them. This causes two main issues: - The planes in the vc4 hardware are actually not tied to any CRTC, but can be used with every combination - More importantly,

[PATCH v3 011/105] drm/vc4: drv: Add include guards

2020-05-27 Thread Maxime Ripard
vc4_drv.h doesn't have any include guards which prevents it from being included twice. Let's add them. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_drv.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index

[PATCH v3 005/105] ARM: dts: bcm2711: Add HDMI DVP

2020-05-27 Thread Maxime Ripard
Now that we have a driver for the DVP, let's add its DT node. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/bcm2711.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index a91cf68e3c4c..00bcaed1be32

[PATCH v3 008/105] dt-bindings: display: vc4: dsi: Add missing clock properties

2020-05-27 Thread Maxime Ripard
While the device tree and the driver expected a clock-names and a clock-cells properties, it wasn't explicitly documented in the previous binding. Make sure it is now. Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Maxime Ripard ---

[PATCH v3 007/105] dt-bindings: display: vc4: dpi: Add missing clock-names property

2020-05-27 Thread Maxime Ripard
While the device tree and the driver expected a clock-names property, it wasn't explicitly documented in the previous binding. Make sure it is now. Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Maxime Ripard ---

[PATCH v3 020/105] drm/vc4: plane: Create overlays for any CRTC

2020-05-27 Thread Maxime Ripard
Now that we have everything in place, we can now register all the overlay planes that can be assigned to all the CRTCs. This has two side effects: - The number of overlay planes is reduced from 24 to 8. This is temporary and will be increased again in the next patch. - The ID of the

[PATCH v3 024/105] drm/vc4: crtc: Move crtc state to common header

2020-05-27 Thread Maxime Ripard
We'll need to access the crtc_state from outside of vc4_crtc.c, so let's move it to vc4_drv.h Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 21 - drivers/gpu/drm/vc4/vc4_drv.h | 21 + 2 files changed, 21 insertions(+), 21 deletions(-)

[PATCH v3 006/105] dt-bindings: display: Convert VC4 bindings to schemas

2020-05-27 Thread Maxime Ripard
The BCM283x SoCs have a display pipeline composed of several controllers with device tree bindings that are supported by Linux. Now that we have the DT validation in place, let's split into separate files and convert the device tree bindings for those controllers to schemas. This is just a 1:1

[PATCH v3 014/105] drm/vc4: Add support for the BCM2711 HVS5

2020-05-27 Thread Maxime Ripard
From: Dave Stevenson The HVS found in the BCM2711 is slightly different from the previous generations. Most notably, the display list layout changes a bit, the LBM doesn't have the same size and the formats ordering for some formats is swapped. Signed-off-by: Dave Stevenson Signed-off-by:

[PATCH v3 022/105] drm/vc4: crtc: Rename SoC data structures

2020-05-27 Thread Maxime Ripard
Since we're going to introduce pixelvalve data structures for other SoCs than the BCM2835, let's rename the structures defined in the code to make it obvious which SoC we're targeting. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 12 ++-- 1 file changed, 6

[PATCH v3 031/105] drm/vc4: crtc: Use local chan variable

2020-05-27 Thread Maxime Ripard
The vc4_crtc_handle_page_flip already has a local variable holding the value of vc4_crtc->channel, so let's use it instead. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c

[PATCH v3 044/105] drm/vc4: crtc: Move the HVS gamma LUT setup to our init function

2020-05-27 Thread Maxime Ripard
Since most of the HVS channel is setup in the init function, let's move the gamma setup there too. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hvs.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c

[PATCH v3 050/105] drm/vc4: encoder: Add finer-grained encoder callbacks

2020-05-27 Thread Maxime Ripard
In the BCM2711, the setup of the HVS, pixelvalve and HDMI controller requires very precise ordering and timing that the regular atomic callbacks don't provide. Let's add new callbacks on top of the regular ones to be able to split the configuration as needed. Signed-off-by: Maxime Ripard ---

[PATCH v3 046/105] drm/vc4: hvs: Remove mode_set_nofb

2020-05-27 Thread Maxime Ripard
Now that the only thing that remains in the mode_set_nofb callback for the HVS is the TXP muxing, and since that part is already covered by the FIFO channel allocation / muxing, the whole function is basically redundant and we can just remove it. Signed-off-by: Maxime Ripard ---

[PATCH v3 034/105] drm/vc4: crtc: Add FIFO depth to vc4_crtc_data

2020-05-27 Thread Maxime Ripard
Not all pixelvalve FIFOs in vc5 have the same depth, so we need to add that to our vc4_crtc_data structure to be able to compute the fill level properly later on. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 19 --- drivers/gpu/drm/vc4/vc4_drv.h | 3 +++ 2

[PATCH v3 026/105] drm/vc4: crtc: Use a shared interrupt

2020-05-27 Thread Maxime Ripard
Some pixelvalves in vc5 use the same interrupt line so let's register our interrupt handler as a shared one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c

[PATCH v3 032/105] drm/vc4: crtc: Enable and disable the PV in atomic_enable / disable

2020-05-27 Thread Maxime Ripard
The VIDEN bit in the pixelvalve currently being used to enable or disable the pixelvalve seems to not be enough in some situations, which whill end up with the pixelvalve stalling. In such a case, even re-enabling VIDEN doesn't bring it back and we need to clear the FIFO. This can only be done if

[PATCH v3 070/105] drm/vc4: hdmi: rework connectors and encoders

2020-05-27 Thread Maxime Ripard
the vc4_hdmi driver has some custom structures to hold the data it needs to associate with the drm_encoder and drm_connector structures. However, it allocates them separately from the vc4_hdmi structure which makes it more complicated than it needs to be. Move those structures to be contained by

Re: [PATCH v4 10/19] mm: memcg/slab: deprecate memory.kmem.slabinfo

2020-05-27 Thread Vlastimil Babka
On 5/26/20 11:42 PM, Roman Gushchin wrote: > Deprecate memory.kmem.slabinfo. > > An empty file will be presented if corresponding config options are > enabled. > > The interface is implementation dependent, isn't present in cgroup v2, > and is generally useful only for core mm debugging

[PATCH v3 067/105] drm/vc4: crtc: Remove the feed_txp tests

2020-05-27 Thread Maxime Ripard
Now that the code in vc4_crtc accessing registers is only meant for the pixelvalve, it doesn't make sense anymore to test whether we're accessing the TXP or not and we can safely remove those checks. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 31

Re: [PATCH v5 06/11] i2c: designware: Add Baytrail sem config DW I2C platform dependency

2020-05-27 Thread Andy Shevchenko
On Wed, May 27, 2020 at 06:30:41PM +0300, Serge Semin wrote: > Currently Intel Baytrail I2C semaphore is a feature of the DW APB I2C > platform driver. It's a bit confusing to see it's config in the menu at > some separated place with no reference to the platform code. Let's move the > config

[PATCH v3 051/105] drm/vc4: crtc: Add a delay after disabling the PixelValve output

2020-05-27 Thread Maxime Ripard
In order to avoid pixels getting stuck in the (unflushable) FIFO between the HVS and the PV, we need to add some delay after disabling the PV output and before disabling the HDMI controller. 20ms seems to be good enough so let's use that. Signed-off-by: Maxime Ripard ---

Re: [PATCH] net: ethernet: mtk-star-emac: fix error path in RX handling

2020-05-27 Thread Nathan Chancellor
On Wed, May 27, 2020 at 11:24:04AM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The dma_addr field in desc_data must not be overwritten until after the > new skb is mapped. Currently we do replace it with uninitialized value > in error path. This change fixes it by moving

[PATCH v3 043/105] drm/vc4: crtc: Move HVS init and close to a function

2020-05-27 Thread Maxime Ripard
In order to make further refactoring easier, let's move the HVS channel setup / teardown to their own function. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hvs.c | 106 +++ 1 file changed, 59 insertions(+), 47 deletions(-) diff --git

[PATCH v3 069/105] drm/vc4: hdmi: Move structure to header

2020-05-27 Thread Maxime Ripard
We will need to share the vc4_hdmi and related structures with multiple files, so let's create a header for it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 76 +--- drivers/gpu/drm/vc4/vc4_hdmi.h | 86 +++- 2

[PATCH v3 045/105] drm/vc4: hvs: Make sure our channel is reset

2020-05-27 Thread Maxime Ripard
In order to clear our intermediate FIFOs that might end up with a stale pixel, let's make sure our FIFO channel is reset everytime our channel is setup. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hvs.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v3 073/105] drm/vc4: hdmi: Move accessors to vc4_hdmi

2020-05-27 Thread Maxime Ripard
The current driver only supports a single HDMI controller, and part of the issue is that the main vc4_dev structure holds a pointer to its (only) HDMI controller, and the HDMI registers accessors will use it to retrieve the mapped addresses. Let's modify those accessors to use directly the

[PATCH v3 042/105] drm/vc4: crtc: Move PV dump to config_pv

2020-05-27 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 93161b98e22a..0a67b27cec9b 100644 ---

Re: [PATCH] twist: allow converting pr_devel()/pr_debug() into printk(KERN_DEBUG)

2020-05-27 Thread Petr Mladek
On Wed 2020-05-27 19:13:38, Tetsuo Handa wrote: > On 2020/05/27 17:37, Petr Mladek wrote: > > On Mon 2020-05-25 19:43:04, Tetsuo Handa wrote: > >> On 2020/05/25 17:42, Petr Mladek wrote: > >>> I see few drawbacks with this patch: > >>> > >>> 1. It will cause adding much more messages into the

[PATCH v3 072/105] drm/vc4: hdmi: Rename hdmi to vc4_hdmi

2020-05-27 Thread Maxime Ripard
The driver isn't consistent with the name given to the vc4_hdmi structure pointer in its functions. Make sure to use a consistent name. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 281 +- 1 file changed, 141 insertions(+), 140 deletions(-)

Re: [PATCH 1/2] x86: mm: ptdump: Calculate effective permissions correctly

2020-05-27 Thread Steven Price
On 27/05/2020 16:15, Jan Beulich wrote: On 21.05.2020 17:23, Steven Price wrote: By switching the x86 page table dump code to use the generic code the effective permissions are no longer calculated correctly because the note_page() function is only called for *leaf* entries. To calculate the

[PATCH v3 060/105] drm/vc4: crtc: Make state functions public

2020-05-27 Thread Maxime Ripard
We'll need the CRTC state related functions to be exported so that we can reuse them for the TXP. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 21 ++--- drivers/gpu/drm/vc4/vc4_drv.h | 10 ++ 2 files changed, 20 insertions(+), 11 deletions(-) diff

Re: [PATCH V7 00/15] perf/x86: Add perf text poke events

2020-05-27 Thread Peter Zijlstra
On Wed, May 27, 2020 at 12:47:16PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, May 20, 2020 at 05:56:34PM +0200, Peter Zijlstra escreveu: > > On Tue, May 19, 2020 at 10:40:01PM -0300, Arnaldo Carvalho de Melo wrote: > > > PeterZ, from what we discussed for the next merge Window, perhaps we >

[PATCH v3 063/105] drm/vc4: crtc: Move the CRTC initialisation to a separate function

2020-05-27 Thread Maxime Ripard
The upcoming patches to turn the TXP into a full-blown CRTC will have the same CRTC initialisation code, so let's move it into a separate, public, function so that we can reuse it later on. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 89 ---

[PATCH v3 099/105] drm/vc4: hdmi: Always recenter the HDMI FIFO

2020-05-27 Thread Maxime Ripard
In order to avoid a pixel getting stuck in an unflushable FIFO, we need to recenter the FIFO every time we're doing a modeset and not only if we're connected to an HDMI monitor. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 46 +++ 1 file

[PATCH v3 095/105] drm/vc4: hdmi: Set the b-frame marker to the match ALSA's default.

2020-05-27 Thread Maxime Ripard
From: Dave Stevenson ALSA's iec958 plugin by default sets the block start preamble to 8, whilst this driver was programming the hardware to expect 0xF. Amend the hardware config to match ALSA. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 3

[PATCH 0/6] x86/entry,lockdep: Improve IRQ state tracking

2020-05-27 Thread Peter Zijlstra
Ahmed and Sebastian wanted additional lockdep_assert*() macros and ran into header hell. Move the IRQ state into per-cpu variables, which removes the dependency on task_struct, which is what generated the header-hell. And fix IRQ state tracking to not be affected by lockdep_off() (it really

[PATCH v3 090/105] drm/vc4: hdmi: Rename drm_encoder pointer in mode_valid

2020-05-27 Thread Maxime Ripard
The mode_valid hook on the encoder uses a pointer to a drm_encoder called crtc, which is pretty confusing. Let's rename it to encoder to make it clear what it is. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 6/6] x86/entry: Fix NMI vs IRQ state tracking

2020-05-27 Thread Peter Zijlstra
While the nmi_enter() users did trace_hardirqs_{off_prepare,on_finish}() there was no matching lockdep_hardirqs_*() calls to complete the picture. Introduce idtentry_{enter,exit}_nmi() to enable proper IRQ state tracking across the NMIs. Signed-off-by: Peter Zijlstra (Intel) ---

[PATCH v3 081/105] drm/vc4: hdmi: Add reset callback

2020-05-27 Thread Maxime Ripard
The BCM2711 and BCM283x HDMI controllers use a slightly different reset sequence, so let's add a callback to reset the controller. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 31 ++- drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +++ 2 files changed, 21

[PATCH v3 078/105] drm/vc4: hdmi: Remove vc4_hdmi_connector

2020-05-27 Thread Maxime Ripard
The vc4_hdmi_connector was only used to switch between drm_connector to drm_encoder. However, we can now use vc4_hdmi to do the switch, so that structure is redundant. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 19 --- drivers/gpu/drm/vc4/vc4_hdmi.h | 23

[PATCH v3 076/105] drm/vc4: hdmi: Pass vc4_hdmi to CEC code

2020-05-27 Thread Maxime Ripard
Our CEC code also retrieves the associated vc4_hdmi by setting the vc4_dev pointer as its private data, and then dereferences its vc4_hdmi pointer. In order to eventually get rid of that pointer, we can simply pass the vc4_hdmi pointer directly. Signed-off-by: Maxime Ripard ---

[PATCH v3 082/105] drm/vc4: hdmi: Add PHY init and disable function

2020-05-27 Thread Maxime Ripard
The HDMI PHY in the BCM2711 HDMI controller is significantly more complicated to setup than in the older BCM283x SoCs. Let's add hooks to enable and disable the PHY. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/Makefile | 1 + drivers/gpu/drm/vc4/vc4_hdmi.c | 14

[PATCH] x86/mm: keep __default_kernel_pte_mask in sync with __supported_pte_mask

2020-05-27 Thread Jan Beulich
Both masks get applied in the process of e.g. set_fixmap() - the former through use of PAGE_KERNEL, the latter by use of massage_pgprot(). Hence forever since the introduction of the former there was a time window (between x86_configure_nx() and the syncing of the two in probe_page_size_mask(), as

[PATCH v3 097/105] drm/vc4: hdmi: Deal with multiple ALSA cards

2020-05-27 Thread Maxime Ripard
The HDMI driver was registering a single ALSA card so far with the name vc4-hdmi. Obviously, this is not going to work anymore when will have multiple HDMI controllers since we will end up trying to register two files with the same name. Let's use the variant to avoid that name conflict.

[PATCH 4/6] x86/entry: Rename trace_hardirqs_off_prepare()

2020-05-27 Thread Peter Zijlstra
The typical pattern for trace_hardirqs_off_prepare() is: ENTRY lockdep_hardirqs_off(); // because hardware ... do entry magic instrumentation_begin(); trace_hardirqs_off_prepare(); ... do actual work trace_hardirqs_on_prepare(); lockdep_hardirqs_on_prepare();

[PATCH v3 088/105] drm/vc4: hdmi: Add CEC support flag

2020-05-27 Thread Maxime Ripard
Similarly to the audio support, CEC support is not there yet for the BCM2711, so let's skip entirely the CEC initialization through a variant flag. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 4 drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +++ 2 files changed, 7 insertions(+)

[PATCH 5/6] lockdep: Prepare for NMI IRQ state tracking

2020-05-27 Thread Peter Zijlstra
There is no reason not to always, accurately, track IRQ state. This change also makes IRQ state tracking ignore lockdep_off(). Signed-off-by: Peter Zijlstra (Intel) --- kernel/locking/lockdep.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) ---

[PATCH 3/6] lockdep: Remove lockdep_hardirq{s_enabled,_context}() argument

2020-05-27 Thread Peter Zijlstra
Now that the functions use per-cpu data, we no longer need the macro argument. Remove it. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/irqflags.h |8 include/linux/lockdep.h|2 +- kernel/locking/lockdep.c | 30 +++---

[PATCH v3 091/105] drm/vc4: hdmi: Adjust HSM clock rate depending on pixel rate

2020-05-27 Thread Maxime Ripard
The HSM clock needs to be setup at around 101% of the pixel rate. This was done previously by setting the clock rate to 163.7MHz at probe time and only check in mode_valid whether the mode pixel clock was under the pixel clock +1% or not. However, with 4k we need to change that frequency to a

[PATCH v3 054/105] drm/vc4: hvs: Make the stop_channel function public

2020-05-27 Thread Maxime Ripard
During the transition from the firmware to the KMS driver, we need to pay particular attention to how we deal with the pixelvalves that have already been enabled, otherwise either timeouts or stuck pixels can occur. We'll thus need to call the function to stop an HVS channel at boot.

[PATCH v3 102/105] drm/vc4: hdmi: Switch to blank pixels when disabled

2020-05-27 Thread Maxime Ripard
In order to avoid pixels getting stuck in an unflushable FIFO, we need when we disable the HDMI controller to switch away from getting our pixels from the pixelvalve and instead use blank pixels, and switch back to the pixelvalve when we enable the HDMI controller. Signed-off-by: Maxime Ripard

[PATCH v3 075/105] drm/vc4: hdmi: Add container_of macros for encoders and connectors

2020-05-27 Thread Maxime Ripard
Whenever the code needs to access the vc4_hdmi structure from a DRM connector or encoder, it first accesses the drm_device associated to the connector, then retrieve the drm_dev private data which gives it a pointer to our vc4_dev, and will finally follow the vc4_hdmi pointer in that structure.

[PATCH v3 086/105] drm/vc4: hdmi: Deal with multiple debugfs files

2020-05-27 Thread Maxime Ripard
The HDMI driver was registering a single debugfs file so far with the name hdmi_regs. Obviously, this is not going to work anymore when will have multiple HDMI controllers since we will end up trying to register two files with the same name. Let's use the variant to avoid that name conflict.

[PATCH v3 098/105] drm/vc4: hdmi: Remove register dumps in enable

2020-05-27 Thread Maxime Ripard
The current code has some logic, disabled by default, to dump the register setup in the HDMI controller. However, since we're going to split those functions in multiple, shorter, functions that only make sense where they are called in sequence, keeping the register dump makes little sense.

[PATCH v3 087/105] drm/vc4: hdmi: Move CEC init to its own function

2020-05-27 Thread Maxime Ripard
The CEC init code was put directly into the bind function, which was quite inconsistent with how the audio support was done, and would prevent us from further changes to skip that initialisation entirely. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 108

[PATCH v3 104/105] dt-bindings: display: vc4: hdmi: Add BCM2711 HDMI controllers bindings

2020-05-27 Thread Maxime Ripard
The HDMI controllers found in the BCM2711 SoC need some adjustments to the bindings, especially since the registers have been shuffled around in more register ranges. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Maxime Ripard ---

[PATCH 2/6] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables

2020-05-27 Thread Peter Zijlstra
Currently all IRQ-tracking state is in task_struct, this means that task_struct needs to be defined before we use it. Especially for lockdep_assert_irq*() this can lead to header-hell. Move the hardirq state into per-cpu variables to avoid the task_struct dependency. Signed-off-by: Peter

[PATCH v3 105/105] ARM: dts: bcm2711: Enable the display pipeline

2020-05-27 Thread Maxime Ripard
Now that all the drivers have been adjusted for it, let's bring in the necessary device tree changes. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 46 +++- arch/arm/boot/dts/bcm2711.dtsi| 115 ++- 2 files changed, 160

Re: [PATCH 0/3] workqueue: Make the workqueue code PREEMPT_RT safe

2020-05-27 Thread Linus Torvalds
On Wed, May 27, 2020 at 8:20 AM Sebastian Andrzej Siewior wrote: > > On 2020-05-26 14:46:59 [-0700], Linus Torvalds wrote: > > > > We have better models. We have "rcuwait", and we have > > "wake_up_process()". Either of which is simpler and more efficient > > than swait, and are actually useful.

[PATCH v3 103/105] drm/vc4: hdmi: Support the BCM2711 HDMI controllers

2020-05-27 Thread Maxime Ripard
Now that the driver is ready for it, let's bring in the HDMI controllers variants for the BCM2711. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 278 +- drivers/gpu/drm/vc4/vc4_hdmi.h | 36 ++- drivers/gpu/drm/vc4/vc4_hdmi_phy.c | 480

[PATCH v3 096/105] drm/vc4: hdmi: Add audio-related callbacks

2020-05-27 Thread Maxime Ripard
From: Dave Stevenson The audio configuration has changed for the BCM2711, with notably a different parent clock and a different channel configuration. Make that modular to be able to support the BCM2711. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard ---

[PATCH 1/6] x86/entry: Clarify irq_{enter,exit}_rcu()

2020-05-27 Thread Peter Zijlstra
Because: irq_enter_rcu() includes lockdep_hardirq_enter() irq_exit_rcu() does *NOT* include lockdep_hardirq_exit() Which resulted two 'stray' lockdep_hardirq_exit() calls in idtentry.h, and me spending a long time trying to find the matching enters. Signed-off-by: Peter Zijlstra (Intel)

Re: [PATCH] [v2] drm/panfrost: Fix runtime PM imbalance on error

2020-05-27 Thread Steven Price
On 22/05/2020 14:41, Dinghao Liu wrote: The caller expects panfrost_job_hw_submit() to increase runtime PM usage counter. The refcount decrement on the error branch of WARN_ON() will break the counter balance and needs to be removed. Signed-off-by: Dinghao Liu Reviewed-by: Steven Price

[PATCH v3 093/105] drm/vc4: hdmi: Use reg-names to retrieve the HDMI audio registers

2020-05-27 Thread Maxime Ripard
From: Dave Stevenson The register range used for audio setup in the previous generations of SoC were always the second range in the device tree. However, now that the BCM2711 has way more register ranges, it makes sense to retrieve it by names for it, while preserving the id-based lookup as a

Re: [PATCH v4 11/11] i2c: designware: Add Baikal-T1 System I2C support

2020-05-27 Thread Andy Shevchenko
On Wed, May 27, 2020 at 06:04:31PM +0300, Serge Semin wrote: > On Wed, May 27, 2020 at 05:03:03PM +0300, Andy Shevchenko wrote: > > On Wed, May 27, 2020 at 03:01:11PM +0300, Serge Semin wrote: ... > > > +static struct regmap_config bt1_i2c_cfg = { > > > + .reg_bits = 32, > > > + .val_bits = 32,

[PATCH v3 100/105] drm/vc4: hdmi: Implement finer-grained hooks

2020-05-27 Thread Maxime Ripard
In order to prevent some pixels getting stuck in an unflushable FIFO on bcm2711, we need to enable the HVS, the pixelvalve (the CRTC) and the HDMI controller (the encoder) in an intertwined way, and with tight delays. However, the atomic callbacks don't really provide a way to work with either

[PATCH v3 101/105] drm/vc4: hdmi: Do the VID_CTL configuration at once

2020-05-27 Thread Maxime Ripard
The VID_CTL setup is done in several places in the driver even though it's not really required. Let's simplify it a bit to do the configuration in one go. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git

[PATCH v3 089/105] drm/vc4: hdmi: Remove unused CEC_CLOCK_DIV define

2020-05-27 Thread Maxime Ripard
The CEC_CLOCK_DIV define is not used anywhere in the driver, let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index 27cfcf38edb4..f62b488c5bdb

[PATCH v3 083/105] drm/vc4: hdmi: Add PHY RNG enable / disable function

2020-05-27 Thread Maxime Ripard
Let's continue the implementation of hooks for the parts that change in the BCM2711 SoC with the PHY RNG setup. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 15 +-- drivers/gpu/drm/vc4/vc4_hdmi.h | 8 drivers/gpu/drm/vc4/vc4_hdmi_phy.c | 15

[PATCH v3 094/105] drm/vc4: hdmi: Reset audio infoframe on encoder_enable if previously streaming

2020-05-27 Thread Maxime Ripard
From: Dave Stevenson If the encoder is disabled and re-enabled (eg mode change) all infoframes are reset, whilst the audio subsystem know nothing about this change. The driver therefore needs to reinstate the audio infoframe for itself. Signed-off-by: Dave Stevenson Signed-off-by: Maxime

[PATCH v3 084/105] drm/vc4: hdmi: Add a CSC setup callback

2020-05-27 Thread Maxime Ripard
Similarly to the previous patches, the CSC setup is slightly different in the BCM2711 than in the previous generations. Let's add a callback for it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 142 +++--- drivers/gpu/drm/vc4/vc4_hdmi.h | 7 ++-

[PATCH v3 085/105] drm/vc4: hdmi: Store the encoder type in the variant structure

2020-05-27 Thread Maxime Ripard
The vc4 CRTC will use the encoder type to control its output clock muxing. However, this will be different from HDMI0 to HDMI1, so let's store our type in the variant structure so that we can support multiple controllers later on. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c

[PATCH v3 092/105] drm/vc4: hdmi: Use clk_set_min_rate instead

2020-05-27 Thread Maxime Ripard
The HSM clock needs to be running at 101% the pixel clock of the HDMI controller, however it's shared between the two HDMI controllers, which means that if the resolutions are different between the two HDMI controllers, and the lowest resolution is on the second (in enable order) controller, the

[PATCH v3 077/105] drm/vc4: hdmi: Remove vc4_dev hdmi pointer

2020-05-27 Thread Maxime Ripard
Now that we don't have any users anymore, we can kill that pointer. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_drv.h | 1 - drivers/gpu/drm/vc4/vc4_hdmi.c | 14 ++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_drv.h

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