Re: [PATCH 2/9] misc: Add Xilinx AI engine device driver

2020-12-14 Thread Daniel Vetter
On Fri, Dec 11, 2020 at 06:27:05PM -0800, Jiaying Liang wrote: > > On 12/9/20 4:47 AM, Daniel Vetter wrote: > > On Tue, Dec 08, 2020 at 11:54:57AM -0800, Jiaying Liang wrote: > > > On 12/8/20 9:12 AM, Nicolas Dufresne wrote: > > > > Le mercredi 18 novembre 2020 à

Re: [PATCH v3 0/9] Xilinx AI engine kernel driver

2020-12-11 Thread Daniel Vetter
ngine/ai-engine-interrupt.c > > create mode 100644 drivers/misc/xilinx-ai-engine/ai-engine-mem.c > > create mode 100644 drivers/misc/xilinx-ai-engine/ai-engine-part.c > > create mode 100644 drivers/misc/xilinx-ai-engine/ai-engine-res.c > > create mode 100644 drivers/misc/xilinx-ai-engine/ai-engine-reset.c > > create mode 100644 include/uapi/linux/xlnx-ai-engine.h > > > > -- > > 2.7.4 > > > > ___ > > dri-devel mailing list > > dri-de...@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > ___ > dri-devel mailing list > dri-de...@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 5:44 PM Thierry Reding wrote: > > On Thu, Dec 10, 2020 at 11:15:38AM +0100, Daniel Vetter wrote: > > On Wed, Dec 09, 2020 at 02:28:18PM -0600, Bjorn Andersson wrote: > > > On Tue 08 Dec 17:52 CST 2020, Daniel Vetter wrote: > > > > > &g

Re: [PATCH] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 1:06 PM Greg KH wrote: > > On Thu, Dec 10, 2020 at 12:26:01PM +0100, Daniel Vetter wrote: > > On Thu, Dec 10, 2020 at 11:55 AM Greg KH wrote: > > > > > > On Thu, Dec 10, 2020 at 11:27:27AM +0100, Daniel Vetter wrote: > > > > On T

Re: [PATCH] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 11:55 AM Greg KH wrote: > > On Thu, Dec 10, 2020 at 11:27:27AM +0100, Daniel Vetter wrote: > > On Thu, Dec 10, 2020 at 11:10:45AM +0100, Greg KH wrote: > > > On Thu, Dec 10, 2020 at 10:58:50AM +0100, Christian König wrote: > > > > In gene

Re: [PATCH] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2020-12-10 Thread Daniel Vetter
the time anyway. Also I thought sysfs was one value one file, dumping an entire list into dev_info_map with properties we'll need to extend (once you care about dma_resv you also want to know which attachments are dynamic) does not smell like sysfs design at all. So yeah, why? worksformeonandroidweneeditthere not good enough for uapi of something this core to how the gpu stack works on linux in general, at least imo. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-10 Thread Daniel Vetter
On Wed, Dec 09, 2020 at 02:28:18PM -0600, Bjorn Andersson wrote: > On Tue 08 Dec 17:52 CST 2020, Daniel Vetter wrote: > > > On Tue, Dec 08, 2020 at 04:02:16PM -0600, Bjorn Andersson wrote: > > > On Tue 08 Dec 06:47 CST 2020, Thierry Reding wrote: > > > > > &g

Re: [PATCH v3] drm/vkms: Add setup and testing information

2020-12-09 Thread Daniel Vetter
itle case (Daniel) > - Add examples to run tests directly (Daniel) > - Add examples to run subtests (Melissa) > > Changes in v3: > - Add example using run-tests.sh script(Daniel) Reviewed-by: Daniel Vetter > --- > Documentation/gpu/vkms.rst | 70 +++

Re: [PATCH 2/9] misc: Add Xilinx AI engine device driver

2020-12-09 Thread Daniel Vetter
On Tue, Dec 08, 2020 at 11:54:57AM -0800, Jiaying Liang wrote: > > On 12/8/20 9:12 AM, Nicolas Dufresne wrote: > > Le mercredi 18 novembre 2020 à 00:06 -0800, Wendy Liang a écrit : > > > Create AI engine device/partition hierarchical structure. > > > > > > Each AI engine device can have multiple

Re: [PATCH] drm/tidss: Use the new api devm_drm_irq_install

2020-12-09 Thread Daniel Vetter
On Wed, Dec 9, 2020 at 1:06 PM Tomi Valkeinen wrote: > > On 09/12/2020 13:56, Daniel Vetter wrote: > > On Wed, Dec 9, 2020 at 12:29 PM Tomi Valkeinen > > wrote: > >> > >> On 09/12/2020 02:48, Daniel Vetter wrote: > >>> On Tue, Dec 08, 2020

Re: [PATCH] drm/tidss: Use the new api devm_drm_irq_install

2020-12-09 Thread Daniel Vetter
On Wed, Dec 9, 2020 at 12:29 PM Tomi Valkeinen wrote: > > On 09/12/2020 02:48, Daniel Vetter wrote: > > On Tue, Dec 08, 2020 at 03:50:59PM +0800, Tian Tao wrote: > >> Use devm_drm_irq_install to register interrupts so that > >> drm_irq_uninstall is not needed to b

Re: [PATCH V2] drm/vkms: Add setup and testing information

2020-12-09 Thread Daniel Vetter
On Wed, Dec 9, 2020 at 12:33 PM Sumera Priyadarsini wrote: > > On Wed, Dec 9, 2020 at 6:24 AM Daniel Vetter wrote: > > > > On Wed, Dec 09, 2020 at 02:07:35AM +0530, Sumera Priyadarsini wrote: > > > Update the vkms documentation to contain steps to: > >

Re: [PATCH V2] drm/vkms: Add setup and testing information

2020-12-08 Thread Daniel Vetter
ys/devices/platform/vkms" > ./build/tests/kms_writeback > + > +You can also run subtests if you do not want to run the entire test:: > + > + sudo ./build/tests/kms_flip --run-subtest basic-plain-flip --device > "sys:/sys/devices/platform/vkms" > + sudo IGT_DEVIC

Re: [PATCH] drm/tidss: Use the new api devm_drm_irq_install

2020-12-08 Thread Daniel Vetter
gt; > drm_atomic_helper_shutdown(ddev); > > - drm_irq_uninstall(ddev); > - > #ifndef CONFIG_PM > /* If we don't have PM, we need to call suspend manually */ > dispc_runtime_suspend(tidss->dispc); > -- > 2.7.4 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH v3 4/6] drm/atomic: Avoid unused-but-set-variable warning on for_each_old_plane_in_state

2020-12-08 Thread Daniel Vetter
On Mon, Dec 07, 2020 at 11:20:58AM +0800, Liu Ying wrote: > Artifically use 'plane' and 'old_plane_state' to avoid 'not used' warning. > The precedent has already been set by other macros in the same file. > > Signed-off-by: Liu Ying Acked-by: Daniel Vetter I'm assuming someo

Re: [PATCH drm/hisilicon 0/3] support reading resolutions from EDID

2020-12-08 Thread Daniel Vetter
isilicon/hibmc/hibmc_drm_i2c.c | 98 > > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 45 +-- > 4 files changed, 157 insertions(+), 9 deletions(-) > create mode 100644 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c > > -- > 2.7.4 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-08 Thread Daniel Vetter
mething together with component.c, but that's more for collecting unrelated struct device into a logical one than splitting it up more. tldr; I think you can split this loop here at the bridge by untangling the pwm from the drm_bridge part sufficiently. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm/vkms: Add setup and testing information

2020-12-03 Thread Daniel Vetter
irectly: # tests/kms_flip --device drm:/dev/dri/card0 I'm not sure whether there's an option that's always going to select the vkms device. I'm also not sure you can pass these options to run-tests.sh, I kinda don't use that one myself ... Aside from that looks all good to me. -Daniel > + > TODO > > > -- > 2.25.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm/fb-helper: Add missed unlocks in setcmap_legacy()

2020-12-03 Thread Daniel Vetter
goto out; > > + } > > > > r = crtc->gamma_store; > > g = r + crtc->gamma_size; > > @@ -940,8 +944,9 @@ static int setcmap_legacy(struct fb_cmap *cmap, struct > > fb_info *info) > > ret =

Re: [PATCH 4.19 11/57] drm/atomic_helper: Stop modesets on unregistered connectors harder

2020-12-01 Thread Daniel Vetter
just against creative compilers doing funny stuff that might really break code logic. I guess for symmetry we could throw the WRITE_ONCE on the write side, but it really shouldn't matter, the entire thing is racy by design. We0d also only ever need the write once on the unregister call. -Daniel > > Best regards, > Pavel > -- > http://www.livejournal.com/~pavelmachek -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm/gma500: Fix error return code in psb_driver_load()

2020-11-30 Thread Daniel Vetter
t drm_device *dev, > unsigned long flags) > if (ret) > goto out_err; > > + ret = -ENOMEM; > + > dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, 0); > if (!dev_priv->mmu) > goto out_err; > -- > 2.25.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH v7 17/17] mm: add mmu_notifier argument to follow_pfn

2020-11-30 Thread Daniel Vetter
d when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: > https://github.com/0day-ci/linux/commits/Daniel-Vetter/follow_pfn-and-other-iomap-races/20201128-004421 > base: git://linuxtv.org/media_tree.git mast

[PATCH v7 02/17] drm/exynos: Use FOLL_LONGTERM for g2d cmdlists

2020-11-27 Thread Daniel Vetter
The exynos g2d interface is very unusual, but it looks like the userptr objects are persistent. Hence they need FOLL_LONGTERM. Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc

[PATCH v7 05/17] mm/frame-vector: Use FOLL_LONGTERM

2020-11-27 Thread Daniel Vetter
(VM_IO | VM_PFNMAP). Such ptes are marked with pte_mkspecial (which pup_fast rejects in the fastpath), and only architectures supporting that support the pin_user_pages_fast fastpath. Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungm

[PATCH v7 10/17] resource: Move devmem revoke code to resource framework

2020-11-27 Thread Daniel Vetter
. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org

[PATCH v7 08/17] PCI: Obey iomem restrictions for procfs mmap

