[PATCH] drm: of: fix link error

2020-01-07 Thread Arnd Bergmann
' keyword. Fixes: 6529007522de ("drm: of: Add drm_of_lvds_get_dual_link_pixel_order") Signed-off-by: Arnd Bergmann --- include/drm/drm_of.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h index 8ec7ca6d2369..3398be966

[PATCH] drm: panel: fix excessive stack usage in td028ttec1_prepare

2020-01-07 Thread Arnd Bergmann
=frame-larger-than=] } Marking jbt_reg_write_1() as noinline avoids the case where multiple instances of this function get inlined into the same stack frame and each one adds a copy of 'tx_buf'. Fixes: mmtom ("init/Kconfig: enable -O3 for all arches") Signed-off-by: Arnd Bergmann --

[PATCH] drm/drm_panel: fix export of drm_panel_of_backlight, try #3

2020-01-07 Thread Arnd Bergmann
el_of_backlight") Fixes: 152dbdeab1b2 ("drm/panel: add backlight support") Signed-off-by: Arnd Bergmann --- include/drm/drm_panel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index 121f7aabccd1..6193cb555acc

Re: [RFT 06/13] arc: Constify ioreadX() iomem argument (as in generic implementation)

2020-01-07 Thread Arnd Bergmann
On Tue, Jan 7, 2020 at 5:54 PM Krzysztof Kozlowski wrote: > > The ioreadX() helpers have inconsistent interface. On some architectures > void *__iomem address argument is a pointer to const, on some not. > > Implementations of ioreadX() do not modify the memory under the > address so they can be

Re: [RFT 03/13] sh: Constify ioreadX() iomem argument (as in generic implementation)

2020-01-07 Thread Arnd Bergmann
On Tue, Jan 7, 2020 at 5:54 PM Krzysztof Kozlowski wrote: > > The ioreadX() helpers have inconsistent interface. On some architectures > void *__iomem address argument is a pointer to const, on some not. > > Implementations of ioreadX() do not modify the memory under the address > so they can be

[PATCH v2 00/24] drivers, fs: y2038 updates

2019-12-13 Thread Arnd Bergmann
/20191108213257.3097633-1-a...@arndb.de/ Arnd Bergmann (24): Input: input_event: fix struct padding on sparc64 fat: use prandom_u32() for i_generation dlm: use SO_SNDTIMEO_NEW instead of SO_SNDTIMEO_OLD xtensa: ISS: avoid struct timeval um: ubd: use 64-bit time_t where possible acct: stop using

[PATCH v2 12/24] drm/msm: avoid using 'timespec'

2019-12-13 Thread Arnd Bergmann
. Reviewed-by: Jordan Crouse Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/msm_drv.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index 71547e756e29..740bf7c70d8f 100644 --- a/drivers/gpu/drm/msm/msm_drv.h

[PATCH v2 13/24] drm/etnaviv: reject timeouts with tv_nsec >= NSEC_PER_SEC

2019-12-13 Thread Arnd Bergmann
in timespec64_sub()/set_normalized_timespec64(). Reject those large values at the user interface to enforce sane and portable behavior. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b

[PATCH v2 14/24] drm/etnaviv: avoid deprecated timespec

2019-12-13 Thread Arnd Bergmann
the same as tv_sec=0 and not block, while the new code it would block for up to 2^31 seconds. The new behavior is more logical here, but if it causes problems, the truncation can be put back. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 11 +++ drivers/gpu/drm

Re: [PATCH] drm/amd/display: fix undefined struct member reference

2019-12-10 Thread Arnd Bergmann
On Tue, Dec 10, 2019 at 9:56 PM Kazlauskas, Nicholas wrote: > On 2019-12-10 3:54 p.m., Liu, Zhan wrote: > >> > >> Fixes: c3d03c5a196f ("drm/amd/display: Include num_vmid and num_dsc > >> within NV14's resource caps") > >> Signed-off-by: Arnd Be

Re: [PATCH] drm/amd/display: include linux/slab.h where needed

2019-12-10 Thread Arnd Bergmann
On Tue, Dec 10, 2019 at 9:30 PM Kazlauskas, Nicholas wrote: > > On 2019-12-10 2:59 p.m., Arnd Bergmann wrote: > > Calling kzalloc() and related functions requires the > > linux/slab.h header to be included: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn2

[PATCH] drm: tegra: mark PM functions as __maybe_unused

2019-12-10 Thread Arnd Bergmann
: 'tegra_sor_suspend' defined but not used [-Werror=unused-function] static int tegra_sor_suspend(struct device *dev) ^ Mark these as __maybe_unused so the compiler can drop them silently. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tegra/sor.c | 8 1 file

[PATCH] drm/amd/display: fix undefined struct member reference

