From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C2BAC433DB for ; Wed, 3 Feb 2021 10:53:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D9F564DF8 for ; Wed, 3 Feb 2021 10:53:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233950AbhBCKxc (ORCPT ); Wed, 3 Feb 2021 05:53:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233731AbhBCKxa (ORCPT ); Wed, 3 Feb 2021 05:53:30 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F233EC06174A for ; Wed, 3 Feb 2021 02:52:49 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id z21so17085028pgj.4 for ; Wed, 03 Feb 2021 02:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=p3o0sLDAxz/W/SPP1XvuN5vOHHS8YIT9o0J8SbVCzPU=; b=W+4qYUqcIh38GzlEXekPSBK0jKJUGEAF+x3oEj1qvsDJyIdJCyVzcNlQ8qPkQZfa2f xsIU70exVuHxfOi+9bKpTjCutEsgBJx0yE9DHMt6PqDdAPO4ZytJQrHAq3/F3tlOJg7T mny54zCXL60z3U7jmXvxgA1TqpvVZeUJGNJX2b9Z+ZKGpyr0YQo0TZMir22j2UcPjFxI sTOHe8OC9dXMpZPCKVgEfoXWRyDgECs0by/ROKZFgrrOtBTa5yLVc8Nj+jEvxn2+QijJ DLF1g/Cg2OQxmYywTx0n/VxaOduTn92UMj1ZlHmrdaM0jh3Q+J41j9hT/KNVaP52bIEH HAgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=p3o0sLDAxz/W/SPP1XvuN5vOHHS8YIT9o0J8SbVCzPU=; b=D/cnOyXOFObnxV3d4RBO5QXjk7v/AD4gItmPr6dBhBrc7Gt3c9EFYrs4hyWH73psrQ m8Orma4IIV3REZz7022JTjzUGZoBGgcfSPHoqdFy1yzUhN1XHxeKxHqL0wOvEgitBgmG e2yk5MgeycfI7XB+a1uS1oSOg9B/85vTU7/xAAXbdeS5c696TXD0DYzpkQa9KPcNTgZR q6eItgZnR13mXo6oFDvAc8eOQkf1+7h/Q+o3A0BERhnGjK582LlocyPbSK5lznUvB7AY E0Hg32ZF+fAbE0G87j6gu8OazYLEKAguu/pVlGSGKMxQGsvTL7Dg6Hm7t6JLYUiCiulp PXkA== X-Gm-Message-State: AOAM5308MRD2ochzlT/E9tDu4yqIoXhfNCAagg/O6gYIuoj8NANPk4HO jCbSqQT0e3E24orGG63O2bOz X-Google-Smtp-Source: ABdhPJzf5nDeWWg+gxoU7O5XqypjGXLwFZUdDgdnQHTCPf3Z/9XBQTN9ihVdCQS1qn8/Rf37ob5DhA== X-Received: by 2002:a62:ae0c:0:b029:1bc:a0b9:f0aa with SMTP id q12-20020a62ae0c0000b02901bca0b9f0aamr2525847pff.78.1612349569452; Wed, 03 Feb 2021 02:52:49 -0800 (PST) Received: from ?IPv6:2409:4072:619f:ff99:700b:51f3:e28:b00? ([2409:4072:619f:ff99:700b:51f3:e28:b00]) by smtp.gmail.com with ESMTPSA id a12sm1772842pjs.53.2021.02.03.02.52.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Feb 2021 02:52:48 -0800 (PST) Date: Wed, 03 Feb 2021 16:22:42 +0530 User-Agent: K-9 Mail for Android In-Reply-To: <20210203111914.1c2f68f6@collabora.com> References: <20210130035412.6456-1-manivannan.sadhasivam@linaro.org> <20210201151824.5a9dca4a@xps13> <20210202041614.GA840@work> <20210202091459.0c41a769@xps13> <20210203110522.12f2b326@xps13> <20210203111914.1c2f68f6@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] mtd: rawnand: Do not check for bad block if bbt is unavailable To: Boris Brezillon CC: Miquel Raynal , richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org From: Manivannan Sadhasivam Message-ID: <8A2468D5-B435-4923-BA4F-7BF7CC0FF207@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3 February 2021 3:49:14 PM IST, Boris Brezillon wrote: >On Wed, 03 Feb 2021 15:42:02 +0530 >Manivannan Sadhasivam wrote: > >> >>=20 >> >> I got more information from the vendor, Telit=2E The access to the >3rd =20 >> >partition is protected by Trustzone and any access in non privileged >> >mode (where Linux kernel runs) causes kernel panic and the device >> >reboots=2E=20 > >Out of curiosity, is it a per-CS-line thing or is this section >protected on all CS? > Sorry, I didn't get your question=2E=20 >> > >> >Ok, so this is not a chip feature but more a host constraint=2E >> > >> >In this case it would be a good idea to add a host DT property which >> >describes the zone to avoid accessing it=2E Something like: >> > >> > secure-area/secure-section =3D ; >> > >> >From the core perspective, we should parse this property early >enough >> >and return -EIO when trying to access this area=2E > >FWIW, I'm not sure making it part of the core is a good idea, at least >not until we have a different platform with a same needs=2E The >controller driver can parse it and return -EACCESS (or -EIO) when this >section is accessed=2E Fine with me=2E=20 Thanks,=20 Mani --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E