Re: [fs/lock] 0064b3d9f9: BUG:kernel_NULL_pointer_dereference,address

2022-07-28 Thread Oliver Sang
Hi Jeff, and all, we should say Sorry that, after more checks, we confirmed this report is a false positive. the initial investigation points out it could be caused by the way we use clang. we will do more study and send report to clang team if necessary. please just ignore this report. thanks

[PATCH] drm/amd/display: Remove useless else if

2022-07-28 Thread Jiapeng Chong
The assignment of the else and else if branches is the same, so the else if here is redundant, so we remove it and add a comment to make the code here readable. Eliminate the follow coccicheck warning: ./drivers/comedi/drivers/das1800.c:1300:8-10: WARNING: possible condition with no effect (if

Re: [git pull] drm fixes for 5.19 final

2022-07-28 Thread pr-tracker-bot
The pull request you sent on Fri, 29 Jul 2022 13:31:03 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2022-07-29 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6e2c0490769ef8a95b61304389116ccc85c53e12 Thank you! -- Deet-doot-dot, I am a bot.

[git pull] drm fixes for 5.19 final

2022-07-28 Thread Dave Airlie
Hi Linus, Quiet extra week, just a single fix for i915 workaround with execlist backend. Regards, Dave. drm-fixes-2022-07-29: drm fixes for 5.19 final i915: - Further reset robustness improvements for execlists [Wa_22011802037] The following changes since commit

Re: [PATCH v3 26/32] drm/via: Add via_drm.h

2022-07-28 Thread Kevin Brace
Hi Dave, Thanks for pointing out the blog written by Daniel. I was thinking that I will need to make refinements to OpenChrome DRM uAPI, so I will rework the uAPI. I also plan to discontinue old VIA DRM uAPI by using drm_invalid_op(). No one pointed this out, but I was thinking that something

Re: [Intel-gfx] [PATCH 6/6] drm/i915/guc: Don't abort on CTB_UNUSED status

2022-07-28 Thread John Harrison
On 7/28/2022 17:00, Ceraolo Spurio, Daniele wrote: On 7/27/2022 7:42 PM, john.c.harri...@intel.com wrote: From: John Harrison When the KMD sends a CLIENT_RESET request to GuC (as part of the suspend sequence), GuC will mark the CTB buffer as 'UNUSED'. If the KMD then checked the CTB queue, it

Re: [PATCH v6 00/10] Add PSR support for eDP

2022-07-28 Thread Doug Anderson
Hi, On Mon, Jul 11, 2022 at 5:57 AM Vinod Polimera wrote: > > Changes in v2: > - Use dp bridge to set psr entry/exit instead of dpu_enocder. > - Don't modify whitespaces. > - Set self refresh aware from atomic_check. > - Set self refresh aware only if psr is supported. > - Provide a

Re: [PATCH v6 04/10] drm/msm/dp: Add basic PSR support for eDP

2022-07-28 Thread Doug Anderson
Hi, On Mon, Jul 11, 2022 at 5:57 AM Vinod Polimera wrote: > > @@ -359,6 +367,24 @@ void dp_catalog_ctrl_lane_mapping(struct dp_catalog > *dp_catalog) > ln_mapping); > } > > +void dp_catalog_ctrl_psr_mainlink_enable(struct dp_catalog *dp_catalog, > +

Re: [PATCH v6 02/10] drm: add helper functions to retrieve old and new crtc

2022-07-28 Thread Doug Anderson
Hi, On Mon, Jul 11, 2022 at 5:57 AM Vinod Polimera wrote: > > Add new helper functions, drm_atomic_get_old_crtc_for_encoder > and drm_atomic_get_new_crtc_for_encoder to retrieve the > corresponding crtc for the encoder. > > Signed-off-by: Sankeerth Billakanti > Signed-off-by: Vinod Polimera >

Re: [PATCH v6 03/10] drm/msm/dp: use atomic callbacks for DP bridge ops

2022-07-28 Thread Doug Anderson
Hi, On Mon, Jul 11, 2022 at 5:57 AM Vinod Polimera wrote: > > Use atomic variants for DP bridge callback functions so that > the atomic state can be accessed in the interface drivers. > The atomic state will help the driver find out if the display > is in self refresh state. > > Signed-off-by:

Re: [PATCH v6 01/10] drm/msm/disp/dpu: clear dpu_assign_crtc and get crtc from connector state instead of dpu_enc

2022-07-28 Thread Doug Anderson
Hi, On Mon, Jul 11, 2022 at 5:57 AM Vinod Polimera wrote: > > Update crtc retrieval from dpu_enc to dpu_enc connector state, > since new links get set as part of the dpu enc virt mode set. > The dpu_enc->crtc cache is no more needed, hence cleaning it as > part of this change. I don't know this

Re: [Intel-gfx] [PATCH 6/6] drm/i915/guc: Don't abort on CTB_UNUSED status

2022-07-28 Thread Ceraolo Spurio, Daniele
On 7/27/2022 7:42 PM, john.c.harri...@intel.com wrote: From: John Harrison When the KMD sends a CLIENT_RESET request to GuC (as part of the suspend sequence), GuC will mark the CTB buffer as 'UNUSED'. If the KMD then checked the CTB queue, it would see a non-zero status value and report the

[PATCH 1/1] drm/i915/dg2: Update DG2 to GuC v70.4.1

2022-07-28 Thread John . C . Harrison
From: John Harrison New release of GuC with a bunch of fixes specific to DG2. Some of these require follow up i915 changes to enable. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/1] Move DG2 to GuC v70.4.1