2020-11-27 Thread Daniel Vetter
is loaded and using it. Fix this by adding the same iomem_is_exclusive() check we already have on the sysfs side in pci_mmap_resource(). Acked-by: Bjorn Helgaas References: 90a545e98126 ("restrict /dev/mem to idle io memory ranges") Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kee

[PATCH v7 11/17] sysfs: Support zapping of binary attr mmaps

2020-11-27 Thread Daniel Vetter
mmap support allowing to adjust the ->f_mapping makes no sense. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org C

[PATCH v7 14/17] media/videobuf1|2: Mark follow_pfn usage as unsafe

2020-11-27 Thread Daniel Vetter
rt io userptr operations on io memory"). Acked-by: Tomasz Figa Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infrad

[PATCH v7 15/17] vfio/type1: Mark follow_pfn as unsafe

2020-11-27 Thread Daniel Vetter
up an mmu_notifier ... somehow. Probably means any invalidate is a fatal fault for this vfio device, but then this shouldn't ever happen if userspace is reasonable. Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme

[PATCH v7 17/17] mm: add mmu_notifier argument to follow_pfn

2020-11-27 Thread Daniel Vetter
that. Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc

[PATCH v7 16/17] kvm: pass kvm argument to follow_pfn callsites

2020-11-27 Thread Daniel Vetter
subsystem. In most places this is solved by passing struct kvm * down the call stacks as an additional parameter, since that contains the mmu_notifier. Compile tested on all affected arch. Acked-by: Paolo Bonzini Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Kees Cook

[PATCH v7 13/17] mm: Add unsafe_follow_pfn

2020-11-27 Thread Daniel Vetter
u_notifier, and that's all _GPL stuff. Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc: lin

[PATCH v7 12/17] PCI: Revoke mappings like devmem

2020-11-27 Thread Daniel Vetter
ed-by: Dan Williams Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: Greg Kroah-Hartman Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-.

[PATCH v7 09/17] /dev/mem: Only set filp->f_mapping

2020-11-27 Thread Daniel Vetter
ner, since in e.g. drivers/gpu we don't do that. Per Dan this seems to be copypasta from places which do care about pagecache consistency, but not needed. Hence remove it for slightly less confusion. Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton

[PATCH v7 07/17] mm: Close race in generic_access_phys

2020-11-27 Thread Daniel Vetter
-...@vger.kernel.org Cc: linux-me...@vger.kernel.org Cc: Chris Wilson Signed-off-by: Daniel Vetter -- v2: Fix inversion in the retry check (John). v4: While at it, use offset_in_page (Chris Wilson) --- include/linux/mm.h | 3 ++- mm/memory.c| 46 +++-

[PATCH v7 03/17] misc/habana: Stop using frame_vector helpers

2020-11-27 Thread Daniel Vetter
marked with pte_mkspecial (which pup_fast rejects in the fastpath), and only architectures supporting that support the pin_user_pages_fast fastpath. Reviewed-by: John Hubbard Reviewed-by: Oded Gabbay Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Andrew Morton Cc: John

[PATCH v7 06/17] media: videobuf2: Move frame_vector into media subsystem

2020-11-27 Thread Daniel Vetter
-by: Tomasz Figa Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungmin Park Cc: Tomasz Figa Cc: Mauro Carvalho Chehab Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker

[PATCH v7 01/17] drm/exynos: Stop using frame_vector helpers

2020-11-27 Thread Daniel Vetter
marked with pte_mkspecial (which pup_fast rejects in the fastpath), and only architectures supporting that support the pin_user_pages_fast fastpath. Reviewed-by: John Hubbard Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Cc:

[PATCH v7 04/17] misc/habana: Use FOLL_LONGTERM for userptr

2020-11-27 Thread Daniel Vetter
These are persistent, not just for the duration of a dma operation. Reviewed-by: Oded Gabbay Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org

[PATCH v7 00/17] follow_pfn and other iomap races

2020-11-27 Thread Daniel Vetter
especially from the kvm and vfio side. Cheers, Daniel Daniel Vetter (17): drm/exynos: Stop using frame_vector helpers drm/exynos: Use FOLL_LONGTERM for g2d cmdlists misc/habana: Stop using frame_vector helpers misc/habana: Use FOLL_LONGTERM for userptr mm/frame-vector: Use FOLL_LONGTE

Re: [PATCH v6 00/17] follow_pfn and other iomap races

2020-11-27 Thread Daniel Vetter
On Fri, Nov 27, 2020 at 09:12:25AM -0400, Jason Gunthorpe wrote: > On Thu, Nov 19, 2020 at 03:41:29PM +0100, Daniel Vetter wrote: > > I feel like this is ready for some wider soaking. Since the remaining bits > > are all kinda connnected probably simplest if it all goes through -m

Re: [PATCH v2] fbdev: aty: SPARC64 requires FB_ATY_CT

2020-11-27 Thread Daniel Vetter
inux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like > that. > -- Linus Torvalds -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm/vboxvideo: Used the vram helper

2020-11-27 Thread Daniel Vetter
2,5 +32,4 @@ int vbox_mm_init(struct vbox_private *vbox) > void vbox_mm_fini(struct vbox_private *vbox) > { > arch_phys_wc_del(vbox->fb_mtrr); > - drm_vram_helper_release_mm(>ddev); > } > -- > 2.7.4 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm: imx: Move fbdev setup to before output polling

