Re: [PATCH v2 2/5] clk: qcom: Allow custom reset ops

2022-08-18 Thread Krzysztof Kozlowski
On 17/08/2022 17:57, Akhil P Oommen wrote: Thank you for your patch. There is something to discuss/improve. > > return regmap_update_bits(rst->regmap, map->reg, mask, 0); > diff --git a/drivers/clk/qcom/reset.h b/drivers/clk/qcom/reset.h > index 2a08b5e..d4213b4 100644 > --- a/drivers/clk

Re: [PATCH v2 4/5] clk: qcom: gpucc-sc7280: Add cx collapse reset support

2022-08-18 Thread Krzysztof Kozlowski
On 17/08/2022 17:57, Akhil P Oommen wrote: > Allow a consumer driver to poll for cx gdsc collapse through Reset > framework. > > Signed-off-by: Akhil P Oommen > --- > > Changes in v2: > - Minor update to use the updated custom reset ops implementation > > drivers/clk/qcom/gpucc-sc7280.c | 10 +

RE: [EXT] Re: [PATCH 1/3] dma-buf: heaps: add Linaro secure dmabuf heap support

2022-08-18 Thread Cyrille Fleury
Hi Nicolas, all, The short reply: - For DRM, gstreamer, ffmeg, ... we don't use anymore NXP VPU proprietary API - We need secure dma-buf heaps to replace secure ion heaps The more detailed reply to address concerns below in the thread: - NXP doesn't design VPU, but rely on

Re: [PATCH v4 5/7] drm/msm/a6xx: Ensure CX collapse during gpu recovery

2022-08-18 Thread Philipp Zabel
Hi Akhil, On Wed, Aug 17, 2022 at 08:44:18PM +0530, Akhil P Oommen wrote: > Because there could be transient votes from other drivers/tz/hyp which > may keep the cx gdsc enabled, we should poll until cx gdsc collapses. > We can use the reset framework to poll for cx gdsc collapse from gpucc > clk

Re: [PATCH v5 04/10] drm: rcar-du: Add rcar_du_lib_fb_create()

2022-08-18 Thread Geert Uytterhoeven
Hi Biju, On Wed, Jul 27, 2022 at 6:08 PM Biju Das wrote: > Move the common code from rcar_du_fb_create->rcar_du_lib_fb_create, > so that rzg2l_du_fb_create() can reuse the common code. > > Signed-off-by: Biju Das > --- > v5: > * New patch Thanks for your patch! > --- a/drivers/gpu/drm/rcar-du

Re: [PATCH 1/6] drm/ttm: Add usage to ttm_validate_buffer.

2022-08-18 Thread Christian König
Am 18.08.22 um 02:30 schrieb Bas Nieuwenhuizen: On Thu, Aug 18, 2022 at 12:04 AM Felix Kuehling wrote: Am 2022-08-12 um 21:27 schrieb Bas Nieuwenhuizen: This way callsites can choose between READ/BOOKKEEP reservations. Signed-off-by: Bas Nieuwenhuizen --- drivers/gpu/drm/amd/amdgpu/amd

Re: [PATCH] drm/ttm: prevent grabbing page references

2022-08-18 Thread Christian König
Am 18.08.22 um 00:20 schrieb Dmitry Osipenko: On 8/15/22 16:08, Christian König wrote: TTM owns the pages it uses for backing buffer objects with system memory. Because of this it is absolutely illegal to mess around with the reference count of those pages. So make sure that nobody ever tries t

Re: [PATCH v1] drm/ttm: Refcount allocated tail pages

2022-08-18 Thread Christian König
Am 18.08.22 um 01:13 schrieb Dmitry Osipenko: On 8/18/22 01:57, Dmitry Osipenko wrote: On 8/15/22 18:54, Dmitry Osipenko wrote: On 8/15/22 17:57, Dmitry Osipenko wrote: On 8/15/22 16:53, Christian König wrote: Am 15.08.22 um 15:45 schrieb Dmitry Osipenko: [SNIP] Well that comment sounds lik

[syzbot] general protection fault in drm_gem_object_handle_put_unlocked

2022-08-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7ebfc85e2cd7 Merge tag 'net-6.0-rc1' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=143d292d08 kernel config: https://syzkaller.appspot.com/x/.config?x=924833c12349a8c0 das

Re: [PATCH 3/3] drm: omapdrm: Do no allocate non-scanout GEMs through DMM/TILER

2022-08-18 Thread Ivaylo Dimitrov
Hi, On 17.08.22 г. 7:52 ч., Yongqin Liu wrote: Hi, Ivaylo On Mon, 15 Aug 2022 at 14:23, Ivaylo Dimitrov wrote: Hi Liu, On 14.08.22 г. 17:27 ч., Yongqin Liu wrote: Hi, IvayIo Thanks very much for the reply! On Sat, 13 Aug 2022 at 14:58, Ivaylo Dimitrov wrote: Hi Liu, On 12.08.22 г. 7:

Re: [RFC PATCH] drm/edid: Make 144 Hz not preferred on Sharp LQ140M1JW46

2022-08-18 Thread Jani Nikula
On Wed, 17 Aug 2022, Doug Anderson wrote: > Hi, > > On Sun, Aug 14, 2022 at 11:46 PM Maxime Ripard wrote: >> >> On Fri, Jul 29, 2022 at 12:57:40PM -0700, Doug Anderson wrote: >> > Hi, >> > >> > On Fri, Jul 29, 2022 at 9:41 AM Maxime Ripard wrote: >> > > You raise some good points, but most of th

Re: build failure of next-20220817 for amdgpu

2022-08-18 Thread Sudip Mukherjee
On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap wrote: > > > > On 8/17/22 19:01, Alex Deucher wrote: > > On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink) > > wrote: > >> > >> Hi All, > >> > >> Not sure if it has been reported, build of next-20220817 fails with the > >> error: > >> > >> ER

[PATCH v2] drm/ast: add dmabuf/prime buffer sharing support

2022-08-18 Thread oushixiong
This patch adds ast specific codes for DRM prime feature, this is to allow for offloading of rending in one direction and outputs in other. v1->v2: - Fix the comment. Signed-off-by: oushixiong --- drivers/gpu/drm/ast/ast_drv.c | 22 ++ drivers/gpu/drm/ast/ast_mode.c | 125 ++

Re: [PATCH 0/4] Allow MMIO regions to be exported through dma-buf

2022-08-18 Thread Christian König
Am 17.08.22 um 18:11 schrieb Jason Gunthorpe: dma-buf has become a way to safely acquire a handle to non-struct page memory that can still have lifetime controlled by the exporter. Notably RDMA can now import dma-buf FDs and build them into MRs which allows for PCI P2P operations. Extend this to

Re: [PATCH v2 1/3] dma-buf: Add ioctl to query mmap coherency/cache info

2022-08-18 Thread Christian König
Am 17.08.22 um 15:44 schrieb Rob Clark: On Wed, Aug 17, 2022 at 2:57 AM Christian König wrote: [SNIP] The resulting cache attrs from combination of S1 and S2 translation can differ. So ideally we setup the S2 pgtables in guest aligned with host userspace mappings Well exactly that is not very

Re: (subset) [PATCH v2 0/7] Devm helpers for regulator get and enable

2022-08-18 Thread Matti Vaittinen
Hi Mark, On 8/15/22 18:44, Mark Brown wrote: On Fri, 12 Aug 2022 13:08:17 +0300, Matti Vaittinen wrote: Devm helpers for regulator get and enable First patch in the series is actually just a simple documentation fix which could be taken in as it is now. A few* drivers seem to use pattern demo

Re: (subset) [PATCH v2 0/7] Devm helpers for regulator get and enable

2022-08-18 Thread Mark Brown
On Thu, Aug 18, 2022 at 02:33:53PM +0300, Matti Vaittinen wrote: > On 8/15/22 18:44, Mark Brown wrote: > > [2/7] regulator: Add devm helpers for get and enable > >(no commit info) > I was planning to send out the v3 (where IIO patches are no longer squashed > into one). I didn't spot the

Re: [PATCH 0/4] Allow MMIO regions to be exported through dma-buf

2022-08-18 Thread Jason Gunthorpe
On Wed, Aug 17, 2022 at 01:11:38PM -0300, Jason Gunthorpe wrote: > dma-buf has become a way to safely acquire a handle to non-struct page > memory that can still have lifetime controlled by the exporter. Notably > RDMA can now import dma-buf FDs and build them into MRs which allows for > PCI P2P op

Re: [PATCH] drm/i915: Switch TGL-H DP-IN to dGFX when it's supported

2022-08-18 Thread Lukas Wunner
On Tue, Aug 16, 2022 at 11:06:18AM +0300, Jani Nikula wrote: > On Tue, 16 Aug 2022, Kai-Heng Feng wrote: > > On mobile workstations like HP ZBook Fury G8, iGFX's DP-IN can switch to > > dGFX so external monitors are routed to dGFX, and more monitors can be > > supported as result. > > > > To switc

Re: [PATCH v1 04/35] drm/modes: Introduce 480i and 576i modes

2022-08-18 Thread Maxime Ripard
Hi! On Wed, Aug 17, 2022 at 04:01:48PM +0200, Geert Uytterhoeven wrote: > > > > > Vertically, it's simpler, as the number of lines is discrete. > > > > > You do have to take into account interlace and doublescan, and > > > > > progressive modes with 262/312 lines. > > > > > > > > So we only have t

[PATCH] drm/ast: Fix NO EDID on DP501

2022-08-18 Thread KuoHsiang Chou
1. Corrected the definition of AST_DP501_PNP_CONNECTED. 2. Created the Base address for DP501 MCU. Signed-off-by: KuoHsiang Chou --- drivers/gpu/drm/ast/ast_dp501.c | 10 -- drivers/gpu/drm/ast/ast_drv.h | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gp

Re: [PATCH v1 04/35] drm/modes: Introduce 480i and 576i modes

2022-08-18 Thread Geert Uytterhoeven
Hi Maxime, On Thu, Aug 18, 2022 at 2:39 PM Maxime Ripard wrote: > On Wed, Aug 17, 2022 at 04:01:48PM +0200, Geert Uytterhoeven wrote: > > > I've looked around and it looks like the entire blanking area is > > > supposed to be 40 pixels in interlaced, but I couldn't find anywhere how > > > > 625 l

Re: [PATCH 0/4] Allow MMIO regions to be exported through dma-buf

2022-08-18 Thread Christian König
Am 18.08.22 um 14:03 schrieb Jason Gunthorpe: On Thu, Aug 18, 2022 at 01:07:16PM +0200, Christian König wrote: Am 17.08.22 um 18:11 schrieb Jason Gunthorpe: dma-buf has become a way to safely acquire a handle to non-struct page memory that can still have lifetime controlled by the exporter.

[PATCH 1/2] dt-bindings: display: simple: Add EDT ETML1010G0DKA panel

2022-08-18 Thread Dominik Haller
Add binding for the Emerging Display Technology ETML1010G0DKA panel. It's a 10.1" WXGA (1280 x 800) LVDS panel with backlight and capacitive touch. Signed-off-by: Dominik Haller --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --gi

Re: [PATCH 0/4] Allow MMIO regions to be exported through dma-buf

2022-08-18 Thread Jason Gunthorpe
On Thu, Aug 18, 2022 at 02:58:10PM +0200, Christian König wrote: > > > The only thing I'm not 100% convinced of is dma_buf_try_get(), I've seen > > > this incorrectly used so many times that I can't count them any more. > > > > > > Would that be somehow avoidable? Or could you at least explain th

Re: [PATCH 0/6] amdgpu: Allow explicitly synchronized submissions.

2022-08-18 Thread Christian König
Hi Bas, I've just pushed the branch drm-exec to my fdo repository: https://gitlab.freedesktop.org/ckoenig/linux-drm.git This branch contains all the gang submit patches as well as the latest drm-exec stuff. VCN3/4 video decoding has some issues on it, but that probably shouldn't bother your

[PATCH] drm/amd/display: Include missing header

2022-08-18 Thread Maíra Canal
The file amdgpu_dm_plane.c missed the header amdgpu_dm_plane.h, which resulted on the following warning: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1046:5: warning: no previous prototype for 'fill_dc_scaling_info' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/

Re: [PATCH 0/4] Allow MMIO regions to be exported through dma-buf

2022-08-18 Thread Christian König
Am 18.08.22 um 15:16 schrieb Jason Gunthorpe: On Thu, Aug 18, 2022 at 02:58:10PM +0200, Christian König wrote: The only thing I'm not 100% convinced of is dma_buf_try_get(), I've seen this incorrectly used so many times that I can't count them any more. Would that be somehow avoidable? Or coul

[PATCH 00/13] Fix documentation build warnings against 6.0-rc1

2022-08-18 Thread Mauro Carvalho Chehab
Hi Jon, This series is against 6.0-rc1, so it should apply fine on the top of your tree. After applying one fix sent to ACPI: https://lore.kernel.org/linux-acpi/20220818055156.7456-1-sakari.ai...@linux.intel.com/T/#u make htmldocs (with Sphinx 2.4.4) produces a very clean result: : War

[PATCH 10/13] docs: leds: add leds-qcom-lpg.rst to the index file

2022-08-18 Thread Mauro Carvalho Chehab
Address this warning: Documentation/leds/leds-qcom-lpg.rst: WARNING: o documento não está incluído em nenhum toctree Signed-off-by: Mauro Carvalho Chehab --- See [PATCH 00/13] at: https://lore.kernel.org/all/cover.1660829433.git.mche...@kernel.org/ Documentation/leds/index.rst

Re: [PATCH v1 04/35] drm/modes: Introduce 480i and 576i modes

2022-08-18 Thread Maxime Ripard
On Thu, Aug 18, 2022 at 02:57:55PM +0200, Geert Uytterhoeven wrote: > Hi Maxime, > > On Thu, Aug 18, 2022 at 2:39 PM Maxime Ripard wrote: > > On Wed, Aug 17, 2022 at 04:01:48PM +0200, Geert Uytterhoeven wrote: > > > > I've looked around and it looks like the entire blanking area is > > > > suppos

Re: [PATCH v2 2/2] drm/cmdline-parser: Use assert when needed

2022-08-18 Thread Maíra Canal
On 8/17/22 18:12, Michał Winiarski wrote: Expecting to observe a specific value, when the function responsible for setting the value has failed will lead to extra noise in test output. Use assert when the situation calls for it. Also - very small tidying up around the changed areas (whitespace

Re: [PATCH v2 1/2] drm/cmdline-parser: Merge negative tests

2022-08-18 Thread Maíra Canal
On 8/17/22 18:12, Michał Winiarski wrote: Negative tests can be expressed as a single parameterized test case, which highlights that we're following the same test logic (passing invalid cmdline and expecting drm_mode_parse_command_line_for_connector to fail), which improves readability. In

Re: [PATCH v2 1/3] dma-buf: Add ioctl to query mmap coherency/cache info

2022-08-18 Thread Rob Clark
On Thu, Aug 18, 2022 at 4:21 AM Christian König wrote: > > Am 17.08.22 um 15:44 schrieb Rob Clark: > > On Wed, Aug 17, 2022 at 2:57 AM Christian König > > wrote: > >> [SNIP] > >> > >> The resulting cache attrs from combination of S1 and S2 translation > >> can differ. So ideally we setup the S2

[PATCH v1 4/4] Drivers: hv: Never allocate anything besides framebuffer from framebuffer memory region

2022-08-18 Thread Vitaly Kuznetsov
Passed through PCI device sometimes misbehave on Gen1 VMs when Hyper-V DRM driver is also loaded. Looking at IOMEM assignment, we can see e.g. $ cat /proc/iomem ... f800-fffb : PCI Bus :00 f800-fbff : :00:08.0 f800-f8001fff : bb8c4f33-2ba2-4808-9f7f-02f3b4da22fe .

[PATCH v1 1/4] Drivers: hv: Move legacy Hyper-V PCI video device's ids to linux/hyperv.h

2022-08-18 Thread Vitaly Kuznetsov
There are already two places in kernel with PCI_VENDOR_ID_MICROSOFT/ PCI_DEVICE_ID_HYPERV_VIDEO and there's a need to use these from core Vmbus code. Move the defines to a common header. No functional change. Signed-off-by: Vitaly Kuznetsov --- drivers/gpu/drm/hyperv/hyperv_drm_drv.c | 3 --- d

[PATCH v1 3/4] Drivers: hv: Always reserve framebuffer region for Gen1 VMs

2022-08-18 Thread Vitaly Kuznetsov
vmbus_reserve_fb() tries reserving framebuffer region iff screen_info.lfb_base is set. Gen2 VMs seem to have it set by EFI fb but on Gen1 VM it is observed to be zero. In fact, we do not need to rely on some other video driver setting it correctly as Gen1 VMs have a dedicated PCI device to look at.

[PATCH v1 0/4] Drivers: hv: Avoid allocating MMIO from framebuffer region for other passed through PCI devices

2022-08-18 Thread Vitaly Kuznetsov
Passed through PCI device sometimes misbehave on Gen1 VMs when Hyper-V DRM driver is also loaded. Looking at IOMEM assignment, we can see e.g. $ cat /proc/iomem ... f800-fffb : PCI Bus :00 f800-fbff : :00:08.0 f800-f8001fff : bb8c4f33-2ba2-4808-9f7f-02f3b4da22fe .

Re: [PATCH] MAINTAINERS: Update email of Neil Armstrong

2022-08-18 Thread Rob Herring
On Tue, Aug 16, 2022 at 11:56:17AM +0200, Neil Armstrong wrote: > From: Neil Armstrong > > My professional e-mail will change and the BayLibre one will > bounce after mid-september of 2022. > > This updates the MAINTAINERS file, the YAML bindings and adds an > entry in the .mailmap file. > > Si

Re: [PATCH v2 1/3] dma-buf: Add ioctl to query mmap coherency/cache info

2022-08-18 Thread Christian König
Am 18.08.22 um 16:25 schrieb Rob Clark: On Thu, Aug 18, 2022 at 4:21 AM Christian König wrote: Am 17.08.22 um 15:44 schrieb Rob Clark: On Wed, Aug 17, 2022 at 2:57 AM Christian König wrote: [SNIP] The resulting cache attrs from combination of S1 and S2 translation can differ. So ideally we

Re: [PATCH v1 05/35] drm/connector: Add TV standard property

2022-08-18 Thread Maxime Ripard
On Wed, Aug 17, 2022 at 04:04:24PM +0200, Geert Uytterhoeven wrote: > Hi Maxime, > > On Wed, Aug 17, 2022 at 3:19 PM Maxime Ripard wrote: > > On Wed, Aug 17, 2022 at 03:05:52PM +0200, Geert Uytterhoeven wrote: > > > On Wed, Aug 17, 2022 at 1:15 PM Maxime Ripard wrote: > > > > On Wed, Aug 17, 202

Re: [PATCH v1 05/35] drm/connector: Add TV standard property

2022-08-18 Thread Noralf Trønnes
Den 18.08.2022 01.23, skrev Noralf Trønnes: > > > Den 17.08.2022 15.11, skrev Noralf Trønnes: >> >> >> Den 17.08.2022 13.46, skrev Maxime Ripard: >>> On Tue, Aug 16, 2022 at 09:35:24PM +0200, Noralf Trønnes wrote: Den 16.08.2022 11.49, skrev Maxime Ripard: > On Tue, Aug 16, 2022 at 11

Re: [PATCH v2 1/3] dma-buf: Add ioctl to query mmap coherency/cache info

2022-08-18 Thread Rob Clark
On Thu, Aug 18, 2022 at 7:54 AM Christian König wrote: > > Am 18.08.22 um 16:25 schrieb Rob Clark: > > On Thu, Aug 18, 2022 at 4:21 AM Christian König > > wrote: > >> Am 17.08.22 um 15:44 schrieb Rob Clark: > >>> On Wed, Aug 17, 2022 at 2:57 AM Christian König > >>> wrote: > [SNIP] > >

Re: [PATCH] drm/bridge: ps8640: Add double reset T4 and T5 to power-on sequence

2022-08-18 Thread Doug Anderson
Hi, On Wed, Aug 17, 2022 at 8:22 PM Hsin-Yi Wang wrote: > > On Thu, Aug 18, 2022 at 11:19 AM Rock Chiu > wrote: > > > > How does T4/T5 impact the real case? We talked previously the T4/T5 > > shouldn't cause user impact. > > Do we have testing data from ODM? > > > Please leave comments below th

Re: build failure of next-20220817 for amdgpu

2022-08-18 Thread Randy Dunlap
On 8/18/22 03:43, Sudip Mukherjee wrote: > On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap wrote: >> >> >> >> On 8/17/22 19:01, Alex Deucher wrote: >>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink) >>> wrote: Hi All, Not sure if it has been reported, build of nex

Re: [PATCH v1 05/35] drm/connector: Add TV standard property

2022-08-18 Thread Maxime Ripard
On Wed, Aug 17, 2022 at 03:11:56PM +0200, Noralf Trønnes wrote: > Den 17.08.2022 13.46, skrev Maxime Ripard: > > On Tue, Aug 16, 2022 at 09:35:24PM +0200, Noralf Trønnes wrote: > >> Den 16.08.2022 11.49, skrev Maxime Ripard: > >>> On Tue, Aug 16, 2022 at 11:42:20AM +0200, Noralf Trønnes wrote: > >>

Re: [PATCH v1 05/35] drm/connector: Add TV standard property

