Received: by 10.223.176.46 with SMTP id f43csp2702357wra; Thu, 25 Jan 2018 13:55:11 -0800 (PST) X-Google-Smtp-Source: AH8x227XR4ZhiH+ZdPYW7Fran93A3EIglaSYmqx/hE5XyVd3B0ZsHGfn2H/om1GZqsubRJv/NfJQ X-Received: by 2002:a17:902:b784:: with SMTP id e4-v6mr2932910pls.147.1516917311014; Thu, 25 Jan 2018 13:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516917310; cv=none; d=google.com; s=arc-20160816; b=irD38ys75GUSS7pOlS1Pw0A30gEnli5DOwhErdblj9Gsk58gmKJG7g8gZZgSYiMAlZ vM8/wDBQBmQLl1TpalmX4usYL1VbCvnl45CuN/jXMa1xQ8m1WZrjxL4GcL8V78NNFFuM fkooaqUu921prCPcrpZUhiyQ16Mhj0PLYA2mplcP4CVCD3sKWsR+e0ET4uFNoxUV6aYp ZihhdSg5hdZCDQ4FC1dQRw/uRr5QiF7ZbAgobcIS5fcw5myDXb4X+L8saaHVb5FNFjMi 2MiEKh62Qhpy07AEOh5ZbTQtvV8VZf88Fccui0s6AngkbcL9nIMfqTFEOWmDnaIEyo7E SQHQ== 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:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=HAJsp5ybBF4JZf6cZrvOIpWIYdatTzWz6ZAg0p1Ytwk=; b=E6eKvgeZXQoALlOtvstsNCo2WpPNA+SWC0udYegyUOzVCK5oYxx5s62ll+7qEOosJu 8Vf0upJ4S0nYfULvfzaTVEU/1dMQURpp3+UAZ4oL6AFVhKkNzliGCEe88DFXiEWCCbOg pk+6mlGpQzMRcCN8rhrBNpaCjBqDU+EYxehA8WR/j17/zS1GA0QGevqNTEaeha8yCPCd MkKRXR5drULCoBoa5pbM8llP3i/oJO/OsEZej5zt7vG7Z2/OI45NdtpkUUjMFyAvRFmo tMLicJ1vwLURbmbnHVMoFKG+szZ/isKgaaw7PP4kFOqhFW7OrU1LR81707s0X+CrG9WE gaJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=C7Knz7Ru; dkim=pass header.i=@codeaurora.org header.s=default header.b=C7Knz7Ru; 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 m5si2057340pgp.355.2018.01.25.13.54.55; Thu, 25 Jan 2018 13:55:10 -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=pass header.i=@codeaurora.org header.s=default header.b=C7Knz7Ru; dkim=pass header.i=@codeaurora.org header.s=default header.b=C7Knz7Ru; 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 S1751535AbeAYVx7 (ORCPT + 99 others); Thu, 25 Jan 2018 16:53:59 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:55044 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbeAYVx5 (ORCPT ); Thu, 25 Jan 2018 16:53:57 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 91D88609D1; Thu, 25 Jan 2018 21:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516917236; bh=ERVWHeuaIHHpJl68TrbUJxysqeyjT+A0jYQuaNUrO+U=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=C7Knz7Ru/uDA5YwV7wAsy+OEdSBYcnlIym7LjdzUceoih7vavtoO4e7ZdVY2s7ECE BUqqJwvHfGaZKGDGB30ftn6uN9obctR8GwQvSAK3mQj3PvQzkcckIhTA2sXRIdDffy Rt+IBZDU6z3ZAtYSCUx0TzUR4bS7qgHJZi6X3MFM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.222.143.167] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: timur@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3B69E6024A; Thu, 25 Jan 2018 21:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516917236; bh=ERVWHeuaIHHpJl68TrbUJxysqeyjT+A0jYQuaNUrO+U=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=C7Knz7Ru/uDA5YwV7wAsy+OEdSBYcnlIym7LjdzUceoih7vavtoO4e7ZdVY2s7ECE BUqqJwvHfGaZKGDGB30ftn6uN9obctR8GwQvSAK3mQj3PvQzkcckIhTA2sXRIdDffy Rt+IBZDU6z3ZAtYSCUx0TzUR4bS7qgHJZi6X3MFM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3B69E6024A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=timur@codeaurora.org Subject: Re: [PATCH 3/3] pinctrl: qcom: Don't allow protected pins to be requested To: Stephen Boyd Cc: Linus Walleij , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andy Shevchenko , Bjorn Andersson , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org References: <20180110015848.11480-1-sboyd@codeaurora.org> <20180110015848.11480-4-sboyd@codeaurora.org> <20180125215135.GY28313@codeaurora.org> From: Timur Tabi Message-ID: Date: Thu, 25 Jan 2018 15:53:54 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180125215135.GY28313@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/25/2018 03:51 PM, Stephen Boyd wrote: > Sorry I don't get it. Is that some sort of hardening requirement? > If the framework doesn't cause those pins to be touched I fail to > see how it could hurt to have the other addresses listed. I'm > sure with some effort protected addresses could be crafted in > other ways to cause an XPU violation to the same place. It's for my own sanity. By ensuring that those physical addresses are not ever present in the driver or any data structure, I can fend off, "Hey Timur, your gpio driver is causing XPU violations again, heh heh". -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.