2020-11-27 Thread Daniel Vetter
joiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000 > > p;sdata=tgdaOJP2wK7eXFmOQlVdUa%2B7CRwZxOx99BCCMNE8iD0%3D > > mp;reserved=0 > > for some details on our validation testing, there's already a very basic > > fbdev > > testcase there. > > We had a look into the topic and came to the conclusion that we cannot do it > right now. We are lacking experience in the field and need to keep driving our > application development. > > Thus, with a heavy heart, we will instead implement a workaround which will > enable the LCD at boot time from user space. What works good for us is writing > to /sys/class/graphics/fb0/blank. I think this makes sense, the uapi for fbdev isn't so firmly established anyway. And it definitely doesn't hurt (at least on drm-kms drivers, where we no-op out changes that change nothing). Just in general, if you hit something like this, we're definitely interested in making fbdev a more well-defined uapi that can be relied upon a bit more across drivers. 20+ years after it landed, but hey if it keeps userspace happy, it imo makes sense. -Daniel > > Greetings, > Mark > > Building Technologies, Panel Software Fire (BT-FIR/ENG1-Grb) > Bosch Sicherheitssysteme GmbH | Postfach 11 11 | 85626 Grasbrunn | GERMANY | > www.boschsecurity.com > > Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 23118 > Aufsichtsratsvorsitzender: Christian Fischer; Geschäftsführung: Tanja > Rückert, Andreas Bartz, Thomas Quante > > 100 Years Bosch Building Technologies 1920-2020 -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm/ast: Fixed CVE for DP501

2020-11-26 Thread Daniel Vetter
( \ > > + pci_resource_start(ast->base.pdev, 0) + (unsigned > > long)ast->vram_size, \ > > + pci_resource_len(dev->pdev, 0) - ast->vram_size); > > Use pci_iomap_range() instead. The function's offset parameter is > vram_size, the function's maxlen parameter is 0. > > You also won't need pci_iounmap(). pci_iomap_range() sets up the cleanup > for you. > > > + if (!ast->reservedbuffer) { > > No braces around single-line branch. > > > + DRM_INFO("failed to map reserved buffer! \n"); > > Use drm_info() instead > > > + } > > + } > > + > > ret = ast_mode_config_init(ast); > > if (ret) > > return ERR_PTR(ret); > > diff --git a/drivers/gpu/drm/ast/ast_mm.c b/drivers/gpu/drm/ast/ast_mm.c > > index 8392ebde504b..c6fd24493fb3 100644 > > --- a/drivers/gpu/drm/ast/ast_mm.c > > +++ b/drivers/gpu/drm/ast/ast_mm.c > > @@ -90,6 +90,7 @@ int ast_mm_init(struct ast_private *ast) > > int ret; > > > > vram_size = ast_get_vram_size(ast); > > + ast->vram_size = (uint32_t) vram_size; > > You don't need to store vram_size. Look at dev->vram_mm->vram_size instead. > > > > > ret = drmm_vram_helper_init(dev, pci_resource_start(dev->pdev, 0), > > vram_size); > > -- > > 2.18.4 > > > > ___ > > dri-devel mailing list > > dri-de...@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5, 90409 Nürnberg, Germany > (HRB 36809, AG Nürnberg) > Geschäftsführer: Felix Imendörffer > ___ > dri-devel mailing list > dri-de...@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm/nouveau: fix relocations applying logic and a double-free

2020-11-25 Thread Daniel Vetter
On Mon, Nov 23, 2020 at 10:51:25AM +0100, Daniel Vetter wrote: > On Fri, Nov 20, 2020 at 4:23 PM Matti Hamalainen wrote: > > > > Commit 03e0d26fcf79 ("drm/nouveau: slowpath for pushbuf ioctl") included > > a logic-bug which results in the relocations not actu

Re: [PATCH] drm/ttm: don't set page->mapping

2020-11-25 Thread Daniel Vetter
On Wed, Nov 25, 2020 at 5:25 PM Daniel Vetter wrote: > > Random observation while trying to review Christian's patch series to > stop looking at struct page for dma-buf imports. > > This was originally added in > > commit 58aa6622d32af7d2c08d45085f44c54554a16ed7 > Author:

[PATCH v4 0/3] mmu_notifier vs fs_reclaim lockdep annotations

2020-11-25 Thread Daniel Vetter
. Last version that landed in -mm (v2) broke xfs pretty badly. Unfortuantely I don't have a working email from Qian anymore, who reported the xfs issue. Maybe Dave Chinner instead? Cheers, Daniel Daniel Vetter (3): mm: Track mmu notifiers in fs_reclaim_acquire/release mm: Extract might_alloc

[PATCH v4 2/3] mm: Extract might_alloc() debug check

2020-11-25 Thread Daniel Vetter
Cc: Michel Lespinasse Cc: Daniel Vetter Cc: Waiman Long Cc: Thomas Gleixner Cc: Randy Dunlap Cc: linux...@kvack.org Cc: linux-fsde...@vger.kernel.org Cc: Dave Chinner Cc: Qian Cai Cc: linux-...@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" Signed-off-by: Daniel Vetter --- inc

[PATCH v4 1/3] mm: Track mmu notifiers in fs_reclaim_acquire/release

