Re: [PATCH] drm/ttm: remove unused varibles

2020-11-20 Thread Christian König
Am 20.11.20 um 07:49 schrieb Tian Tao: fixed the following warnings drivers/gpu/drm/nouveau/nouveau_bo.c:1227:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/nouveau_bo.c:1251:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable]

Re: Linux 5.10-rc4

2020-11-20 Thread Thomas Zimmermann
Hi David Am 18.11.20 um 23:01 schrieb David Laight: From: Thomas Zimmermann Sent: 18 November 2020 19:37 Hi Am 18.11.20 um 19:10 schrieb Linus Torvalds: On Wed, Nov 18, 2020 at 4:12 AM David Laight wrote: I've got the 'splat' below during boot. This is an 8-core C2758 Atom cpu using the o

Re: [PATCH] drm/kmb: Fix possible oops in probe error handling

2020-11-20 Thread Dan Carpenter
On Fri, Nov 20, 2020 at 01:29:45AM +, Chrisanthus, Anitha wrote: > Hi Dan, > > > -Original Message- > > From: Dan Carpenter > > Sent: Monday, November 16, 2020 11:21 PM > > To: Chrisanthus, Anitha > > Cc: Dea, Edmund J ; David Airlie ; > > Daniel Vetter ; Sam Ravnborg ; dri- > > de..

[PATCH v2] drm/kmb: Fix possible oops in probe error handling

2020-11-20 Thread Dan Carpenter
If kmb_dsi_init() fails the "kmb->kmb_dsi" variable is an error pointer. The kernel will Oops when we pass it to kmb_dsi_host_unregister(). Fixes: 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display") Signed-off-by: Dan Carpenter --- v2: write a better commit message drivers/gpu/drm/kmb/kmb

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

2020-11-20 Thread Hans Verkuil
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 never miss a deadline because the > buffers aren't allocated or available. > > This means we cannot fix the v4l follow_pfn usage through > mmu_notifi

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

2020-11-20 Thread Hans Verkuil
On 19/11/2020 15:41, Daniel Vetter wrote: > It's the only user. This also garbage collects the CONFIG_FRAME_VECTOR > symbol from all over the tree (well just one place, somehow omap media > driver still had this in its Kconfig, despite not using it). > > Reviewed-by: John Hubbard > Acked-by: Maur

Re: [PATCH] drm/kmb: Remove an unnecessary NULL check

2020-11-20 Thread Sam Ravnborg
Hi Anitha. On Fri, Nov 20, 2020 at 01:19:06AM +, Chrisanthus, Anitha wrote: > Looks good to me. Can we get either an "Acked-by:" or "Reviewed-by:"? Then we can use this while applying. Any news on gettting commit access yourself? If not, then try to ping on the open ticket. Sam ___

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

2020-11-20 Thread Hans Verkuil
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 never miss a deadline because the >> buffers aren't allocated or available. >> >> This means we cannot fi

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

2020-11-20 Thread Tomasz Figa
On Fri, Nov 20, 2020 at 5:28 PM 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 never miss a deadline because the > >> buf

Re: [PATCH] drm/kmb: Remove an unnecessary NULL check

2020-11-20 Thread Thomas Zimmermann
Hi Am 20.11.20 um 09:21 schrieb Sam Ravnborg: Hi Anitha. On Fri, Nov 20, 2020 at 01:19:06AM +, Chrisanthus, Anitha wrote: Looks good to me. Can we get either an "Acked-by:" or "Reviewed-by:"? Then we can use this while applying. Any news on gettting commit access yourself? If not, then

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

2020-11-20 Thread Peilin Ye
On Thu, Nov 19, 2020 at 04:10:57PM +0100, Daniel Vetter wrote: > On Thu, Nov 19, 2020 at 9:33 AM Peilin Ye wrote: > > setfont seems to work fine, I tried Georgian-Fixed16 (256 chars) and > > Uni2-VGA16 (512 chars) under /usr/share/consolefonts/ in my Ubuntu box, > > including setting all consoles

Re: [PATCH 1/8] drm: Introduce an atomic_commit_setup function

2020-11-20 Thread Thomas Zimmermann
Hi Am 19.11.20 um 16:32 schrieb Daniel Vetter: On Thu, Nov 19, 2020 at 10:59:42AM +0100, Thomas Zimmermann wrote: Hi Am 13.11.20 um 16:29 schrieb Maxime Ripard: Private objects storing a state shared across all CRTCs need to be carefully handled to avoid a use-after-free issue. The proper wa

[PATCH] drm/dp: Add dpcd backlight control for 0x4c83 0x4f41

2020-11-20 Thread Kai-Chuan Hsieh
Signed-off-by: Kai-Chuan Hsieh --- drivers/gpu/drm/drm_dp_helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index deeed73f4ed6..6789e30a3cba 100644 --- a/drivers/gpu/drm/drm_dp_helper.c +++ b/drivers/gpu/drm/drm_dp_helpe

Re: [PATCH v3 07/23] mtd: spi-nor: hisi-sfc: Demote non-conformant kernel-doc

2020-11-20 Thread Miquel Raynal
On Mon, 2020-11-09 at 18:21:50 UTC, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/mtd/spi-nor/controllers/hisi-sfc.c:328: warning: Function parameter > or member 'np' not described in 'hisi_spi_nor_register' > drivers/mtd/spi-nor/controllers/hisi-sfc.c:328: war

Re: [PATCH] drm/mediatek: dsi: Modify horizontal front/back porch byte formula

2020-11-20 Thread Bilal Wasim
Hi CK, On Fri, 20 Nov 2020 07:23:35 +0800 Chun-Kuang Hu wrote: > From: CK Hu > > In the patch to be fixed, horizontal_backporch_byte become to large > for some panel, so roll back that patch. For small hfp or hbp panel, > using vm->hfront_porch + vm->hback_porch to calculate > horizontal_back

[PATCH] video: goldfishfb: remove casting dma_alloc_coherent

2020-11-20 Thread Xu Wang
Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/video/fbdev/goldfishfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c index 9c83ec3f8e1f..c2f386b35617 100644

Re: [PATCH v3 07/11] dt-bindings: phy: convert MIP DSI PHY binding to YAML schema

2020-11-20 Thread Chunfeng Yun
On Fri, 2020-11-20 at 07:38 +0800, Chun-Kuang Hu wrote: > Hi, Chunfeng: > > Chunfeng Yun 於 2020年11月18日 週三 下午4:21寫道: > > > > Convert MIPI DSI PHY binding to YAML schema mediatek,dsi-phy.yaml > > > > Cc: Chun-Kuang Hu > > Signed-off-by: Chunfeng Yun > > --- > > v3: new patch > > --- > > .../disp

Re: [PATCH v3 06/11] dt-bindings: phy: convert HDMI PHY binding to YAML schema

2020-11-20 Thread Chunfeng Yun
On Fri, 2020-11-20 at 07:42 +0800, Chun-Kuang Hu wrote: > Hi, Chunfeng: > > Chunfeng Yun 於 2020年11月18日 週三 下午4:21寫道: > > > > Convert HDMI PHY binding to YAML schema mediatek,hdmi-phy.yaml > > > > Cc: Chun-Kuang Hu > > Signed-off-by: Chunfeng Yun > > Reviewed-by: Rob Herring > > --- > > v3: add

[PATCH] drm/ttm: remove unused varibles

2020-11-20 Thread Tian Tao
fixed the following warnings drivers/gpu/drm/nouveau/nouveau_bo.c:1227:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/nouveau_bo.c:1251:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] Signed-off-by: Tian Tao --- drivers/g

Re: [PATCH v9 07/17] PM / devfreq: tegra30: Support interconnect and OPPs from device-tree

