Re: [RFC] taint: add module firmware crash taint support

2020-05-08 Thread Daniel Vetter
gt; return -ENOENT; > } > > -static inline void add_taint_module(struct module *mod, unsigned flag, > - enum lockdep_ok lockdep_ok) > +void add_taint_module(struct module *mod, unsigned flag, > + enum lockdep_ok lockdep_ok) > { > add_taint(flag, lockdep_ok); > set_bit(flag, >taints); > } > +EXPORT_SYMBOL_GPL(add_taint_module); > > /* > * A thread that wants to hold a reference to a module only while it > diff --git a/kernel/panic.c b/kernel/panic.c > index ec6d7d788ce7..504fb926947e 100644 > --- a/kernel/panic.c > +++ b/kernel/panic.c > @@ -384,6 +384,7 @@ const struct taint_flag taint_flags[TAINT_FLAGS_COUNT] = { > [ TAINT_LIVEPATCH ] = { 'K', ' ', true }, > [ TAINT_AUX ] = { 'X', ' ', true }, > [ TAINT_RANDSTRUCT ]= { 'T', ' ', true }, > + [ TAINT_FIRMWARE_CRASH ]= { 'Q', ' ', true }, > }; > > /** > -- > 2.25.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH v3 3/4] drm: ipk: Add extensions for DW MIPI DSI Host driver

2020-05-06 Thread Daniel Vetter
On Wed, May 06, 2020 at 09:56:16AM +, Angelo Ribeiro wrote: > From: Daniel Vetter > Date: Tue, Apr 28, 2020 at 16:28:15 > > > On Mon, Apr 27, 2020 at 04:00:35PM +0200, Angelo Ribeiro wrote: > > > Add Synopsys DesignWare IPK specific extensions for Synopsys Design

Re: [PATCH v2 1/2] drm/client: Dual licence the header in GPL-2 and MIT

2020-05-05 Thread Daniel Vetter
On Thu, Apr 30, 2020 at 05:33:46PM +0200, Emmanuel Vadot wrote: > Source file was dual licenced but the header was omitted, fix that. > Contributors for this file are: > Daniel Vetter > Matt Roper > Maxime Ripard > Noralf Trønnes > Thomas Zimmermann > > Acked-

Re: [PATCH] drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_* helpers

2020-05-05 Thread Daniel Vetter
On Tue, May 05, 2020 at 07:55:00AM +0200, Michał Orzeł wrote: > > > On 04.05.2020 13:53, Daniel Vetter wrote: > > On Fri, May 01, 2020 at 05:49:33PM +0200, Michał Orzeł wrote: > >> > >> > >> On 30.04.2020 20:30, Daniel Vetter wrote: > >>

Re: [PATCH] drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_* helpers

2020-05-04 Thread Daniel Vetter
On Fri, May 01, 2020 at 05:49:33PM +0200, Michał Orzeł wrote: > > > On 30.04.2020 20:30, Daniel Vetter wrote: > > On Thu, Apr 30, 2020 at 5:38 PM Sean Paul wrote: > >> > >> On Wed, Apr 29, 2020 at 4:57 AM Jani Nikula > >> wrote: > >&

Re: [PATCH v5 2/2] drm: Add support for the LogiCVC display controller

2020-05-04 Thread Daniel Vetter
On Thu, Apr 30, 2020 at 09:10:07PM +0200, Paul Kocialkowski wrote: > Hi Daniel, > > On Fri 03 Apr 20, 13:04, Daniel Vetter wrote: > > On Fri, Apr 03, 2020 at 11:36:17AM +0200, Paul Kocialkowski wrote: > > > Introduces a driver for the LogiCVC display controller, a

Re: [PATCH V2 11/11] drm: Remove drm specific kmap_atomic code

2020-05-04 Thread Daniel Vetter
ned-off-by: Ira Weiny I'm assuming this lands through some other tree or a topic branch or whatever. Acked-by: Daniel Vetter Cheers, Daniel > --- > drivers/gpu/drm/ttm/ttm_bo_util.c| 56 ++-- > drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 16 > in

Re: [PATCH] drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_* helpers

2020-04-30 Thread Daniel Vetter
eset_acquire_ctx ctx; > > > int ret = -EINVAL; > > > > > > if (!drm_property_change_valid_get(prop, prop_value, )) > > > return -EINVAL; > > > > > > - drm_modeset_lock_all(dev); > > > + DRM_MODESET_LOCK_ALL_BEGIN(dev, ct

Re: [RESEND 1/2] drm/client: Dual licence the header in GPL-2 and MIT

2020-04-30 Thread Daniel Vetter
On Thu, Apr 30, 2020 at 4:54 PM Emmanuel Vadot wrote: > > Source file was dual licenced but the header was omitted, fix that. > Contributors for this file are: > Daniel Vetter > Matt Roper > Maxime Ripard > Noralf Trønnes > Thomas Zimmermann > > Acked-by: No

Re: [PATCH v2] drm: make drm_file use keyed wakeups

2020-04-30 Thread Daniel Vetter
On Wed, Apr 29, 2020 at 11:19:07AM +, k...@kl.wtf wrote: > April 28, 2020 5:14 PM, "Daniel Vetter" wrote: > > > On Fri, Apr 24, 2020 at 06:26:15PM +0200, Kenny Levinsen wrote: > > > >> Some processes, such as systemd, are only polling for EPOLLERR|EP

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

2020-04-30 Thread Daniel Vetter
On Tue, Apr 28, 2020 at 10:08:04PM +0300, Adrian Ratiu wrote: > Hi Daniel, > > On Tue, 28 Apr 2020, Daniel Vetter wrote: > > On Wed, Apr 22, 2020 at 04:07:27AM +0300, Laurent Pinchart wrote: > > > Hi Adrian, On Tue, Apr 21, 2020 at 07:16:06PM +0300, Adrian Ratiu > >

Re: [PATCH v7 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-04-30 Thread Daniel Vetter
On Thu, Apr 30, 2020 at 09:47:46PM +0800, Xin Ji wrote: > Hi Daniel, > > On Thu, Apr 30, 2020 at 03:38:39PM +0200, Daniel Vetter wrote: > > On Thu, Apr 30, 2020 at 03:37:31PM +0200, Daniel Vetter wrote: > > > On Thu, Apr 30, 2020 at 11:36:14AM +0800, Xin Ji wrote: >

Re: [PATCH v7 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-04-30 Thread Daniel Vetter
On Thu, Apr 30, 2020 at 03:37:31PM +0200, Daniel Vetter wrote: > On Thu, Apr 30, 2020 at 11:36:14AM +0800, Xin Ji wrote: > > On Tue, Apr 28, 2020 at 12:05:08PM +0200, Daniel Vetter wrote: > > > On Fri, Apr 24, 2020 at 08:12:04PM +0800, Nicolas Boichat wrote: > > > > O

Re: [PATCH v7 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-04-30 Thread Daniel Vetter
On Thu, Apr 30, 2020 at 11:36:14AM +0800, Xin Ji wrote: > On Tue, Apr 28, 2020 at 12:05:08PM +0200, Daniel Vetter wrote: > > On Fri, Apr 24, 2020 at 08:12:04PM +0800, Nicolas Boichat wrote: > > > On Fri, Apr 24, 2020 at 2:51 PM Xin Ji wrote: > > > > > > &g

Re: [PATCH 1/3] drm/db9000: Add Digital Blocks DB9000 LCD Controller

2020-04-28 Thread Daniel Vetter
> > +#define DB9000_MAX_LAYER 1 > > + > > +/* LCD Controller Control Register 1 */ > > +#define DB9000_CR1 0x000 > > +/* Horizontal Timing Register */ > > +#define DB9000_HTR 0x008 > > +/* Vertical Timing Regist