2020-11-25 Thread Daniel Vetter
@kvack.org Cc: linux-r...@vger.kernel.org Cc: Maarten Lankhorst Cc: Christian König Cc: "Matthew Wilcox (Oracle)" Signed-off-by: Daniel Vetter --- mm/mmu_notifier.c | 7 --- mm/page_alloc.c | 31 --- 2 files changed, 20 insertions(+), 18

[PATCH v4 3/3] locking/selftests: Add testcases for fs_reclaim

2020-11-25 Thread Daniel Vetter
-...@vger.kernel.org Cc: Thomas Hellström (Intel) Cc: Andrew Morton Cc: Jason Gunthorpe Cc: linux...@kvack.org Cc: linux-r...@vger.kernel.org Cc: Maarten Lankhorst Cc: Christian König Cc: "Matthew Wilcox (Oracle)" Signed-off-by: Daniel Vetter Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Will

[PATCH] drm/ttm: don't set page->mapping

2020-11-25 Thread Daniel Vetter
this, so another small thing we could standardize between drm and ttm drivers. Plus I don't really see a need for unamp_mapping_range where we don't want to indiscriminately shoot down all ptes. Cc: Thomas Hellstrom Cc: Brian Paul Signed-off-by: Daniel Vetter Cc: Christian Koenig Cc: Huang Rui

Re: [REGRESSION] omapdrm/N900 display broken

2020-11-25 Thread Daniel Vetter
sure why the bridge state would not be there. Lack of state on first modeset usually means your drm_mode_config_reset didn't create one. Or whatever it is you're using. I didn't look whether you're wiring this up correctly or not. We might even want to add a ->reset function to drm_priv

Re: [PATCH v6 17/17] RFC: mm: add mmu_notifier argument to follow_pfn

2020-11-25 Thread Daniel Vetter
On Wed, Nov 25, 2020 at 9:13 AM Jason Gunthorpe wrote: > > On Tue, Nov 24, 2020 at 03:28:14PM +0100, Daniel Vetter wrote: > > On Fri, Nov 20, 2020 at 02:30:29PM -0400, Jason Gunthorpe wrote: > > > On Thu, Nov 19, 2020 at 03:41:46PM +0100, Daniel Vetter wrote: > &g

Re: [PATCH 2/3] mm: Extract might_alloc() debug check

2020-11-24 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 02:07:19PM -0400, Jason Gunthorpe wrote: > On Fri, Nov 20, 2020 at 10:54:43AM +0100, Daniel Vetter wrote: > > diff --git a/include/linux/sched/mm.h b/include/linux/sched/mm.h > > index d5ece7a9a403..f94405d43fd1 100644 > > --- a/include/linux/sched/m

Re: [PATCH v6 17/17] RFC: mm: add mmu_notifier argument to follow_pfn

2020-11-24 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 02:30:29PM -0400, Jason Gunthorpe wrote: > On Thu, Nov 19, 2020 at 03:41:46PM +0100, Daniel Vetter wrote: > > @@ -4805,21 +4824,15 @@ EXPORT_SYMBOL(follow_pte_pmd); > > * Return: zero and the pfn at @pfn on success, -ve otherwise. > > */ >

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-24 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 09:23:12PM +0900, Tomasz Figa wrote: > On Fri, Nov 20, 2020 at 9:08 PM Hans Verkuil wrote: > > > > On 20/11/2020 11:51, Daniel Vetter wrote: > > > On Fri, Nov 20, 2020 at 11:39 AM Hans Verkuil wrote: > > >> > > >> On 20/11

Re: [PATCH] drm/nouveau: fix relocations applying logic and a double-free

2020-11-23 Thread Daniel Vetter
hed code had a leftover u_free() call, > which, after fixing the logic, now got called and resulted in a > double-free. Fix by removing one u_free(), moving the other > and adding check for errors. > > Cc: Daniel Vetter > Cc: Ben Skeggs > Cc: nouv...@lists.freedesktop.org >

Re: [PATCH 2/3] mm: Extract might_alloc() debug check

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 6:20 PM Randy Dunlap wrote: > > Hi, > > On 11/20/20 1:54 AM, Daniel Vetter wrote: > > diff --git a/include/linux/sched/mm.h b/include/linux/sched/mm.h > > index d5ece7a9a403..f94405d43fd1 100644 > > --- a/include/linux/sched/mm.h >

Re: [PATCH v6 16/17] RFC: kvm: pass kvm argument to follow_pfn callsites

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 4:33 PM Paolo Bonzini wrote: > > On 19/11/20 15:41, Daniel Vetter wrote: > > Both Christoph Hellwig and Jason Gunthorpe suggested that usage of > > follow_pfn by modules should be locked down more. To do so callers > > need to be able to pass the m

Re: [PATCH] drm/ttm: don't set page->mapping

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 11:08:31AM +0100, Christian König wrote: > Am 20.11.20 um 11:05 schrieb Daniel Vetter: > > On Fri, Nov 20, 2020 at 11:04 AM Christian König > > wrote: > > > Am 20.11.20 um 10:54 schrieb Daniel Vetter: > > > > Random observation whil

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 11:39 AM Hans Verkuil wrote: > > On 20/11/2020 10:18, Daniel Vetter wrote: > > On Fri, Nov 20, 2020 at 9:28 AM Hans Verkuil wrote: > >> > >> On 20/11/2020 09:06, Hans Verkuil wrote: > >>> On 19/11/2020 15:41, Daniel Ve

