All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] s390/dasd: fix DMA alignment
@ 2022-08-04 21:39 Stefan Haberland
  2022-08-04 21:39 ` [PATCH 1/2] s390/dasd: drop unexpected word 'for' in comments Stefan Haberland
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Haberland @ 2022-08-04 21:39 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, Jan Hoeppner, linux-s390, Heiko Carstens,
	Vasily Gorbik, Christian Borntraeger, Eric Farman, Jiang Jian

Hi Jens,

please apply the following patches.
The first fixes a comment typo and the second fixes DMA alignment after
a change to the iomap code.

Eric Farman (1):
  s390/dasd: Establish DMA alignment

Jiang Jian (1):
  s390/dasd: drop unexpected word 'for' in comments

 drivers/s390/block/dasd.c      | 2 +-
 drivers/s390/block/dasd_diag.c | 1 +
 drivers/s390/block/dasd_eckd.c | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] s390/dasd: drop unexpected word 'for' in comments
  2022-08-04 21:39 [PATCH 0/2] s390/dasd: fix DMA alignment Stefan Haberland
@ 2022-08-04 21:39 ` Stefan Haberland
  2022-08-04 21:39 ` [PATCH 2/2] s390/dasd: Establish DMA alignment Stefan Haberland
  2022-08-04 22:22 ` [PATCH 0/2] s390/dasd: fix " Jens Axboe
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Haberland @ 2022-08-04 21:39 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, Jan Hoeppner, linux-s390, Heiko Carstens,
	Vasily Gorbik, Christian Borntraeger, Eric Farman, Jiang Jian

From: Jiang Jian <jiangjian@cdjrlc.com>

there is an unexpected word 'for' in the comments that need to be dropped

file - drivers/s390/block/dasd.c
line - 1728

	/* check for for attention message */

changed to:

	/* check for attention message */

Signed-off-by: Jiang Jian <jiangjian@cdjrlc.com>
Link: https://lore.kernel.org/r/20220623102114.33249-1-jiangjian@cdjrlc.com
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
---
 drivers/s390/block/dasd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c
index 4df8bf6505fc..ea82821599f6 100644
--- a/drivers/s390/block/dasd.c
+++ b/drivers/s390/block/dasd.c
@@ -1725,7 +1725,7 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm,
 		dasd_put_device(device);
 	}
 
-	/* check for for attention message */
+	/* check for attention message */
 	if (scsw_dstat(&irb->scsw) & DEV_STAT_ATTENTION) {
 		device = dasd_device_from_cdev_locked(cdev);
 		if (!IS_ERR(device)) {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] s390/dasd: Establish DMA alignment
  2022-08-04 21:39 [PATCH 0/2] s390/dasd: fix DMA alignment Stefan Haberland
  2022-08-04 21:39 ` [PATCH 1/2] s390/dasd: drop unexpected word 'for' in comments Stefan Haberland
@ 2022-08-04 21:39 ` Stefan Haberland
  2022-08-04 22:22 ` [PATCH 0/2] s390/dasd: fix " Jens Axboe
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Haberland @ 2022-08-04 21:39 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, Jan Hoeppner, linux-s390, Heiko Carstens,
	Vasily Gorbik, Christian Borntraeger, Eric Farman, Jiang Jian

From: Eric Farman <farman@linux.ibm.com>

linux-next commit bf8d08532bc1 ("iomap: add support for dma aligned
direct-io") changes the alignment requirement to come from the block
device rather than the block size, and the default alignment
requirement is 512-byte boundaries. Since DASD I/O has page
alignments for IDAW/TIDAW requests, let's override this value to
restore the expected behavior.

Make this change for both ECKD and DIAG disciplines, as they both
would fall into this category. Leave FBA alone, since it is always
comprised of 512-byte blocks.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
---
 drivers/s390/block/dasd_diag.c | 1 +
 drivers/s390/block/dasd_eckd.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/s390/block/dasd_diag.c b/drivers/s390/block/dasd_diag.c
index e9edf3b6ed7c..94ee59864971 100644
--- a/drivers/s390/block/dasd_diag.c
+++ b/drivers/s390/block/dasd_diag.c
@@ -639,6 +639,7 @@ static void dasd_diag_setup_blk_queue(struct dasd_block *block)
 	/* With page sized segments each segment can be translated into one idaw/tidaw */
 	blk_queue_max_segment_size(q, PAGE_SIZE);
 	blk_queue_segment_boundary(q, PAGE_SIZE - 1);
+	blk_queue_dma_alignment(q, PAGE_SIZE - 1);
 }
 
 static int dasd_diag_pe_handler(struct dasd_device *device,
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c
index 836838f7d686..3cc93e2e4e15 100644
--- a/drivers/s390/block/dasd_eckd.c
+++ b/drivers/s390/block/dasd_eckd.c
@@ -6626,6 +6626,7 @@ static void dasd_eckd_setup_blk_queue(struct dasd_block *block)
 	/* With page sized segments each segment can be translated into one idaw/tidaw */
 	blk_queue_max_segment_size(q, PAGE_SIZE);
 	blk_queue_segment_boundary(q, PAGE_SIZE - 1);
+	blk_queue_dma_alignment(q, PAGE_SIZE - 1);
 }
 
 static struct ccw_driver dasd_eckd_driver = {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] s390/dasd: fix DMA alignment
  2022-08-04 21:39 [PATCH 0/2] s390/dasd: fix DMA alignment Stefan Haberland
  2022-08-04 21:39 ` [PATCH 1/2] s390/dasd: drop unexpected word 'for' in comments Stefan Haberland
  2022-08-04 21:39 ` [PATCH 2/2] s390/dasd: Establish DMA alignment Stefan Haberland
@ 2022-08-04 22:22 ` Jens Axboe
  2 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2022-08-04 22:22 UTC (permalink / raw)
  To: sth
  Cc: linux-block, jiangjian, gor, Christian Borntraeger, hca, farman,
	hoeppner, linux-s390

On Thu, 4 Aug 2022 23:39:24 +0200, Stefan Haberland wrote:
> please apply the following patches.
> The first fixes a comment typo and the second fixes DMA alignment after
> a change to the iomap code.
> 
> Eric Farman (1):
>   s390/dasd: Establish DMA alignment
> 
> [...]

Applied, thanks!

[1/2] s390/dasd: drop unexpected word 'for' in comments
      commit: bcee43dc6d5bd6f54e5e2a5d696bf8c8f4c141dd
[2/2] s390/dasd: Establish DMA alignment
      commit: bc792884b76f0da2f5c9a8d720e430e2de9756f5

Best regards,
-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-04 22:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-04 21:39 [PATCH 0/2] s390/dasd: fix DMA alignment Stefan Haberland
2022-08-04 21:39 ` [PATCH 1/2] s390/dasd: drop unexpected word 'for' in comments Stefan Haberland
2022-08-04 21:39 ` [PATCH 2/2] s390/dasd: Establish DMA alignment Stefan Haberland
2022-08-04 22:22 ` [PATCH 0/2] s390/dasd: fix " Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.