2022-07-28 Thread John . C . Harrison
From: John Harrison The latest GuC release contains a bunch of fixes for DG2. Start using it. Note that some of these fixes require i915 side support which will follow in separate patches. Signed-off-by: John Harrison John Harrison (1): drm/i915/dg2: Update DG2 to GuC v70.4.1

Re: [RESEND RFC 00/18] drm/display/dp_mst: Drop Radeon MST support, make MST atomic-only

2022-07-28 Thread Lyude Paul
Sorry for taking a while on respinning this! I've been busy with trying to review as much nouveau patches as possible before we passed the deadline for getting pulled into the kernel, since we've got quite a lot of pending patches coming up. The pull deadline we had from Dave has passed at this

Re: [PATCH v2] drm/amdkfd: use time_is_before_jiffies(a + b) to replace "jiffies - a > b"

2022-07-28 Thread Felix Kuehling
Am 2022-07-27 um 23:30 schrieb Yu Zhe: time_is_before_jiffies deals with timer wrapping correctly. Signed-off-by: Yu Zhe Thank you. This patch looks good to me. I'm applying it to amd-staging-drm-next. Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c | 4

[RFC] drm/nouveau/ttm: Stop calling into swiotlb

2022-07-28 Thread Lyude Paul
Per the request of some of the DMA folks, some of the swiotlb helpers are being sunset in favor of better alternatives that don't involve layer mixing. Since it seems like we can actually replace the one thing we use swiotlb for pretty easily, e.g. checking whether or not we are capable of

Re: susetting the remaining swioltb couplin in DRM

2022-07-28 Thread Lyude Paul
Actually, seems like I do have a question. I see that you mention that we could stop passing use_dma_alloc=true to ttm_device_init() or use dma_alloc_noncoherent(). I'm not an expert on this nouveau's mm, but after skimming it seems like if we can simply check whether or not we need all

Re: [PATCH v4 16/41] dyndbg: add drm.debug style bitmap support

2022-07-28 Thread jim . cromie
On Fri, Jul 22, 2022 at 2:33 PM Jason Baron wrote: > > > > On 7/20/22 11:32, Jim Cromie wrote: > > Add kernel_param_ops and callbacks to apply a class-map to a > > sysfs-node, which then can control classes defined in that class-map. > > This supports uses like: > > > > echo 0x3 >

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Andy Shevchenko
On Thu, Jul 28, 2022 at 4:32 PM Markuss Broks wrote: > > Add early console support for generic linear framebuffer devices. > This driver supports probing from cmdline early parameters > or from the device-tree using information in simple-framebuffer node. > The EFI functionality should be

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread kernel test robot
Hi Markuss, I love your patch! Yet something to improve: [auto build test ERROR on tty/tty-testing] [also build test ERROR on efi/next staging/staging-testing usb/usb-testing linus/master v5.19-rc8 next-20220728] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

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

2022-07-28 Thread Doug Anderson
Hi, On Thu, Jul 28, 2022 at 10:34 AM Abhinav Kumar wrote: > > Hi Rob and Doug > > On 7/22/2022 10:36 AM, Rob Clark wrote: > > On Fri, Jul 22, 2022 at 9:48 AM Doug Anderson wrote: > >> > >> Hi, > >> > >> On Fri, Jul 22, 2022 at 9:37 AM Abhinav Kumar > >> wrote: > >>> > >>> + sankeerth > >>> >

Re: susetting the remaining swioltb couplin in DRM

2022-07-28 Thread Lyude Paul
Hi! Sorry about the slow reply to this, been busy with a bunch of other pressing nouveau work lately. Anyway, the steps look pretty simple here so I can see if I can write up a patch shortly :) On Mon, 2022-07-11 at 10:26 +0200, Christoph Hellwig wrote: > Hi i915 and nouveau maintainers, > >

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Andy Shevchenko
On Thu, Jul 28, 2022 at 4:58 PM Markuss Broks wrote: > On 7/28/22 17:39, Greg Kroah-Hartman wrote: > > On Thu, Jul 28, 2022 at 05:28:19PM +0300, Markuss Broks wrote: > >> delete mode 100644 drivers/firmware/efi/earlycon.c > >> create mode 100644 drivers/video/fbdev/earlycon.c > > > > That

Re: [PATCH 1/2] drivers: serial: earlycon: Pass device-tree node

2022-07-28 Thread Andy Shevchenko
On Thu, Jul 28, 2022 at 4:41 PM Greg Kroah-Hartman wrote: > On Thu, Jul 28, 2022 at 05:28:18PM +0300, Markuss Broks wrote: > > Pass a pointer to device-tree node in case the driver probed from > > OF. This makes early console drivers able to fetch options from > > device-tree node properties.