Re: [RFC 00/17] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-04-28 Thread Daniel Vetter
I.e. roll out better wrappers first, once that's soaked through the tree, rename the last offenders. Personally I like nr_cpu_ents and nr_dma_ents, that's about as clear as it gets. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH v3 3/4] drm: ipk: Add extensions for DW MIPI DSI Host driver

2020-04-28 Thread Daniel Vetter
On Mon, Apr 27, 2020 at 04:00:35PM +0200, Angelo Ribeiro wrote: > Add Synopsys DesignWare IPK specific extensions for Synopsys DesignWare > MIPI DSI Host driver. > > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: David Airlie > Cc: Daniel Vetter > Cc: Sam Ravnborg

Re: [PATCH] Remove drm_display_mode.hsync

2020-04-28 Thread Daniel Vetter
* > - * Horizontal refresh rate, for debug output in human readable form. Not > - * used in a functional way. > - * > - * This value is in kHz. > - */ > - int hsync; > - > - /** >* @picture_aspect_ratio: >* >* Field for setting the HDMI picture aspect ratio of a mode. > -- > 2.7.4 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_* helpers

2020-04-28 Thread Daniel Vetter
; break; > } > drm_property_change_valid_put(prop, ref); > - drm_modeset_unlock_all(dev); > + DRM_MODESET_LOCK_ALL_END(ctx, ret); > > return ret; > } > -- > 2.7.4 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH v2] drm: make drm_file use keyed wakeups

2020-04-28 Thread Daniel Vetter
t drm_device *dev, struct > drm_pending_event *e) > list_del(>pending_link); > list_add_tail(>link, > >file_priv->event_list); > - wake_up_interruptible(>file_priv->event_wait); > + wake_up_interruptible_poll(>file_priv->event_wait

Re: [PATCH] drm: make drm_file use keyed wakeups

2020-04-28 Thread Daniel Vetter
;event_list); > - wake_up_interruptible(>file_priv->event_wait); > + wake_up_interruptible_poll(>file_priv->event_wait, > + EPOLLIN | EPOLLRDNORM); > } > EXPORT_SYMBOL(drm_send_event_locked); > > -- > 2.26.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH -next] drm/mediatek: Fix Kconfig warning

2020-04-28 Thread Daniel Vetter
d9b5540de68 100644 > > --- a/drivers/gpu/drm/mediatek/Kconfig > > +++ b/drivers/gpu/drm/mediatek/Kconfig > > @@ -6,6 +6,7 @@ config DRM_MEDIATEK > > depends on COMMON_CLK > > depends on HAVE_ARM_SMCCC > > depends on OF > > + depends on COMMON_CLK_MT8173_MMSYS > > select DRM_GEM_CMA_HELPER > > select DRM_KMS_HELPER > > select DRM_MIPI_DSI > > -- > > 2.17.1 > > > > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

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

2020-04-28 Thread Daniel Vetter
c const struct component_ops imx_mipi_dsi_ops = { > > + .bind = imx_mipi_dsi_bind, > > + .unbind = imx_mipi_dsi_unbind, > > +}; > > + > > +static int imx_mipi_dsi_probe(struct platform_device *pdev) > > +{ > > + struct device *dev = >dev; > > +

Re: [PATCH v3 1/2] DRM: ARC: add HDMI 2.0 TX encoder support

2020-04-28 Thread Daniel Vetter
On Tue, Apr 21, 2020 at 05:55:38PM +0200, Neil Armstrong wrote: > On 15/04/2020 19:33, Daniel Vetter wrote: > > On Wed, Apr 15, 2020 at 02:29:28AM +0300, Eugeniy Paltsev wrote: > >> The Synopsys ARC SoCs (like HSDK4xD) include on-chip DesignWare HDMI > >> encoders. S

Re: [PATCH v4 3/3] drm/bridge: chrontel-ch7033: Add a new driver

2020-04-28 Thread Daniel Vetter
On Thu, Apr 23, 2020 at 11:18:45PM +0200, Lubomir Rintel wrote: > On Tue, Apr 21, 2020 at 02:54:12PM +0200, Daniel Vetter wrote: > > On Tue, Mar 24, 2020 at 04:19:31PM +0100, Lubomir Rintel wrote: > > > This is a driver for video encoder with VGA an

Re: [PATCH v7 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-04-28 Thread Daniel Vetter
t; > Right, understand your argument. I'm pondering if it's not just better > to reject the mode rather than trying a timing that is definitely > quite different from what the monitor was asking for. No super strong > opinion, I'll let other people on the list weigh in. Yeah mode_fixup is

Re: [PATCH] drm: Add support for integrated privacy screens

2019-10-23 Thread Daniel Vetter
) of privacy-screen on the > + * panel, if present. > + */ > + struct drm_property *privacy_screen_property; > + > /** >* @writeback_fb_id_property: Property for writeback connectors, storing >* the ID of the output framebuffer. > diff --git a/include/drm/drm_privacy_screen.h > b/include/drm/drm_privacy_screen.h > new file mode 100644 > index ..c589bbc47656 > --- /dev/null > +++ b/include/drm/drm_privacy_screen.h > @@ -0,0 +1,33 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > +/* > + * Copyright © 2019 Google Inc. > + */ > + > +#ifndef __DRM_PRIVACY_SCREEN_H__ > +#define __DRM_PRIVACY_SCREEN_H__ > + > +#ifdef CONFIG_ACPI > +bool drm_privacy_screen_present(struct drm_connector *connector, u8 port); > +void drm_privacy_screen_set_val(struct drm_connector *connector, > + enum drm_privacy_screen val); > +enum drm_privacy_screen drm_privacy_screen_get_val(struct drm_connector > +*connector); > +#else > +static inline bool drm_privacy_screen_present(struct drm_connector > *connector, > + u8 port) > +{ > + return false; > +} > + > +void drm_privacy_screen_set_val(struct drm_connector *connector, > + enum drm_privacy_screen val) > +{ } > + > +enum drm_privacy_screen drm_privacy_screen_get_val( > + struct drm_connector *connector) > +{ > + return DRM_PRIVACY_SCREEN_DISABLED; > +} > +#endif /* CONFIG_ACPI */ > + > +#endif /* __DRM_PRIVACY_SCREEN_H__ */ > -- > 2.23.0.866.gb869b98d4c-goog > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm/v3d: Fix memory leak in v3d_submit_cl_ioctl

