Re: [Intel-gfx] [bug report] drm/i915: Move submission tasklet to i915_sched_engine

2023-10-09 Thread Tvrtko Ursulin
On 06/10/2023 19:50, John Harrison wrote: Tvrtko, would you have any thoughts on this one? I wasn't really involved in that work so without digging deep can only say that smatch seems to be noticing a genuine inconsistency. Whether or not it is possible at runtime Matt should know better.

Re: [Intel-gfx] [bug report] drm/i915: Move submission tasklet to i915_sched_engine

2023-10-06 Thread John Harrison
Tvrtko, would you have any thoughts on this one? John. On 10/4/2023 02:57, Dan Carpenter wrote: Hello Matthew Brost, This is a semi-automatic email about new static checker warnings. The patch 22916bad07a5: "drm/i915: Move submission tasklet to i915_sched_engine" from Jun 17, 2021, leads to

[Intel-gfx] [bug report] drm/i915/dsb: Use DEwake to combat PkgC latency

2023-10-04 Thread Dan Carpenter
Hello Ville Syrjälä, The patch f83b94d23770: "drm/i915/dsb: Use DEwake to combat PkgC latency" from Jun 6, 2023 (linux-next), leads to the following Smatch static checker warning: drivers/gpu/drm/i915/display/intel_dsb.c:363 _intel_dsb_commit() warn: always true condition '(dewake

[Intel-gfx] [bug report] drm/i915: Move submission tasklet to i915_sched_engine

2023-10-04 Thread Dan Carpenter
Hello Matthew Brost, This is a semi-automatic email about new static checker warnings. The patch 22916bad07a5: "drm/i915: Move submission tasklet to i915_sched_engine" from Jun 17, 2021, leads to the following Smatch complaint: drivers/gpu/drm/i915/gt/intel_execlists_submission.c:3659 rcu_v

[Intel-gfx] [bug report] drm/i915/hdmi: Use connector->ddc everwhere

2023-09-26 Thread Dan Carpenter
Hello Ville Syrjälä, This is a semi-automatic email about new static checker warnings. The patch e046d1562491: "drm/i915/hdmi: Use connector->ddc everwhere" from Aug 29, 2023, leads to the following Smatch complaint: drivers/gpu/drm/i915/display/intel_ddi.c:4336 intel_hdmi_reset_link() w

[Intel-gfx] [bug report] drm/i915/selftests: Add a cancel request selftest that triggers a reset

2023-05-26 Thread Dan Carpenter
Hello Matthew Brost, The patch 4e6835466771: "drm/i915/selftests: Add a cancel request selftest that triggers a reset" from Jan 13, 2022, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/selftests/i915_request.c:863 __cancel_reset() warn: NEW missing erro

[Intel-gfx] [bug report] drm/i915/display: Handle GMD_ID identification in display code

2023-05-26 Thread Dan Carpenter
Hello Matt Roper, The patch 12e6f6dc78e4: "drm/i915/display: Handle GMD_ID identification in display code" from May 23, 2023, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/i915_driver.c:850 i915_driver_probe() error: 'i915' dereferencing possible ERR_P

[Intel-gfx] [bug report] drm/i915: Remove I915_USER_PRIORITY_SHIFT

2023-05-26 Thread Dan Carpenter
Hello Chris Wilson, The patch eb5c10cbbc2f: "drm/i915: Remove I915_USER_PRIORITY_SHIFT" from Jan 20, 2021, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/selftest_execlists.c:1544 live_busywait_preempt() error: 'ctx_hi' dereferencing possible ERR_PTR() drivers/gpu/

[Intel-gfx] [bug report] drm/i915/selftests: Stop using kthread_stop()

2023-05-26 Thread Dan Carpenter
[ I don't know why I'm getting weird new warnings today... Did something change in the Kconfig? -dan ] Hello Tvrtko Ursulin, The patch 6407cf533217: "drm/i915/selftests: Stop using kthread_stop()" from Oct 20, 2022, leads to the following Smatch static checker warning: drivers/gpu/dr

[Intel-gfx] [bug report] drm/i915: Use ttm mmap handling for ttm bo's.

2023-05-19 Thread Dan Carpenter
Hello Maarten Lankhorst, This is a semi-automatic email about new static checker warnings. The patch cf3e3e86d779: "drm/i915: Use ttm mmap handling for ttm bo's." from Jun 10, 2021, leads to the following Smatch complaint: ./drivers/gpu/drm/i915/gem/i915_gem_mman.c:1008 i915_gem_mmap()

Re: [Intel-gfx] [bug report] drm/i915/guc: Use GuC submission API version number

2023-04-21 Thread John Harrison
On 3/24/2023 02:12, Dan Carpenter wrote: Hello John Harrison, The patch 9bbba0667f37: "drm/i915/guc: Use GuC submission API version number" from Nov 29, 2022, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:821 intel_uc_fw_fetch() w

Re: [Intel-gfx] [bug report] drm/i915/pmu: Use functions common with sysfs to read actual freq

2023-03-29 Thread Tvrtko Ursulin
Hi Dan, I feared this might happened while reviewing this patch.. I believe it is a false positive, see below: On 29/03/2023 07:24, Dan Carpenter wrote: Hello Ashutosh Dixit, The patch 12d4eb20d9d8: "drm/i915/pmu: Use functions common with sysfs to read actual freq" from Mar 15, 2023, lead

[Intel-gfx] [bug report] drm/i915/pmu: Use functions common with sysfs to read actual freq

2023-03-28 Thread Dan Carpenter
Hello Ashutosh Dixit, The patch 12d4eb20d9d8: "drm/i915/pmu: Use functions common with sysfs to read actual freq" from Mar 15, 2023, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/intel_rps.c:2110 __read_cagf() error: uninitialized symbol 'freq'. dr

