From patchwork Sat Dec 16 16:27: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: 13495641 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 240EAC46CA2 for ; Sat, 16 Dec 2023 16:27:40 +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=YtLGLOSNu8u+ls0KYS5+TMMqywTBu7kYkVkFddxN+nE=; b=g8NNOVXR/MuHtd KoIZNBcv9Rdtyy5Qb8hzKqEV1A/eoEdwe1/6KaCDjitPDt6MT10W54K3xSmt3G0Q3dmTxu2K7gdmY zUStZ/PrE78XYRepE3DPVPhbPLAAzAEcCnpZwxqexgzy1MMN/K7Sh/gDgOsa/k7Zjabt/D6WM3ApW ORlOcUr5LhwGcazPE7ht98yifoi6doxsxNj/M+WAtOgLt0EDaczLqEu8Jija49295Mb2KUN1x6C2p DUnY8K6lJTU4DxtutwXsRGUm0N0/xc6dpEYjkuYTkSgSlji4IlV+vJL34zx7gjKsZMXxteBZrKLNW 8LFBaBGgsSUyZx4nmd/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rEXVU-006Jt4-17; Sat, 16 Dec 2023 16:27:16 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rEXVJ-006Jlo-1y for linux-arm-kernel@lists.infradead.org; Sat, 16 Dec 2023 16:27:07 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50bf898c43cso1717024e87.1 for ; Sat, 16 Dec 2023 08:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702744023; x=1703348823; 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=u5ZLFRFzD1CGy334KNd57yMYTCMD3u82eZUZ6VE2QPA=; b=CqrOu1+C388k2wPrmmh2NhNX2CVtK3unsa1N1x7nxbMeMbRWfP/ZgYWmQiziUfeE5r 0Yi+w9hWqITJbpkujpUqgYK+PKHJmQRVSrqDLDpJX2kG8XKvX54eiI1xNrzpq9zHhtRR as4unNB26YIEWs47TRog1SNXSl6YnAD3WXDk9CPO4/TtxNrTmSIKTDvIN4p0Oj3QYEvj nxf6y4zxNKXfCI28AX1LIRFBXm8zM/gVzFU0idbuAk8UVZjZ6ST9BBMdoj0OFDPxZaZa xyGHNJcxmgM2XIrBK4gk98/5Bt/9X8AY6Dd5dqfSs/62u7D6+2r+Mzb5b94VAxTVopkT 8Q2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702744023; x=1703348823; 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=u5ZLFRFzD1CGy334KNd57yMYTCMD3u82eZUZ6VE2QPA=; b=hU43deOojmDNIHEg+Vn8qfPNTqImrohu9pRW6cqoJ1iQ72JmFMv9tGQ5DAF/9D/bGd xzWYOQB0TiceBKDg11Sh7LzVCHx6kV1g9JU0pBCX6LyMobBPF5eaGwWO4vmSCyJEjnkc uB6JBl/ysx6OIv0YUkqkZWKWZfrzdXe40TiY9lKx6RCg+qotIqyuMyPv8Seoi7iGRrod FKZCnrksInoBxp34EX/yErrsr9R4xOMHLMcfwtBl+fTGPZ+3BJ7plJt9boCC33uYMp0K Ux4gnB4oZe1NFzYcKtuXfaj5LIiRjH0vc0NwStGLUsg6KE8EnjqeuFPk25y4UBtj/mNB RBAA== X-Gm-Message-State: AOJu0Yw3opIy+VJmL3yFu+aEVE2mzo2W6bq1aghtVFQV3eavz0VEa8bi tWlrpJ+rdLLXbCZUxGGJiDjZiA== X-Google-Smtp-Source: AGHT+IEdlLjha0pDKVzgZ8VedXq3zwTQeBW66gbUelSUrCVVlVfnjfOPU+pT4taKuf9PB4jXLPRiNQ== X-Received: by 2002:a05:6512:15a0:b0:50b:f84a:539d with SMTP id bp32-20020a05651215a000b0050bf84a539dmr4674856lfb.19.1702744023345; Sat, 16 Dec 2023 08:27:03 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u19-20020a197913000000b0050e304d437dsm69229lfc.223.2023.12.16.08.27.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 08:27:02 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Konrad Dybcio , Joerg Roedel , Will Deacon , Robin Murphy Cc: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, iommu@lists.linux.dev, Russell King Subject: [PATCH v2 3/3] ARM: qcom: merge remaining subplatforms into sensible Kconfig entry Date: Sat, 16 Dec 2023 18:27:00 +0200 Message-Id: <20231216162700.863456-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231216162700.863456-1-dmitry.baryshkov@linaro.org> References: <20231216162700.863456-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-20231216_082705_649012_5E3E6CC0 X-CRM114-Status: GOOD ( 11.89 ) 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..95216a508d80 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_RESERVE_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..f4765be1b2a0 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_RESERVE_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