2019-10-23 Thread Daniel Vetter
On Tue, Oct 22, 2019 at 10:53:57PM -0500, Navid Emamdoost wrote: > On Tue, Oct 22, 2019 at 4:36 AM Daniel Vetter wrote: > > > > On Mon, Oct 21, 2019 at 01:52:49PM -0500, Navid Emamdoost wrote: > > > In the impelementation of v3d_submit_cl_ioctl() there are two memory

Re: [PATCH] drm/virtio: move byteorder handling into virtio_gpu_cmd_transfer_to_host_2d function

2019-10-22 Thread Daniel Vetter
On Fri, Oct 18, 2019 at 02:23:52PM +0200, Gerd Hoffmann wrote: > Be consistent with the rest of the code base. > > Signed-off-by: Gerd Hoffmann Assuming sparse is all still pleased: Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/virtio/virtgpu_drv.h | 4 ++-- > driv

Re: [RFC,3/3] drm/komeda: Allow non-component drm_bridge only endpoints

2019-10-22 Thread Daniel Vetter
orted, and still get to support bridges which are more > > common. > > > > As/when improvements are made to the bridge code we can remove the > > component bits and not lose anything. > > There was an idea a while back about using the device links code to > solve the bridge issue - but at the time the device links code wasn't > up to the job. I think that's been resolved now, but I haven't been > able to confirm it. I did propose some patches for bridge at the > time but they probably need updating. I think the only patches that existed where for panel, and we only discussed the bridge case. At least I can only find patches for panel,not bridge, but might be missing something. Either way I think device core is fixed now, so would be really great if someone can give this another stab, and make drm_bridge/panel easier to use without fireworks on unload. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH v2 1/4] drm/komeda: Add a new helper drm_color_ctm_s31_32_to_qm_n()