[Intel-gfx] [bug report] drm/i915/guc: Use GuC submission API version number

2023-03-24 Thread Dan Carpenter
Hello John Harrison, The patch 9bbba0667f37: "drm/i915/guc: Use GuC submission API version number" from Nov 29, 2022, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:821 intel_uc_fw_fetch() warn: passing zero to 'ERR_PTR' drivers/gpu

Re: [Intel-gfx] [bug report] drm/i915/dmc: add i915_to_dmc() and dmc->i915 and use them

2023-03-10 Thread Jani Nikula
On Fri, 10 Mar 2023, Dan Carpenter wrote: > On Thu, Mar 09, 2023 at 04:51:10PM +0200, Jani Nikula wrote: >> On Thu, 09 Mar 2023, Dan Carpenter wrote: >> > Hello Jani Nikula, >> > >> > This is a semi-automatic email about new static checker warnings. >> > >> > The patch 1b28c1c789d0: "drm/i915/dmc

Re: [Intel-gfx] [bug report] drm/i915/dmc: add i915_to_dmc() and dmc->i915 and use them

2023-03-10 Thread Dan Carpenter
On Thu, Mar 09, 2023 at 04:51:10PM +0200, Jani Nikula wrote: > On Thu, 09 Mar 2023, Dan Carpenter wrote: > > Hello Jani Nikula, > > > > This is a semi-automatic email about new static checker warnings. > > > > The patch 1b28c1c789d0: "drm/i915/dmc: add i915_to_dmc() and > > dmc->i915 and use them

Re: [Intel-gfx] [bug report] drm/i915/dmc: add i915_to_dmc() and dmc->i915 and use them

2023-03-09 Thread Jani Nikula
On Thu, 09 Mar 2023, Dan Carpenter wrote: > Hello Jani Nikula, > > This is a semi-automatic email about new static checker warnings. > > The patch 1b28c1c789d0: "drm/i915/dmc: add i915_to_dmc() and > dmc->i915 and use them" from Mar 1, 2023, leads to the following > Smatch complaint: > > dri

[Intel-gfx] [bug report] drm/i915/dmc: add i915_to_dmc() and dmc->i915 and use them

2023-03-09 Thread Dan Carpenter
Hello Jani Nikula, This is a semi-automatic email about new static checker warnings. The patch 1b28c1c789d0: "drm/i915/dmc: add i915_to_dmc() and dmc->i915 and use them" from Mar 1, 2023, leads to the following Smatch complaint: drivers/gpu/drm/i915/display/intel_dmc.c:1162 intel_dmc_debu

[Intel-gfx] [bug report] drm/i915/mtl: Add hardware-level lock for steering

2023-02-08 Thread Dan Carpenter
Hello Matt Roper, The patch 3100240bf846: "drm/i915/mtl: Add hardware-level lock for steering" from Nov 28, 2022, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/intel_gt_mcr.c:379 intel_gt_mcr_lock() warn: sleeping in atomic context CALL TREE: intel_engine_reset()

[Intel-gfx] [bug report] drm/i915/guc: Suspend/resume implementation for new interface

2023-02-08 Thread Dan Carpenter
Hello Matthew Brost, The patch cad46a332f3d: "drm/i915/guc: Suspend/resume implementation for new interface" from Jul 26, 2021, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/uc/intel_guc.c:655 intel_guc_suspend() error: passing non negative 26843545

Re: [Intel-gfx] [bug report] drm/i915: Allow compaction upto SWIOTLB max segment size

2023-02-07 Thread Tvrtko Ursulin
On 07/02/2023 08:49, Dan Carpenter wrote: On Mon, Feb 06, 2023 at 04:59:36PM +, Tvrtko Ursulin wrote: On 06/02/2023 14:19, Dan Carpenter wrote: [ Ancient code but the warning showed up again because the function was renamed or something? - dan ] Hello Chris Wilson, The patch 871dfb

Re: [Intel-gfx] [bug report] drm/i915: Allow compaction upto SWIOTLB max segment size

2023-02-07 Thread Dan Carpenter
On Mon, Feb 06, 2023 at 04:59:36PM +, Tvrtko Ursulin wrote: > > On 06/02/2023 14:19, Dan Carpenter wrote: > > [ Ancient code but the warning showed up again because the function was > >renamed or something? - dan ] > > > > Hello Chris Wilson, > > > > The patch 871dfbd67d4e: "drm/i915: Al

Re: [Intel-gfx] [bug report] drm/i915: Allow compaction upto SWIOTLB max segment size

2023-02-06 Thread Tvrtko Ursulin
On 06/02/2023 14:19, Dan Carpenter wrote: [ Ancient code but the warning showed up again because the function was renamed or something? - dan ] Hello Chris Wilson, The patch 871dfbd67d4e: "drm/i915: Allow compaction upto SWIOTLB max segment size" from Oct 11, 2016, leads to the following S

[Intel-gfx] [bug report] drm/i915: Allow compaction upto SWIOTLB max segment size

2023-02-06 Thread Dan Carpenter
[ Ancient code but the warning showed up again because the function was renamed or something? - dan ] Hello Chris Wilson, The patch 871dfbd67d4e: "drm/i915: Allow compaction upto SWIOTLB max segment size" from Oct 11, 2016, leads to the following Smatch static checker warning: drivers/

[Intel-gfx] [Bug report] Null pointer dereference unbinding i915 with gvt enabled

2022-12-06 Thread Alex Williamson
I see this both on the vfio next branch and on the gvt-next branch of https://github.com/intel/gvt-linux. I boot my system with i915.enable_gvt=1 and load the kvmgt module. A vGPU device is automatically created by mdevctl. If I then bind vfio-pci directly to the GPU using 'driverctl --nosave

