Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2043029imm; Sat, 4 Aug 2018 17:40:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd2GZ0kAtpr46dpGDfayC15yuCstq3r0YFlRFBD5ngRLV7xgef5k9cOsCpK/9xe7bsjGwRL X-Received: by 2002:a17:902:8a4:: with SMTP id 33-v6mr8948546pll.82.1533429600727; Sat, 04 Aug 2018 17:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533429600; cv=none; d=google.com; s=arc-20160816; b=QSQtU4tm4rHEMcerRlYghp7hCfUT7eryII6jokBWkby1DC8bYl65R9OSVTn3+iKYwb 9qOMoUkhVllcC+CaISQH0BHtvOL23FstAF+jOhQ1q9Qb2pH8O9SFBaYXm4HrFZtDdlro Sst+e91+tE6jXwZyVv0oiRrcXK461R1aGckAGQ5gInS2QwIdDVRxGqEeVeYgqijg+sHJ mXlKSQOK3RO2juJ3nRrJ/+OHSMLJ55tKCBaWMnqZCbskRE5z9+cfzzaBYuCPdMX7dMXW dpfCaBrPx/dp71eaODtznZaxH1MC5Rcf/huswKlkrlQm6KCeiOvaeUvvR5hcSAhQKLye 0z5A== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=c82ln70mP1NzdVbMkzTg4/+6iy9DXi/uAWsQ30Cg/WM=; b=wXUOSksVgYXzCI5BquWDObk/d7U6yAFCJ0IObnyJnMvBGRxk4NtM760aYrtz0yp5mU aAQRGs+rcync5uHLpFR/1RM22ENWZUA1v/Muxvt6A1CMcj49DstCwu+Ms+WkHn/sv6jw 9obArur7rcOF+Vlw67LyEZeebJF5l15eX99RwheEiWBRpztBvaydD+z/0L0Xg0ip5Qg/ gM2MoF1XUv1SBV55PdRfKP54EtmqN9QY8OY6L+KIyisaxyd0tqiCb/YXQoCC6IbHLd9y IYvbXwRYQ/08sonsitNB4Jkq+0OjgDeghBoOsUxvv14FYyM2U69n6/+hnyOxY0G/tby9 SX6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sHi3jhWS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8-v6si7587932pgl.101.2018.08.04.17.39.45; Sat, 04 Aug 2018 17:40:00 -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=@gmail.com header.s=20161025 header.b=sHi3jhWS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728691AbeHECkC (ORCPT + 99 others); Sat, 4 Aug 2018 22:40:02 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:38642 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbeHECkC (ORCPT ); Sat, 4 Aug 2018 22:40:02 -0400 Received: by mail-lj1-f193.google.com with SMTP id p6-v6so7829875ljc.5; Sat, 04 Aug 2018 17:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c82ln70mP1NzdVbMkzTg4/+6iy9DXi/uAWsQ30Cg/WM=; b=sHi3jhWSOY92fu30VRk+bV6mHfonPYXSbQzTdTF6yxUjve9k2Crjki7xhOWHfyBi8+ xmvZcWw6X1IkLsSQTdt42pn4ELumvUqLzMfAsKRSsm1xEVFMDWFHff6eijYGbVN9zAZi TPYS59dwvMp5OfTiDa4avgLS7E1+IqWMgTS+gtzWYW8swXZKLreSGnFurWkuv8ejwyMe pPz1keq5Tq6F5348Axsc0dOhGvsWIDq4arEiwKbQ0dGzA6Jd4F4QJKvDHY/R7ct1Cw1m lMf9rTO5ktaTaYDWS65JbKD3i9CDNtLNBkzz5y6BYeqkhCZL8nmcIiN9Un+pNE0MhQ5A N9Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=c82ln70mP1NzdVbMkzTg4/+6iy9DXi/uAWsQ30Cg/WM=; b=rKe7DqTvPVJxDx4bmwh6u3nmqr8dKjFXnTMf75uUAybx9TvVDFlv16PJtAjC/yYmI6 9+Vj6Qy+jbu3YmOCrDe/2KoXyxPXKhATmnOUyE2dUtj+WvApeNXHzFNd+1/ps1dl07sl nKcfVgaTQNBw1yoonTbgSQIIptSk4jpEoXVi8P78n689af1/1ALLisbaaidGJ5KEa7u6 +TN5B7ZPfDQYUCLmDI0dacGsSnoGEtUVu1QFBkc1xmohvhPF4q9YdILd8iL48WRtvHmn IScl3U8PzxnjjaC0e6YS1tZUf4hvHy1kOPZ8ON+VxanWWfztdx18Pw+v0mFzwBWa6xrN UNdw== X-Gm-Message-State: AOUpUlGfMs59S272BQulJP51Lvszl4BVx3VrKZJHLX1w6QZwdSLn8J5B d6WgtZrgb3L6w1oGucZSpaw= X-Received: by 2002:a2e:9e17:: with SMTP id e23-v6mr8629524ljk.14.1533429447938; Sat, 04 Aug 2018 17:37:27 -0700 (PDT) Received: from dimapc.localnet (109-252-90-13.nat.spd-mgts.ru. [109.252.90.13]) by smtp.gmail.com with ESMTPSA id k5-v6sm1531815ljk.69.2018.08.04.17.37.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Aug 2018 17:37:27 -0700 (PDT) From: Dmitry Osipenko To: Mikko Perttunen Cc: Thierry Reding , Jonathan Hunter , Peter De Schrijver , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v1] memory: tegra: Block DMA for clients HW on a faulty memory access Date: Sun, 05 Aug 2018 03:37:26 +0300 Message-ID: <1797693.ge5mZLuUEu@dimapc> In-Reply-To: <89f0794e-affa-dba0-9684-582ce5570cad@kapsi.fi> References: <20180508165841.13758-1-digetx@gmail.com> <2607799.I2xByD6lqT@dimapc> <89f0794e-affa-dba0-9684-582ce5570cad@kapsi.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday, 5 August 2018 03:11:57 MSK Mikko Perttunen wrote: > One potential issue is with host1x clients where userspace processes can > submit jobs with invalid memory accesses (addresses not mapped to > IOMMU). If when such a failure happens, we disable the DMA for the whole > host1x client, unrelated userspace processes may see failures even > though there is no problem with their jobs. Good point, I'll take a look at partial resurrection of patch [0]. Anyway I think it's still better to fail even the unrelated jobs, rather than to have corrupted memory. [0] https://github.com/grate-driver/linux/commit/ c0351a9d01491af2b2fefc162de1c2e4fcfaa94c#diff-20226be476307cb7ec9f60e26a9c30deR378