Re: [PATCH] drm/ttm: don't set page->mapping

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 11:04 AM Christian König wrote: > > Am 20.11.20 um 10:54 schrieb Daniel Vetter: > > Random observation while trying to review Christian's patch series to > > stop looking at struct page for dma-buf imports. > > > > This was orig

[PATCH 1/3] mm: Track mmu notifiers in fs_reclaim_acquire/release

2020-11-20 Thread Daniel Vetter
.@vger.kernel.org Cc: Maarten Lankhorst Cc: Christian König Cc: "Matthew Wilcox (Oracle)" Signed-off-by: Daniel Vetter --- mm/mmu_notifier.c | 7 --- mm/page_alloc.c | 31 --- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/mm/mmu_notifi

[PATCH 2/3] mm: Extract might_alloc() debug check

2020-11-20 Thread Daniel Vetter
. McKenney Cc: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Cc: Andrew Morton Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Vlastimil Babka Cc: Mathieu Desnoyers Cc: Sebastian Andrzej Siewior Cc: Michel Lespinasse Cc: Daniel Vetter Cc: Waiman Long Cc: Thomas Gleixner Cc

[PATCH 3/3] locking/selftests: Add testcases for fs_reclaim

2020-11-20 Thread Daniel Vetter
Hellström (Intel) Cc: Andrew Morton Cc: Jason Gunthorpe Cc: linux...@kvack.org Cc: linux-r...@vger.kernel.org Cc: Maarten Lankhorst Cc: Christian König Cc: "Matthew Wilcox (Oracle)" Signed-off-by: Daniel Vetter Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Will Deacon Cc: linux-kernel@vger.

[PATCH] drm/ttm: don't set page->mapping

2020-11-20 Thread Daniel Vetter
this, so another small thing we could standardize between drm and ttm drivers. Plus I don't really see a need for unamp_mapping_range where we don't want to indiscriminately shoot down all ptes. Cc: Thomas Hellstrom Cc: Brian Paul Signed-off-by: Daniel Vetter Cc: Christian Koenig Cc: Huang Rui

[PATCH 0/3] mmu_notifier fs fs_reclaim lockdep annotations

2020-11-20 Thread Daniel Vetter
all very much welcome. Cheers, Daniel Daniel Vetter (3): mm: Track mmu notifiers in fs_reclaim_acquire/release mm: Extract might_alloc() debug check locking/selftests: Add testcases for fs_reclaim include/linux/sched/mm.h | 16 ++ lib/locking-selftest.c | 47

Re: [PATCH v5 0/7] dma-buf: Performance improvements for system heap & a system-uncached implementation

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 7:32 AM Sumit Semwal wrote: > > Hi Daniel, > > > On Wed, 18 Nov 2020 at 13:16, Daniel Vetter wrote: > > > > On Wed, Nov 18, 2020 at 3:40 AM John Stultz wrote: > > > On Fri, Nov 13, 2020 at 12:39 PM Daniel Vetter wrote: > > &g

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 9:28 AM Hans Verkuil wrote: > > On 20/11/2020 09:06, Hans Verkuil wrote: > > On 19/11/2020 15:41, Daniel Vetter wrote: > >> The media model assumes that buffers are all preallocated, so that > >> when a media pipeline is running we

Re: [PATCH v3 0/5] console: Miscellaneous clean-ups, do not use FNTCHARCNT() in fbcon.c