Re: [Intel-gfx] [bug report] drm/i915/guc: Implement multi-lrc submission

2022-09-23 Thread Dan Carpenter
On Thu, Sep 22, 2022 at 01:01:48PM -0700, John Harrison wrote: > On 9/22/2022 07:26, Dan Carpenter wrote: > > Hello Matthew Brost, > > > > The patch 6b540bf6f143: "drm/i915/guc: Implement multi-lrc > > submission" from Oct 14, 2021, leads to the following Smatch static > > checker warning: > > >

Re: [Intel-gfx] [bug report] drm/i915/guc: Implement multi-lrc submission

2022-09-22 Thread John Harrison
On 9/22/2022 07:26, Dan Carpenter wrote: Hello Matthew Brost, The patch 6b540bf6f143: "drm/i915/guc: Implement multi-lrc submission" from Oct 14, 2021, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:752 __guc_add_request()

[Intel-gfx] [bug report] drm/i915/guc: Implement multi-lrc submission

2022-09-22 Thread Dan Carpenter
Hello Matthew Brost, The patch 6b540bf6f143: "drm/i915/guc: Implement multi-lrc submission" from Oct 14, 2021, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:752 __guc_add_request() warn: refcount leak 'ce->ref.refcount.ref

[Intel-gfx] [bug report] drm/i915/migrate: Evict and restore the flatccs capable lmem obj

2022-05-05 Thread Dan Carpenter
Hello Ramalingam C, The patch da0595ae91da: "drm/i915/migrate: Evict and restore the flatccs capable lmem obj" from Apr 5, 2022, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/intel_migrate.c:832 intel_context_migrate_copy() error: uninitialized symbol 'ccs_cache_l

Re: [Intel-gfx] [bug report] High refresh rates broken on eDP display with Optimus

