Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1333824rwb; Thu, 11 Aug 2022 21:53:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7OUIe7ClpHu7+krT3V5OQ/ljKjl+v3wfgRIc+WTTpxGRCv+uYRzmFWrgfx+C8+0RPwxMyD X-Received: by 2002:aa7:d6cd:0:b0:43d:4ab8:87b8 with SMTP id x13-20020aa7d6cd000000b0043d4ab887b8mr2031740edr.412.1660280029640; Thu, 11 Aug 2022 21:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660280029; cv=none; d=google.com; s=arc-20160816; b=IGLev2sbrqEZyeeNa79albfiyqBao+jLKGyQMeTzY0XCDy/YKSFO+nLRVNa5aEpFei h3kELsXE5AAUhqz6XIrtphecmPWu2GdlsAl7HD8EuTAojdYN4LLyCRaB00GWE11nhlWR +PbPh3atghYqm0Zgqoef/STU1MLtvilRRCtsGc/WzoWSvLdbjat7kEsDaRuxjz+lp/jK jJJWONd0LZN8PfmnVsXrO5dZrmYfyE2XaEq4TGgKI79OxnvoLAr8q0eljbYTJVAxl9xi C4qbsx9uG8gWac2VeHMoGKMd8CI2+w+rm3I9T8PHd1LBIIZRDZm00Q0dbjV6pxB7/Mi0 HzKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=m/u0OQNcK6WLQ8YRwiHl6NaU06ssTUJCYuMG15+ZS1k=; b=dlhdq0O2OdFgDK2AYFTdE6zmMIAYoc/CRx8wzDKNYq2xTrv/3f1tjk9m/IaWNmtuOL 9wOrNcwT6p3wX0iIAfM/WPJPbftQ6qvabi7WSVqvNN0Y7JcCatMUSJGd+TaOUEvcayLZ n9Mg6ynhPLAsz3u8jojBdQEMJlVPDxGXBNZMSlDxaHKmTuvz0uIbKcPuzSvXfuiAenyM CYS+B980YgeMhVfiXuPS6IaoawYCnIZzzzEru/lpkkrYVAh3URYKTzyMjjf+dxRkrrRG bV1UsGQhPPybWRV5yV8YaISWNA+3hmrJTgP0tG6dmiy4xyfcDrrSBaTvvIQY+4jQWkda 6exA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w3omfvsy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd5-20020a1709076e0500b0072677faec75si1249787ejc.872.2022.08.11.21.53.16; Thu, 11 Aug 2022 21:53:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w3omfvsy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236440AbiHLEfa (ORCPT + 99 others); Fri, 12 Aug 2022 00:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236269AbiHLEf1 (ORCPT ); Fri, 12 Aug 2022 00:35:27 -0400 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F37DF58B6B for ; Thu, 11 Aug 2022 21:35:24 -0700 (PDT) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-3246910dac3so191590257b3.12 for ; Thu, 11 Aug 2022 21:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=m/u0OQNcK6WLQ8YRwiHl6NaU06ssTUJCYuMG15+ZS1k=; b=w3omfvsy9ZZIm8gFmEWlECrda6oZMt1vsZZQNNa7vA6YNhBRRfenX1dnMcRD7XxU8k 5/I12jbJ+Kmw6PvZ2i9e4weOcxpl30w4qfWoe2AIiQAH4tqvzERwmWH93byasedP1NRH K0sgJRHdGRYPXyop74jnRos7N4WoFkuq+Yn9w2YjTdSzY3b5n04Q3cczBpwTGKERCrhr yfV2UPPyrywDcNGH7gtc9xI7cr43PftaQY8V/6M/Xh9Ab52KofQD03q3muGqrcQEnCvo pubG/ynkx4TMvQMHGiHyG5OvWKgbRVLGFshW5KhzePVEeCZ2EnA/dzvk29dRPwilyWzM KABw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=m/u0OQNcK6WLQ8YRwiHl6NaU06ssTUJCYuMG15+ZS1k=; b=ixfWAhRLkkTY0N6n/fnCx/63KV1D79OWK2kgwLKl9Uq6DvinjoO+t+PsAJOoVsEOgb pkjvcEeti3hFKtzWknlUB83EueXNyD5kHlcMXjYsev3OFBYONJzWjrtdFXk3H3nt5oB+ 6rs3LmqWPDrCYcX1k1zAAXF3itpNV5opCl0xBPQJIf0Zy7sLXeRMWaG6mu1ZArVprbsY 7LkrYG1ylWzpGFViG3Szz0vwDZWpDdni7Ta1eyxUHltXQ4YJzsbDsJf555GX7dIzttUj 5PWrcw2BUrRjhkN9+TDGadyQl6YbYgsnt+5j8nk4pms2vjv+6Zr/GAoVKlbkW2oGj/De mNQw== X-Gm-Message-State: ACgBeo214xXfcJ46Ucb0/qxYqrOz2gYtPnTj2RFwhlaZK75GACrZAJkM ey/7rgyVqZEf4nlS4XPiRk2bFa2kfOSa/SFELDD0TQreGOgFNw== X-Received: by 2002:a81:1ec4:0:b0:31d:e31f:1b6e with SMTP id e187-20020a811ec4000000b0031de31f1b6emr2294072ywe.11.1660278924132; Thu, 11 Aug 2022 21:35:24 -0700 (PDT) MIME-Version: 1.0 References: <1642587791-13222-1-git-send-email-ivo.g.dimitrov.75@gmail.com> <1642587791-13222-4-git-send-email-ivo.g.dimitrov.75@gmail.com> <5b6d3e7f-c638-fdc7-5080-44d34abed610@ideasonboard.com> In-Reply-To: From: Yongqin Liu Date: Fri, 12 Aug 2022 12:35:12 +0800 Message-ID: Subject: Re: [PATCH 3/3] drm: omapdrm: Do no allocate non-scanout GEMs through DMM/TILER To: Ivaylo Dimitrov Cc: Tomi Valkeinen , tomba@kernel.org, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, merlijn@wizzup.org, tony@atomide.com, "Bajjuri, Praneeth" , Sumit Semwal Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Ivaylo, Tomi We have one X15 Android AOSP master build, it could not have the home screen displayed on the hdmi monitor connected with this change, with the following message printed on the serial console [ 607.404205] omapdrm omapdrm.0: Failed to setup plane plane-0 [ 607.410522] omapdrm omapdrm.0: Failed to setup plane plane-1 [ 607.416381] omapdrm omapdrm.0: Failed to setup plane plane-2 [ 607.422088] omapdrm omapdrm.0: Failed to setup plane plane-3 # for details, please check the link here: http://ix.io/47m1 It will work with home screen displayed on the hdmi monitor if this change is reverted. Is this the broken problem you talked about here? And could you please give some suggestions on how to have the x15 Android build work with this change? Thanks, Yongqin Liu On Thu, 17 Feb 2022 at 23:29, Ivaylo Dimitrov wrote: > > > > On 17.02.22 =D0=B3. 14:46 =D1=87., Tomi Valkeinen wrote: > > Hi, > > > > On 19/01/2022 12:23, Ivaylo Dimitrov wrote: > >> On devices with DMM, all allocations are done through either DMM or > >> TILER. > >> DMM/TILER being a limited resource means that such allocations will st= art > >> to fail before actual free memory is exhausted. What is even worse is > >> that > >> with time DMM/TILER space gets fragmented to the point that even if we > >> have > >> enough free DMM/TILER space and free memory, allocation fails because > >> there > >> is no big enough free block in DMM/TILER space. > >> > >> Such failures can be easily observed with OMAP xorg DDX, for example - > >> starting few GUI applications (so buffers for their windows are > >> allocated) > >> and then rotating landscape<->portrait while closing and opening new > >> windows soon results in allocation failures. > >> > >> Fix that by mapping buffers through DMM/TILER only when really needed, > >> like, for scanout buffers. > > > > Doesn't this break users that get a buffer from omapdrm and expect it t= o > > be contiguous? > > > > If you mean dumb buffer, then no, this does not break users as dumb > buffers are allocated as scanout: > > https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/omapdrm/om= ap_gem.c#L603 > > If you mean omap_bo allocated buffers, then if users want > linear(scanout) buffer, then they request it explicitly by passing > OMAP_BO_SCANOUT. > > Ivo --=20 Best Regards, Yongqin Liu --------------------------------------------------------------- #mailing list linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android