Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3692337pxu; Mon, 30 Nov 2020 08:22:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYnZLYwOj4+cjZkeBRdXXczFmsssCrnN6BRSTa5fsPcvaoVTBFClKBKV4GtiEUwr8RUXUj X-Received: by 2002:a17:906:5182:: with SMTP id y2mr21993620ejk.471.1606753374051; Mon, 30 Nov 2020 08:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606753374; cv=none; d=google.com; s=arc-20160816; b=DQR5/NGaprDQgqEj6RdqtZQSR1AKSfdrjE6UTPNi2ckREbMD+0DKvLs+37r0vk5RmM 6JZpVrgJzlM5e5Y48zaUOLyrYUgNbNyOxLNf6/vVUUmptF7UzBSF4ZVyF0Tjloicltfi HxchcZlLuclPenSbRfoBbui28jSCaCRkXR1+/fdN8I4iOTs3bNME+lPn+K/Skr6itujg Vzr1fZA4mkhnOVKKWQSuc3/wt3hLoj0wU2Fpnn7C4S2GPaL7GuNvCx3KeeNpVybJo8ax 1gFLL1SHlX+V+NdfTgxnplTJdwrY5k4EpY4mQq2pA9fG2nXT4/OFBH8fI1jAZEIYMQwC TBTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=BODYfYTeDSugp1RxBgS7anYBagSna9CL1uemvUvDkss=; b=s6rpW9B/orEDXSkKaybdXQlvb9jZgK/150AYfy6zI/kyLj2pxCAaO7ZVrvlOli+waF 1PJlIFHDWK5pr5nKMsClpA6t95VFUE/gMFaL/2hQVB+Ot+5iNVbZ+7OixVazDo5m2Mej mVItbLz0cPR3HQyVO71J/LqV2lc8RMDQhyBTKu/4v+UacP30o14TEpeefKyHfjjuhnfR cEWTDDNdoRyG670AH92sE4v1MtAU4iH/8KruHwNn0BiitOPLCkXkVNtTeff16Zrvrjee FTHEwi/LFH70G9EhdZ6+SX9vGmG3a94DLOpGQzJM08BAZADx5GADX/zVPhkrcIVW8bSH w6LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=Z64+fGze; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs12si1025244ejb.127.2020.11.30.08.22.30; Mon, 30 Nov 2020 08:22:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=Z64+fGze; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728764AbgK3QUj (ORCPT + 99 others); Mon, 30 Nov 2020 11:20:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbgK3QUj (ORCPT ); Mon, 30 Nov 2020 11:20:39 -0500 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 816C4C0613D6 for ; Mon, 30 Nov 2020 08:19:53 -0800 (PST) Received: by mail-oi1-x244.google.com with SMTP id l206so14698094oif.12 for ; Mon, 30 Nov 2020 08:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=BODYfYTeDSugp1RxBgS7anYBagSna9CL1uemvUvDkss=; b=Z64+fGze7U4fK9y//5Jw+dCXti/GNHvXBUKcQ5kt7bBRn3l30mVR9h+HisK1syj/ag q8cUQVjzMmRi35Nx4lDFD2rBEsLt5wAr16JA9xwke+XjnKg+RpdJqf6zQcbxtrOMXOHL EIl9VtOIZTrgRty8fmpLST1u+bJwqYCUSmci5rIMaYnQKgraHvAeV99VESAS9E+VHjBN UlFahOSzmKSwQuTaLzozKP+cuouHrtNvK7tr0AcmxLQoVwrKrzbYNodrVJH1/5f0z1YV VrNzuK8U9A1GDdCamxsbu1k5ZaRcOJOtOGgUa6e3gwKQSW37geLZUEAyCOTaW1sDyg8N a8Tg== 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-transfer-encoding :content-language; bh=BODYfYTeDSugp1RxBgS7anYBagSna9CL1uemvUvDkss=; b=EGxFaatxCwE0Qnw+JtidGFIEbJwiOCfru3YrId9jnUXX36PLBI1anUAEJBAtovVJ2a 3pVQVM+lkeeljUoxHvemXmdRmf3I2RoMcUmeFgGRVexhf9ldmOVcbLQSESnG7YnZ8MdT V8QiPrb7Artfiuzvc4hYbcS3JMFFCsfCxVz85KnOcWpDAidMaasCVXN6n8+qCFWlkQ03 Qi7hLtKy7W4oFwZA2X+5mNL+R7sR4CsEtQXMjxJHXHx++4NzCZXs9KUDVNROQrqX45dD 7FbjX9xkEISw5dLIO5R3SpCni9HG9e8ynjdrZ2BMXw+qZnlf57ubI86Qv+Q23WH/8iTj EAyw== X-Gm-Message-State: AOAM532aXCbdiqERKI/iHKajgatmGYzRlb44AjBiThkW1D55DqK+xFq8 0ef6YnfDm0hj+quFRdGzqmeebA== X-Received: by 2002:aca:90c:: with SMTP id 12mr15118936oij.15.1606753192894; Mon, 30 Nov 2020 08:19:52 -0800 (PST) Received: from Steevs-MBP.hackershack.net (cpe-173-175-113-3.satx.res.rr.com. [173.175.113.3]) by smtp.gmail.com with ESMTPSA id a4sm10047503oot.6.2020.11.30.08.19.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2020 08:19:52 -0800 (PST) Subject: Re: [PATCH] Revert "i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630" To: Bjorn Andersson , Andy Gross , Akash Asthana , Mukesh Savaliya , Sumit Semwal , =?UTF-8?Q?Christian_K=c3=b6nig?= , Wolfram Sang , Shawn Guo Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org References: <20201124185743.401946-1-bjorn.andersson@linaro.org> From: Steev Klimaszewski Message-ID: Date: Mon, 30 Nov 2020 10:19:51 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <20201124185743.401946-1-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/24/20 12:57 PM, Bjorn Andersson wrote: > A combination of recent bug fixes by Doug Anderson and the proper > definition of iommu streams means that this hack is no longer needed. > Let's clean up the code by reverting '127068abe85b ("i2c: qcom-geni: > Disable DMA processing on the Lenovo Yoga C630")'. > > Signed-off-by: Bjorn Andersson > --- > drivers/i2c/busses/i2c-qcom-geni.c | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c > index dce75b85253c..046d241183c5 100644 > --- a/drivers/i2c/busses/i2c-qcom-geni.c > +++ b/drivers/i2c/busses/i2c-qcom-geni.c > @@ -353,13 +353,11 @@ static int geni_i2c_rx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, > { > dma_addr_t rx_dma; > unsigned long time_left; > - void *dma_buf = NULL; > + void *dma_buf; > struct geni_se *se = &gi2c->se; > size_t len = msg->len; > > - if (!of_machine_is_compatible("lenovo,yoga-c630")) > - dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); > - > + dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); > if (dma_buf) > geni_se_select_mode(se, GENI_SE_DMA); > else > @@ -394,13 +392,11 @@ static int geni_i2c_tx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, > { > dma_addr_t tx_dma; > unsigned long time_left; > - void *dma_buf = NULL; > + void *dma_buf; > struct geni_se *se = &gi2c->se; > size_t len = msg->len; > > - if (!of_machine_is_compatible("lenovo,yoga-c630")) > - dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); > - > + dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); > if (dma_buf) > geni_se_select_mode(se, GENI_SE_DMA); > else Tested-by: Steev Klimaszewski