2022-03-29 Thread Saarinen, Jani
Hi, Please file bug to gitlab: https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs > -Original Message- > From: Intel-gfx On Behalf Of Jeffrey > Ellison > Sent: tiistai 29. maaliskuuta 2022 5.38 > To: intel-gfx@lists.freedesktop.org > Subject: [Inte

[Intel-gfx] [bug report] High refresh rates broken on eDP display with Optimus

2022-03-28 Thread Jeffrey Ellison
Hello, I have an Optimus laptop with Intel Tiger Lake H GT1 integrated graphics (i7-11800H) and NVIDIA RTX 3080 Mobile GPU. The inbuilt display is 165 Hz and is connected to the IGPU by eDP. As of any Kernel version 5.16 onwards, Xrandr only detects 60 Hz as a possible refresh rate. The problem al

[Intel-gfx] [bug report] drm/i915: Use vma resources for async unbinding

2022-02-27 Thread Dan Carpenter
Hello Thomas Hellström, The patch 2f6b90da9192: "drm/i915: Use vma resources for async unbinding" from Jan 10, 2022, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/i915_vma.c:515 i915_vma_bind() error: we previously assumed 'work->vma_res' could be null

[Intel-gfx] [bug report] drm/i915: Extract intel_bw_check_data_rate()

2022-02-25 Thread Dan Carpenter
Hello Ville Syrjälä, The patch 6d8ebef53c2c: "drm/i915: Extract intel_bw_check_data_rate()" from Feb 18, 2022, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/display/intel_bw.c:922 intel_bw_atomic_check() error: we previously assumed 'new_bw_state' coul

[Intel-gfx] [bug report] drm/i915/gt: Replace direct submit with direct call to tasklet

2021-12-10 Thread Dan Carpenter
Hello Chris Wilson, The patch 16f2941ad307: "drm/i915/gt: Replace direct submit with direct call to tasklet" from Dec 24, 2020, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gt/selftest_lrc.c:1616 garbage_reset() warn: sleeping in atomic context drive

[Intel-gfx] [bug report] drm/i915: Add support for moving fence waiting

2021-11-28 Thread Dan Carpenter
Hello Maarten Lankhorst, This is a semi-automatic email about new static checker warnings. The patch f6c466b84cfa: "drm/i915: Add support for moving fence waiting" from Nov 22, 2021, leads to the following Smatch complaint: drivers/gpu/drm/i915/i915_vma.c:1015 i915_vma_pin_ww() error: w

Re: [Intel-gfx] [bug report] drm/i915/ttm: add tt shmem backend

2021-11-18 Thread Dan Carpenter
On Thu, Nov 18, 2021 at 03:15:31PM +, Matthew Auld wrote: > On 18/11/2021 15:01, Dan Carpenter wrote: > > Hello Matthew Auld, > > > > The patch 7ae034590cea: "drm/i915/ttm: add tt shmem backend" from Oct > > 18, 2021, leads to the following Smatch static checker warning: > > > > drivers/g

Re: [Intel-gfx] [bug report] drm/i915/ttm: add tt shmem backend

2021-11-18 Thread Matthew Auld
On 18/11/2021 15:01, Dan Carpenter wrote: Hello Matthew Auld, The patch 7ae034590cea: "drm/i915/ttm: add tt shmem backend" from Oct 18, 2021, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gem/i915_gem_ttm.c:335 i915_ttm_eviction_valuable() warn: sign

[Intel-gfx] [bug report] drm/i915/ttm: add tt shmem backend

2021-11-18 Thread Dan Carpenter
Hello Matthew Auld, The patch 7ae034590cea: "drm/i915/ttm: add tt shmem backend" from Oct 18, 2021, leads to the following Smatch static checker warning: drivers/gpu/drm/i915/gem/i915_gem_ttm.c:335 i915_ttm_eviction_valuable() warn: signedness bug returning '(-16)' drivers/gpu/dr

Re: [Intel-gfx] [bug report] drm/i915/tc: Fix TypeC PHY connect/disconnect logic on ADL-P

2021-10-01 Thread Dan Carpenter
On Fri, Oct 01, 2021 at 05:20:17PM +0300, Ville Syrjälä wrote: > On Fri, Oct 01, 2021 at 04:25:35PM +0300, Dan Carpenter wrote: > > Hello Imre Deak, > > > > This is a semi-automatic email about new static checker warnings. > > > > The patch 3e0abc7661c8: "drm/i915/tc: Fix TypeC PHY > > connect/d

Re: [Intel-gfx] [bug report] drm/i915/tc: Fix TypeC PHY connect/disconnect logic on ADL-P

2021-10-01 Thread Ville Syrjälä
On Fri, Oct 01, 2021 at 04:25:35PM +0300, Dan Carpenter wrote: > Hello Imre Deak, > > This is a semi-automatic email about new static checker warnings. > > The patch 3e0abc7661c8: "drm/i915/tc: Fix TypeC PHY > connect/disconnect logic on ADL-P" from Sep 29, 2021, leads to the > following Smatch

[Intel-gfx] [bug report] drm/i915/tc: Fix TypeC PHY connect/disconnect logic on ADL-P

2021-10-01 Thread Dan Carpenter
Hello Imre Deak, This is a semi-automatic email about new static checker warnings. The patch 3e0abc7661c8: "drm/i915/tc: Fix TypeC PHY connect/disconnect logic on ADL-P" from Sep 29, 2021, leads to the following Smatch complaint: drivers/gpu/drm/i915/display/intel_ddi.c:4028 intel_ddi_enco

Re: [Intel-gfx] [bug report] drm/i915/gem: Correct the locking and pin pattern for dma-buf (v8)

2021-08-16 Thread Nathan Chancellor
On 8/13/2021 4:31 AM, Dan Carpenter wrote: Nathan has probably already sent fixes for these. Nathan, could you CC kernel-janitors on static checker fixes? That way we wouldn't send so many duplicate patches. Sure. I did not send any fixes prior to this email but I just sent https://lore.kerne

[Intel-gfx] [bug report] drm/i915/gem: Correct the locking and pin pattern for dma-buf (v8)

2021-08-13 Thread Dan Carpenter
Nathan has probably already sent fixes for these. Nathan, could you CC kernel-janitors on static checker fixes? That way we wouldn't send so many duplicate patches. Uninitialized variable warnings are really frustrating. We disabled the GCC warning for them because the new GCC is crap. So now

[Intel-gfx] [bug report] drm/i915/gt: Replace direct submit with direct call to tasklet

2021-07-27 Thread Dan Carpenter
Hello Chris Wilson, The patch 16f2941ad307: "drm/i915/gt: Replace direct submit with direct call to tasklet" from Dec 24, 2020, leads to the following static checker warning: kernel/softirq.c:887 tasklet_unlock_wait() warn: sleeping in atomic context drivers/gpu/drm/i915/gt/selft

Re: [Intel-gfx] [bug report] drm/i915/guc: Add support for data reporting in GuC responses

2021-06-18 Thread Michal Wajdeczko
Hello Dan, On 18.06.2021 09:38, Dan Carpenter wrote: > Hello Michal Wajdeczko, > > The patch b839a869dfc9: "drm/i915/guc: Add support for data reporting > in GuC responses" from Mar 26, 2018, leads to the following static > checker warning: > > drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:307

[Intel-gfx] [bug report] drm/i915/guc: Add support for data reporting in GuC responses

2021-06-18 Thread Dan Carpenter
Hello Michal Wajdeczko, The patch b839a869dfc9: "drm/i915/guc: Add support for data reporting in GuC responses" from Mar 26, 2018, leads to the following static checker warning: drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:307 intel_guc_ct_enable() error: passing non negative 4095 to

Re: [Intel-gfx] [bug report] drm/i915: Fix enabled_planes bitmask

2021-03-24 Thread Ville Syrjälä
On Wed, Mar 24, 2021 at 10:22:54AM +0300, Dan Carpenter wrote: > Hello Ville Syrjälä, > > This is a semi-automatic email about new static checker warnings. > > The patch 97bc7ffa1b1e: "drm/i915: Fix enabled_planes bitmask" from > Mar 5, 2021, leads to the following Smatch complaint: > > driv

[Intel-gfx] [bug report] drm/i915: Fix enabled_planes bitmask

2021-03-24 Thread Dan Carpenter
Hello Ville Syrjälä, This is a semi-automatic email about new static checker warnings. The patch 97bc7ffa1b1e: "drm/i915: Fix enabled_planes bitmask" from Mar 5, 2021, leads to the following Smatch complaint: drivers/gpu/drm/i915/display/intel_atomic_plane.c:332 intel_plane_atomic_check_wit

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown,

2021-03-22 Thread Ville Syrjälä
On Mon, Mar 22, 2021 at 07:00:38PM +0100, Hans de Goede wrote: > Hi, > > On 3/22/21 5:00 PM, Ville Syrjälä wrote: > > On Mon, Mar 22, 2021 at 04:51:26PM +0100, Hans de Goede wrote: > >> Hi, > >> > >> On 3/22/21 3:53 PM, Ville Syrjälä wrote: > >>> On Mon, Mar 22, 2021 at 11:45:39AM +0100, Hans de G

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown,

2021-03-22 Thread Hans de Goede
Hi, On 3/22/21 5:00 PM, Ville Syrjälä wrote: > On Mon, Mar 22, 2021 at 04:51:26PM +0100, Hans de Goede wrote: >> Hi, >> >> On 3/22/21 3:53 PM, Ville Syrjälä wrote: >>> On Mon, Mar 22, 2021 at 11:45:39AM +0100, Hans de Goede wrote: Hi, On 3/14/21 11:30 AM, Mario Hüttel wrote: > H

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown,

2021-03-22 Thread Ville Syrjälä
On Mon, Mar 22, 2021 at 04:51:26PM +0100, Hans de Goede wrote: > Hi, > > On 3/22/21 3:53 PM, Ville Syrjälä wrote: > > On Mon, Mar 22, 2021 at 11:45:39AM +0100, Hans de Goede wrote: > >> Hi, > >> > >> On 3/14/21 11:30 AM, Mario Hüttel wrote: > >>> Hello, > >>> > >>> It seems, like the mailing list,

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown,

2021-03-22 Thread Hans de Goede
Hi, On 3/22/21 3:53 PM, Ville Syrjälä wrote: > On Mon, Mar 22, 2021 at 11:45:39AM +0100, Hans de Goede wrote: >> Hi, >> >> On 3/14/21 11:30 AM, Mario Hüttel wrote: >>> Hello, >>> >>> It seems, like the mailing list, didn't accept my email. So I'll send >>> it again: >>> >>> I want to report a bug.

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown,

2021-03-22 Thread Ville Syrjälä
On Sun, Mar 14, 2021 at 11:30:12AM +0100, Mario Hüttel wrote: > Hello, > > It seems, like the mailing list, didn't accept my email. So I'll send > it again: > > I want to report a bug. I have a PC with Intel i7-6700K processor (with > integrated graphics) and an AsRock Fatal1ty Z170 Gaming K6 mai

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown,

2021-03-22 Thread Ville Syrjälä
On Mon, Mar 22, 2021 at 11:45:39AM +0100, Hans de Goede wrote: > Hi, > > On 3/14/21 11:30 AM, Mario Hüttel wrote: > > Hello, > > > > It seems, like the mailing list, didn't accept my email. So I'll send > > it again: > > > > I want to report a bug. I have a PC with Intel i7-6700K processor (with

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown,

2021-03-22 Thread Hans de Goede
Hi, On 3/14/21 11:30 AM, Mario Hüttel wrote: > Hello, > > It seems, like the mailing list, didn't accept my email. So I'll send > it again: > > I want to report a bug. I have a PC with Intel i7-6700K processor (with > integrated graphics) and an AsRock Fatal1ty Z170 Gaming K6 mainboard. I > use

[Intel-gfx] [bug report] drm/i915: Computer does not shutdown,

2021-03-22 Thread Mario Hüttel
Hello, It seems, like the mailing list, didn't accept my email. So I'll send it again: I want to report a bug. I have a PC with Intel i7-6700K processor (with integrated graphics) and an AsRock Fatal1ty Z170 Gaming K6 mainboard. I use the CPU's integrated graphics. My system is Archlinux with Ker

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown since commit fe0f1e3

2021-03-14 Thread Mario Hüttel
Hi, On Sun, 2021-03-14 at 17:25 +0200, Imre Deak wrote: > > I used git bisect to find the commit that causes this behavior on > > my > > machine. The result is: fe0f1e3bfdfeb53e18f1206aea4f40b9bd1f291c is > > the > > first bad commit (drm/i915: Shut down displays gracefully on > > reboot). > > >

Re: [Intel-gfx] [bug report] drm/i915: Computer does not shutdown since commit fe0f1e3

2021-03-14 Thread Imre Deak
Hi, On Sun, Mar 14, 2021 at 02:48:08PM +0100, Mario Hüttel wrote: > Hello, > > It seems, like the mailing list, didn't accept my previous emails. So > I'll send it again: > > I want to report a bug. I've got a PC with Intel i7-6700K processor > (with integrated graphics) and an AsRock Fatal1ty Z

[Intel-gfx] [bug report] drm/i915: Computer does not shutdown since commit fe0f1e3

2021-03-14 Thread Mario Hüttel
Hello, It seems, like the mailing list, didn't accept my previous emails. So I'll send it again: I want to report a bug. I've got a PC with Intel i7-6700K processor (with integrated graphics) and an AsRock Fatal1ty Z170 Gaming K6 mainboard. I use the CPU's integrated graphics. My system is Archli

[Intel-gfx] [bug report] drm/i915: buddy allocator

2021-03-02 Thread Dan Carpenter
[ Sorry, I don't know why Smatch is complaining about two year old code. The warning is valid enough, though. - dan ] Hello Matthew Auld, The patch 14d1b9a6247c: "drm/i915: buddy allocator" from Aug 9, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/selftests

Re: [Intel-gfx] [bug report] drm/i915: Replace some gamma_mode ifs with switches

2020-11-02 Thread Dan Carpenter
Similar bug: drivers/gpu/drm/i915/display/intel_color.c:794 bdw_load_luts() error: we previously assumed 'gamma_lut' could be null (see line 784) regards, dan carpenter On Mon, Nov 02, 2020 at 04:07:36PM +0300, Dan Carpenter wrote: > Hello Ville Syrjälä, > > This is a semi-automatic email abou

[Intel-gfx] [bug report] drm/i915: Replace some gamma_mode ifs with switches

2020-11-02 Thread Dan Carpenter
Hello Ville Syrjälä, This is a semi-automatic email about new static checker warnings. The patch 7852ddd5d60a: "drm/i915: Replace some gamma_mode ifs with switches" from Sep 25, 2020, leads to the following Smatch complaint: drivers/gpu/drm/i915/display/intel_color.c:765 ivb_load_luts()

[Intel-gfx] [bug report] drm/i915: Add an implementation for i915_gem_ww_ctx locking, v2.

2020-09-11 Thread Dan Carpenter
Hello Maarten Lankhorst, This is a semi-automatic email about new static checker warnings. The patch 80f0b679d6f0: "drm/i915: Add an implementation for i915_gem_ww_ctx locking, v2." from Aug 19, 2020, leads to the following Smatch complaint: drivers/gpu/drm/i915/gem/i915_gem_object.h:130 __i

[Intel-gfx] [bug report] drm/i915: Use ww pinning for intel_context_create_request()

2020-09-10 Thread Dan Carpenter
Hello Maarten Lankhorst, The patch 8a929c9eb1c2: "drm/i915: Use ww pinning for intel_context_create_request()" from Aug 19, 2020, leads to the following static checker warning: drivers/gpu/drm/i915/gt/intel_context.c:481 intel_context_create_request() error: uninitialized symbol

[Intel-gfx] [bug report] drm/i915: Use per object locking in execbuf, v12.

2020-09-10 Thread Dan Carpenter
Hey Dave, I think this is a bad merge: The patch c43ce12328df: "drm/i915: Use per object locking in execbuf, v12." from Aug 19, 2020, leads to the following static checker warning: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1459 __reloc_entry_gpu() warn: signedness bug return

[Intel-gfx] [bug report] drm/i915: Move the engine mask to intel_gt_info

2020-07-10 Thread dan.carpenter
Hello Daniele Ceraolo Spurio, This is a semi-automatic email about new static checker warnings. The patch 792592e72aba: "drm/i915: Move the engine mask to intel_gt_info" from Jul 7, 2020, leads to the following Smatch complaint: drivers/gpu/drm/i915/i915_gpu_error.c:801 __err_print_to_sgl()

Re: [Intel-gfx] [bug report] drm/i915: Use the async worker to avoid reclaim tainting the ggtt->mutex

2020-05-07 Thread Chris Wilson
Quoting Dan Carpenter (2020-05-07 10:17:14) > Hello Chris Wilson, > > The patch e3793468b466: "drm/i915: Use the async worker to avoid > reclaim tainting the ggtt->mutex" from Jan 30, 2020, leads to the > following static checker warning: > > drivers/gpu/drm/i915/i915_vma.c:356 i915_vma_w

[Intel-gfx] [bug report] drm/i915: Use the async worker to avoid reclaim tainting the ggtt->mutex

2020-05-07 Thread Dan Carpenter
Hello Chris Wilson, The patch e3793468b466: "drm/i915: Use the async worker to avoid reclaim tainting the ggtt->mutex" from Jan 30, 2020, leads to the following static checker warning: drivers/gpu/drm/i915/i915_vma.c:356 i915_vma_wait_for_bind() warn: 's64max' cannot fit into 'boo

Re: [Intel-gfx] [bug report] drm/i915/gt: Use the RPM config register to determine clk frequencies

2020-04-29 Thread Chris Wilson
Quoting Dan Carpenter (2020-04-29 14:23:45) > Hello Chris Wilson, > > The patch 9c878557b1eb: "drm/i915/gt: Use the RPM config register to > determine clk frequencies" from Apr 24, 2020, leads to the following > static checker warning: > > drivers/gpu/drm/i915/gt/debugfs_gt_pm.c:407 frequ

[Intel-gfx] [bug report] drm/i915/gt: Use the RPM config register to determine clk frequencies

2020-04-29 Thread Dan Carpenter
Hello Chris Wilson, The patch 9c878557b1eb: "drm/i915/gt: Use the RPM config register to determine clk frequencies" from Apr 24, 2020, leads to the following static checker warning: drivers/gpu/drm/i915/gt/debugfs_gt_pm.c:407 frequency_show() error: uninitialized symbol 'rpcurupei

Re: [Intel-gfx] [bug report] drm/i915: Use the i915_device name for identifying our request fences

2019-12-13 Thread Chris Wilson
Quoting Dan Carpenter (2019-12-13 12:20:58) > Hello Chris Wilson, > > The patch 65c29dbb19b2: "drm/i915: Use the i915_device name for > identifying our request fences" from Dec 11, 2019, leads to the > following static checker warning: > > drivers/gpu/drm/i915/i915_request.c:77 i915_fence

[Intel-gfx] [bug report] drm/i915: Use the i915_device name for identifying our request fences

2019-12-13 Thread Dan Carpenter
Hello Chris Wilson, The patch 65c29dbb19b2: "drm/i915: Use the i915_device name for identifying our request fences" from Dec 11, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/i915_request.c:77 i915_fence_get_timeline_name() warn: this array is non-NULL.

Re: [Intel-gfx] [bug report] drm/i915: Initial selftests for exercising eviction

2019-11-13 Thread Chris Wilson
Quoting Dan Carpenter (2019-11-14 06:54:37) > Hello Chris Wilson, > > The patch f40a7b7558ef: "drm/i915: Initial selftests for exercising > eviction" from Feb 13, 2017, leads to the following static checker > warning: > > drivers/gpu/drm/i915/selftests/i915_gem_evict.c:202 igt_overcommit(

[Intel-gfx] [bug report] drm/i915: Initial selftests for exercising eviction

2019-11-13 Thread Dan Carpenter
Hello Chris Wilson, The patch f40a7b7558ef: "drm/i915: Initial selftests for exercising eviction" from Feb 13, 2017, leads to the following static checker warning: drivers/gpu/drm/i915/selftests/i915_gem_evict.c:202 igt_overcommit() warn: passing zero to 'PTR_ERR' drivers/gpu/drm

Re: [Intel-gfx] [bug report] drm/i915: Move context management under GEM

2019-11-06 Thread Chris Wilson
Quoting Dan Carpenter (2019-11-06 13:48:14) > Hello Chris Wilson, > > The patch a4e7ccdac38e: "drm/i915: Move context management under GEM" > from Oct 4, 2019, leads to the following static checker warning: > > drivers/gpu/drm/i915/gem/i915_gem_context.c:980 set_ppgtt() > warn: 'c

[Intel-gfx] [bug report] drm/i915: Move context management under GEM

2019-11-06 Thread Dan Carpenter
Hello Chris Wilson, The patch a4e7ccdac38e: "drm/i915: Move context management under GEM" from Oct 4, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/gem/i915_gem_context.c:980 set_ppgtt() warn: 'ctx->mutex' both locked and unlocked. drivers/gpu/drm/i915

Re: [Intel-gfx] [bug report] drm/i915/selftests: Exercise context switching in parallel

2019-10-11 Thread Chris Wilson
Quoting Dan Carpenter (2019-10-11 12:42:09) > Hello Chris Wilson, > > This is a semi-automatic email about new static checker warnings. > > The patch 50d16d44cce4: "drm/i915/selftests: Exercise context > switching in parallel" from Sep 30, 2019, leads to the following > Smatch complaint: > >

[Intel-gfx] [bug report] drm/i915/selftests: Exercise context switching in parallel

2019-10-11 Thread Dan Carpenter
Hello Chris Wilson, This is a semi-automatic email about new static checker warnings. The patch 50d16d44cce4: "drm/i915/selftests: Exercise context switching in parallel" from Sep 30, 2019, leads to the following Smatch complaint: drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c:349

Re: [Intel-gfx] [bug report] drm/i915/selftests: Teach igt_gpu_fill_dw() to take intel_context

2019-08-27 Thread Chris Wilson
Quoting Dan Carpenter (2019-08-27 10:40:16) > Hello Chris Wilson, > > The patch 75b974a859e5: "drm/i915/selftests: Teach igt_gpu_fill_dw() > to take intel_context" from Aug 24, 2019, leads to the following > static checker warning: > > drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c

[Intel-gfx] [bug report] drm/i915/selftests: Teach igt_gpu_fill_dw() to take intel_context

2019-08-27 Thread Dan Carpenter
Hello Chris Wilson, The patch 75b974a859e5: "drm/i915/selftests: Teach igt_gpu_fill_dw() to take intel_context" from Aug 24, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c:402 igt_ctx_exec() error: 'ce' dereferencing poss

[Intel-gfx] [bug report] drm/i915: buddy allocator

2019-08-15 Thread Dan Carpenter
Hello Matthew Auld, The patch 14d1b9a6247c: "drm/i915: buddy allocator" from Aug 9, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/selftests/i915_buddy.c:670 igt_buddy_alloc_range() error: we previously assumed 'block' could be null (see line 665) drive

Re: [Intel-gfx] [bug report] drm/i915/uc: prefer intel_gt over i915 in GuC/HuC paths

2019-07-23 Thread Chris Wilson
Quoting Daniele Ceraolo Spurio (2019-07-23 16:08:49) > > > On 7/23/2019 8:00 AM, Dan Carpenter wrote: > > Hello Daniele Ceraolo Spurio, > > > > The patch 84b1ca2f0e68: "drm/i915/uc: prefer intel_gt over i915 in > > GuC/HuC paths" from Jul 13, 2019, leads to the following static > > checker warnin

Re: [Intel-gfx] [bug report] drm/i915/uc: prefer intel_gt over i915 in GuC/HuC paths

2019-07-23 Thread Daniele Ceraolo Spurio
On 7/23/2019 8:00 AM, Dan Carpenter wrote: Hello Daniele Ceraolo Spurio, The patch 84b1ca2f0e68: "drm/i915/uc: prefer intel_gt over i915 in GuC/HuC paths" from Jul 13, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/gt/uc/intel_huc.c:173 intel_huc_check_statu

[Intel-gfx] [bug report] drm/i915/uc: prefer intel_gt over i915 in GuC/HuC paths

2019-07-23 Thread Dan Carpenter
Hello Daniele Ceraolo Spurio, The patch 84b1ca2f0e68: "drm/i915/uc: prefer intel_gt over i915 in GuC/HuC paths" from Jul 13, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/gt/uc/intel_huc.c:173 intel_huc_check_status() warn: masking a bool drivers/gpu/d

Re: [Intel-gfx] [bug report] drm/i915: Trim struct_mutex hold duration for i915_gem_free_objects

2019-05-30 Thread Chris Wilson
Quoting Dan Carpenter (2019-05-30 09:13:01) > Hello Chris Wilson, > > The patch cc731f5a3b1f: "drm/i915: Trim struct_mutex hold duration > for i915_gem_free_objects" from Oct 13, 2017, leads to the following > static checker warning: > > drivers/gpu/drm/i915/gem/i915_gem_object.c:195 > _

[Intel-gfx] [bug report] drm/i915: Trim struct_mutex hold duration for i915_gem_free_objects

2019-05-30 Thread Dan Carpenter
Hello Chris Wilson, The patch cc731f5a3b1f: "drm/i915: Trim struct_mutex hold duration for i915_gem_free_objects" from Oct 13, 2017, leads to the following static checker warning: drivers/gpu/drm/i915/gem/i915_gem_object.c:195 __i915_gem_free_objects() error: we previously assumed

Re: [Intel-gfx] [bug report] drm/i915: Engine discovery query

2019-05-29 Thread Dan Carpenter
On Wed, May 29, 2019 at 01:08:59PM +0100, Chris Wilson wrote: > Quoting Dan Carpenter (2019-05-29 12:52:43) > > Hello Tvrtko Ursulin, > > > > The patch c5d3e39caa45: "drm/i915: Engine discovery query" from May > > 22, 2019, leads to the following static checker warning: > > > > drivers/gp

Re: [Intel-gfx] [bug report] drm/i915: Engine discovery query

2019-05-29 Thread Chris Wilson
Quoting Dan Carpenter (2019-05-29 12:52:43) > Hello Tvrtko Ursulin, > > The patch c5d3e39caa45: "drm/i915: Engine discovery query" from May > 22, 2019, leads to the following static checker warning: > > drivers/gpu/drm/i915/i915_query.c:134 query_engine_info() > warn: calling '__c

[Intel-gfx] [bug report] drm/i915: Engine discovery query

2019-05-29 Thread Dan Carpenter
Hello Tvrtko Ursulin, The patch c5d3e39caa45: "drm/i915: Engine discovery query" from May 22, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/i915_query.c:134 query_engine_info() warn: calling '__copy_to_user()' without access_ok() drivers/gpu/drm/i915/i

Re: [Intel-gfx] [bug report] drm/i915: Make sure we have enough memory bandwidth on ICL

2019-05-29 Thread Ville Syrjälä
On Wed, May 29, 2019 at 01:03:35PM +0300, Dan Carpenter wrote: > Hi Syrjälä, > > I had a question about commit c457d9cf256e: ("drm/i915: Make sure we have > enough memory bandwidth on ICL"). > > drivers/gpu/drm/i915/intel_bw.c > 64 static int icl_pcode_read_qgv_point_info(struct drm_i915_pri

[Intel-gfx] [bug report] drm/i915: Make sure we have enough memory bandwidth on ICL

2019-05-29 Thread Dan Carpenter
Hi Syrjälä, I had a question about commit c457d9cf256e: ("drm/i915: Make sure we have enough memory bandwidth on ICL"). drivers/gpu/drm/i915/intel_bw.c 64 static int icl_pcode_read_qgv_point_info(struct drm_i915_private *dev_priv, 65 struct inte

[Intel-gfx] [bug report] drm/i915: Load balancing across a virtual engine

2019-05-25 Thread Dan Carpenter
Hello Chris Wilson, The patch 6d06779e8672: "drm/i915: Load balancing across a virtual engine" from May 21, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/gt/intel_lrc.c:3338 intel_execlists_create_virtual() warn: assigning (-2) to unsigned variable 've

[Intel-gfx] [bug report] drm/i915: Introduce concept of a sub-platform

2019-04-03 Thread Dan Carpenter
Hello Tvrtko Ursulin, The patch 805446c8347c: "drm/i915: Introduce concept of a sub-platform" from Mar 27, 2019, leads to the following static checker warning: drivers/gpu/drm/i915/intel_device_info.c:807 intel_device_info_subplatform_init() error: uninitialized symbol 'mask'. d

[Intel-gfx] [bug report] drm/i915: Initial selftests for exercising eviction

2019-03-25 Thread Dan Carpenter
Hello Chris Wilson, The patch f40a7b7558ef: "drm/i915: Initial selftests for exercising eviction" from Feb 13, 2017, leads to the following static checker warning: drivers/gpu/drm/i915/selftests/i915_gem_evict.c:193 igt_overcommit() warn: passing a valid pointer to 'PTR_ERR' driv

[Intel-gfx] [bug report] drm/i915: Pass around sg_table to get_pages/put_pages backend

2018-12-14 Thread Dan Carpenter
[ This code is old, but it's pretty confusing so I decided to send the email anyway. - dan ] Hello Chris Wilson, The patch 03ac84f1830e: "drm/i915: Pass around sg_table to get_pages/put_pages backend" from Oct 28, 2016, leads to the following static checker warning: drivers/gpu/drm/i9

[Intel-gfx] [bug report] i915/dp/fec: Cache the FEC_CAPABLE DPCD register

2018-11-22 Thread Dan Carpenter
Hello Anusha Srivatsa, The patch 08cadae8e157: "i915/dp/fec: Cache the FEC_CAPABLE DPCD register" from Nov 1, 2018, leads to the following static checker warning: drivers/gpu/drm/i915/intel_dp.c:3846 intel_dp_get_dsc_sink_cap() warn: inconsistent indenting drivers/gpu/drm/i915/in

Re: [Intel-gfx] [bug report] drm/i915/bios: add support for MIPI sequence block v3

2018-06-08 Thread Dan Carpenter
On Fri, Jun 08, 2018 at 03:50:47PM +0300, Jani Nikula wrote: > On Fri, 08 Jun 2018, Dan Carpenter wrote: > > Hello Jani Nikula, > > > > The patch 2a33d93486f2: "drm/i915/bios: add support for MIPI sequence > > block v3" from Jan 11, 2016, leads to the following static checker > > warning: > > > >

Re: [Intel-gfx] [bug report] drm/i915/bios: add support for MIPI sequence block v3

2018-06-08 Thread Jani Nikula
On Fri, 08 Jun 2018, Dan Carpenter wrote: > Hello Jani Nikula, > > The patch 2a33d93486f2: "drm/i915/bios: add support for MIPI sequence > block v3" from Jan 11, 2016, leads to the following static checker > warning: > > drivers/gpu/drm/i915/intel_bios.c:926 goto_next_sequence_v3() > w

[Intel-gfx] [bug report] drm/i915/bios: add support for MIPI sequence block v3

2018-06-08 Thread Dan Carpenter
Hello Jani Nikula, The patch 2a33d93486f2: "drm/i915/bios: add support for MIPI sequence block v3" from Jan 11, 2016, leads to the following static checker warning: drivers/gpu/drm/i915/intel_bios.c:926 goto_next_sequence_v3() warn: potentially one past the end of array 'data[inde

Re: [Intel-gfx] [bug report] drm/i915: Eliminate lots of iterations over the execobjects array

2018-03-15 Thread Dan Carpenter
On Thu, Mar 15, 2018 at 01:17:23PM +, Chris Wilson wrote: > Quoting Dan Carpenter (2018-03-15 13:10:30) > > Hello Chris Wilson, > > > > The patch 2889caa92321: "drm/i915: Eliminate lots of iterations over > > the execobjects array" from Jun 16, 2017, leads to the following > > static checker w

  1   2   >