Re: [PATCH] nouveau/svm: Fix to migrate all requested pages

2022-07-28 Thread Lyude Paul
hi, in the future if it's taking a while for a review to come back feel free to just send a poke on the thread for the patch you submitted, I do my best to keep up with all of the patches coming in. But there's a lot of email that I get so every now and then one slips through the cracks. Anyway,

Re: [Intel-gfx] [PATCH 6/6] drm/i915/guc: Don't abort on CTB_UNUSED status

2022-07-28 Thread John Harrison
On 7/28/2022 12:06, Michal Wajdeczko wrote: On 28.07.2022 04:42, john.c.harri...@intel.com wrote: From: John Harrison When the KMD sends a CLIENT_RESET request to GuC (as part of the suspend sequence), GuC will mark the CTB buffer as 'UNUSED'. If the hmm, GuC shouldn't do that on

Re: [PATCH] nouveau/svm: Fix to migrate all requested pages

2022-07-28 Thread Ralph Campbell
On 7/19/22 23:27, Alistair Popple wrote: Users may request that pages from an OpenCL SVM allocation be migrated to the GPU with clEnqueueSVMMigrateMem(). In Nouveau this will call into nouveau_dmem_migrate_vma() to do the migration. If the total range to be migrated exceeds SG_MAX_SINGLE_ALLOC

Re: [Intel-gfx] [PATCH 6/6] drm/i915/guc: Don't abort on CTB_UNUSED status

2022-07-28 Thread Michal Wajdeczko
On 28.07.2022 04:42, john.c.harri...@intel.com wrote: > From: John Harrison > > When the KMD sends a CLIENT_RESET request to GuC (as part of the > suspend sequence), GuC will mark the CTB buffer as 'UNUSED'. If the hmm, GuC shouldn't do that on CLIENT_RESET, GuC shall only mark CTB as UNUSED

Re: [PATCH 3/6] drm/i915/guc: Add selftest for a hung GuC

2022-07-28 Thread John Harrison
On 7/28/2022 11:26, john.c.harri...@intel.com wrote: From: Rahul Kumar Singh Add a test to check that the hangcheck will recover from a submission hang in the GuC. Signed-off-by: Rahul Kumar Singh Signed-off-by: John Harrison Reviewed-by: John Harrison ---

Re: [PATCH v3 07/14] drm/mgag200: Replace simple-KMS with regular atomic helpers

2022-07-28 Thread Thomas Zimmermann
Hi Jocelyn Am 28.07.22 um 17:09 schrieb Jocelyn Falempe: On 28/07/2022 14:40, Thomas Zimmermann wrote: Drop simple-KMS in favor of regular atomic helpers. Makes the code more modular and hence better to adapt to per-model requirements. The simple-KMS helpers provide few extra features, so the

[PATCH 3/6] drm/i915/guc: Add selftest for a hung GuC

2022-07-28 Thread John . C . Harrison
From: Rahul Kumar Singh Add a test to check that the hangcheck will recover from a submission hang in the GuC. Signed-off-by: Rahul Kumar Singh Signed-off-by: John Harrison --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 1 + .../drm/i915/gt/uc/selftest_guc_hangcheck.c | 159

Re: [PATCH 12/12] drm/format-helper: Move destination-buffer handling into internal helper

2022-07-28 Thread José Expósito
On Thu, Jul 28, 2022 at 09:45:27AM +0200, Thomas Zimmermann wrote: > Hi > > Am 28.07.22 um 09:26 schrieb José Expósito: > > Hi! > > > > On Wed, Jul 27, 2022 at 01:33:12PM +0200, Thomas Zimmermann wrote: > > > The format-convertion helpers handle several cases for different > > > values of

Re: [PATCH 3/6] drm/i915/guc: Add selftest for a hung GuC

2022-07-28 Thread John Harrison
On 7/27/2022 19:42, john.c.harri...@intel.com wrote: From: Rahul Kumar Singh Add a test to check that the hangcheck will recover from a submission hang in the GuC. Signed-off-by: Rahul Kumar Singh Signed-off-by: John Harrison --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 1 +

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Thomas Zimmermann
Hi Am 28.07.22 um 17:16 schrieb Arnd Bergmann: On Thu, Jul 28, 2022 at 4:57 PM Markuss Broks wrote: On 7/28/22 17:48, Arnd Bergmann wrote: On Thu, Jul 28, 2022 at 4:28 PM Markuss Broks wrote: Add early console support for generic linear framebuffer devices. This driver supports probing

Re: [PATCH v3 0/4] KUnit tests for RGB565 conversion

2022-07-28 Thread José Expósito
On Wed, Jul 27, 2022 at 01:09:12AM +0200, José Expósito wrote: > Hello everyone, > > This series is a follow up of the XRGB to RGB332 conversion KUnit > tests. > > As I mentioned in v2 [1] I suspected that the inconsistency handling > the endian might need to be fixed. > Fortunately, Geert

