media: atomisp: drop ATOMISP_MAP_FLAG_CONTIGUOUS
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Jun 2022 20:50:05 +0000 (21:50 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 15:22:30 +0000 (16:22 +0100)
Drop the ATOMISP_MAP_FLAG_CONTIGUOUS hmm_alloc flag. After the contiguous
flag removal done in previous patches in this series it is never set.

And hmm_alloc already did a WARN_ON on the flag and otherwise ignored it,
proving that contiguous support was already never used.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-9-hdegoede@redhat.com
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/include/linux/atomisp.h
drivers/staging/media/atomisp/pci/hmm/hmm.c

index 22c4103b0385639432c5242260a02b3bf4d2510c..a6ec9691afb24ee5a8def0c9535f058afb9cd4aa 100644 (file)
@@ -915,8 +915,7 @@ struct atomisp_acc_map {
 
 #define ATOMISP_MAP_FLAG_NOFLUSH       0x0001  /* Do not flush cache */
 #define ATOMISP_MAP_FLAG_CACHED                0x0002  /* Enable cache */
-#define ATOMISP_MAP_FLAG_CONTIGUOUS    0x0004
-#define ATOMISP_MAP_FLAG_CLEARED       0x0008
+#define ATOMISP_MAP_FLAG_CLEARED       0x0004
 
 struct atomisp_acc_state {
        __u32 flags;                    /* Flags, see list below */
index c1cda16f2dc018d10ca9014511dca2c3688ec80b..42f1ab090bfe0e5cdf47789fe7861a5063a0e61b 100644 (file)
@@ -230,8 +230,6 @@ ia_css_ptr hmm_alloc(size_t bytes, enum hmm_bo_type type,
        bool cached = attrs & ATOMISP_MAP_FLAG_CACHED;
        int ret;
 
-       WARN_ON(attrs & ATOMISP_MAP_FLAG_CONTIGUOUS);
-
        /*
         * Check if we are initialized. In the ideal world we wouldn't need
         * this but we can tackle it once the driver is a lot cleaner