Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68DD5CCF9E0 for ; Fri, 24 Oct 2025 16:32:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C4A110E218; Fri, 24 Oct 2025 16:32:53 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="Mk6cyCag"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0215B10E218 for ; Fri, 24 Oct 2025 16:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1761323571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S5aWl/MBLylEhXBUZhgkZQKP5sJl+kq7ClFgBJOZJFc=; b=Mk6cyCagabDkH/YFQxSIEMQk3o+2Ht78UInhZJoHjUhAOry8GxgNHne76VyV4AklQM81mk oyUB1HSkU74/jR/P8+9/T0m1zKVIxguuFj7v2PkopjzANkfsR1sFS6eMpVNUSKlFYJheL6 91uB5K/GgDnRWaZytpuJBF4N63yaqug= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-312--7T83N8KME-Koum_iYbHwQ-1; Fri, 24 Oct 2025 12:32:48 -0400 X-MC-Unique: -7T83N8KME-Koum_iYbHwQ-1 X-Mimecast-MFC-AGG-ID: -7T83N8KME-Koum_iYbHwQ_1761323567 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-426d4f59cbcso2297154f8f.1 for ; Fri, 24 Oct 2025 09:32:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761323566; x=1761928366; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S5aWl/MBLylEhXBUZhgkZQKP5sJl+kq7ClFgBJOZJFc=; b=qHqq+ZfwhHawM0SF8EF8lAtTOSVks/Dz3KLCEnXxhyoyFrxQTMgYTlaNaRwvLpb16u X798N+hrVQIIDyCpEfo9XcthY9Ts+QhMNPBfExjIF4KtUunkhUyBHEK8SgVHmMdpMC0t 2ZQTDs9RwihXuDlpJHO6e8veEN7X9dZ3nPmnpSIo9zTKQtJEGmW7hCnC0bI2wlrwLjQe +mrWqxgb1Zt5RwAu9ipghg9xcpvp4x6S/7mXBmE4KI5L7FTT4OqLc6bWa4FI0Os51bYU n5qOg+qXfW21X7gL6yGpEJAUdIKEVqUwVNbpRDetzF+Ie2p5XXgaUCJoK0BxEqngja5d 7+Lw== X-Forwarded-Encrypted: i=1; AJvYcCUugcB1XEHU6qExcSMp1z6pdWQzlvcO94fRk7yGFM4HIjJ/J2Q3Jtht2MoPL2iyrtkwtqZzf9KClc0=@lists.freedesktop.org X-Gm-Message-State: AOJu0YxQ488usFLnweWf+79fPqx9mlHicMGOIdZkVb0FmSmZkpKvAwUY W3XeCiTOW3ZWgALEdBwUGXN6PdCdtbNLPhMoMype0YhIJOHPsH7UWIxqRkiatrsqbL0qb5jerVO WcsRMyKPWZTrYGN+mMU7MZEEO4e/MWiyQUqOAEkzdFkFdE0hIJ0P9LAnAL/tCRFmA/8tUa2cOA/ GluQ== X-Gm-Gg: ASbGnctB/fruZW2mUooh6pF56Jn3n1C9Ykc8ab6SfWMjPZMPt12HwseUObhqkcnr3P1 rvXrzuh7akmKu6BArjjHRr6PSgcRVLX956ov+aWnVbeDzE1pDKdwxek5DAkGnxTkBC2dOrNb0Iw m2P4ZLgpNxqNVOvcQlNClXplQy0TwoPZAmS148Vh5wyBLbudKCDS2dIc9OL2U9UHjXhuY6XBw2D /bQeo0CE1XP3xl8Stj3PPIgn7FT9LyvMqWelZzLnnrJq/vho3XmxZfAUlLoVqrkvmT+2cZqfPN1 oiKbyuC+eCtDyPTAb01/wmoJIMGSNWuFMKcXVd3e0jUOm21FgHxfdeMcsEiv2V5kVyLKsXS4bxH h+dC19qMgZ9yykIv9YkgsOBHxqu7NQ/woVZTc77Y= X-Received: by 2002:a05:6000:2512:b0:428:56c5:b305 with SMTP id ffacd0b85a97d-4298f50e774mr3020196f8f.6.1761323566445; Fri, 24 Oct 2025 09:32:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGE0ecdjl893GPk2y6ktgkBsBRGHc41KuIqOoU0J/Daeu35YjMVrY7JI1HVEeCUDs3Kqrt+ow== X-Received: by 2002:a05:6000:2512:b0:428:56c5:b305 with SMTP id ffacd0b85a97d-4298f50e774mr3020168f8f.6.1761323565993; Fri, 24 Oct 2025 09:32:45 -0700 (PDT) Received: from ?IPV6:2a01:e0a:c:37e0:8998:e0cf:68cc:1b62? ([2a01:e0a:c:37e0:8998:e0cf:68cc:1b62]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-429898ee8a9sm10069463f8f.46.2025.10.24.09.32.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Oct 2025 09:32:45 -0700 (PDT) Message-ID: Date: Fri, 24 Oct 2025 18:32:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/i915/dmabuf: Flush the cache in vmap To: Tvrtko Ursulin , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Simona Vetter , Christian Brauner , Andi Shyti , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, =?UTF-8?Q?Michel_D=C3=A4nzer?= References: <20251024110432.1313391-1-jfalempe@redhat.com> <6757f62e-0b10-4fc5-a9cb-16006c723459@redhat.com> From: Jocelyn Falempe In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 40SaNpxshxECohDM3Ii_kkVVFYvrxCiIfeN04adv7KY_1761323567 X-Mimecast-Originator: redhat.com Content-Language: en-US, fr Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 24/10/2025 17:18, Tvrtko Ursulin wrote: > > On 24/10/2025 13:48, Jocelyn Falempe wrote: >> On 24/10/2025 13:53, Tvrtko Ursulin wrote: >>> >>> On 24/10/2025 12:04, Jocelyn Falempe wrote: >>>> On a lenovo se100 server, when using i915 GPU for rendering, and the >>>> ast driver for display, the graphic output is corrupted, and almost >>>> unusable. >>>> >>>> Adding a clflush call in the vmap function fixes this issue >>>> completely. >>> >>> AST is importing i915 allocated buffer in this use case, or how >>> exactly is the relationship? >> >> I think it's mutter/gnome-shell who copy the buffer from i915 to ast, >> here is the logs: >> >> gnome-shell[2079]: Failed to initialize accelerated iGPU/dGPU >> framebuffer sharing: Do not want to use software renderer (llvmpipe >> (LLVM 19.1.7, 256 bits)), falling back to CPU copy path >> gnome-shell[1533]: Created gbm renderer for '/dev/dri/card0' >> gnome-shell[1533]: GPU /dev/dri/card1 selected as primary >> >> card0 is ast and card1 is i915 >> >> Do you think there is something missing in mutter? > > No idea. I only notice that the log message "falling back to CPU copy > path" has been removed from the codebase in: > > commit d4e8cfa17a3a69965b9bd130ded46cf54a438908 > Author: Jonas Ådahl > Date:   Wed May 5 15:53:59 2021 +0200 > >     renderer/native: Use MetaRenderDevice > >     This replaces functionality that MetaRenderDevice and friends has >     learned, e.g. buffer allocation, EGLDisplay creation, with the > usage of >     those helper objects. The main objective is to shrink >     meta-renderer-native.c and by extension meta-onscreen-native.c, moving >     its functionality into more isolated objects. > >     Part-of: > > So long long time ago. Maybe worth trying with a newer version? Yes, I've reproduced the issue on an old version, rhel9.6, but I'm being told it's still present in newer version as well. I will test with the latest version of mutter, to see if it's still present. Thanks, -- Jocelyn > > Regards, > > Tvrtko >