Re: [PATCH 04/12] drm/format-helper: Rework XRGB8888-to-RGBG332 conversion

2022-07-28 Thread José Expósito
On Thu, Jul 28, 2022 at 09:27:52AM +0200, Thomas Zimmermann wrote: > Hi > > Am 28.07.22 um 09:13 schrieb José Expósito: > > Hi Thomas, > > > > On Wed, Jul 27, 2022 at 01:33:04PM +0200, Thomas Zimmermann wrote: > > > Update XRGB-to-RGB332 conversion to support struct iosys_map > > > and

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

2022-07-28 Thread Abhinav Kumar
Hi Rob and Doug On 7/22/2022 10:36 AM, Rob Clark wrote: On Fri, Jul 22, 2022 at 9:48 AM Doug Anderson wrote: Hi, On Fri, Jul 22, 2022 at 9:37 AM Abhinav Kumar wrote: + sankeerth Hi Doug On 7/21/2022 3:23 PM, Douglas Anderson wrote: The Sharp LQ140M1JW46 panel is on the Qualcomm sc7280

Re: [PATCH] drm/tests: Split up test cases in igt_check_drm_format_min_pitch

2022-07-28 Thread André Almeida
Às 15:43 de 17/07/22, Maíra Canal escreveu: > The igt_check_drm_format_min_pitch() function had a lot of > KUNIT_EXPECT_* calls, all of which ended up allocating and initializing > various test assertion structures on the stack. > > This behavior was producing -Wframe-larger-than warnings on

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Arnd Bergmann
On Thu, Jul 28, 2022 at 4:57 PM Markuss Broks wrote: > On 7/28/22 17:48, Arnd Bergmann wrote: > > On Thu, Jul 28, 2022 at 4:28 PM Markuss Broks > > wrote: > >> > >> Add early console support for generic linear framebuffer devices. > >> This driver supports probing from cmdline early parameters

Re: [PATCH] drm/tests: Split up test cases in igt_check_drm_format_min_pitch

2022-07-28 Thread Melissa Wen
On 07/17, Maíra Canal wrote: > The igt_check_drm_format_min_pitch() function had a lot of > KUNIT_EXPECT_* calls, all of which ended up allocating and initializing > various test assertion structures on the stack. > > This behavior was producing -Wframe-larger-than warnings on PowerPC, i386, >

Re: [PATCH v3 6/6] drm/ttm: Switch to using the new res callback

2022-07-28 Thread Matthew Auld
On 28/07/2022 15:33, Arunpravin Paneer Selvam wrote: Apply new intersect and compatible callback instead of having a generic placement range verfications. v2: Added a separate callback for compatiblilty checks (Christian) Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer

[Bug 201273] Fatal error during GPU init amdgpu RX560

2022-07-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201273 quirin.blae...@freenet.de changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH v3 4/6] drm/i915: Implement intersect/compatible functions

2022-07-28 Thread Matthew Auld
On 28/07/2022 15:33, Arunpravin Paneer Selvam wrote: Implemented a new intersect and compatible callback function fetching start offset from drm buddy allocator. v2: move the bits that are specific to buddy_man (Matthew) Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam

Re: [PATCH v3 07/14] drm/mgag200: Replace simple-KMS with regular atomic helpers

2022-07-28 Thread Jocelyn Falempe
On 28/07/2022 14:40, Thomas Zimmermann wrote: Drop simple-KMS in favor of regular atomic helpers. Makes the code more modular and hence better to adapt to per-model requirements. The simple-KMS helpers provide few extra features, so the patch is mostly about open-coding what simple-KMS does.

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Greg Kroah-Hartman
On Thu, Jul 28, 2022 at 05:52:04PM +0300, Markuss Broks wrote: > Hi Greg, > > On 7/28/22 17:39, Greg Kroah-Hartman wrote: > > On Thu, Jul 28, 2022 at 05:28:19PM +0300, Markuss Broks wrote: > > > Add early console support for generic linear framebuffer devices. > > > This driver supports probing

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Markuss Broks
Hi Arnd, On 7/28/22 17:48, Arnd Bergmann wrote: On Thu, Jul 28, 2022 at 4:28 PM Markuss Broks wrote: Add early console support for generic linear framebuffer devices. This driver supports probing from cmdline early parameters or from the device-tree using information in simple-framebuffer

Re: [PATCH 00/10] drm: use idr_init_base() over idr_init() if applicable

2022-07-28 Thread Danilo Krummrich
On 7/28/22 16:44, Maxime Ripard wrote: On Thu, Jul 28, 2022 at 04:41:41PM +0200, Maxime Ripard wrote: On Fri, 1 Jul 2022 20:52:53 +0200, d...@redhat.com wrote: From: Danilo Krummrich This patch series initializes IDRs with idr_init_base(, 1) rather than idr_init() in case for the particular

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Arnd Bergmann
On Thu, Jul 28, 2022 at 4:28 PM Markuss Broks wrote: > > Add early console support for generic linear framebuffer devices. > This driver supports probing from cmdline early parameters > or from the device-tree using information in simple-framebuffer node. > The EFI functionality should be

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Markuss Broks
Hi Greg, On 7/28/22 17:39, Greg Kroah-Hartman wrote: On Thu, Jul 28, 2022 at 05:28:19PM +0300, Markuss Broks wrote: Add early console support for generic linear framebuffer devices. This driver supports probing from cmdline early parameters or from the device-tree using information in

Re: [PATCH 00/10] drm: use idr_init_base() over idr_init() if applicable

2022-07-28 Thread Maxime Ripard
On Thu, Jul 28, 2022 at 04:41:41PM +0200, Maxime Ripard wrote: > On Fri, 1 Jul 2022 20:52:53 +0200, d...@redhat.com wrote: > > From: Danilo Krummrich > > > > This patch series initializes IDRs with idr_init_base(, 1) rather than > > idr_init() in case for the particular IDR no IDs < 1 are ever

Re: [PATCH 00/10] drm: use idr_init_base() over idr_init() if applicable

2022-07-28 Thread Maxime Ripard
On Fri, 1 Jul 2022 20:52:53 +0200, d...@redhat.com wrote: > From: Danilo Krummrich > > This patch series initializes IDRs with idr_init_base(, 1) rather than > idr_init() in case for the particular IDR no IDs < 1 are ever requested - > this avoids unnecessary tree walks. > > Danilo Krummrich

Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Greg Kroah-Hartman
On Thu, Jul 28, 2022 at 05:28:19PM +0300, Markuss Broks wrote: > Add early console support for generic linear framebuffer devices. > This driver supports probing from cmdline early parameters > or from the device-tree using information in simple-framebuffer node. > The EFI functionality should be

Re: [PATCH 1/2] drivers: serial: earlycon: Pass device-tree node

2022-07-28 Thread Greg Kroah-Hartman
On Thu, Jul 28, 2022 at 05:28:18PM +0300, Markuss Broks wrote: > Pass a pointer to device-tree node in case the driver probed from > OF. This makes early console drivers able to fetch options from > device-tree node properties. > > Signed-off-by: Markuss Broks > --- >

Re: [PATCH v2 4/6] drm/i915: Implement intersect/compatible functions

2022-07-28 Thread Arunpravin Paneer Selvam
Hi Matthew, On 7/26/2022 4:11 PM, Matthew Auld wrote: On 25/07/2022 12:42, Arunpravin Paneer Selvam wrote: Implemented a new intersect and compatible callback function fetching start offset from drm buddy allocator. Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam

[PATCH v3 5/6] drm/nouveau: Implement intersect/compatible functions

2022-07-28 Thread Arunpravin Paneer Selvam
Implemented a new intersect and compatible callback function fetching the start offset from struct ttm_resource. Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/nouveau/nouveau_mem.c | 29 +++

[PATCH v3 6/6] drm/ttm: Switch to using the new res callback

2022-07-28 Thread Arunpravin Paneer Selvam
Apply new intersect and compatible callback instead of having a generic placement range verfications. v2: Added a separate callback for compatiblilty checks (Christian) Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 45

[PATCH v3 4/6] drm/i915: Implement intersect/compatible functions

2022-07-28 Thread Arunpravin Paneer Selvam
Implemented a new intersect and compatible callback function fetching start offset from drm buddy allocator. v2: move the bits that are specific to buddy_man (Matthew) Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 39

[PATCH v3 1/6] drm/ttm: Add new callbacks to ttm res mgr

2022-07-28 Thread Arunpravin Paneer Selvam
We are adding two new callbacks to ttm resource manager function to handle intersection and compatibility of placement and resources. v2: move the amdgpu and ttm_range_manager changes to separate patches (Christian) v3: rename "intersect" to "intersects" (Matthew) Signed-off-by: Christian

[PATCH v3 3/6] drm/amdgpu: Implement intersect/compatible functions

2022-07-28 Thread Arunpravin Paneer Selvam
Implemented a new intersect and compatible callback function fetching start offset from backend drm buddy allocator. Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 38

[PATCH v3 2/6] drm/ttm: Implement intersect/compatible functions

2022-07-28 Thread Arunpravin Paneer Selvam
Implemented a new intersect and compatible callback functions to ttm range manager fetching start offset from drm mm range allocator. Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/ttm/ttm_range_manager.c | 33 + 1 file

[PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem

2022-07-28 Thread Markuss Broks
Add early console support for generic linear framebuffer devices. This driver supports probing from cmdline early parameters or from the device-tree using information in simple-framebuffer node. The EFI functionality should be retained in whole. The driver was disabled on ARM because of a bug in

[PATCH 1/2] drivers: serial: earlycon: Pass device-tree node

2022-07-28 Thread Markuss Broks
Pass a pointer to device-tree node in case the driver probed from OF. This makes early console drivers able to fetch options from device-tree node properties. Signed-off-by: Markuss Broks --- drivers/tty/serial/earlycon.c | 3 +++ include/linux/serial_core.h | 1 + 2 files changed, 4

[PATCH 0/2] Add generic framebuffer support to EFI earlycon driver

2022-07-28 Thread Markuss Broks
Make the EFI earlycon driver be suitable for any linear framebuffers. This should be helpful for early porting of boards with no other means of output, like smartphones/tablets. There seems to be an issue with early_ioremap function on ARM32, but I am unable to find the exact cause. It appears the

Re: [PATCH v4 2/2] drm: panel: Add novatek nt35596s panel driver

2022-07-28 Thread Krzysztof Kozlowski
On 28/07/2022 15:50, Sam Ravnborg wrote: > Hi Krzysztof > On Thu, Jul 28, 2022 at 02:17:29PM +0200, Krzysztof Kozlowski wrote: >> On 28/07/2022 04:35, Molly Sophia wrote: >>> Novatek NT35596s is a generic DSI IC that drives command and video mode >>> panels. Add the driver for it. Currently add

Re: [PATCH] drm/amdgpu: Fix stub fence refcount underflow

2022-07-28 Thread Felix Kuehling
Am 2022-07-27 um 23:52 schrieb Alex Deucher: On Wed, Jul 27, 2022 at 7:08 PM Felix Kuehling wrote: Don't drop the stub fence reference after installing it as a replacement for the eviction fence. dma_resv_replace_fences doesn't take another reference to the fence, so it takes ownership of the

Re: [PATCH v4 2/2] drm: panel: Add novatek nt35596s panel driver

2022-07-28 Thread Sam Ravnborg
Hi Krzysztof On Thu, Jul 28, 2022 at 02:17:29PM +0200, Krzysztof Kozlowski wrote: > On 28/07/2022 04:35, Molly Sophia wrote: > > Novatek NT35596s is a generic DSI IC that drives command and video mode > > panels. Add the driver for it. Currently add support for the LCD panel > > from JDI connected

Re: [PATCH v3] staging: fbtft: core: set smem_len before fb_deferred_io_init call

2022-07-28 Thread Dan Carpenter
On Thu, Jul 28, 2022 at 12:49:15PM +, Liu, Chuansheng wrote: > Hi Peter, > > > > > The fbtft_framebuffer_alloc() calls fb_deferred_io_init() before > > initializing info->fix.smem_len. It is set to zero by the > > framebuffer_alloc() function. It will trigger a WARN_ON() at the > > start

[PATCH v1 3/7] drm/vpu: Add GEM buffer object management

2022-07-28 Thread Jacek Lawrynowicz
Adds four types of GEM-based BOs for the VPU: - shmem - userptr - internal - prime All types are implemented as struct vpu_bo, based on struct drm_gem_object. VPU address is allocated when buffer is created except for imported prime buffers that allocate it in BO_INFO IOCTL due to missing

[PATCH v1 2/7] drm/vpu: Add Intel VPU MMU support

2022-07-28 Thread Jacek Lawrynowicz
VPU Memory Management Unit is based on ARM MMU-600. It allows to create multiple virtual address spaces for the device and map noncontinuous host memory (there is no dedicated memory on the VPU). Address space is implemented as a struct vpu_mmu_context, it has an ID, drm_mm allocator for VPU

[PATCH v1 6/7] drm/vpu: Add command buffer submission logic

2022-07-28 Thread Jacek Lawrynowicz
Each of the user contexts has two command queues, one for compute engine and one for the copy engine. Command queues are allocated and registered in the device when the first job (command buffer) is submitted from the user space to the VPU device. The userspace provides a list of GEM buffer object

[PATCH v1 5/7] drm/vpu: Implement firmware parsing and booting

2022-07-28 Thread Jacek Lawrynowicz
Read, parse and boot VPU firmware image. Signed-off-by: Andrzej Kacprowski Signed-off-by: Krystian Pradzynski Signed-off-by: Jacek Lawrynowicz --- drivers/gpu/drm/vpu/Makefile | 1 + drivers/gpu/drm/vpu/vpu_boot_api.h | 222 drivers/gpu/drm/vpu/vpu_drv.c | 123

[PATCH v1 7/7] drm/vpu: Add PM support

2022-07-28 Thread Jacek Lawrynowicz
- Implement cold and warm firmware boot flows - Add hang recovery support - Add runtime power management support Signed-off-by: Krystian Pradzynski Signed-off-by: Jacek Lawrynowicz --- drivers/gpu/drm/vpu/Makefile | 3 +- drivers/gpu/drm/vpu/vpu_drv.c| 32 ++-

[PATCH v1 4/7] drm/vpu: Add IPC driver and JSM messages

2022-07-28 Thread Jacek Lawrynowicz
The IPC driver is used to send and receive messages to/from firmware running on the VPU. The only supported IPC message format is Job Submission Model (JSM) defined in vpu_jsm_api.h header. Signed-off-by: Andrzej Kacprowski Signed-off-by: Krystian Pradzynski Signed-off-by: Jacek Lawrynowicz

[PATCH v1 1/7] drm/vpu: Introduce a new DRM driver for Intel VPU

2022-07-28 Thread Jacek Lawrynowicz
VPU stands for Versatile Processing Unit and it's a CPU-integrated inference accelerator for Computer Vision and Deep Learning applications. The VPU device consist of following componensts: - Buttress - provides CPU to VPU integration, interrupt, frequency and power management. - Memory

[PATCH v1 0/7] New DRM driver for Intel VPU

2022-07-28 Thread Jacek Lawrynowicz
Hi, This patchset contains a new Linux* Kernel Driver for Intel® VPUs. VPU stands for Versatile Processing Unit and it is an AI inference accelerator integrated with Intel non-server CPUs starting from 14th generation. VPU enables efficient execution of Deep Learning applications like object

RE: [PATCH v3] staging: fbtft: core: set smem_len before fb_deferred_io_init call

2022-07-28 Thread Liu, Chuansheng
Hi Peter, > -Original Message- > From: Peter Suti > Sent: Wednesday, July 27, 2022 3:36 PM > To: Liu, Chuansheng ; dan.carpen...@oracle.com; > Greg Kroah-Hartman ; Thomas Zimmermann > ; Javier Martinez Canillas > Cc: Peter Suti ; dri- > de...@lists.freedesktop.org;

[PATCH v3 04/14] drm/mgag200: Acquire I/O-register lock in atomic_commit_tail function

2022-07-28 Thread Thomas Zimmermann
Hold I/O-register lock in atomic_commit_tail to protect all pipeline updates at once. Protects against concurrent I/O access in get-modes helper. Complex modesetting operations involve mode changes, plane updates and possibly BMC updates. Make all this atomic wrt to reading display modes via

[PATCH v3 14/14] drm/mgag200: Remove type field from struct mga_device

2022-07-28 Thread Thomas Zimmermann
Each model's specific code is located in a separate file. The type field in struct mga_device is no unused. Remove it. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Tested-by: Jocelyn Falempe Acked-by: Sam Ravnborg --- drivers/gpu/drm/mgag200/mgag200_drv.c | 17

[PATCH v3 11/14] drm/mgag200: Provide per-device callbacks for PIXPLLC

2022-07-28 Thread Thomas Zimmermann
Move the PIXPLLC code into per-model source files and wire it up with per-model callbacks. No functional changes. The PIXPLLC pixel-clock is part of the CRTC, but really separate hardware that varies with each model of the G200. Move the PIXPLLC code for each model into the per-model source file

[PATCH v3 12/14] drm/mgag200: Move mode-config to model-specific code

2022-07-28 Thread Thomas Zimmermann
Move the mode-config code into model-specific code and call the plane/CRTC helpers as needed. This will help with providing per- model implementations of individual helpers. Duplication of the pipeline init function is accepted. Some macros simplify this for shared helpers. v3: * clean

[PATCH v3 07/14] drm/mgag200: Replace simple-KMS with regular atomic helpers

2022-07-28 Thread Thomas Zimmermann
Drop simple-KMS in favor of regular atomic helpers. Makes the code more modular and hence better to adapt to per-model requirements. The simple-KMS helpers provide few extra features, so the patch is mostly about open-coding what simple-KMS does. The simple-KMS helpers do mix up plane and CRTC

[PATCH v3 06/14] drm/mgag200: Reorganize before dropping simple-KMS helpers

2022-07-28 Thread Thomas Zimmermann
Move around some modesetting code before dropping simple-KMS helpers. Makes the next patch more readable. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Tested-by: Jocelyn Falempe Acked-by: Sam Ravnborg --- drivers/gpu/drm/mgag200/mgag200_mode.c | 95

[PATCH v3 03/14] dmr/mgag200: Move ER/EW3 register initialization to per-model code

2022-07-28 Thread Thomas Zimmermann
The register initialization code contains special cases for G200ER and G200EW3 hardware. Move this to per-model code. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Tested-by: Jocelyn Falempe Acked-by: Sam Ravnborg --- drivers/gpu/drm/mgag200/mgag200_g200er.c | 2 ++

[PATCH v3 05/14] drm/mgag200: Store primary plane's color format in CRTC state

2022-07-28 Thread Thomas Zimmermann
Store the primary plane's color format in the CRTC state and use it for programming the CRTC's gamma LUTs. Gamma tables (i.e., color management) are provided by the CRTC, but depend in the primary plane's color format. Store the format in the CRTC state and use it. This has not been an issue with

[PATCH v3 01/14] drm/mgag200: Split mgag200_modeset_init()

2022-07-28 Thread Thomas Zimmermann
Split mgag200_modeset_init() into smaller helpers to initialize the mode_config structure and the pipeline. This will be helpful for transforming this code into per-model functions. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Tested-by: Jocelyn Falempe

[PATCH v3 08/14] drm/mgag200: Set SCROFF in primary-plane code

2022-07-28 Thread Thomas Zimmermann
The SCROFF bit controls reading the primary plane's scanout buffer from video memory. Set it from primary-plane code, instead of CRTC code. v3: * only flip SCROFF when enabling/disabling the plane (Jocelyn) Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Tested-by:

[PATCH v3 13/14] drm/mgag200: Move CRTC atomic_enable to model-specific code

2022-07-28 Thread Thomas Zimmermann
The CRTC atomic_enable helper contains per-model branches for G200ER, G200EV and G200SE devices. Implement a dedicated helper for each of them and remove the branches from the shared helper. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Tested-by: Jocelyn Falempe Acked-by: Sam

[PATCH v3 02/14] drm/mgag200: Move DAC-register setup into model-specific code

2022-07-28 Thread Thomas Zimmermann
Provide an init function for each model's DAC registers. Remove the shared helper. The code for initializing the DAC registers consisted of a large table of default value, plus many exceptions for the various G200 models. Providing a per-model implementation makes if more readable. At some point,

[PATCH v3 09/14] drm/mgag200: Add per-device callbacks

2022-07-28 Thread Thomas Zimmermann
While currently empty, the device callbacks will allow mgag200's modesetting code to interact with the BMC and PIXPLLC. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Tested-by: Jocelyn Falempe Acked-by: Sam Ravnborg --- drivers/gpu/drm/mgag200/mgag200_drv.c | 4 +++-

[PATCH v3 10/14] drm/mgag200: Provide per-device callbacks for BMC synchronization

2022-07-28 Thread Thomas Zimmermann
Move the BMC-related code into its own file and wire it up with device callbacks. While programming a new display mode, G200EW3 and G200WB have to de- synchronize with the BMC. Synchronization is done via VIDRST pins and controlled via VRSTEN and HRSTEN bits. Move the BMC code behind a

[PATCH v3 00/14] drm/mgag200: Move model-specific code into separate functions

2022-07-28 Thread Thomas Zimmermann
Mgag200 still mixes model-specific code and generic code in the same functions. Separate it into distinct helpers. As part of this effort, convert the driver from simple-KMS helpers to regular atomic helpers. The latter are way more flexible and can be adapted easily for each hardware model.

Re: [Intel-gfx] [PATCH v3 0/6] drm/i915: reduce TLB performance regressions

2022-07-28 Thread Mauro Carvalho Chehab
Hi Andi, On Thu, 28 Jul 2022 14:08:11 +0200 Andi Shyti wrote: > Hi Mauro, > > Pushed in drm-intel-gt-next. Thank you! I submitted two additional patches moving the TLB code into its own file, and adding the documentation for it, as agreed during patch 5/6 review:

[PATCH 0/2] Move TLB invalidation code for its own file and document it

2022-07-28 Thread Mauro Carvalho Chehab
There are more things to be added to TLB invalidation. Before doing that, move the code to its own file, and add the relevant documentation. Chris Wilson (1): drm/i915/gt: Move TLB invalidation to its own file Mauro Carvalho Chehab (1): drm/i915/gt: document TLB cache invalidation functions

[PATCH 1/2] drm/i915/gt: Move TLB invalidation to its own file

2022-07-28 Thread Mauro Carvalho Chehab
From: Chris Wilson Prepare for supporting more TLB invalidation scenarios by moving the current MMIO invalidation to its own file. Signed-off-by: Chris Wilson Cc: Fei Yang Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C

[PATCH 2/2] drm/i915/gt: document TLB cache invalidation functions

2022-07-28 Thread Mauro Carvalho Chehab
Add a description for the TLB cache invalidation algorithm and for the related kAPI functions. Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/2] at:

