Message ID | cover.1679382779.git.petr.tesarik.ext@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1662054wrt; Tue, 21 Mar 2023 01:49:50 -0700 (PDT) X-Google-Smtp-Source: AK7set9bR+l9R7o4efrz9G7SLSCA2zX21ayJEHxEp2tQ4iYhLd4Yk/vcUeh347AZtXvGLfykOx3q X-Received: by 2002:a17:90b:1c02:b0:23f:7d05:8765 with SMTP id oc2-20020a17090b1c0200b0023f7d058765mr1936219pjb.10.1679388589954; Tue, 21 Mar 2023 01:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679388589; cv=none; d=google.com; s=arc-20160816; b=mAgjSYwDUVRDYC/2HrEL4M7304G6Kn255Ioqew5Ml86mI1KpjfT4ILhcMxf7MJdz/Z ZKUbede4n4eAJaN5aLIqLXVVrSQxqeBTg9exI+Q+pxDDebaYNMhndd9EeGkbjbFmEtfq DCjrgACtjIqnCR3HwBMjAC8vYu87WFhdmk3lWcBYlf5tX7VwGsLAvgQnAH0qulPQOlmG IsN3L3e8qgLoETiGLT+corbA5UIoDnDZZrVwUkn03HOlZ+jvIpfAm/HVqaDSAPXZs7QG WmK37Ip3onvg45+dui1/v92pJvZSiLOhQdx2WpOEzNvaR1t8UhvE66nAgXSY6iTgAum/ AEvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ksPQbHpyIDIwASU/q4o820XqKgCXh/lf4yn8IlO10gs=; b=yeiZftolUJkU07gBoWcrJN9hzi7Rzzll9vq2hX1S3/Sz6M1iEJEHAsV9k6XhE7Az/E TMREPVhELOfeacgOdg6y+OyjXu0ViB5W9ui3chexza6QJIjrCUPe8IoGpyAQIzvYEGzT WsqVoynb/vf34X2xBtvrqSkuu1hLGOeSHrcvq3MYfAgFWEZZssF2NkeXkhmXv5nK/3MM gYtwGE+yfUnQvW+UOjHqahmtR1kZB5IstkR0qaynP3mmYcvl11oP1VkDvZ5K8/EIXW2W lE/Dp5Ql+wI31gUsLhonYYQwwYy4MyPLSt9m87WRZiX+vVWv7T4M/gzZiVYl1vKnjq9F 7atA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 31-20020a17090a0fa200b00226e01736f8si12457929pjz.109.2023.03.21.01.49.35; Tue, 21 Mar 2023 01:49:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230182AbjCUIdj (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Tue, 21 Mar 2023 04:33:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjCUIdM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Mar 2023 04:33:12 -0400 Received: from frasgout11.his.huawei.com (frasgout11.his.huawei.com [14.137.139.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50A174392F for <linux-kernel@vger.kernel.org>; Tue, 21 Mar 2023 01:32:26 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.18.147.227]) by frasgout11.his.huawei.com (SkyGuard) with ESMTP id 4Pgl3d3pdsz9v7NC for <linux-kernel@vger.kernel.org>; Tue, 21 Mar 2023 16:23:09 +0800 (CST) Received: from A2101119013HW2.china.huawei.com (unknown [10.48.151.252]) by APP2 (Coremail) with SMTP id GxC2BwBHHGNkaxlkK1q2AQ--.49312S2; Tue, 21 Mar 2023 09:31:48 +0100 (CET) From: Petr Tesarik <petrtesarik@huaweicloud.com> To: Christoph Hellwig <hch@lst.de>, Marek Szyprowski <m.szyprowski@samsung.com>, Robin Murphy <robin.murphy@arm.com>, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>, Jianxiong Gao <jxgao@google.com>, David Stevens <stevensd@chromium.org>, Joerg Roedel <jroedel@suse.de>, iommu@lists.linux.dev (open list:DMA MAPPING HELPERS), linux-kernel@vger.kernel.org (open list) Cc: Roberto Sassu <roberto.sassu@huawei.com>, petr@tesarici.cz Subject: [PATCH v1 0/2] swiotlb: Cleanup and alignment fix Date: Tue, 21 Mar 2023 09:31:25 +0100 Message-Id: <cover.1679382779.git.petr.tesarik.ext@huawei.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: GxC2BwBHHGNkaxlkK1q2AQ--.49312S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYp7kC6x804xWl14x267AKxVW8JVW5JwAF c2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII 0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r1j6r1xM28EF7xv wVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr0_Cr1l84ACjc xK6I8E87Iv6xkF7I0E14v26r4j6r4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40E FcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr 0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4IIrI8v6xkF7I0E8cxa n2IY04v7MxkF7I0Ew4C26cxK6c8Ij28IcwCF04k20xvY0x0EwIxGrwCF54CYxVCY1x0262 kKe7AKxVWUtVW8ZwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18 MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr4 1lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l IxAIcVCF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0x vEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07je9a9UUUUU= X-CM-SenderInfo: hshw23xhvd2x3n6k3tpzhluzxrxghudrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760966569722136068?= X-GMAIL-MSGID: =?utf-8?q?1760966569722136068?= |
Series |
swiotlb: Cleanup and alignment fix
|
|
Message
Petr Tesarik
March 21, 2023, 8:31 a.m. UTC
From: Petr Tesarik <petr.tesarik.ext@huawei.com>
While working on the dynamic SWIOTLB, I noticed a couple of issues
with the current implementation.
This patch series should be applied on top of GuoRui.Yu's fix for
the deadlock in swiotlb_do_find_slots().
Petr Tesarik (2):
swiotlb: Use wrap_area_index() instead of open-coding it
swiotlb: Fix slot alignment checks
kernel/dma/swiotlb.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
Comments
Thanks, I've applied this to the for-linus branch with minor cosmetic tweaks.