Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2630846rwb; Sat, 8 Oct 2022 11:10:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7uF75PZh1Vw27wDWB0BQXKxEAvR9fGYh8EJTyhiErcS+IEXyTzhlqdN6x5gMNOyw8Qt6L4 X-Received: by 2002:a65:6cc8:0:b0:3fe:2b89:cc00 with SMTP id g8-20020a656cc8000000b003fe2b89cc00mr9791754pgw.599.1665252640262; Sat, 08 Oct 2022 11:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665252640; cv=none; d=google.com; s=arc-20160816; b=wvl4zrO974s4BmY2T9qbH7ovz6t4lIAQM+QMWodyN7KA8TkeEbFlIT4PH/Z93B7vj8 TZBk1rwEZtIwm6t8zUcczqVy9MMRcDCmj1Z317Aolr1jSh4Pmzr3CxAROnilKyWi/hx7 MPUUQv8tsu5xi0D49XNLmrKEToqYFvXM9S2voj4FdhMfWA31NNIYrUpnCz+tLKfpWNNZ dwHFAxWpi+KnMYC6xBUeiB75X1eoQVcSVyWgxEbzUYm6uT66YOfwfA8+ZQJGKiJaee0z ZfU8EuaLWyJwAvz1V1QUOxxJf0vsJRqM4N+6xMg+MZuPAjm+XXlaxgbONk0cwKjHKxAm iCrg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+UTE6DFsnWUdUdSBhhJ4c19FaKPWI2Xn5/socwHQnPI=; b=MY7hAA4Zvtrd8SiXcY2z0owYKDUOZAGoMmvSrQwDJ5Ts52xH9TTjgCDDW2G55jnbRw xcjyZN+iRLYM/AOGwSxM2Mr8Xno/fJ0k3yCZaq+ZJbaYvsxIlBIUV+ifk0fSq6y17vKn IQsOqLh5YPyjN71VU2NCkU8U32gCuqY/MjdClU8DW3sSr0oMqtgbAgmZB/lPt19v1obJ 1z3IeZ3XlHVOnICL+zqYiCh3M5njqHn+W991bhs61cHaLGHhwyOPSHMfinZaLymzJjrR fyq5m2badx0CFfGcMIccExGqp80HPu0U8heBc7aj9W5gFQkHoCoMkTCB4kZ6dDcJ2eUp +MGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=er0or2EP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl10-20020a17090b384a00b00203336ddd4asi7134803pjb.56.2022.10.08.11.10.28; Sat, 08 Oct 2022 11:10:40 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=er0or2EP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230494AbiJHRuN (ORCPT + 99 others); Sat, 8 Oct 2022 13:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbiJHRtz (ORCPT ); Sat, 8 Oct 2022 13:49:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D85441BEAA; Sat, 8 Oct 2022 10:49:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6E492B80BAA; Sat, 8 Oct 2022 17:49:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00A0EC43142; Sat, 8 Oct 2022 17:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665251392; bh=HGkXZmGeeOn4bl+3SPBqoUb+cj5nTCmJvALDRMHFxws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=er0or2EPWW5sAqRgkYRBmsA0luyojhJnF5q/26MIm5RyG1qwJLCIlGWo8AjBUie7A PSsfCnQ+4U2o52ghBsFXp3K/MSxbf0KFh7XqI4rt20sBUKaddLX4qq8Hjo1/5es+7b cAw5g4lrkuPpRCOE65UfHV6dTRh/4zq43eE4uOMyPfl2RtCx07Oh7NmWufpY1VP2B+ Aw+PPYNDiHgsAOyM2KHPpD74A04Crmpw2o8q4cCq/Giwv5xncDR8cE2Ij7p1P2ItTS zcnm326DWKj1BZvod1v1mE4Q3FB1idVWnNLWLx467AXrPUxZw8cUZVnojPAPYuPwZK 3fklFyuj6rjzQ== From: SeongJae Park To: paulmck@kernel.org, corbet@lwn.net Cc: linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 3/4] docs/memory-barriers.txt/kokr: Add memory barrier dma_mb() Date: Sat, 8 Oct 2022 10:49:27 -0700 Message-Id: <20221008174928.13479-4-sj@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221008174928.13479-1-sj@kernel.org> References: <20221008174928.13479-1-sj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org Translate this commit to Korean: ed59dfd9509d ("asm-generic: Add memory barrier dma_mb()") Signed-off-by: SeongJae Park --- .../translations/ko_KR/memory-barriers.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/translations/ko_KR/memory-barriers.txt b/Documentation/translations/ko_KR/memory-barriers.txt index 1c811b96e8e0..b9be5c08af14 100644 --- a/Documentation/translations/ko_KR/memory-barriers.txt +++ b/Documentation/translations/ko_KR/memory-barriers.txt @@ -1863,6 +1863,7 @@ Mandatory 배리어들은 SMP 시스템에서도 UP 시스템에서도 SMP 효 (*) dma_wmb(); (*) dma_rmb(); + (*) dma_mb(); 이것들은 CPU 와 DMA 가능한 디바이스에서 모두 액세스 가능한 공유 메모리의 읽기, 쓰기 작업들의 순서를 보장하기 위해 consistent memory 에서 사용하기 @@ -1893,12 +1894,13 @@ Mandatory 배리어들은 SMP 시스템에서도 UP 시스템에서도 SMP 효 dma_rmb() 는 디스크립터로부터 데이터를 읽어오기 전에 디바이스가 소유권을 내려놓았을 것을 보장하고, dma_wmb() 는 디바이스가 자신이 소유권을 다시 - 가졌음을 보기 전에 디스크립터에 데이터가 쓰였을 것을 보장합니다. 참고로, - writel() 을 사용하면 캐시 일관성이 있는 메모리 (cache coherent memory) - 쓰기가 MMIO 영역에의 쓰기 전에 완료되었을 것을 보장하므로 writel() 앞에 - wmb() 를 실행할 필요가 없음을 알아두시기 바랍니다. writel() 보다 비용이 - 저렴한 writel_relaxed() 는 이런 보장을 제공하지 않으므로 여기선 사용되지 - 않아야 합니다. + 가졌음을 보기 전에 디스크립터에 데이터가 쓰였을 것을 보장합니다. dma_mb() + 는 dma_rmb() 와 dma_wmb() 를 모두 내포합니다. 참고로, writel() 을 + 사용하면 캐시 일관성이 있는 메모리 (cache coherent memory) 쓰기가 MMIO + 영역에의 쓰기 전에 완료되었을 것을 보장하므로 writel() 앞에 wmb() 를 + 실행할 필요가 없음을 알아두시기 바랍니다. writel() 보다 비용이 저렴한 + writel_relaxed() 는 이런 보장을 제공하지 않으므로 여기선 사용되지 않아야 + 합니다. writel_relaxed() 와 같은 완화된 I/O 접근자들에 대한 자세한 내용을 위해서는 "커널 I/O 배리어의 효과" 섹션을, consistent memory 에 대한 자세한 내용을 -- 2.17.1