Re: [v4,1/3] drm/prime: use dma length macro when mapping sg

2020-03-30 Thread Marek Szyprowski
Hi Alex, On 2020-03-30 15:23, Alex Deucher wrote: > On Mon, Mar 30, 2020 at 4:18 AM Marek Szyprowski > wrote: >> Hi >> >> On 2020-03-27 10:10, Marek Szyprowski wrote: >>> Hi Christian, >>> >>> On 2020-03-27 09:11, Christian König wrote: Am 27.03.20 um 08:54 schrieb Marek Szyprowski: >

Re: [PATCH v2 2/2] drm/i915/dp: Attach and set drm connector VRR property

2020-03-30 Thread Manasi Navare
@Jani @Ville, this is the one we had discussed on IRC, could you take a look at this patch? Manasi On Tue, Mar 24, 2020 at 06:22:01PM -0700, Manasi Navare wrote: > From: Aditya Swarup > > This function sets the VRR property for connector based > on the platform support, EDID monitor range and

Re: [PATCH v2 4/5] dt-bindings: arm: Add Topwise A721

2020-03-30 Thread Rob Herring
On Fri, 20 Mar 2020 12:21:35 +0100, Pascal Roeleven wrote: > Add the bindings for Topwise A721 tablet > > Signed-off-by: Pascal Roeleven > --- > Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + > 1 file changed, 5 insertions(+) > Acked-by: Rob Herring

Re: [PATCH v2 3/5] dt-bindings: vendor-prefixes: Add Topwise

2020-03-30 Thread Rob Herring
On Fri, 20 Mar 2020 12:21:34 +0100, Pascal Roeleven wrote: > Topwise Communication Co,. Ltd. is a company based in Shenzhen. They > manufacture all kind of products but seem to be focusing on POS nowadays. > > Signed-off-by: Pascal Roeleven > --- >

Re: [PATCH v5 4/5] drm: imx: Add i.MX 6 MIPI DSI host platform driver

2020-03-30 Thread Adrian Ratiu
On Mon, 30 Mar 2020, Fabio Estevam wrote: Hi Adrian, On Mon, Mar 30, 2020 at 8:34 AM Adrian Ratiu wrote: This adds support for the Synopsis DesignWare MIPI DSI v1.01 host controller which is embedded in i.MX 6 SoCs. Based on following patches, but updated/extended to work with