2022-08-18 Thread Geert Uytterhoeven
Hi Maxime, On Thu, Aug 18, 2022 at 4:54 PM Maxime Ripard wrote: > On Wed, Aug 17, 2022 at 04:04:24PM +0200, Geert Uytterhoeven wrote: > > On Wed, Aug 17, 2022 at 3:19 PM Maxime Ripard wrote: > > > On Wed, Aug 17, 2022 at 03:05:52PM +0200, Geert Uytterhoeven wrote: > > > > On Wed, Aug 17, 2022 at

Re: [PATCH v1 05/35] drm/connector: Add TV standard property

2022-08-18 Thread Maxime Ripard
On Thu, Aug 18, 2022 at 05:01:38PM +0200, Noralf Trønnes wrote: > > > Den 18.08.2022 01.23, skrev Noralf Trønnes: > > > > > > Den 17.08.2022 15.11, skrev Noralf Trønnes: > >> > >> > >> Den 17.08.2022 13.46, skrev Maxime Ripard: > >>> On Tue, Aug 16, 2022 at 09:35:24PM +0200, Noralf Trønnes wrot

Re: [PATCH v1 04/35] drm/modes: Introduce 480i and 576i modes

2022-08-18 Thread Geert Uytterhoeven
Hi Maxime, On Thu, Aug 18, 2022 at 3:42 PM Maxime Ripard wrote: > On Thu, Aug 18, 2022 at 02:57:55PM +0200, Geert Uytterhoeven wrote: > > On Thu, Aug 18, 2022 at 2:39 PM Maxime Ripard wrote: > > > On Wed, Aug 17, 2022 at 04:01:48PM +0200, Geert Uytterhoeven wrote: > > > > > I've looked around an

Re: [PATCH v1 05/35] drm/connector: Add TV standard property

2022-08-18 Thread Maxime Ripard
On Thu, Aug 18, 2022 at 05:20:42PM +0200, Geert Uytterhoeven wrote: > Hi Maxime, > > On Thu, Aug 18, 2022 at 4:54 PM Maxime Ripard wrote: > > On Wed, Aug 17, 2022 at 04:04:24PM +0200, Geert Uytterhoeven wrote: > > > On Wed, Aug 17, 2022 at 3:19 PM Maxime Ripard wrote: > > > > On Wed, Aug 17, 202

Re: [PATCH 23/33] drm/vc4: hdmi: Move HDMI reset to pm_resume

2022-08-18 Thread Maxime Ripard
On Mon, Aug 15, 2022 at 09:52:59AM -0700, Florian Fainelli wrote: > On 8/15/22 07:12, Maxime Ripard wrote: > > On Wed, Aug 10, 2022 at 10:33:48PM +0200, Stefan Wahren wrote: > > > Hi Florian, > > > > > > Am 09.08.22 um 21:02 schrieb Florian Fainelli: > > > > On 8/4/22 16:11, Florian Fainelli wrote

Re: [PATCH v1 04/35] drm/modes: Introduce 480i and 576i modes

2022-08-18 Thread Maxime Ripard
On Thu, Aug 18, 2022 at 05:34:30PM +0200, Geert Uytterhoeven wrote: > On Thu, Aug 18, 2022 at 3:42 PM Maxime Ripard wrote: > > On Thu, Aug 18, 2022 at 02:57:55PM +0200, Geert Uytterhoeven wrote: > > > On Thu, Aug 18, 2022 at 2:39 PM Maxime Ripard wrote: > > > > On Wed, Aug 17, 2022 at 04:01:48PM

[Bug 212649] general protection fault, probably for non-canonical address 0x1856385d1408f284: 0000 [#1] SMP NOPTI, RIP: 0010:kmem_cache_alloc_trace+0xe9/0x2f0

2022-08-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212649 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|NEW |RESOLVED Resol

Re: [PATCH v1 04/35] drm/modes: Introduce 480i and 576i modes

2022-08-18 Thread Geert Uytterhoeven
Hi Maxime, On Thu, Aug 18, 2022 at 5:46 PM Maxime Ripard wrote: > On Thu, Aug 18, 2022 at 05:34:30PM +0200, Geert Uytterhoeven wrote: > > On Thu, Aug 18, 2022 at 3:42 PM Maxime Ripard wrote: > > > I started adding more sanity checks to my code, and I just realised I > > > don't seem to be able t

Re: mainline build failure for x86_64 allmodconfig with clang

2022-08-18 Thread Nathan Chancellor
Hi Arnd, Doubling back around to this now since I think this is the only thing breaking x86_64 allmodconfig with clang 11 through 15. On Fri, Aug 05, 2022 at 09:32:13PM +0200, Arnd Bergmann wrote: > On Fri, Aug 5, 2022 at 8:02 PM Nathan Chancellor wrote: > > On Fri, Aug 05, 2022 at 06:16:45PM +0

Re: [PATCH v3] drm/msm/dp: check hpd_state before push idle pattern at dp_bridge_disable()

2022-08-18 Thread Abhinav Kumar
Hi Stephen On 8/15/2022 10:08 AM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-08-11 08:20:01) On 8/10/2022 6:00 PM, Abhinav Kumar wrote: Even then, you do have a valid point. DRM framework should not have caused the disable path to happen without an enable. I went through the stack menti

Re: [PATCH v2 1/2] drm/cmdline-parser: Merge negative tests

2022-08-18 Thread Michał Winiarski
On Thu, Aug 18, 2022 at 11:15:39AM -0300, Maíra Canal wrote: > > > On 8/17/22 18:12, Michał Winiarski wrote: > > Negative tests can be expressed as a single parameterized test case, > > which highlights that we're following the same test logic (passing > > invalid cmdline and expecting drm_mode_p

