From patchwork Mon Jun 20 10:56:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 70438 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1447453qgy; Mon, 20 Jun 2016 03:58:23 -0700 (PDT) X-Received: by 10.36.51.14 with SMTP id k14mr8460190itk.80.1466420299049; Mon, 20 Jun 2016 03:58:19 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id z125si26129518pfz.64.2016.06.20.03.58.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 03:58:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bEwt6-0005FW-Ik; Mon, 20 Jun 2016 10:57:04 +0000 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bEwsv-00051M-C6 for linux-arm-kernel@lists.infradead.org; Mon, 20 Jun 2016 10:56:54 +0000 Received: by mail-lf0-x234.google.com with SMTP id l188so35085946lfe.2 for ; Mon, 20 Jun 2016 03:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yA7HM89vOI7NRZgY8E9/OtjZAvQ2Aejr0Np7Axnh7YQ=; b=jqI8XXRcCHclACT18LMYSj6TgxwSJX+fQ8QLi4N/qesT2AaYWOVwjghkKa1zmQ0E19 YxfBrkQLi0NSUsGar+iTBlDGgYWU2I15kWQZKnwIrnH4FtuJGsB+2ADQdrjsWCYI5z3e xu8G9S1q8LyfxXFXIPcdpWMhL28HDkiibVStM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yA7HM89vOI7NRZgY8E9/OtjZAvQ2Aejr0Np7Axnh7YQ=; b=CUjmtpEb/cnk3ivwZTsANUlxewWZ1YJSoQDhQa8Wiy7gpVtq/LYq1vmqiSMEnTPiut elMfNyoopaU8wd9+1upZ04rnzJXZnISRm7qLgy9ACyjjZ0lPu5tVhQc2EpxO33c+6Bdc jQ9Qe8G0rHKhxBoS3JKcynKk2dYf3fmJjREjNJmve2hfbKH31Dbro0PHyn6+zPYznijw YVkA55B7LmWPg+kIpqoTIFEHf3xvTnqYCmZfmRa7QqBsTaARSzEZpHxNOgsaa7WUckMI UXoj+RfyoRGnOm0DEdt2hpl0I1NSbC8u4xLy8bfAf29aumOd+VrUgodcvHSAwGPAJ90T 2ykA== X-Gm-Message-State: ALyK8tKF9I6Prt9ALuF9obYPBkU4s3xjpfBIu/to1N32FGDdHaelYkG5mV9sm1LQo++YZ4dZ X-Received: by 10.46.9.215 with SMTP id 206mr3797320ljj.63.1466420191545; Mon, 20 Jun 2016 03:56:31 -0700 (PDT) Received: from localhost.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id g28sm6367133ljg.24.2016.06.20.03.56.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 03:56:30 -0700 (PDT) From: Aleksey Makarov To: "Rafael J . Wysocki" Subject: [PATCH v4 1/5] ACPI: table upgrade: use cacheable map for tables Date: Mon, 20 Jun 2016 13:56:09 +0300 Message-Id: <20160620105615.15538-2-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160620105615.15538-1-aleksey.makarov@linaro.org> References: <20160620105615.15538-1-aleksey.makarov@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160620_035653_785431_782C2610 X-CRM114-Status: GOOD ( 12.45 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:234 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Graeme Gregory , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Aleksey Makarov , "Zheng, Lv" , Jon Masters , linux-arm-kernel@lists.infradead.org, Len Brown MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The new memory allocated in acpi_table_initrd_init() is used to copy the upgraded tables to it. So it should be mapped with early_memunmap() instead of early_ioremap(). This is critical for ARM. Signed-off-by: Aleksey Makarov Acked-by: Lv Zheng --- drivers/acpi/tables.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.8.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index a372f9e..f829e6a 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c @@ -578,10 +578,10 @@ static void __init acpi_table_initrd_init(void *data, size_t size) clen = size; if (clen > MAP_CHUNK_SIZE - slop) clen = MAP_CHUNK_SIZE - slop; - dest_p = early_ioremap(dest_addr & PAGE_MASK, - clen + slop); + dest_p = early_memremap(dest_addr & PAGE_MASK, + clen + slop); memcpy(dest_p + slop, src_p, clen); - early_iounmap(dest_p, clen + slop); + early_memunmap(dest_p, clen + slop); src_p += clen; dest_addr += clen; size -= clen;