2020-11-19 Thread Daniel Vetter
rly. tbh I'll just go ahead and delete it if it's broken :-) Userspace we have to keep working (and there's actually people creating new products on top of drm display drivers using fbdev emulation and /dev/fb/0 interface!), but kernel internal stuff like fbcon acceleration we can trim

[PATCH v6 01/17] drm/exynos: Stop using frame_vector helpers

2020-11-19 Thread Daniel Vetter
marked with pte_mkspecial (which pup_fast rejects in the fastpath), and only architectures supporting that support the pin_user_pages_fast fastpath. Reviewed-by: John Hubbard Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Cc:

[PATCH v6 04/17] misc/habana: Use FOLL_LONGTERM for userptr

2020-11-19 Thread Daniel Vetter
These are persistent, not just for the duration of a dma operation. Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung

[PATCH v6 06/17] media: videobuf2: Move frame_vector into media subsystem

2020-11-19 Thread Daniel Vetter
-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungmin Park Cc: Tomasz Figa Cc: Mauro Carvalho Chehab Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc

[PATCH v6 07/17] mm: Close race in generic_access_phys

2020-11-19 Thread Daniel Vetter
-...@vger.kernel.org Cc: linux-me...@vger.kernel.org Cc: Chris Wilson Signed-off-by: Daniel Vetter -- v2: Fix inversion in the retry check (John). v4: While at it, use offset_in_page (Chris Wilson) --- include/linux/mm.h | 3 ++- mm/memory.c| 46 +++-

[PATCH v6 05/17] mm/frame-vector: Use FOLL_LONGTERM

2020-11-19 Thread Daniel Vetter
(VM_IO | VM_PFNMAP). Such ptes are marked with pte_mkspecial (which pup_fast rejects in the fastpath), and only architectures supporting that support the pin_user_pages_fast fastpath. Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungm

[PATCH v6 08/17] mm: Add unsafe_follow_pfn

2020-11-19 Thread Daniel Vetter
u_notifier, and that's all _GPL stuff. Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc: lin

[PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-19 Thread Daniel Vetter
rt io userptr operations on io memory"). Acked-by: Tomasz Figa Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infrad

[PATCH v6 10/17] vfio/type1: Mark follow_pfn as unsafe

2020-11-19 Thread Daniel Vetter
up an mmu_notifier ... somehow. Probably means any invalidate is a fatal fault for this vfio device, but then this shouldn't ever happen if userspace is reasonable. Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme

[PATCH v6 11/17] PCI: Obey iomem restrictions for procfs mmap

2020-11-19 Thread Daniel Vetter
is loaded and using it. Fix this by adding the same iomem_is_exclusive() check we already have on the sysfs side in pci_mmap_resource(). Acked-by: Bjorn Helgaas References: 90a545e98126 ("restrict /dev/mem to idle io memory ranges") Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kee

[PATCH v6 00/17] follow_pfn and other iomap races

2020-11-19 Thread Daniel Vetter
(which required some sysfs changes). Does indeed look a lot cleaner and a lot less invasive than I feared at first. I feel like this is ready for some wider soaking. Since the remaining bits are all kinda connnected probably simplest if it all goes through -mm. Cheers, Daniel Daniel Vetter (17

[PATCH v6 14/17] sysfs: Support zapping of binary attr mmaps

2020-11-19 Thread Daniel Vetter
mmap support allowing to adjust the ->f_mapping makes no sense. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org C

[PATCH v6 17/17] RFC: mm: add mmu_notifier argument to follow_pfn

2020-11-19 Thread Daniel Vetter
for the correct mm_struct. Motivated by discussions with Christoph Hellwig and Jason Gunthorpe. Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc

[PATCH v6 15/17] PCI: Revoke mappings like devmem

2020-11-19 Thread Daniel Vetter
ed-by: Dan Williams Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: Greg Kroah-Hartman Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-.

[PATCH v6 16/17] RFC: kvm: pass kvm argument to follow_pfn callsites

2020-11-19 Thread Daniel Vetter
subsystem. In most places this is solved by passing struct kvm * down the call stacks as an additional parameter, since that contains the mmu_notifier. Compile tested on all affected arch. Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc

[PATCH v6 12/17] /dev/mem: Only set filp->f_mapping

2020-11-19 Thread Daniel Vetter
ner, since in e.g. drivers/gpu we don't do that. Per Dan this seems to be copypasta from places which do care about pagecache consistency, but not needed. Hence remove it for slightly less confusion. Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton

[PATCH v6 02/17] drm/exynos: Use FOLL_LONGTERM for g2d cmdlists

2020-11-19 Thread Daniel Vetter
The exynos g2d interface is very unusual, but it looks like the userptr objects are persistent. Hence they need FOLL_LONGTERM. Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc

[PATCH v6 13/17] resource: Move devmem revoke code to resource framework

2020-11-19 Thread Daniel Vetter
. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Daniel Vetter Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: linux...@kvack.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org

[PATCH v6 03/17] misc/habana: Stop using frame_vector helpers

2020-11-19 Thread Daniel Vetter
marked with pte_mkspecial (which pup_fast rejects in the fastpath), and only architectures supporting that support the pin_user_pages_fast fastpath. Reviewed-by: John Hubbard Signed-off-by: Daniel Vetter Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Gli

Re: [PATCH] x86/gpu: add JSL stolen memory support

2020-11-19 Thread Daniel Vetter
On Thu, Nov 19, 2020 at 12:14 AM Bjorn Helgaas wrote: > > On Wed, Nov 18, 2020 at 10:57:26PM +0100, Daniel Vetter wrote: > > On Wed, Nov 18, 2020 at 5:02 PM Bjorn Helgaas wrote: > > > On Fri, Nov 06, 2020 at 10:39:16AM +0100, Daniel Vetter wrote: > > > > On

Re: Linux 5.10-rc4

2020-11-18 Thread Daniel Vetter
1.086755] entry_SYSCALL_64_after_hwframe+0x44/0xa9 > > >> [ 21.091813] RIP: 0033:0x7f5b3cf1350b > > >> [ 21.095403] Code: 0f 1e fa 48 8b 05 85 39 0d 00 64 c7 00 26 00 00 00 > > >> 48 c7 c0 ff ff ff ff c3 66 > > 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 > > c3 48 8b 0d 55 39 0d 00 f7 > > d8 64 89 01 48 > > >> [ 21.114154] RSP: 002b:7ffef1966588 EFLAGS: 0246 ORIG_RAX: > > >> 0010 > > >> [ 21.121730] RAX: ffda RBX: 7ffef19665c0 RCX: > > >> 7f5b3cf1350b > > >> [ 21.128870] RDX: 7ffef19665c0 RSI: c02464bb RDI: > > >> 0009 > > >> [ 21.136013] RBP: c02464bb R08: 0040 R09: > > >> 0004 > > >> [ 21.143157] R10: 0002 R11: 0246 R12: > > >> 561ec9d10060 > > >> [ 21.150295] R13: 0009 R14: 561eca2cc9a0 R15: > > >> 0040 > > > > -- > > Thomas Zimmermann > > Graphics Driver Developer > > SUSE Software Solutions Germany GmbH > > Maxfeldstr. 5, 90409 Nürnberg, Germany > > (HRB 36809, AG Nürnberg) > > Geschäftsführer: Felix Imendörffer > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 > 1PT, UK > Registration No: 1397386 (Wales) -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] x86/gpu: add JSL stolen memory support

2020-11-18 Thread Daniel Vetter
On Wed, Nov 18, 2020 at 5:02 PM Bjorn Helgaas wrote: > > On Fri, Nov 06, 2020 at 10:39:16AM +0100, Daniel Vetter wrote: > > On Thu, Nov 5, 2020 at 3:17 PM Bjorn Helgaas wrote: > > > On Thu, Nov 05, 2020 at 11:46:06AM +0200, Joonas Lahtinen wrote: > > > > Quotin

Re: [PATCH] drm/via: fix assignment in if condition

2020-11-18 Thread Daniel Vetter
cmd = *buf; > + if (cmd == HALCYON_HEADER2) > state = state_header2; > else if ((cmd & HALCYON_HEADER1MASK) == HALCYON_HEADER1) > state = state_header1; > -- > 2.29.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm: imx: Move fbdev setup to before output polling

2020-11-18 Thread Daniel Vetter
king state at all, so this is probably all ill-defined. Important part is to do this only for the user fb_open case, since fbcon will do its own thing too. Plus I guess we need to document that this is the uapi we're having for fbdev clients, so ideally this should be cc'ed widely so we can get some acks from former fbdev maintainers. Also ideally we'd have an igt for this uapi to make sure it never breaks again. Something like: 1. open the kms driver for this, make sure display is completely off. 2. close kms file 3. open fbdev file 4. check (through opening kms side again) that the display has been enabled. See https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#validating-changes-with-igt for some details on our validation testing, there's already a very basic fbdev testcase there. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH] drm: imx: Move fbdev setup to before output polling