[PATCH] drm/amd/display: fix i386 frame size warning

2022-08-18 Thread Hamza Mahfooz
Addresses the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:3596:6: error: stack frame size (2092) exceeds limit (2048) in 'dml30_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] void dml30_ModeSupportAndSystemConfigurationFull(str

[linux-next:master] BUILD REGRESSION 5b6a4bf680d61b1dd26629840f848d0df8983c62

2022-08-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 5b6a4bf680d61b1dd26629840f848d0df8983c62 Add linux-next specific files for 20220818 Error/Warning: (recently discovered and may have been fixed) drivers/base/regmap/regmap-mmio.c:231:17: error

Re: [PATCH 1/2] dt-bindings: display: simple: Add EDT ETML1010G0DKA panel

2022-08-18 Thread Rob Herring
On Thu, Aug 18, 2022 at 02:45:17PM +0200, Dominik Haller wrote: > Add binding for the Emerging Display Technology ETML1010G0DKA panel. > It's a 10.1" WXGA (1280 x 800) LVDS panel with backlight and capacitive > touch. > > Signed-off-by: Dominik Haller > --- > .../devicetree/bindings/display/pane

[Bug 216376] New: AMDGPU: display output disables and quickly reenables when switching AVR into/from standby doing HDMI passthrough

2022-08-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216376 Bug ID: 216376 Summary: AMDGPU: display output disables and quickly reenables when switching AVR into/from standby doing HDMI passthrough Product: Drivers Version

[PATCH] fbcon: Properly revert changes when vc_resize() failed

2022-08-18 Thread Shigeru Yoshida
fbcon_do_set_font() calls vc_resize() when font size is changed. However, if if vc_resize() failed, current implementation doesn't revert changes for font size, and this causes inconsistent state. syzbot reported unable to handle page fault due to this issue [1]. syzbot's repro uses fault injectio

[Bug 216376] AMDGPU: display output disables and quickly reenables when switching AVR into/from standby doing HDMI passthrough

2022-08-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216376 --- Comment #1 from Jure Repinc (jlp.b...@gmail.com) --- Created attachment 301601 --> https://bugzilla.kernel.org/attachment.cgi?id=301601&action=edit Xorg.0.log -- You may reply to this email to add a comment. You are receiving this mail be

[Bug 216376] AMDGPU: display output disables and quickly reenables when switching AVR into/from standby doing HDMI passthrough

2022-08-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216376 --- Comment #2 from Jure Repinc (jlp.b...@gmail.com) --- Created attachment 301602 --> https://bugzilla.kernel.org/attachment.cgi?id=301602&action=edit lspci -- You may reply to this email to add a comment. You are receiving this mail because

[Bug 216376] AMDGPU: display output disables and quickly reenables when switching AVR into/from standby doing HDMI passthrough

2022-08-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216376 Alex Deucher (alexdeuc...@gmail.com) changed: What|Removed |Added CC||alexdeuc...@gmail.c

Re: [PATCH] drm/amd/display: fix i386 frame size warning

2022-08-18 Thread Aurabindo Pillai
On 2022-08-18 12:48, Hamza Mahfooz wrote: Addresses the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:3596:6: error: stack frame size (2092) exceeds limit (2048) in 'dml30_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] void

[PATCH v3 00/31] drm/kms: Stop registering multiple /sys/class/backlight devs for a single display

2022-08-18 Thread Hans de Goede
Hi All, As mentioned in my RFC titled "drm/kms: control display brightness through drm_connector properties": https://lore.kernel.org/dri-devel/0d188965-d809-81b5-74ce-7d30c49fe...@redhat.com/ The first step towards this is to deal with some existing technical debt in backlight handling on x86/AC

[PATCH v3 01/31] ACPI: video: Add acpi_video_backlight_use_native() helper

2022-08-18 Thread Hans de Goede
ATM on x86 laptops where we want userspace to use the acpi_video backlight device we often register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones, but registering 2

[PATCH v3 03/31] drm/amdgpu: Don't register backlight when another backlight should be used (v3)

2022-08-18 Thread Hans de Goede
Before this commit when we want userspace to use the acpi_video backlight device we register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones. Registering 2 backlight

[PATCH v3 06/31] ACPI: video: Drop backlight_device_get_by_type() call from acpi_video_get_backlight_type()

2022-08-18 Thread Hans de Goede
All x86/ACPI kms drivers which register native/BACKLIGHT_RAW type backlight devices call acpi_video_backlight_use_native() now. This sets __acpi_video_get_backlight_type()'s internal static native_available flag. This makes the backlight_device_get_by_type(BACKLIGHT_RAW) check unnecessary. Relyin

[PATCH v3 05/31] drm/nouveau: Don't register backlight when another backlight should be used

2022-08-18 Thread Hans de Goede
Before this commit when we want userspace to use the acpi_video backlight device we register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones. Registering 2 backlight

[PATCH v3 08/31] ACPI: video: Simplify acpi_video_unregister_backlight()

2022-08-18 Thread Hans de Goede
When acpi_video_register() has not run yet the video_bus_head will be empty, so there is no need to check the register_count flag first. Acked-by: Rafael J. Wysocki Signed-off-by: Hans de Goede --- drivers/acpi/acpi_video.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) dif

[PATCH v3 07/31] ACPI: video: Remove acpi_video_bus from list before tearing it down

