From patchwork Sat May 25 21:53:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 798946 Delivered-To: patch@linaro.org Received: by 2002:a5d:6a47:0:b0:354:fb4b:99cd with SMTP id t7csp1280535wrw; Sat, 25 May 2024 14:53:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUGflTD+rln5BfLYXAps+o+sd34SApFJQK4tpBtZWgQbvtfrXqsQI5N3/pa+/B5Gr+uLNcLmURATOLs0Cyxet2l X-Google-Smtp-Source: AGHT+IHt7LzD4hd1TpVXZCXCi13j2bPdTChoObzKTr+tPb28BF3Yg75okIEC0HVK65MAECec1Tpj X-Received: by 2002:a17:906:cccf:b0:a5d:239:1a59 with SMTP id a640c23a62f3a-a623e6d544fmr692172566b.3.1716674016991; Sat, 25 May 2024 14:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716674016; cv=none; d=google.com; s=arc-20160816; b=nB1q9SIdLq9U08e4eKXweZBpjm8beV2EicgyeCtOo3n0DcxnxsrItRj8VivI6hds3S oU/gApSbqjP668zK+LPv55+Z6bMycbfH8zA8EcRxFQVjCf4eaBn/hq4DVHzBlh0sM4Ge 4yBnXvBiISgyNH8dPsDTjOgTdSu49Bz6AQzNOPt8VQc177omQgVMts44aMVXfjQbGB2a jbdJqtt1wGtz1pJ5qzhTAP3j3vLmyPpuwp1lpDxAEvB9Lj69/AqRVCi+YD+r656b45tg tMa7fkTwjWsDokZ+Eock08X17JIHar3rsV6221pg0V0+mU5WjsW0G0+KLKBjswo3PKBS oYQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=/OYSheNlORPwPczKReckMZu0fQE2svMGFa1U+qR/sdo=; fh=KrisY2zYVvsz++68kqhTJZ/evnGzjiD94NNTNg/LMB0=; b=dqtYEMOijmGcVgokOGrKEd51ic4CX+H4PUixTVg5PkeFgbVDCRVIngQffgzgyWyWPy MDdHujSM4TKNqIpfL8R5BjN3F3Y3ybZPxFOHkyax4SE3uqIUK5oYII6rRE82I0yT2CoR JAZPrVkVTsqxApoKLXzI9latFnzSZrb0ReUB2A4h+hfmQVGhlY1+bPcW8HftyahjVhg6 MQx23jfowoofC9kpKQt+0Excq0JPUA6KEWzYlCotjYPBf5PNhKwIcKEayAytKioARINt 6KOvJelKlPrrVxTJTneMuwIApcdqmcAWfFYRdC4I854JsZ9mbZf9hgf1oPNN3hM/dpTN eQNQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kUAzXcmm; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a62c72947d5si42180166b.468.2024.05.25.14.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 14:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kUAzXcmm; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D1B0882C4; Sat, 25 May 2024 23:53:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="kUAzXcmm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EB5B5882AF; Sat, 25 May 2024 23:53:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc34.google.com (mail-oo1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BBF0B8830C for ; Sat, 25 May 2024 23:53:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5b2cc8c4b8aso5594985eaf.1 for ; Sat, 25 May 2024 14:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716674011; x=1717278811; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/OYSheNlORPwPczKReckMZu0fQE2svMGFa1U+qR/sdo=; b=kUAzXcmmektlXHwhMatHhJfjgfYNVh44ymjzWoCoFz+npKc2HX0KR7aYOvb+LtYjI9 Uy/f+vokbfDt7XZ8F2tt5OKUykJW6oRSFjT6gM/ARRBOLg5MrAr6KrCCiTkclhyeyx4N SMEGtrA1ya2rolA2+bU6Ty8sXDTi/HCcA+4uTPJhoqaqWyDWGseDaAY4mQiG+JBqZOE0 GOdhxHE6mbi8/euiCNRgfrVSX5wPMmmiZdu20epnzXvxb9G8ni/pedXowIpIWetvLP3a BqzWHn4SPvSiSQoOAWyH2uLM8vnqNDAfbK12luQYq53e22nFg4nCMfLXLPxBGPnymIqa W73A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716674011; x=1717278811; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/OYSheNlORPwPczKReckMZu0fQE2svMGFa1U+qR/sdo=; b=JzoMY/mERoIBBz5BUWTZ3YSc56vllx1Ehx93B5oH2F2flbNQXAoqn5hQmcZUXNzH3O MIYfouDHVXhSwPrDVwTMGf1ZnYBWH4BBlFDbzsT14Fz7PADgEhWlCafdaV+ySnG8dILw 4YIgx1AzUfIE9m8kYIOhW+nrOSVqbzCVFJKTDokWEVtfSyA7SJs2q2Z2+Vl58g2SsmLk 4enhErwy5fp+w+QBNHJuB3t1oYeCenOddt8DMbUzOmsuWV7/ropcIebsWrQf4JOri0pE ZOvkw6SxAwn20E8S7f2qgwXq/hxxkxMEluO/AVld3PVRHcOB3qIVPlJYzKBU3NacxHWw dDyQ== X-Gm-Message-State: AOJu0YwN1UnMn3PdhYZjPBvPiRKQlXJxIwNrN8rD4Z3j/h4X/2MqV+hp K4NSY9bUlniiQ98q6ER660ItZ5AYH9+FASeeQbSql5qcIW6d/P0P6C7ByTPMNAE= X-Received: by 2002:a4a:7609:0:b0:5b9:70f8:4b82 with SMTP id 006d021491bc7-5b970f856cdmr4838582eaf.9.1716674011404; Sat, 25 May 2024 14:53:31 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5b96c4d5377sm927429eaf.24.2024.05.25.14.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 14:53:31 -0700 (PDT) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: u-boot@lists.denx.de Subject: [PATCH] arm: exynos: Map iRAM APM area for Exynos850 SoC Date: Sat, 25 May 2024 16:53:30 -0500 Message-Id: <20240525215330.16609-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This iRAM APM area is needed for I3C access to PMIC via APM block. Without this mapping any access to APM iRAM leads to "Synchronous Abort" exception. Signed-off-by: Sam Protsenko --- arch/arm/mach-exynos/mmu-arm64.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-exynos/mmu-arm64.c b/arch/arm/mach-exynos/mmu-arm64.c index 30e522804fbf..4c154950f73b 100644 --- a/arch/arm/mach-exynos/mmu-arm64.c +++ b/arch/arm/mach-exynos/mmu-arm64.c @@ -101,6 +101,14 @@ struct mm_region *mem_map = exynos7880_mem_map; static struct mm_region exynos850_mem_map[] = { { + /* iRAM */ + .virt = 0x02000000UL, + .phys = 0x02000000UL, + .size = SZ_2M, + .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRE) | + PTE_BLOCK_NON_SHARE | + PTE_BLOCK_PXN | PTE_BLOCK_UXN + }, { /* Peripheral block */ .virt = 0x10000000UL, .phys = 0x10000000UL,