Re: [PATCH v4 2/2] drm: panel: Add novatek nt35596s panel driver

2022-07-28 Thread Krzysztof Kozlowski
On 28/07/2022 04:35, Molly Sophia wrote: > Novatek NT35596s is a generic DSI IC that drives command and video mode > panels. Add the driver for it. Currently add support for the LCD panel > from JDI connected with this IC, as found on Xiaomi Mi Mix2s phones. > > Changes in v4: > - No change. > >

Re: [PATCH v4 1/2] dt-bindings: display: panel: Add Novatek NT35596S panel bindings

2022-07-28 Thread Krzysztof Kozlowski
On 28/07/2022 04:35, Molly Sophia wrote: > Add documentation for "novatek,nt35596s" panel. > > Changes in v4: > - Correct numeric order of the items. > > Changes in v3: > - Embed the documentation into existing one (novatek,nt36672a). This does not go to commit msg, but to changelog after ---

Re: [Intel-gfx] [PATCH v3 0/6] drm/i915: reduce TLB performance regressions

2022-07-28 Thread Andi Shyti
Hi Mauro, Pushed in drm-intel-gt-next. Thanks, Andi On Wed, Jul 27, 2022 at 02:29:50PM +0200, Mauro Carvalho Chehab wrote: > Doing TLB invalidation cause performance regressions, like: > [424.370996] i915 :00:02.0: [drm] *ERROR* rcs0 TLB invalidation did > not complete in 4ms! > >

Re: [PATCH 3/8] drm/tidss: Add support for DSS port properties

2022-07-28 Thread Tomi Valkeinen
On 19/07/2022 11:08, Aradhya Bhatia wrote: Add support to enable and read the dss port properties. The "ti,oldi-mode" property indicates the tidss driver how many OLDI TXes are enabled as well as which mode do they need to be connected in. The "ti,rgb565_to_888" is a special property that

  1   2   >