Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6848948rwd; Tue, 6 Jun 2023 02:52:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zqNaZiBoIneVdKbg0w04JOWvAxMjDYBxkUqcm+WFgfiYCePS9M2C6SCvlNns6u64eLlzW X-Received: by 2002:a17:902:ab59:b0:1aa:d235:6dd4 with SMTP id ij25-20020a170902ab5900b001aad2356dd4mr10651540plb.19.1686045126629; Tue, 06 Jun 2023 02:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686045126; cv=none; d=google.com; s=arc-20160816; b=DMFb4r63r8i2OxUdELIeaMuDYU1cD0URh2q9OOa0NY5RULXHPEsFSrW0u723gKP6AB TyR5VBbGWLy3XXEn6scM9FHz/8/Xd2xSj2aY9dm6F59lpkNWvm+BXdjZ5pLnTwY8tFPV mI1DAhYIVXY+0a2XZ8dse/XZTwf5yAI5YOA7brPuIsrhwi9R8FRyV8LHuBYNxIZIg/qh RA4wrF0Mld1UpplVFII2tt+BZmTAouDbhSF7JEoBdgb4Vsw0eWwy4WLP10ApEoi2XZFx LkTWatsbC1jVbQa8uQzkp3jM9BJrlQBXehq1CcC9/74zOmBEI4FaFMwrvkUIjkqClQJG q2iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Fu+vX86GlZTe1uH6YYdDVRRF9k+jJOeF++qGe0rXU7E=; b=QfhD95KN5BrZ/NRkNbGfDutKlzg5EfDovMhjfuIVw81R1hKCUEFIbzMCHJOut7v9W9 KKIhEr/k8vFjec477xbee0uAp8+3r0hczJW3b/xGaaWQjJ3flHOSJlarQRdg2GxKuBfB eU8oXJC/nigp9VsKXjQSUblO92jUwly43WOiG2jIKaT2kXMTzGAEgid8Q0gwuZu7THJJ y6mcEf6sXv0xee28HnxDSDaZhu2QDK9ICLYE50QaoV86ytBEZo+4QksHe9TY90+vctMa oPg66rthZl9DG4rFtcW1pL7dFnyksL30D/171KQ9SWLbhsftDwBMALGJY8Nlb38F+SP/ Z9Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sp942XLu; 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 i14-20020a170902c94e00b001b1a240b107si7276032pla.221.2023.06.06.02.51.54; Tue, 06 Jun 2023 02:52:06 -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=Sp942XLu; 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 S237542AbjFFJdB (ORCPT + 99 others); Tue, 6 Jun 2023 05:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbjFFJck (ORCPT ); Tue, 6 Jun 2023 05:32:40 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14183E69 for ; Tue, 6 Jun 2023 02:32:24 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b1b2ca09b9so49260381fa.1 for ; Tue, 06 Jun 2023 02:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686043942; x=1688635942; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Fu+vX86GlZTe1uH6YYdDVRRF9k+jJOeF++qGe0rXU7E=; b=Sp942XLutsbJGRwO05zi6YC50mZg24y+R/2/XXT6y/SGyhQacT8xsra1KxvK49VzZ5 Tm63YZwd8p2fKSOZ2f782uziW6KGL77zpcfBUqYXb1dSrTGYFGfRc3vg9MpSD7dX/GNu ncYfkGPk7mqLfwjzYWus46T1sCu9sAos8NP4lsh6Z7YKm/ixoXXYbZLkuJwwNUwfgPMZ x15zy+ON9IcDIYajEJevk9hDG13yGVHZx2TP1fqzk8TR+WeoXdytluTwmTj1/urlOTcf M/JMuX9hFMB+yUNwYBYJJmgndlm10uSNdbE9syYd75crvlMKaJDd73phauOJmTINAFGN nvZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686043942; x=1688635942; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fu+vX86GlZTe1uH6YYdDVRRF9k+jJOeF++qGe0rXU7E=; b=LGHPPLktGlGf/djMlUVKa8vccWtBXTU/8QYY8YU9MAC9guwVlBbIIm3Lj/eIWCrq8X b78Iuy2neDhg2XXikQ3Su1xdNMGbb3Pfw9RRCvSmnjYM2cL+lQJ40I0IVPGC4D1hAHuS mV80MD5af++8BocqSocBUvxS8PUbYXzDlnxH/8HsYEiu9UeXkmVN+i3qh1wDy9DDaMIl hN2yuupYwwaTfhZ4uNFBnwORCli1WNO0OlGmcFhzgABkKZ0dAZlaGgOLnP/NKlh+uCJg fiHGV/aLgu9bAw/0UVh8S0sobPkLCJz71eO9riX9Oi5tjTtERwpMcnPFK28DuCkc6UlO vfuA== X-Gm-Message-State: AC+VfDzHXbL21VOMvVzcaCff4UOZQzQN1HdyMup5yOdEH/t3fbJX05sf CrMvw1IDNjzJiZaNLmDJ3Tv5ZA== X-Received: by 2002:a2e:980b:0:b0:2b1:d210:10c9 with SMTP id a11-20020a2e980b000000b002b1d21010c9mr1205504ljj.43.1686043942246; Tue, 06 Jun 2023 02:32:22 -0700 (PDT) Received: from [192.168.178.106] ([185.176.222.176]) by smtp.gmail.com with ESMTPSA id f14-20020a2e9e8e000000b002ad9057fd00sm1798652ljk.85.2023.06.06.02.32.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 02:32:21 -0700 (PDT) Message-ID: <858eacff-c97d-6504-06c8-d7586055e142@linaro.org> Date: Tue, 6 Jun 2023 10:32:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] arm64: dts: qcom: Split sdm845-db845c to add headless support Content-Language: en-US To: Amit Pundir , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov , Bryan O'Donoghue Cc: Andy Gross , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm , lkml References: <20230605094710.2037879-1-amit.pundir@linaro.org> From: Caleb Connolly In-Reply-To: <20230605094710.2037879-1-amit.pundir@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 05/06/2023 10:47, Amit Pundir wrote: > This is a follow-up of the upstream discussion, > https://lore.kernel.org/linux-kernel/20230124182857.1524912-1-amit.pundir@linaro.org/T/#u, > around adding a reserved memory region in sdm845-db845c > for the framebuffer memory (the splash region set up by > the bootloader) but the general opinion was to avoid > adding that reserved memory for the headless DB845c > usecase. > > So this patch splits the sdm845-db845c into a common dtsi, > a new sdm845-db845-headless DT, which disables the mdss > display subsystem, and a new sdm845-db845c DT with an > additional reserved-memory region for the framebuffer. The bootloader always sets up this memory region, it's defined in XBL. If someone is building a product based on db845c SoM they would need to modify XBL to free up this memory, at that point I think a new DT would make sense. Given that we only found that this was missing because the kernel randomly allocated memory there and it broke things, marking the region as reserved is a fix, not reserving it is a bug. The original patch makes sense, imo this region should go in sdm845.dtsi as almost all devices utilise this. I have a pair of patches [1][2] to fix this on sdm845 and sdm850, but I haven't sent them yet as there doesn't seem to be a consensus on this. Would this be ok with everyone given the above? [1]: https://gitlab.com/sdm845-mainline/linux/-/commit/784f04850b56238c63c30dfea400c7a9ea8fda97 [2]: https://gitlab.com/sdm845-mainline/linux/-/commit/52f7ac40c6524be0edad5f4416ed76dbf3298dab > > The default sdm845-db845c.dtb remains pretty much the same > (with an exception of additional reserved-memory region), > while others can use sdm845-db845c-headless.dtb for their > headless systems. > > Signed-off-by: Amit Pundir