2019-12-10 Thread Arnd Bergmann
: error: excess elements in struct initializer [-Werror] .num_dsc = 5, Add another #ifdef around the assignment. Fixes: c3d03c5a196f ("drm/amd/display: Include num_vmid and num_dsc within NV14's resource caps") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/displa

[PATCH] drm/amd/display: include linux/slab.h where needed

2019-12-10 Thread Arnd Bergmann
of function 'kzalloc'; did you mean 'd_alloc'? [-Werror=implicit-function-declaration] kzalloc(sizeof(struct dcn10_ipp), GFP_KERNEL); A lot of other headers also miss a direct include in this file, but this is the only one that causes a problem for now. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm

Re: [PATCH] video: fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2019-11-12 Thread Arnd Bergmann
On Wed, Nov 13, 2019 at 8:27 AM Christoph Hellwig wrote: > > On Tue, Nov 12, 2019 at 10:24:23PM +, Luis Chamberlain wrote: > > I think this would be possible if we could flop ioremap_nocache() to UC > > instead of UC- on x86. Otherwise, I can't see how we can remove this by > > still not

[PATCH] video: fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2019-11-11 Thread Arnd Bergmann
to allow removing that interface at some point in the future for the other architectures. On some architectures, ioremap_uc() just returns NULL, changing the driver to call ioremap() means that they now have a chance of working correctly. Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/aty

[PATCH 1/2] drm/etnaviv: reject timeouts with tv_nsec >= NSEC_PER_SEC

2019-11-11 Thread Arnd Bergmann
in timespec64_sub()/set_normalized_timespec64(). Reject those large values at the user interface to enforce sane and portable behavior. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b

[PATCH 2/2] [v2] drm/etnaviv: avoid deprecated timespec

2019-11-11 Thread Arnd Bergmann
the same as tv_sec=0 and not block, while the new code it would block for up to 2^31 seconds. The new behavior is more logical here, but if it causes problems, the truncation can be put back. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 11 +++ drivers/gpu/drm

Re: [PATCH 15/16] drm/etnaviv: use ktime_t for timeouts

2019-11-11 Thread Arnd Bergmann
On Mon, Nov 11, 2019 at 10:55 AM Lucas Stach wrote: > > > > > If that's the case then we should never encounter a genuine 0 timeout > > > and this change would be okay. > > > > That's quite likely, I'd say any program passing {0,0} as a timeout without > > ETNA_WAIT_NONBLOCK is already broken,

Re: [PATCH 15/16] drm/etnaviv: use ktime_t for timeouts

2019-11-09 Thread Arnd Bergmann
On Sat, Nov 9, 2019 at 12:03 AM Lucas Stach wrote: > > Am Freitag, den 08.11.2019, 22:32 +0100 schrieb Arnd Bergmann: > > struct timespec is being removed from the kernel because it often leads > > to code that is not y2038-safe. > > > > In the etnaviv driver, monoto

[PATCH 15/16] drm/etnaviv: use ktime_t for timeouts

2019-11-08 Thread Arnd Bergmann
part, except for etnaviv_timeout_to_jiffies(), which needs to handle arguments larger than MAX_JIFFY_OFFSET on 32-bit architectures. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 19 +-- drivers/gpu/drm/etnaviv/etnaviv_drv.h | 21

[PATCH 14/16] drm/msm: avoid using 'timespec'

2019-11-08 Thread Arnd Bergmann
. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/msm_drv.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index 71547e756e29..740bf7c70d8f 100644 --- a/drivers/gpu/drm/msm/msm_drv.h +++ b/drivers/gpu/drm/msm

[PATCH 00/16] drivers: y2038 updates

2019-11-08 Thread Arnd Bergmann
at https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=y2038-endgame Arnd Arnd Bergmann (16): staging: exfat: use prandom_u32() for i_generation fat: use prandom_u32() for i_generation net: sock: use __kernel_old_timespec instead of timespec dlm: use SO_SNDTIMEO_NEW

Re: [PATCH 00/36] ARM: samsung platform cleanup

2019-10-23 Thread Arnd Bergmann
On Wed, Oct 23, 2019 at 3:11 PM Krzysztof Kozlowski wrote: > On Thu, Oct 10, 2019 at 10:28:02PM +0200, Arnd Bergmann wrote: > > The contents are available for testing in > > > > git://kernel.org:/pub/scm/linux/kernel/git/arnd/playground.git > > s3c-multiplatform >

Re: [PATCH 28/36] fbdev: s3c2410fb: remove mach header dependency