2019-10-14 Thread Daniel Vetter
her bits above m+n are cleared to all 0 or all 1. Unit test would be lovely too. Anyway: Reviewed-by: Daniel Vetter > + */ > +uint64_t drm_color_ctm_s31_32_to_qm_n(uint64_t user_input, > + uint32_t m, uint32_t n) > +{ > + u64 mag = (user_in

Re: linux-next: build failure after merge of the tip tree

2019-10-10 Thread Daniel Vetter
> Yep, its not a real problem, I get a few like this every cycle. Yeah totally within expectations when I acked that cleanup patch. We'll probably have a few more lockdep annotation patches/changes that will conflict in drm. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH 2/3] drm/komeda: Add drm_ctm_to_coeffs()

2019-10-09 Thread Daniel Vetter
nel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=88b703527ba70659365d989f29579f1292ebf9c3 > > (look for csc_drm_to_base) > > Would be great to have a common helper which correctly accounts for > all the variability. Yeah the sign-bit 31.32 fixed point format is probably the most ludicrous uapi fumble we've ever done. A shared function, rolled out to drivers, to switch it to a signed 2 complements integer sounds like a _very_ good idea. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH 5/6] drm/amdgpu/dm/mst: Report possible_crtcs incorrectly, for now

2019-10-09 Thread Daniel Vetter
t; > > +*/ > > + acrtc->mst_encoder->base.possible_crtcs = > > + amdgpu_dm_get_encoder_crtc_mask(dm->adev); > > Why don't we put this hack in amdgpu_dm_dp_create_fake_mst_encoder()? If we don't have the same hack for i915 mst I think we shouldn't merge this ... broken userspace is broken. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm/meson: fix max mode_config height/width

2019-10-09 Thread Daniel Vetter
> On 05/10/2018 09:58, Daniel Vetter wrote: > > > On Fri, Oct 5, 2018 at 9:39 AM Neil Armstrong > > > wrote: > > > > > > > > [...] > > > > > > OK, won't this be enough ? > > > > --- a/include/drm/drm_mode_config.h > &g

Re: [RFC PATCH] drm/virtio: Export resource handles via DMA-buf API

2019-10-08 Thread Daniel Vetter
On Sat, Oct 05, 2019 at 02:41:54PM +0900, Tomasz Figa wrote: > Hi Daniel, Gerd, > > On Tue, Sep 17, 2019 at 10:23 PM Daniel Vetter wrote: > > > > On Thu, Sep 12, 2019 at 06:41:21PM +0900, Tomasz Figa wrote: > > > This patch is an early RFC to judge the direction

Re: [PATCH] drm: atomic helper: fix W=1 warnings

2019-10-08 Thread Daniel Vetter
rtc_state; > > > > > struct drm_crtc_commit *commit; > > > > > int i; > > > > > @@ -2300,7 +2300,7 @@ > > > > > EXPORT_SYMBOL(drm_atomic_helper_commit_cleanup_done); > > > > > int drm_atomic_helper_prepare_planes(struct drm_device *dev, > > > > >struct drm_atomic_state *state) > > > > > { > > > > > - struct drm_connector *connector; > > > > > + struct drm_connector __maybe_unused *connector; > > > > > struct drm_connector_state *new_conn_state; > > > > > struct drm_plane *plane; > > > > > struct drm_plane_state *new_plane_state; > > > > > @@ -2953,9 +2953,9 @@ int drm_atomic_helper_disable_all(struct > > > > > drm_device *dev, > > > > > { > > > > > struct drm_atomic_state *state; > > > > > struct drm_connector_state *conn_state; > > > > > - struct drm_connector *conn; > > > > > + struct drm_connector __maybe_unused *conn; > > > > > struct drm_plane_state *plane_state; > > > > > - struct drm_plane *plane; > > > > > + struct drm_plane __maybe_unused *plane; > > > > > struct drm_crtc_state *crtc_state; > > > > > struct drm_crtc *crtc; > > > > > int ret, i; > > > > > @@ -3199,11 +3199,11 @@ int > > > > > drm_atomic_helper_commit_duplicated_state(struct drm_atomic_state > > > > > *state, > > > > > { > > > > > int i, ret; > > > > > struct drm_plane *plane; > > > > > - struct drm_plane_state *new_plane_state; > > > > > + struct drm_plane_state __maybe_unused *new_plane_state; > > > > > struct drm_connector *connector; > > > > > - struct drm_connector_state *new_conn_state; > > > > > + struct drm_connector_state __maybe_unused *new_conn_state; > > > > > struct drm_crtc *crtc; > > > > > - struct drm_crtc_state *new_crtc_state; > > > > > + struct drm_crtc_state __maybe_unused *new_crtc_state; > > > > > > > > > > state->acquire_ctx = ctx; > > > > > > > > > > -- > > > > > 2.15.0 > > > > > > > > > > ___ > > > > > dri-devel mailing list > > > > > dri-de...@lists.freedesktop.org > > > > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > > > > > > > -- > > > > Ville Syrjälä > > > > Intel > > > > -- > > Ville Syrjälä > > Intel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: 4f5368b5541a902f6596558b05f5c21a9770dd32 causes regression

2019-09-25 Thread Daniel Vetter
rm-misc-next-fixes-2019-09-18) Author: Daniel Vetter Date: Tue Sep 17 14:09:35 2019 +0200 drm/kms: Duct-tape for mode object lifetime checks which undoes any side-effect of the patch you're pointing at. I am rather surprised though that this results in a hard-lookup for you, did you

Re: printk meeting at LPC

2019-09-19 Thread Daniel Vetter
> > Each console has its own iterator. This iterators will need to advance, > regardless if the message was printed via write() or write_atomic(). > > John Ogness -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch

Re: printk meeting at LPC

2019-09-16 Thread Daniel Vetter
On Sun, Sep 15, 2019 at 3:48 PM John Ogness wrote: > > On 2019-09-13, Daniel Vetter wrote: > >> 2. A kernel thread will be created for each registered console, each > >> responsible for being the sole printers to their respective > >> consoles. With this, cons

Re: printk meeting at LPC

2019-09-13 Thread Daniel Vetter
/ yellow text or something like that ofc :-) Thanks, Daniel > > John Ogness > > [0] > https://www.linuxplumbersconf.org/event/4/contributions/290/attachments/276/463/lpc2019_jogness_printk.pdf > [1] https://lkml.kernel.org/r/20190704103321.10022-1-pmla...@suse.com > [2] https://lkml.kernel.org/r/87lfvwcssu@linutronix.de -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch

Re: [PATCH v2 3/4] drm/ttm, drm/vmwgfx: Correctly support support AMD memory encryption

2019-09-03 Thread Daniel Vetter
he point here is that we want this. We need to be able to move the buffer between device ptes and system memory ptes, transparently, behind userspace back, without races. And the fast path (which is "no pte exists for this vma") must be real fast, so taking mmap_sem and replacing the vma is no-go. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch

Re: [PATCH v2 3/6] drm/vram: use drm_gem_ttm_print_info

2019-09-03 Thread Daniel Vetter
ct_unpin, > .vmap = drm_gem_vram_object_vmap, > - .vunmap = drm_gem_vram_object_vunmap > + .vunmap = drm_gem_vram_object_vunmap, > + .print_info = drm_gem_ttm_print_info, Yeah definitely link to the new way of doing stuff in the kerneldoc of the previous patch. For this. Reviewed-b

[PATCH 0/5] mmu notifer debug annotations

2019-08-26 Thread Daniel Vetter
to invalidate_range_end. I can't test that readily since i915 doesn't use it. - Added might_sleep annotations to also make sure the mm side keeps up it's side of the contract here around what's allowed and what's not. Comments, feedback, review as usual very much appreciated. Cheers, Daniel Daniel

Re: [PATCH 3/4] kernel.h: Add non_block_start/end()

2019-08-23 Thread Daniel Vetter
On Fri, Aug 23, 2019 at 4:06 PM Peter Zijlstra wrote: > On Fri, Aug 23, 2019 at 03:42:47PM +0200, Daniel Vetter wrote: > > I'm assuming the lockdep one will land, so not going to resend that. > > I was assuming you'd wake the might_lock_nested() along with the i915 > user th

Re: [PATCH 3/4] kernel.h: Add non_block_start/end()

2019-08-23 Thread Daniel Vetter
On Fri, Aug 23, 2019 at 2:12 PM Jason Gunthorpe wrote: > > On Fri, Aug 23, 2019 at 10:34:01AM +0200, Daniel Vetter wrote: > > On Fri, Aug 23, 2019 at 1:14 AM Andrew Morton > > wrote: > > > > > > On Tue, 20 Aug 2019 22:24:40 +0200 Daniel V

Re: [PATCH 3/4] kernel.h: Add non_block_start/end()

2019-08-23 Thread Daniel Vetter
On Fri, Aug 23, 2019 at 1:14 AM Andrew Morton wrote: > > On Tue, 20 Aug 2019 22:24:40 +0200 Daniel Vetter wrote: > > > Hi Peter, > > > > Iirc you've been involved at least somewhat in discussing this. -mm folks > > are a bit undecided whether these new no

Re: [PATCH 4/4] mm, notifier: Catch sleeping/blocking for !blockable

2019-08-22 Thread Daniel Vetter
On Thu, Aug 22, 2019 at 4:24 PM Jason Gunthorpe wrote: > > On Thu, Aug 22, 2019 at 10:42:39AM +0200, Daniel Vetter wrote: > > > > RDMA has a mutex: > > > > > > ib_umem_notifier_invalidate_range_end > > > rbt_ib_umem_for_each_in_ran

Re: [PATCH 2/3] drm: drop resource_id parameter from drm_fb_helper_remove_conflicting_pci_framebuffers

2019-08-22 Thread Daniel Vetter
On Thu, Aug 22, 2019 at 11:06:44AM +0200, Gerd Hoffmann wrote: > Not needed any more for remove_conflicting_pci_framebuffers calls. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter > --- > include/drm/drm_fb_helper.h | 4 +--- > drivers/gpu/drm/amd/a

Re: [PATCH 4/4] mm, notifier: Catch sleeping/blocking for !blockable

2019-08-22 Thread Daniel Vetter
On Thu, Aug 22, 2019 at 10:16 AM Jason Gunthorpe wrote: > > On Wed, Aug 21, 2019 at 05:41:51PM +0200, Daniel Vetter wrote: > > > > Hm, I thought the page table locks we're holding there already prevent any > > > sleeping, so would be redundant? But reading

Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end()

2019-08-16 Thread Daniel Vetter
On Fri, Aug 16, 2019 at 3:00 AM Jason Gunthorpe wrote: > On Thu, Aug 15, 2019 at 10:49:31PM +0200, Daniel Vetter wrote: > > On Thu, Aug 15, 2019 at 10:27 PM Jason Gunthorpe wrote: > > > On Thu, Aug 15, 2019 at 10:16:43PM +0200, Daniel Vetter wrote: > > > > So if

Re: [PATCH 2/5] kernel.h: Add non_block_start/end()

2019-08-15 Thread Daniel Vetter
On Thu, Aug 15, 2019 at 7:16 PM Jason Gunthorpe wrote: > > On Thu, Aug 15, 2019 at 12:32:38PM -0400, Jerome Glisse wrote: > > On Thu, Aug 15, 2019 at 12:10:28PM -0300, Jason Gunthorpe wrote: > > > On Thu, Aug 15, 2019 at 04:43:38PM +0200, Daniel Vetter wrote: > >

Re: [PATCH 2/5] kernel.h: Add non_block_start/end()

2019-08-15 Thread Daniel Vetter
On Thu, Aug 15, 2019 at 5:10 PM Jason Gunthorpe wrote: > > On Thu, Aug 15, 2019 at 04:43:38PM +0200, Daniel Vetter wrote: > > > You have to wait for the gpu to finnish current processing in > > invalidate_range_start. Otherwise there's no point to any of this > >

Re: [PATCH 3/5] mm, notifier: Catch sleeping/blocking for !blockable

2019-08-15 Thread Daniel Vetter
On Wed, Aug 14, 2019 at 09:00:29PM -0300, Jason Gunthorpe wrote: > On Wed, Aug 14, 2019 at 10:20:25PM +0200, Daniel Vetter wrote: > > We need to make sure implementations don't cheat and don't have a > > possible schedule/blocking point deeply burried where review can't > > c

Re: DMA-API: cacheline tracking ENOMEM, dma-debug disabled due to nouveau ?

2019-08-14 Thread Daniel Vetter
o many DMA mapping and > see: > cat /sys/kernel/debug/dma-api/dump | cut -d' ' -f2 | sort | uniq -c > 6 ahci > 257 e1000e > 6 ehci-pci >5891 nouveau > 24 uhci_hcd > > Does nouveau having this high number of DMA mapping is normal ? Yeah seems perfec

Re: [PATCH v2 07/15] drm/mxsfb: Fix the vblank events

2019-08-14 Thread Daniel Vetter
goto err_vblank; > @@ -269,6 +276,8 @@ static int mxsfb_load(struct drm_device *drm, unsigned > long flags) > goto err_vblank; > } > > + drm_crtc_vblank_off(>pipe.crtc); Are you sure you need this one here? vblanks should be off after drm_vblank_init() is called. Thanks, Daniel > + > /* >* Attach panel only if there is one. >* If there is no panel attach, it must be a bridge. In this case, we > -- > 2.7.4 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH 06/26] drm/dp_mst: Move PDT teardown for ports into destroy_connector_work

2019-08-13 Thread Daniel Vetter
the commit message. I'm confused, did something go wrong with some rebase here, and this patch should have a different title/summary? -Daniel > + port->mgr->cbs->destroy_connector(port->mgr, port->connector); > > drm_dp_port_teardown_pdt(port, port->pdt); > port->pdt = DP_PEER_DEVICE_NONE; > -- > 2.21.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH 03/26] drm/dp_mst: Move test_calc_pbn_mode() into an actual selftest

2019-08-13 Thread Daniel Vetter
> Cc: Juston Li > Cc: Imre Deak > Cc: Ville Syrjälä > Cc: Harry Wentland > Signed-off-by: Lyude Paul More official unit tests, yay! Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/drm_dp_mst_topology.c | 27 -- > drivers/gpu/drm/selftests/Mak

Re: [PATCH 01/26] drm/dp_mst: Move link address dumping into a function

2019-08-08 Thread Daniel Vetter
On Wed, Jul 17, 2019 at 09:42:24PM -0400, Lyude Paul wrote: > Since we're about to be calling this from multiple places. Also it makes > things easier to read! > > Cc: Juston Li > Cc: Imre Deak > Cc: Ville Syrjälä > Cc: Harry Wentland > Signed-off-by: Lyude Paul Re

Re: [PATCH 1/3] drm: add gem ttm helpers

2019-08-06 Thread Daniel Vetter
pu/drm/Makefile > index 10f8329a8b71..545c61d6528b 100644 > --- a/drivers/gpu/drm/Makefile > +++ b/drivers/gpu/drm/Makefile > @@ -37,6 +37,9 @@ drm_vram_helper-y := drm_gem_vram_helper.o \ >drm_vram_mm_helper.o > obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o > > +drm_t

Re: [PATCH v1 2/2] drm: Clear the fence pointer when writeback job signaled

2019-08-02 Thread Daniel Vetter
On Fri, Aug 2, 2019 at 11:43 AM Daniel Vetter wrote: > > On Fri, Aug 2, 2019 at 11:29 AM Brian Starkey wrote: > > > > Hi Lowry, > > > > On Thu, Aug 01, 2019 at 06:34:08AM +, Lowry Li (Arm Technology China) > > wrote: > > > Hi Brian, > &g

Re: [PATCH 5/6] drm: uapi: add gdepaper uapi header

2019-07-31 Thread Daniel Vetter
s all anybody would ever need. In that case I'm suggesting we experiment around a lot first in the kernel to improve this. The trouble with uapi is it's forever, kernel driver heuristics can be changed much easier. If you want to have it easier for experimentation then I think the right uapi is probably going to be a custom drm_fourcc.h, with one plane containing the white/black/red values (so 2 bits per pixel), and the 2nd plane containing all the information for partial update. But that would just be a patch you're carrying locally for quick development of heuristics. For these partial update heuristics I think a good starting point would be to wire up the damage stuff, and default to full refresh for full frame updates. Just throwing this in as an idea. -Daniel > > This way, the kernel can change voltages and perform sanity checks (rate > > limit, temperature, etc.) instead of "blindly" damaging the hardware. > > I wouldn't know how to come up with safe boundaries for such checks. The > vendor's datasheets are not much of a help. They basically say "don't deviate > from our defaults for too long", but then there's others[1] who totally do > deviate without a problem. The built-in hardware limits seem to be sensible. > This patch configures both the b/w high drive voltage and the b/w/r low drive > voltage to maximums (+/-11.0V) according to an example from the vendor, and > it's working fine. > > Maybe a way to go at this would be to have a set of parameter presets in dt > along with limits (full refresh at least every x seconds, full refresh at > least every x partial refreshes, etc.), and allow userspace to select one of > these presets using a drm property? This way it can still be configured but > and it doesn't need any ioctls. > > - Jan > > [0] > https://github.com/zkarcher/FancyEPD/blob/master/FancyEPD_Demo/FancyEPD.cpp#L900 > [1] https://www.youtube.com/watch?v=MsbiO8EAsGw > ___ > dri-devel mailing list > dri-de...@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch

Re: [RFC PATCH 0/6] tiny: Add driver for gooddisplay epaper panels

2019-07-30 Thread Daniel Vetter
per.htm > [2] https://blog.jaseg.net/images/epaper3.jpg > [3] https://blog.jaseg.net/images/epaper1.jpg > [4] https://blog.jaseg.net/images/epaper2.jpg > [5] https://blog.jaseg.net/images/epaper4.jpg > [6] https://www.youtube.com/watch?v=MsbiO8EAsGw > [7] https://github.com/zkarcher/FancyEPD -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch

Re: [PATCH 0/1] This patch fixes connection detection for monitors w/o DDC.

2019-07-29 Thread Daniel Vetter
m_connector_to_dumb_vga(connector); > > + /* > +* If I2C bus for DDC is not defined, asume that the cable > +* is always connected. > +*/ > + if (PTR_ERR(vga->ddc) == -ENODEV) > + return connector_status_connected; > + > /* > * Even if we have an I2C bus, we can't assume that the cable > * is disconnected if drm_probe_ddc fails. Some cables don't > > -- > Best regards > Oleksandr Suvorov > > Toradex AG > Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 > 4800 (main line) -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch

Re: [RFC PATCH] fbcon: fix ypos over boundary issue

2019-07-24 Thread Daniel Vetter
pos : ypos - rows; > + if (rows == 0) > + return ypos; p->vrows == 0 looks like something that really should be impossible. Is this really needed to fix your bug? > + else > + return ypos < rows ? ypos : ypos % rows; This part here makes sense,

[PULL] drm-next fixes for -rc1

2019-07-19 Thread Daniel Vetter
flcn/gp102-: improve implementation of bind_context() on SEC2/GSP drm/nouveau/secboot/gp102-: remove WAR for SEC2 RTOS start bug Daniel Vetter (5): drm/komeda: Remove clock ratio property drm/komeda: remove slave_planes property drm/komeda: remove img_enhancement property

Re: DRM pull for v5.3-rc1

2019-07-15 Thread Daniel Vetter
On Mon, Jul 15, 2019 at 7:57 PM Jason Gunthorpe wrote: > > On Mon, Jul 15, 2019 at 07:53:06PM +0200, Daniel Vetter wrote: > > > > So, I'll put it on a topic and send you two a note next week to decide > > > if you want to merge it or not. I'm really unclear how nouveau'

Re: DRM pull for v5.3-rc1

2019-07-15 Thread Daniel Vetter
On Mon, Jul 15, 2019 at 5:04 PM Jason Gunthorpe wrote: > > On Mon, Jul 15, 2019 at 04:19:26PM +0200, Daniel Vetter wrote: > > > > Linus, do you have any advice on how best to handle sharing mm > > > patches? The hmm.git was mildly painful as it sits between quilt on

Re: DRM pull for v5.3-rc1

2019-07-15 Thread Daniel Vetter
return pra->fn(pte, NULL, addr, pra->data); > > + return pra->fn(pte, addr, pra->data); > > } > > I looked through this and it looks OK to me, thanks > > Jason -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch

Re: [PATCH] drm/bridge: sii902x: add audio graph card support

2019-07-11 Thread Daniel Vetter
On Thu, Jul 11, 2019 at 09:27:30AM +, Philippe CORNU wrote: > Hi Daniel, > > > On 7/10/19 5:27 PM, Daniel Vetter wrote: > > On Fri, Jul 05, 2019 at 12:41:03PM +, Philippe CORNU wrote: > >> Hi Olivier, > >> and many thanks for your patch. > >&

Re: [PATCH V3 4/5] drm/vkms: Compute CRC without change input data

2019-07-11 Thread Daniel Vetter
ffset + 24, 0, 8); > - crc = crc32_le(crc, vaddr_out + src_offset, > - sizeof(u32)); > + pixel = get_pixel_from_buffer(x, y, vaddr, composer); > + bitmap_clear((void *), 0, 8); > + crc = crc32_le(crc, (void *), sizeof(u32)); > } > } > > -- > 2.21.0 -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH V3 1/5] drm/vkms: Avoid assigning 0 for possible_crtc

2019-07-11 Thread Daniel Vetter
Rodrigo Siqueira Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/vkms/vkms_drv.c| 2 +- > drivers/gpu/drm/vkms/vkms_drv.h| 4 ++-- > drivers/gpu/drm/vkms/vkms_output.c | 6 +++--- > drivers/gpu/drm/vkms/vkms_plane.c | 4 ++-- > 4 files changed, 8 insertions(+), 8 deleti

Re: [PATCH] drm/komeda: Adds VRR support

2019-07-05 Thread Daniel Vetter
On Thu, Jul 4, 2019 at 5:41 PM Brian Starkey wrote: > > Hi, > > On Thu, Jul 04, 2019 at 11:57:00AM +0100, james qian wang (Arm Technology > China) wrote: > > On Wed, Jul 03, 2019 at 12:01:49PM +0200, Daniel Vetter wrote: > > > > > > Uh, what exactly ar

Re: [PATCH] drm/fourcc: Add Arm 16x16 block modifier

2019-06-24 Thread Daniel Vetter
On Mon, Jun 24, 2019 at 11:32 AM Brian Starkey wrote: > > Hi Daniel, > > On Fri, Jun 21, 2019 at 05:27:00PM +0200, Daniel Vetter wrote: > > On Fri, Jun 21, 2019 at 12:21 PM Raymond Smith > > wrote: > > > > > > Add the DRM_FORMAT_MOD_ARM_16X16_BL

Re: [PATCH] drm/fourcc: Add Arm 16x16 block modifier

2019-06-21 Thread Daniel Vetter
ma/panfrost people since I assume they'll be using this, too. Thanks, Daniel > + > +/* > * Allwinner tiled modifier > * > * This tiling mode is implemented by the VPU found on all Allwinner > platforms, > -- > 2.7.4 > -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch

Re: [PATCH 1/7] video: add HDMI state notifier support

2019-06-20 Thread Daniel Vetter
On Wed, Jun 19, 2019 at 07:48:11PM +0800, Cheng-yi Chiang wrote: > On Tue, Jun 18, 2019 at 8:12 PM Daniel Vetter wrote: > > > > On Tue, Jun 18, 2019 at 07:48:06PM +0800, Cheng-yi Chiang wrote: > > > On Tue, Jun 11, 2019 at 8:35 PM Daniel Vetter wrote: > > > >

Re: [PATCH 1/4] mm: Check if mmu notifier callbacks are allowed to fail

2019-06-19 Thread Daniel Vetter
On Wed, Jun 19, 2019 at 10:42 PM Jason Gunthorpe wrote: > > On Wed, Jun 19, 2019 at 10:18:43PM +0200, Daniel Vetter wrote: > > On Wed, Jun 19, 2019 at 10:13 PM Jason Gunthorpe wrote: > > > On Wed, Jun 19, 2019 at 09:57:15PM +0200, Daniel Vetter wrote: > > > >

Re: [PATCH v3 07/12] drm/virtio: remove ttm calls from in virtio_gpu_object_{reserve,unreserve}

2019-06-19 Thread Daniel Vetter
On Wed, Jun 19, 2019 at 11:04:15AM +0200, Gerd Hoffmann wrote: > Call reservation_object_* directly instead > of using ttm_bo_{reserve,unreserve}. > > v3: check for EINTR too. > > Signed-off-by: Gerd Hoffmann > Reviewed-by: Daniel Vetter > --- > drivers/gpu/d

Re: [PATCH v2 06/12] drm/virtio: remove ttm calls from in virtio_gpu_object_{reserve,unreserve}

2019-06-18 Thread Daniel Vetter
-ERESTARTSYS) { errno semantics change here, I think you now get EINTR. With that fixed: Reviewed-by: Daniel Vetter > struct virtio_gpu_device *qdev = > @@ -416,7 +416,7 @@ static inline int virtio_gpu_object_reserve(struct > virtio_gpu_object *bo) &

Re: [PATCH 3/6] drm/gem: use new ww_mutex_(un)lock_for_each macros

2019-06-14 Thread Daniel Vetter
On Fri, Jun 14, 2019 at 08:51:11PM +0200, Christian König wrote: > Am 14.06.19 um 20:24 schrieb Daniel Vetter: > > > > On Fri, Jun 14, 2019 at 8:10 PM Christian König > > wrote: > > > [SNIP] > > > WW_MUTEX_LOCK_BEGIN() > > > > > >

Re: [PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-13 Thread Daniel Vetter
On Wed, Jun 12, 2019 at 02:26:24AM +, james qian wang (Arm Technology China) wrote: > On Tue, Jun 11, 2019 at 02:30:38PM +0200, Daniel Vetter wrote: > > On Tue, Jun 11, 2019 at 11:13:45AM +, Lowry Li (Arm Technology China) > > wrote: > > > From: "L

Re: [PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-13 Thread Daniel Vetter
On Thu, Jun 13, 2019 at 09:28:13AM +0100, Liviu Dudau wrote: > On Thu, Jun 13, 2019 at 10:17:27AM +0200, Daniel Vetter wrote: > > On Wed, Jun 12, 2019 at 02:26:24AM +, james qian wang (Arm Technology > > China) wrote: > > > On Tue, Jun 11, 2019 at 02:30:38PM +0

Re: [PATCH v2 2/2] drm/komeda: Adds komeda_kms_drop_master

2019-06-13 Thread Daniel Vetter
On Thu, Jun 13, 2019 at 02:24:37PM +0100, Liviu Dudau wrote: > On Thu, Jun 13, 2019 at 11:08:14AM +0200, Daniel Vetter wrote: > > On Thu, Jun 13, 2019 at 09:28:13AM +0100, Liviu Dudau wrote: > > > On Thu, Jun 13, 2019 at 10:17:27AM +0200, Daniel Vetter wrote: > > > >

Re: Linux 5.1.9 build failure with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n

2019-06-11 Thread Daniel Vetter
On Tue, Jun 11, 2019 at 10:08:10PM +0300, Thomas Backlund wrote: > Den 11-06-2019 kl. 20:40, skrev Greg Kroah-Hartman: > > On Tue, Jun 11, 2019 at 07:33:16PM +0200, Daniel Vetter wrote: > > > On Tue, Jun 11, 2019 at 5:37 PM Greg Kroah-Hartman > > > wrote: > >

Re: Linux 5.1.9 build failure with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n

2019-06-11 Thread Daniel Vetter
On Tue, Jun 11, 2019 at 8:53 PM Sven Joachim wrote: > > On 2019-06-11 19:33 +0200, Daniel Vetter wrote: > > > On Tue, Jun 11, 2019 at 5:37 PM Greg Kroah-Hartman > > wrote: > >> On Tue, Jun 11, 2019 at 03:56:35PM +0200, Sven Joachim wrote: > >> > Co

Re: Linux 5.1.9 build failure with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n

2019-06-11 Thread Daniel Vetter
On Tue, Jun 11, 2019 at 7:40 PM Greg Kroah-Hartman wrote: > > On Tue, Jun 11, 2019 at 07:33:16PM +0200, Daniel Vetter wrote: > > On Tue, Jun 11, 2019 at 5:37 PM Greg Kroah-Hartman > > wrote: > > > On Tue, Jun 11, 2019 at 03:56:35PM +0200, Sven Joachim wrote: >

Re: Linux 5.1.9 build failure with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n

2019-06-11 Thread Daniel Vetter
pply in 5.1.9. > > > > Most likely 4.19.50 and 4.14.125 are also affected, I haven't tested > > them yet. > > They probably are. > > Should I just revert this patch in the stable tree, or add some other > patch (like the one pointed out here, which seems an odd patch for >

Re: [PATCH V2] drm/vkms: Avoid extra discount in the timestamp value

2019-06-05 Thread Daniel Vetter
would be a bug in the drm_vblank.c. Or at least it could be, I think I first need to better understand still what's going on here to decided that. I have a bit a hunch this is fallout from our vblank fudging, but I guess we'll see. It's definitely clear that things blow up if the vbl

Re: [RFC PATCH 1/1] drm/i915: Split off pci_driver.remove() tail to drm_driver.release()

2019-06-03 Thread Daniel Vetter
inconsistency > might catch us out if it is not one of the last cleanup actions). > > intel_uc_fini() is a bit of a mixed bag. It looks like it flushes > runtime state, so preferrably that flush should be moved to the > _fini_hw so that _fini is pure cleanup. So for the time being, best to > leave intel_uc_fini() here. > > > + mutex_unlock(_priv->drm.struct_mutex); > > + > > + i915_gem_drain_freed_objects(dev_priv); > > +} > > + > > +void i915_gem_fini(struct drm_i915_private *dev_priv) > > +{ > > + mutex_lock(_priv->drm.struct_mutex); > > i915_gem_contexts_fini(dev_priv); > > i915_gem_fini_scratch(dev_priv); > > mutex_unlock(_priv->drm.struct_mutex); > > That split looks sensible to me, with the consideration as to whether > defer intel_engines_cleanup() as well, > Reviewed-by: Chris Wilson > -Chris -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

[PATCH 11/33] fbdev/sh_mobile: remove sh_mobile_lcdc_display_notify

2019-05-28 Thread Daniel Vetter
It's dead code, and removing it avoids me having to understand what it's doing with lock_fb_info. v2: Also remove sh_mobile_lcdc_must_reconfigure, now unused (Sam). Signed-off-by: Daniel Vetter Reviewed-by: Geert Uytterhoeven (v1) Reviewed-by: Sam Ravnborg Reviewed-by: Maarten Lankhorst Cc

[PATCH 21/33] fbdev: directly call fbcon_suspended/resumed

2019-05-28 Thread Daniel Vetter
With the sh_mobile notifier removed we can just directly call the fbcon code here. v2: Remove now unused local variable. v3: fixup !CONFIG_FRAMEBUFFER_CONSOLE, noticed by kbuild Signed-off-by: Daniel Vetter Reviewed-by: Sam Ravnborg Reviewed-by: Maarten Lankhorst Cc: Bartlomiej

[PATCH 28/33] fbcon: replace FB_EVENT_MODE_CHANGE/_ALL with direct calls

2019-05-28 Thread Daniel Vetter
add a static inline to the dummy function. v4: Add missing #include to sh_mob (Sam). Cc: Sam Ravnborg Signed-off-by: Daniel Vetter Reviewed-by: Sam Ravnborg Reviewed-by: Maarten Lankhorst Cc: Maarten Lankhorst Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Cc: Bartlomiej Zolnierkiewicz

[PATCH 22/33] fbcon: Call fbcon_mode_deleted/new_modelist directly

2019-05-28 Thread Daniel Vetter
also don't really want to find out. So just do the simple conversion to a direct function call. v2: static inline for the dummy versions, I forgot. Signed-off-by: Daniel Vetter Reviewed-by: Sam Ravnborg Reviewed-by: Maarten Lankhorst Cc: Bartlomiej Zolnierkiewicz Cc: Daniel Vetter Cc: Hans de

[PATCH 04/33] vt: More locking checks

2019-05-24 Thread Daniel Vetter
had to deinline the con_is_visible function. Signed-off-by: Daniel Vetter Cc: Greg Kroah-Hartman Cc: Nicolas Pitre Cc: Martin Hostettler Cc: Adam Borowski Cc: Daniel Vetter Cc: Mikulas Patocka --- drivers/tty/vt/vt.c| 16 include/linux/console_struct.h | 5 +

[PATCH 13/33] fbdev: sysfs files can't disappear before the device is gone

2019-05-24 Thread Daniel Vetter
Which means lock_fb_info can never fail. Remove the error handling. Signed-off-by: Daniel Vetter Cc: Daniel Vetter Cc: Bartlomiej Zolnierkiewicz Cc: Rob Clark --- drivers/video/fbdev/core/fbsysfs.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/video

[PATCH 09/33] fbcon: Remove fbcon_has_exited

2019-05-24 Thread Daniel Vetter
This is unused code since commit 6104c37094e729f3d4ce65797002112735d49cd1 Author: Daniel Vetter Date: Tue Aug 1 17:32:07 2017 +0200 fbcon: Make fbcon a built-time depency for fbdev when fbcon was made a compile-time static dependency of fbdev. We can't exit fbcon anymore without exiting

[PATCH 01/33] dummycon: Sprinkle locking checks

2019-05-24 Thread Daniel Vetter
As part of trying to understand the locking (or lack thereof) in the fbcon/vt/fbdev maze, annotate everything. Signed-off-by: Daniel Vetter Cc: Bartlomiej Zolnierkiewicz Cc: Hans de Goede Cc: Daniel Vetter Cc: Greg Kroah-Hartman Cc: Kees Cook Cc: Nicolas Pitre --- drivers/video/console

[PATCH 08/33] fbcon: s/struct display/struct fbcon_display/

2019-05-24 Thread Daniel Vetter
This was formerly used in fbdev drivers (not sure why, predates most git history), but now it's entirely an fbcon internal thing. Give it a more specific name. Signed-off-by: Daniel Vetter Cc: Bartlomiej Zolnierkiewicz Cc: Daniel Vetter Cc: Hans de Goede Cc: Greg Kroah-Hartman Cc: Kees Cook

[PATCH 27/33] fb: Flatten control flow in fb_set_var

2019-05-24 Thread Daniel Vetter
NOW does nothing. This bug exists ever since this code was extracted as a common helper in 2002, hence I decided against fixing it. Everyone just better have a fb_check_var to make sure things work correctly. Signed-off-by: Daniel Vetter Cc: Daniel Vetter Cc: Bartlomiej Zolnierkiewicz Cc: &quo

[PATCH 26/33] fbdev: remove FBINFO_MISC_USEREVENT around fb_blank

2019-05-24 Thread Daniel Vetter
With the recursion broken in the previous patch we can drop the FBINFO_MISC_USEREVENT flag around calls to fb_blank - recursion prevention was it's only job. Signed-off-by: Daniel Vetter Cc: Daniel Vetter Cc: Bartlomiej Zolnierkiewicz Cc: Hans de Goede Cc: Yisheng Xie Cc: "Michał Mir

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