Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4867830imm; Tue, 16 Oct 2018 01:01:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV61anduYG5jqWZH2+Ag0Lw1CcUdhlE5Z4u6b6rsW26qHSJowkjGpIeV7JfMhFqWYWC/myHXX X-Received: by 2002:a63:8b43:: with SMTP id j64-v6mr19317723pge.149.1539676873282; Tue, 16 Oct 2018 01:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539676873; cv=none; d=google.com; s=arc-20160816; b=uga+bhDdNDpnwHDzdkBmgECZSasddplrti4bTm70vN1WB43TmwZH4bNVO2NVNZj3Ke 05Jhhs4ev3gQG/apw9PewMBe83hYTrwaJS/xOkb/qSpRWqaHwYo3Mu3/pfU1N7FBlkwa S/TH9V74KCetzU3CjZPxXo6B4z8EZFJ02tZzWQh74IGzaERemjCReSKQUt7IeoHhjvm8 Vl5gvciDfzrOvKRxISpxQHEaEnUIDy1n7Iegjg+ZUoU6Y+L4r2B1Co+MDLe1zRcpGHOJ HB12aRjmE2/3Nf3ojVfeftdE3qMn1z21VpSIDJvLNXH1yGn8T59tpBAEhwVCl+U+8zhT qh8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Z6fa3MH7oMec2hDGhqIsewHQTweOGEE8myYBqzG5zJg=; b=OX0SD6Eg/qWKG8dd3N7H7NHFG+G7G5/20PLRsowtFJZT2nC0GOgVBey0pW7P6IgtJV REukR3hW4SoS3scL8NjMnQ1ksGdnIIi731880nhS82DduWZPM9XE/f5E8hbfMf1iOhCY FPn20/JlXe3gMDjPS6Ap0UbUBoLskvTqU2+gulUc4rWQ6+dPAQS+aCepQRKHRKQoxzw/ 8EDfS6rBQL33p10s8e8UY4/pA0o7DgXfqa3m9XI2UqNzKCPMYmdey20/0yLkiyh9JgjJ 1fxEuaBqzrER10SP/pFAX3g0kIAh+lK+8soifseVS6d3UNsCWXJrFaY2MILQhqyaJgWC jvVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GGExXRWK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14-v6si12575181pfo.118.2018.10.16.01.00.55; Tue, 16 Oct 2018 01:01:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GGExXRWK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727032AbeJPPtn (ORCPT + 99 others); Tue, 16 Oct 2018 11:49:43 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:45562 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbeJPPtn (ORCPT ); Tue, 16 Oct 2018 11:49:43 -0400 Received: by mail-qt1-f195.google.com with SMTP id e10-v6so24604572qtq.12 for ; Tue, 16 Oct 2018 01:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Z6fa3MH7oMec2hDGhqIsewHQTweOGEE8myYBqzG5zJg=; b=GGExXRWKDrlErvxQaEz1ngwI8xVKHEOC27+Qn3M9dgZHJCIUvktJ0cPHXBcEO5HRoZ 4NQEAfxNijZtsSd08wwMzg6tcUtEq0ROvzUjzAo+jHqAlHwQOlu0LdVEDu0cBfjaGlIl MU3bsOhLTDuhpP3DolJRGV8RR6XtbUI0F4JuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Z6fa3MH7oMec2hDGhqIsewHQTweOGEE8myYBqzG5zJg=; b=hpXqRNGrLqsU5UBG4pZ93kW1CV98B8braZTO9lBRPINtLzdyp+54zUvKNet5O0zG49 1glv1tt1cgxlJ2E6Jk+REMXQmdbNPS4HOEqadRtgl4n8BCQVJpt2RJP2DQ1/P0IE04/6 hbkUDSir2/035zmAH+LnX6BXjULc+64oW1mLTkR23Htvjj4Xltvibz2HGgbgQAF2rCkx zpgVr4WaqzdRK3rqAt1f0x6RR+7CJu5XWt+kAoZ17/yjKHwUZ6G5OJ/Sl8SGUV8egTwB Gofe+mKybeyhkvAO5TcYdChfE8jhPXTgoQeFErnxA3Qw/qnTSKA/KsG9wLw+pfVadD1l X9Qw== X-Gm-Message-State: ABuFfogb5My+OsyZJEdUxVDYmueNNSanOpnd6niIKX1uhqeQP6t5a0qu 3eUKgUZ5Gt4I+qyhQsyp8w6bj3PKJAwTH35o5uqJHg== X-Received: by 2002:ac8:74cc:: with SMTP id j12-v6mr19144814qtr.358.1539676831302; Tue, 16 Oct 2018 01:00:31 -0700 (PDT) MIME-Version: 1.0 References: <20181015221629.13924-1-stefan@agner.ch> In-Reply-To: <20181015221629.13924-1-stefan@agner.ch> From: Linus Walleij Date: Tue, 16 Oct 2018 10:00:19 +0200 Message-ID: Subject: Re: [PATCH 1/2] ARM: copypage-fa: add kto and kfrom to input operands list To: Stefan Agner Cc: Russell King , Hans Ulli Kroll , Joel Stanley , Nicolas Pitre , Arnd Bergmann , Linux ARM , "linux-kernel@vger.kernel.org" , Roman Yeryomin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 16, 2018 at 12:16 AM Stefan Agner wrote: > When functions incoming parameters are not in input operands list gcc > 4.5 does not load the parameters into registers before calling this > function but the inline assembly assumes valid addresses inside this > function. This breaks the code because r0 and r1 are invalid when > execution enters v4wb_copy_user_page () > > Also the constant needs to be used as third input operand so account > for that as well. > > This fixes copypage-fa.c what has previously done before for the other > copypage implementations in commit 9a40ac86152c ("ARM: 6164/1: Add kto > and kfrom to input operands list."). > > Signed-off-by: Stefan Agner Please add: Cc: stable@vger.kernel.org I am on deep waters with ARM assembly, admittedly. So I wanted to ask: OpenWRT has this cache patch: https://github.com/openwrt/openwrt/blob/master/target/linux/gemini/patches-4.14/0001-cache-patch-from-OpenWRT.patch I do not know why (sorry). Do you think that patch is actually a hack to hide the problem fixed with this patch? (OK maybe stupid question but...) it appeared anonymously in OpenWRT with the commit message "add v3.18 support" at one point. Yours, Linus Walleij