2019-10-23 Thread Arnd Bergmann
On Wed, Oct 23, 2019 at 3:13 PM Krzysztof Kozlowski wrote: > On Thu, Oct 10, 2019 at 10:30:12PM +0200, Arnd Bergmann wrote: > > @@ -321,6 +320,7 @@ static struct s3c2410fb_mach_info jive_lcd_config = { > >* data. */ > > > > .gpcup

[PATCH 00/46] ARM: pxa: towards multiplatform support

2019-10-18 Thread Arnd Bergmann
kernel.org Cc: linux-...@lists.infradead.org Cc: linux...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: linux-watch...@vger.kernel.org Arnd Bergmann (46): ARM: pxa: split mach/generic.h ARM: pxa: make mainstone.h private ARM: pxa: make mach/regs-uart.h private

[PATCH 06/46] ARM: pxa: stop using mach/bitfield.h

2019-10-18 Thread Arnd Bergmann
There are two identical copies of mach/bitfield.h, one for mach-sa1100 and one for mach-pxa. The pxafb driver only makes use of two macros, which can be trivially open-coded in the header. Cc: Bartlomiej Zolnierkiewicz Cc: dri-devel@lists.freedesktop.org Signed-off-by: Arnd Bergmann --- arch

[PATCH 38/46] video: backlight: tosa: use gpio lookup table

2019-10-18 Thread Arnd Bergmann
@lists.freedesktop.org Cc: linux-fb...@vger.kernel.org Signed-off-by: Arnd Bergmann --- I'm not overly confident that I got the correct device names for the lookup table, it would be good if someone could double-check. --- arch/arm/mach-pxa/include/mach/tosa.h | 15 -- arch/arm/mach-pxa/tosa.c

[PATCH 05/46] ARM: pxa: split up mach/hardware.h

2019-10-18 Thread Arnd Bergmann
: linux-...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-fb...@vger.kernel.org Cc: linux-watch...@vger.kernel.org Cc: alsa-de...@alsa-project.org Signed-off-by: Arnd Bergmann --- arch/arm/common/locomo.c | 1 - arch/arm/common/sa.c

[PATCH 08/46] ARM: pxa: move regs-lcd.h into driver

2019-10-18 Thread Arnd Bergmann
...@vger.kernel.org Signed-off-by: Arnd Bergmann --- .../video/fbdev/pxa3xx-regs.h | 19 drivers/video/fbdev/pxafb.c | 1 + include/linux/platform_data/video-pxafb.h | 22 ++- 3 files changed, 22 insertions(+), 20 deletions(-) rename arch

[PATCH 28/36] fbdev: s3c2410fb: remove mach header dependency

2019-10-10 Thread Arnd Bergmann
is that the driver pokes directly into gpio registers, which are owned by another driver. Passing the mapped addresses in platform_data is somewhat suboptimal, but it is a small improvement over the previous version. Signed-off-by: Arnd Bergmann --- arch/arm/mach-s3c24xx/include/mach/fb.h | 2 -- arch

[PATCH 00/36] ARM: samsung platform cleanup

2019-10-10 Thread Arnd Bergmann
the overall size of the series I expect that there will be bugs, so at this points I'm looking for reviews, acks and testing from anyone who still has the hardware, in particular s3c24xx, but also the other samsung platforms I'm touching. Arnd Arnd Bergmann (36): ARM: samsung: make

Re: [PATCH 0/6] amdgpu build fixes

2019-10-02 Thread Arnd Bergmann
On Wed, Oct 2, 2019 at 8:47 PM Alex Deucher wrote: > > On Wed, Oct 2, 2019 at 8:02 AM Arnd Bergmann wrote: > > > > Here are a couple of build fixes from my backlog in the randconfig > > tree. It would be good to get them all into linux-5.4. > > > > Arnd

Re: [PATCH 4/6] drm/amd/display: fix dcn21 Makefile for clang

2019-10-02 Thread Arnd Bergmann
On Wed, Oct 2, 2019 at 5:12 PM Alex Deucher wrote: > On Wed, Oct 2, 2019 at 10:51 AM Arnd Bergmann wrote: > > > > Nothing should really change with regards to the -msse flag here, only > > the stack alignment flag changed. Maybe there was some other change > > in y

Re: [PATCH 4/6] drm/amd/display: fix dcn21 Makefile for clang

2019-10-02 Thread Arnd Bergmann
On Wed, Oct 2, 2019 at 4:17 PM Alex Deucher wrote: > > I'm getting an error with gcc with this patch: > CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_resource.o > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_resource.c: In > function ‘calculate_wm_set_for_vlevel’: >

[PATCH 6/6] [RESEND] drm/amdgpu: work around llvm bug #42576

2019-10-02 Thread Arnd Bergmann
it by inserting a barrier() that prevents the optimization. Link: https://bugs.llvm.org/show_bug.cgi?id=42576 Signed-off-by: Arnd Bergmann --- Apparently this bug is still present in both the released clang-9 and the current development version of clang-10. I was hoping we would not need a workaround in clang

[PATCH 5/6] [RESEND] drm/amd/display: hide an unused variable

2019-10-02 Thread Arnd Bergmann
: add functionality to grab DPRX CRC entries.") Reviewed-by: Harry Wentland Signed-off-by: Arnd Bergmann --- This was a bugfix for a commit that landed in v5.4-rc1. The fix was applied by Alex Deucher on Sep 19, but is still not seen in linux-next. Resending to make sure this makes it into

[PATCH 2/6] drm/amdgpu: hide another #warning

2019-10-02 Thread Arnd Bergmann
dgpu: Enable DC on Renoir") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index f70658a536a9..a337d980b434 100644 --- a/drivers/gpu/drm/amd/

[PATCH 3/6] drm/amdgpu: display_mode_vba_21: remove uint typedef

2019-10-02 Thread Arnd Bergmann
is here Just remove this type and use plain 'unsigned int' consistently, as it is already use almost everywhere in this file. Fixes: b04641a3f4c5 ("drm/amd/display: Add Renoir DML") Signed-off-by: Arnd Bergmann --- .../amd/display/dc/dml/dcn21/display_mode_vba_21.c | 13 +--

[PATCH 4/6] drm/amd/display: fix dcn21 Makefile for clang

2019-10-02 Thread Arnd Bergmann
' failed Use the same variant that we have for dcn20 to fix compilation. Fixes: eced51f9babb ("drm/amd/display: Add hubp block for Renoir (v2)") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/dcn21/Makefile | 12 +++- 1 file changed, 11 insertions(+), 1 deletio

[PATCH 1/6] drm/amdgpu: make pmu support optional, again

2019-10-02 Thread Arnd Bergmann
ain by what looks like an incorrectly rebased patch. Fixes: 64f55e629237 ("drm/amdgpu: Add RAS EEPROM table.") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/Makefile b/drivers/g

[PATCH 0/6] amdgpu build fixes

2019-10-02 Thread Arnd Bergmann
Here are a couple of build fixes from my backlog in the randconfig tree. It would be good to get them all into linux-5.4. Arnd Arnd Bergmann (6): drm/amdgpu: make pmu support optional, again drm/amdgpu: hide another #warning drm/amdgpu: display_mode_vba_21: remove uint typedef drm

[PATCH] drm/msm: include linux/sched/task.h

2019-09-18 Thread Arnd Bergmann
Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/msm_gpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index a052364a5d74..edd45f434ccd 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -

[PATCH] drm/amd/display: hide an unused variable

2019-09-18 Thread Arnd Bergmann
: add functionality to grab DPRX CRC entries.") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index e1

[PATCH] drm/tilcdc: include linux/pinctrl/consumer.h again

2019-09-09 Thread Arnd Bergmann
: fcb57664172e ("drm/tilcdc: drop use of drmP.h") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c index 525dc1c0f1c1..9edcdd7f2b96 100644 ---

[PATCH] fbdev/sa1100fb: Remove even more dead code

2019-09-06 Thread Arnd Bergmann
This function lost its only call site as part of earlier dead code removal, so remove it as well: drivers/video/fbdev/sa1100fb.c:975:21: error: unused function 'sa1100fb_min_dma_period' [-Werror,-Wunused-function] Fixes: 390e5de11284 ("fbdev/sa1100fb: Remove dead code") Signed-of

Re: [PATCH 6/7] misc: bcm-vk: add Broadcom Valkyrie driver

2019-08-27 Thread Arnd Bergmann
On Thu, Aug 22, 2019 at 9:25 PM Scott Branden wrote: > > Add Broadcom Valkyrie driver offload engine. > This driver interfaces to the Valkyrie PCIe offload engine to perform > should offload functions as video transcoding on multiple streams > in parallel. Valkyrie device is booted from files

Re: [PATCH 09/16] fbdev: remove w90x900/nuc900 platform drivers

2019-08-13 Thread Arnd Bergmann
On Tue, Aug 13, 2019 at 3:30 PM Bartlomiej Zolnierkiewicz wrote: > > > On 8/9/19 10:27 PM, Arnd Bergmann wrote: > > The ARM w90x900 platform is getting removed, so this driver is obsolete. > > > > Signed-off-by: Arnd Bergmann > > Acked-by: Bartlomiej Zolnierkiewi

Re: [PATCH v2 1/3] arm64: imx8mq: add imx8mq iomux-gpr field defines

2019-08-13 Thread Arnd Bergmann
On Tue, Aug 13, 2019 at 12:10 PM Guido Günther wrote: > On Tue, Aug 13, 2019 at 10:08:44AM +0200, Arnd Bergmann wrote: > > On Fri, Aug 9, 2019 at 6:24 PM Guido Günther wrote: > > > > > > This adds all the gpr registers and the define needed for selecting > > >

Re: [PATCH v2 1/3] arm64: imx8mq: add imx8mq iomux-gpr field defines

2019-08-13 Thread Arnd Bergmann
On Fri, Aug 9, 2019 at 6:24 PM Guido Günther wrote: > > This adds all the gpr registers and the define needed for selecting > the input source in the imx-nwl drm bridge. > > Signed-off-by: Guido Günther > + > +#define IOMUXC_GPR00x00 > +#define IOMUXC_GPR10x04 > +#define IOMUXC_GPR2

[PATCH 09/16] fbdev: remove w90x900/nuc900 platform drivers

2019-08-09 Thread Arnd Bergmann
The ARM w90x900 platform is getting removed, so this driver is obsolete. Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/Kconfig | 14 - drivers/video/fbdev/Makefile | 1 - drivers/video/fbdev/nuc900fb.c | 760 --- drivers

Re: [PATCH 02/22] ARM: omap1: make omapfb standalone compilable

2019-08-09 Thread Arnd Bergmann
On Fri, Aug 9, 2019 at 4:36 PM Bartlomiej Zolnierkiewicz wrote: > On 8/9/19 1:43 PM, Arnd Bergmann wrote: > > > > That would have been ok as well, but having the addition here was > > intentional and seems more logical to me as this is where the headers > >

Re: [PATCH 02/22] ARM: omap1: make omapfb standalone compilable

2019-08-09 Thread Arnd Bergmann
On Fri, Aug 9, 2019 at 1:32 PM Bartlomiej Zolnierkiewicz wrote: > On 8/8/19 11:22 PM, Arnd Bergmann wrote: > > The omapfb driver is split into platform specific code for omap1, and > > driver code that is also specific to omap1. > > > > Moving both parts into the

[PATCH 09/22] fbdev: omap: avoid using mach/*.h files

2019-08-08 Thread Arnd Bergmann
All the headers we actually need are now in include/linux/soc, so use those versions instead and allow compile-testing on other architectures. Signed-off-by: Arnd Bergmann --- drivers/video/backlight/Kconfig | 4 ++-- drivers/video/backlight/omap1_bl.c | 4 ++-- drivers/video

[PATCH 02/22] ARM: omap1: make omapfb standalone compilable

2019-08-08 Thread Arnd Bergmann
not be referenced directly from the driver to allow building in a multiplatform configuration, so these have to be passed through resources, is done for all other omap drivers. Signed-off-by: Arnd Bergmann --- arch/arm/mach-omap1/Makefile | 4 -- arch/arm/mach-omap1/fb.c

[PATCH 01/22] ARM: omap1: innovator: pass lcd control address as pdata

2019-08-08 Thread Arnd Bergmann
To avoid using the mach/omap1510.h header file, pass the correct address as platform data. Signed-off-by: Arnd Bergmann --- arch/arm/mach-omap1/board-innovator.c | 3 +++ drivers/video/fbdev/omap/lcd_inn1510.c | 7 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm

[PATCH v5 16/29] compat_ioctl: move ATYFB_CLK handling to atyfb driver

2019-07-30 Thread Arnd Bergmann
These are two obscure ioctl commands, in a driver that only has compatible commands, so just let the driver handle this itself. Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/aty/atyfb_base.c | 12 +++- fs/compat_ioctl.c| 2

[PATCH v5 13/29] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-07-30 Thread Arnd Bergmann
, but are not interpreted as integer values. Acked-by: Jason Gunthorpe Acked-by: Daniel Vetter Acked-by: Mauro Carvalho Chehab Acked-by: Greg Kroah-Hartman Acked-by: David Sterba Acked-by: Darren Hart (VMware) Acked-by: Jonathan Cameron Acked-by: Bjorn Andersson Signed-off-by: Arnd Bergmann --- drivers

Re: [PATCH] drm/bridge: fix RC_CORE dependency

2019-07-19 Thread Arnd Bergmann
On Fri, Jul 19, 2019 at 9:01 AM Andrzej Hajda wrote: > > On 18.07.2019 15:42, Arnd Bergmann wrote: > > Using 'imply' causes a new problem, as it allows the case of > > CONFIG_INPUT=m with RC_CORE=y, which fails to link: > > > I have reviewed dependencies and I wo

Re: [PATCH] drm/bridge: fix RC_CORE dependency

2019-07-18 Thread Arnd Bergmann
On Thu, Jul 18, 2019 at 5:17 PM Dmitry Torokhov wrote: > On Thu, Jul 18, 2019 at 6:13 PM Arnd Bergmann wrote: > > On Thu, Jul 18, 2019 at 4:56 PM Andrzej Hajda wrote: > > > On 18.07.2019 16:21, Arnd Bergmann wrote: > > > > On Thu, Jul 18, 2019 at 4:16 PM

Re: [PATCH] drm/bridge: fix RC_CORE dependency

2019-07-18 Thread Arnd Bergmann
On Thu, Jul 18, 2019 at 4:56 PM Andrzej Hajda wrote: > On 18.07.2019 16:21, Arnd Bergmann wrote: > > On Thu, Jul 18, 2019 at 4:16 PM Andrzej Hajda wrote: > >> Hi Arnd, > >> > >> On 18.07.2019 15:42, Arnd Bergmann wrote: > >>> Using 'im

Re: [PATCH] drm/bridge: fix RC_CORE dependency

2019-07-18 Thread Arnd Bergmann
On Thu, Jul 18, 2019 at 4:16 PM Andrzej Hajda wrote: > > Hi Arnd, > > On 18.07.2019 15:42, Arnd Bergmann wrote: > > Using 'imply' causes a new problem, as it allows the case of > > CONFIG_INPUT=m with RC_CORE=y, which fails to link: > > > > drivers/media/rc

[PATCH] drm/bridge: fix RC_CORE dependency

2019-07-18 Thread Arnd Bergmann
link. Fixes: 5023cf32210d ("drm/bridge: make remote control optional") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/bridge/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig index f6

Re: [PATCH 6/7] drm/amd/powerplay: Use proper enums in vega20_print_clk_levels

2019-07-15 Thread Arnd Bergmann
On Thu, Jul 4, 2019 at 7:52 AM Nathan Chancellor wrote: > > clang warns: > > drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:995:39: warning: > implicit conversion from enumeration type 'PPCLK_e' to different > enumeration type 'enum smu_clk_type' [-Wenum-conversion] > ret =

Re: [PATCH] drm/amd/powerplay: work around enum conversion warnings

2019-07-15 Thread Arnd Bergmann
On Mon, Jul 8, 2019 at 6:05 PM Arnd Bergmann wrote: > On Mon, Jul 8, 2019 at 4:54 PM Nathan Chancellor > wrote: > > On Mon, Jul 08, 2019 at 03:57:06PM +0200, Arnd Bergmann wrote: > > > A couple of calls to smu_get_current_clk_freq() and smu_force_clk_levels() > > &g

Re: [PATCH] drm/amd/display: Support clang option for stack alignment

2019-07-12 Thread Arnd Bergmann
On Fri, Jul 12, 2019 at 8:49 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Fri, Jul 12, 2019 at 2:37 AM Arnd Bergmann wrote: > > > > As previously fixed for dml in commit 4769278e5c7f ("amdgpu/dc/dml: > > Support clang option for stack alignment") an

Re: [PATCH] drm/amd/amdgpu: hide #warning for missing DC config

2019-07-12 Thread Arnd Bergmann
On Fri, Jul 12, 2019 at 8:02 PM Alex Deucher wrote: > > On Fri, Jul 12, 2019 at 5:41 AM Arnd Bergmann wrote: > > > > It is annoying to have #warnings that trigger in randconfig > > builds like > > > > drivers/gpu/drm/amd/amdgpu/soc15.c:653:3: error: "

[PATCH] drm/amd/amdgpu: hide #warning for missing DC config

2019-07-12 Thread Arnd Bergmann
navi." Remove these and rely on the users to turn these on. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdgpu/nv.c| 2 -- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 2 files changed, 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.

[PATCH] drm/amd/display: return 'NULL' instead of 'false' from dcn20_acquire_idle_pipe_for_layer

2019-07-12 Thread Arnd Bergmann
; Changing it to 'NULL' looks like the right thing that will shut up the warning and make it easier to read, while not changing behavior. Fixes: 7ed4e6352c16 ("drm/amd/display: Add DCN2 HW Sequencer and Resource") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/displa

[PATCH] drm/amd/display: Support clang option for stack alignment

2019-07-12 Thread Arnd Bergmann
and Resource") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/dcn20/Makefile | 8 +++- drivers/gpu/drm/amd/display/dc/dsc/Makefile | 16 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/Makefile b/driver

[PATCH] drm/amd: work around llvm bug #42576

2019-07-12 Thread Arnd Bergmann
it by inserting a barrier() that prevents the optimization. Link: https://bugs.llvm.org/show_bug.cgi?id=42576 Signed-off-by: Arnd Bergmann --- Sending this for completeness, please decide for yourselves whether to apply it or not, given that it's a trivial workaround but probably not needed in the long run

Re: [PATCH] drm/amd/display: avoid 64-bit division

2019-07-09 Thread Arnd Bergmann
On Tue, Jul 9, 2019 at 6:40 PM Deucher, Alexander wrote: > > I'll just apply Arnd's patch. If the display team wants to adjust it later > to clarify the > operation, they should go ahead as a follow up patch. Thanks! > From: Abramov, Slava > Sent: Tuesday, July 9, 2019 12:31 PM > > Thanks for

Re: [PATCH 5/7] drm/amd/display: Use proper enum conversion functions

2019-07-09 Thread Arnd Bergmann
n assumes that the code works correctly, but the types are wrong (a false positive warning). One of the two patches is correct, the other one is broken, but I have no idea which one. Arnd From 61316b80c852d103bb61e1ce9904002414600125 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: M

Re: [PATCH 1/7] drm/amdgpu/mes10.1: Fix header guard

2019-07-08 Thread Arnd Bergmann
e one now, and saw your version before sending an identical patch. Acked-by: Arnd Bergmann ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 2/2] amdgpu: make SOC15/navi support conditional

2019-07-08 Thread Arnd Bergmann
On Mon, Jul 8, 2019 at 4:46 PM Alex Deucher wrote: > > On Mon, Jul 8, 2019 at 10:42 AM Arnd Bergmann wrote: > > > > Enabling amdgpu but not CONFIG_DRM_AMD_DC leads to a warning: > > > > drivers/gpu/drm/amd/amdgpu/nv.c: In function 'nv_set_ip_blocks': > > d

Re: [PATCH] drm/amd/powerplay: work around enum conversion warnings

2019-07-08 Thread Arnd Bergmann
On Mon, Jul 8, 2019 at 4:54 PM Nathan Chancellor wrote: > > Hi Arnd, > > On Mon, Jul 08, 2019 at 03:57:06PM +0200, Arnd Bergmann wrote: > > A couple of calls to smu_get_current_clk_freq() and smu_force_clk_levels() > > pass constants of the wrong type, leading

Re: [1/2] drm/amd/powerplay: smu_v11_0: fix uninitialized variable use

2019-07-08 Thread Arnd Bergmann
On Mon, Jul 8, 2019 at 5:02 PM Nathan Chancellor wrote: > On Mon, Jul 08, 2019 at 04:07:58PM +0200, Arnd Bergmann wrote: > > /* if don't has GetDpmClockFreq Message, try get current clock by > > SmuMetrics_t */ > > - if (smu_msg_get_index(smu, SMU_MSG_

[PATCH 2/2] amdgpu: make SOC15/navi support conditional

2019-07-08 Thread Arnd Bergmann
only be enabled on x86, so we cannot do that when building for other architectures. Add another Kconfig symbol to handle the SOC15 and navi, making sure that we implicitly enable DC. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdgpu/Kconfig | 7 + drivers/gpu/drm/a

[PATCH 1/2] amdgpu: make pmu support optional

2019-07-08 Thread Arnd Bergmann
drm/amd/amdgpu/amdgpu_pmu.c:51:13: error: no member named 'attr' in 'struct perf_event' if (event->attr.type != event->pmu->type) ~ ^ ... Use conditional compilation for this file. Fixes: 9c7c85f7ea1f ("drm/amdgpu: add pmu counters") Signed-off-by: Arnd

[PATCH] amdgpu: fix warning about misplaced initializers

2019-07-08 Thread Arnd Bergmann
it to {} instead of {0} is correct and more portable here. Fixes: ab43c4bf1cc8 ("drm/amd/powerplay: fix fan speed show error (for hwmon pwm)") Fixes: 98e1a543c7b1 ("drm/amd/powerplay: add function get current clock freq interface for navi10") Signed-off-by: Arnd Bergmann ---

[PATCH 2/2] drm/amd/powerplay: vega20: fix uninitialized variable use

2019-07-08 Thread Arnd Bergmann
ses into asic level") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c index 9ce3f1c8ae0f..20d477f8dc84 10064

[PATCH 1/2] drm/amd/powerplay: smu_v11_0: fix uninitialized variable use

2019-07-08 Thread Arnd Bergmann
ng uint32_t freq; ^ = 0 Bail out of smu_v11_0_get_current_clk_freq() before we get there. Fixes: e36182490dec ("drm/amd/powerplay: fix dpm freq unit error (10KHz -> Mhz)") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/pow

[PATCH] drm/amd/powerplay: work around enum conversion warnings

2019-07-08 Thread Arnd Bergmann
explict case is an easy way to shut up the warnings. Fixes: bc0fcffd36ba ("drm/amd/powerplay: Unify smu handle task function (v2)") Fixes: 096761014227 ("drm/amd/powerplay: support sysfs to get socclk, fclk, dcefclk") Signed-off-by: Arnd Bergmann --- Please check carefully if the warnin

[PATCH] drm/amd/display: dcn20: include linux/delay.h

2019-07-08 Thread Arnd Bergmann
itself may be problematic, as can occupy the CPU for 200ms in a busy-loop here. Fixes: 7ed4e6352c16 ("drm/amd/display: Add DCN2 HW Sequencer and Resource") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 1 + 1 file changed, 1 insertion(+)

[PATCH] drm/amd/display: avoid 64-bit division

2019-07-08 Thread Arnd Bergmann
lay: update calculated bounding box logic for NV") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 ++-- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/

[PATCH] drm/amdgpu: fix building without CONFIG_HMM_MIRROR

2019-07-08 Thread Arnd Bergmann
on it. Fixes: 7590f6d211ec ("drm/amdgpu: Prepare for hmm_range_register API change") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_

[PATCH] drm/exynos: add CONFIG_MMU dependency

2019-07-08 Thread Arnd Bergmann
this in configurations that build correctly. Many other drm drivers have the same dependency. It would be nice to make this work in MMU-less configurations, but evidently nobody has ever needed this so far. Fixes: 156bdac99061 ("drm/exynos: trigger build of all modules") Signed-off-by: Arnd Bergmann --

Re: [PATCH] drm/armada: fix debugfs link error

2019-06-28 Thread Arnd Bergmann
On Fri, Jun 28, 2019 at 2:48 PM Russell King - ARM Linux admin wrote: > > On Fri, Jun 28, 2019 at 12:33:40PM +0200, Arnd Bergmann wrote: > > Debugfs can be disabled at compile time, causing a link error > > with the newly restructured code: > > > > driver

[PATCH] drm/selftests: reduce stack usage

2019-06-28 Thread Arnd Bergmann
drm_cmdline_test_res(void *ignored) Since the object is never modified, just declare it as 'static const' and allow this to be passed down. Fixes: b7ced38916a9 ("drm/selftests: Add command line parser selftests") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/drm_modes.c | 8 +

[PATCH] drm: connector: remove bogus NULL check

2019-06-28 Thread Arnd Bergmann
6 ("drm/modes: Support modes names on the command line") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/drm_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 3afed5677946..b3f2cf7ea

[PATCH] drm/armada: fix debugfs link error

2019-06-28 Thread Arnd Bergmann
init function conditional. Fixes: 05ec8bd524ba ("drm/armada: redo CRTC debugfs files") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/armada/armada_crtc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/

Re: [PATCH] video: fbdev: pvr2fb: fix compile-testing as module

2019-06-21 Thread Arnd Bergmann
On Fri, Jun 21, 2019 at 1:15 PM Bartlomiej Zolnierkiewicz wrote: > > > On 6/17/19 2:47 PM, Arnd Bergmann wrote: > > Building an allmodconfig kernel now produces a harmless warning: > > > > drivers/video/fbdev/pvr2fb.c:726:12: error: unused function > > 'pvr2

Re: [PATCH] video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit

2019-06-21 Thread Arnd Bergmann
On Fri, Jun 21, 2019 at 12:58 PM Bartlomiej Zolnierkiewicz wrote: > > On 6/17/19 3:16 PM, Arnd Bergmann wrote: > > When the driver is built-in for PCI, we reference the exit function > > after discarding it: > > > > `pvr2fb_pci_exit' referenced in section `.ref.dat

Re: [PATCH] drm/amd/display: include missing linux/delay.h

2019-06-17 Thread Arnd Bergmann
On Mon, Jun 17, 2019 at 4:41 PM Sam Ravnborg wrote: > On Mon, Jun 17, 2019 at 02:38:55PM +0200, Arnd Bergmann wrote: > > Some randconfig builds fail to compile the dcn10 code because of > > a missing declaration: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc

[PATCH] video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit

2019-06-17 Thread Arnd Bergmann
as the easiest workaround. Fixes: 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support") Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/pvr2fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 29

[PATCH] drm/amdgpu: fix error handling in df_v3_6_pmc_start

2019-06-17 Thread Arnd Bergmann
val; ^~ Make it return a proper error code that we can catch in the caller. Fixes: 992af942a6cf ("drm/amdgpu: add df perfmon regs and funcs for xgmi") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdgpu/df_v3_6.c | 13 + 1 file changed, 9 insertions(+), 4 delet

[PATCH] drm/komeda: fix 32-bit komeda_crtc_update_clock_ratio

2019-06-17 Thread Arnd Bergmann
32; Move the shift into the division to make it apply on a 64-bit variable. Also use the more expensive div64_u64() instead of div_u64() to account for pxlclk being a 64-bit integer. Fixes: a962091227ed ("drm/komeda: Add engine clock requirement check for the downscaling") Signed-of

[PATCH] drm/komeda: fix size_t format string

2019-06-17 Thread Arnd Bergmann
ed AFBC support for komeda driver") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c b/drivers/gpu/drm/arm/display/komeda/komeda

[PATCH] video: fbdev: pvr2fb: fix compile-testing as module

2019-06-17 Thread Arnd Bergmann
. Fixes: 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support") Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/pvr2fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 59c59b3a67cb..cf

[PATCH] drm/amd/display: include missing linux/delay.h

2019-06-17 Thread Arnd Bergmann
declaration of function 'udelay' [-Werror=implicit-function-declaration] Include the appropriate kernel header. Fixes: 9ed43ef84d9d ("drm/amd/display: Add Underflow Asserts to dc") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 1 + 1 file

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