2022-08-18 Thread Hans de Goede
Move the list_del removing an acpi_video_bus from video_bus_head on teardown to before the teardown is done, to avoid code iterating over the video_bus_head list seeing acpi_video_bus objects on there which are (partly) torn down already. Acked-by: Rafael J. Wysocki Signed-off-by: Hans de Goede

[PATCH v3 11/31] drm/i915: Call acpi_video_register_backlight() (v2)

2022-08-18 Thread Hans de Goede
On machins without an i915 opregion the acpi_video driver immediately probes the ACPI video bus and used to also immediately register acpi_video# backlight devices when supported. Once the drm/kms driver then loaded later and possibly registered a native backlight device then the drivers/acpi/vide

[PATCH v3 10/31] ACPI: video: Remove code to unregister acpi_video backlight when a native backlight registers

2022-08-18 Thread Hans de Goede
Remove the code to unregister acpi_video backlight devices when a native backlight device gets registered later. Now that the acpi_video backlight device registration is a separate step which runs later, after the drm/kms driver is done setting up its own native backlight device, it is no longer n

[PATCH v3 12/31] drm/nouveau: Register ACPI video backlight when nv_backlight registration fails

2022-08-18 Thread Hans de Goede
Typically the acpi_video driver will initialize before nouveau, which used to cause /sys/class/backlight/acpi_video0 to get registered and then nouveau would register its own nv_backlight device later. After which the drivers/acpi/video_detect.c code unregistered the acpi_video0 device to avoid the

[PATCH v3 04/31] drm/radeon: Don't register backlight when another backlight should be used (v3)

2022-08-18 Thread Hans de Goede
Before this commit when we want userspace to use the acpi_video backlight device we register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones. Registering 2 backlight

[PATCH v3 16/31] ACPI: video: Refactor acpi_video_get_backlight_type() a bit

2022-08-18 Thread Hans de Goede
Refactor acpi_video_get_backlight_type() so that the heuristics / detection steps are stricly in order of descending precedence. Also move the comments describing the steps to when the various steps are actually done, to avoid the comments getting out of sync with the code. Acked-by: Rafael J. Wy

[PATCH v3 09/31] ACPI: video: Make backlight class device registration a separate step (v2)

2022-08-18 Thread Hans de Goede
On x86/ACPI boards the acpi_video driver will usually initialize before the kms driver (except i915). This causes /sys/class/backlight/acpi_video0 to show up and then the kms driver registers its own native backlight device after which the drivers/acpi/video_detect.c code unregisters the acpi_video

[PATCH v3 13/31] drm/amdgpu: Register ACPI video backlight when skipping amdgpu backlight registration

2022-08-18 Thread Hans de Goede
Typically the acpi_video driver will initialize before amdgpu, which used to cause /sys/class/backlight/acpi_video0 to get registered and then amdgpu would register its own amdgpu_bl# device later. After which the drivers/acpi/video_detect.c code unregistered the acpi_video0 device to avoid there b

[PATCH v3 14/31] drm/radeon: Register ACPI video backlight when skipping radeon backlight registration

2022-08-18 Thread Hans de Goede
Typically the acpi_video driver will initialize before radeon, which used to cause /sys/class/backlight/acpi_video0 to get registered and then radeon would register its own radeon_bl# device later. After which the drivers/acpi/video_detect.c code unregistered the acpi_video0 device to avoid there b

[PATCH v3 17/31] ACPI: video: Add Nvidia WMI EC brightness control detection (v2)

2022-08-18 Thread Hans de Goede
On some new laptop designs a new Nvidia specific WMI interface is present which gives info about panel brightness control and may allow controlling the brightness through this interface when the embedded controller is used for brightness control. When this WMI interface is present and indicates th

[PATCH v3 19/31] platform/x86: nvidia-wmi-ec-backlight: Use acpi_video_get_backlight_type()

2022-08-18 Thread Hans de Goede
Add an acpi_video_get_backlight_type() == acpi_backlight_nvidia_wmi_ec check. This will make nvidia-wmi-ec-backlight properly honor the user selecting a different backlight driver through the acpi_backlight=... kernel commandline option. Since the auto-detect code check for nvidia-wmi-ec-backlight

[PATCH v3 18/31] ACPI: video: Add Apple GMUX brightness control detection

2022-08-18 Thread Hans de Goede
On Apple laptops with an Apple GMUX using this for brightness control, should take precedence of any other brightness control methods. Add apple-gmux detection to acpi_video_get_backlight_type() using the already existing apple_gmux_present() helper function. This will allow removig the (ab)use o

[PATCH v3 22/31] platform/x86: acer-wmi: Move backlight DMI quirks to acpi/video_detect.c

2022-08-18 Thread Hans de Goede
Move the backlight DMI quirks to acpi/video_detect.c, so that the driver no longer needs to call acpi_video_set_dmi_backlight_type(). acpi_video_set_dmi_backlight_type() is troublesome because it may end up getting called after other backlight drivers have already called acpi_video_get_backlight_t

[PATCH v3 20/31] platform/x86: apple-gmux: Stop calling acpi/video.h functions

2022-08-18 Thread Hans de Goede
Now that acpi_video_get_backlight_type() has apple-gmux detection (using apple_gmux_present()), it is no longer necessary for the apple-gmux code to manually remove possibly conflicting drivers. So remove the handling for this from the apple-gmux driver. Signed-off-by: Hans de Goede --- drivers

[PATCH v3 23/31] platform/x86: asus-wmi: Drop DMI chassis-type check from backlight handling