2020-11-20 Thread Dmitry Osipenko
18.11.2020 07:21, Viresh Kumar пишет: ... + /* legacy device-trees don't have OPP table and must be updated */ + if (!device_property_present(&pdev->dev, "operating-points-v2")) { + dev_err(&pdev->dev, + "OPP table not found, please update your device

general protection fault in drm_atomic_set_crtc_for_connector

2020-11-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:03430750 Add linux-next specific files for 20201116 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=123c946a50 kernel config: https://syzkaller.appspot.com/x/.config?x=a1c4c3f27041fdb8 dashboard

Re: [PATCH v2] drm: document drm_mode_get_connector

2020-11-20 Thread Simon Ser
On Thursday, November 19, 2020 4:06 PM, Daniel Vetter wrote: > > + /** > > +* @connection: Status of the connector. > > +* > > +* See enum drm_connector_status. > > Please add & so it becomes a link in the generated docs (and pls check > the link goes to the right pl

[PATCH v3] drm: document drm_mode_get_connector

2020-11-20 Thread Simon Ser
Document how to perform a GETCONNECTOR ioctl. Document the various struct fields. Also document how to perform a forced probe, and when should user-space do it. Signed-off-by: Simon Ser Reviewed-by: Daniel Vetter Cc: Pekka Paalanen --- include/uapi/drm/drm_mode.h | 78 +

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 never miss a deadline because the > >> buf

Re: [PATCH v2] drm: document drm_mode_get_connector

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 9:46 AM Simon Ser wrote: > > On Thursday, November 19, 2020 4:06 PM, Daniel Vetter wrote: > > > > + /** > > > +* @connection: Status of the connector. > > > +* > > > +* See enum drm_connector_status. > > > > Please add & so it becomes a link i

Re: [PATCH] video: goldfishfb: remove casting dma_alloc_coherent

2020-11-20 Thread Thomas Zimmermann
Hi Am 20.11.20 um 09:23 schrieb Xu Wang: Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/video/fbdev/goldfishfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfis

Re: [PATCH 4/5] drm/virtio: use fence_id when processing fences

2020-11-20 Thread Anthoine Bourgeois
On Wed, Nov 18, 2020 at 05:08:08PM -0800, Gurchetan Singh wrote: Currently, the fence ID, which can be used to identify a virtgpu fence, is the same as the fence sequence number. Let's use the fence_id name to clearly signal this. Signed-off-by: Gurchetan Singh Reviewed-by: Anthoine Bourgeoi

Re: [PATCH 5/5] drm/virtio: rename sync_seq and last_seq

2020-11-20 Thread Anthoine Bourgeois
On Wed, Nov 18, 2020 at 05:08:09PM -0800, Gurchetan Singh wrote: To be clearer about our intentions to associate sequence numbers and fence IDs, let's rename these variables. Signed-off-by: Gurchetan Singh Reviewed-by: Anthoine Bourgeois --- drivers/gpu/drm/virtio/virtgpu_debugfs.c | 4 ++-

Re: next/master bisection: baseline.dmesg.emerg on meson-gxbb-p200

2020-11-20 Thread Neil Armstrong
On 19/11/2020 19:35, Marc Zyngier wrote: > On 2020-11-19 18:13, Jerome Brunet wrote: >> On Thu 19 Nov 2020 at 19:04, Guillaume Tucker >> wrote: >> >>> Hi Marc, >>> >>> On 19/11/2020 11:58, Marc Zyngier wrote: On 2020-11-19 10:26, Neil Armstrong wrote: > On 19/11/2020 11:20, Marc Zyngier w

Re: [PATCH 1/8] drm: Introduce an atomic_commit_setup function

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 9:39 AM Thomas Zimmermann wrote: > > Hi > > Am 19.11.20 um 16:32 schrieb Daniel Vetter: > > On Thu, Nov 19, 2020 at 10:59:42AM +0100, Thomas Zimmermann wrote: > >> Hi > >> > >> Am 13.11.20 um 16:29 schrieb Maxime Ripard: > >>> Private objects storing a state shared across a

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: > > > > On Thu, Nov 12, 2020 at 08:11:02PM -0800, Jo

Re: [PATCH] drm/vboxvideo: Unmap iomem on probe-failure and remove

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 8:58 AM Dan Carpenter wrote: > > On Thu, Nov 19, 2020 at 08:30:59PM +0100, Daniel Vetter wrote: > > On Thu, Nov 19, 2020 at 6:51 PM Dan Carpenter > > wrote: > > > > > > On Thu, Nov 19, 2020 at 12:35:56PM +0100, Hans de Goede wrote: > > > > Hi, > > > > > > > > On 10/27/20

[PATCH 0/2] More meson HDMI fixes

2020-11-20 Thread Marc Zyngier
Guillaume reported that my earlier fixes for the meson HDMI driver broke another set of machines which are now exploding (clock not enabled). I have thus reconsidered the approach and came up with an alternative fix (enable a missing clock), which Guillaume confirmed to be working. Jerome pointed

[PATCH 1/2] drm/meson: dw-hdmi: Disable clocks on driver teardown

2020-11-20 Thread Marc Zyngier
The HDMI driver request clocks early, but never disable them, leaving the clocks on even when the driver is removed. Fix it by slightly refactoring the clock code, and register a devm action that will eventually disable/unprepare the enabled clocks. Signed-off-by: Marc Zyngier --- drivers/gpu/d

[PATCH 2/2] drm/meson: dw-hdmi: Enable the iahb clock early enough

2020-11-20 Thread Marc Zyngier
Instead of moving meson_dw_hdmi_init() around which breaks existing platform, let's enable the clock meson_dw_hdmi_init() depends on. This means we don't have to worry about this clock being enabled or not, depending on the boot-loader features. Fixes: b33340e33acd ("drm/meson: dw-hdmi: Ensure tha

[PATCH] drm: document drm_mode_modeinfo

2020-11-20 Thread Simon Ser
This allows `struct drm_mode_modeinfo` references to be linkified. Some descriptions are borrowed from struct drm_display_mode. Signed-off-by: Simon Ser Cc: Daniel Vetter --- include/uapi/drm/drm_mode.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/uapi/drm/dr

[PATCH 0/3] mmu_notifier fs fs_reclaim lockdep annotations

2020-11-20 Thread Daniel Vetter
Hi all, I've finally gotten around to polish of my lockdep anntotation patches from a while ago: https://lore.kernel.org/dri-devel/20200610194101.1668038-1-daniel.vet...@ffwll.ch/ That patch has been in -mm for a few days already, but it immediately hit some issues with xfs. Changes since v2: -

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

2020-11-20 Thread Daniel Vetter
fs_reclaim_acquire/release nicely catch recursion issues when allocating GFP_KERNEL memory against shrinkers (which gpu drivers tend to use to keep the excessive caches in check). For mmu notifier recursions we do have lockdep annotations since 23b68395c7c7 ("mm/mmu_notifiers: add a lockdep map for

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

2020-11-20 Thread Daniel Vetter
Extracted from slab.h, which seems to have the most complete version including the correct might_sleep() check. Roll it out to slob.c. Motivated by a discussion with Paul about possibly changing call_rcu behaviour to allocate memory, but only roughly every 500th call. There are a lot fewer places

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

2020-11-20 Thread Daniel Vetter
Since I butchered this I figured better to make sure we have testcases for this now. Since we only have a locking context for __GFP_FS that's the only thing we're testing right now. Cc: linux-fsde...@vger.kernel.org Cc: Dave Chinner Cc: Qian Cai Cc: linux-...@vger.kernel.org Cc: Thomas Hellström

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

2020-11-20 Thread Daniel Vetter
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: Thomas Hellstrom Date: Fri Jan 3 11:47:23 2014 +0100 drm/ttm: Correctly set page mapp

Re: next/master bisection: baseline.dmesg.emerg on meson-gxbb-p200

2020-11-20 Thread Marc Zyngier
On 2020-11-20 09:26, Neil Armstrong wrote: On 19/11/2020 19:35, Marc Zyngier wrote: diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meson/meson_dw_hdmi.c index 7f8eea494147..52af8ba94311 100644 --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c +++ b/drivers/gpu/drm/meson/meson_dw

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

2020-11-20 Thread Christian König
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 originally added in commit 58aa6622d32af7d2c08d45085f44c54554a16ed7 Author: Thomas Hellstrom Date: Fri Jan 3 11:47:23 20

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 originally added in > > > > commit 58aa6622d32af7d

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

2020-11-20 Thread Christian König
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 while trying to review Christian's patch series to stop looking at struct page for dma-buf imports. This was originally added in

Re: [PATCH] drm: document drm_mode_modeinfo

2020-11-20 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 10:46 AM Simon Ser wrote: > > This allows `struct drm_mode_modeinfo` references to be linkified. > > Some descriptions are borrowed from struct drm_display_mode. > > Signed-off-by: Simon Ser > Cc: Daniel Vetter > --- > include/uapi/drm/drm_mode.h | 18 ++

Re: Linux 5.10-rc4; graphics alignment

2020-11-20 Thread Thomas Zimmermann
Hi Am 20.11.20 um 10:52 schrieb David Laight: Hi David Am 18.11.20 um 23:01 schrieb David Laight: ... Did you try Daniel's suggestion of testing with the direct parent commit? (I was on holiday yesterday and didn't want to spend a sunny afternoon doing bisects.) Makes sense :) I've just

[Bug 210123] drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] - flip_done time out with vmwgfx

2020-11-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=210123 --- Comment #3 from Stefan Mayr (stefan+ker...@mayr-stefan.de) --- Did some more test with Kernel versions provided by SUSE: Kernel 5.0.13 - 6 days without issues Kernel 5.2.14 - 2 days until we got the error message Today I installed 5.1.16 and

[PATCH v2 01/10] drm/fb-helper: Call dirty helper after writing to fbdev

2020-11-20 Thread Thomas Zimmermann
If fbdev uses a shadow framebuffer, call the damage handler. Otherwise the update might not make it to the screen. v2: * mark virtual screen as dirty (Ville) Signed-off-by: Thomas Zimmermann Fixes: 222ec45f4c69 ("drm/fb_helper: Support framebuffers in I/O memory") Cc: Thomas Zimmermann

[PATCH v2 00/10] drm/fb-helper: Various fixes and cleanups

2020-11-20 Thread Thomas Zimmermann
Here's a number of fb-helper patches that have been piling up recently. Patches 1 to 3 fix bugs that I spotted while going through the code. Because of the way the fbdev code works, they have been avoided so far. Patches 4 to 10 cleanup damage handling for fbdev's shadow buffer and fix a few issu

[PATCH v2 03/10] drm/client: Depend on GEM object kmap ref-counting

2020-11-20 Thread Thomas Zimmermann
DRM client's vmap/vunmap functions don't allow for multiple vmap operations. Calling drm_client_buffer_vmap() twice returns the same mapping, then calling drm_client_buffer_vunmap() twice already unmaps on the first call. This leads to unbalanced vmap refcounts. Fix this by calling drm_gem_vmap() u

[PATCH v2 05/10] drm/fb-helper: Return early in dirty worker

2020-11-20 Thread Thomas Zimmermann
Returning early in the dirty worker if no update is required makes the code more readable. No functional changes are made. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/dr

[PATCH v2 08/10] drm/fb-helper: Restore damage area upon errors

2020-11-20 Thread Thomas Zimmermann
If the damage handling fails, restore the damage area. The next invocation of the damage worker will then perform the update. v2: * print a single warning if dirty callback fails (Daniel, Sebastian) * update comment Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_hel

[PATCH v2 04/10] drm/fb-helper: Rename dirty worker to damage worker

2020-11-20 Thread Thomas Zimmermann
The dirty worker handles all damage updates, instead of just calling the framebuffer's dirty callback. Rename it to damage worker. Also rename related variables accordingly. No functional changes are made. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 65 +++-

[PATCH v2 09/10] drm/fb-helper: Copy dma-buf map before flushing shadow fb

2020-11-20 Thread Thomas Zimmermann
Copy the vmap()'ed instance of struct dma_buf_map before modifying it, in case the implementation of vunmap() depends on the exact address. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/dr

[PATCH v2 10/10] drm/fb-helper: Acquire modeset lock around shadow-buffer flushing

2020-11-20 Thread Thomas Zimmermann
Flushing the fbdev's shadow buffer requires vmap'ing the BO memory, which in turn requires pinning the BO. While being pinned, the BO cannot be moved into VRAM for scanout. Consequently, a concurrent modeset operation that involves the fbdev framebuffer would likely fail. Resolve this problem be a

[PATCH v2 07/10] drm/fb-helper: Move damage blit code and its setup into separate routine

2020-11-20 Thread Thomas Zimmermann
Introduce a separate function for the blit code and its vmap setup. Done in preparation of additional changes. No functional changes are made. v2: * print a single warning if damage blitter fails Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 27 +

[PATCH v2 02/10] drm/fb-helper: Unmap client buffer during shutdown

2020-11-20 Thread Thomas Zimmermann
The fbdev helper's generic probe function establishes a mapping for framebuffers without shadow buffer. The clean-up function did not unmap the buffer object. Add the unmap operation. As fbdev devices are usally released during system shutdown, this has not been a problem in practice. Signed-off-

[PATCH v2 06/10] drm/fb-helper: Separate shadow-buffer flushing and calling dirty callback

2020-11-20 Thread Thomas Zimmermann
Flushing the shadow framebuffer and invoking the dirty callback are two separate operations, so do them seprately. The flush operation is paired with calls to vmap and vunmap. They are not needed for the dirty callback, which performs its own invocations if necessary. Signed-off-by: Thomas Zimmerm

[Bug 210123] drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] - flip_done time out with vmwgfx

2020-11-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=210123 --- Comment #4 from Stefan Mayr (stefan+ker...@mayr-stefan.de) --- I had another look at bug 208373: the inital reporter also uses vmwgfx and amdgpu is only mentioned in bug 208373, comment 2 -- You are receiving this mail because: You are watch

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

2020-11-20 Thread Hans Verkuil
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 Vetter wrote: The media model assumes that buffers are all preallocated, so that when a media pipeline is running

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 Vetter wrote: > The media model assumes that buffers

Re: [PATCH 2/2] drm/meson: dw-hdmi: Enable the iahb clock early enough

2020-11-20 Thread Guillaume Tucker
On 20/11/2020 09:42, Marc Zyngier wrote: > Instead of moving meson_dw_hdmi_init() around which breaks existing > platform, let's enable the clock meson_dw_hdmi_init() depends on. > This means we don't have to worry about this clock being enabled or > not, depending on the boot-loader features. > >

Re: [PATCH] drm/vboxvideo: Unmap iomem on probe-failure and remove

2020-11-20 Thread Dan Carpenter
On Fri, Nov 20, 2020 at 10:39:45AM +0100, Daniel Vetter wrote: > On Fri, Nov 20, 2020 at 8:58 AM Dan Carpenter > wrote: > > > > On Thu, Nov 19, 2020 at 08:30:59PM +0100, Daniel Vetter wrote: > > > On Thu, Nov 19, 2020 at 6:51 PM Dan Carpenter > > > wrote: > > > > > > > > On Thu, Nov 19, 2020 at

[Bug 208373] drm:drm_atomic_helper_wait_for_dependencies - drm_kms_helper - flip_done timed out

2020-11-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=208373 --- Comment #6 from Michel Dänzer (mic...@daenzer.net) --- The original report here is about the vmwgfx driver; issues with amdgpu should be tracked elsewhere. sander44, are you seeing any problem other than the messages? -- You are receiving t

[PATCH] drm: fix kernel-doc warnings for SCALING_FILTER

2020-11-20 Thread Simon Ser
This patch fixes the following kernel-doc warnings: /home/simon/src/linux/Documentation/gpu/drm-kms:466: ./drivers/gpu/drm/drm_crtc.c:236: WARNING: Unexpected indentation. /home/simon/src/linux/Documentation/gpu/drm-kms:466: ./drivers/gpu/drm/drm_crtc.c:237: WARNING: Block quote ends wit

Re: [PATCH 1/5] drm/virtio: suffix create blob call with _ioctl like any ioctl

2020-11-20 Thread Gerd Hoffmann
On Wed, Nov 18, 2020 at 05:08:05PM -0800, Gurchetan Singh wrote: > From: Anthoine Bourgeois > > For coherency, all ioctls are suffixed > > Signed-off-by: Anthoine Bourgeois All pushed to drm-misc-next. thanks, Gerd ___ dri-devel mailing list dri-

Re: [PATCH 2/2] drm/meson: dw-hdmi: Enable the iahb clock early enough

2020-11-20 Thread Marc Zyngier
On 2020-11-20 10:54, Guillaume Tucker wrote: On 20/11/2020 09:42, Marc Zyngier wrote: Instead of moving meson_dw_hdmi_init() around which breaks existing platform, let's enable the clock meson_dw_hdmi_init() depends on. This means we don't have to worry about this clock being enabled or not, dep

[PATCH v4 18/21] drm/tegra: Allocate per-engine channel in core code

2020-11-20 Thread Mikko Perttunen
To avoid duplication, allocate the per-engine shared channel in the core code instead. Once MLOCKs are implemented on Host1x side, we can also update this to avoid allocating a shared channel when MLOCKs are enabled. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/drm.c | 11 +++

[PATCH v4 13/21] gpu: host1x: Reset max value when freeing a syncpoint

2020-11-20 Thread Mikko Perttunen
With job recovery becoming optional, syncpoints may have a mismatch between their value and max value when freed. As such, when freeing, set the max value to the current value of the syncpoint so that it is in a sane state for the next user. Signed-off-by: Mikko Perttunen --- v3: * Use host1x_syn

[PATCH v4 00/21] Host1x/TegraDRM UAPI

2020-11-20 Thread Mikko Perttunen
Hi all, here's the fourth revision of the Host1x/TegraDRM UAPI proposal. The changes at a high level in this revision are: * Small bugfixes for issues reported by CI bots * Removal of not strictly required features like sync_file FDs, reservations, partial mappings etc. from the submit UAPI. *

[PATCH v4 17/21] drm/tegra: Set resv fields when importing/exporting GEMs

2020-11-20 Thread Mikko Perttunen
To allow sharing of implicit fences when exporting/importing dma_buf objects, set the 'resv' fields when importing or exporting GEM objects. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/gem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/

[PATCH v4 01/21] gpu: host1x: Use different lock classes for each client

2020-11-20 Thread Mikko Perttunen
To avoid false lockdep warnings, give each client lock a different lock class, passed from the initialization site by macro. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/bus.c | 7 --- include/linux/host1x.h | 9 - 2 files changed, 12 insertions(+), 4 deletions(-) diff --

[PATCH v4 04/21] gpu: host1x: Remove cancelled waiters immediately

2020-11-20 Thread Mikko Perttunen
Before this patch, cancelled waiters would only be cleaned up once their threshold value was reached. Make host1x_intr_put_ref process the cancellation immediately to fix this. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/intr.c | 14 +- 1 file changed, 9 insertions(+), 5 de

[PATCH v4 16/21] drm/tegra: Boot VIC during runtime PM resume

2020-11-20 Thread Mikko Perttunen
With the new UAPI implementation, engines are powered on and off when there are active jobs, and the core code handles channel allocation. To accommodate that, boot the engine as part of runtime PM instead of using the open_channel callback, which is not used by the new submit path. Signed-off-by:

[PATCH v4 05/21] gpu: host1x: Use HW-equivalent syncpoint expiration check

2020-11-20 Thread Mikko Perttunen
Make syncpoint expiration checks always use the same logic used by the hardware. This ensures that there are no race conditions that could occur because of the hardware triggering a syncpoint interrupt and then the driver disagreeing. One situation where this could occur is if a job incremented a

[PATCH v4 09/21] gpu: host1x: DMA fences and userspace fence creation

2020-11-20 Thread Mikko Perttunen
Add an implementation of dma_fences based on syncpoints. Syncpoint interrupts are used to signal fences. Additionally, after software signaling has been enabled, a 30 second timeout is started. If the syncpoint threshold is not reached within this period, the fence is signalled with an -ETIMEDOUT e

[PATCH v4 12/21] gpu: host1x: Add support for syncpoint waits in CDMA pushbuffer

2020-11-20 Thread Mikko Perttunen
Add support for inserting syncpoint waits in the CDMA pushbuffer. These waits need to be done in HOST1X class, while gather submitted by the application execute in engine class. Support is added by converting the gather list of job into a command list that can include both gathers and waits. When

[PATCH v4 10/21] gpu: host1x: Add no-recovery mode

2020-11-20 Thread Mikko Perttunen
Add a new property for jobs to enable or disable recovery i.e. CPU increments of syncpoints to max value on job timeout. This allows for a more solid model for hanged jobs, where userspace doesn't need to guess if a syncpoint increment happened because the job completed, or because job timeout was

Re: Linux 5.10-rc4; graphics alignment

2020-11-20 Thread Thomas Zimmermann
Hi Am 20.11.20 um 11:51 schrieb David Laight: From: Thomas Zimmermann Sent: 20 November 2020 10:14 ... Is there any way to bisect through the parts of the drm merge patch into v5.10-rc1 ? That ought to be quicker (and less error prone) than the bisect builds I was doing. Note that the stack

[PATCH v4 07/21] gpu: host1x: Introduce UAPI header

2020-11-20 Thread Mikko Perttunen
Add the userspace interface header, specifying interfaces for allocating and accessing syncpoints from userspace, and for creating sync_file based fences based on syncpoint thresholds. Signed-off-by: Mikko Perttunen --- include/uapi/linux/host1x.h | 134 1 fi

[PATCH v4 06/21] gpu: host1x: Cleanup and refcounting for syncpoints

2020-11-20 Thread Mikko Perttunen
Add reference counting for allocated syncpoints to allow keeping them allocated while jobs are referencing them. Additionally, clean up various places using syncpoint IDs to use host1x_syncpt pointers instead. Signed-off-by: Mikko Perttunen --- v4: Update from _free to _put in VI driver as well -

[PATCH v4 08/21] gpu: host1x: Implement /dev/host1x device node

2020-11-20 Thread Mikko Perttunen
Add the /dev/host1x device node, implementing the following functionality: - Reading syncpoint values - Allocating syncpoints (providing syncpoint FDs) - Incrementing syncpoints (based on syncpoint FD) Signed-off-by: Mikko Perttunen --- v4: * Put UAPI under CONFIG_DRM_TEGRA_STAGING v3: * Pass pr

[PATCH v4 21/21] drm/tegra: Add job firewall

2020-11-20 Thread Mikko Perttunen
Add a firewall that validates jobs before submission to ensure they don't do anything they aren't allowed to do, like accessing memory they should not access. The firewall is functionality-wise a copy of the firewall already implemented in gpu/host1x. It is copied here as it makes more sense for i

[PATCH v4 03/21] gpu: host1x: Show number of pending waiters in debugfs

2020-11-20 Thread Mikko Perttunen
Show the number of pending waiters in the debugfs status file. This is useful for testing to verify that waiters do not leak or accumulate incorrectly. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/debug.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git

[PATCH v4 11/21] gpu: host1x: Add job release callback

2020-11-20 Thread Mikko Perttunen
Add a callback field to the job structure, to be called just before the job is to be freed. This allows the job's submitter to clean up any of its own state, like decrement runtime PM refcounts. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/job.c | 3 +++ include/linux/host1x.h | 4 +++

[PATCH v4 14/21] gpu: host1x: Reserve VBLANK syncpoints at initialization

2020-11-20 Thread Mikko Perttunen
On T20-T148 chips, the bootloader can set up a boot splash screen with DC configured to increment syncpoint 26/27 at VBLANK. Because of this we shouldn't allow these syncpoints to be allocated until DC has been reset and will no longer increment them in the background. As such, on these chips, res

[PATCH v4 19/21] drm/tegra: Implement new UAPI

2020-11-20 Thread Mikko Perttunen
Implement the non-submission parts of the new UAPI, including channel management and memory mapping. The UAPI is under the CONFIG_DRM_TEGRA_STAGING config flag for now. Signed-off-by: Mikko Perttunen --- v4: * New patch, split out from combined UAPI + submit patch. --- drivers/gpu/drm/tegra/Make

[PATCH v4 02/21] gpu: host1x: Allow syncpoints without associated client

2020-11-20 Thread Mikko Perttunen
Syncpoints don't need to be associated with any client, so remove the property, and expose host1x_syncpt_alloc. This will allow allocating syncpoints without prior knowledge of the engine that it will be used with. Signed-off-by: Mikko Perttunen --- v3: * Clean up host1x_syncpt_alloc signature to

[PATCH v4 20/21] drm/tegra: Implement job submission part of new UAPI

2020-11-20 Thread Mikko Perttunen
Implement the job submission IOCTL with a minimum feature set. Signed-off-by: Mikko Perttunen --- v4: * Remove all features that are not strictly necessary. * Split into two patches. v3: * Remove WRITE_RELOC. Relocations are now patched implicitly when patching is needed. * Directly call PM run

[PATCH v4 15/21] drm/tegra: Add new UAPI to header

2020-11-20 Thread Mikko Perttunen
Update the tegra_drm.h UAPI header, adding the new proposed UAPI. The old staging UAPI is left in for now, with minor modification to avoid name collisions. Signed-off-by: Mikko Perttunen --- v4: * Remove features that are not strictly necessary * Remove padding/reserved fields in IOCTL structs w

Re: [PATCH v3] drm: document drm_mode_get_connector

2020-11-20 Thread Pekka Paalanen
On Fri, 20 Nov 2020 08:57:33 + Simon Ser wrote: > Document how to perform a GETCONNECTOR ioctl. Document the various > struct fields. Also document how to perform a forced probe, and when > should user-space do it. > > Signed-off-by: Simon Ser > Reviewed-by: Daniel Vetter > Cc: Pekka Paala

Re: [PATCH 1/3] drm/panel: s6e63m0: Fix and extend MCS table

2020-11-20 Thread Guido Günther
Hi Linus, The whole series looks good to me code wise so Reviewed-by: Guido Günther but i have no means to test the changes. Cheers, -- Guido On Tue, Nov 17, 2020 at 06:56:19PM +0100, Linus Walleij wrote: > Fix up the format of the manufacturer command set table > to be TAB-indented and lower

Re: [PATCH v2 0/6] drm/panel: mantix and st7703 fixes and additions

2020-11-20 Thread Guido Günther
Hi Linus, On Thu, Nov 19, 2020 at 09:35:17AM +0100, Linus Walleij wrote: > On Wed, Nov 18, 2020 at 9:29 AM Guido Günther wrote: > > > This adds new panel type to the mantix driver as found on the Librem 5 and > > fixes a glitch in the init sequence (affecting both panels). The fix is at > > the

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

2020-11-20 Thread Hans Verkuil
On 20/11/2020 11:51, Daniel Vetter wrote: > 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 Vetter wrot

Re: [PATCH 2/2] drm/meson: dw-hdmi: Enable the iahb clock early enough

2020-11-20 Thread Neil Armstrong
On 20/11/2020 12:10, Marc Zyngier wrote: > On 2020-11-20 10:54, Guillaume Tucker wrote: >> On 20/11/2020 09:42, Marc Zyngier wrote: >>> Instead of moving meson_dw_hdmi_init() around which breaks existing >>> platform, let's enable the clock meson_dw_hdmi_init() depends on. >>> This means we don't h

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

2020-11-20 Thread Tomasz Figa
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/2020 10:18, Daniel Vetter wrote: > >>> On Fri, Nov 20, 2020 at 9:28 AM Hans Verkuil wrote: > > On 20/11/2020 09:

Re: [PATCH 1/2] drm/meson: dw-hdmi: Disable clocks on driver teardown

2020-11-20 Thread Neil Armstrong
On 20/11/2020 10:42, Marc Zyngier wrote: > The HDMI driver request clocks early, but never disable them, leaving > the clocks on even when the driver is removed. > > Fix it by slightly refactoring the clock code, and register a devm > action that will eventually disable/unprepare the enabled clock

Re: [PATCH 2/2] drm/meson: dw-hdmi: Enable the iahb clock early enough

2020-11-20 Thread Neil Armstrong
On 20/11/2020 10:42, Marc Zyngier wrote: > Instead of moving meson_dw_hdmi_init() around which breaks existing > platform, let's enable the clock meson_dw_hdmi_init() depends on. > This means we don't have to worry about this clock being enabled or > not, depending on the boot-loader features. > >

Re: Linux 5.10-rc4; graphics alignment

2020-11-20 Thread Thomas Zimmermann
Hi Am 20.11.20 um 12:45 schrieb David Laight: From: Thomas Zimmermann Sent: 20 November 2020 11:27 ... You can use drm-tip for testing, where many of the DRM patches go through. https://cgit.freedesktop.org/drm/drm-tip/ It's fairly up-to-date. Any idea of tags either side of the 5.10

  1   2   >