Re: [Outreachy kernel] [PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-30 Thread Stefano Brivio
On Mon, 30 Mar 2020 15:03:55 -0700 "John B. Wyatt IV" wrote: > On Mon, 2020-03-30 at 19:40 +0200, Stefano Brivio wrote: > > On Sun, 29 Mar 2020 12:37:18 +0200 (CEST) > > Julia Lawall wrote: > > > > > On Sun, 29 Mar 2020, Soumyajit Deb wrote: > > > > > > > I had the same doubt the other

Re: [PATCH v5 3/5] drm: bridge: synopsis: add dsi v1.01 support

2020-03-30 Thread Adrian Ratiu
On Mon, 30 Mar 2020, adrian61 wrote: Hello Adrian, Here i get a compile error: I neglected to test with CONFIG_DEBUG_FS, oops! Will fix in v6, thanks! On Mon, Mar 30, 2020 at 2:36 PM Adrian Ratiu wrote: The Synopsis MIPI DSI v1.01 host controller is quite widely used on platforms

Re: [PATCH v5 4/5] drm: imx: Add i.MX 6 MIPI DSI host platform driver

2020-03-30 Thread Adrian Ratiu
On Mon, 30 Mar 2020, Ezequiel Garcia wrote: Hello Fabio, Adrian: On Mon, 2020-03-30 at 08:49 -0300, Fabio Estevam wrote: Hi Adrian, On Mon, Mar 30, 2020 at 8:34 AM Adrian Ratiu wrote: > This adds support for the Synopsis DesignWare MIPI DSI v1.01 > host controller which is embedded in

Re: [PATCH v2 1/6] drm/vblank: Add intro to documentation

2020-03-30 Thread Lyude Paul
I am glad that my explanation of vblanks made sense! Some comments below on things I think we could improve here On Mon, 2020-03-30 at 20:57 +0200, Sam Ravnborg wrote: > Lyude Paul wrote a very good intro to vblank here: >

Re: [v4,1/3] drm/prime: use dma length macro when mapping sg

2020-03-30 Thread Marek Szyprowski
Hi On 2020-03-27 10:10, Marek Szyprowski wrote: > Hi Christian, > > On 2020-03-27 09:11, Christian König wrote: >> Am 27.03.20 um 08:54 schrieb Marek Szyprowski: >>> On 2020-03-25 10:07, Shane Francis wrote: As dma_map_sg can reorganize scatter-gather lists in a way that can cause some

Re: [PATCH] drm/managed: Fix off-by-one in warning

2020-03-30 Thread Daniel Vetter
Ok 0day people uploaded the tree they tested (from patches) now, I confirmed it's indeed this line that's blowing up. -Daniel On Sat, Mar 28, 2020 at 5:24 PM Daniel Vetter wrote: > > I'm thinking this is the warning that fired in the 0day report, but I > can't double-check yet since 0day didn't

[PATCH v2 06/22] dt-bindings: memory: tegra20: Add memory client IDs

2020-03-30 Thread Dmitry Osipenko
Each memory client have a unique hardware ID, this patch adds these IDs. Signed-off-by: Dmitry Osipenko --- include/dt-bindings/memory/tegra20-mc.h | 53 + 1 file changed, 53 insertions(+) diff --git a/include/dt-bindings/memory/tegra20-mc.h

[PATCH v2 14/22] memory: tegra20-emc: Register as interconnect provider

2020-03-30 Thread Dmitry Osipenko
Now memory controller is a memory interconnection provider. This allows us to use interconnect API in order to change memory configuration. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra20-emc.c | 117 + 1 file changed, 117 insertions(+) diff --git

Re: [PATCH v4 2/2] drm/lima: Add optional devfreq and cooling device support

2020-03-30 Thread Martin Blumenstingl
On Sat, Mar 28, 2020 at 9:40 AM Qiang Yu wrote: > > Applied to drm-misc-next. thank you! regarding patch #1 - can you apply this as well? patch #1 just takes this midgard change [0] and ports it to utgard Thank you! Martin [0]

[PATCH v2 20/22] drm/tegra: dc: Extend debug stats with total number of events

2020-03-30 Thread Dmitry Osipenko
It's useful to know the total number of underflow events and currently the debug stats are getting reset each time CRTC is being disabled. Let's account the overall number of events that doesn't get reset. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c | 10 ++

[PATCH v5 2/8] ARM: DTS: am33xx: add sgx gpu child node

2020-03-30 Thread H. Nikolaus Schaller
and add interrupt. Tested-by: H. Nikolaus Schaller # BeagleBone Black Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/am33xx.dtsi | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index

Re: [PATCH 0/2] powerpc: Remove support for ppc405/440 Xilinx platforms

2020-03-30 Thread Andy Shevchenko
On Fri, Mar 27, 2020 at 01:54:33PM +0100, Arnd Bergmann wrote: > On Fri, Mar 27, 2020 at 1:12 PM Michal Simek wrote: > > > > recently we wanted to update xilinx intc driver and we found that function > > which we wanted to remove is still wired by ancient Xilinx PowerPC > > platforms. Here is the

[PATCH v5 3/8] ARM: DTS: am3517: add sgx gpu child node

2020-03-30 Thread H. Nikolaus Schaller
and add interrupt. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/am3517.dtsi | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/am3517.dtsi b/arch/arm/boot/dts/am3517.dtsi index e0b5a00e2078..3fce56a646d1 100644 ---

[PATCH v3 hmm 0/9] Small hmm_range_fault() cleanups

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe This is v3 with some minor adjustments made. We are at the end of the dev cycle, and as nothing major has come up I'll push this toward linux-next to get some coverage and decide next week what goes this cycle. v3 changes: - Keep NEED_WRITE_FAULT and NEED_FAULT separate

[PATCH 2/2] powerpc: Remove Xilinx PPC405/PPC440 support

2020-03-30 Thread Michal Simek
The latest Xilinx design tools called ISE and EDK has been released in October 2013. New tool doesn't support any PPC405/PPC440 new designs. These platforms are no longer supported and tested. PowerPC 405/440 port is orphan from 2013 by commit cdeb89943bfc ("MAINTAINERS: Fix incorrect status

How to handle disconnection of eDP panels due to dynamic display mux switches

2020-03-30 Thread Daniel Dadap
A number of hybrid GPU notebook computer designs with dual (integrated plus discrete) GPUs are equipped with multiplexers (muxes) that allow display panels to be driven by either the integrated GPU or the discrete GPU. Typically, this is a selection that can be made at boot time as a menu

[RFC v3 7/8] MIPS: DTS: CI20: add HDMI setup

2020-03-30 Thread H. Nikolaus Schaller
From: Paul Boddie We need to hook up * HDMI power regulator * HDMI connector * DDC pinmux * HDMI and LCD endpoint connections Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/ci20.dts | 64 + 1 file changed, 64

[PATCH v2 hmm 7/9] mm/hmm: do not unconditionally set pfns when returning EBUSY

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe In hmm_vma_handle_pte() and hmm_vma_walk_hugetlb_entry() if fault happens then -EBUSY will be returned and the pfns input flags will have been destroyed. For hmm_vma_handle_pte() set HMM_PFN_NONE only on the success returns that don't otherwise store to pfns. For

Re: [Outreachy kernel] [PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-30 Thread Julia Lawall
On Sun, 29 Mar 2020, John B. Wyatt IV wrote: > Fix style issue with usleep_range being reported as preferred over > udelay. > > Issue reported by checkpatch. > > Please review. > > As written in Documentation/timers/timers-howto.rst udelay is the > generally preferred API. hrtimers, as noted

Re: [PATCH] fbcon: fix null-ptr-deref in fbcon_switch

2020-03-30 Thread Qiujun Huang
On Sun, Mar 29, 2020 at 2:13 AM Sam Ravnborg wrote: > > Hi Qiujun > > Thanks for looking into the sysbot bugs. > > On Sat, Mar 28, 2020 at 11:15:10PM +0800, Qiujun Huang wrote: > > Add check for vc_cons[logo_shown].d, as it can be released by > > vt_ioctl(VT_DISALLOCATE). > > > > Reported-by:

[RFC v3 8/8] MIPS: CI20: defconfig: configure for DRM_DW_HDMI_JZ4780

2020-03-30 Thread H. Nikolaus Schaller
We configure them as loadable modules by default. Signed-off-by: H. Nikolaus Schaller --- arch/mips/configs/ci20_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/configs/ci20_defconfig b/arch/mips/configs/ci20_defconfig index be41df2a81fb..3f733a555cb2 100644 ---

[PATCH v2 hmm 2/9] mm/hmm: return the fault type from hmm_pte_need_fault()

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe Using two bools instead of flags return is not necessary and leads to bugs. Returning a value is easier for the compiler to check and easier to pass around the code flow. Convert the two bools into flags and push the change to all callers. Signed-off-by: Jason Gunthorpe

[PATCH v5 1/8] dt-bindings: add img,pvrsgx.yaml for Imagination GPUs

2020-03-30 Thread H. Nikolaus Schaller
The Imagination PVR/SGX GPU is part of several SoC from multiple vendors, e.g. TI OMAP, Ingenic JZ4780, Intel Poulsbo, Allwinner A83 and others. With this binding, we describe how the SGX processor is interfaced to the SoC (registers, interrupt etc.). In most cases, Clock, Reset and power

Re: [DPU PATCH v4 4/5] drm/msm/dp: add support for DP PLL driver

2020-03-30 Thread varar
On 2020-03-19 15:17, Stephen Boyd wrote: Quoting Vara Reddy (2020-03-04 16:10:27) From: Chandan Uddaraju Add the needed DP PLL specific files to support display port interface on msm targets. The DP driver calls the DP PLL driver registration. The DP driver sets the link and pixel clock

[RFC v3 6/8] MIPS: DTS: jz4780: account for Synopsys HDMI driver and LCD controller

2020-03-30 Thread H. Nikolaus Schaller
From: Paul Boddie A specialisation of the generic Synopsys HDMI driver is employed for JZ4780 HDMI support. This requires a new driver, plus device tree and configuration modifications. Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/jz4780.dtsi

Re: [PATCH] drm/vc4: Fix HDMI mode validation

2020-03-30 Thread Nicolas Saenz Julienne
Hi Daniel, On Thu, 2020-03-26 at 13:20 +0100, Nicolas Saenz Julienne wrote: > Current mode validation impedes setting up some video modes which should > be supported otherwise. Namely 1920x1200@60Hz. > > Fix this by lowering the minimum HDMI state machine clock to pixel clock > ratio allowed. >

[PATCH v5 7/8] ARM: DTS: omap5: add sgx gpu child node

2020-03-30 Thread H. Nikolaus Schaller
and add interrupt. Tested-by: H. Nikolaus Schaller # Pyra-Handheld. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap5.dtsi | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index

[PATCH v2 21/22] ARM: tegra: Enable interconnect API in tegra_defconfig

2020-03-30 Thread Dmitry Osipenko
Tegra now has interconnect providers that are used for memory bandwidth allocation. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index

[PATCH] dt-bindings: display: meson-vpu: fix indentation of reg-names' "items"

2020-03-30 Thread Martin Blumenstingl
Use two spaces for indentation instead of one to be consistent with the rest of the file. No functional changes. Fixes: 6b9ebf1e0e678b ("dt-bindings: display: amlogic, meson-vpu: convert to yaml") Signed-off-by: Martin Blumenstingl --- .../devicetree/bindings/display/amlogic,meson-vpu.yaml

[PATCH v2 hmm 1/9] mm/hmm: remove pgmap checking for devmap pages

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe The checking boils down to some racy check if the pagemap is still available or not. Instead of checking this, rely entirely on the notifiers, if a pagemap is destroyed then all pages that belong to it must be removed from the tables and the notifiers triggered.

Re: [DPU PATCH v4 4/5] drm/msm/dp: add support for DP PLL driver

2020-03-30 Thread varar
Hi Stephen Boyd, I have updated our comments inline for the queries. Could you please check and let know your views. I have addressed most of the comments from Rob/Jordon and planning to update new patchset in couple of days. Thanks, --Vara On 2020-03-27 13:28, va...@codeaurora.org wrote:

Re: [PATCH] fbcon: fix null-ptr-deref in fbcon_switch

2020-03-30 Thread Qiujun Huang
On Sun, Mar 29, 2020 at 12:31 AM Daniel Vetter wrote: > > On Sat, Mar 28, 2020 at 4:15 PM Qiujun Huang wrote: > > Add check for vc_cons[logo_shown].d, as it can be released by > > vt_ioctl(VT_DISALLOCATE). > > Can you pls link to the syzbot report and distill the essence of the > crash/issue

[PATCH v2 hmm 3/9] mm/hmm: remove unused code and tidy comments

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe Delete several functions that are never called, fix some desync between comments and structure content, toss the now out of date top of file header, and move one function only used by hmm.c into hmm.c Reviewed-by: Christoph Hellwig Signed-off-by: Jason Gunthorpe ---

Re: [PATCH] drm/i915: Force DPCD backlight mode for HP Spectre x360 Convertible 13t-aw100

2020-03-30 Thread Kai-Heng Feng
Hi, > On Mar 23, 2020, at 13:35, Kai-Heng Feng wrote: > > There's another OLED panel needs to use DPCD aux interface to control > backlight. > > BugLink: https://bugs.launchpad.net/bugs/1860303 > Signed-off-by: Kai-Heng Feng Would it be possible to review this? I'd like to send a similar

Re: [Outreachy kernel] [PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-30 Thread Julia Lawall
On Sun, 29 Mar 2020, John Wyatt wrote: > On Sun, 2020-03-29 at 11:28 +0200, Julia Lawall wrote: > > > > On Sun, 29 Mar 2020, John B. Wyatt IV wrote: > > > > > Fix style issue with usleep_range being reported as preferred over > > > udelay. > > > > > > Issue reported by checkpatch. > > > > > >

[PATCH v2 18/22] drm/tegra: dc: Support memory bandwidth management

2020-03-30 Thread Dmitry Osipenko
Display controller (DC) performs isochronous memory transfers, and thus, has a requirement for a minimum memory bandwidth that shall be fulfilled, otherwise framebuffer data can't be fetched fast enough and this results in a DC's data-FIFO underflow that follows by a visual corruption. The Memory

[PATCH v5 4/8] ARM: DTS: omap34xx: add sgx gpu child node

2020-03-30 Thread H. Nikolaus Schaller
and add interrupt. According to omap3530 TRM the SGX register block is 64kB. See: 13.4 SGX Register Mapping, Table 13-2 Reported-by: Andrew F. Davis # register size Tested-by: H. Nikolaus Schaller # OpenPandora 600 MHz. Signed-off-by: H. Nikolaus Schaller ---

[PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-30 Thread John B. Wyatt IV
Fix style issue with usleep_range being reported as preferred over udelay. Issue reported by checkpatch. Please review. As written in Documentation/timers/timers-howto.rst udelay is the generally preferred API. hrtimers, as noted in the docs, may be too expensive for this short timer. Are the

[PATCH v2 11/22] memory: tegra: Register as interconnect provider

2020-03-30 Thread Dmitry Osipenko
Now memory controller is a memory interconnection provider. This allows us to use interconnect API in order to change memory configuration. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/mc.c | 118 ++ drivers/memory/tegra/mc.h | 8 +++

[PATCH v2 17/22] memory: tegra30-emc: Register as interconnect provider

2020-03-30 Thread Dmitry Osipenko
Now external memory controller is a memory interconnection provider. This allows us to use interconnect API to change memory configuration. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra30-emc.c | 115 + 1 file changed, 115 insertions(+) diff --git

[PATCH v2 05/22] dt-bindings: host1x: Document new interconnect properties

2020-03-30 Thread Dmitry Osipenko
Most of Host1x devices have at least one memory client. These clients are directly connected to the memory controller. The new interconnect properties represent the memory client's connection to the memory controller. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 08/22] ARM: tegra: Add interconnect properties to Tegra20 device-tree

2020-03-30 Thread Dmitry Osipenko
Add interconnect properties to the memory controller, external memory controller and the display controller nodes in order to describe hardware interconnection. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 22 +- 1 file changed, 21 insertions(+), 1

[PATCH v2 07/22] dt-bindings: memory: tegra30: Add memory client IDs

2020-03-30 Thread Dmitry Osipenko
Each memory client have a unique hardware ID, this patch adds these IDs. Signed-off-by: Dmitry Osipenko --- include/dt-bindings/memory/tegra30-mc.h | 67 + 1 file changed, 67 insertions(+) diff --git a/include/dt-bindings/memory/tegra30-mc.h

[RFC v3 0/8] MIPS: CI20: add HDMI out support

2020-03-30 Thread H. Nikolaus Schaller
+++ help is needed: driver is not completely working and shows no output signal on the HDMI data and clock lanes +++ HPD is working and /dev/fb0 does appear +++ but there is no trigger to initialize the lcdc * add definition for second jz4780-lcdc * diverse fixes for yaml schema * make

general protection fault in fbcon_switch

2020-03-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e17994d1 usb: core: kcov: collect coverage from usb comple.. git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=1328834be0 kernel config:

[PATCH] fbcon: fix null-ptr-deref in fbcon_switch

2020-03-30 Thread Qiujun Huang
Add check for vc_cons[logo_shown].d, as it can be released by vt_ioctl(VT_DISALLOCATE). Reported-by: syzbot+732528bae351682f1...@syzkaller.appspotmail.com Signed-off-by: Qiujun Huang --- drivers/video/fbdev/core/fbcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 15/22] memory: tegra20-emc: Create tegra20-devfreq device

2020-03-30 Thread Dmitry Osipenko
The tegra20-devfreq driver provides memory frequency scaling functionality and it uses EMC clock for the scaling. Since tegra20-devfreq is a software driver, the device for the driver needs to be created manually. Let's do it from EMC driver since it provides the clk rate-change functionality.

[PATCH v2 02/22] dt-bindings: memory: tegra20: emc: Document new interconnect property

2020-03-30 Thread Dmitry Osipenko
External memory controller is interconnected with memory controller and with external memory. Document new interconnect property which turns external memory controller into interconnect provider. Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra20-emc.txt

[PATCH v2] fbcon: fix null-ptr-deref in fbcon_switch

2020-03-30 Thread Qiujun Huang
Set logo_shown to FBCON_LOGO_CANSHOW when the vc was deallocated. syzkaller report: https://lkml.org/lkml/2020/3/27/403 general protection fault, probably for non-canonical address 0xdc6c: [#1] SMP KASAN KASAN: null-ptr-deref in range [0x0360-0x0367] RIP:

Re: [PATCH 0/2] powerpc: Remove support for ppc405/440 Xilinx platforms

2020-03-30 Thread Andy Shevchenko
On Fri, Mar 27, 2020 at 03:10:26PM +0200, Andy Shevchenko wrote: > On Fri, Mar 27, 2020 at 01:54:33PM +0100, Arnd Bergmann wrote: > > On Fri, Mar 27, 2020 at 1:12 PM Michal Simek > > wrote: > > > > > > recently we wanted to update xilinx intc driver and we found that function > > > which we

[PATCH] drm/i915: check to see if the FPU is available before using it

2020-03-30 Thread Jason A. Donenfeld
It's not safe to just grab the FPU willy nilly without first checking to see if it's available. This patch adds the usual call to may_use_simd() and falls back to boring memcpy if it's not available. Signed-off-by: Jason A. Donenfeld --- drivers/gpu/drm/i915/i915_memcpy.c | 12 1

[RFC v3 2/8] drm: ingenic-drm: add MODULE_DEVICE_TABLE

2020-03-30 Thread H. Nikolaus Schaller
so that the driver can load by matching the device tree if compiled as module. Signed-off-by: H. Nikolaus Schaller --- drivers/gpu/drm/ingenic/ingenic-drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu/drm/ingenic/ingenic-drm.c index

Re: [PATCH 0/2] powerpc: Remove support for ppc405/440 Xilinx platforms

2020-03-30 Thread Andy Shevchenko
On Fri, Mar 27, 2020 at 02:22:55PM +0100, Arnd Bergmann wrote: > On Fri, Mar 27, 2020 at 2:15 PM Andy Shevchenko > wrote: > > On Fri, Mar 27, 2020 at 03:10:26PM +0200, Andy Shevchenko wrote: > > > On Fri, Mar 27, 2020 at 01:54:33PM +0100, Arnd Bergmann wrote: > > > > On Fri, Mar 27, 2020 at 1:12

[PATCH v2 16/22] memory: tegra30-emc: Continue probing if timings are missing in device-tree

2020-03-30 Thread Dmitry Osipenko
EMC driver will become mandatory after turning it into interconnect provider because interconnect users, like display controller driver, will fail to probe using newer device-trees that have interconnect properties. Thus make EMC driver to probe even if timings are missing in device-tree.

Re: [PATCH] drm/managed: Fix off-by-one in warning

2020-03-30 Thread Daniel Vetter
On Mon, Mar 30, 2020 at 12:29:44PM +0200, Sam Ravnborg wrote: > On Sat, Mar 28, 2020 at 11:02:26PM +0100, Daniel Vetter wrote: > > On Sat, Mar 28, 2020 at 7:49 PM Sam Ravnborg wrote: > > > > > > Hi Daniel. > > > > > > On Sat, Mar 28, 2020 at 05:23:58PM +0100, Daniel Vetter wrote: > > > > I'm

Re: [v4,1/3] drm/prime: use dma length macro when mapping sg

2020-03-30 Thread Shane Francis
On Mon, Mar 30, 2020 at 9:18 AM Marek Szyprowski wrote: > Today I've noticed that this patch went to final v5.6 without even a day > of testing in linux-next, so v5.6 is broken on Exynos and probably a few > other ARM archs, which rely on the drm_prime_sg_to_page_addr_arrays > function. > > Best

Re: [PATCH 4/4] dt-bindings: Add missing 'additionalProperties: false'

2020-03-30 Thread Masahiro Yamada
Hi Rob, On Mon, Mar 30, 2020 at 4:09 PM Masahiro Yamada wrote: > > On Thu, Mar 26, 2020 at 7:06 AM Rob Herring wrote: > > > > Setting 'additionalProperties: false' is frequently omitted, but is > > important in order to check that there aren't extra undocumented > > properties in a binding. > >

Re: [PATCH] drm/managed: Fix off-by-one in warning

2020-03-30 Thread Sam Ravnborg
On Sat, Mar 28, 2020 at 11:02:26PM +0100, Daniel Vetter wrote: > On Sat, Mar 28, 2020 at 7:49 PM Sam Ravnborg wrote: > > > > Hi Daniel. > > > > On Sat, Mar 28, 2020 at 05:23:58PM +0100, Daniel Vetter wrote: > > > I'm thinking this is the warning that fired in the 0day report, but I > > > can't

Re: [PATCH 4/4] dt-bindings: Add missing 'additionalProperties: false'

2020-03-30 Thread Masahiro Yamada
On Thu, Mar 26, 2020 at 7:06 AM Rob Herring wrote: > > Setting 'additionalProperties: false' is frequently omitted, but is > important in order to check that there aren't extra undocumented > properties in a binding. > > Ideally, we'd just add this automatically and make this the default, but >

[PATCH v5 6/8] ARM: DTS: omap4: add sgx gpu child node

2020-03-30 Thread H. Nikolaus Schaller
and add interrupt. Since omap4420/30/60 and omap4470 come with different SGX variants we need to introduce a new omap4470.dtsi. If an omap4470 board does not want to use SGX it is no problem to still include omap4460.dtsi. Tested-by: H. Nikolaus Schaller # PandaBoard ES Signed-off-by: H.

Re: [Outreachy kernel] [PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-30 Thread Soumyajit Deb
I had the same doubt the other day about the replacement of udelay() with usleep_range(). The corresponding range for the single argument value of udelay() is quite confusing as I couldn't decide the range. But as much as I noticed checkpatch.pl gives warning for replacing udelay() with

Re: [PATCH] drm/bridge: anx6345: set correct BPC for display_info of connector

2020-03-30 Thread Jernej Škrabec
Hi! Dne ponedeljek, 30. marec 2020 ob 00:22:53 CEST je Vasily Khoruzhick napisal(a): > Some drivers (e.g. sun4i-drm) need this info to decide whether they > need to enable dithering. Currently driver reports what panel supports > and if panel supports 8 we don't get dithering enabled. > >

[PATCH v2 00/22] Introduce memory interconnect for NVIDIA Tegra SoCs

2020-03-30 Thread Dmitry Osipenko
Hello, This series brings initial support for memory interconnect to Tegra20 and Tegra30 SoCs. The interconnect provides are quite generic and should be suitable for all Tegra SoCs, but currently support is added only for these two generations of Tegra SoCs. For the starter only display

[PATCH v2 hmm 9/9] mm/hmm: return error for non-vma snapshots

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe The pagewalker does not call most ops with NULL vma, those are all routed to hmm_vma_walk_hole() via ops->pte_hole instead. Thus hmm_vma_fault() is only called with a NULL vma from hmm_vma_walk_hole(), so hoist the NULL vma check to there. Now it is clear that

Re: [Outreachy kernel] [PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-30 Thread John Wyatt
On Sun, 2020-03-29 at 11:28 +0200, Julia Lawall wrote: > > On Sun, 29 Mar 2020, John B. Wyatt IV wrote: > > > Fix style issue with usleep_range being reported as preferred over > > udelay. > > > > Issue reported by checkpatch. > > > > Please review. > > > > As written in

[RFC v3 4/8] dt-bindings: display: add ingenic-jz4780-hdmi DT Schema

2020-03-30 Thread H. Nikolaus Schaller
From: Sam Ravnborg Add DT bindings for the hdmi driver for the Ingenic JZ4780 SoC. Based on .txt binding from Zubair Lutfullah Kakakhel Signed-off-by: Sam Ravnborg Signed-off-by: H. Nikolaus Schaller Cc: Rob Herring Cc: devicet...@vger.kernel.org ---

[PATCH v2 hmm 6/9] mm/hmm: use device_private_entry_to_pfn()

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe swp_offset() should not be called directly, the wrappers are supposed to abstract away the encoding of the device_private specific information in the swap entry. Reviewed-by: Ralph Campbell Reviewed-by: Christoph Hellwig Tested-by: Ralph Campbell Signed-off-by: Jason

Re: [PATCH] drm/vc4: Fix HDMI mode validation

2020-03-30 Thread Maxime Ripard
On Fri, Mar 27, 2020 at 12:46:52PM +0100, Nicolas Saenz Julienne wrote: > Hi Daniel, > > On Thu, 2020-03-26 at 13:20 +0100, Nicolas Saenz Julienne wrote: > > Current mode validation impedes setting up some video modes which should > > be supported otherwise. Namely 1920x1200@60Hz. > > > > Fix this

Re: [PATCH v2 0/3] AMDGPU / RADEON / DRM Fix mapping of user pages

2020-03-30 Thread Quoc Kien Ly
Sent from Mail for Windows 10 ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH v5 0/8] ARM/MIPS: DTS: add child nodes describing the PVRSGX GPU present in some OMAP SoC and JZ4780 (and many more)

2020-03-30 Thread H. Nikolaus Schaller
* reworked YAML bindings to pass dt_binding_check and be better grouped * rename all nodes to "gpu: gpu@" * removed "img,sgx5" from example - suggested by Rob Herring PATCH V4 2019-12-17 19:02:11: * MIPS: DTS: jz4780: removed "img,sgx5" from bindings * YAML bindings: updated according to

[PATCH v2 12/22] memory: tegra20-emc: Use devm_platform_ioremap_resource

2020-03-30 Thread Dmitry Osipenko
Utilize that relatively new helper which makes code a bit cleaner. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra20-emc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/memory/tegra/tegra20-emc.c b/drivers/memory/tegra/tegra20-emc.c index

[PATCH] drm: fix ifnullfree.cocci warnings

2020-03-30 Thread Julia Lawall
NULL check before kfree is not needed. Generated by: scripts/coccinelle/free/ifnullfree.cocci Fixes: c6603c740e0e ("drm: add managed resources tied to drm_device") Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next

[RFC v3 1/8] dt-bindings: display: convert ingenic, lcd.txt to ingenic, lcd.yaml

2020-03-30 Thread H. Nikolaus Schaller
and add compatible: jz4780-lcd, including an example how to configure both lcd controllers. Also fix the clock names and examples. Based on work by Paul Cercueil and Sam Ravnborg Signed-off-by: H. Nikolaus Schaller Cc: Rob Herring Cc: devicet...@vger.kernel.org ---

[PATCH v4] video: fbdev: vesafb: add missed release_region

2020-03-30 Thread Chuhong Yuan
The driver forgets to free the I/O region in remove and probe failure. Add the missed calls to fix it. Since the success of request_region() is optional, add the "region" field in vesafb_par to represent whether request_region() succeeds. Then only call release_region() when "region" is not null.

[PATCH v2 01/22] dt-bindings: memory: tegra20: mc: Document new interconnect property

2020-03-30 Thread Dmitry Osipenko
Memory controller is interconnected with memory clients and with the external memory controller. Document new interconnect property which turns memory controller into interconnect provider. Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra20-mc.txt | 3 +++

[PATCH v2 03/22] dt-bindings: memory: tegra30: mc: Document new interconnect property

2020-03-30 Thread Dmitry Osipenko
Memory controller is interconnected with memory clients and with the external memory controller. Document new interconnect property which turns memory controller into interconnect provider. Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra30-mc.yaml | 5 +

[RFC v3 3/8] drm: ingenic-drm: add support for ingenic,jz4780-lcd

2020-03-30 Thread H. Nikolaus Schaller
This adds jz_soc_info and a compatible string for the jz4780 lcd controller. Note that the jz4780 lcdc is a superset of the jz4740 lcdc and the additional functions are not used if they stay uninitialized. Signed-off-by: H. Nikolaus Schaller --- drivers/gpu/drm/ingenic/ingenic-drm.c | 7

[PATCH v2 04/22] dt-bindings: memory: tegra30: emc: Document new interconnect property

2020-03-30 Thread Dmitry Osipenko
External memory controller is interconnected with memory controller and with external memory. Document new interconnect property which turns external memory controller into interconnect provider. Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra30-emc.yaml | 6

[PATCH v2 hmm 8/9] mm/hmm: do not set pfns when returning an error code

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe Most places that return an error code, like -EFAULT, do not set HMM_PFN_ERROR, only two places do this. Resolve this inconsistency by never setting the pfns on an error exit. This doesn't seem like a worthwhile thing to do anyhow. If for some reason it becomes important,

[PATCH v2 10/22] interconnect: Relax requirement in of_icc_get_from_provider()

2020-03-30 Thread Dmitry Osipenko
From: Artur Świgoń This patch relaxes the condition in of_icc_get_from_provider() so that it is no longer required to set #interconnect-cells = <1> in the DT. In case of the devfreq driver for exynos-bus, #interconnect-cells is always zero. Signed-off-by: Artur Świgoń [dig...@gmail.com: added

Re: [Outreachy kernel] [PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-30 Thread Sam Muhammed
On Sun, 2020-03-29 at 12:37 +0200, Julia Lawall wrote: > > On Sun, 29 Mar 2020, Soumyajit Deb wrote: > > > I had the same doubt the other day about the replacement of udelay() with > > usleep_range(). The corresponding range for the single argument value of > > udelay() is quite confusing as I

Re: [DPU PATCH v4 1/5] dt-bindings: msm/dp: add bindings of DP/DP-PLL driver for Snapdragon

2020-03-30 Thread varar
Hi Stephen Boyd, Thanks for reviewing the change. I have updated my comments inline for some comments, please check and let us know your views. Rest of the comments are addressed, will try to post a new patchset in couple of days. Thanks, --Vara On 2020-03-18 17:48, Stephen Boyd wrote:

Re: [PATCH 0/2] powerpc: Remove support for ppc405/440 Xilinx platforms

2020-03-30 Thread Christophe Leroy
Le 27/03/2020 à 15:14, Andy Shevchenko a écrit : On Fri, Mar 27, 2020 at 02:22:55PM +0100, Arnd Bergmann wrote: On Fri, Mar 27, 2020 at 2:15 PM Andy Shevchenko wrote: On Fri, Mar 27, 2020 at 03:10:26PM +0200, Andy Shevchenko wrote: On Fri, Mar 27, 2020 at 01:54:33PM +0100, Arnd Bergmann

[PATCH 0/2] powerpc: Remove support for ppc405/440 Xilinx platforms

2020-03-30 Thread Michal Simek
Hi, recently we wanted to update xilinx intc driver and we found that function which we wanted to remove is still wired by ancient Xilinx PowerPC platforms. Here is the thread about it. https://lore.kernel.org/linux-next/48d3232d-0f1d-42ea-3109-f44bbabfa...@xilinx.com/ I have been talking about

Re: [PATCH 3/4] dt-bindings: Clean-up schema errors due to missing 'addtionalProperties: false'

2020-03-30 Thread Masahiro Yamada
On Thu, Mar 26, 2020 at 7:06 AM Rob Herring wrote: > > Numerous schemas are missing 'additionalProperties: false' statements which > ensures a binding doesn't have any extra undocumented properties or child > nodes. Fixing this reveals various missing properties, so let's fix all > those

[PATCH v5 5/8] ARM: DTS: omap36xx: add sgx gpu child node

2020-03-30 Thread H. Nikolaus Schaller
and add interrupt. Tested-by: H. Nikolaus Schaller # GTA04, BeagleBoard XM Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap36xx.dtsi | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi

Re: [PATCH] drm/vc4: Fix HDMI mode validation

2020-03-30 Thread Nicolas Saenz Julienne
On Fri, 2020-03-27 at 13:40 +0100, Maxime Ripard wrote: > On Fri, Mar 27, 2020 at 12:46:52PM +0100, Nicolas Saenz Julienne wrote: > > Hi Daniel, > > > > On Thu, 2020-03-26 at 13:20 +0100, Nicolas Saenz Julienne wrote: > > > Current mode validation impedes setting up some video modes which should

[PATCH v2 hmm 4/9] mm/hmm: remove HMM_FAULT_SNAPSHOT

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe Now that flags are handled on a fine-grained per-page basis this global flag is redundant and has a confusing overlap with the pfn_flags_mask and default_flags. Normalize the HMM_FAULT_SNAPSHOT behavior into one place. Callers needing the SNAPSHOT behavior should set a

[PATCH v5 8/8] MIPS: DTS: jz4780: add sgx gpu node

2020-03-30 Thread H. Nikolaus Schaller
and add interrupt and clocks. Tested to build for CI20 board and load a driver. Setup can not yet be tested since there is no working HDMI driver for jz4780. Suggested-by: Paul Boddie Tested-by: H. Nikolaus Schaller # CI20. Signed-off-by: H. Nikolaus Schaller ---

[PATCH v2 19/22] drm/tegra: dc: Tune up high priority request controls for Tegra20

2020-03-30 Thread Dmitry Osipenko
Tegra20 has a high-priority-request control that allows to configure when display's memory client should perform read requests with a higher priority (Tegra30+ uses other means like Latency Allowance). This patch changes the controls configuration in order to get a more aggressive memory

[PATCH v2 hmm 5/9] mm/hmm: remove the CONFIG_TRANSPARENT_HUGEPAGE #ifdef

2020-03-30 Thread Jason Gunthorpe
From: Jason Gunthorpe This code can be compiled when CONFIG_TRANSPARENT_HUGEPAGE is off, so remove the ifdef. The function is only ever called under if (pmd_devmap(pmd) || pmd_trans_huge(pmd)) Which is statically false if !CONFIG_TRANSPARENT_HUGEPAGE, so the compiler reliably eliminates

[PATCH v2 09/22] ARM: tegra: Add interconnect properties to Tegra30 device-tree

2020-03-30 Thread Dmitry Osipenko
Add interconnect properties to the memory controller, external memory controller and the display controller nodes in order to describe hardware interconnection. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra30.dtsi | 23 ++- 1 file changed, 22 insertions(+), 1

Re: [Outreachy kernel] [PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-30 Thread Julia Lawall
On Sun, 29 Mar 2020, Soumyajit Deb wrote: > I had the same doubt the other day about the replacement of udelay() with > usleep_range(). The corresponding range for the single argument value of > udelay() is quite confusing as I couldn't decide the range. But as much as I > noticed checkpatch.pl

[PATCH v2 22/22] ARM: multi_v7_defconfig: Enable interconnect API

2020-03-30 Thread Dmitry Osipenko
NVIDIA Tegra now has interconnect providers that are used for memory bandwidth allocation. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index

[RFC v3 5/8] drm: ingenic: add jz4780 Synopsys HDMI driver

2020-03-30 Thread H. Nikolaus Schaller
From: Paul Boddie A specialisation of the generic Synopsys HDMI driver is employed for JZ4780 HDMI support. This requires a new driver, plus device tree and configuration modifications. Signed-off-by: Paul Boddie Signed-off-by: H. Nikolaus Schaller --- drivers/gpu/drm/ingenic/Kconfig

  1   2   >