2020-11-18 Thread Daniel Vetter
probably also delay the hotplug handling until the first open. fbcon also fake-opens the fbdev file, so it's the same code path. -Daniel > > Best regards > Thomas > > > return 0; > > > > err_poll_fini: > > > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5, 90409 Nürnberg, Germany > (HRB 36809, AG Nürnberg) > Geschäftsführer: Felix Imendörffer -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch

Re: [PATCH v5 0/7] dma-buf: Performance improvements for system heap & a system-uncached implementation

2020-11-17 Thread Daniel Vetter
On Wed, Nov 18, 2020 at 3:40 AM John Stultz wrote: > On Fri, Nov 13, 2020 at 12:39 PM Daniel Vetter wrote: > > On Thu, Nov 12, 2020 at 08:11:02PM -0800, John Stultz wrote: > > > On Thu, Nov 12, 2020 at 1:32 AM Daniel Vetter wrote: > > > > On Thu, Nov 12, 2020 at

Re: [PATCH 42/42] include/drm/drm_atomic: Make use of 'new_crtc_state'

2020-11-17 Thread Daniel Vetter
el build warning(s): > > drivers/gpu/drm/imx/ipuv3-plane.c: In function ‘ipu_planes_assign_pre’: > drivers/gpu/drm/imx/ipuv3-plane.c:746:42: warning: variable ‘crtc_state’ set > but not used [-Wunused-but-set-variable] > > Cc: Philipp Zabel > Cc: David Airlie > Cc: Da

Re: [PATCH 38/42] drm/vc4/vc4_hdmi: Remove set but unused variable 'ret'

2020-11-17 Thread Daniel Vetter
Wunused-but-set-variable] > > Cc: Eric Anholt > Cc: Maxime Ripard > Cc: David Airlie > Cc: Daniel Vetter > Cc: Philipp Zabel > Cc: Rob Clark > Cc: dri-de...@lists.freedesktop.org > Signed-off-by: Lee Jones Hm this is another where I think the right thing to do is swi

Re: [PATCH 32/42] drm/ttm/ttm_tt: Demote kernel-doc header format abuses

2020-11-17 Thread Daniel Vetter
Documentation area. > > See: scripts/find-unused-docs.sh ttm docs need some serious love anyway, so I think this is fine. I applied it. -Daniel > > > > Cc: Christian Koenig > > > Cc: Huang Rui > > > Cc: David Airlie > > > Cc: Daniel Vetter &

Re: [PATCH 03/42] drm/drm_dp_mst_topology: Remove set but never used variable 'len'

2020-11-17 Thread Daniel Vetter
On Tue, Nov 17, 2020 at 06:13:40PM +, Lee Jones wrote: > On Tue, 17 Nov 2020, Lee Jones wrote: > > > On Tue, 17 Nov 2020, Daniel Vetter wrote: > > > > > On Mon, Nov 16, 2020 at 05:40:33PM +, Lee Jones wrote: > > > > Fixes t

<    1   2   3   4   5   6   7   8   9   10   >