All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: Bagas Sanjaya <bagasdotme@gmail.com>,
	Erhard Furtner <erhard_f@mailbox.org>,
	Linux DRI Development <dri-devel@lists.freedesktop.org>,
	Huang Rui <ray.huang@amd.com>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
	Karolina Stolarek <karolina.stolarek@intel.com>,
	"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Zi Yan <ziy@nvidia.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: Running ttm_device_test leads to list_add corruption. prev->next should be next (ffffffffc05cd428), but was 6b6b6b6b6b6b6b6b. (prev=ffffa0b1a5c034f0) (kernel 6.7.5)
Date: Tue, 20 Feb 2024 16:03:57 +0100	[thread overview]
Message-ID: <535f9089-b988-45ac-b3f3-a7d593861723@amd.com> (raw)
In-Reply-To: <4xggxtkk44m3xcfucbougtuhr66s2pc7tilpnju7xnyw45facb@odsrpqp57kiz>

[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]

Am 20.02.24 um 15:56 schrieb Maxime Ripard:
> On Tue, Feb 20, 2024 at 02:28:53PM +0100, Christian König wrote:
>> [SNIP]
>> This kunit test is not meant to be run on real hardware, but rather just as
>> stand a long kunit tests within user mode linux. I was assuming that it
>> doesn't even compiles on bare metal.
>>
>> We should probably either double check the kconfig options to prevent
>> compiling it or modify the test so that it can run on real hardware as well.
> I think any cross-compiled kunit run will be impossible to differentiate
> from running on real hardware. We should just make it work there.

The problem is what the unit test basically does is registering and 
destroying a dummy device to see if initializing and tear down of the 
global pools work correctly.

If you run on real hardware and have a real device additionally to the 
dummy device the reference count of the global pool never goes down to 
zero and so it is never torn down.

So running this test just doesn't make any sense in that environment. 
Any idea how to work around that?

Thanks,
Christian.

>
> Maxime

[-- Attachment #2: Type: text/html, Size: 1852 bytes --]

  reply	other threads:[~2024-02-20 15:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19 22:01 Running ttm_device_test leads to list_add corruption. prev->next should be next (ffffffffc05cd428), but was 6b6b6b6b6b6b6b6b. (prev=ffffa0b1a5c034f0) (kernel 6.7.5) Erhard Furtner
2024-02-20  9:12 ` Bagas Sanjaya
2024-02-20 12:45   ` Erhard Furtner
2024-02-20 13:50     ` Christian König
2024-02-20 17:43       ` Erhard Furtner
2024-02-21 14:07         ` Christian König
2024-02-21 15:09           ` Alex Deucher
2024-02-20 13:28   ` Christian König
2024-02-20 14:56     ` Maxime Ripard
2024-02-20 15:03       ` Christian König [this message]
2024-02-21 14:41         ` Maxime Ripard
2024-02-21 14:54           ` Christian König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=535f9089-b988-45ac-b3f3-a7d593861723@amd.com \
    --to=christian.koenig@amd.com \
    --cc=airlied@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=bagasdotme@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=erhard_f@mailbox.org \
    --cc=karolina.stolarek@intel.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=ray.huang@amd.com \
    --cc=tzimmermann@suse.de \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.