2022-08-18 Thread Hans de Goede
Remove this check from the asus-wmi backlight handling: /* Some Asus desktop boards export an acpi-video backlight interface, stop this from showing up */ chassis_type = dmi_get_system_info(DMI_CHASSIS_TYPE); if (chassis_type && !strcmp(chassis_type, "3"))

[PATCH v3 21/31] platform/x86: toshiba_acpi: Stop using acpi_video_set_dmi_backlight_type()

2022-08-18 Thread Hans de Goede
acpi_video_set_dmi_backlight_type() is troublesome because it may end up getting called after other backlight drivers have already called acpi_video_get_backlight_type() resulting in the other drivers already being registered even though they should not. In case of the acpi_video backlight, acpi_v

[PATCH v3 25/31] platform/x86: asus-wmi: Move acpi_backlight=native quirks to ACPI video_detect.c

2022-08-18 Thread Hans de Goede
Remove the asus-wmi quirk_entry.wmi_backlight_native quirk-flag, which called acpi_video_set_dmi_backlight_type(acpi_backlight_native) and replace it with acpi/video_detect.c video_detect_dmi_table[] entries using the video_detect_force_native callback. acpi_video_set_dmi_backlight_type() is troub

[PATCH v3 26/31] platform/x86: samsung-laptop: Move acpi_backlight=[vendor|native] quirks to ACPI video_detect.c

2022-08-18 Thread Hans de Goede
acpi_video_set_dmi_backlight_type() is troublesome because it may end up getting called after other backlight drivers have already called acpi_video_get_backlight_type() resulting in the other drivers already being registered even though they should not. Move all the acpi_backlight=[vendor|native]

[PATCH v3 24/31] platform/x86: asus-wmi: Move acpi_backlight=vendor quirks to ACPI video_detect.c

2022-08-18 Thread Hans de Goede
Remove the asus-wmi quirk_entry.wmi_backlight_power quirk-flag, which called acpi_video_set_dmi_backlight_type(acpi_backlight_vendor) and replace it with acpi/video_detect.c video_detect_dmi_table[] entries using the video_detect_force_vendor callback. acpi_video_set_dmi_backlight_type() is troubl

[PATCH v3 29/31] ACPI: video: Drop NL5x?U, PF4NU1F and PF5?U?? acpi_backlight=native quirks

2022-08-18 Thread Hans de Goede
acpi_backlight=native is the default for these, but as the comment explains the quirk was still necessary because even briefly registering the acpi_video0 backlight; and then unregistering it once the native driver showed up, was leading to issues. After the "ACPI: video: Make backlight class devi

[PATCH v3 27/31] ACPI: video: Remove acpi_video_set_dmi_backlight_type()

2022-08-18 Thread Hans de Goede
acpi_video_set_dmi_backlight_type() is troublesome because it may end up getting called after other backlight drivers have already called acpi_video_get_backlight_type() resulting in the other drivers already being registered even though they should not. In case of the acpi_video backlight, acpi_v

[PATCH v3 30/31] ACPI: video: Fix indentation of video_detect_dmi_table[] entries

2022-08-18 Thread Hans de Goede
The video_detect_dmi_table[] uses an unusual indentation for before the ".name = ..." named struct initializers. Instead of being indented with an extra tab compared to the previous line's '{' these are indented to with only a single space to allow for long DMI_MATCH() lines without wrapping. But

[PATCH v3 31/31] drm/todo: Add entry about dealing with brightness control on devices with > 1 panel

2022-08-18 Thread Hans de Goede
Add an entry summarizing the discussion about dealing with brightness control on devices with more then 1 internal panel. The original discussion can be found here: https://lore.kernel.org/dri-devel/20220517152331.16217-1-hdego...@redhat.com/ Signed-off-by: Hans de Goede --- Documentation/gpu/t

[Bug 216376] AMDGPU: display output disables and quickly reenables when switching AVR into/from standby doing HDMI passthrough

2022-08-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216376 --- Comment #4 from Jure Repinc (jlp.b...@gmail.com) --- If I got it right, the hotplug events are all posted via udev? If so, is it correct to use "udevadm monitor --environment --udev" to see these events posted to userspace? Or is there somethi

Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")

2022-08-18 Thread Sudip Mukherjee
On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap wrote: > > > > On 8/18/22 03:43, Sudip Mukherjee wrote: > > On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap wrote: > >> > >> > >> > >> On 8/17/22 19:01, Alex Deucher wrote: > >>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink) > >>> wrote: >

[Bug 216376] AMDGPU: display output disables and quickly reenables when switching AVR into/from standby doing HDMI passthrough

2022-08-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216376 --- Comment #5 from Alex Deucher (alexdeuc...@gmail.com) --- Yes, those are the events. The desktop environment listens for them and reacts. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching

Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")

2022-08-18 Thread Randy Dunlap
Hi-- On 8/18/22 12:15, Sudip Mukherjee wrote: > On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap wrote: >> >> >> >> On 8/18/22 03:43, Sudip Mukherjee wrote: >>> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap wrote: On 8/17/22 19:01, Alex Deucher wrote: > On Wed, Aug 17, 2022 at

Re: [PATCH v3 15/31] platform/x86: nvidia-wmi-ec-backlight: Move fw interface definitions to a header

2022-08-18 Thread Daniel Dadap
On 8/18/22 1:42 PM, Hans de Goede wrote: Move the WMI interface definitions to a header, so that the definitions can be shared with drivers/acpi/video_detect.c . Suggested-by: Daniel Dadap Signed-off-by: Hans de Goede --- MAINTAINERS | 1 + .../platform/

  1   2   >