Received: by 10.223.185.116 with SMTP id b49csp5021562wrg; Wed, 7 Mar 2018 05:13:13 -0800 (PST) X-Google-Smtp-Source: AG47ELuCpCBLQslt5y3MuobBmAy83FC8mNWMp3Covmfe34ZFzPLPPbKBCTMpRuRu6r2UvoawNZy+ X-Received: by 10.98.204.69 with SMTP id a66mr22623780pfg.33.1520428393603; Wed, 07 Mar 2018 05:13:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520428393; cv=none; d=google.com; s=arc-20160816; b=Wwo121dk8MjdAt7U386Wc9TnIi7tYrJAkDvT1rjLihLXL5/LUQtJnrxvflEui3jos8 SAb3iK2ziSBskTgH2md1J+oQfq0O0FrSGOEnyreIauJf1dEspMVueZSAWdFGwkqXKGq+ vx9KG0EhhgbNmaNFBpv2AcD9w6CAj0MXw5aaKTPjjeRByttBqCE2aO1OtFZBoll5DxLy tohZki+BbIm/JdsYl9ZnaGvqT5b6+v3C8Y2t6vMhpVujGrZU5PszWSDiFhdF/Ayfd/oH hA3cdz+tFwNlVh//qriZ1336o02MKUzhqid50bvvCvVo43t7VmFJpE61kgzu11WG5iLW qFiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :dkim-signature:arc-authentication-results; bh=pPGuff5EE/pJQASjNfhYYZ0P65cZOtpNB9R3+lO+2pQ=; b=NxMeJ1r0LErwDk8UzFEiHGDLnnXvK+DVOYWhOFZQpwDwLXoc/ocdW9Xdh0EKLtDZFf HKnkHOJErO0whnClF8XLNLVsDZBK3K0pIGCkMG4nSnRoe6WTwRRZmY0dqtNAxTaabXFu 51jexkz+rRxU4D5YiAagg50sTaKJLpa0rMTszeQDxaTB2Z3miWOLLnfnHuDOtovS48V1 rJduDlHTHLr56sUfSk2OauD6BgA3nJ/A2yARRaPXHJxTwya/JSiXVQBHORPefHjRhClU ravYYNdJBXeYDG5+7rief/jtg31KSkcECcRuSARm5J2FxVzuO6LPHax8SN0B4alzwrfz MqJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@raspberrypi.org header.s=pp header.b=S92kxO66; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=xeGtZcff; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13-v6si12941061plb.515.2018.03.07.05.12.59; Wed, 07 Mar 2018 05:13:13 -0800 (PST) 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=fail header.i=@raspberrypi.org header.s=pp header.b=S92kxO66; dkim=pass header.i=@raspberrypi-org.20150623.gappssmtp.com header.s=20150623 header.b=xeGtZcff; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754352AbeCGNLx (ORCPT + 99 others); Wed, 7 Mar 2018 08:11:53 -0500 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:31726 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753979AbeCGNLv (ORCPT ); Wed, 7 Mar 2018 08:11:51 -0500 X-Greylist: delayed 1917 seconds by postgrey-1.27 at vger.kernel.org; Wed, 07 Mar 2018 08:11:51 EST Received: from pps.filterd (m0102628.ppops.net [127.0.0.1]) by mx07-00252a01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w27CZQxu006753 for ; Wed, 7 Mar 2018 12:39:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp; bh=pPGuff5EE/pJQASjNfhYYZ0P65cZOtpNB9R3+lO+2pQ=; b=S92kxO66lK9KAcsh1DZFBAEQSxjMFmqbct94LZE33EQHE9wG1JAYgTP7ZnKfij86LVJK iBNC0QqQtFysUQm8l6CUZlQpZK3VdXmebRNiGkZfh+p5l2sGwBEVp5AZ0ojwBpOAUWS/ 3tNsgQ39s6tNnnl8F5gzOrV5yJ/lWOgyWtSHJek/7ETai8AEeTTClf2IqQxx79VBUtit IqgMWr4lrGzuz63JDPUgFlfhGRcjb2k+WBtHrX21TwgXYLhbVtW44ZBFLM4GpSp9NKh7 2lifU710ehtLVaw18HHohy0Gt0OswLa1AejlZgP+rJ99hWUAuVTYw1tp2SrK3Oeve+08 4A== Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by mx07-00252a01.pphosted.com with ESMTP id 2gfj05223c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Wed, 07 Mar 2018 12:39:53 +0000 Received: by mail-wr0-f199.google.com with SMTP id 5so1203506wrb.15 for ; Wed, 07 Mar 2018 04:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pPGuff5EE/pJQASjNfhYYZ0P65cZOtpNB9R3+lO+2pQ=; b=xeGtZcffBcUod4fWeWAx7cAtwSyq1ILpH3xEirq0bQWb+1nVc0o2bw6LVDqzWhidmR rxO66NfEQ0+AIsR/UqsZDMCIapeNhho5ovtYr/32Jl+AR3fVkbyYwjtSBEtaBglJUkfO yPt1VWpo5b9YCh+Qwoe4s2UwqiP/uw8t5ttMx1If3qmV7R05hYUtlvJ5byn+wvZ5LqYz G0Rz6LjL6X00evtztu4jbM/e9WtkIqpOwakYh20kkHB+1zYmI9AZaUPkpGjXzeCJiA0b L2jWU3OP3GZVxTQ0qILlYBjR09iJ7iebISE0hbFaEbEyuU4Uazt9kBa5SDoEOcyeVupB gWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pPGuff5EE/pJQASjNfhYYZ0P65cZOtpNB9R3+lO+2pQ=; b=Sjax+rfhwgfpg0yNDRxc79NbzGJke5q41j4BwB1RpT6w+hk3BSzJd4ZbkFoIcD/euB DVIMUna5mZnykgdB+oyoTISTVYfJNKRArDM/gCrJjVGr7JsZeLB/YOWpePtBgxXO1xRc hC9J8s5na6ZzcAbgDkanSVBRC307thz15+1IXOxA3o15ciiudYiQFq3msF94pqUdudBd sndqfSGG4/Z1SLilODczwtj8TtmWMgQVz7Yf78Gq9e4akNdl3g+xYfQWIXKzUvGOfNdL 3upNOHsvEUFocmzrznKMuu3V+7RnBtee4xfkzlAmHG+hJQYRKGbbWdJS5c5Y8kq7YGuI bVyg== X-Gm-Message-State: AElRT7EGGKo+LYVhhe1KetfVWaR/nH6yYjdlVngf2AeFPLUU7sfkE1+C ycB5UJfQJBbXH3Cb+9ZTBwVO4C0CNyPQVjqZdrZ+5Exa5fuC2eifsRmQSAnXTsyJlD1UaYLOyl0 82mUinhI3PN5AOWypeFR/4E74 X-Received: by 10.28.184.21 with SMTP id i21mr15084002wmf.94.1520426392987; Wed, 07 Mar 2018 04:39:52 -0800 (PST) X-Received: by 10.28.184.21 with SMTP id i21mr15083989wmf.94.1520426392751; Wed, 07 Mar 2018 04:39:52 -0800 (PST) Received: from ?IPv6:2a00:2381:fdf7:14:ad09:4c6:99e0:3438? ([2a00:2381:fdf7:14:ad09:4c6:99e0:3438]) by smtp.gmail.com with ESMTPSA id z7sm17144991wrg.1.2018.03.07.04.39.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 04:39:52 -0800 (PST) Subject: Re: [PATCH 2/5] staging: vc04_services: Remove cache-line-size property. To: Stefan Wahren , Rob Herring , Florian Fainelli , Eric Anholt , Mark Rutland , Greg Kroah-Hartman , devicetree@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20180305202806.21219-1-eric@anholt.net> <20180305202806.21219-3-eric@anholt.net> <87muzl9ger.fsf@anholt.net> <638bd870-bb17-a0e1-d2aa-30a364b53279@raspberrypi.org> <1332781939.275857.1520424630939@email.1und1.de> From: Phil Elwell Message-ID: <51dc71d7-e8f5-2785-ad13-a941bc9278ab@raspberrypi.org> Date: Wed, 7 Mar 2018 12:39:56 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1332781939.275857.1520424630939@email.1und1.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-07_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/2018 12:10, Stefan Wahren wrote: > Hi Phil, >> It is the L2 cache line size that matters, but as long as you end up with >> the numbers Stefan mentioned - 32 on BCM2835, 64 on BCM2836 and BCM2837 - >> I'm not too bothered how you get there. > > i think a kernel with bcm2835_defconfig on RPi 2 could be such a corncase. > > Am i right that the firmware doesn't rely on the existence of "cache-line-size"? Because of the way partial cache lines are handled it is more important that the two sides agree than that the value is correct. As a result, the firmware treats the absence of a "cache_line_size" DT parameter (that sets the "cache-line-size" property) in the DTB as an indication that the kernel driver pre-dates the ability to switch, and uses the old fixed value of 32 as a fallback. Otherwise it sets the parameter and the internal value used by the VPU-side VCHIQ to the correct value. There are a number of ways to fix this, the easiest of which is to assume that the kernel driver will either read the property or be able to work out the correct value, so the VPU should always use the correct value regardless of the success of applying the parameter/changing the property. > Btw it would be nice to get fixed the corruption on ARM64 [1]. This is almost certainly due to the logic described above. > > Stefan > > [1] - https://github.com/lategoodbye/rpi-zero/issues/23 > >> >> Phil >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel