Re: [PATCH v7 0/9] backlight: gpio: simplify the driver

2019-11-01 Thread Lee Jones
On Thu, 24 Oct 2019, Jacopo Mondi wrote: > Hello, > > On Thu, Oct 24, 2019 at 07:47:26AM +0100, Lee Jones wrote: > > On Wed, 23 Oct 2019, Daniel Thompson wrote: > > > > > On Tue, Oct 22, 2019 at 11:29:54AM +0200, Bartosz Golaszewski wrote: > > > > wt., 22 paź 2019 o 10:36 Bartosz Golaszewski

[radeon-alex:amd-mainline-dkms-5.2 1967/2647] include/kcl/kcl_drm.h:313:9: error: implicit declaration of function 'drm_gem_object_unreference_unlocked'; did you mean 'drm_gem_object_put_unlocked'?

2019-11-01 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2 head: b027ed8d9051470f4ed6bc071fcde172fe1fc595 commit: c3612b68d1358e8325c377ba5e1f690b39a6cea8 [1967/2647] drm/amdkcl: Test whether drm_gem_object_put_unlocked() is available config: x86_64-randconfig-g002-201943

Overlay support in the i.MX7 display

2019-11-01 Thread Laurent Pinchart
Hello, I'm looking at the available options to support overlays in the display pipeline of the i.MX7. The LCDIF itself unfortunaltey doesn't support overlays, the feature being implemented in the PXP. A driver for the PXP is available but only supports older SoCs whose PXP doesn't support

Re: Proposal to report GPU private memory allocations with sysfs nodes [plain text version]

2019-11-01 Thread Pekka Paalanen
On Thu, 31 Oct 2019 13:57:00 -0400 Kenny Ho wrote: > Hi Yiwei, > > This is the latest series: > https://patchwork.kernel.org/cover/11120371/ > > (I still need to reply some of the feedback.) > > Regards, > Kenny > > On Thu, Oct 31, 2019 at 12:59 PM Yiwei Zhang wrote: > > > > Hi Kenny, > > >

[radeon-alex:amd-mainline-dkms-5.2 1966/2647] include/kcl/kcl_drm.h:281:8: error: redefinition of 'struct drm_format_name_buf'

2019-11-01 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2 head: b027ed8d9051470f4ed6bc071fcde172fe1fc595 commit: 757a363a37449c5b612b3c7c3f62be125b1282e3 [1966/2647] drm/amdkcl: Test whether drm_get_format_name() is available config: x86_64-randconfig-g002-201943 (attached as

[radeon-alex:amd-mainline-dkms-5.2 1965/2647] include/kcl/kcl_drm.h:238:32: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type

2019-11-01 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2 head: b027ed8d9051470f4ed6bc071fcde172fe1fc595 commit: c450088041e3378cd3b78d99169e9bca8fd20a5b [1965/2647] drm/amdkcl: Test whether drm_gem_object_lookup() wants 2 args config: x86_64-randconfig-g002-201943 (attached

Re: [PATCH 02/19] mm/gup: factor out duplicate code from four routines

2019-11-01 Thread John Hubbard
On 10/31/19 2:09 PM, Ira Weiny wrote: > On Thu, Oct 31, 2019 at 11:43:37AM -0700, John Hubbard wrote: >> On 10/31/19 11:35 AM, Ira Weiny wrote: >>> On Wed, Oct 30, 2019 at 03:49:13PM -0700, John Hubbard wrote: >> ... + +static int __huge_pt_done(struct page *head, int nr_recorded_pages,

etnaviv: [Q] regarding changes between linux kernel 4.17.17 and 5.3

2019-11-01 Thread Gert Wollny
Hello, I'm trying to update from the kernel 4.17.17 to 5.3 on a Utilite pro (GC2000) but I'm running a bit into trouble: When on 4.17.17 I can run X11 with the armada driver and I get proper OpenGL, with 5.3, the same user space, and the same kernel config querying the chip specs via

Re: [PATCH 02/19] mm/gup: factor out duplicate code from four routines

2019-11-01 Thread John Hubbard
On 10/31/19 11:35 AM, Ira Weiny wrote: > On Wed, Oct 30, 2019 at 03:49:13PM -0700, John Hubbard wrote: ... >> + >> +static void __remove_refs_from_head(struct page *page, int refs) >> +{ >> +/* Do a get_page() first, in case refs == page->_refcount */ >> +get_page(page); >> +

Re: [PATCH v7] unstable/drm-lease: DRM lease protocol support

2019-11-01 Thread Drew DeVault
On Thu Oct 24, 2019 at 10:50 AM Drew DeVault wrote: > So, I'm not sure what the action items are here. It seems like we might > have uncovered a potentially icky race condition in Linux, but that this > protocol is not really affected. Bump. Happy halloween!

[PATCH V10 3/8] backlight: qcom-wled: Add new properties for PMI8998.

2019-11-01 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 74 ++ 1 file changed, 63 insertions(+), 11

Re: [PATCH 19/19] Documentation/vm: add pin_user_pages.rst

2019-11-01 Thread John Hubbard
On 10/31/19 4:49 PM, Ira Weiny wrote: > On Wed, Oct 30, 2019 at 03:49:30PM -0700, John Hubbard wrote: ... >> +TODO: There is also a special case when the pages are DAX pages: in >> addition to >> +the above flags, the caller needs something like a layout lease on the >> +associated file. This is

Re: Proposal to report GPU private memory allocations with sysfs nodes [plain text version]

2019-11-01 Thread Yiwei Zhang
Hi Kenny, Thanks for the info. Do you mind forwarding the existing discussion to me or have me cc'ed in that thread? Best, Yiwei On Wed, Oct 30, 2019 at 10:23 PM Kenny Ho wrote: > Hi Yiwei, > > I am not sure if you are aware, there is an ongoing RFC on adding drm > support in cgroup for the

Re: [PATCH -next] gpu: host1x: Fix compile test failure

2019-11-01 Thread Yuehaibing
On 2019/10/31 6:26, Dmitry Osipenko wrote: > 30.10.2019 16:54, YueHaibing пишет: >> If IOMMU_SUPPORT is not set, but IOMMU_IOVA is m and >> COMPILE_TEST is y, building fails: >> >> drivers/gpu/host1x/dev.o: In function `host1x_remove': >> dev.c:(.text+0x624): undefined reference to

Re: linux-next: Tree for Oct 31 (gpu/drm/drm_dp_mst_topology.c)

2019-11-01 Thread Randy Dunlap
On 10/30/19 11:52 PM, Stephen Rothwell wrote: > Hi all, > > News: there will be no linux-next releases on Friday (Nov 1) or Monday > (Nov 4). > > Changes since 20191030: > on i386: ld: drivers/gpu/drm/drm_dp_mst_topology.o: in function `__dump_topology_ref_history':

[PATCH V10 4/8] backlight: qcom-wled: Rename PM8941* to WLED3

2019-11-01 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names. Signed-off-by: Kiran Gunda Reviewed-by:

[PATCH V10 1/8] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2019-11-01 Thread Kiran Gunda
pm8941-wled.c driver is supporting the WLED peripheral on pm8941. Rename it to qcom-wled.c so that it can support WLED on multiple PMICs. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Acked-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek ---

Re: [PATCH] fbdev: potential information leak in do_fb_ioctl()

2019-11-01 Thread Eric W. Biederman
Joe Perches writes: > On Wed, 2019-10-30 at 21:12 +0100, Andrea Righi wrote: >> Then memset() + memcpy() is probably the best option, >> since copying all those fields one by one looks quite ugly to me... > > A memset of an automatic before a memcpy to the same > automatic is unnecessary. You

[PATCH] backlight: lp855x: disable enable regulator when remove

2019-11-01 Thread Chuhong Yuan
lp855x forgets to disable enable regulator when remove. Add a call to regulator_disable in remove just like what is done to supply regulator. Signed-off-by: Chuhong Yuan --- drivers/video/backlight/lp855x_bl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH V10 0/8] backlight: qcom-wled: Support for QCOM wled driver

2019-11-01 Thread Kiran Gunda
This patch series renames the pm8941-wled.c driver to qcom-wled.c to add the support for multiple PMICs supported by qualcomm. This patch series supports both PM8941 and PMI8998 WLED. The PMI8998 WLED has the support to handle the OVP (over voltage protection) and the SC (short circuit protection)

Re: [PATCH -next] gpu: host1x: Fix compile test failure

2019-11-01 Thread Dmitry Osipenko
31.10.2019 16:33, Yuehaibing пишет: > On 2019/10/31 6:26, Dmitry Osipenko wrote: >> 30.10.2019 16:54, YueHaibing пишет: >>> If IOMMU_SUPPORT is not set, but IOMMU_IOVA is m and >>> COMPILE_TEST is y, building fails: >>> >>> drivers/gpu/host1x/dev.o: In function `host1x_remove': >>>

[PATCH V10 2/8] backlight: qcom-wled: restructure the qcom-wled bindings.

2019-11-01 Thread Kiran Gunda
Restructure the qcom-wled bindings for the better readability. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek --- .../bindings/leds/backlight/qcom-wled.txt | 110 - 1 file

[PATCH] drm/vmwgfx: remove set but not used variable 'srf'

2019-11-01 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/vmwgfx/vmwgfx_surface.c: In function vmw_hw_surface_destroy: drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:335:22: warning: variable srf set but not used [-Wunused-but-set-variable] It is introduced by commit 543831cfc976 ("drm/vmwgfx:

Re: [PATCH v2] kernel-doc: rename the kernel-doc directive 'functions' to 'identifiers'

2019-11-01 Thread Changbin Du
On Tue, Oct 29, 2019 at 02:00:27AM -0600, Jonathan Corbet wrote: > On Tue, 29 Oct 2019 08:31:22 +0800 > Changbin Du wrote: > > > Here python is different from C. Both empty string and None are False in > > python. > > Note such condition is common in python. > > Treating both as a False value

Re: [PATCH 07/19] infiniband: set FOLL_PIN, FOLL_LONGTERM via pin_longterm_pages*()

2019-11-01 Thread John Hubbard
On 10/31/19 4:25 PM, Ira Weiny wrote: > On Wed, Oct 30, 2019 at 03:49:18PM -0700, John Hubbard wrote: >> Convert infiniband to use the new wrapper calls, and stop >> explicitly setting FOLL_LONGTERM at the call sites. >> >> The new pin_longterm_*() calls replace get_user_pages*() >> calls, and set

[PATCH V10 6/8] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-11-01 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 255

[PATCH V10 8/8] backlight: qcom-wled: Add auto string detection logic

2019-11-01 Thread Kiran Gunda
The auto string detection algorithm checks if the current WLED sink configuration is valid. It tries enabling every sink and checks if the OVP fault is observed. Based on this information it detects and enables the valid sink configuration. Auto calibration will be triggered when the OVP fault

Re: [PATCH v4 6/7] dt-bindings: Add ANX6345 DP/eDP transmitter binding

2019-11-01 Thread Torsten Duwe
On Thu, Oct 31, 2019 at 01:51:00PM +0100, Maxime Ripard wrote: > On Tue, Oct 29, 2019 at 01:16:57PM +0100, Torsten Duwe wrote: > > + > > + ports: > > +anyOf: > > + - port@0: > > +description: Video port for LVTTL input > > + - port@1: > > +description: Video port for

[PATCH V10 5/8] backlight: qcom-wled: Restructure the driver for WLED3.

2019-11-01 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 373 ++-- 1 file changed, 234 insertions(+), 139 deletions(-) diff --git

Re: [PATCH 05/19] mm/gup: introduce pin_user_pages*() and FOLL_PIN

2019-11-01 Thread John Hubbard
On 10/31/19 4:15 PM, Ira Weiny wrote: > On Wed, Oct 30, 2019 at 03:49:16PM -0700, John Hubbard wrote: ... >> + * FOLL_PIN indicates that a special kind of tracking (not just >> page->_refcount, >> + * but an additional pin counting system) will be invoked. This is intended >> for >> + * anything

Re: [PATCH 19/19] Documentation/vm: add pin_user_pages.rst

2019-11-01 Thread John Hubbard
On 10/31/19 4:49 PM, Ira Weiny wrote: > On Wed, Oct 30, 2019 at 03:49:30PM -0700, John Hubbard wrote: >> Document the new pin_user_pages() and related calls >> and behavior. >> >> Thanks to Jan Kara and Vlastimil Babka for explaining the 4 cases >> in this documentation. (I've reworded it and

Re: [PATCH V9 1/6] backlight: qcom-wled: Add new properties for PMI8998.

2019-11-01 Thread kgunda
On 2019-10-31 14:28, Lee Jones wrote: On Wed, 23 Oct 2019, Kiran Gunda wrote: Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson ---

[PATCH V10 7/8] backlight: qcom-wled: add support for short circuit handling.

2019-11-01 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Daniel Thompson ---

Re: [PATCH 08/19] mm/process_vm_access: set FOLL_PIN via pin_user_pages_remote()

2019-11-01 Thread John Hubbard
On 10/31/19 4:35 PM, Ira Weiny wrote: > On Wed, Oct 30, 2019 at 03:49:19PM -0700, John Hubbard wrote: >> Convert process_vm_access to use the new pin_user_pages_remote() >> call, which sets FOLL_PIN. Setting FOLL_PIN is now required for >> code that requires tracking of pinned pages. >> >> Also,

Re: [PATCH V5 1/3] drm/panel: simple: Add Logic PD Type 28 display support

2019-11-01 Thread Laurent Pinchart
On Wed, Oct 30, 2019 at 09:44:20AM -0500, Adam Ford wrote: > On Wed, Oct 16, 2019 at 8:52 AM Adam Ford wrote: > > > > Previously, there was an omap panel-dpi driver that would > > read generic timings from the device tree and set the display > > timing accordingly. This driver was removed so the

[radeon-alex:amd-mainline-dkms-5.2 1964/2647] include/kcl/kcl_drm.h:227:29: error: incompatible type for argument 7 of 'drm_universal_plane_init'

2019-11-01 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2 head: b027ed8d9051470f4ed6bc071fcde172fe1fc595 commit: aa5f7e64d5afdf1b60cb7594bc78632997b6eb38 [1964/2647] drm/amdkcl: Test whether drm_universal_plane_init() wants 9 args or 8 args config:

[radeon-alex:amd-mainline-dkms-5.2 1963/2647] include/kcl/kcl_drm.h:206:10: error: too few arguments to function 'drm_crtc_init_with_planes'

2019-11-01 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2 head: b027ed8d9051470f4ed6bc071fcde172fe1fc595 commit: f2e0d469732d27bc612df52b42094309ba5877d9 [1963/2647] drm/amdkcl: Test whether drm_crtc_init_with_planes() wants name config: x86_64-randconfig-g002-201943 (attached

Re: [5/5] drm/komeda: add rate limiting disable to err_verbosity

2019-11-01 Thread james qian wang (Arm Technology China)
On Mon, Oct 21, 2019 at 04:47:35PM +, Mihail Atanassov wrote: > It's possible to get multiple events in a single frame/flip, so add an > option to print them all. > > Signed-off-by: Mihail Atanassov Reviewed-by: James Qian Wang (Arm Technology China) > --- >

Re: [4/5] drm/komeda: Add option to print WARN- and INFO-level IRQ events

2019-11-01 Thread james qian wang (Arm Technology China)
On Mon, Oct 21, 2019 at 04:47:29PM +, Mihail Atanassov wrote: > Extra detail (normally off) almost never hurts. > > Signed-off-by: Mihail Atanassov Reviewed-by: James Qian Wang (Arm Technology China) > --- > drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 11 +++ >

Re: [2/5] drm/komeda: Remove CONFIG_KOMEDA_ERROR_PRINT

2019-11-01 Thread james qian wang (Arm Technology China)
On Mon, Oct 21, 2019 at 04:47:19PM +, Mihail Atanassov wrote: > Now that there's a debugfs node to control the same, remove the > config option. > > Signed-off-by: Mihail Atanassov > --- > drivers/gpu/drm/arm/display/Kconfig | 6 -- >

Re: [3/5] drm/komeda: Optionally dump DRM state on interrupts

2019-11-01 Thread james qian wang (Arm Technology China)
On Mon, Oct 21, 2019 at 04:47:24PM +, Mihail Atanassov wrote: > It's potentially useful information when diagnosing error/warn IRQs, so > dump it to dmesg with a drm_info_printer. Hide this extra debug dumping > behind another komeda_dev->err_verbosity bit. > > Note that there's not much

Re: [1/5] drm/komeda: Add debugfs node to control error verbosity

2019-11-01 Thread james qian wang (Arm Technology China)
On Mon, Oct 21, 2019 at 04:47:14PM +, Mihail Atanassov wrote: > Named 'err_verbosity', currently with only 1 active bit in that > replicates the existing level - print error events once per flip. > > Signed-off-by: Mihail Atanassov > --- > drivers/gpu/drm/arm/display/komeda/komeda_dev.c |

[radeon-alex:amd-mainline-dkms-5.2 1962/2647] include/kcl/kcl_drm.h:191:9: error: too few arguments to function 'drm_encoder_init'

2019-11-01 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2 head: b027ed8d9051470f4ed6bc071fcde172fe1fc595 commit: 35781c0b8d19ed0d1bdb8cfa85780841ea7985ff [1962/2647] drm/amdkcl: Test whether drm_encoder_init() wants name config: x86_64-randconfig-g002-201943 (attached as

[PATCH v8 3/4] drm/komeda: Add drm_ctm_to_coeffs()

2019-11-01 Thread james qian wang (Arm Technology China)
This function is for converting drm_color_ctm matrix to komeda hardware required required Q2.12 2's complement CSC matrix. v2: Move the fixpoint conversion function s31_32_to_q2_12() to drm core as a shared helper. Signed-off-by: james qian wang (Arm Technology China) Reviewed-by: Mihail

[PATCH v8 0/4] drm/komeda: Enable CRTC color-mgmt

2019-11-01 Thread james qian wang (Arm Technology China)
This series actually are regrouped from: - drm/komeda: Enable layer/plane color-mgmt: https://patchwork.freedesktop.org/series/60893/ - drm/komeda: Enable CRTC color-mgmt https://patchwork.freedesktop.org/series/61370/ For removing the dependence on: -

[PATCH v8 1/4] drm: Add a new helper drm_color_ctm_s31_32_to_qm_n()

2019-11-01 Thread james qian wang (Arm Technology China)
Add a new helper function drm_color_ctm_s31_32_to_qm_n() for driver to convert S31.32 sign-magnitude to Qm.n 2's complement that supported by hardware. V4: Address Mihai, Daniel and Ilia's review comments. V5: Includes the sign bit in the value of m (Qm.n). V6: Allows m = 0 according to Mihail's

[PATCH v8 4/4] drm/komeda: Adds gamma and color-transform support for DOU-IPS

2019-11-01 Thread james qian wang (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds gamma and color-transform support for DOU-IPS. Adds two caps members fgamma_coeffs and ctm_coeffs to komeda_improc_state. If color management changed, set gamma and color-transform accordingly. v5: Rebase with drm-misc-next Signed-off-by: Lowry Li

[PATCH v8 2/4] drm/komeda: Add drm_lut_to_fgamma_coeffs()

2019-11-01 Thread james qian wang (Arm Technology China)
This function is used to convert drm color lut to komeda HW required curve coeffs values. Signed-off-by: james qian wang (Arm Technology China) Reviewed-by: Mihail Atanassov --- .../arm/display/komeda/komeda_color_mgmt.c| 52 +++ .../arm/display/komeda/komeda_color_mgmt.h

<    1   2