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=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 D7D86C433E1 for ; Sat, 4 Jul 2020 13:20:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B8A40208B8 for ; Sat, 4 Jul 2020 13:20:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k0AQLqmB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbgGDNUm (ORCPT ); Sat, 4 Jul 2020 09:20:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbgGDNUm (ORCPT ); Sat, 4 Jul 2020 09:20:42 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5DB2C061794; Sat, 4 Jul 2020 06:20:41 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id l12so37255104ejn.10; Sat, 04 Jul 2020 06:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FxeWfdeiZs/rAf+ljgMaCrJoKxPAwF3x7YpavGdK0aI=; b=k0AQLqmBs39X8hgGcZfrSBkkff33qKuj+PAa3/3V65/noDmQ9W9gBdNBEIm3GAiYWG K6z6S2fEzf0frf6VKldY8Gd2e3labO3XqPacm0GwJL0ye56QlNoLrQvh71TI/xADk4Uh ZkXB8LqAQ2QGY5G8fXCYj2K/pROMoNUc2tXHyIV+em8G8bX4fkC8m+EBzByr/hRBUdQc RkNjsKRyV9TcZLk3EruvbcRuMlkJxEtQ34ZyIW5oxcPuvABduPtZpncxH7AvHqQCOqBX JCEH2AQ0xqWNz0m0odvp1ziGDp9a0jNHZZakGHeTRWpHkhw8Wlo3hjBRgnzW4nZOzCKk AK4Q== 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=FxeWfdeiZs/rAf+ljgMaCrJoKxPAwF3x7YpavGdK0aI=; b=i/eBDyrujDQFc4aJUDVEmndn4BWwgOCCyfmB3Z99rox1sdPy3tq+5dzpqL1F3hZthO OzHyeJP+VA5WwO/UpP0GotnK4aGt+o7XiFRytbuV8w1G1czBpMLfouSZwkZSAMODm2/p dn3fsbe9/gkmDol+FxNybn1ueAAUxwt2j1I/84erRBhAaYe7JcIyW9vv+JLieL6Noxqq 08AyqrfaLgIVJ1ZkG1Vt+tM4W7pc/wOiToQ2g31b5C0FL4bJNyDY6MHklzia2nCiAEiw amwmanDZQvRDG3UUgbmd64KrsLogkP4fXuOo0rZi55dhJcxhsE5iTI7OKUp6SXJWMqS9 VLWw== X-Gm-Message-State: AOAM532Itmt5/+rdo5c51nS/Ze5072k3yqICUq5Q43jVTab2MykB2t9n ScnDlieabOa0KCuGJI8CpQ3exdP8CAe+js/f7pI= X-Google-Smtp-Source: ABdhPJyN0L6Lg+tDrvxAD4o3/ArnPQHIneDzLuy5Y3L9y8VnRCiaTHn+7cc8WOa3IbxOlmbcK4A+SFhO5NQmPPcgJZQ= X-Received: by 2002:a17:906:70d5:: with SMTP id g21mr19049076ejk.340.1593868840390; Sat, 04 Jul 2020 06:20:40 -0700 (PDT) MIME-Version: 1.0 References: <20200704122809.73794-1-konradybcio@gmail.com> <20200704130922.GB21333@willie-the-truck> In-Reply-To: <20200704130922.GB21333@willie-the-truck> From: Konrad Dybcio Date: Sat, 4 Jul 2020 15:20:04 +0200 Message-ID: Subject: Re: [PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init To: Will Deacon Cc: skrzynka@konradybcio.pl, Robin Murphy , Joerg Roedel , Rob Herring , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, DTML , Linux Kernel Mailing List , Bjorn Andersson , jcrouse@codeaurora.org, john.stultz@linaro.org 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 > It would probably be better to know _which_ context banks we shouldn't > touch, no? Otherwise what happens to the others? > Do we not need to worry about the SMRs as well? This was mimicked from CAF (think [1]) and the SMMUs don't make the hypervisor angry anymore, so I wouldn't be too picky on that if it works.. [1] https://github.com/sonyxperiadev/kernel/blob/aosp/LA.UM.7.1.r1/drivers/iommu/arm-smmu.c#L4104-L4109 Regards Konrad 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=-5.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 A2F5EC433E3 for ; Mon, 6 Jul 2020 08:05:17 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 782672073E for ; Mon, 6 Jul 2020 08:05:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k0AQLqmB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 782672073E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E768D86D2A; Mon, 6 Jul 2020 08:05:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GyJDTW3I2b0y; Mon, 6 Jul 2020 08:05:15 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6B4AC86D2F; Mon, 6 Jul 2020 08:05:14 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3DB46C08A9; Mon, 6 Jul 2020 08:05:14 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 4CFF8C0733 for ; Sat, 4 Jul 2020 13:20:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 35B4188212 for ; Sat, 4 Jul 2020 13:20:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sVtUeeM3UKW0 for ; Sat, 4 Jul 2020 13:20:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f67.google.com (mail-ej1-f67.google.com [209.85.218.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id CC6B688209 for ; Sat, 4 Jul 2020 13:20:41 +0000 (UTC) Received: by mail-ej1-f67.google.com with SMTP id w6so37316071ejq.6 for ; Sat, 04 Jul 2020 06:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FxeWfdeiZs/rAf+ljgMaCrJoKxPAwF3x7YpavGdK0aI=; b=k0AQLqmBs39X8hgGcZfrSBkkff33qKuj+PAa3/3V65/noDmQ9W9gBdNBEIm3GAiYWG K6z6S2fEzf0frf6VKldY8Gd2e3labO3XqPacm0GwJL0ye56QlNoLrQvh71TI/xADk4Uh ZkXB8LqAQ2QGY5G8fXCYj2K/pROMoNUc2tXHyIV+em8G8bX4fkC8m+EBzByr/hRBUdQc RkNjsKRyV9TcZLk3EruvbcRuMlkJxEtQ34ZyIW5oxcPuvABduPtZpncxH7AvHqQCOqBX JCEH2AQ0xqWNz0m0odvp1ziGDp9a0jNHZZakGHeTRWpHkhw8Wlo3hjBRgnzW4nZOzCKk AK4Q== 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=FxeWfdeiZs/rAf+ljgMaCrJoKxPAwF3x7YpavGdK0aI=; b=q3pSBvo2urS/6ek6eLlHQgb1FNcB249grgCKWmHG0ZFezQCQv2sWSHJsD7WOTc6VUT lerqkOy0axf/B4MF1KiLaKd4nOeZ/4bxz2Y3jq6Ck5NA04rPHRl+MiBDbkb3xx/UDJeU mgPWxqTr4v1qWGNfORwvUNIPYGE/nt8BZjhU9+PLACWud9wNUUIRQLixlsiAPMr5H+5n 4CMaJxIKMuI2wvfY8k6SdhmVzsjFySvicUj+zaMrI6CZsBvj1/UpvZRttjW1EDspNjQe vv/FFG87mHYQBMHD9d5v9maPOU0HF81hFbr1N+MTBx+FHHMxAqA+btcE7lUTgOiRKn7K M9nw== X-Gm-Message-State: AOAM532UyrTDCOCiABymrMpv5GKtCCdDhaYat/cpiRF8ZlI/P/ypSelz VUAbRiGtROUoyCO3CAT2xl4PywLXYXp4TJYkEnE= X-Google-Smtp-Source: ABdhPJyN0L6Lg+tDrvxAD4o3/ArnPQHIneDzLuy5Y3L9y8VnRCiaTHn+7cc8WOa3IbxOlmbcK4A+SFhO5NQmPPcgJZQ= X-Received: by 2002:a17:906:70d5:: with SMTP id g21mr19049076ejk.340.1593868840390; Sat, 04 Jul 2020 06:20:40 -0700 (PDT) MIME-Version: 1.0 References: <20200704122809.73794-1-konradybcio@gmail.com> <20200704130922.GB21333@willie-the-truck> In-Reply-To: <20200704130922.GB21333@willie-the-truck> From: Konrad Dybcio Date: Sat, 4 Jul 2020 15:20:04 +0200 Message-ID: Subject: Re: [PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init To: Will Deacon X-Mailman-Approved-At: Mon, 06 Jul 2020 08:05:12 +0000 Cc: DTML , skrzynka@konradybcio.pl, Linux Kernel Mailing List , iommu@lists.linux-foundation.org, Rob Herring , john.stultz@linaro.org, Robin Murphy , linux-arm-kernel@lists.infradead.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" > It would probably be better to know _which_ context banks we shouldn't > touch, no? Otherwise what happens to the others? > Do we not need to worry about the SMRs as well? This was mimicked from CAF (think [1]) and the SMMUs don't make the hypervisor angry anymore, so I wouldn't be too picky on that if it works.. [1] https://github.com/sonyxperiadev/kernel/blob/aosp/LA.UM.7.1.r1/drivers/iommu/arm-smmu.c#L4104-L4109 Regards Konrad _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu 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=-5.7 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 4FCF5C433DF for ; Sat, 4 Jul 2020 13:22:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C12A20885 for ; Sat, 4 Jul 2020 13:22:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mwOfvAmL"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k0AQLqmB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C12A20885 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jf/gJdarIKPBDnTNwDhgrpgbYW/qwQbauJK3XiVIPcU=; b=mwOfvAmLU/tyfj0/p0JAjiTqg zSD4qP9f5QPqnBV5ks0UmEYklSJBl6Ytk/XeF9ouKdVvFbLQaFw69wJAdhbpVbrk6/BiW1J0Xb3BR ++NHyBpKqwdX/p+nJynKrbPV7WwSSYSauopIj2OEJdfTKm0575a3nMyf115l+x8Ls5sIOs8ElmSF9 LHOiVz12AMJ3HJob3UCLG7HeNNA1uTRXpElGlKtlS9xJoaQZL957zgrNi2K6UdjxlG+VcyPBleYql F0GjNBhicx+mp9TQq5usxi1dXbAVw/rkknzumL27l4VQMe/Ldj33ev+ub64xoOXckMwL35+PUEk8z X2pgozWHA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jri60-00079d-C3; Sat, 04 Jul 2020 13:20:44 +0000 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jri5x-000794-O9 for linux-arm-kernel@lists.infradead.org; Sat, 04 Jul 2020 13:20:42 +0000 Received: by mail-ej1-x642.google.com with SMTP id a1so37287221ejg.12 for ; Sat, 04 Jul 2020 06:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FxeWfdeiZs/rAf+ljgMaCrJoKxPAwF3x7YpavGdK0aI=; b=k0AQLqmBs39X8hgGcZfrSBkkff33qKuj+PAa3/3V65/noDmQ9W9gBdNBEIm3GAiYWG K6z6S2fEzf0frf6VKldY8Gd2e3labO3XqPacm0GwJL0ye56QlNoLrQvh71TI/xADk4Uh ZkXB8LqAQ2QGY5G8fXCYj2K/pROMoNUc2tXHyIV+em8G8bX4fkC8m+EBzByr/hRBUdQc RkNjsKRyV9TcZLk3EruvbcRuMlkJxEtQ34ZyIW5oxcPuvABduPtZpncxH7AvHqQCOqBX JCEH2AQ0xqWNz0m0odvp1ziGDp9a0jNHZZakGHeTRWpHkhw8Wlo3hjBRgnzW4nZOzCKk AK4Q== 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=FxeWfdeiZs/rAf+ljgMaCrJoKxPAwF3x7YpavGdK0aI=; b=sQmyeDNU7SeQ7mf+Sw2mBVFPifHdZBDKBkk7+ebYDmUqsFOvANg5iOtEge/VzHNOmZ NdG5tYakErTAEMfDNgRD4FyKkBffT5omsyYO+M1qwQmAB5k6pYMiJgEsPVEYsJ7zRzpG RDhqm8ZghXL5Mzik3/qmXdnRM9AI+w/P/3GUVRtjYzZFm7eJafixHgysOPQ8YUCluPlQ cVNT5CUHC5qEYjxCDavFplkmIbWAg26Fr53KSo4VQpg1VpgLqExHUp0inp+uNDgcp+h/ cekzDryB2BR8NMHIAKdkCT+ifF1pVZkqBAlGpJdtX8+oWWHABfyBxDz06k69G7xpj9Mt 9rNw== X-Gm-Message-State: AOAM532drN71kM268cXSCOQk4J9qtW7LujlSOkY9SlEB5SzxMGFxMS3n 3rmEew/THcYe3XSTRQpVf8tNZ1aadYkjcn2PKH8ogSedpYc= X-Google-Smtp-Source: ABdhPJyN0L6Lg+tDrvxAD4o3/ArnPQHIneDzLuy5Y3L9y8VnRCiaTHn+7cc8WOa3IbxOlmbcK4A+SFhO5NQmPPcgJZQ= X-Received: by 2002:a17:906:70d5:: with SMTP id g21mr19049076ejk.340.1593868840390; Sat, 04 Jul 2020 06:20:40 -0700 (PDT) MIME-Version: 1.0 References: <20200704122809.73794-1-konradybcio@gmail.com> <20200704130922.GB21333@willie-the-truck> In-Reply-To: <20200704130922.GB21333@willie-the-truck> From: Konrad Dybcio Date: Sat, 4 Jul 2020 15:20:04 +0200 Message-ID: Subject: Re: [PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init To: Will Deacon X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200704_092041_829255_DA667B87 X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: DTML , jcrouse@codeaurora.org, skrzynka@konradybcio.pl, Joerg Roedel , Linux Kernel Mailing List , Bjorn Andersson , iommu@lists.linux-foundation.org, Rob Herring , john.stultz@linaro.org, Robin Murphy , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > It would probably be better to know _which_ context banks we shouldn't > touch, no? Otherwise what happens to the others? > Do we not need to worry about the SMRs as well? This was mimicked from CAF (think [1]) and the SMMUs don't make the hypervisor angry anymore, so I wouldn't be too picky on that if it works.. [1] https://github.com/sonyxperiadev/kernel/blob/aosp/LA.UM.7.1.r1/drivers/iommu/arm-smmu.c#L4104-L4109 Regards Konrad _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel