From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F5F8C4332F for ; Mon, 17 Oct 2022 11:30:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230028AbiJQL3z (ORCPT ); Mon, 17 Oct 2022 07:29:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbiJQL3Z (ORCPT ); Mon, 17 Oct 2022 07:29:25 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0E67CD9 for ; Mon, 17 Oct 2022 04:29:21 -0700 (PDT) Received: from p508fc122.dip0.t-ipconnect.de ([80.143.193.34] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1okOIy-0007hW-1b; Mon, 17 Oct 2022 13:29:12 +0200 From: Heiko Stuebner To: Johan Jonker , John Keeping Cc: dri-devel@lists.freedesktop.org, Sandy Huang , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [BUG] [PATCH] drm/rockchip: use generic fbdev setup Date: Mon, 17 Oct 2022 13:29:11 +0200 Message-ID: <2220890.jZfb76A358@phil> In-Reply-To: References: <20211029115014.264084-1-john@metanate.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 17. Oktober 2022, 12:05:16 CEST schrieb John Keeping: > Hi Johan, > > On Mon, Oct 17, 2022 at 10:11:32AM +0200, Johan Jonker wrote: > > Your patch contribution causes a kernel panic on MK808 with Rockchip rk3066a SoC. > > Would you like to contribute to fix this issue? > > The assumtion that drm_fbdev_generic_setup() does what rockchip_drm_fbdev_init did is not true! > > A revert makes it work again. > > It looks like there are 3 different ways to end up with -ENOMEM here, > can you track down whether you're hitting one of the cases in > rockchip_gem_prime_vmap() or if it's the iosys_map_is_null case in > drm_gem_vmap()? > > I guess the memory usage increases slightly using the generic code and > RK3066 has less memory available. also rk3066 and rk3188 do not have an iommu, so rely on cma allocations. Heiko