From patchwork Thu Dec 7 12:55:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13483264 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 28A42C10F04 for ; Thu, 7 Dec 2023 12:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Fr7TVc/vzGlcN5FNquBsON9kunxycs+dH3KcrmpAvic=; b=WE6qJzHyZz0RRN uNJeQ6UB0MzFxGyXmzFIa1o79a3rTTe0Ka4ojRnJ9ofrXKIbhrtv5U6SuQl1h1YNkY9fwN0ZA5osJ KzGFgkZGuNZtKTKE1t6Dd+Piu4B/8bJHWkwtpNQPAB+3baZGnRb1JQI/JOR8M6qsMu12YLfSD3oAn r+1qy218n7aF7M0PslkdvTVsv45E14TH94cTcBO79uIntDB5MTk6C0XzJutr3RqQYZlTqahFBN2Xt CGd0wZEg6wlgaZpdM54oT3vtK51P7AbVUapD4byg+e1UuAJvrOPAfJFjcGJwVjC0NAD0EO/p9/wiV AKDJ0hxUOmrXBCrU7kWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rBDuJ-00CquM-2f; Thu, 07 Dec 2023 12:55:11 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rBDuF-00Cqs0-2y for linux-arm-kernel@lists.infradead.org; Thu, 07 Dec 2023 12:55:09 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c9f72176cfso8308321fa.2 for ; Thu, 07 Dec 2023 04:55:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701953704; x=1702558504; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j5KSmEP1TGocOwJYVVwYZKa9nj2Hg1ok92vdy7xwTe8=; b=xGUEOCAbrTk1Cb0tHcc3eBkMVLDPZwmKK93zED16Tw18fJhkRlA1HCENL029CBC0t7 8vmvZzn8WE8NnXFwrdV5X8SadOr6KPXp3HVQLzW33Flu2dJpS4Vak0fLT1nvjmda6Kp5 iaLcg9gCcXRET9ZDHi1u0iVdb003ccchsETB0hlGBKGeBhPgppMJqwg6Rtf+lXtYieVv gGFMOn+jAHPBr5tDMcy5FBUyBk+3TRYNAYx92cSKi0A51Y7do+Wf1vTecefblEB/ts4v nA3HVAS02hMeBVr5b4CRMbA3avwAVSj/ZF0qpWs1Sg1xKp1H0FiaQx9zwkVZXnjLC1o5 EATg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701953704; x=1702558504; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j5KSmEP1TGocOwJYVVwYZKa9nj2Hg1ok92vdy7xwTe8=; b=JGjyVxgmNLknz7YN6P3ptdE3S9racrunnQHCl7EdL49hODswfV8fFQCRkL0BGsMFi3 9U7I1r/VsFMo51MmQCmQ2ZqY/fs5n/U2QxVGtU6I7M8T64Ob49qXShxPwn9lTJF9JQlo +qfYQCJvRl6HQZjcK683jBtpdYfGUJ9stzj1z+c5Ihp2qfS9sqSYw6s0VTTnhGcVnybv aTSWJAbyyhwQfAr5xHwX/RPBByWTvXwxEM4jeIbpUxRDHdU9hqLTcXm+2CCHe7zrjbJe LuR68LFlNrkr4MDB3VJw5khfeIrJ46FQ+7sKfC/I9UFswr2etbu4vX7l1ywNkU3FOs98 V05A== X-Gm-Message-State: AOJu0Yw39K6J9yPoZUrAhL+eqMPsq5obDQJfMoGVcU5Oe+TPrsKLP2bL OndDNv940MZunJv5BbUJ0X+9fQ== X-Google-Smtp-Source: AGHT+IEPd3y1di3O6hl7akm24VuD+UvFlBj59LsViuKsxVfNbyodkQMJ3vhlHaDmvfNAZZhg7vxVeA== X-Received: by 2002:ac2:538b:0:b0:50b:f881:862a with SMTP id g11-20020ac2538b000000b0050bf881862amr704995lfh.128.1701953703825; Thu, 07 Dec 2023 04:55:03 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id cf30-20020a056512281e00b0050bfc6dbb8asm163659lfb.302.2023.12.07.04.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 04:55:03 -0800 (PST) From: Dmitry Baryshkov To: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Rob Clark Cc: Vinod Koul , Sai Prakash Ranjan , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, freedreno@lists.freedesktop.org Subject: [PATCH 3/3] ARM: qcom: merge remaining subplatforms into sensible Kconfig entry Date: Thu, 7 Dec 2023 15:55:00 +0300 Message-Id: <20231207125500.3322229-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231207125500.3322229-1-dmitry.baryshkov@linaro.org> References: <20231207125500.3322229-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231207_045507_955018_C728035E X-CRM114-Status: GOOD ( 12.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Three remaining Qualcomm platforms have special handling of the TEXT_OFFSET to reserve the memory at the beginnig of the system RAM, see the commit 9e775ad19f52 ("ARM: 7012/1: Set proper TEXT_OFFSET for newer MSMs"). This is required for older platforms like IPQ40xx, MSM8x60, MSM8960 and APQ8064 and is compatible with other 32-bit Qualcomm platforms. Signed-off-by: Dmitry Baryshkov --- arch/arm/Makefile | 4 +--- arch/arm/mach-qcom/Kconfig | 13 +++++-------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 5ba42f69f8ce..45fa8ac001c5 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -158,9 +158,7 @@ textofs-$(CONFIG_ARCH_REALTEK) := 0x00108000 ifeq ($(CONFIG_ARCH_SA1100),y) textofs-$(CONFIG_SA1111) := 0x00208000 endif -textofs-$(CONFIG_ARCH_IPQ40XX) := 0x00208000 -textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000 -textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 +textofs-$(CONFIG_ARCH_QCOM_SMEM) := 0x00208000 textofs-$(CONFIG_ARCH_MESON) := 0x00208000 textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000 diff --git a/arch/arm/mach-qcom/Kconfig b/arch/arm/mach-qcom/Kconfig index 27d5ca0043be..0c99d0a746d4 100644 --- a/arch/arm/mach-qcom/Kconfig +++ b/arch/arm/mach-qcom/Kconfig @@ -15,13 +15,10 @@ menuconfig ARCH_QCOM if ARCH_QCOM -config ARCH_IPQ40XX - bool "Enable support for IPQ40XX" - -config ARCH_MSM8X60 - bool "Enable support for MSM8X60" - -config ARCH_MSM8960 - bool "Enable support for MSM8960" +config ARCH_QCOM_SMEM + bool "Reserve SMEM at the beginning of RAM" + help + Reserve 2MB at the beginning of the System RAM for shared mem. + This is required on IPQ40xx, MSM8x60 and MSM8960 platforms. endif